Commit Graph

5098 Commits

Author SHA1 Message Date
Nitwel
88a401ca20 Make headers sticky again (#17850)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-07 12:29:41 +02:00
Pascal Jufer
99e6c7f8fd Clean-up configs (#18093)
* Consolidate gitignore config

* Remove editorconfig in subfolders

* Remove obsolete jest config
2023-04-07 17:29:28 +08:00
Nitwel
9ee67830e3 Fix rehydrating cache after flow save (#17819)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-05 12:30:19 +02:00
Rijk van Zanten
2983e61870 The Great TypeScript Modernization Program Season 3 Episode 6: The Big One (#18014)
* Step 1

* Step 2

* False sense of confidence

* Couple more before dinner

* Update schema package

* Update format-title

* Upgrade specs file

* Close

* Replace ts-node-dev with tsx, and various others

* Replace lodash with lodash-es

* Add lodash-es types

* Update knex import

* More fun is had

* FSE

* Consolidate repos

* Various tweaks and fixes

* Fix specs

* Remove dependency on knex-schema-inspector

* Fix wrong imports of inspector

* Move shared exceptions to new package

* Move constants to separate module

* Move types to new types package

* Use directus/types

* I believe this is no longer needed

* [WIP] Start moving utils to esm

* ESMify Shared

* Move shared utils to  @directus/utils

* Use @directus/utils instead of @directus/shared/utils

* It runs!

* Use correct schemaoverview type

* Fix imports

* Fix the thing

* Start on new update-checker lib

* Use new update-check package

* Swap out directus/shared in app

* Pushing through the last bits now

* Dangerously make extensions SDK ESM

* Use @directus/types in tests

* Copy util function to test

* Fix linter config

* Add missing import

* Hot takes

* Fix build

* Curse these default exports

* No tests in constants

* Add tests

* Remove tests from types

* Add tests for exceptions

* Fix test

* Fix app tests

* Fix import in test

* Fix various tests

* Fix specs export

* Some more tests

* Remove broken integration tests

These were broken beyond repair.. They were also written before we really knew what we we're doing with tests, so I think it's better to say goodbye and start over with these

* Regenerate lockfile

* Fix imports from merge

* I create my own problems

* Make sharp play nice

* Add vitest config

* Install missing blackbox dep

* Consts shouldn't be in types

tsk tsk tsk tsk

* Fix type/const usage in extensions-sdk

* cursed.default

* Reduce circular deps

* Fix circular dep in items service

* vvv

* Trigger testing for all vendors

* Add workaround for rollup

* Prepend the file protocol for the ESM loader to be compatible with Windows
"WARN: Only URLs with a scheme in: file and data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'"

* Fix postgres

* Schema package updates

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Resolve cjs/mjs extensions

* Clean-up eslint config

* fixed extension concatination

* using string interpolation for consistency

* Revert MySQL optimisation

* Revert testing for all vendors

* Replace tsx with esbuild-kit/esm-loader

Is a bit faster and we can rely on the built-in `watch` and `inspect`
functionalities of Node.js

Note: The possibility to watch other files (.env in our case) might be
added in the future, see https://github.com/nodejs/node/issues/45467

* Use exact version for esbuild-kit/esm-loader

* Fix import

---------

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-04 17:41:56 -04:00
rijkvanzanten
517e7cb55c v9.24.0 2023-04-04 17:13:31 -04:00
Nitwel
3350e5c6ac Don't set edits at start (#17848) 2023-04-04 17:08:04 -04:00
Rijk van Zanten
6badbb7a0e New Crowdin updates (#17936)
* New translations en-US.yaml (French)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (Icelandic)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (French, Canada)

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Catalan)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovenian)

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Portuguese, Brazilian)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Spanish, Mexico)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (English, Canada)

* New translations en-US.yaml (Breton)

* New translations en-US.yaml (Bosnian)

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Spanish, Latin America)

* Update source file en-US.yaml

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Persian)
2023-04-04 15:28:41 -04:00
Rijk van Zanten
bb952f9386 Add optional confirmation dialog with input fields to Manual Trigger in Flows (#17603)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-31 19:37:50 +00:00
Azri Kahar
6d793f8878 add active state to file interface (#18011) 2023-03-31 09:29:16 -04:00
Nitwel
b3be34850e Fix sorting in m2m table (#17746)
* fix sorting in m2m table

* fix sorting

* run linter

* Update app/src/composables/use-relation-multiple.ts

* improve syntax

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-03-28 21:03:21 +08:00
José Varela
89293d92a9 App: Fix saving required relational fields (#17842)
* Fix saving relational fields

* Be more specific on variable name

* Fix missing quotes
2023-03-28 13:03:56 +02:00
Nitwel
75ad4876bf only hide v-select options (#17953) 2023-03-27 10:12:17 -04:00
Nitwel
a5b81c7a2d properly apply query param to url (#17956)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-03-27 09:45:44 -04:00
Nitwel
2c3dc1c77c don't move files when folder can't be deleted (#17957) 2023-03-27 15:44:10 +02:00
Azri Kahar
895ef06541 Fix Save and Stay to refresh revisions detail for roles and webhooks (#17891)
* refresh revisions detail in roles page

* refresh revisions detail in webhooks page
2023-03-27 09:25:16 -04:00
Nitwel
02ed12d592 fix collection name on deselect in m2a relation (#17958) 2023-03-27 09:24:10 -04:00
rijkvanzanten
6b9982eae2 v9.23.4 2023-03-24 11:34:21 -04:00
rijkvanzanten
21a0b910ac v9.23.3 2023-03-23 14:11:49 -04:00
rijkvanzanten
74508c70b8 v9.23.2 2023-03-23 13:35:11 -04:00
Rijk van Zanten
f6e992a49d New Crowdin updates (#17652)
* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (Thai)

* Update source file en-US.yaml

* New translations en-US.yaml (French, Canada)

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Portuguese, Brazilian)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Spanish, Mexico)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (English, Canada)

* New translations en-US.yaml (Faroese)

* New translations en-US.yaml (Bosnian)

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (French, Canada)

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Nepali)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Spanish, Mexico)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Bosnian)

* New translations en-US.yaml (Spanish, Latin America)

* Update source file en-US.yaml

* New translations en-US.yaml (Esperanto)

* New translations en-US.yaml (Korean)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Norwegian)
2023-03-23 13:29:17 -04:00
Pascal Jufer
7b34f05a2b Declare null as valid value type for v-radio (#17879) 2023-03-22 10:31:09 -04:00
Azri Kahar
46c1666607 fix archive field reactivity for new collection (#17862) 2023-03-22 06:57:10 +08:00
Azri Kahar
8849050657 use dbSafe input for system fields (#17861) 2023-03-21 12:30:15 +01:00
Nitwel
0c22829930 Make tags interface more clear (#17852)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-03-20 16:03:21 +01:00
Nitwel
47759a36aa show search results for mapbox (#17834) 2023-03-20 21:47:40 +08:00
Nitwel
6c9f9d3f16 Fix Storybook components (#17828)
* migrate to latest storybook and fix components

* run linter
2023-03-20 09:30:54 -04:00
Azri Kahar
6a54e24bba Tweak swatch button size & position in select-color interface (#17776)
* tweak swatch size

* remove obsolete padding
2023-03-18 03:02:04 +08:00
Nitwel
c02b306f44 Make default folder more clear (#17833) 2023-03-17 14:35:27 -04:00
Nitwel
91c2d8b969 Fix typeAllowList (#17830) 2023-03-17 18:48:05 +01:00
Nitwel
d5ee27ee76 Fix translations setting primary key and request spamming (#17778)
* Fix translations setting primary key and request spamming

* add return type
2023-03-17 10:03:25 +01:00
Pascal Jufer
0293c88aa3 Patch Tuesday 🐸 (#17811)
* Update root deps

* Update `directus` deps

* Update `@directus/app` deps

* Update usage of knex-mock-client

* Update `@directus/shared` deps

* Update `extensions-sdk` deps

* Update `@directus/specs` deps

* Update `@directus/storage` deps

* Update `@directus/storage-driver-azure` deps

* Update `@directus/storage-driver-cloudinary` deps

* Update `@directus/storage-driver-gcs` deps

* Update `@directus/storage-driver-local` deps

* Update `@directus/storage-driver-s3` deps

* Update `@directus/utils` deps

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-03-17 15:15:03 +08:00
Brainslug
3d7fcac51e Allow blur events for m2o dropdown (#17784)
* allow blur events for m2o dropdown

* TEST - github actions

* Revert "TEST - github actions"

This reverts commit 2ff0265763.

* Update app/src/interfaces/select-dropdown-m2o/select-dropdown-m2o.vue

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

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-17 01:32:23 +08:00
Nitwel
c5c025f4ba Revert "Fix using alias fields function for non alias field (#17742)" (#17816)
This reverts commit 7c479c5161.
2023-03-16 22:53:59 +08:00
Pascal Jufer
d711aa0c23 Correctly assert i18n default messages (#17815)
To prevent the following TS warning:
> Type instantiation is excessively deep and possibly infinite.ts(2589)
2023-03-16 09:33:52 -04:00
Azri Kahar
eb65d60236 Improve error handling for app extensions (#17191)
* add util function to get vue component name

* add global error handler

* add v-error-boundary component

* use error boundary to wrap insights panels

* use error boundary to wrap form interfaces

* use error boundary in render display and template

* use error boundary in extension options

* use error boundary for flows operation overview

* extract default options-overview into a component

* add tests
2023-03-16 13:04:17 +01:00
Azri Kahar
251927a765 Require value in project settings' fields (#17771)
* support required fields in system-modules

* update settings fields to required
2023-03-16 11:47:01 +01:00
Nitwel
0b6e4c0200 Load flow directly from api (#17785)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-16 00:51:12 +00:00
José Varela
a29a664ae7 Allow to select checkbox entry when children is null (#17783) 2023-03-14 20:39:01 +08:00
Pascal Jufer
e87f93f3b4 Fix permission check for manual sort for full access (#17678) 2023-03-14 20:33:32 +08:00
Azri Kahar
5f4b4ec3d4 Use light primary border color for fields when they are inside groups (#17777)
* use light primary border for fields in groups

* remove !important & use higher CSS specificity
2023-03-14 13:14:20 +01:00
Nitwel
7c479c5161 Fix using alias fields function for non alias field (#17742) 2023-03-13 13:41:03 +01:00
Azri Kahar
baf778fddb try/catch serverStore.hydrate() in router (#17756)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-03-09 14:53:35 -06:00
Brainslug
77cffa6849 Require value for dropdown choices (#17732)
* updated value to be required

* applied to other interfaces

* Made dropdown labels required too

* added required fields for other interfaces

* added required fields for field/collection translations
2023-03-10 00:14:39 +08:00
Nitwel
00faa39f87 Fix delete and quit opening save changes drawer (#17739)
* fix delete and quit opening save changes drawer

* fix bug on more places

* and another spot

* run linter

* Same change for presets

---------

Co-authored-by: ian <licitdev@gmail.com>
2023-03-09 00:41:05 +08:00
Nitwel
c29bf4d958 Only show context menu for collections (#17725)
* Only show context menu for collections

* don't attach event listener on null
2023-03-07 14:53:55 +00:00
Nitwel
fd5ac8a195 Fix margin on drawer item (#17726) 2023-03-07 15:11:31 +01:00
ian
910b7fae23 Add root path to module bar images (#17714) 2023-03-06 14:08:29 +01:00
Nitwel
44416a443b Fix loading all fields (#17395)
* Fix loading all fields

* fix linter

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-03-06 12:05:08 +01:00
Nitwel
9d1dd1ae52 Show validation errors in drawer-item (#17423)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-06 11:47:05 +01:00
Azri Kahar
d466204732 Add ability to limit requests from using the Cache-Control header to skip cache (#17642)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-02 13:19:30 +01:00