Commit graph

4096 commits

Author SHA1 Message Date
Sacha Greif
e57ac73a50 clean up console.log 2016-11-25 12:24:21 +09:00
Sacha Greif
043f7df114 use refetch() instead of updateQueries for now 2016-11-25 12:22:13 +09:00
Sacha Greif
4b70802c00 clean up 2016-11-25 11:46:31 +09:00
Sacha Greif
d2948e487a prevent rerenderings to prevent FormWithMutations from unmounting 2016-11-25 11:15:46 +09:00
Sacha Greif
698141e6fa clean up and comment withNew 2016-11-25 10:58:32 +09:00
Sacha Greif
b0bd39f657 cleaning up fragments and debugging 2016-11-24 16:58:08 +09:00
Sacha Greif
395a5926be make movies package work independently; nova:base-routes -> nova:routing 2016-11-24 15:47:51 +09:00
Sacha Greif
dfe2d2d0df give edit forms their own FormWithSingle data loader 2016-11-23 17:22:29 +09:00
Sacha Greif
e09022b350 add fragments inside components 2016-11-23 11:07:48 +09:00
Sacha Greif
65e74e6e5d Merge branch 'apollo' of https://github.com/TelescopeJS/Telescope into apollo 2016-11-23 08:42:18 +09:00
Sacha Greif
dd13571291 cleaning up 2016-11-23 08:41:50 +09: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
Sacha Greif
9e8fd36a75 more work on withNew, withEdit, withRemove 2016-11-22 21:12:14 +09:00
Sacha Greif
6321db3712 clean up 2016-11-22 16:46:32 +09:00
Sacha Greif
cb1b65fd32 remove withList wrapper from posts/comments/categories for now 2016-11-22 16:15:26 +09:00
Sacha Greif
612e817a3f update apollo packages; use new fragments syntax (see https://github.com/apollostack/graphql-fragments#migrating); create new MoviesDetails, MoviesEditForm, MoviesItem components; simplify withEdit and withNew containers; create new withSingle container 2016-11-22 16:15:00 +09:00
Sacha Greif
d08c902799 so much elegant! such DRY! 2016-11-21 19:25:37 +09:00
Sacha Greif
f445239763 clean up Movies collection declaration; implement new check system for mutations, tie everything together 2016-11-21 19:23:43 +09:00
Sacha Greif
bfdc921523 add Telescope.createCollection and use it in Movies package to centralize everything; also create withList2 2016-11-21 16:18:08 +09:00
xavcz
afcb8f12c5 provide a nicer way to define options/config of a withList hoc (maybe re-inventing the wheel there), remove outdated CollectionContainers components 2016-11-20 02:25:16 +01:00
xavcz
6c14712a74 work on withList and queries generation 2016-11-19 20:01:17 +01:00
xavcz
4ac4c4cd06 centralize withList, withNew, withEdit, withRemove HOCs to nova:core 2016-11-19 11:20:18 +01:00
Sacha Greif
57faed2368 use other syntax for withList 2016-11-19 19:00:17 +09:00
Sacha Greif
7567d967bf make withList pagination work 2016-11-19 18:14:33 +09:00
Sacha Greif
eafac17683 use generic withList container for movies demo 2016-11-19 18:01:05 +09:00
xavcz
8429502a64 schemas good practice: change control: "none" to hidden: true 2016-11-18 10:03:01 +01:00
xavcz
dcd7269f74 small tweak on mutations & userId field 2016-11-18 09:28:32 +01:00
Sacha Greif
e0d5165146 Meteor update v1.4.2.3 2016-11-18 16:01:44 +09:00
Sacha Greif
e1744f9f93 working on custom collection demo package 2016-11-18 16:01:27 +09:00
xavcz
ae568422a8 go further on link between auth & apollo-client 2016-11-17 21:54:03 +01: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
xavcz
4487464a33 remove duplicated withCurrentUser 2016-11-17 14:12:13 +01:00
xavcz
4dc2dea872 callback fix on users.edit.sync 2016-11-17 10:32:16 +01:00
xavcz
82edaeeab2 give access to the form props in the options of a form component, compose HOCs on FormWrapper 2016-11-17 10:22:31 +01:00
xavcz
71e0a00e34 update apollo-related packages + add graphql-type-json & graphql-subscriptions 2016-11-17 10:21:49 +01:00
xavcz
f2b623e46b withCurrentUser: component returned as a class so it can be extended 2016-11-17 10:19:52 +01:00
xavcz
3c913c437b mutations: form HOC type based on the document prop & fix collection.edit.validate cb by assigning it to the modifier 2016-11-17 09:46:35 +01:00
Sacha Greif
29585b2e9f Merge branch 'apollo' of https://github.com/TelescopeJS/Telescope into apollo 2016-11-17 17:38:44 +09:00
Sacha Greif
3d5fbe7b54 comment out publications code 2016-11-17 17:38:38 +09:00
Sacha Greif
041c7f4ad7 more clean-up 2016-11-17 16:53:07 +09:00
xavcz
d1389e732f messy but working integration, will need some refactoring for react-apollo@0.6.0 + apollo-client@0.5.3 anyway 2016-11-16 16:34:37 +01:00
xavcz
9891551567 remove queries and mutations on state dehydration, hide debug logs 2016-11-16 16:26:53 +01:00
xavcz
f5ef406bf7 got something ~working with a hacks on reactrouter:react-router-ssr 2016-11-16 16:17:12 +01:00
xavcz
620572887d no need to use withApollo in withCurrentUser 2016-11-16 11:02:19 +01:00
xavcz
9f4fe1a917 withCurrentUser hoc in nova:core 2016-11-15 18:33:16 +01:00
xavcz
600ab15c4d Apollo branch up to date with v0.27.4 2016-11-15 12:51:43 +01:00
xavcz
c8615d3439 v0.27.4 2016-11-15 10:44:01 +01:00
Xavier Cazalot
ef99d39aca Merge pull request #1508 from TelescopeJS/devel
v0.27.4 - latest version before Apollo official release
2016-11-15 10:34:54 +01:00