Giter VIP home page Giter VIP logo

nette-bridges's Introduction

Nittro

Nittro is a javascript client-side framework and library specifically designed to be used with the Nette framework. It makes your page fully AJAX-driven, taking care of basic things such as applying snippets to the page, updating the browser history, displaying transition animations while content is being loaded, client-side form validation, AJAX uploads, flash messages and more. The basics are pretty easy to set up and there are no outside dependencies (no jQuery for example).

The documentation is right this way.

You can get a pre-built Nittro package from the website or using Bower (bower install --save nittro-essentials or bower install --save nittro-full) or you can get the source packages from NPM (npm install --save nittro and optionally nittro-extras) and build it yourself using the Gulp or Grunt plugin.

Roadmap

v2.1

After completing the Cookbook and updating the documentation, these are the plans we have for Nittro:

  • Bootstrap bridge - We'd like to have a package which will make Nittro integrate nicely with Twitter Bootstrap.
  • Better live form validation - Current live form validation works a bit naively every time the blur event occurs on a field. We'd like to come up with a smarter approach.
  • AJAX form validation - Much as you can opt-in to live form validation we'd like to give you the ability to validate the form or selected fields using AJAX to facilitate validation which can only happen on the server side, like unique user name in a registration form.
  • Update NEON implementation - This is more of an internal project, but Nittro's port of the NEON encoder and decoder is based on an old version of its Nette counterpart. We'd like to bring it up to date.
  • Build the DI Container on the server - Currently the DI Container is being built in the browser on every request; we'd like to extract that part of the bootstrap process to the Nittro Builder to shave off some bytes off the Nittro packages and ever-so-slightly speed up Nittro's startup.
  • Support Nextras/Datagrid - We'd like to build a package you can add to your builds to make Nittro integrate better with the Nextras/Datagrid component.
  • Dynamic forms - We're thinking about client-side support for generating dynamic form components like you can do with Kdyby/Replicator and similar tools.

Is this list complete? Hell no. I'm sure we'll come up with a lot of other ideas before the time for 2.1 comes around. You are more than welcome to suggest ideas of your own - simply shoot us an email at [email protected] or post it in the Issue tracker.

We're hiring!

I'm kidding, obviously. There's no money to be made developing a library targeted at a community counting in the tens. But if you are interested in contributing to Nittro, know that any form of contribution is much appreciated - be it a bug report, a pull request or even a component of your own. Please get in touch (again via [email protected]) and we'll work something out.

nette-bridges's People

Contributors

e2221 avatar jahudka avatar jansuchanek avatar klofac avatar vvoody- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nette-bridges's Issues

Nette application v3.1.4 + Nittro nette-bridges v2.1.4 Declaration of Nette\Application\UI\Component::link(string $destination, ...$args): string must be compatible with Nittro\Bridges\NittroUI\PresenterUtils::link(string $destination, $args = Array): string

I updated Nette Application to 3.1.4 but I got error :
Declaration of Nette\Application\UI\Component::link(string $destination, ...$args): string must be compatible with Nittro\Bridges\NittroUI\PresenterUtils::link(string $destination, $args = Array): string

Nette v3.1.3 + Nittro v2.1.4 = OK
Nette v3.1.4 + Nittro v2.1.4 = Compile Error

Could you fix it, please ?

Nette application v3.1.5 + Nittro nette-bridges v2.1.5 Declaration of Nette\Application\UI\Component::link(string $destination, $args = Array): string must be compatible with Nittro\Bridges\NittroUI\PresenterUtils::link(string $destination, ...$args): string

I updated Nette Application to 3.1.5. Problem is : Revert "Component::link() & etc uses variadic parameter"
https://github.com/nette/application/releases/tag/v3.1.5
nette/application#298

Nette v3.1.5 + Nittro v2.1.5 = Compile Error
Nette v3.1.5 + Nittro v2.1.4 = OK
Nette v3.1.4 + Nittro v2.1.5 = OK

Could you fix it again, please ?

Fix PresenterUtils declaration for Nette 3.0a

Declaration of Nittro\Bridges\NittroUI\PresenterUtils::getPresenter(bool $throw = true): ?Nette\Application\UI\Presenter must be compatible with Nette\Application\UI\Presenter::getPresenter(bool $throw = true): Nette\Application\UI\Presenter

  • and maybe you should use lowercase constants FALSE, TRUE, NULL, etc. as Nette use them?

Nette application v3.0.1 + Nittro nette-bridges v2.1.2 Declaration must be compatible

I updated Nette and Nittro-Bridges but I got error :
Declaration of Nette\Application\UI\Component::redirect($destination, $args = Array): void must be compatible with Nittro\Bridges\NittroUI\PresenterUtils::redirect($destination = NULL, $args = Array): void

I have :

  • Nette application v3.0.1
  • Nittro nette-bridges v2.1.2

Combination Nette v3.0.0 + Nittro v2.1.1 is ok

Changelog Nette application v3.0.1 :

  • Component::redirect() removed $code from signature #220 #221

Changelog Nittro nette-bridges v 2.1.2 :

  • Component::redirect() removed $code from signature

But it doesn't work together. What can I do to solve this problem, please ?

Fix PresenterUtils declaration for Nette 3.0-dev

Opět zdravím, došlo k poměrně rozsáhlému updatu Nette-dev (plný přechod na PHP 7.1), takže je problém s kompatibilitou metod. Zatím jsem našel pouze RedrawControl, ale občas mi to hodilo chybu i s redirect(), kde je deprecated parametr "code", ale to byl pravděpodobně dočasný pokus v Nette to už odstranit. Zatím tedy asi jen toto:

Nette\Application\UI\Control::redrawControl(?string $snippet = NULL, bool $redraw = true): void

Nevím jak to je s NetteForms.js, které je do Nittra implementováno, ale asi pouze starší verze.

Update composer nittro/nette-bridges

Hello,
I updated the application with composer and I get this error.
Compile Error Declaration of Nette\Application\UI\Presenter::getPresenter($throw = true) must be compatible with Nittro\Bridges\NittroUI\PresenterUtils::getPresenter(): Nette\Application\UI\Presenter

composer.json
"require": { "php": ">=7.0", "nette/application": "^2.4", "nette/bootstrap": "^2.4.3", "nette/caching": "^2.5", "nette/database": "^2.4", "nette/di": "^2.4", "nette/finder": "^2.4", "nette/forms": "^2.4", "nette/http": "^2.4", "nette/mail": "^2.4", "nette/robot-loader": "^2.4 || ^3.0", "nette/safe-stream": "^2.3", "nette/security": "^2.4", "nette/utils": "^2.4", "latte/latte": "^2.4", "tracy/tracy": "^2.4", "dg/adminer-custom": "^1.9", "kdyby/translation": "^2.5", "ublaboo/datagrid": "^5.6", "froala/wysiwyg-editor-php-sdk": "^1.0", "contributte/guzzlette": "^2.0", "nittro/nette-bridges": "^2.0", "nasext/dependent-select-box": "^3.1", "kdyby/console": "^2.7", "ipub/visual-paginator": "@dev", "league/oauth2-client": "^2.4", "mpdf/mpdf": "^8.0"

Please how to fix?

Thx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.