Commit graph

349 commits

Author SHA1 Message Date
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
SachaG
d5cad5288a Document is not defined in create mutation 2018-10-10 17:40:16 +09:00
SachaG
335cda6cf0 Improve thrown errors 2018-10-10 17:35:01 +09: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
f5e44dc68e v1.12.8 2018-09-17 09:54:10 +09:00
SachaG
c095572bf1 v1.12.7 2018-09-16 15:39:23 +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
SachaG
2d4889abcc Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel
# Conflicts:
#	packages/vulcan-core/lib/modules/default_resolvers.js
2018-09-14 11:10:55 +09:00
Erik Dakoda
9be92d0903 - Fixed bug in single resolver (slug is undefined)
- Fixed bug in Utils.pluralize (pluralizing words ending in 's', for example address => addresses)
2018-09-13 10:46:10 -04:00
ochicf
a3d8accc64 add callbacks to 'router.onUpdate.async' hook 2018-09-12 13:21:25 +02:00
ochicf
2c33db686d add router.onUpdate.async hook 2018-09-12 13:20:40 +02:00
SachaG
a18c4ebb6a v1.12.6 2018-09-12 14:52:49 +09:00
SachaG
1404670631 withList -> withMulti 2018-09-12 14:51:44 +09:00
SachaG
0c99b9a7ac v1.12.5 2018-09-12 12:01:10 +09:00
SachaG
5fc0e30f40 Fix ESLint 2018-09-12 11:59:00 +09:00
SachaG
85c57c4beb Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-09-12 10:32:53 +09:00
SachaG
8e325122c6 v1.12.4 2018-09-12 10:32:45 +09:00
SachaG
bafe350407 withList -> withMulti; add fallback prop for Avatar component 2018-09-12 10:31:36 +09:00
Sacha Greif
27aaf06865
Merge pull request #2063 from lbke/bugfix/withAccess-guests
Allow "guests" in withAccess
2018-09-12 10:16:40 +09:00
Eric Burel
c4945ddc2f allow guests in withAccess 2018-09-11 18:08:29 +02:00
Erik Dakoda
b8ed1cdc06 - Fixed bug in single resolver 2018-09-10 06:48:14 -04:00
Erik Dakoda
d5b677e28d - Added collection.options.singleResolverName and .multiResolverName to stay DRY
- In withMulti, fixed how loadMoreInc passes variables to fetchMore
- Added the "allowNull" option to single resolver to return null instead of throwing a MissingDocumentError
- Added extended SimpleSchema options to support "unique" field property (field can be used as part of a selectorUnique when querying for data)
- When generating schema, populate fields.selector and fields.selectorUnique
2018-09-10 06:16:00 -04:00
Eric Burel
7dcd8fc6ac cleanup quotes and added rule to eslint 2018-09-05 19:40:19 +02:00
Eric Burel
17f96712ff cleaned up the options management in hocs
Will fix issues when not specifying a fragmentName in withDelete
2018-09-05 16:53:51 +02:00
ochicf
f67e996168 fix: avoid adding multiple times the same document 2018-09-04 11:22:11 +02:00
SachaG
2482bae51b v1.12.3 2018-08-31 22:51:49 +09:00
SachaG
6e9d7e9412 v1.12.2 2018-08-31 07:07:27 +09:00
SachaG
32fef20cd4 v1.12.1 2018-08-30 20:02:55 +09:00
SachaG
3ca76c198c Preserve withSingle backwards-compatibility 2018-08-30 20:02:09 +09:00
SachaG
0f4f77a058 v1.12.0 2018-08-30 07:51:28 +09:00
SachaG
a388e1663f Renaming 2018-08-29 20:36:36 +09:00
SachaG
5d1a7d2c37 Replace documentId/slug with selector in single resolver 2018-08-29 20:36:30 +09:00
ochicf
eb544faa07 register callbacks only for the created mutations 2018-08-10 11:51:43 +02:00
ochicf
b31ff85b8c merge mutation and resolver options
This makes possible to only specify a subset of options.

As an example, imagine we want to pass a customized `updateCheck` function to `getDefaultMutations`. Before this commit options weren't merged, so all of them had to be specified:

```
getDefaultMutations({
  typeName,
  collectionName,
  options: {
    create: true,
    update: true,
    upsert: true,
    delete: true,
    updateCheck: () => true,
});
```

After the commit:

```
getDefaultMutations({
  typeName,
  collectionName,
  options: {
    updateCheck: () => true,
});
```
2018-08-10 11:50:56 +02:00
ochicf
9e9d818678 collectionName can now be specified as an argument 2018-08-10 11:24:38 +02:00
SachaG
910c932f61 Get rid of single argument level of indirection in mutations; add additional checks to avoid empty selectors 2018-08-07 16:20:24 +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
b2fc0d0c5b Use Utils.pluralize function 2018-07-04 11:11:46 +02:00
SachaG
e0b540eeb1 Use callback ref; fix withMutation; handle errors with no path 2018-07-04 10:59:10 +02:00
SachaG
4f80444743 Better debug logging 2018-06-25 08:41:44 +02:00