Commit Graph

35 Commits

Author SHA1 Message Date
Rijk van Zanten
84f4a1da01 Add singular/plural collection name translations (#5302)
* Add singular/plural options to collection translations

* Use singular/plural item names in related values

* Use singular / plural names on item detail

* Use singular/plural for drawer item

* Fix translation
2021-04-27 16:22:52 -04:00
Rijk van Zanten
f1e2338142 Add auth password policy / login attempts support (#5225)
* Check auth password policy on user modifications

* Show validation errors in drawer-batch

* Allow custom password policy, add placeholder

* Add UserSuspended exception

* Add user suspended error translation

* Move rate limiter creation into root helper

* Add login attempts support to authentication service

* Don't authenticate into settings service when checking password policy
2021-04-23 17:42:46 -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
Rijk van Zanten
dd551f3571 Add non-items system Resolvers (#4863)
* Add auth resolvers

* Add password request/reset

* Add up until file import

* Make revisions read only

* Add server resolvers

* Add utils

* Add schema resolvers for schema manipulation
2021-04-06 18:04:35 -04:00
rijkvanzanten
9859212253 Fix o2m fields missing by default 2021-04-05 16:39:30 -04:00
Ben Haynes
ccf885f950 dynamic colors for system activity displays 2021-03-04 20:13:47 -05:00
Ben Haynes
275b9521f2 webhooks dynamic seed colors 2021-03-04 19:46:56 -05:00
Ben Haynes
7599e0a7aa primary color and various design updates 2021-03-04 18:50:47 -05:00
rijkvanzanten
1e89c25872 Remove "locked" field from directus_fields
Closes #3925
2021-03-04 18:41:59 -05:00
rijkvanzanten
31b5dbfe66 Fix validation error on preset creation with app access
Fixes #4369
2021-03-03 19:57:04 -05:00
Ben Haynes
83b1aa53c2 desaturate all system dividers 2021-02-26 11:32:52 -05:00
Rijk van Zanten
db30acbb8a Move sortField to relationship setup (#4304)
* Add migration

* Add sort field to relation types

* Remove sortfield options in favor of relationship

* Add sort field configuration to relational setup

* Save m2a sortfield on the correct row

* Add default sort field to system data
2021-02-25 19:13:36 -05:00
Adrian Dimitrov
335c3eab57 Update system fields default displays (#4089) 2021-02-16 13:44:26 -05:00
YannickMol
3bbf7f0d8b Add default displays to directus_users (#4069)
Fixes #3971
2021-02-15 16:27:03 -05:00
Nitwel
a589b9553c Make fields of files either readonly or hide them (#4053)
* make fields of file readonly to hinder confusion

* hide upload fields because duplication of information
2021-02-15 10:10:25 -05:00
Rijk van Zanten
b7d87e581a System permissions for app access (#4004)
* Pass relations through schema, instead of individual reads

* Fetch field transforms upfront

* Fix length check

* List if user has app access or not in accountability

* Load permissions up front, merge app access minimal permissions

* Show app access required permissions in permissions overview

* Show system minimal permissions in permissions detail

* Fix app access check in authenticate for jwt use

* Fix minimal permissions for presets

* Remove /permissions/me in favor of root use w/ permissions

* Fix logical nested OR in an AND

* Use root permissions endpoint with filter instead of /me

* Allow filter query on /permissions

* Add system minimal app access permissions into result of /permissions

* Remove stray console log

* Remove stray console.dir

* Set current role as role for minimal permissions

* Fix no-permissions state for user detail

* Add filter items function that allows altering existing result set
2021-02-11 12:50:56 -05:00
Rijk van Zanten
693e770ca3 Make filename disk readonly (#3883)
Fixes #3863
2021-02-01 10:24:27 -05:00
Ben Haynes
9a9d0d9789 fix settings field defaults 2021-01-25 19:33:56 -05:00
Ben Haynes
36d5fafbf7 add default system divider color 2021-01-13 17:57:22 -05:00
rijkvanzanten
996e9f34ac Fix lang import, use system-languages interface on users 2020-12-08 13:39:50 -05:00
Igor Savin
7cddb458cb Run prettier across app and api 2020-12-08 02:22:00 +02:00
Nicola Krumschmidt
7a36dd3d0a Remove unused required properties 2020-12-01 18:51:27 +01:00
rijkvanzanten
0cdc85e607 Revert global width
Needs some more thinking / experimentation
2020-11-27 18:28:07 -05:00
rijkvanzanten
4f29681fa2 Fix lookup 2020-11-18 12:39:26 -05:00
rijkvanzanten
137fba838d Fix conceal on user 2020-11-12 18:22:04 -05:00
rijkvanzanten
982fa6aded Cast permissions validation as json
Should fix #965
2020-11-12 10:57:55 -05:00
rijkvanzanten
f1289a66dc Use csv of strings for permissions fields 2020-11-04 11:31:04 -05:00
rijkvanzanten
3a620fe1f8 Fix migrations reading .ts files 2020-10-30 15:50:00 -04:00
rijkvanzanten
d8339ae70d Merge branch 'main' into assets 2020-10-29 16:03:04 -04:00
rijkvanzanten
d21dfa74ba Add system fields for all collections 2020-10-29 15:42:26 -04:00
rijkvanzanten
9c04c92aa4 Add system flag to system rows 2020-10-29 14:51:05 -04:00
rijkvanzanten
0f729a5d6b Move preview defaults to app 2020-10-29 13:39:39 -04:00
rijkvanzanten
d3ca132fad Move system relations out of db 2020-10-29 13:29:07 -04:00
rijkvanzanten
ee9baf02c0 Move system fields out of DB 2020-10-29 13:06:37 -04:00
rijkvanzanten
23fd029687 Move system collection rows out of DB 2020-10-28 16:26:46 -04:00