430 Commits

Author SHA1 Message Date
Connor
1948ea09ce Update public-view.vue (#16078)
Fix Root URL for Background Image on Public Page
2022-10-20 10:18:43 -04:00
Azri Kahar
dc7c62f0ef Allow triggering manual flow without selection(s) (#15977)
* allow running manual flow without selection

* test for flows store

* update no items selected tooltip
2022-10-14 21:47:54 -04:00
Azri Kahar
37b1e99ed8 Remove handleObject default in render-template (#15999) 2022-10-14 19:29:40 -04:00
Nitwel
413d21fe4b treat empty array as null on relational field (#15958)
* treat empty array as null on relational field

* Run prettier

* add unit test

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-10-14 18:38:53 +00:00
Andrey Trubay
50859f852c Fix thumbnails not displaying in Files interface (#15736)
* Fix thumbs displaying in Files interface

* Use default field value if field exists but its value is undefined

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-10-12 11:49:10 +02:00
Brainslug
69797776f1 Add fallback message when no fields are visible in a form (#14778)
* Add fallback page when no fields are visible in a form

* fixed spacing for the linter

* properly show empty form message for relational drawer items

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-09-24 18:53:34 +00:00
Vincent Kempers
42261e5fa4 checking if there is a text or an error (#15579) 2022-09-15 11:36:57 +08:00
ian
551f1d82b4 Fix display dimensions of SVG in image edit drawer (#15463) 2022-09-12 21:49:22 -04:00
GBSTR
8c53346126 fix autofocus (#15450)
Co-authored-by: dev name <devn@brainpop.com>
2022-09-09 15:12:05 +08:00
ian
67ca1c266f Merge with M2M junction value when validating in drawer-item (#15433)
* Merge with M2M junction value when validating in drawer-item

* Simplify for null values

* Clear validation error messages on save
2022-09-06 14:14:50 -04:00
Azri Kahar
f087b3e43c Fix drawer item empty form for o2m/treeview (#15413) 2022-09-06 10:49:21 -04:00
GBSTR
213de3f5c6 fix divider not showing/ showing when not needed (drawer-item) (#14605)
* fix form divider when opened from drawer item

* remove redundant functions

* change back the form order to what is was

* add the option to swap between relation fields and junction fields

* fix language

* added m2m options as dropdown with more abilities

* remove the hide options and put off instead

* remove the off option from m2m junctionFieldLocation

Co-authored-by: Gabriel Shtenberg <gabriels@brainpop.com>
Co-authored-by: dev name <devn@brainpop.com>
2022-09-05 16:23:44 +02:00
ian
6be7e8f83b Merge with existing item when validating in drawer-item (#15386) 2022-09-04 11:54:24 +02:00
ian
8f7d2f8c5d Set limit as -1 for local exports when field is cleared (#15385) 2022-09-03 15:45:38 -04:00
Nitwel
5fe28db539 Add Components Package (#15094)
* move components without dependencies to packages

* make every components use vue script setup

* move components and utils from shared to @directus/components

* fix imports

* move over some more components

* get rid of unnecessary isEmpty and notEmpty

* move pagination

* fix missing !

* move groupable components

* move text-overflow and useElementSize

* fix icons not being shown

* add first unit tests

* remove capitalizeFirst

* simple cleanup

* add css-var unit test

* move over most other components

* make every component use script setup

* add some more unit tests

* add more tests and burn v-switch to the ground. 🔥

* add checkbox tests

* start with next test

* add storybook

* add more pages to storybook

* add final stories

* fix stories actions

* improve action fix

* cleaning props and adding tests

* unit tests -.-

* add some documentation to components

* Add docs to each prop

* clean storybook paths

* add more unit tests

* apply v-select fix

* update lock file

* small tweaks

* move back to shared

* fix imports

* fix imports

* cleaning

* stories to typescript

* Fix version number

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-09-01 16:07:31 -04:00
Brainslug
5915fa9f2b prevent sending "+" as primary key for newly created relational items (#15352) 2022-09-01 13:57:43 +02:00
Nitwel
f0fdd463a0 Fix drawer (#15336)
* start fixing the drawer

* debug

* fix drawer-item

* finish fixing all interfaces
2022-08-31 13:49:25 -04:00
Azri Kahar
425ef2f080 refresh on flow run & prompt unsaved changes (#14700) 2022-08-30 14:43:36 -04:00
Brainslug
b2d127dcc8 Default values ignored for validations affected by conditions (#15310)
* added default values when validating items

* abstracted default value parsing to its own util

* Added a basic test

* updated tests

* fixed import

* implementing the same fix for conditions on the drawer-item
2022-08-30 16:46:38 +02:00
Azri Kahar
f77d12eff4 Fix thumbnail overflow in render-template (#15115)
* fix thumbnail overflow in render-template

* new fix for render-template thumbnail in table

* fix thumbnail not working in page titles

* prevent thumbnail overflow in page title
2022-08-29 15:06:57 -04:00
Nitwel
ba3494572a Allow for displaying lists in render template (#15243)
* support arrays in render-template

* allow for rendering lists in render-template
2022-08-24 15:22:10 -04:00
Nitwel
61a8cca102 Fix filter not resetting on bookmarks (#15236)
* fix bug and make code consistent

* clean up unnecessary complexity
2022-08-24 15:21:13 -04:00
ian
122f8cfed0 Fix URL for subfolder assets (#15126)
* Prevent duplicate rootPath for image in file-preview

* Add rootPath to file and file-image for downloading

* Revert change to v-image

* Patch rootPaths accordingly

* Fix missing file name on download
2022-08-17 14:03:29 -04:00
José Varela
273e0edfa9 Do not validate circular fields (#14996) 2022-08-10 10:42:11 -04:00
Ramon van Bezouw
df054f294d RTL support in translation interface (#14665)
* first draft for translations rtl implementation

* make direction field dybamic

* Fixed default direction field

* added directionality to: tags, input-multiline, repeater (list)

* added directionality for wysiwyg, input-autocomplete, groups

* reverted directionality in wysiwyg-editor

* removed hardcoded rtl, ltr buttons from wysiwyg toolbar

* working directionality in wysiwyg editor

* also add v-if to await language for second language (split-view) in translations.vue

* added watcher for changing wysiwyg directionality on language change

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Martijn de Voogd <devoogd@kissthefrog.nl>
Co-authored-by: Martijn <73393707+martijn-dev@users.noreply.github.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-08-09 15:23:05 +02:00
Gerard Lamusse
2459d7d8ff Don't hide but set as readonly (#14834)
* Don't hide but set as readonly

* Update app/src/views/private/components/drawer-item.vue

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

* Add missing import

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-08-03 15:19:39 -04:00
Azri Kahar
5d96d752f4 Support custom aspect ratios in image editor (#14786)
* Support custom aspect ratios in image editor

* Add custom aspect ratios in file items as well

* Revert file item custom-aspect-ratio changes

* Use globally configured custom aspect ratios

* Remove previos custom-aspect-ratio logic

* code style tweak

* use migration instead of seed

* rename field to custom_aspect_ratios

* keep defaults + change icon

Co-authored-by: qborisb <boris@qdentity.nl>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-08-03 22:25:25 +08:00
Azri Kahar
bc27cfadba fix fields reactivity in export drawer (#14695) 2022-07-27 11:25:39 -04:00
ian
ce01288307 Reload image view when src is updated (#14646)
* Reload image view when src is updated

* Regenerate random ID after saving to bust cache
2022-07-26 11:52:50 -04:00
Brainslug
ef397e97b1 broken assets paths when serving Directus from a subfolder (#14650)
* removing getrootpath

* removed redundant getRootPath from components

* We use leading / everywhere else in api usage

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-26 11:29:14 -04:00
Azri Kahar
811da6e762 fix revisions drawer detail ref type (#14615) 2022-07-25 09:52:12 -04:00
Azri Kahar
7c5e763271 File Preview fixes (#14570)
* fix audio player not showing up

* Center horizontally for small width videos

* add letterbox to videos

* fix calendar list view styling

* Revert "fix calendar list view styling"

This reverts commit 030585d01b.
2022-07-25 09:42:31 -04:00
Rijk van Zanten
d6846d74eb Refactor unnecessary nested app folders (#14580)
* Remove unused nested folders from components

* Remove nested folders

* Standardize composables output

* Fix import inconsistencies

* Same trick for directives

* Same for routes

* Replace reliance root grouped export in favor of explicit imports

* Replace reliance on implicit imports

* Remove nested folder structure

* Consistent use of non-default exports in utils

* Remove nested folder structure from private components

* Fix test mock

* Remove extraneous component registration for valuenull

* Fix stores provider

* Fix logo sprite
2022-07-22 15:10:28 -04:00
ian
1b368291eb Revert to <img> for image editor (#14576)
* Revert to <img> for image editor

* Fix typings
2022-07-22 10:17:14 -04:00
rijkvanzanten
141501ac66 Fix pk typing 2022-07-21 11:50:21 -04:00
Rijk van Zanten
232e8e13d5 Add max height to folder picker (#14538)
Fixes #14399
2022-07-20 16:33:14 -04:00
Jay Cammarano
820457690f Optimize media loading across app (#10592)
* v-image and "lazy load" working

* fixed vars

* all the other img uses

* No longer require access token in url for files

* Add lazy loading and size limits

* Rename map-component source prop

* Fix lint warning

* Update app/src/views/public/public-view.vue

Co-authored-by: ian <licitdev@gmail.com>

* Fix lint

* Fix missing file type icon

* Fix null imageInfo error

* Use video.js for media playback

* Fix .js file display

* Update package-lock.json

* Update package-lock.json

* update package.json

* Update pnpm-lock.yaml

* Remove unrelated addition on VDatePicker

* Remove folder abstraction

* Use image data based aspect ratio on preview

* Base app rate throttle on API rate limit config

* Configure app rate limit throttle based on api config

* Convert v-image to script[setup]

* Convert v-media to script[setup]

* Cleanup v-media

* Remove unneeded addTokenToUrl usages

* Remove video.js

It doesn't do authorization headers for mp4/mp3, so it's pointless

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: ian <licitdev@gmail.com>
2022-07-20 15:52:38 -04:00
Rijk van Zanten
e63747daf8 Fix M2A filter scope on select existing (#14530)
* Fix list animation in m2a

* Add missing collection scope to m2a selection filter

Fixes #13598
2022-07-20 11:27:01 -04:00
Gerard Lamusse
f31b415242 Fix translation in render-template (#14355)
* Translate labels

* Fix translate in render-template instead
2022-07-11 17:10:05 +08:00
Rijk van Zanten
e249039026 Don't force reset scroll on hash changes (#14234) 2022-06-30 19:11:47 -04:00
Rijk van Zanten
cef060a0fc Use string displays on the calendar layout (#14232) 2022-06-30 18:45:52 -04:00
Rijk van Zanten
2c84239c31 Fix vertical alignment of render-template in tabular (#14231)
Fixes #13010
2022-06-30 18:07:40 -04:00
Azri Kahar
4e85233060 App Docs Module Improvements (#14083)
* switch to vite-plugin-vue-markdown

* add icon support in in-app docs
2022-06-24 09:24:32 -04:00
Azri Kahar
1405de7a80 Prevent filename overflow in import file field (#14064) 2022-06-23 10:44:24 -04:00
Ben Haynes
42cb679fed invert color shades (#13940)
* invert color shades

* Fix input glow

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-06-16 21:26:18 +00:00
rijkvanzanten
e7b9d3f49d Fix missing options crashing displays 2022-06-13 11:04:53 -04:00
Azri Kahar
320590a0fc Use translate in render-display (#13861)
* fix translations in boolean display

* Revert "fix translations in boolean display"

This reverts commit bd4768773c.

* translate in render-display

* remove translate from labels display
2022-06-13 10:04:00 -04:00
Yuriy Belenko
4d21d8d2a3 Enable activity tracking at password reset (#12044)
* Enable activity tracking at password reset

* Override admin prop only

Suggestion from Rijk

* Add required accountability role

* Fix missing concealed field in revisions drawer

* Fix typings

* Display updated message for concealed fields

* Update message

* Refactor CSS to increase selector specificity

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: ian <licitdev@gmail.com>
2022-06-08 03:19:40 +08:00
rijkvanzanten
7bb9edbcd6 Resolve vue warning 2022-06-06 15:16:13 -04:00
Rijk van Zanten
658d3332f9 Fix various linter warnings, disable new rule (#13755)
A eslint vue update introduced a new rule that we don't want to use yet. This PR is disabling that rule
2022-06-06 11:34:00 -04:00