xavcz
4d024536b1
nova:events: auto-generated hooks on collection.mutation.async
, package-structure (first pass)
2017-02-01 23:11:41 +01:00
xavcz
08c171ed64
fix #1541 : increasePostViewCount mutation + associated resolver; store posts viewed on the client session on postsViewed in the redux store; document PostsPage HOC & lifecycle hook
2017-02-01 16:37:06 +01:00
xavcz
4810947eea
FormComponent: extract props beforeComponent & afterComponent used to wrap the form component
2017-02-01 14:52:56 +01:00
xavcz
cf4f63b0de
export categories schema functions outside of nova:categories (can be used in custom packages for instance)
2017-02-01 13:53:52 +01:00
SachaG
dce38c1a28
Simplify custom fragment code
2017-02-01 10:39:18 +09:00
SachaG
591385b0f8
Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
2017-02-01 10:09:14 +09:00
SachaG
c5bdf07223
Merge branch 'comus-patch-3' into devel
2017-02-01 10:09:08 +09: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
xavcz
f196333a25
add comments to fragments (related to packages) & compose them in nova:base-components for easier customization
2017-01-31 17:51:28 +01:00
SachaG
e44f51d6ca
Make select form components without value default to “select option” instead of first option
2017-01-31 17:55:26 +09:00
SachaG
e603721440
Add mongo-redux prototype integration
2017-01-31 17:54:56 +09:00
Comus Leong
8edbfdc755
clean up
2017-01-31 11:19:43 +08:00
Comus Leong
98ff9c2730
client side exportable redux store
2017-01-31 10:24:12 +08:00
Comus Leong
1991cd4f4b
getMiddleware to getMiddlewares
2017-01-31 10:24:12 +08:00
SachaG
557d8a7f4e
Fix category view upvoting bug
2017-01-31 11:01:28 +09:00
SachaG
5a26d4f047
Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
2017-01-31 10:23:54 +09:00
SachaG
45b9de4789
Add new fragments API (registerFragment/getFragment); move fragments to own fragments.js file; registerComponent doesn’t return anything anymore; withList & withDocument accept either fragment or fragmentName
2017-01-30 19:46:48 +09:00
xavcz
7e52047c4d
withList: grab the client prop and rename it to apolloClient to be used further in the withList logic
2017-01-29 12:49:44 +01:00
SachaG
38de180530
Add comment voting using graphql union type
2017-01-29 11:17:00 +09:00
SachaG
ae92ac3d45
Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
2017-01-29 09:51:48 +09:00
SachaG
33446172a6
Pass Apollo client object to parameters callback to fix #1546
2017-01-29 09:51:38 +09:00
xavcz
7862923dec
fix typo (object of object..)
2017-01-27 19:54:44 +01:00
xavcz
7fc0a352aa
allow querying a single post with only slug (consistency with withDocument), usersTotal resolvers takes care about terms, update react-apollo & apollo-client
2017-01-27 11:08:27 +01:00
xavcz
591476c4f4
fix user updated fields on voting async callbacks
2017-01-26 12:53:49 +01:00
xavcz
a6e8e69c69
clean withMessages, make the router.onUpdate callback usable with store & apollo-client, move the logic to clear flash messages inside the router.onUpdate callback
2017-01-26 09:56:53 +01:00
Xavier Cazalot
fcdf8505f2
Merge pull request #1543 from comus/patch-1
...
separate client side and server side routing
2017-01-26 09:32:10 +01:00
Comus Leong
b99a9474ab
furthermore, pass req.css, and give it chance for server side render styled-component css
2017-01-26 15:25:30 +08:00
Comus Leong
f1589886ff
req.client to req.apolloClient
2017-01-26 15:20:08 +08:00
Comus Leong
badab5d615
move historyHook after rehydrateHook on client side, because moved configureStore
in rehydrateHook , so that give it chance to use react-router-redux
in historyHook
2017-01-26 13:58:32 +08:00
Comus Leong
9bb61abfd2
separate client side and server side routing
2017-01-26 13:48:47 +08:00
Comus Leong
45a1e45b45
rename routing.jsx to routing-client.jsx
2017-01-26 13:21:32 +08:00
Comus Leong
1a7cc3c7db
Actions/Reducers/Middleware convert to getActions()/getReducers()/getMiddleware()
2017-01-26 12:41:02 +08:00
SachaG
3ab60533f2
some more vote clean-up
2017-01-26 13:09:27 +09:00
SachaG
99160a1831
Remove MongoDB logic in vote.js; split out db update into mutateItem
2017-01-26 11:14:39 +09:00
SachaG
ac5ab92143
Various clean up; use function syntax for callback functions
2017-01-25 13:58:41 +09:00
SachaG
1c42031fe5
Re-enable nested categories
2017-01-25 13:58:02 +09:00
xavcz
36ca34a267
fix upvote.async callback issue on collection.new mutation
...
* add collection as the last parameter of a collection.async cb,
* when inserting a new document, run upvote.async cb once the document has been inserted (collection.new.async)
* remove pre-meteor 1.3 '/server' folder, put everything in the root (initiated by grouping callbacks in the same file for less confusion)
2017-01-24 11:58:57 +01:00
xavcz
937fc718cc
update summary js-doc, fix typo
2017-01-23 17:39:46 +01:00
xavcz
1e2d43662d
form api, embedly url, fix posts autovalues
...
- Form API: updateCurrentValue(fieldName, fieldValue) => updateCurrentValues(newValues: {[fieldName]: fieldValue}) to update one or more fields at once;
- changes on EmbedlyURL: use of currentValues instead of autofilledValues, fix the use of 'media' field on new & edit (assigned server-side in async callback)
- fix Posts schema's autoValue logic: moved to callbacks (it worked on new docs but not triggered on edits)
2017-01-23 15:50:55 +01:00
SachaG
7c6e07ab6d
disable demo packages by default
2017-01-23 11:07:53 +09:00
SachaG
7e640cc1bd
Make new comment mutation return post to auto-update post object in store with new commentCount and list of commenters
2017-01-23 11:01:14 +09:00
SachaG
957fe56df9
clean up before merge back to master
2017-01-23 11:00:44 +09:00
SachaG
4661ec9583
Wrap PostsPage with currentUser
2017-01-23 10:30:58 +09:00
SachaG
844d678888
returnPartialData option breaks SSR
2017-01-22 10:32:23 +09:00
SachaG
c1131422a0
Use immutability helper for vote; pass currentUser to Vote.jsx as prop
2017-01-22 10:12:05 +09:00
SachaG
1b9f1b13ce
Make custom fields extendable, not just replaceable
2017-01-21 16:56:54 +09:00
SachaG
bde420c46b
add optics support (Apollo stats)
2017-01-21 10:28:19 +09:00
SachaG
565d02cd79
Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
2017-01-21 10:02:11 +09:00
SachaG
301d1017f9
Add underscore package; update Apollo-client package; add HoC aliases; disable categories polling; remove required schema properties; use strings for dates client-side
2017-01-21 10:02:03 +09:00
xavcz
c3f0245c49
simple-schema Object type are queried as JSON in graphql
2017-01-20 10:44:15 +01:00