Commit Graph

10030 Commits

Author SHA1 Message Date
Nitwel
37762358fc Add tfa enforce flow (#7805)
* add tfa enforce flow

* add 'tfa-secret' to recommended permissions

* fix if theme if user has dark mode

* oas: rename 'enable-2fa' to 'enable-tfa'

* Add required user fields

* Uniformize styling

* Fix direct and invalid routing

* Add required permission docs

* Fix typescript warnings

* Fix typescript warnings 2

* Allow auto theme

* Nest duplicate condition check

* Fix routing for users without role

* Follow page redirects

* Reduce the use of redirect query

* Improve error UX

* Allow admins to disable 2FA

* Improve autofocus UX

* Override update permission for 'tfa_secret' when role enforces TFA

* Remove permission requirements from docs

Co-authored-by: Jose Varela <joselcvarela@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: ian <licitdev@gmail.com>
2022-06-16 01:27:59 +08:00
Rijk van Zanten
3b2245918d Allow setting a custom filename in the /assets endpoint for SEO (#13907)
* Allow an optional custom filename in the assets route

* Document optional assets endpoint route

* Update docs/reference/files.md
2022-06-15 12:32:36 -04:00
Rijk van Zanten
2fac6c0db6 New translations en-US.yaml (Italian) (#13909) 2022-06-15 16:29:10 +00:00
ian
443d3f6734 Add depth limit to filtering (#11845)
* Add depth limit to filtering

* Add depth limit to GraphQL

* Add docs

* Rename environment variable

* Add simple deep filter depth calculation

* Update error message

* Shift fields depth check to base function

* Remove unused var

* Implement GraphQL filter depth

* Add check for _and & _or filters in GraphQL

* Add check for _and & _or filters in REST

* Remove commented code

* Add check for REST filter query

* Add REST tests

* Setup m2m using directus fields

* Add GraphQL tests

* Fix linter error

* Cleanup calculateDepth + add docs/tests

* Remove validator in GraphQL

* Add depth checking for nested sort

* Enable source map to display correct error lines

* Set max relational depth to be at least 2

* Update tests

* Add unit test for deep _sort

* Add minimum value in docs

* Refactor depth validation to be in validateQuery

* Add boolean parameter for calculation of _sort in deep query

* Use array of keys to parse dot notation

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-06-15 11:52:54 -04:00
José Varela
08166c89fb Add missing color field (#13906) 2022-06-15 11:28:43 -04:00
José Varela
895100898c Ignore returning not supported messages (#13897) 2022-06-15 10:36:56 -04:00
Azri Kahar
bd18b2e781 Redirect to page not found for non-existent flows (#13905) 2022-06-15 09:50:17 -04:00
Azri Kahar
7cefbc9430 sanitize query in item read/update/delete (#13900) 2022-06-15 08:13:22 -04:00
Jevgenijs K
92d506ca92 Update flows.md (#13903) 2022-06-15 08:11:47 -04:00
Rijk van Zanten
e435c56a99 New translations en-US.yaml (Bulgarian) (#13902) 2022-06-15 08:11:05 +00:00
Rijk van Zanten
e085228f70 New translations en-US.yaml (Bulgarian) (#13898) 2022-06-15 07:03:02 +00:00
Rijk van Zanten
6274ee07d0 New Crowdin updates (#13857)
* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Spanish)
2022-06-14 15:39:52 -04:00
Aiden Foxx
8ae7134e5d Clarified DEFAULT_ROLE_ID for LDAP (#13893)
* Clarified DEFAULT_ROLE_ID for LDAP

* Update docs/configuration/config-options.md

* Update docs/configuration/config-options.md
2022-06-14 18:38:43 +00:00
Brainslug
a88a80d6b9 O2M relation does not display correctly (#13866)
* fix for o2m displaying item count

* fixes value structure for multi relations

* removed debugging code and comments and improved data mapping

* fix aliased fields for single relations

* removed unneeded fixes
2022-06-14 14:30:49 -04:00
Brainslug
7fa40b07fa Labels with v-chips are not rendered side-by-side (#13890)
* fix form field label with locale badges

* added a little spacing for the form label badge

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: jaycammarano <jay.cammarano@gmail.com>
2022-06-14 11:01:48 -04:00
ian
e80f78fa8f Fix date filter with null value on SQLite (#13891) 2022-06-14 10:37:52 -04:00
ian
f8b73ce236 Fix aliased DB table names in filter query (#13575)
* Fix aliased DB table names in filter query

* Rename to originalCollectionName for clarity

* Update api/src/utils/apply-query.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-06-14 09:14:45 -04:00
Azri Kahar
f17a1d8988 Add migration to rename hook triggers to event (#13879) 2022-06-14 09:07:52 -04:00
Rijk van Zanten
583a555b0b Upgrade gluegun (#13878) 2022-06-13 17:29:18 -04:00
Rijk van Zanten
558672a78f Prevent unknown knex methods from being used (#13877)
* Prevent unknown knex methods from being used

* Fix tests
2022-06-13 17:20:27 -04:00
Rijk van Zanten
c059f7c219 Upgrade codeql to v2 (#13876)
https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/
2022-06-13 16:46:13 -04:00
rijkvanzanten
ac694ea64c Another merge to empty object 2022-06-13 16:39:40 -04:00
rijkvanzanten
3549084019 Merge to new object in gql 2022-06-13 16:32:11 -04:00
Rijk van Zanten
89fa6fd36c Upgrade busboy (#13875) 2022-06-13 16:22:41 -04:00
Aiden Foxx
e2cedccea9 Added correct null parsing to Directus schemas (#13873)
* Added correct null parsing to Directus schemas

* Bump knex-schema-inspector

To make sure we don't upset MariaDB folks

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-06-13 18:59:47 +00:00
Rijk van Zanten
e54af6b1dd Fix insights panel configuration not persisting to tiles (#13874)
* Make sure panel configuration props are passed camelCased

* Make sure edit still uses underscore prefixed panels
2022-06-13 14:38:12 -04:00
rijkvanzanten
2ecaf0360c Don't check bytesize for empty payloads 2022-06-13 13:04:21 -04:00
Rijk van Zanten
8cee483a1d Add optional cache max value size limit configuration (#13871)
Resolves #13708
2022-06-13 13:03:41 -04:00
ian
e0730af281 Trigger focus event to ensure observable exists in WYSIWYG (#13829)
* Trigger focus event to ensure observable exists in WYSIWYG

* Remove unused init event
2022-06-13 11:11:43 -04:00
rijkvanzanten
e7b9d3f49d Fix missing options crashing displays 2022-06-13 11:04:53 -04:00
Azri Kahar
320590a0fc Use translate in render-display (#13861)
* fix translations in boolean display

* Revert "fix translations in boolean display"

This reverts commit bd4768773c.

* translate in render-display

* remove translate from labels display
2022-06-13 10:04:00 -04:00
ian
416b795b85 Fix linting for api/src/utils/get-local-type.ts (#13849) 2022-06-11 19:01:07 -04:00
Azri Kahar
c44c0e7f8f use parsePreset in App side (#13830) 2022-06-10 16:41:52 -04:00
Jay Cammarano
0a4f1f7e5c Fix: Time Series panel crashes when setting a max value with no min value (#13846)
* no min? no problem

* more explicit undefined + return
2022-06-10 16:25:56 -04:00
Rijk van Zanten
6955c538a3 Upgrade API & Schema dependencies (#13845)
Fixes #13837
2022-06-10 15:59:52 -04:00
Eron Donevan Powell
cb93edcccd fixed links, tweaked text (#13844) 2022-06-10 13:25:07 -05:00
Rijk van Zanten
2804b55875 New translations en-US.yaml (Polish) (#13817) 2022-06-10 16:20:58 +00:00
Pascal Jufer
221398a49f Auto approve pull requests from Crowdin via label (#13824) 2022-06-10 11:09:49 -04:00
rijkvanzanten
06a238cbf0 v9.12.2 2022-06-09 17:14:00 -04:00
rijkvanzanten
bce19abf6f v9.12.2 v9.12.2 2022-06-09 17:12:27 -04:00
Jay Cammarano
c6cdfb73e9 Fix preset layouts not persisting. (#13821)
* preset layout persisting

* persist more

* removed unused type
2022-06-09 16:54:31 -04:00
ian
50e1993bb8 Emit input whenever WYSIWYG content is updated (#13802)
* Emit input whenever WYSIWYG content is updated

* Update value when initialized for direct page loads

* Remove emit value on init

* Emit only when the observer exists

* Set count before observer check

* Remove extraneous init call

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-06-09 15:43:33 -04:00
Rijk van Zanten
008e9d50e0 Set count on fresh init of defered tinymce (#13789)
Fixes #13235 a little more
2022-06-09 15:32:24 -04:00
Gerard Lamusse
58c94a71f8 Take into account the format option when displaying dates relative. (#12804)
* Take into account the format option when displaying dates relative.

* Add additional strict and suffix options

* Toggle showing options

Based on relative being selected, toggle suffix, strict and format from showing or not

* Fix linting and logic in options

* Fix linting and logic in options

* Fix more lint stuff :/

Co-authored-by: Jay Cammarano <67079013+jaycammarano@users.noreply.github.com>
2022-06-09 16:17:40 +00:00
Eron Donevan Powell
776e1bb177 tweaks done for today (#13794) 2022-06-09 11:32:46 -04:00
Brainslug
0d4cdbb146 re-enabling thumbsmith in the build process but non-blocking (#13811) 2022-06-09 11:21:59 -04:00
Eron Donevan Powell
067caf650c replaced replace a file video file (#13793) 2022-06-09 10:15:07 -05:00
Nicola Krumschmidt
80d0b9cd47 Use JobQueue when reloading extensions (#13796) 2022-06-09 08:06:24 -04:00
Nicola Krumschmidt
115d89c001 Use latest vue version when scaffolding extension packages (#13797) 2022-06-09 08:05:35 -04:00
Azri Kahar
ce0d53fd2d make UUID/manual primary key selectable with count (#13799) 2022-06-09 08:04:11 -04:00