5132 Commits

Author SHA1 Message Date
rijkvanzanten
4f540b03d0 v9.25.0 2023-04-13 13:32:44 -04:00
Rijk van Zanten
834af245fe New translations en-US.yaml (Polish) (#18156) 2023-04-13 13:19:11 -04:00
Nitwel
4e1d3b72f4 Revert "Fix update deduplication in useRelationMultiple (#18159)" (#18169) 2023-04-13 12:14:29 -04:00
Hannes Küttner
3f2dfdcbc7 Fix update deduplication in useRelationMultiple (#18159)
* Check for duplicate update in useRelationMultiple update action

* Add test

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-13 11:36:39 -04:00
Matthew Rumery
a4d09842b4 fix: add resolvePackageExtensions to vite.config.js (#18154) 2023-04-13 01:31:49 +02:00
Nitwel
24487711bb Load relational data from api on button-links (#17959)
* load relational data from api on button-links

* make const shared

* lint

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-04-12 17:15:49 -04:00
Paiman Rasoli
0c874a78e8 O auth login is ignoring the redirect url (#17939)
* link redirect param to continue param of oauth

* redirect to the link of continue param

* add github username to contributors.yml

* save the file to run lint stage

* Resolve redirect on continue-as; fix redirect query param

* Clean up names

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-12 16:55:01 -04:00
Rijk van Zanten
bac5a88d6f New Crowdin updates (#18149)
* New translations en-US.yaml (Hungarian)

* Update source file en-US.yaml

* New translations en-US.yaml (Dutch)

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

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

* New translations en-US.yaml (Indonesian)

* 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 (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 (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 (English, Canada)

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

* New translations en-US.yaml (Spanish, Latin America)
2023-04-12 15:54:48 -04:00
Nitwel
d954172c9b Add info about dependencies when deleting collection (#17961)
* add info about dependencies when deleting collection

* Delete dependent fields

* Update app/src/lang/translations/en-US.yaml

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

* add m2a edgecase

* run linter

* run linter

* Update app/src/lang/translations/en-US.yaml

* only delete m2o relations

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-12 13:56:54 -04:00
Hannes Küttner
ebba7a68e7 Migrate to Material Symbols (#18004)
* Migrate to Material Symbols

* Fix lint issues

* Use canonical `bookmark` icon

* Update `copy` icon name

* Replace `highlight_alt` with `select` icon

* Add directus_presets default icon migration

* Fix lint (again)

* Add spaces around icon group names

* Replace missing _outline icons

* Replace `arrow_backward` with `arrow_back`

* Update migrations

* Sign CLA

* merge migrations

* Revert group name display tweak

* Fix hover color + grid centering

* Update app/src/interfaces/file-image/file-image.vue

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-12 13:12:37 -04:00
Joshua Bemenderfer
eea13b43e6 [Take 2] Register <drawer-collection> in Vue app for relational interface extensions (#18153) 2023-04-12 15:08:07 +02:00
Rijk van Zanten
2da439b886 New translations en-US.yaml (Spanish) (#18144) 2023-04-11 23:07:43 -04:00
Rijk van Zanten
08282b55f7 New Crowdin updates (#18055)
* New translations en-US.yaml (Chinese Simplified)

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

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Italian)

* Update source file en-US.yaml

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Arabic)

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

* New translations en-US.yaml (French)

* Update source file en-US.yaml

* Update source file en-US.yaml
2023-04-11 19:16:13 -04:00
Azri Kahar
d6fb0fcd7e use DEFAULT_AUTH_DRIVER constant instead of hardcoded string (#17646)
* use DEFAULT_AUTH_DRIVER constant in login form

* also use constant in server store

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-11 19:02:31 -04:00
Julius Berger
b207af25ea Add support for AVIF image format (#17303)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-04-11 21:57:38 +00:00
denkhaus
1a843061ee Translation dialogs: make fields full width / multiline again (#18135)
* Make inputs in Translation-String Dialog fullwidth and change translation input field from input -> input-multiline.

* Update contributors.yml

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-11 16:00:48 -04:00
Pascal Jufer
d8455c14e2 Clean-up after "Enhance bug reporting from within the app" (#18136)
* Remove duplicate v-menu._test.ts

* Making UsableProjectInfo private again
2023-04-11 15:49:51 -04:00
Pascal Jufer
dcc246e165 Introduce new directus wrapper package (#18134)
* Maybe?

* Maybe maybe

* ESM & version update

* Adjust Dockerfile to new wrapper package

* Clean-up api package.json file

* Update directus/package.json

* Update directus/package.json

* Update directus/package.json

* Regen pnpm lock

* Declare engines in new wrapper package

* Use wrapper version in app-settings

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-04-11 15:25:58 -04:00
rijkvanzanten
ff65665038 Remove unused import 2023-04-11 15:16:17 -04:00
Pascal Jufer
f09f440146 Enhance bug reporting from within the app (#16566)
* Fix paths of imports

* Process not-found.vue as ts

To prevent the following error from 'vue-tsc':
  error TS6504: File '/Users/pascal/Development/directus/app/src/modules/insights/routes/not-found.vue.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?

Note: We could also enable 'allowJS' but since this is the only js file
this seems to be a more fitting fix

* Drop hljs language definition for GraphQL (now in core)

* Enhance bug reporting from within the app

* Simplify simplify simplify

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-04-11 15:04:26 -04:00
Pascal Jufer
15b91dee34 Blackbox tests restructuring (#18122)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-11 18:28:37 +02:00
Nitwel
3028c645d0 Disallow selecting singletons (#17790)
* Disallow selecting singletons

* disallow for relations to singletons

* run linter

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-11 10:57:24 -04:00
Rijk van Zanten
dd93fe6032 Improve error message on failed import (#18130) 2023-04-11 10:46:33 -04:00
Nitwel
ea35a1ab73 Fix tabular headers (#17799)
* Rework table headers

* fix tabular headers

* run linter

* fix display with translations

* remove console log

* run linter

* Update app/src/layouts/tabular/tabular.vue

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

* Update app/src/layouts/tabular/tabular.vue

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

* add array prop

* turn to dealiased

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-04-11 10:22:06 -04:00
Azri Kahar
166ba2f8c1 refresh current user for Save and Stay action (#17925) 2023-04-11 09:09:10 -04:00
Gerard Lamusse
e66ee967f0 If undefined collection, use item as relative url (#15806)
* If no undefined collection, use item as relative url

* Only navigate if item is set

* Added Gerard Lamusse (u12206050)

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-11 09:03:41 -04:00
ian
b9087c1aca Move activity Action enum from types to constants package (#18126)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-04-11 08:30:48 +00:00
Azri Kahar
6bba1c38f8 Fix dark theme color for emoji picker (#17926) 2023-04-10 20:34:17 -04:00
Nitwel
9cbfa88e81 Fix default values (#15710)
* Fix default values

* run linter

* use assign

* fix working with permissions

* run linter

* fix set related item to empty when having junction

* check for empty

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

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-04-10 21:23:49 +00:00
Brainslug
ab8446dd16 throw an error on invalid file upload (#18035)
* throw an error on invalid file upload

* include size check in file validation

* removed accidental import
2023-04-10 15:47:42 -04:00
Rijk van Zanten
0ce2ef244d Upgrade tinymce (#18107)
* Upgrade tinymce

* Omit 'skin_url' instead of setting it to false

The option expect a string value. Instead of setting it to 'false' we
can just completly omit it.
Otherwise we get the following warning:
> Invalid value passed for the skin_url option. The value must be a string.

Although not explicitly mentioned in the migration doc, the stricter check / warning has
probably been introduced with v6.

* Disable pasting of images

From
https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/#plugins-paste:

> A paste default has changed. The paste_data_images option now defaults to true.
> When paste was a plugin, this option was, by default, set to false, which prevented images being pasted from the local machine

* Update toolbar option names

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-04-10 15:22:37 -04:00
Rijk van Zanten
05af3a7774 Add items.sort to flow trigger events (#18118) 2023-04-10 14:53:51 -04:00
Nitwel
8ea94c317b Fix sort icons (#17984)
* Fix sort icons

* Run linter

* Fix return value for unsorted headers

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-10 14:27:12 +02:00
Rijk van Zanten
9ec6606694 Bro thats like just your opinion bro (#18106) 2023-04-07 16:28:57 -04:00
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