Commit graph

136 commits

Author SHA1 Message Date
Apollinaire
1e7ae073a9 Merge branch 'master' into devel 2018-12-19 16:10:54 +01:00
neobii
bbe973b13e fixed whitespace to pass linting test 2018-12-18 13:23:20 -06:00
SachaG
290c9ae4f5 Pass down Components prop 2018-12-17 17:04:30 +09:00
Sacha Greif
d51ae7591b
Merge pull request #2065 from OrigenStudio/feature/router-hook-props
Add async hook to RouterHook and provide props as argument
2018-12-16 22:52:00 +09:00
Eric Burel
c55aa27983
Merge pull request #2126 from lbke/cleanup-components
Cleanup Datatable / withComponents pattern
2018-12-15 17:31:33 +01:00
SachaG
3d920138b2 Pass document to callback 2018-12-02 10:53:24 +09:00
SachaG
50315bcf73 Fix linting 2018-12-02 10:28:04 +09:00
eric-burel
f8f08fb7fd can render the datatable 2018-11-29 14:56:24 +01:00
eric-burel
d65c83bde9 added test for container withComponents 2018-11-29 14:24:20 +01:00
eric-burel
4e33ac4a24 use withComponents 2018-11-29 14:24:20 +01:00
eric-burel
7162870564 split Datatable into purely visual components 2018-11-29 14:24:19 +01:00
eric-burel
6d97bfc52b add basic test for datatable 2018-11-29 14:24:15 +01:00
SachaG
46bdfe0f57 Add app.mounted callback to App.jsx; move error tracking init to server/client init.js file 2018-11-24 10:49:37 +09:00
SachaG
4208af65f8 Merge branch 'errors' into devel 2018-11-23 09:20:14 +09:00
SachaG
0cae07f42a Call ErrorCatcher in App.jsx 2018-11-05 09:46:17 +09:00
SachaG
47bd12eb80 Make Flash component display HTML 2018-11-04 16:29:38 +09:00
ochicf
7573e17e18 delete props to avoid unknown props warning 2018-10-31 12:16:19 +01:00
ochicf
dbd41a39f0 update loading state on mutation error 2018-10-31 12:15:57 +01:00
Apollinaire
83a908e22a Fix datatable bug when sorting a column
see https://github.com/VulcanJS/Vulcan/issues/2090#issuecomment-433860782

Previously : when you clicked on a sortable column, the results of the fired query would be null, and the next polling would make it right. You had a long time with no results displayed.

Now : The query fired when you click to sort a column returns the right result, with the props updating correctly, so no need to wait for the polling to update the results.

See #2090 for an in-depth explanation
2018-10-29 18:52:47 +01:00
SachaG
4ebe32eb1c Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-10-13 14:17:57 +09:00
SachaG
8fc6268631 Keep track of locale method; set locale cookie for root path 2018-10-13 14:13:08 +09:00
Bogdan Dimofte
881a6533f8 datatable: add i18n for the search field 2018-10-11 10:42:37 +03:00
Sacha Greif
d81385e7b7
Merge pull request #2093 from Apollinaire/devel
Restore Edge support
2018-10-03 07:53:19 +09:00
Apollinaire
735f49aa2b Remove default on arrow function core:App.jsx:getLocale 2018-10-02 17:49:26 +02:00
SachaG
57225bee57 Pass locale to App.jsx during SSR process (as a cookie for now); keep original headers during SSR process; get locale from headers 2018-10-02 12:25:14 +09:00
SachaG
a4ec3fcf1f Minor refactoring in App.jsx; apolloTracing setting -> apolloServer.tracing; improve i18n server-side locale setting logic to account for cookie and accepted language headers 2018-10-02 10:15:47 +09:00
SachaG
649f74e25b Used could be null 2018-09-18 09:52:50 +09:00
SachaG
dfa4c77314 ESLint fixes 2018-09-16 11:48:38 +09:00
Sacha Greif
fdcdea9301
Merge pull request #2072 from OrigenStudio/fix/locale-change
Pass locale as key to IntlProvider to force a rerender on locale change
2018-09-16 11:40:57 +09:00
ochicf
41bcb84d0c pass locale as key to IntlProvider to force a rerender on locale change
See docs: https://github.com/yahoo/react-intl/wiki/Components#dynamic-language-selection
2018-09-15 22:15:31 +02:00
Sara Itani
565cda5979 cleanup: Fix naming after withList -> withMulti change 2018-09-14 22:17:08 -07:00
ochicf
2c33db686d add router.onUpdate.async hook 2018-09-12 13:20:40 +02:00
SachaG
1404670631 withList -> withMulti 2018-09-12 14:51:44 +09:00
SachaG
bafe350407 withList -> withMulti; add fallback prop for Avatar component 2018-09-12 10:31:36 +09:00
SachaG
97c1ea1630 Improve MutatioButton 2018-07-14 09:09:01 +02:00
SachaG
dfd4bb023e MutationButton component 2018-07-13 21:47:36 +02:00
SachaG
4af2492e07 Make Card and Datatable components more flexible when working with static data; add title prop 2018-07-11 08:34:01 +02:00
SachaG
d4193fd7e5 Merge branch 'devel' into opencrud
# Conflicts:
#	packages/vulcan-lib/lib/modules/collections.js
2018-06-14 09:55:52 +09:00
SachaG
b0e7c4bf97 Only reset store when intl fields exist 2018-06-14 08:47:58 +09:00
SachaG
4da86c44a3 Add support for sortable property (bool/string) on datatable columns to make them sortable 2018-06-12 15:24:17 +09:00
SachaG
4ec9c08500 Set correct moment locale 2018-06-12 11:23:36 +09:00
SachaG
60f47a5189 Various small fixes (thanks @justinr1234) 2018-06-08 13:31:15 +09:00
SachaG
20db318c40 More work on withMulti and withSingle 2018-06-05 12:12:04 +09:00
SachaG
809bdd05de Adapting withMulti and withSingle 2018-06-05 11:51:25 +09:00
SachaG
96eab44309 Start CRUD renaming 2018-06-02 18:49:53 +09:00
SachaG
fc15a4df42 Small core/ui components improvements 2018-05-16 11:40:10 +09:00
SachaG
55d34bd328 Working on locale cookie support for SSR 2018-05-14 17:28:04 +09:00
SachaG
b30b1ae6e6 reset store after locale change 2018-05-10 18:17:53 +09:00
SachaG
a5a43d2f89 Get locale from user 2018-05-10 17:57:12 +09:00
SachaG
af666027c3 Add locale field to user schema; change it when setLocale is called on client 2018-05-10 17:48:06 +09:00