Commit Graph

409 Commits

Author SHA1 Message Date
Pascal Jufer
acd41eb0be Syntax fixes (#5367)
* Declare return types on functions

And a very few other type related minor fixes

* Minor syntax fixes

* Remove unnecessary escape chars in regexes
* Remove unnecessary awaits
* Replace deprecated req.connection with req.socket
* Replace deprecated upload with uploadOne
* Remove unnecessary eslint-disable-next-line comments
* Comment empty functions / catch or finally clauses
* Fix irregular whitespaces
* Add missing returns (null)
* Remove unreachable code
* A few logical fixes
* Remove / Handle non-null assertions which are certainly unnecessary (e.g. in
tests)
2021-04-29 12:11:43 -04:00
rijkvanzanten
81f488fc8e Rename required->allow null 2021-04-27 17:22:22 -04:00
rijkvanzanten
292dcedb14 Fix close button on public role permissions detail
Fixes #5298
2021-04-27 16:38:17 -04:00
rijkvanzanten
7a13c603a0 Fix batch deleting presets
Fixes #5234
2021-04-26 11:49:56 -04:00
rijkvanzanten
aa808313ad Add elipsis/tooltips for existing relationships 2021-04-22 17:31:37 -04:00
rijkvanzanten
7a2210d3af Remove auto-fill for existing relationship configuration 2021-04-22 17:18:04 -04:00
Nitwel
7d64c8ab47 Relational consistency (#4093)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-21 23:31:12 +00:00
Ben Haynes
a4b4f79a16 Fix create translations alignment 2021-04-20 19:18:40 -04:00
rijkvanzanten
7fa4997f73 Fix onCreate onUpdate options for datetime fields
Fixes #5116
2021-04-20 17:48:07 -04:00
rijkvanzanten
d43c88095e Don't allow singletons to be selected in m2a context
Closes #4406
2021-04-15 12:04:02 -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
Rijk van Zanten
bcac4b80c2 Fix perf regression in translations (#5041)
* Only translate extensions on language load

* Make table-row functional
2021-04-13 17:00:22 -04:00
WoLfulus
42393951e0 Test runners for storage drivers (#4716)
* add tests to drive

* add azure test runner

* add gcs test runner

* add s3 test runner

* quick changes

* Re-add npm run dev

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 15:40:12 -04:00
Ben Haynes
7870394291 Permissions component background color 2021-04-08 17:09:24 -04:00
Ben Haynes
63666314ab fix permission background color 2021-04-08 17:06:53 -04:00
Ben Haynes
7654b0d8f1 Black system dividers 2021-04-08 17:06:33 -04:00
Nitwel
93f8b7720c Fix translations not working on displays, modules... (#4734)
* generalyze extensions

* replace vue-i18n tranlslations

* replace vue-i18n tranlslations

* add missing commas

* replace translations recursive

* restructure translate

* remove unused i18n

* remove unused i18n

* remove unused i18n

* Remove i18n context in define

* Rename translate util file

* Fix type errors

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-08 16:36:55 -04:00
YannickMol
f36b464be7 Add close button to permissions detail (#4909) 2021-04-08 11:28:20 -04:00
Ben Haynes
0967bb3e86 Relational arrow alignment 2021-04-08 09:55:14 -04:00
YannickMol
67040ea4ce Redesign overflowing field on settings page (#4897) 2021-04-07 18:31:58 -04:00
Nitwel
b04f620792 make data-model collection options persistent (#4823) 2021-04-02 09:45:18 -04:00
Fatih Kaya
658dc7ade0 fix typo: use actual null. fixes #4801 (#4803) 2021-04-01 09:17:05 -04:00
Nitwel
a4bc96882b make o2m sort editable (#4772) 2021-03-31 09:40:10 -04:00
Nitwel
187384b831 Fix sort field not nullable (#4747)
* make input nullable

* remove nullable
2021-03-30 13:02:35 -04:00
Rijk van Zanten
b562ceeb0c Add Tree-View Interface (#4602)
* Fix local type extraction

* Render basic tree in tree-view

* Render drawer-item in tree-view-group

* Retrieve nested draggable changes

* Default sort query to configured sortField

* Store nested group / sort to API

* Allow updating item values

* Figure out a dropzone approach on preview

* Finish editable tree view

* Set sort value based on sort field in relation

* Add create-new / add-existing

* Respect previously made nested edits

* Add description in setup

* Fix fetching level of o2m sort field

* Remove min height on empty root

* Remove unused types

* Add notice for invalid relationship type

* Allow recursive o2m in setup

* Styling tweak

* Revert changes in v-list

* Revert changes in groupable
2021-03-26 17:12:55 -04:00
rijkvanzanten
2f163a91b4 Cast sort to number in field layout settings
Fixes #4600
2021-03-22 20:32:00 -04:00
rijkvanzanten
6b6ad1fbb4 Make sort-field reactive 2021-03-22 12:01:40 -04:00
Rijk van Zanten
2cdf18545e Remove support for CSV in PK param (#4514)
* Remove csv in pk param

Closes #3933

* Remove last uses of csv in route pk params in app
2021-03-12 18:06:35 -05:00
Rijk van Zanten
4248b187bb Implement unique constraint support (#4467)
* Allow creating unique fields

* Allow removing unique constriant

* Show unique constraint error as validation error in app
2021-03-10 17:35:21 -05:00
Nitwel
f2f6de949c Adding and removing collections from m2a (#4271)
* add adding and removing collections from m2a

* warn when the collection has been deleted

* simplify nonExistent items check

* Cleanup

* Remove unnecessary continue

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-04 19:02:32 -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
d8985bb823 Fix type issue 2021-03-04 11:10:47 -05:00
rijkvanzanten
9dfcc7c6fb Don't append index on first collection 2021-03-04 10:57:33 -05:00
rijkvanzanten
f63edc266d Fix dnd in safari
Fixes #4345
2021-03-04 10:32:41 -05:00
rijkvanzanten
eb4deaa955 Default field sort order to database ordinal sort
And use alphabetical where appropriate

Fixes #4341
2021-03-03 18:36:21 -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
Nitwel
0db81f13ff fix new collection fields position (#4285) 2021-02-25 09:58:10 -05:00
rijkvanzanten
3d33b9db55 Allow and ignore null schema in field update
Fixes #4254
2021-02-23 17:06:35 -05:00
rijkvanzanten
474d68499b Fix wrong type in corresponding m2m field
Fixes #4243
2021-02-23 14:45:54 -05:00
rijkvanzanten
689ccffa2d Add roles to recommended app default permissions
Fixes #4212
2021-02-23 12:02:00 -05:00
Nitwel
ef33d2edfe Add search field in settings > presets (#4176)
* add search field in settings > presets

* move search field to the sidebar
2021-02-22 12:43:31 -05:00
Nitwel
79eff4d5b2 Add notification when new field will be generated (#4148)
* add notification when new field will be generated

* add detailed info on which data will be generated

* update style of notification

* update paddings
2021-02-19 15:07:04 -05:00
rijkvanzanten
7f652ced4f Fix loading indicator state of v-table
Fixes #4157
2021-02-18 13:42:22 -05:00
Nitwel
52922866ef sort fields when getting them from the store (#4154) 2021-02-18 12:54:49 -05:00
Nitwel
f3807a57c0 Live preview title when creating new field (#4129)
* Live preview title when creating new field

* rename translation name
2021-02-17 12:10:04 -05:00
rijkvanzanten
4ec0c1fa5f Default default default value placeholder to "NULL" 2021-02-15 14:05:38 -05:00
Nitwel
e1b353b38b fix translation of module names (#4057) 2021-02-15 11:32:36 -05:00
Nitwel
6d468fb2bf m2o fix corresponding type not set (#4052)
* m2o fix corresponding type not set

* Update app/src/modules/settings/routes/data-model/field-detail/components/relationship-m2o.vue

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-02-15 10:08:32 -05:00
YannickMol
902b760676 Autofocus on name when duplicating field (#4039)
Fixed #3392
2021-02-12 17:55:57 -05:00