Commit graph

35 commits

Author SHA1 Message Date
Sacha Greif
c206230ee5 completely refactor notifications code 2015-06-24 15:38:14 +09:00
Sacha Greif
b15d9095c0 add email testing routes for post approved, new comment, and new reply; clean up notifications; clean up posts, comments, user, utils helpers; change post URL format to /id/slug 2015-06-19 11:52:57 +09:00
Sacha Greif
c268d142cb fixing get/set user setting 2015-06-08 09:54:42 +09:00
Sacha Greif
8356f43a8f migrate newsletter settings; use Users.getSetting 2015-06-08 08:52:41 +09:00
Jeremy Shimko
bb4bafa3bc update email notification logic for new schema 2015-06-06 00:36:58 -04:00
Sacha Greif
aef63cfafb remove notifications settings link since it doesn't work currently 2015-06-05 10:57:16 +09:00
Sacha Greif
3b3d430412 make email template customisation work and add customization example 2015-05-20 15:33:20 +09:00
Sacha Greif
c8754f0dd3 register -> add 2015-05-17 15:38:02 +09:00
Sacha Greif
6be2d73d75 namespacing email stuff 2015-05-13 11:52:00 +09:00
Sacha Greif
3c22937896 userCreated -> onCreateUser; fixing getting started package 2015-05-08 11:45:09 +09:00
Maxime Quandalle
94c6121d91 Improve jsHint consistency
This commit touch a lot of lines of code with the goal to be more
rigorous about JavaScript code conventions defined in the `.jshintrc`.

Some modification:

* Add a list of used global symbols in the corresponding section of
  `.jshintrc`
* Use local variables instead of global in a lot of places where the
  keyword `var` was mistakenly forgotten
* Add missing semi-colons after instructions
* Add new lines at the end of files
* Remove trailing whitespaces
* Use newer name of some Meteor APIs, eg `addFiles` instead of
  `add_files`
* Add missing `break` statements in `switch` blocks
* Use `===` instead of `==` and `!==` instead of `!=`
* Remove unused variables

This commit should also fix a few bugs due to this lack of rigor. One
example of that was the test `typeof navElements === "array"` that was
never true because in JavaScript, `typeof [] === "object"`, we
replaced this test by the `_.isArray` method provided by underscore.
It might also fix some potential collision related to global
variables.

There is still plenty of work until Telescope code base passes jsHint
validation, but at least this commit is a step in the right direction.
2015-05-01 18:38:27 +02:00
Sacha Greif
e0b9bf36b7 namespacing user roles 2015-04-27 17:14:07 +09:00
Sacha Greif
36e2d063ce nicer API namespacing 2015-04-24 09:48:36 +09:00
Sacha Greif
ab77526a0f namespacing and refactoring template modules 2015-04-23 17:45:37 +09:00
Sacha Greif
08c6e373fc bringing packages back into core repo after all 2015-04-22 07:50:11 +09:00
Sacha Greif
43b7256680 Packageifying… 2015-04-21 11:02:02 +09:00
Sacha Greif
50fc3eb11a Merge branch 'namespace' of https://github.com/TelescopeJS/Telescope into namespace
# Conflicts:
#	lib/users.js
#	packages/telescope-base/lib/base.js
#	packages/telescope-base/package.js
#	packages/telescope-lib
2015-04-20 13:57:37 +09:00
Delgermurun
16d9eaf0f9 Delete all getTemplate related codes 2015-04-13 16:29:33 +09:00
Delgermurun
057580b793 Settings package 2015-03-28 18:38:20 +09:00
Sacha Greif
aba323695f do not fetch remote resources with juice; upgrade packages 2015-02-22 08:52:20 +01:00
Sacha Greif
c38c1c6434 fixing email notification templates 2015-01-22 09:19:52 +09:00
Sacha Greif
333b64ae45 adding notifications for approved posts for both admins and end users 2015-01-21 16:47:22 +09:00
Sacha Greif
c9693436c3 fixing context issues on comment form 2015-01-20 12:35:09 +09:00
Sacha Greif
1eb72079b4 adding userCreatedCallbacks callback hook and refactoring user creation 2014-12-13 14:02:45 +09:00
Sacha Greif
111baee125 Merge pull request #587 from anthonymayer/email-header-site-link
Fixes #562 - Adds site link to email header.
2014-12-03 09:25:54 +09:00
Sacha Greif
6d7cacd3df version bump 2014-12-03 09:00:56 +09:00
Anthony Mayer
d61e4311a3 Fixes #562 - Adds site link to email header. 2014-11-28 19:26:06 -08:00
Jamie Wilson
331f25e593 correcting template for post body 2014-11-25 15:42:17 -06:00
Sacha Greif
4168196510 do not use tap:i18n server-side 2014-11-25 09:04:47 +09:00
Sacha Greif
7b89c604a5 working on package i18n 2014-11-20 14:56:29 +09:00
Sacha Greif
eb082473ed refactor server-side email template routes 2014-11-19 15:14:54 +09:00
Sacha Greif
c335d654c9 fixing missing username in notifications; cleaning up console.logs 2014-11-18 11:00:38 +09:00
Sacha Greif
a3c89093ca remove mentions of nom juice package 2014-08-29 13:40:30 +09:00
Sacha Greif
266947e878 split out juice into its own package 2014-08-29 13:32:13 +09:00
Sacha Greif
8ae358181e Got rid of meteorhacks:npm packages; moved email features to their own package 2014-08-29 10:23:11 +09:00