Commit graph

2633 commits

Author SHA1 Message Date
Comus Leong
26a2419ae4 merge apollo.js together 2017-02-07 09:27:02 +08:00
Comus Leong
8a8596a75b move renderContext from core to lib, so that every components/containers includes core’s (such as withList, App) can use renderContext.get() to get store, apolloClient, loginToken, history, reducers, middlewares 2017-02-06 23:56:15 +08:00
Comus Leong
b789211627 rename some files in nova-lib, dash to underline 2017-02-06 22:28:39 +08:00
Comus Leong
33b3b5bf24 change nova-core folder structure 2017-02-06 22:24:05 +08:00
Comus Leong
2ab3fd3c66 change nova-lib folder structure 2017-02-06 21:47:27 +08:00
Comus Leong
dfd01fdc1a get rid of meteor.subscribe error during SSR, because std:accounts-ui LoginForm needs meteor.subscribe 2017-02-06 21:14:07 +08:00
Comus Leong
e8714af111 remove apollo packages 2017-02-06 14:38:31 +08:00
Comus Leong
9992f0063e new routing 2017-02-06 14:36:42 +08:00
SachaG
3e47320a21 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel 2017-02-06 14:22:56 +09:00
SachaG
435cc3555d decorate categories with active and expanded properties; adapt Categories.getParents to work with store; add category parent resolver; improve mongo-redux; remove duplicate unflatten; add level property to items in unflatten 2017-02-06 10:50:48 +09:00
SachaG
8bc6aacf85 Small tweaks: i18n’ize error message, pass terms to posts list 2017-02-06 10:43:55 +09:00
xavcz
3b096a680a nova:events: export requestAnalyticsAsync server-side to be used by other packages 2017-02-04 07:53:28 +01:00
SachaG
b11188eda6 handle missing users/posts better 2017-02-04 15:40:26 +09:00
SachaG
9d9929d0b8 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel 2017-02-04 11:46:54 +09:00
SachaG
02245f9e03 Add new Collection.findInStore and Collection.findOneInStore methods to query the store during SSR and use it in posts views 2017-02-04 11:46:40 +09:00
SachaG
bdfa76aca6 Improve error logging on server; add createdAt to PostsList fragment; use componentNames for base routes 2017-02-04 11:43:21 +09:00
Sacha Greif
1fce2006ff Merge pull request #1555 from dominictracey/devel
Add username tooltip to user's avatar
2017-02-04 09:48:34 +09:00
Dominic Tracey
d0732c4ac9 Add username tooltip to user's avatar. Nice in the commenters list of a PostItem. 2017-02-03 13:55:51 -05:00
SachaG
3cde24d4fb Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
# Conflicts:
#	packages/nova-base-components/lib/posts/PostsList.jsx
#	yarn.lock
2017-02-03 15:37:52 +09:00
SachaG
cf1ee06273 pass error to PostsList and show error message 2017-02-03 15:36:40 +09:00
SachaG
afebadba55 Adapt withEdit/withNew to support new fragments API 2017-02-03 15:16:48 +09:00
xavcz
cf0f8b8985 update getting started content, license date, contributing link, .gitignore & add custom npm start 🚀 2017-02-02 17:35:03 +01: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
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
xavcz
e71a24871c mutation eventTrack(eventName: String, properties: JSON): JSON to trigger analytics tracking from the client, refactor requestAnalyticsAsync 2017-02-02 10:39:33 +01:00
xavcz
ee34328c34 track voting operations, move posts increase clicks to nova:events (related to #1540) 2017-02-02 09:52:47 +01:00
SachaG
a2f7592b94 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel 2017-02-02 13:24:51 +09:00
SachaG
d87c13a9a5 finish new fragments API; add extendFragment 2017-02-02 13:24:29 +09:00
SachaG
ebb38cf643 Working on new fragments API 2017-02-02 11:56:52 +09:00
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