Commit Graph

4142 Commits

Author SHA1 Message Date
Rijk van Zanten
628dae7d2e Add configuration for "Add New"/"Select Existing" buttons in M2O interface (#14745)
Co-authored-by: Patrik Szkandera <patrik@laposa.ie>
2022-07-29 11:14:34 -04:00
Rijk van Zanten
a11b14b3de New translations en-US.yaml (Dutch) (#14743) 2022-07-29 10:18:44 +00:00
Rijk van Zanten
6c77b8d003 New translations en-US.yaml (Russian) (#14730) 2022-07-28 21:45:07 +00:00
Brainslug
8740f5e044 fixes interface "trim" defaults (#14709) 2022-07-28 17:41:33 -04:00
Azri Kahar
0f394d90d8 fix files interface's drawer download button (#14688) 2022-07-27 12:35:37 -04:00
Azri Kahar
1054ca69ed fix fallback icon styling for interfaces (#14693) 2022-07-27 11:38:35 -04:00
Azri Kahar
bc27cfadba fix fields reactivity in export drawer (#14695) 2022-07-27 11:25:39 -04:00
ian
1884c081f5 Cast values to string when matching in v-select (#14685) 2022-07-27 10:01:28 -04:00
Rijk van Zanten
263ee74408 Add tests for translate-shortcut (#14682) 2022-07-26 17:02:02 -04:00
Brainslug
ee07d22f19 added missing tests for get-js-type utility (#14654) 2022-07-26 16:57:04 -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
Nicola Krumschmidt
ceff32fb63 Fix Favicon when project color and logo are not set (#14666) 2022-07-26 11:06:41 -04:00
Azri Kahar
9e50201e70 Do not override current admin language preference (#14648) 2022-07-26 10:54:37 -04:00
Rijk van Zanten
52598538f0 New translations en-US.yaml (Bulgarian) (#14647) 2022-07-26 07:56:19 +00:00
Rijk van Zanten
d5813bea23 Fix render template height in card subtitle (#14644) 2022-07-25 17:15:55 -04:00
Rijk van Zanten
88c5edf7a3 Add app unit tests using vitest (#14583)
* Install / bootstrap vitest

* Install c8

* Add tests for add-query-to-path

* Don't set global maplibre token on individual style

This feels wrong to me. We have a single global access token that should be used for these things. Overriding that with a token that's found for individual styles on top of the same global object in order of configured maps feels weird, as the latter tokens will override the earlier ones. Needs more research though

* Install testing libraries

* Use happy-dom as env in vitest

* Enable ts checking in tests

* Remove unused jest config

* Organize store imports

* Remove types from TSDoc in add-query-to-path

* Improve check in add-related-primary-key-to-fields

* Add reusable stub for anything touching nanoid

* Add tests for add-related-primary-key-to-fields

* Move adjust date to shared

* Remove arraysAreEqual util in favor of relying on lodash

* Fix add-related-primary-key-to-fields test

* Add test coverage for capitlize-first

* Add TSDoc/tests for extract-field-from-function

* Add test coverage for formatFieldFunction

* Add test coverage for format-filesize

* Add test coverage for get-groups

* Add tests for get-root-path

* cleanup imports

* Move tests to live next to source files

* Add tests for user-name

* Update type to match function behavior

* Add test coverage for point-on-line

* Add tests for is-empty

* Add test coverage for is-hex

* Remove getSetting util

Bit pointless to have a util function to just read a value from a store

* Add test coverage for get-related-collection

* Add test coverage for get-theme

* Add test coverage for get-with-arrays

* Add test coverage for hide-drag-image

* Add test coverage for is-permission-empty

* Remove unused import

* Add test for jwt-payload

* Add snapshot rendering test for v-sheet

* Add whitespace

* Rename __test_utils__ -> __utils__

* Add composable test

* Update app/tsconfig.json

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2022-07-25 16:23:45 -04:00
Adrian Dimitrov
515ea4e4d2 Fix list-group clickable; Fix navigation-item initial state (#14637)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-07-25 14:16:41 -04:00
Nicola Krumschmidt
81cd748c6d Add support for operation extensions to the Extensions SDK (#14410)
* Clean up extensions build logging

* Expose defineOperation* helpers through extensions-sdk

* Add support for scaffolding operation extensions

* Refactor extension type constants

* Improve extension-related tests in shared

* Improve wording when scaffolding extension fails due to wrong type

* Make spinner text bold when scaffolding extensions

* Add support for building operation extensions

* Fix operations tile name

* Make extension config type spacing consistent

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-07-25 11:36:52 -04:00
Cl4ud10 T4551S
bfb1f93449 Update pt-BR.yaml (#14596)
Whenever a new field is created, there's no translation for the "require value to be set on creation". The translation to it should be "Requer que valor seja definido na criação".
2022-07-25 10:39:47 -04:00
Cl4ud10 T4551S
5013baff13 Update pt-BR.yaml (#14600)
There's a typo in the translation of "junction". The correct translation is "junção" and not "jução"
2022-07-25 10:39:32 -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
Azri Kahar
cd8687e142 Fix calendar list view styling (#14626)
* fix calendar list view styling

* remove unrelated committed files
2022-07-25 09:41:22 -04:00
Azri Kahar
ab163a2c9b Fix flatpickr global style (#14618) 2022-07-25 09:36:09 -04:00
Rijk van Zanten
16fbe743fe New translations en-US.yaml (French) (#14612) 2022-07-24 19:07:58 +00:00
Rijk van Zanten
cf10b17e57 New translations en-US.yaml (French) (#14604) 2022-07-24 03:06:04 +00:00
Rijk van Zanten
3018f90420 New translations en-US.yaml (French) (#14601) 2022-07-24 01:51:38 +00:00
Rijk van Zanten
e3850deafa New translations en-US.yaml (French) (#14593) 2022-07-23 17:33:38 +00:00
Sidarta Veloso
67cea310fb Update pt-BR.yaml (#14584)
Save as copy means 'Salvar como cópia' and not 'Salvar e Copiar'.
2022-07-22 16:45:49 -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
Brainslug
3ceec97f66 Using formFields which is filtered over the fields property (#14569) 2022-07-22 09:30:25 -04:00
Brainslug
8bc098c337 Conditions not working (partially) (#14488)
* changed way of storing the formfield data in v-form

* hacky translation implementation

* updated translations without bombing the performance

* removed debug code and refactored initial implementation

* removed redundant useFormFields in users route

* making proper use of useFormField results to not break the grid layout

* removed limitation for conditions

* Fix selection of foreign keys for value field in time series panel

* Revert "removed redundant useFormFields in users route"

This reverts commit c6f4f23cf8.

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-21 14:39:43 -04:00
Rijk van Zanten
600f55e4a2 Resolve lintw arnings (#14555) 2022-07-21 12:44:16 -04:00
Boris
572952b605 Fix the preview not being updated after editing the image (#14511)
* Fetch latest changes and make the refresh function async

* Make the image-editor refresh call cleaner

* add missing await
2022-07-21 11:58:49 -04:00
rijkvanzanten
141501ac66 Fix pk typing 2022-07-21 11:50:21 -04:00
rijkvanzanten
ab36a31e29 Remove warnings re revisions sidebar detail 2022-07-21 10:55:27 -04:00
Rijk van Zanten
73b30190cb New translations en-US.yaml (Russian) (#14552) 2022-07-21 14:36:40 +00:00
Rijk van Zanten
aa24522a3b New translations en-US.yaml (Italian) (#14551) 2022-07-21 12:43:58 +00:00
Rijk van Zanten
53168f75ad New translations en-US.yaml (Italian) (#14545) 2022-07-20 21:31:56 +00:00
Rijk van Zanten
b6a0f0b216 Fix map layout not rendering items on search (#14543)
Fixes #13941
2022-07-20 17:17:33 -04:00
Rijk van Zanten
353d01d620 Fix singleton navigation temporarily using wrong ID (#14542)
* Convert content/items.vue to script[setup]

* Don't rely on outdated primary key while loading in singleton navigation

Fixes #13856
2022-07-20 17:08:48 -04:00
Rijk van Zanten
5719d1dceb Select multiple dropdown preview threshold (#14541)
* Allow specify custom preview threshold for select-multiple-dropdown

* Move to advanced options

Co-authored-by: Tien Tran <tien@transfamily.info>
2022-07-20 16:54:03 -04:00
Rijk van Zanten
bccb4db791 Don't render explicit null values in md custom blocks (#14539)
Fixes #14383
2022-07-20 16:37:45 -04:00
Rijk van Zanten
232e8e13d5 Add max height to folder picker (#14538)
Fixes #14399
2022-07-20 16:33:14 -04:00
Rijk van Zanten
eba0a8dd97 Don't disable distinct count based on integer type (#14537)
Fixes #14420
2022-07-20 16:28:00 -04:00
Rijk van Zanten
c9a9fb7a8b Default auth provider to first configured one if default is disabled (#14536)
Fixes #14428
2022-07-20 16:25:29 -04:00
rijkvanzanten
5c85bfdfe7 Fix wrong check 2022-07-20 16:10:12 -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