Commit graph

165 commits

Author SHA1 Message Date
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
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
SachaG
591385b0f8 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel 2017-02-01 10:09:14 +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
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
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
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
Comus Leong
1a7cc3c7db Actions/Reducers/Middleware convert to getActions()/getReducers()/getMiddleware() 2017-01-26 12:41:02 +08: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
SachaG
957fe56df9 clean up before merge back to master 2017-01-23 11:00:44 +09:00
SachaG
1b9f1b13ce Make custom fields extendable, not just replaceable 2017-01-21 16:56:54 +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
xavcz
0d316ae89c make routes replaceable if a new route is added with the same path 2017-01-19 14:57:56 +01:00
SachaG
3861cb8b53 Fix component export 2017-01-19 11:19:36 +09:00
xavcz
79e4cf5266 make FormWrapper exportable again, routes can accept either component or componentName property 2017-01-18 15:11:31 +01:00
xavcz
c0fcc944d7 Nova's components & routes registered in a declarative way: no load order mess, better control of the flow, no changes for the end user 2017-01-18 12:51:10 +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
912f3848d1 move scalar declaration to global schema declaration 2017-01-16 12:22:17 +09:00
Sacha Greif
014ba87367 Make graphql type conversion logic more explicit again 2017-01-14 18:04:53 +09:00
Sacha Greif
e9bc54426f Call Utils.convertDates when loading and sorting data to convert any date field stored as a string into an actual date object 2017-01-14 17:57:44 +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
7a15103de7 add note link to issue in collection2 on mutation insert, remove debug console logs on mutation edit 2017-01-11 10:54:39 +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
xavcz
b3bcb4de87 improve Nova's redux utils (configureStore, addAction, addReducer) 2017-01-04 14:31:38 +01:00
Comus Leong
f15906e887 addRoute function improve, not use array.concat because it will return a new array 2017-01-03 16:42:53 +08:00
xavcz
746da29d72 semver bump: 1.0.0 🚀 2016-12-27 11:58:58 +01:00
Dominic Tracey
7ac15e28d3 updates per @xavcz 2016-12-26 10:30:59 -05:00
Dominic Tracey
8936776e23 Allow redux middleware extensions 2016-12-25 19:26:41 -05:00
xavcz
1558531c84 update grapqhl-tools to be able to ask for terms as JSON type, propTypes on UsersMenu 2016-12-20 15:19:13 +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
62368a0d48 NovaForm -> SmartForm 2016-12-20 09:27:16 +09: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
5816b175f0 some more clean up 2016-12-12 16:48:49 +09: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
b8662441e0 Telescope.strings.add -> addString 2016-12-12 15:10:53 +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
aa85aaf9c8 Telescope.routes -> Routes, addRoute; no more indexRoute 2016-12-12 11:12:41 +09:00
Sacha Greif
a2d7b7c2ef Telescope.graphQL.foo -> GraphQLSchema.foo 2016-12-12 10:41:50 +09:00