5155 Commits

Author SHA1 Message Date
rijkvanzanten
835b0de89d v9.25.2 2023-04-20 10:49:53 -04:00
Rijk van Zanten
f855194ed6 New Crowdin updates (#18221)
* New translations en-US.yaml (Spanish, Mexico)

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

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

* New translations en-US.yaml (Polish)

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

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Chinese Simplified)
2023-04-20 10:45:53 -04:00
Andrii Trubai
2e5f063df1 Add possibility of sorting items in tabular view of o2m interface (#15733)
* Add possibility of sorting items in tabular view of o2m interface

* CLA signing

* in between commit

* allow for resizing on m2m and use existing sort fn

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Nitwel <mail@nitwel.de>
2023-04-20 09:12:48 -04:00
Nitwel
48196db0d2 revert changes made in #18249 (#18266) 2023-04-20 08:09:27 -04:00
Hannes Küttner
7bf87f3df3 Fix a few dev mode warnings (#18249)
* `list-m2m` make layout optional

* Silence a few more warnings

* Properly type v-button `to`

* Make search prop in field-detail-simple not required

* Set undefined as default value for text in v-text-overflow

* Change initial search value to undefined in field-detail

* Rework field-detail and field-detail-simple to use script setup

* One less ctrl+z

* Remove unnecessary new line

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-19 17:13:20 +00:00
Hannes Küttner
e189118557 Fix m2a/m2a/o2m sorting (#18196)
* Fix m2a/m2a/o2m sorting

* Use `toArray` from @directus/utils

* Fix consequential issue when sorting newly added items

> TypeError: item[relation.value.junctionPrimaryKeyField.field] is undefined

* add test

* Fix linter warnings

* More linter fun!

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Nitwel <mail@nitwel.de>
2023-04-19 17:03:35 +00:00
Nicola Krumschmidt
3b52b0a771 Fall back to "other" group if interface has none (#18256) 2023-04-19 13:42:20 +00:00
Azri Kahar
678c5f57af Use filled star for required asterisks & rating display (#18242) 2023-04-19 08:56:35 +02:00
Azri Kahar
6e0d56ed8c fix Action enum import in use-revisions (#18241) 2023-04-19 10:57:03 +08:00
Pascal Jufer
882685e831 Add sort comment & Spanish (Mexico) to available languages (#18226)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
2023-04-18 10:32:23 +00:00
Rijk van Zanten
42e1963345 New translations en-US.yaml (Italian) (#18176) 2023-04-17 09:41:04 -04:00
Pascal Jufer
73d54991d7 Get Directus version directly via filesystem from directus package (#18164) 2023-04-17 10:09:47 +02:00
Hannes Küttner
d4d175d615 Add loader to logs-siderbar-detail (#18200) 2023-04-15 09:24:02 -04:00
Hannes Küttner
eecb68f2e4 Change translation display userLanguage option default value to proper boolean (#18199) 2023-04-14 18:03:34 -04:00
Rijk van Zanten
c48309ab68 Last eslint tweak (#18198)
* Should be there now

* Format
2023-04-14 17:40:50 -04:00
rijkvanzanten
37658802b7 One more 2023-04-14 17:30:56 -04:00
Rijk van Zanten
bdb1a919e2 White space rules (#18197)
* White space rules

* Auto-fix whitespace linter warnings
2023-04-14 17:21:56 -04:00
Hannes Küttner
5d85a743ff Add autoKey to interface config (#18027)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-04-14 16:17:10 -04:00
Jan Arends
0e44ee5239 Add select all option for export (#18160)
* added select all option

* added default value

* removed space for linter

* refactoring: combined emits

* removed unnecessary prefix

* added option to remove all at once

* linter

* Drop support for deselect

* I HAVE OPINIONS

* Revert addition of remove event

* Some more opinions

* Refactor other uses of v-field-list

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-14 15:03:42 -04:00
Hannes Küttner
74adbbc3e8 Prevent duplicate emit from codemirror editors (#18194)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-14 14:56:26 -04:00
Hannes Küttner
1e271fa1d0 Rename system-field[-tree] collection prop to collectionName (#18193) 2023-04-14 14:18:02 -04:00
Hannes Küttner
cac64dac6d Fix #18184 (#18185) 2023-04-14 14:35:47 +02:00
rijkvanzanten
c301cfbc82 v9.25.1 2023-04-13 16:32:58 -04:00
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