Commit graph

9 commits

Author SHA1 Message Date
floatinghotpot
672c21bfe0 bugfix: only care active members, also optimize some code 2015-12-08 16:03:31 +08:00
floatinghotpot
011f53ad08 add: invite user via email, invited user can accept or decline, allow member to quit 2015-12-07 11:15:57 +08:00
floatinghotpot
892d1a2d45 i18n-ize meteor email templates 2015-12-04 10:39:51 +08:00
Xavier Priour
a7427b9ae4 merge with /devel 2015-11-13 12:43:34 +01:00
Xavier Priour
3dc70b3ea4 Import members: UI flow ok 2015-11-13 12:35:41 +01:00
Dominik Ferber
3956a6ec20 Add eslint-plugin-meteor
Add rules for eslint-plugin-meteor.

Use local version of eslint and eslint-plugin-meteor, instead of
relying on global versions. Ensures consistent versions of eslint and
eslint-plugin-meteor for all developers.
2015-10-27 17:40:38 +01:00
Maxime Quandalle
aa974aa54a Prefer ES5 methods over underscore utilities
Since 07cc454 (ie the switch to Meteor 1.2) we includes the `es5-shim`
polyfill to support methods like `Array.prototype.forEach` in a
consistent way across all supported browsers (IE8+).

MDG recently released a blog post recommending the use of these native
methods instead of underscore [0]. We know follow this recommendation.

This commit also favor some ES6 features (argument defaults,
destructing assignment) in places where we didn’t use them.

[0]: http://info.meteor.com/blog/es2015-get-started
2015-10-22 18:13:12 +02:00
Maxime Quandalle
9154b06fc3 Upgrade kenton:accounts-sandstorm package to 0.1.6
We now delegates more user attributes sync (avatar and permissions) to
this package instead of doing it ourselves.
2015-10-21 04:26:16 +02:00
Maxime Quandalle
45b662a1dd Centralize all mutations at the model level
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.
2015-09-08 20:19:42 +02:00
Renamed from collections/users.js (Browse further)