Commit graph

172 commits

Author SHA1 Message Date
SachaG
3357bc7726 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
# Conflicts:
#	packages/nova-base-components/lib/users/UsersEditForm.jsx
2017-01-18 10:20:00 +09:00
SachaG
b1d0cd8e69 call upvoting callback on post insert in sync way 2017-01-18 10:19:23 +09:00
SachaG
db17e917f8 Remove “__” prefix to avoid conflicts with GraphQL introspection types and simplify code 2017-01-18 10:18:33 +09:00
xavcz
78aed21d06 a single document can be found by a unique slug or a unique _id; prevent keepViewableFields to crash when no document found in single resolver 2017-01-17 19:46:17 +01:00
SachaG
7f2f8b1a89 add Users.keepViewableFields helper; make emails visible only to owner or admins 2017-01-16 12:32:28 +09:00
Sacha Greif
171bf9feb9 extraFragment -> fragment; deprecate Users.canEdit; add alias; use new withCurrentUser 2017-01-12 17:30:25 +09:00
Xavier Cazalot
7f99b48953 devel - revert commits related to simpl-schema (#1537)
* Revert "add note link to issue in collection2 on mutation insert, remove debug console logs on mutation edit"

This reverts commit 7a15103de7.

* Revert "node simpl-schema + collection2-core: fix vote by specifying the right type of the array (dont use blackbox in the end!)"

This reverts commit e894c3224c.

* Revert "add graphql date type (fix problem with node simple schema), fix an update bug on date picker,  add edit check on custom post item, add `blackbox: true` for arrays field (validation problem with simple-schema)"

This reverts commit 9d84fbec98.

* Revert "use node `simpl-schema` by aldeed to replace `meteor/aldeed:simple-schema` ; use the meteor collection2 core package as recommended"

This reverts commit 016935f4fa.

* revert before node-simple-schema, fix obj.hasOwnProperty undefined error thrown by simple-schema & collection2

* CustomPostsItem: check on renderActions; withDocument/List: pollInterval 20seconds by default; DateTime form component enhancement + GraphQLDate type
2017-01-11 18:02:12 +01:00
xavcz
9d84fbec98 add graphql date type (fix problem with node simple schema), fix an update bug on date picker, add edit check on custom post item, add blackbox: true for arrays field (validation problem with simple-schema) 2017-01-10 11:17:16 +01:00
xavcz
016935f4fa use node simpl-schema by aldeed to replace meteor/aldeed:simple-schema ; use the meteor collection2 core package as recommended 2017-01-10 10:09:24 +01:00
Sacha Greif
8f5891eb30 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
# Conflicts:
#	packages/nova-categories/lib/resolvers.js
#	packages/nova-comments/lib/resolvers.js
#	packages/nova-core/lib/containers/withList.js
#	packages/nova-posts/lib/resolvers.js
#	packages/nova-users/lib/resolvers.js
2017-01-08 16:25:30 +09:00
Sacha Greif
2d627a9609 Refactor withList to use non-incremental pagination to work around polling+fetchMore incompatibility 2017-01-07 16:44:50 +09:00
xavcz
6f69aff0fe make all 'collectionList' resolvers take care of collection.getParameters(terms) + add default parameters (order on categories, postId on comments) 2017-01-05 15:53:41 +01:00
xavcz
746da29d72 semver bump: 1.0.0 🚀 2016-12-27 11:58:58 +01:00
Xavier Cazalot
14313db271 Merge pull request #1526 from comus/patch-1
default avatar image's URL for ssr
2016-12-24 17:52:11 +01:00
xavcz
b04fabb449 more clean-up 2016-12-23 20:58:10 +01:00
xavcz
45e032d7b9 update npm react deps, clean some dead code/packages, use query deduplication sent to the server (apollo-client 0.5.24) 2016-12-23 12:01:16 +01:00
Comus Leong
d2958eefe0 default avatar image's URL for ssr 2016-12-21 22:35:48 +08:00
xavcz
78ba0e8530 more work on currentUser, withApp is not needed anymore (=== withCurrentUser), fix missing import on users schema 2016-12-21 12:04:43 +01:00
Sacha Greif
e6324788dc rollback version change for now to fix issue on run 2016-12-20 10:55:11 +09:00
Sacha Greif
fa7987d67a v0.3.0 2016-12-20 09:50:14 +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
b86ac7c12b withApp: class with lifecycle hooks so it can preload fields from feature/custom packages; fix Users.getSettings; ssr: plug again the cookies to the request 2016-12-09 13:26:46 +01:00
xavcz
1c058b60c6 clean-up 2016-12-09 09:11:20 +01: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
xavcz
4e6e312469 permission API: [editable/insertable/viewable](If) -> (By) ; anonymous -> guests ; default -> members 2016-12-06 10:55:47 +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
212cdf48c2 Telescope.components.CanDo -> ShowIf 2016-12-01 16:09:54 +09:00
Sacha Greif
56c04baf3b use new group-based syntax for permissions; various tweaks 2016-12-01 15:29:07 +09:00
xavcz
41d19f52aa v0.27.5 2016-11-30 12:07:45 +01:00
xavcz
4b4d40f6b3 fix updateQueries: queryName for every hoc => queryToUpdate on withNew/Remove ≠ queryName on withSingle; fix removeSuccessCallback redirect; telescope object on user = blackbox 2016-11-30 10:31:19 +01:00
Sacha Greif
b16c7ce0be put withCurrentUser back in nova:core after all… 2016-11-30 16:58:28 +09:00
Sacha Greif
868194de59 id -> documentId in single document resolver; various fixes 2016-11-30 16:54:58 +09:00
Sacha Greif
d5be97b56c split out withCurrentUser and loadCurrentUser for now 2016-11-30 10:50:04 +09:00
Sacha Greif
25f685c06c fix user helpers; add Users.canViewField helper 2016-11-30 10:21:25 +09:00
xavcz
ddd71eebd1 withCurrentUser belongs to nova:users 2016-11-29 14:08:24 +01:00
Sacha Greif
404dd6214c work on withCurrentUser 2016-11-29 12:35:00 +01:00
Sacha Greif
002599e51e add preload:true option to Users schema 2016-11-29 18:54:12 +09:00
Sacha Greif
9467837d1f move Users.hasUpvoted to nova:voting 2016-11-29 18:52:13 +09:00
Sacha Greif
cbcfc1bcaf clean up i18n files 2016-11-29 11:39:35 +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
6d376a5f1c remove dependency on Events 2016-11-26 11:51:52 +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
Ben Gott
fc5f31b224 move field schemas from user schema to newsletter custom fields
per @xavcz’s suggestion, because the nova:users package doesn’t need to
know about these newsletter-specific fields
2016-11-24 05:54:02 -06:00