Commit Graph

646 Commits

Author SHA1 Message Date
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
rijkvanzanten
689ccffa2d Add roles to recommended app default permissions
Fixes #4212
2021-02-23 12:02:00 -05:00
rijkvanzanten
301d5a3337 Add "show hidden collections" context menu
Closes #3310
2021-02-22 19:49:53 -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
Nitwel
2ee639964c Show prompt when having unsaved changes (#4174)
* show prompt when having unsaved changes

* alert also for users and files
2021-02-19 14:51:53 -05:00
Ben Haynes
d1fb64223d in-app docs styling updates 2021-02-18 14:25:32 -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
3615612da0 Apply search to filter_count
Fixes #4121
2021-02-17 10:47:57 -05:00
rijkvanzanten
07ea3870ba Fix revisions permissions check for admin users
Fixes #4114
2021-02-17 10:32:49 -05:00
rijkvanzanten
5aad79dc5a Navigate away from bookmark on bookmark delete
Fixes #3766
2021-02-16 16:58:41 -05:00
YannickMol
927042189c Remove dots when disabled (#4075)
* Remove dots when disabled

Fixes #4038

* Revert "Remove dots when disabled"

This reverts commit 2276023471.

* Update save-options

Fixes #4038

* Remove dots in files and users routes

* Remove :disabled tags
2021-02-16 14:07:09 -05:00
WoLfulus
813c731d27 Add config override support to env module (#4029)
* add override support for env module

* Override instead of merge w/ config file

* Default to reading .env instead of process.env

* Make env available in process.env

* Add docs for config-files

* Extend note

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-16 11:38:07 -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
Rijk van Zanten
81fc8443df Don't wrap text in nav (#4035)
* Move v-list-item-text to v-text-overflow, use in tables

* Fix type issue
2021-02-12 16:39:17 -05:00
rijkvanzanten
533b235920 Prevent cyclical dependency between app/api 2021-02-11 13:17:06 -05:00
Rijk van Zanten
1064d10296 Fix file imports now that vetur supports monorepos (#4016) 2021-02-11 13:08:59 -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
df22a58c6a Update in-app docs (#3989)
* Fix root redirect

* Fix html in headings

* Add graphql syntax mode

* Install markdown-it + plugins

* Fix file copying on mac

* Replace md rendering engine

* Fix wrong links in guides

* Scroll to top on every route change

* Update in-app links

* Fix home redirect

* Fix deep-linking paths

* Add to reference

* Fix nested group scoping

* Fix open path reference
2021-02-09 18:31:25 -05:00
Rijk van Zanten
d9717c1df7 Navigate back to parent folder on file save/delete-and quit (#3976)
Fixes #3909
2021-02-08 16:57:38 -05:00
Rijk van Zanten
bf2d99a534 Fix infinite loop in recent files filter (#3975)
Fixes #3942
2021-02-08 16:36:09 -05:00