Commit Graph

728 Commits

Author SHA1 Message Date
Adrian Dimitrov
670b456237 Fix colors on different types (#7322)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-10 16:45:16 +00:00
rijkvanzanten
26a8291e3e Resolve sorting in list-o2m-tree-view on dnd 2021-08-10 11:01:23 -04:00
rijkvanzanten
260506d5cf Improve type checking 2021-08-10 10:23:45 -04:00
Nicola Krumschmidt
b1f1f6d25b Log error message when registering app extension fails (#7274) 2021-08-09 12:09:20 +00:00
Rijk van Zanten
627d843aed Update/tweak groups (#7229)
* Split detail/raw groups, tweak accordion

* Add update groups migration
2021-08-06 00:27:26 +02:00
Rijk van Zanten
fb9ee7ab30 Add show all/selected toggle to tree-select (#7161) 2021-08-03 17:32:01 +02:00
Rijk van Zanten
7a8eeac88b Title format repeater names (#7141)
Fixes #7138
2021-08-02 22:01:56 +02:00
Rijk van Zanten
562d4c4a47 Fix default value of select-icon interface (#7131)
Fixes #7120
2021-08-02 18:14:56 +02:00
Rijk van Zanten
38896075d4 Add accordion group (#7130)
* Start on accordion group

* Add some basic styling to accordion sections

* Update style, add multiple option, add shift-click

* Only toggle-all on multiple option

* Finish styling of accordion sections

* Tweak styling

* Add 'start' option to accordion

* Rename group-raw -> group-standard, add header option

* Replace group-divider with group-standard
2021-08-02 18:12:52 +02:00
Rijk van Zanten
ae40445dee Add a standardized max-height to tree select interface (#7103) 2021-07-30 18:59:02 +02:00
Rijk van Zanten
673818b04e Surface dropdown choices in advanced sidebar filter (#7101)
* Mark scope as system field

* Surface choices in advanced sidebar detail
2021-07-30 18:16:34 +02:00
Phillip Assmann
1bb2531281 First implementation (#7059)
Added the `start_open` and `defaultActive` fields
and translations (for englisch and german)

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-07-29 11:17:19 -04:00
Rijk van Zanten
d94548992e Remove illegal words from translations root (#7045)
Fixes #7033
2021-07-28 18:55:38 +02:00
Luan Mattner Müller
622d90a7e5 Handle autocomplete empty path configurations (#7025) 2021-07-28 10:21:13 -04:00
Rijk van Zanten
92e1ee77bd Add support for Conditional Fields (#6864)
* Add conditions field to directus_fields

* Add conditions configuration

* Apply conditional overrides

* Handle conditions in nested groups

* Fix reverse mutating conditions

* Start on filter setup interface

* Move field types/constants to shared

* [WIP] Updated client side filter validation

* Support logical operators in client validation step

* Use new validation util in conditions check

* Add nesting in filter seutp

* Add filter rule setup configurator

* Fixes that should've been done in the merge

* Strip out filter-settings interface

TBD in a new PR

* Move browser to index
2021-07-26 18:02:24 -04:00
Nicola Krumschmidt
32972f4c01 Move define extension functions to shared and expose them through extension-sdk (#6880)
* Move defineInterface to shared

* Split up utils into node and browser utils

* Move defineDisplay to shared

* Move defineLayout to shared

* Move defineModule to shared

* Add defineEndpoint and defineHook to define-extensions

* Expose define extension functions through extension-sdk

* Make route type of defineEndpoint more specific

* Simplify define extension functions

* Deduplicate types and local types definition

* Do not allow functional components in display handler

* Make interface options nullable

* Deduplicate extension types definition

* Fix utils/node exports
2021-07-22 17:02:29 +02:00
Pascal Jufer
b0eeacffe3 Remove unused 'ref' (eslint warning) (#6921) 2021-07-22 13:25:13 +02:00
Adrian Dimitrov
efe7b076a3 Add default-folder option (#3209)
* Allow set folder for imported files

* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.

* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).

* Add custom folder interface; use props for interfaces file/files/image in upload component

* Allow set folder for imported files

* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.

* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).

* Add custom folder interface; use props for interfaces file/files/image in upload component

* Update after rebase

* Add storage_default_folder setting, use folder when deploy file

* Fix files options; Add default label option for folder interface.

* Fix set folder for file

* UX

* Add migration for column, undo seed change

* Update nomanclature

* Make sure file library always submits folder, cleanup setting retrieval

* Use indexName on down migrate

* Fix import default folder, rename customPresets->folderPreset

* Rename interface import

* Use undefined as default folder

* Remove deprecated lang file

* Fix display of folder interface, treat null as value

* Move shared composable

* Remove unused ref

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-07-21 17:29:21 -04:00
Nicola Krumschmidt
b61543c0e9 Move DeepPartial to shared (#6886)
Also cleans it up and adds support for readonly arrays.
2021-07-20 11:40:59 -04:00
Rijk van Zanten
ac414877a6 Auto-open groups on search in tree-select (#6838) 2021-07-15 22:18:06 +02:00
Rijk van Zanten
d38681c2ee Add v-md directive (#6835)
* Use stricter Vue eslint setting

* Implement v-md directive

Replaces old uses of v-html + md util

* Fix typo
2021-07-15 18:01:30 +00:00
Rijk van Zanten
5f7dce54e2 Use stricter Vue eslint setting (#6833) 2021-07-15 13:49:59 -04:00
Rijk van Zanten
003d1fe20f Fetch all languages in the translations interface (#6800)
Fixes #6698
2021-07-15 01:03:21 +02:00
Nicola Krumschmidt
2d63a411f1 Fix md editor being empty when editing existing value (#6733)
Fixes #6730
2021-07-14 11:24:12 -04:00
Rijk van Zanten
0a20b90691 Add support for field grouping (#6553)
* Update icon font, add group type to field setup

* Add group type, start on group-raw interface

* Add style for group

* Finish nested groups

* Finish field group setup

* Add type check

* Work on group raw group

* Various

* Fix support for nested groups

* Add group-divider interface

* Remove unused file

* Fix linter warning
2021-06-28 19:17:55 -04:00
Nicola Krumschmidt
8823434046 Fix translations interface options crashing the App (#6530) 2021-06-28 11:04:11 -04:00
Nicola Krumschmidt
051df415df Fix extensions (#6377)
* Add support for npm extensions

* Allow extensions to import vue from the main app

* Bundle app extensions on server startup

* Fix return type of useLayoutState

* Add shared package

* Add extension-sdk package

* Add type declaration files to allow deep import of shared package

* Add extension loading to shared

* Refactor extension loading to use shared package

* Remove app bundle newline replacement

* Fix extension loading in development

* Rename extension entrypoints

* Update extension build instructions

* Remove vite auto-replacement workaround

* Update package-lock.json

* Remove newline from generated extension entrypoint

* Update package-lock.json

* Build shared package as cjs and esm

* Move useLayoutState composable to shared

* Reverse vite base env check

* Share useLayoutState composable through extension-sdk

* Update layout docs

* Update package versions

* Small cleanup

* Fix layout docs

* Fix imports

* Add nickrum to codeowners

* Fix typo

* Add 'em to vite config too

* Fix email

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-06-23 12:43:06 -04:00
Rijk van Zanten
b77285f3c3 Fixed issue that would prevent source code editing from staging values in wysiwyg (#6455)
Fixes #6306
2021-06-22 19:56:46 -04:00
Rijk van Zanten
7c562ec000 Fixed color option of the notice presentation interface (#6454)
Fixes #6353
2021-06-22 19:52:08 -04:00
Rijk van Zanten
7122b5d3b9 Fixed issue that would throw error in console when creating a new item in a collection w/ translations (#6453)
Fixes #6370
2021-06-22 19:48:45 -04:00
Johann Rekowski
bd5ca64db3 Fix spacings and icons on presentation link buttons (#6361)
* Fixed spacings between presentation-link buttons

* Fixed cut off icons on persentation-link buttons

* Use flex gap instead of margin

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-06-22 19:45:06 -04:00
Rijk van Zanten
e45a3e0570 Don't try rendering w/h when dont exist (#6450)
Fixes #6384
2021-06-22 19:16:47 -04:00
rijkvanzanten
9a2304a182 Clean up markdown value staging 2021-06-22 19:12:14 -04:00
Rijk van Zanten
aff2cebf2a Pass active codemirror instance to edit action (#6449)
Fixes #6373
2021-06-22 19:06:59 -04:00
rijkvanzanten
8eeac67e61 Don't overwrite preview with updated structure
Fixes #6407
2021-06-22 18:59:46 -04:00
Rijk van Zanten
5e5d0a0e41 Fix display template on collection detail page (#6442)
* Tweak spacing of checkboxes tree

* Fix scoping of attrs on v-field-template

Fixes #6422
2021-06-22 17:26:11 -04:00
rijkvanzanten
f53572335a Tweak spacing of checkboxes tree 2021-06-22 17:21:41 -04:00
Rijk van Zanten
bdbd63bb5c Add checkboxes-tree interface (#6441)
* Add checkboxes-tree interface

* Fix nested disabled state
2021-06-22 17:21:19 -04:00
Rijk van Zanten
0d899f097d Add ability to specify what fields to clone on "Save as Copy" (#6379)
* Start on tree-select component

* Stop propagation on label click as well

* Setup temp debug route

* Add value-combining=all

* Add branch mode

* Add leaf mode

* Add indeterminate state

* Add search

* Keep group state alive during search

* Fetch existing item based on clone fields data

* Add interface for setup

* Tweak field structure of m2a items

* Use collection name in checkbox

* Remove temp test
2021-06-18 16:37:27 -04:00
Rijk van Zanten
74799990be Fix emitter on input options (#6318)
Fixes #6312
2021-06-16 11:31:34 -04:00
rijkvanzanten
95f4b1c521 Fix console log usages in linter 2021-06-14 15:10:50 -04:00
Rijk van Zanten
706f4af68b Fixed issue that could cause the HTML interface to emit a change on first load (#6264)
* Don't emit changes on first content setter

Fixes #6218

* Fix type issues
2021-06-14 14:45:54 -04:00
Rijk van Zanten
35a304fd0a Fixed issue that would prevent the m2o from working on foreign keys with no meta row (#6263)
* Fix m2o reading from optional value

Fixes #6207

* Use optional chaining
2021-06-14 14:32:25 -04:00
Nicola Krumschmidt
0ca7f8c6eb Fix collection selection in system-collections interface (#6258) 2021-06-14 10:41:19 -04:00
masterwendu
2174d9e971 #6217 fix missing styling of tinymce (#6236)
* #6217 fix missing styling of tinymce

* #6217 remove unused css imports
2021-06-14 10:24:17 -04:00
dependabot[bot]
cd2e24d82c Bump vuedraggable from 4.0.1 to 4.0.3 (#6197)
* Bump vuedraggable from 4.0.1 to 4.0.3

Bumps [vuedraggable](https://github.com/SortableJS/Vue.Draggable) from 4.0.1 to 4.0.3.
- [Release notes](https://github.com/SortableJS/Vue.Draggable/releases)
- [Commits](https://github.com/SortableJS/Vue.Draggable/commits)

---
updated-dependencies:
- dependency-name: vuedraggable
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update vite as well

* Update vite, fix imports

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-06-11 09:43:31 -04:00
Rijk van Zanten
4cb8d1f814 Add additional check to Two-Factor Authentication (by @masterwendu) (#6187)
* 6113 add tfa generate endpoint

* 6113 implement tfa otp check in user settings

* 6113 add autfocus for otp field on login form

* update package-lock

* improve TFA uri with user email

* fix vue 3 compatibility

* reduce code duplication for enableTFA

* Remove unnecessary parameters

* Use project name in otp url when available

* Update docs/reference/api/system/users.md

Co-authored-by: Wendelin Peleska <wendu@pm.me>
2021-06-10 15:36:34 -04:00
Nicola Krumschmidt
f55a2072e1 Refactor bookmark query navigation (#6170)
* Revert back to using query params for bookmarks

Aka "this hurts so much"

* Fix collection navigation active state

* Add active and query props to v-button

Also unify active and activated state.

* Remove not needed exact prop from collections navigation
2021-06-10 15:11:01 -04:00
Rijk van Zanten
1f2bce9fd2 Prevent translation rows from being edited before existing values are loaded (#6173)
Fixes #6094
2021-06-09 19:13:03 -04:00
Rijk van Zanten
e20ad6c6b5 Use JSON editor for JSON field type default value (#6171)
Fixes #6088
2021-06-09 18:52:48 -04:00