Commit Graph

9247 Commits

Author SHA1 Message Date
Brainslug
8740f5e044 fixes interface "trim" defaults (#14709) 2022-07-28 17:41:33 -04:00
Rijk van Zanten
15be1c60b0 Support running prod locally through ./api/cli.js (#14728) 2022-07-28 15:17:31 -04:00
Azri Kahar
0f394d90d8 fix files interface's drawer download button (#14688) 2022-07-27 12:35:37 -04:00
ian
732b49f482 Replace functions within arrays in GraphQL (#14705) 2022-07-27 12:32:39 -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
391992b5b4 Resolve a warning shown when opening the in-App docs in dev mode (#14662) 2022-07-26 11:16:44 -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
Nicola Krumschmidt
a944452932 Fix building the extensions-sdk in dev mode (#14658) 2022-07-26 09:04:51 -04:00
Nicola Krumschmidt
717fce66ae Improve extension scaffolding log message (#14659) 2022-07-26 09:02:16 -04:00
Rijk van Zanten
52598538f0 New translations en-US.yaml (Bulgarian) (#14647) 2022-07-26 07:56:19 +00:00
Phillip Wheatley
c8188e3ea1 Extend OpenAPI schemas for JSON-backed fields (#14581)
* Confirm issue with test case

* Generate schema for json field types when nested fields are specified

* Return untyped schema for json fields

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-25 18:03:24 -04: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
Aiden Foxx
28d60131a3 Handle not unique errors during auto-registration (#14625)
* Handle RecordNotUniqueException in oauth

* Handle RecordNotUniqueException in openid

* Added RecordNotUniqueException handling for ldap

* Update api/src/auth/drivers/oauth2.ts

* Update api/src/auth/drivers/ldap.ts

* Add LDAP unique user log

* Added unique user log to oauth

* Added unique user log to OpenID

* Update api/src/auth/drivers/ldap.ts

* Update api/src/auth/drivers/oauth2.ts
2022-07-25 14:09:51 -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
rijkvanzanten
6e4738e4c0 v9.14.5 v9.14.5 2022-07-22 14:45:15 -04:00
rijkvanzanten
aec37f6198 v9.14.4 2022-07-22 10:38:33 -04:00
ian
1b368291eb Revert to <img> for image editor (#14576)
* Revert to <img> for image editor

* Fix typings
v9.14.4
2022-07-22 10:17:14 -04:00
Azri Kahar
7d62a70007 Fix GraphQL aggregate query (#14560)
* FIx aggregate query in GraphQL

* change type to Query and alter previous logic

* test
2022-07-22 09:55:51 -04:00
Brainslug
3ceec97f66 Using formFields which is filtered over the fields property (#14569) 2022-07-22 09:30:25 -04:00
rijkvanzanten
3d03291c31 Rerun workflow on workflow change 2022-07-21 16:23:36 -04:00
rijkvanzanten
2910ee286b Try with pnpm 2022-07-21 16:22:16 -04:00
rijkvanzanten
cf41b07100 v9.14.3 v9.14.3 2022-07-21 16:16:14 -04:00
rijkvanzanten
9833294743 Oracle (╯°□°)╯︵ ┻━┻ 2022-07-21 16:03:30 -04:00
Rijk van Zanten
e223a9d1cd Remove oracledb from package.json (#14556) 2022-07-21 15:55:51 -04:00
rijkvanzanten
54f80376c8 Don't cache npm in node checkout 2022-07-21 15:30:26 -04:00
rijkvanzanten
eb1a4e6897 v9.14.2 2022-07-21 15:25:47 -04:00
rijkvanzanten
0890bfc9a5 Update docs v9.14.2 2022-07-21 15:23:25 -04:00
rijkvanzanten
6d1e5b3432 v9.14.2 2022-07-21 15:17:56 -04:00
ian
9f9ef45846 Disable foreign check on SQLite when deleting fields (#14512)
* Disable foreign check on SQLite when deleting fields

* Add default on_delete constraint

* Add test

* Rename methods

* Fix test sequence
2022-07-21 14:44:05 -04:00