diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 00000000..1f5596e4 --- /dev/null +++ b/.bowerrc @@ -0,0 +1 @@ +{"directory" : "public/vendor"} diff --git a/bower.json b/bower.json new file mode 100644 index 00000000..f2483aac --- /dev/null +++ b/bower.json @@ -0,0 +1,21 @@ +{ + "name": "phpvms", + "description": "", + "directory": "public/vendor", + "main": "", + "authors": [ + "Nabeel Shahzad " + ], + "dependencies": { + "rivets": "0.9.6" + }, + "license": "MIT", + "homepage": "https://github.com/nabeelio/phpvms", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ] +} diff --git a/public/vendor/rivets/.bower.json b/public/vendor/rivets/.bower.json new file mode 100644 index 00000000..59d1833e --- /dev/null +++ b/public/vendor/rivets/.bower.json @@ -0,0 +1,32 @@ +{ + "name": "rivets", + "description": "Declarative data binding + templating solution.", + "homepage": "http://rivetsjs.com", + "version": "0.9.6", + "main": "dist/rivets.js", + "license": "MIT", + "authors": [ + "Michael Richards" + ], + "keywords": [ + "data binding", + "templating" + ], + "ignore": [ + "node_modules", + "bower_components", + "spec" + ], + "dependencies": { + "sightglass": "~0.2.4" + }, + "_release": "0.9.6", + "_resolution": { + "type": "version", + "tag": "v0.9.6", + "commit": "0bc2d9fb158f55926028f91a743b3a439ace6aeb" + }, + "_source": "https://github.com/mikeric/rivets.git", + "_target": "0.9.6", + "_originalSource": "rivets" +} \ No newline at end of file diff --git a/public/vendor/rivets/.gitignore b/public/vendor/rivets/.gitignore new file mode 100644 index 00000000..ac37d7df --- /dev/null +++ b/public/vendor/rivets/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +*.swp +node_modules/**/* diff --git a/public/vendor/rivets/CHANGELOG.md b/public/vendor/rivets/CHANGELOG.md new file mode 100644 index 00000000..83ddea1e --- /dev/null +++ b/public/vendor/rivets/CHANGELOG.md @@ -0,0 +1,175 @@ +# 0.9.5 + +### Changes + +- Use global object `$` (jQuery or jQuery alternative) if available, fixing [#646](https://github.com/mikeric/rivets/issues/646) + +# 0.9.4 + +### Changes + +- Updated sightglass to `v0.2.6`, fixing [#572](https://github.com/mikeric/rivets/issues/572) + +# 0.9.2 + +### Changes + +- Fix issue when resetting a model [#644](https://github.com/mikeric/rivets/issues/644) +- Fix publish function in two-way formatters [#649](https://github.com/mikeric/rivets/issues/649) +- Fix array binding [#650](https://github.com/mikeric/rivets/issues/650) +- Fix observers on prototype functions [#572](https://github.com/mikeric/rivets/issues/572) + +# 0.9.1 + +### Changes + +- Fix bug in expression with multiple strings [#620](https://github.com/mikeric/rivets/issues/620) + +# 0.9.0 + +### Changes + +- Fix binders which received 0 instead of undefined when HTML attributes were empty [#567](https://github.com/mikeric/rivets/issues/567) +- Now functions are not executed by Rivets in expressions. To call the function you need to use the `call` formatter. See documentation [here](http://rivetsjs.com/docs/guide/#functions-call) [#571](https://github.com/mikeric/rivets/issues/571) +- Support for nested rv-each with an index for each iteration. Index names can be configured, see documentation [here](http://rivetsjs.com/docs/guide/#usage-configuring) [#551](https://github.com/mikeric/rivets/issues/551) +- Support for pipes in quoted arguments [#432](https://github.com/mikeric/rivets/issues/432) +- Support for constant string in component HTML attributes [#478](https://github.com/mikeric/rivets/issues/478) +- Fix rebind bug when a templated used nested `rv-if` binders [#611](https://github.com/mikeric/rivets/issues/611) + +### Upgrading from 0.8 +- Since 0.9 Rivets will not execute functions by default. This will allow passing arguments to function with the `call` formatter. + + - Calling function in 0.8 + ``` + { item.myFunction } + ``` + - Calling function in 0.9 + ``` + { item.myFunction | call} + ``` + - Calling function in 0.9 with arguments + ``` + { item.myFunction | call myArgument 'argument as string'} + ``` + + - You can force function executions to have your application work in `0.9` without using the `call` formatter. This is done with the configuration + ``` + rivets.configure({ + // Since rivets 0.9 functions are not automatically executed in expressions. If you need backward compatibilty, set this parameter to true + executeFunctions: true + }); + ``` + +- Using multiple indexes in nested `rv-each`. Since `0.9` rivets allows to have a specific index variable for each iteration. + ``` +