Commit graph

131 commits

Author SHA1 Message Date
SachaG
ba32f4245b Few more framework-demo tweaks; throw error when missing components 2017-02-19 16:10:21 +01: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
SachaG
8bc6aacf85 Small tweaks: i18n’ize error message, pass terms to posts list 2017-02-06 10:43:55 +09:00
xavcz
e533dd47e7 fix some lint issues, remove some dead code, remove double imports from the same package & import from core instead of lib except for packages depending explicitly on lib (users, emails, ..) 2017-02-02 16:18:33 +01:00
xavcz
2c2a647e7a work on <head />: allow custom script tag, fix rss feed, expose 'excerpt' on post fragment 2017-01-31 18:57:45 +01:00
SachaG
38de180530 Add comment voting using graphql union type 2017-01-29 11:17:00 +09:00
SachaG
4661ec9583 Wrap PostsPage with currentUser 2017-01-23 10:30:58 +09:00
SachaG
c1131422a0 Use immutability helper for vote; pass currentUser to Vote.jsx as prop 2017-01-22 10:12:05 +09:00
xavcz
a6ab0a6d89 refactor the NewsletterButton to be stateless (label & mutation to trigger controlled by its parent (ex: newsletter banner, newsletter field control); make the newsletter field control of the user edit form update its state AND the form state the action has succeeded 2017-01-19 10:37:42 +01:00
SachaG
db17e917f8 Remove “__” prefix to avoid conflicts with GraphQL introspection types and simplify code 2017-01-18 10:18:33 +09:00
Sacha Greif
cffc032b36 refactor Vote.jsx a bit 2017-01-14 18:03:35 +09:00
Sacha Greif
fc982bc20f Make voting generic (posts, comments, etc.) WIP 2017-01-09 15:42:24 +09: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
fbff53d761 fix user log in bug (maybe?) 2016-12-20 09:45:55 +09:00
Sacha Greif
1bf4933ebb clean up Telescope imports 2016-12-13 11:32:23 +09:00
xavcz
a0b7e64788 fix voting callback & operateOnItem, fire stopLoading on Vote component when user is not logged in 2016-12-12 11:17:13 +00:00
xavcz
d31ce63a17 fix withMessages 2016-12-12 11:00:25 +00:00
Sacha Greif
381cdc7cff Telescope.headtags -> Headtags; Telescope.actions -> Actions; Telescope.reducers -> Reducers; Telescope.operateOnItem -> operateOnItem; TODO: fix withMessages 2016-12-12 16:43: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
xavcz
2638023f4e harmonize apollo branch to be on v0.27.5 2016-12-08 23:48:16 +01:00
xavcz
990f21aae1 withMessages hoc to avoid having redux code in components 2016-12-08 09:42:50 +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
xavcz
37f4bdaf91 Telescope.components.Foo -> Components.Foo, same for related components utils like registerComponent, getRawComponent & replaceComponent 2016-12-06 18:06:29 +01:00
xavcz
2d42bd5bf3 fragmentName from fragment in withRemove; destructure args in usersSingle resolver; ShowIf on PostsNewForm & UsersEditForm; connect as the "most-right" HOC on Newsletter 2016-12-01 16:12:39 +01:00
Sacha Greif
b16c7ce0be put withCurrentUser back in nova:core after all… 2016-11-30 16:58:28 +09:00
xavcz
ddd71eebd1 withCurrentUser belongs to nova:users 2016-11-29 14:08:24 +01:00
xavcz
7b4e64e97f voting: missing imports, patch on vote helpers in component (uncomment for debug) 2016-11-29 12:27:26 +01:00
Sacha Greif
9467837d1f move Users.hasUpvoted to nova:voting 2016-11-29 18:52:13 +09:00
Sacha Greif
a6836a5db8 move App and Layout components to core; insertableIf, editableIf, and viewableIf also accept group names; clean up 2016-11-27 19:12:54 +09:00
Sacha Greif
fa581a85c3 lots of cleaning up 2016-11-26 11:17:01 +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
xavcz
22dd58114b get rid of nova:base-containers, move graphql vote-related code to nova:voting, undo mistake on some user fields 2016-11-22 18:39:50 -05:00
xavcz
1137fb96aa adapt the Telescope.createCollection api to all the collections, some clean up in old containers files 2016-11-22 18:14:51 -05:00
Ben Gott
48cd5c83d7 add this.props.user back to NewsletterButton
…and use this.props.user instead of this.context.currentUser (allows an
admin to edit another user)
2016-11-18 11:35:48 -06:00
Ben Gott
846e5c43ad rename newsletter settings
correctly this time! ;)
2016-11-17 14:43:35 -06:00
xavcz
5b3f2105d1 apply the new API registerComponent to the base-components 2016-11-17 20:42:16 +01:00
xavcz
17513c1a98 change the API to register components / extend them and illustrate it in my-custom-package 2016-11-17 20:00:20 +01:00
Ben Gott
dc594af50f fix newsletter banner dismissal persistence 2016-11-17 11:37:26 -06:00
xavcz
9f4fe1a917 withCurrentUser hoc in nova:core 2016-11-15 18:33:16 +01:00
xavcz
51c605942a withApp hoc ; fix PostsItem (VoteContainer -> Vote) 2016-11-11 11:23:39 +01:00
Sacha Greif
884c6a00b9 withVoteMutation 2016-11-11 18:29:49 +09:00
xavcz
83020ce65c small tweaks: no more users.current subscription on startup, fix child context App, fix getting started callback 2016-11-10 22:18:36 +01:00
xavcz
400b4d8c72 load categories with their own container (with loading handled in the presentational component); handle login / logout / register with fixed client.resetStore (apollo 0.5.1) 2016-11-10 10:54:43 +01:00
Sacha Greif
378cd01ef2 make sure user is loaded before loading app 2016-11-10 17:26:55 +09:00
Sacha Greif
4e4c4d0b20 use Meteor.user() in AppContainer for now 2016-11-10 10:11:43 +09:00
xavcz
ec95b3c591 wip on nova:base-containers, rename nova:base-apollo in nova:apollo for the sake of clarity, remove some obsolete/experimental functions (triggerMainRefetch, refetchQuery, ..) 2016-11-08 12:58:53 +01:00
Sacha Greif
222aa4b544 split off VoteContainer and Vote 2016-11-03 16:19:44 +09:00
Sacha Greif
588d37524c fix issue with refetch 2016-11-03 14:55:39 +09:00