summaryrefslogtreecommitdiffstats
path: root/client/lib/unsavedEdits.js
Commit message (Collapse)AuthorAgeFilesLines
* Move global subscription to template subscription so that subscriptionLauri Ojansivu2017-12-021-2/+0
| | | | | will stop when template is unused. It's very important for efficiency espacially with large number of users. Thanks to mfshiu !
* Centralize all mutations at the model levelMaxime Quandalle2015-09-081-1/+1
| | | | | | | | | | | | | | | This commit uses a new package that I need to document. It tries to solve the long-standing debate in the Meteor community about allow/deny rules versus methods (RPC). This approach gives us both the centralized security rules of allow/deny and the white-list of allowed mutations similarly to Meteor methods. The idea to have static mutation descriptions is also inspired by Facebook's Relay/GraphQL. This will allow the development of a REST API using the high-level methods instead of the MongoDB queries to do the mapping between the HTTP requests and our collections.
* Enforce a consistent ES6 coding styleMaxime Quandalle2015-09-031-12/+8
| | | | | | | | | Replace the old (and broken) jshint + jscsrc by eslint and configure it to support some of the ES6 features. The command `eslint` currently has one error which is a bug that was discovered by its static analysis and should be fixed (usage of a dead object).
* Replace the component bounded `cachedValue` by a global `UnsavedEdits`Maxime Quandalle2015-08-311-0/+82
This new draft saving system is currently only implemented for the card description and comment. We need better a component inheritance/composition model to support this for all editable fields. Fixes #186