Commit Graph

752 Commits

Author SHA1 Message Date
Azri Kahar
6acd0b31a2 Update system-filter interface to use v-field-list (#12320)
* update system filter to use v-field-list

* remove unused code

* use v-field-list in nodes

* prevent node name wrapping

* use prepend as the correct term

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-03-25 12:27:25 -04:00
Azri Kahar
0f3e5a4463 Fix action for updateAllowed in M2M usePerms (#12371) 2022-03-25 02:55:07 +00:00
rijkvanzanten
0f1dd6739d Use correct interface in dropdown choices 2022-03-23 14:35:52 -04:00
Azri Kahar
d086b7dc82 Prevent M2M item edits without permission via app (#12312) 2022-03-23 11:05:08 -04:00
Azri Kahar
37cbaa0be5 Add App Translation Strings in Settings (#12170)
* add migration for translation strings

* add to navigation

* WIP

* fix dialog overflow

* update translation keys

* Update logic

* add placeholder to system-language

* fix translation

* remove unused import

* reset dialog on create new

* ensure search input is visible when searching

* merge translation strings on set language

* merge translation strings on update

* hydrate

* make sure null translation do not get merged

* change dialog to drawer

* update placeholder text

* fix form value

* revert dialog style change

* rename drawer component

* Force safe key name

* Move interface to system interfaces

The saved values are Directus app proprietary, so to prevent confusion in what it's supposed to do, we'll move it to system.

* Move composable to root composables

* Use new languages input in interface/display options

* hide translation strings field in project settings

* set system true to system-input-translated-string

* use this in field detail notes

* use in list options

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-03-22 09:39:04 -04:00
Rijk van Zanten
9b8d72ec5c Fix start setting of detail group (#12280)
Fixes #12257
2022-03-21 11:42:24 -04:00
Rijk van Zanten
f40df2443d Fix color translation keys (#12279) 2022-03-21 11:40:33 -04:00
Azri Kahar
e6e129615e fix M2O field deletion (#11538)
* fix M2O field deletion

* fix lint

* fix for MySQL

* Pull final dropColumn out of transaction

* Forget that, check for existing constraint before deleting it instead

* Fix lint warning in unrelated file

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-03-18 15:36:50 -04:00
ian
6d8b17ed6a Improvements to WYSIWYG interface (#12216)
* Ignore field value updating if it is disabled

* WYSiWYG: Allow to undo Insert image, Insert link, Insert media and Edit source code custom actions

* Bind MutationObserver to correct tinyMCE node

* Fix apply for disabled fields

* Emit null when empty

Co-authored-by: Andrew <trubay.andrey@gmail.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-03-18 14:53:57 -04:00
Ben Haynes
2474a0ddc0 Style updates (#12229)
* default badge color to red

* update notice styling to avoid color variants

* darker warning color

* update dark mode primary color

* update svg previews

* show slider values by default

* add subtle glow to field focus

* add additional color options

* no yellow in settings

* Give status display proper defaults

* Use setup script + translations

* Add low-contrast flag to preset

* update date-picker header style

* add placeholder to datetime interface

* Fix sizing of image preview

* Fix spacing / border situation

* select color

* Render small images at original size

* More file library love

* update datetime placeholder

* datetime font weights

* Fix style lint issue

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-03-18 15:52:04 +00:00
ian
bc0f23f092 Fix WYSIWYG link keyboard shortcut and add parent anchor tag detection (#12218)
* Fix WYSIWYG link keyboard shortcut and add parent anchor tag detection

* Fix saving of link on parent anchor tag
2022-03-18 08:51:14 -04:00
Azri Kahar
c790f0355a fix number input step up/down when undefined (#12222) 2022-03-18 08:50:13 -04:00
Rijk van Zanten
69280c8ecf Add direct download option to files interface (#12220) 2022-03-17 18:19:10 -04:00
Rijk van Zanten
1c3e94d830 Add new export experience (#12201)
* Use script setup

* Start on export dialog

* Use new system field interface, replace limit with numeric input

* Set placeholder

* Add sort config

* Use folder picker, correct layoutQuery use

* Add local download button

* Allow writing exports to file

* Add notification after export

* Fix sort config, use new export endpoint

* Setup notification hints

* Add information notice

* Fix local limit, cancel button

* Add (basic) docs for export functionality

* Fix json export file format

* Implement xml batch stitching

* Resolve review points
2022-03-17 15:43:45 -04:00
Azri Kahar
b114dc0ad4 use type json for select-color preset option field (#12192) 2022-03-16 09:36:34 -04:00
Andrey Trubay
cf3e86bebd Collection name layout fix (#12169) 2022-03-15 10:37:14 -04:00
Azri Kahar
76f463c608 Form error validation improvements (#12001)
* expand groups on save when they contain error(s)

* bubble to top & scroll top

* fix groups validation errors watcher

* fix group acordion's first error field selection

* update global error notice

* WIP - field validation

* tweak validation errors list styling

* more validation-errors-list tweaks

* click and scroll to field

* move validation error notice to a component

* tweak use-item validate

* validate drawer item

* extract validateItem function

* Revert "WIP - field validation"

This reverts commit f6ffd836c4.
2022-03-09 16:48:10 -05:00
ian
079cf60425 Close WYSIWYG fullscreen when opening drawer or dialog (#12037) 2022-03-08 12:06:14 -05:00
rijkvanzanten
a0733f7dab Fix video rendering in wysiwyg 2022-03-07 18:32:52 -05:00
Rijk van Zanten
6a3eb823c3 Update base theme of the App (#11952)
* Add migration to remove default value from project_color

* Upgrade the default theme

* Do a pass over the header buttons

* Do another pass over --warning uses

* Little things

* Tweak smoke

* Use updated map

* Use dark system elements in dark mode

* Remove outdated files, update toasts

* Use correct delete button style for role

* Use primary for created point

* Tweak spacing in revisions section

* Use primary for sidebar sections

* Various color tweaks and changes

* Update base color palette

* Update "css reset" code

* Remove splashscreens, add default favicon

* Add primary highlight to datamodel page

* dark mode color update

* fix sign out hover color

* Does this help?!

* This fixes some loading issues

Fixes https://github.com/directus/directus/issues/10707

* Calculate default pretty background?

* Fix public view with logo

* Fix responsiveness of login page

* adjust notification group width to be equal

* Do an absolute pointless task that doesn't do anything

It was suggested that it could fix the stylelint error in tests, but alas

* Remove stylelint

Doesn't seem to play nice with script setup and other changes

Co-authored-by: Ben Haynes <ben@rngr.org>
2022-03-04 18:53:39 -05:00
Azri Kahar
b44f9dd8d0 add number to prop type for radio and dropdown (#11924) 2022-03-03 10:38:08 -05:00
Azri Kahar
dec85f5659 add style to links in notice (#11925)
* add style to links in notice

* fix for stylelint

* unrelated: fix eslint warning for unused variables
2022-03-03 09:56:38 -05:00
Abdón Rodríguez Davila
838f37b9be Respect the disable the o2m sort option (#11893) 2022-02-28 18:42:15 +00:00
Azri Kahar
fc585000a0 Datetime interface improvements (#11783)
* Datetime interface improvements

* tweak click event
2022-02-28 12:23:23 -05:00
Azri Kahar
c85515ada6 Fix relational interfaces to return null when the array is empty after deselecting item(s) (#11765)
* Fix relational interfaces to return null on delete

* add fix to m2a

* fix treeview not clearing displayed list
2022-02-21 11:19:32 -05:00
Azri Kahar
00175ff1cb fix copy/paste for readonly code interface (#11769) 2022-02-21 11:14:48 -05:00
Azri Kahar
6b02935116 fix translations resetting for new records (#11746) 2022-02-20 17:52:45 -05:00
Azri Kahar
240a2b09f7 Align displayed time for 24 hours format (#11703) 2022-02-18 10:22:12 -05:00
Azri Kahar
abb2ecdf2e fix translations for singleton (#11697) 2022-02-18 10:21:26 -05:00
Azri Kahar
0dadccb822 add "press enter to close" for time inputs (#11705)
* add "enter to close" for time inputs

* add menu closing to datetime in system filters
2022-02-18 10:20:50 -05:00
ian
b3f7bd94a1 Remove access token from asset url when unnecessary (#10548)
* Remove access token when unnecessary

* Add missing translations

* Refactor naming convention

* Refactor naming convention

* Refactor access token usage for media upload

* Use static token for previews

* Add missing imageToken for image upload

* Rename imageToken to staticAccessToken

* Remove temporary access token from embedUrl

* Catch invalid URLs when replacing token

* Fix embedUrl not updating when source changed

* Patch audio and iframe uploads

* Hide tinymce offscreen selection

* Fix merge of interface fields

* Use static tokens except for preview

* Remove dirty checks through v-model for wysiwyg

* Add missing translations

* Fix lint warnings

* Revert naming from staticAccessToken to imageToken
2022-02-16 11:56:14 -05:00
Azri Kahar
968d15ccd4 add nested translations support (#11672) 2022-02-16 11:44:30 -05:00
ian
1876fed65c Fix m2o interface display issues (#11567)
* Fix display of newly created entry in nested m2o interface

* Fix display of updated existing m2o entry
2022-02-16 09:42:43 -05:00
ian
4fd26f2b60 Prevent selection of Foreign Keys for collection sort (#11444) 2022-02-16 09:40:01 -05:00
Azri Kahar
2652fe2fbf fix translations interface divider's margin topc (#11469) 2022-02-16 09:31:34 -05:00
Azri Kahar
4e1c22bd88 Prevent filter's datepicker closing on month nav (#11503) 2022-02-16 09:30:26 -05:00
Azri Kahar
a1788e08ad Fix nested M2O field breaking parent M2O preview (#11582) 2022-02-16 09:29:27 -05:00
Azri Kahar
9ad0cd632e Auto fill display text when adding link in WYSIWYG (#11599) 2022-02-16 09:27:44 -05:00
Azri Kahar
bce3451be9 Add required field indicators to accordion group (#11640) 2022-02-16 09:24:01 -05:00
Azri Kahar
60928bafea Fix soft limit overflowing (#11526) 2022-02-08 21:18:37 +00:00
ian
7ef1ea3b5c Fix o2m interface selection issues (#11520)
* Retain newly created items when selecting existing o2m values

* Fix editing of newly created o2m entries
2022-02-08 15:09:04 -05:00
Nitwel
6b95de0feb fix items not loaded in relational modal (#11431) 2022-02-04 08:43:05 -05:00
Azri Kahar
3768ebb0ce Update toolbar items order in WYSIWYG editor (#11294)
* update toolbar items order of WYSIWYG editor

* move ordering of removeformat
2022-01-26 09:36:24 -05:00
Azri Kahar
9d7b3f266a fix sorting of select-multiple-dropdown values (#11289) 2022-01-26 07:55:17 -05:00
Azri Kahar
ed2d4b436e Prevent editing of fields within groups in Share (#11281) 2022-01-25 21:58:28 -05:00
Jay Cammarano
b96d7775d3 Add soft character limit to various inputs (#11009)
* added soft_length to lang

* added softLength option to input interface

* softLength => textarea, md, wysiwyg

* really broken but counting characters

* return 0 not null oops

* characters remaining displaying

* percentageRemaining => shared

* placeholders => string

* markdown inputs need to change preview css

* account for multiple md inputs

* works for multiple inputs on a page

* let it breathe

* text area but no warning color (yet)

* newline is 1 char

* null => undefined

* shows with 0 hard limit left

* softlength tied to maxlength

* preview displaying md

* using share util

* Replace shared "interface" with util

* Add test setup

* Lock package versions

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-01-20 20:58:57 +00:00
ian
71cb724b5f Remove marginTop option from presentation divider (#8467)
* Remove margins

* Remove marginTop from interface

* Remove margin for first divider in form

* Remove merge conflict resolve conflict resolve conflict

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-01-19 23:54:37 +00:00
Azri Kahar
4681a7ea78 Improve Width for Search Input & Filters (#10991)
* allow filters to be wider when possible

* remove min width of system filters' v-list

* dynamic width check for filter based on parent

* fix logic node wrapping

* tweak filter width based on main content

* early return for header element check logic
2022-01-12 10:18:06 -05:00
Rijk van Zanten
befbce677c Use consistent background color on image interface (#10959)
Fixes #10917
2022-01-10 11:50:52 -05:00
Azri Kahar
45b90e6888 Filter UI tweaks (#10951)
* Make AND/OR language consistent in Filter UI

* tweaks

* use em-dash as separator

* prevent and/or group disappearing for UX
2022-01-10 11:01:01 -05:00