Commit Graph

5131 Commits

Author SHA1 Message Date
Rijk van Zanten
b3c8eb5c5b New translations en-US.yaml (French) (#5151) 2021-04-19 11:55:34 -04:00
José Varela
acc145006c App: encode primary key (#5143)
* app: encode primary key
Since primary keys could be manually entered strings,
we should encode those in order to prevent accessing
inexistent routes.
E.g.
Document with primary key: 'clients/John Doe'

* fixup! app: encode primary key Since primary keys could be manually entered strings, we should encode those in order to prevent accessing inexistent routes. E.g. Document with primary key: 'clients/John Doe'

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-19 11:35:01 -04:00
José Varela
7fbba272ad Fix before hook items transaction (#5136)
Since we might need information from database, we must provide the
current transaction, instead of the connection.
Otherwise, databases like SQLite which only accepts a single connection
will throw an error of knex timeout.

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-19 11:34:18 -04:00
Rijk van Zanten
e8bacfbae1 New Crowdin updates (#5132)
* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (French)

* New translations en-US.yaml (French)

* New translations en-US.yaml (French)
2021-04-19 11:31:09 -04:00
Rijk van Zanten
6b71398fc5 Fix loading order of permissions/modules (#5150)
Fixes #5130
2021-04-19 11:23:05 -04:00
Nicola Krumschmidt
30b16cca89 Reset v-textfield to null when cleared (#5141)
* Reset v-textfield to null when cleared

* Add option to configure nullable to textarea interface

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-19 10:49:27 -04:00
Nicola Krumschmidt
d6f2a96bd6 Reset v-field-template to null when cleared (#5144) 2021-04-19 14:39:24 +00:00
Jakob
79e7a7c451 Run migrations before adding the admin user (#5128) 2021-04-19 10:06:16 -04:00
Rijk van Zanten
3de49c373e New Crowdin updates (#5113)
* Update source file en-US.yaml

* New translations en-US.yaml (French)

* New translations en-US.yaml (Finnish)

* Update source file en-US.yaml
2021-04-16 21:56:05 -04:00
rijkvanzanten
88d66b41e1 Rename e2e-tests->tests 2021-04-16 16:53:28 -04:00
Rijk van Zanten
e07705ec5b New translations en-US.yaml (French) (#5109) 2021-04-16 16:26:41 -04:00
Rijk van Zanten
40b9fb0fe6 Allow disabling activity/revisions (#5112)
* Add accountability column

* Add field info for accountability

* Add accountability to collection type

* Fetch accountability info from collection meta

* Add field name translation for accountability field

* Hide revisions drawer detail if revisions aren't available

* Only save activity where accountability flag matches

* Disable revisions for directus_presets

Fixes #3767

* Tweak field option naming
2021-04-16 16:26:18 -04:00
Alex Tremblay
88bf146fbb docs: add API-using examples to module and layout guides (#5110)
* docs: add API-using examples to module and layout guides

* Update docs/guides/layouts.md

* Update docs/guides/layouts.md

* Update docs/guides/modules.md

* Update docs/guides/modules.md

Co-authored-by: Alex Tremblay <alex@tremblay.in>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-16 15:44:13 -04:00
rijkvanzanten
86e3850e4f Fix 0 as default value 2021-04-16 11:51:20 -04:00
Pyll Gomez
c3ef71298c Add oauth hook (#5045)
* Rotate JPG image on upload #4206

* fixes #3949 width/height generated for gif and tif

* API hooks for event added for auth.login #4079

* updated doc for api hooks for new auth.login event

* Style tweaks

* Update docs

* Tweak docs some more

* Spelling error

* Allow non-required flags and pass to hook

* SDK - Persistent login refresh fixes #4113

* Fixed #4145 SDK, Token Expired error

* Spell check

* Docs Spell check

* Docs Spell check

* Docs Spell check

* update docs for sdk-js

* To delete all expired session from db on login

* corrected the condition for the delete

* changed the from Date.now to new date .

* Move it inline

* Fixes #4653

* added docs and cleaned up the hooks payload

* use req.accountability

* added req.params.provider to payload

* provide scope for login

* docs updated for oauth hook

* Update api/src/controllers/auth.ts

* updated provider to redirect and docs

* added payload

* Make schema available in redirect hook

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-16 15:51:15 +00:00
Rijk van Zanten
1f4838dc82 New Crowdin updates (#5091)
* Update source file en-US.yaml

* New translations en-US.yaml (French)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Finnish)
2021-04-16 10:27:27 -04:00
Oreille
95a636dbc0 Pass loading prop to form-field-interface (#5104)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-16 14:26:40 +00:00
José Varela
e765d50783 Fix singleton primary key on update (#5096)
Since primary key is dynamic, we should use it instead of expect it would be 'id'
2021-04-16 10:16:28 -04:00
Rijk van Zanten
1fb4db1fda Add _regex validation operator (#5089)
Closes #2917
2021-04-15 17:25:51 -04:00
Toni Lähdekorpi
1382f5da2e Add disabled prop to InterfaceToggle (#5085)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-15 18:40:50 +00:00
Rijk van Zanten
25b47749dc New Crowdin updates (#5068)
* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Norwegian)

* New translations en-US.yaml (Norwegian)
2021-04-15 12:41:13 -04:00
rijkvanzanten
0dfad1e96e v9.0.0-rc.59 v9.0.0-rc.59 2021-04-15 12:09:58 -04:00
rijkvanzanten
d43c88095e Don't allow singletons to be selected in m2a context
Closes #4406
2021-04-15 12:04:02 -04:00
rijkvanzanten
f6a1043c6f Fix dot notation support in table row
While keeping it functional

Fixes #5080
2021-04-15 11:33:24 -04:00
Rijk van Zanten
8af2cbadfa Translate collections/fields live (#5081)
Fixes #5078
2021-04-15 11:27:52 -04:00
Tomáš Petržela
07b85b7eb7 Global cookie parser (#5071)
* removed local cookie parser

* add global cookie parser

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-15 14:55:07 +00:00
rijkvanzanten
25e7daf433 Parse fragments inside inlinefragments too
Ref #4283
2021-04-15 10:44:23 -04:00
rijkvanzanten
05841c8c3b Remove filesize nullable constraint
Fixes #5075
2021-04-15 10:36:12 -04:00
rijkvanzanten
16b1a4e76e v9.0.0-rc.58 v9.0.0-rc.58 2021-04-14 19:52:03 -04:00
rijkvanzanten
2a1f4ead88 Pass on update:filters event
Closes #5024
2021-04-14 19:34:36 -04:00
Rijk van Zanten
fea49a12e3 Filter out circular fields in relational drawer-item use (#5067)
Fixes #2961
2021-04-14 19:32:53 -04:00
YannickMol
428df2436a Add Gatsby Image to package (#5010)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-14 23:03:39 +00:00
Rijk van Zanten
d6429922e5 New Crowdin updates (#5066)
* New translations en-US.yaml (French)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Portuguese, Brazilian)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Thai)
2021-04-14 18:43:47 -04:00
rijkvanzanten
ab112d26e7 Tweak error code retrieval 2021-04-14 18:39:47 -04:00
Nicola Krumschmidt
24202531fe Rename the nullable text input interface option (#5057)
* Rename the nullable text input interface option

* Update app/src/lang/translations/en-US.yaml

* Update app/src/lang/translations/en-US.yaml

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-14 22:33:27 +00:00
Nicola Krumschmidt
726420576b Fix extension build documentation (#5065) 2021-04-14 22:18:02 +00:00
Jakob
9df7b91564 Improve e2e test watch mode (#5053)
* Improve e2e test watch mode

- run setup only once
- disable teardown

* Add container cleanup for watch mode

* Don't rely on inline exec code

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-14 17:54:26 -04:00
rijkvanzanten
cc868ae60c Normalize the filepath when retrieving fullpath
Fixes #4751
2021-04-14 17:53:55 -04:00
Ben Haynes
0b54975f67 fixes #5017 2021-04-14 17:22:44 -04:00
Pavlo Savenko
b160ae733b fix: use nullish coalescing operator for setting nullable and defaultValue properties in the getSchema function instead of the ||(or) logical operator which always causes assigning true to the nullable property and ignores 0 and false default values (#5063) 2021-04-14 17:18:39 -04:00
Rijk van Zanten
8c214841bd New Crowdin updates (#5050)
* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (German)

* New translations en-US.yaml (German)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (French)
2021-04-14 14:47:32 -04:00
rijkvanzanten
447eea4b3b Fix chaining filters w/ and/or in GQL
Fixes #5020
2021-04-14 12:16:48 -04:00
rijkvanzanten
40ecd1ec37 Fix fragments in nested relational sets
Fixes #4283
2021-04-14 12:12:32 -04:00
Nicola Krumschmidt
b2ff80cb74 Add the build step to the running locally docs (#5055) 2021-04-14 10:45:12 -04:00
Nicola Krumschmidt
0f64b00a73 Fix the edited dot if the field value is falsy (#5054) 2021-04-14 10:44:38 -04:00
Rijk van Zanten
237f709a5f New Crowdin updates (#5046)
* New translations en-US.yaml (French)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Portuguese, Brazilian)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Thai)
2021-04-13 21:43:46 -04:00
Nitwel
c2bc3ea330 Add custom interface for presets (#4870)
* add custom interface for presets

* add defaults and change naming

* Fix type issue, put current selection on top

* Fetch email as name fallback

* Opinionated code changes

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-13 18:33:36 -04:00
rijkvanzanten
c41b5a8179 Fix loading order of lang changing 2021-04-13 17:33:49 -04:00
rijkvanzanten
28d154f344 Fix en lang init 2021-04-13 17:23:52 -04:00
Jakob
f5250143c7 Setup CI for e2e tests (#5035) 2021-04-13 17:03:45 -04:00