Commit graph

53 commits

Author SHA1 Message Date
Maxime Quandalle
0cdcccf1f6 Send invite email in the server console in development mode
Meteor support that use case for us, we don't need to implement our
own validate strategy on top of that. This was also discussed as part
of the #454 review.
2016-01-01 13:31:54 +01:00
Maxime Quandalle
d9b74131ae Fix avatar support on Sanstorm
The bug comes for 9154b06 which this commit partially reverts. The
synchronization between the user document profile and the Sandstorm
HTTP headers is still not perfect. Having a clean model may requires
the `accounts-sandstorm` to expose a hook to modify the user document
just after the `services.sandstorm` credentials are updated.

Fixes #460
2015-12-30 19:34:18 +01:00
Maxime Quandalle
592aa6d576 Partially revert aae5030
As discussed in #370 and announced in the official Eslint-meteor
plugin repository (https://github.com/dferber90/eslint-plugin-meteor),
it is recommended to not use this plugin anymore has the author has it
is currently broken and the author has abandoned it.
2015-12-24 13:13:05 +01:00
Xavier Priour
115ea533f6 Export: improved API routes
- use an explicit "boards" domain: /api/boards/:boardId
- pass authToken as a request parameter: /api/boards/:boardId?authToken=:token
- in the future, same route can be used with authToken set in the Authenticate: header easily
2015-12-17 23:57:28 +01:00
Xavier Priour
a45a899137 Improved doc on server-side export route 2015-12-17 13:11:33 +01:00
Xavier Priour
4cea6fca90 Export: include attachments 2015-12-17 11:58:55 +01:00
Xavier Priour
3a52d7d7af Export: add _format field 2015-12-17 10:22:48 +01:00
Xavier Priour
d08e1cc45b Export Wekan now server-based with proper auth 2015-12-16 21:58:43 +01:00
Xavier Priour
efe7c21d57 Export wekan: do not export board.stars 2015-12-16 16:30:48 +01:00
Xavier Priour
f5eba16a50 fix eslint 2015-12-13 21:38:22 +01:00
Xavier Priour
e304185c23 Merge remote-tracking branch 'upstream/devel' into devel 2015-12-13 20:02:51 +01:00
Xavier Priour
18697d45f6 board export now checks authentication 2015-12-13 20:02:34 +01:00
Xavier Priour
7cfc72da99 export works but no authentication 2015-12-11 19:20:19 +01:00
Xavier Priour
f20b5d04f5 export board to Wekan JSON 2015-12-09 00:35:45 +01:00
floatinghotpot
672c21bfe0 bugfix: only care active members, also optimize some code 2015-12-08 16:03:31 +08:00
floatinghotpot
21fa6fdc32 add: optional board description 2015-12-07 11:22:30 +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
32698bcc98 Fix code style 2015-12-02 20:37:12 +01:00
Xavier Priour
f639bada5c Import trello: map card author and board admins 2015-12-02 12:37:51 +01:00
Xavier Priour
2057764801 Import trello: map comment author 2015-12-02 11:28:32 +01:00
Xavier Priour
82c59fb85f Fix #417: exception when importing older boards (missing creationDate) 2015-12-02 09:52:30 +01:00
Xavier Priour
33193b6f7b code review fixes 2015-11-17 08:52:55 +01:00
Xavier Priour
ad27a59e57 Import attachments 2015-11-16 21:41:49 +01:00
Xavier Priour
dd0a6e1a82 Import members: board import 2015-11-14 01:41:02 +01:00
Xavier Priour
f6f41270de Import members: working on card import 2015-11-13 15:52:14 +01: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
31b60d82fc Upgrade Meteor to 1.2.1-rc4
This version includes a more complete selection of ES2015 polyfills
that I started used across the code base, for instance by replacing
`$.trim(str)` by `str.trim()`.
2015-10-23 16:56:55 +02: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
7a5f030cc8 Merge branch 'xavierpriour-devel' into devel
Conflicts:
	models/import.js
2015-10-20 20:06:26 +02:00
Maxime Quandalle
118b434a5a Provide a default date for lists and cards creation date
See https://github.com/wekan/wekan/pull/362#issuecomment-149645497
for motivation.

This commit also contains cosmetic changes to the import Popup and
on the code style to be more consistent with the code base.
2015-10-20 20:02:12 +02:00
Maxime Quandalle
f3fc154eb0 Re-implement label deletion
This was not ported during v0.9 re-factor.

Fixes #322
2015-10-20 19:07:24 +02:00
Xavier Priour
8e0ad91191 Import board: map team permission, and refactor code to share with card import 2015-10-19 20:14:29 +02:00
Xavier Priour
ec304de811 Import board: check json structure before importing 2015-10-19 12:41:56 +02:00
Xavier Priour
456674f111 Import board: set proper color and modifiedAt dates 2015-10-19 11:46:04 +02:00
Xavier Priour
4540bd36c4 Import board: import comments and log activities 2015-10-19 00:59:50 +02:00
Xavier Priour
469d47cd9f Import board: create board, lists, and cards 2015-10-18 01:02:44 +02:00
Xavier Priour
595d5f97ac Import board: now proper createdAt dates 2015-10-17 19:29:25 +02:00
Xavier Priour
468694a84c Import board: added UI 2015-10-17 18:00:46 +02:00
Maxime Quandalle
6dedf673d5 Prevent duplicate board labels
43de3b8 did prevent empty labels with the same color, but we also want
to prevent label with the same non-empty name and same color because
the rationale is identical.
2015-10-16 17:49:25 +02:00
Maxime Quandalle
944a1065d3 Add some ESLint rules and fix some related issues 2015-10-14 23:50:12 +02:00
Maxime Quandalle
43de3b8a01 Prevent dublicated empty labels of the same color 2015-10-14 23:40:27 +02:00
Xavier Priour
b670a1ab36 Import single card: proper error handling 2015-10-14 23:23:17 +02:00
Xavier Priour
7d57ce896b Import single card: create an 'importCard' activity entry 2015-10-14 23:23:16 +02:00
Xavier Priour
4b99ce2aa2 Import single card: check user authorized 2015-10-14 23:23:16 +02:00
Xavier Priour
81bd551137 Import single card: now uses historical dates 2015-10-14 23:23:16 +02:00
Xavier Priour
d8892d6408 Import single card: refactor to meteor method 2015-10-14 23:23:16 +02:00