Commit graph

70 commits

Author SHA1 Message Date
SachaG
85dde4b402 move views logic to createCollection 2017-03-05 10:33:34 +00:00
xavcz
1e416fd9d2 fix possible errors in decoding errors (meta? 🤔); mailchimp api v2 returns an error.message "214" when a user is already subscribed, not an error.code 214 📥 2017-02-16 13:40:52 +01:00
xavcz
e07c844710 provide better error messages for Embedly & Mailchimp 2017-02-11 12:27:32 +01:00
xavcz
eb2644ad8a Form: display nicer, multiple & internationalizable (encode -> decode) errors, ensure that state updates are queued; in general prefer Error to Meteor.Error, clean some dead code 2017-02-02 15:15:51 +01:00
SachaG
957fe56df9 clean up before merge back to master 2017-01-23 11:00:44 +09:00
SachaG
53cd7f29b8 small newsletter tweaks 2017-01-20 14:12:59 +09:00
xavcz
0ceb2a714c don't throw an error to somebody already in a Mailchimp list without knowing it: return the expected result (subscribed), log it server-side and update the relevant user setting if needed 2017-01-19 09:20:12 +01:00
Sacha Greif
171bf9feb9 extraFragment -> fragment; deprecate Users.canEdit; add alias; use new withCurrentUser 2017-01-12 17:30:25 +09:00
Phil Weber
7d30a42b81 #1517 - Implement configurable excerpt lengths 2017-01-08 18:55:00 -08:00
xavcz
d5f9c2369b update the correct user thanks to the NewsletterButton, disable setState no-op (why is the component unmounted?) 2016-12-27 11:44:35 +01:00
Sacha Greif
70ddd87039 update to apollo-client 0.5.22; small fixes and clean-up; Posts.parameters.get -> Posts.getParameters; add sorting to withList (even though it doesn't work yet); add getParameters to all collections; 2016-12-18 19:04:11 +09:00
Sacha Greif
4e1a82c130 Callbacks.add -> addCallback; and other callback functions 2016-12-13 11:40:24 +09:00
Sacha Greif
1bf4933ebb clean up Telescope imports 2016-12-13 11:32:23 +09:00
Sacha Greif
98fef8ef62 Telescope.settings.get -> getSetting 2016-12-12 15:00:56 +09:00
Sacha Greif
dd0df7dfc5 Telescope.utils -> Utils 2016-12-12 11:34:28 +09:00
Sacha Greif
a2d7b7c2ef Telescope.graphQL.foo -> GraphQLSchema.foo 2016-12-12 10:41:50 +09:00
Sacha Greif
5e1e124a8f Telescope.callbacks -> Callbacks; Telescope.createCollection -> createCollection 2016-12-12 10:24:34 +09:00
xavcz
2638023f4e harmonize apollo branch to be on v0.27.5 2016-12-08 23:48:16 +01:00
Sacha Greif
ce103c568c make withSingle accept slug parameter; no need for variables in withMutation anymore; port newsletter methods to Apollo 2016-12-07 15:30:40 +09:00
Comus Leong
464e20a96c eslint & clean up code, also fixed some bugs (#1515)
* [eslint] update eslint rules & add .eslintignore to ignore non-ready nova packages

* [clean-up] nova-voting

* [clean-up] [bug] nova-users: missing user parameter

* [clean-up] nova-users

* [clean-up] nova-subscribe

* [clean-up] nova-settings

* [clean-up] nova-rss

* [clean-up] [bug] nova-posts: correct UsersRemoveDeletePosts

* [clean-up] nova-posts

* [clean-up] nova-notifications

* [clean-up] [bug] nova-newsletter: no error.message on throw error

* [clean-up] nova-newsletter

* [clean-up] nova-lib

* [clean-up] nova-kadira

* [clean-up] nova-inject-data

* [clean-up] nova-getting-started

* [clean-up] nova-forms

* [clean-up] nova-events

* [clean-up] [bug] nova-embedly: no FlowRouter

* [clean-up] nova-embedly

* [clean-up] nova-email-templates

* [clean-up] nova-email

* [clean-up] nova-debug

* [clean-up] nova-core

* [clean-up] [bug] nova-comments: correct UsersRemoveDeleteComments

* [clean-up] nova-comments

* [clean-up] [bug] nova-cloudinary: use Telescope.settings.collection instand

* [clean-up] nova-cloudinary

* [clean-up] nova-categories

* [clean-up] nova-base-components

* [clean-up] nova-api

* [eslint] extends react recommended

* [clean-up] for jsx files

* [eslint] extends meteor recommended

* i forgot this one little change
2016-11-25 13:46:55 -05:00
Ben Gott
846e5c43ad rename newsletter settings
correctly this time! ;)
2016-11-17 14:43:35 -06:00
Ben Gott
cb55efbd81 whitespace edits 2016-11-17 11:38:35 -06:00
Ben Gott
f3d15944b6 minor grammar fix in mailchimp logging 2016-11-17 11:38:10 -06:00
Sacha Greif
8b35d59323 try/catch for mailchimp 2016-11-07 13:00:15 +09:00
xavcz
6a4c9c1f57 consistency on users callbacks (users.new, users.profileCompleted), remove dead code (~copy of users.edit method) not used anymore: what it did is now handled thanks to callbacks 2016-10-07 10:50:21 +02:00
xavcz
5463ff7b86 prefer Users namespace to Meteor.users in active packages 2016-10-05 08:37:48 +02:00
Sacha Greif
3ec90a04b5 remove Telescope global 2016-08-08 11:18:21 +09:00
Sacha Greif
fa7c4c6079 make sure user is instance of Users collection 2016-07-22 14:44:41 +09:00
Sacha Greif
4a05939bb7 Users.is.admin -> Users.isAdmin 2016-07-21 14:51:58 +09:00
Sacha Greif
c748bdc5bd permissions clean up & refactoring 2016-07-20 10:25:05 +09:00
Sacha Greif
c33983eaae groups -> formGroups 2016-07-19 15:13:16 +09:00
Sacha Greif
ab68dccae4 pass optional properties to email wrapper 2016-07-12 17:35:15 +09:00
Sacha Greif
3869927ee1 fix newsletter frequency bug? 2016-07-07 12:49:57 +09:00
Sacha Greif
d6c0be150d remove old i18n function call 2016-07-04 10:42:50 +09:00
Sacha Greif
45b1a8cc7d use elementOnly for thumbnail URL; add support for beforeComponent and afterComponent to NovaForms; handle empty URLs in getDomain; add enableNewsletterInDev setting; add more logging to newsletter cron job; make newsletter time GMT; campaign -> newsletter; add missing imports; add spanish translation to README 2016-06-28 17:33:30 +09:00
Sacha Greif
dbc886a7a4 refactor newsletter package (Campaign -> Newsletter); refactor other packages 2016-06-23 17:24:58 +09:00
Sacha Greif
51623d7e31 Telescope.email -> NovaEmail 2016-06-23 16:42:06 +09:00
Sacha Greif
02fb7fa34d removing Categories global 2016-06-23 15:11:56 +09:00
Sacha Greif
41f349d18c removing Users global 2016-06-23 15:00:58 +09:00
Sacha Greif
0e28be3c92 removing Comments global 2016-06-23 12:17:39 +09:00
Sacha Greif
d9e69110a6 removing Posts global 2016-06-23 11:40:35 +09:00
Sacha Greif
d0275aa77f update readme 2016-06-22 18:29:35 +09:00
Sacha Greif
dea2e5a48e remove console.log 2016-06-15 19:56:40 +09:00
Sacha Greif
2dd3f3c7fa move newsletter callback to server only; split users.setSetting method in method+mutator; always call mutator directly when on server 2016-06-15 19:55:59 +09:00
Sacha Greif
5ee570299a replacing packages with their npm equivalents 2016-06-07 15:03:00 +09:00
Sacha Greif
7a3a467fbc small bug fixes 2016-06-06 16:11:51 +09:00
Sacha Greif
ce15170f1e preserve media queries when inlining emails; add post categories to newsletter; newsletter confirmation bug fix 2016-05-31 10:34:47 +09:00
xavizalote
6aa3c9b10e remove excess of validation (doesn't make any sense..) 2016-05-26 10:48:38 +02:00
xavizalote
262c7ffc2b clearer & cleaner 2016-05-26 10:46:30 +02:00
xavizalote
8ad7efae59 delete user from list to make it possible for him to resubscribe, default props for the button, style newsletter settings in the UsersEdit 2016-05-25 09:30:29 +02:00