Commit Graph

671 Commits

Author SHA1 Message Date
Ben Haynes
b86966edc4 User header update 2021-04-12 11:12:01 -04:00
Nitwel
c7f2b05c00 Fix drawer item title not showing data (#4940)
* fix drawer item title not showing data

* load template items relational

* Only render preview on first load

* Fix type issue

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 18:05:41 -04:00
Nitwel
44091e6f41 Add option to auto refresh collections (#4777)
* add auto refresh

* add refresh_interval to DB

* remove refresh_interval template

* set refresh interval default to null

* Fix typo in filename

* Rename sidebar-auto-refresh to refresh-sidebar-detail

* Rename import

* Add badge on active refresh, change options

* Fix refresh not working on refresh

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 17:24:40 -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
Nitwel
78b8653369 Make collection list searchable (#4780)
* add searchability to collections

* restyle and make collection search persistent

* increase min collection

* hide whole search

* Style tweaks

* More style tweaks

* Rename collections navigation search

* Remove unused prop

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 14:55:08 -04:00
Nitwel
1e3824346d Load extensions in parallel (#4859)
* clean up app reference

* fix table

* load custom extensions in parallel

* batch promises

* Use async-pool for batching

* Very strange

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-09 13:26:27 -04:00
Nitwel
3905157258 keep bookmark on detail (#4860) 2021-04-09 12:39:52 -04:00
rijkvanzanten
48f2653406 Fix type issue 2021-04-08 17:22:22 -04:00
Ben Haynes
7870394291 Permissions component background color 2021-04-08 17:09:24 -04:00
Ben Haynes
e61aea53f9 Docs markdown styling adjustmsnts 2021-04-08 17:09:05 -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
Rijk van Zanten
6b742b8cb5 Fix root path in extensions fetching (#4919)
Fixes #4733
2021-04-08 17:04:18 -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
Nitwel
534c207c48 Render Template load relational data (#4852)
* remove non existing fields

* show relational template on items

* make relational loading cleaner

* Move item templateValues fetching to item detail

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-08 16:04:31 -04:00
rijkvanzanten
2e5b053d99 Fix app links and old rest references 2021-04-08 15:36:11 -04:00
YannickMol
10a1a20074 Hide "Create User" prompt if you don't have create access to role (#4914) 2021-04-08 14:41:40 -04:00
Valentino Stillhardt
408096ed14 Fixed routes with missing end slash (#4911) 2021-04-08 14:40:53 -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
11e191f426 Add /admin to file if in production (#4826)
* add /admin if in production

* Use /admin regardless of env

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-07 12:22:24 -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
6f9b2cafcd Add page titles (#4775)
* restructure template rendering

* add useTitle composable

* Split up render-string-template from getFieldsFromTemplate

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-31 10:53:57 -04:00
Nitwel
a4bc96882b make o2m sort editable (#4772) 2021-03-31 09:40:10 -04:00
WoLfulus
3c1204b928 SDK 2.0 (#4510)
* add new sdk

* update version

* fixes and sdk documentation

* typing updates, documentation

* added missing endpoints

* targeting minified version for unpkg

* removed unused types file

* fixed non minified versions

* fix sdk exports

* fix the fix

* Remove old sdk

* Remove old sdk docs

* Install types for Jest, add npm test

* Rely on npm exclusively

* Remove examples folder

* Move typescript down

* Update sdk.md

* added auto refresh and requested changes

added more http test calls
fixed typing issue in customized types

* remove unused endpoint

* updated docs

* added singletons, fixed typing issues, added password handlers

* rename graphql function and fixed system endpoint

* Remove unused imports, fix build

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Ben Haynes <ben@rngr.org>
2021-03-30 18:23:23 -04:00
Nitwel
187384b831 Fix sort field not nullable (#4747)
* make input nullable

* remove nullable
2021-03-30 13:02:35 -04:00
Nitwel
70b15eef46 fix discard not closing on singleton (#4727) 2021-03-29 10:13:00 -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
Ngai Kam Wing
e9f18975d8 Reduced chunk vendor build size ( Parsed size from 3.48MB to 1.19MB ) (#4645)
Split out wysiwyg and markdown code into a separate chunk.
2021-03-24 12:09:11 -04:00
Rijk van Zanten
be611a03f9 Change revert action to insert changes into page (#4637)
Closes #3941
2021-03-23 11:59:00 -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
rijkvanzanten
964c94e81f Show validation errors in users/files in app 2021-03-05 18:39:34 -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
a079184a56 Fix JS error on user delete
Fixes #4379
2021-03-04 10:36:24 -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
496768af2f hide overflow and location when on mobile (#4286) 2021-02-25 09:59:24 -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