Commit Graph

10030 Commits

Author SHA1 Message Date
Brainslug
3c2125f646 public_url_file in .env causes server start error (#15898)
* allow *_FILE environment vars to overwrite default values

* added test

* added mock for fs

* removed test
2022-10-11 16:47:33 -04:00
Rijk van Zanten
b28633d597 Upgrade vite (#15943)
* Upgrade vite

* Update snapshots for updated vite plugin
2022-10-11 16:06:09 -04:00
Nicola Krumschmidt
fcdf235b7d Allow extensions to be symlinks when running the App in dev mode (#15793) 2022-10-11 16:05:11 -04:00
Brainslug
af8eabf271 Insights dashboard - List panels link to listed collection items. (#15930)
* extra checks for valid input

* re-introducing the item drawer for list-items

* making list panel drawer optional

* Cleanup for consistency

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-10-11 17:40:45 +00:00
Nicola Krumschmidt
acb40ffee1 Make the repo usable with Node v18 (#15939)
`openid-client` previously had an `engine` field inside its package.json which prevented it from being used with Node v18.
2022-10-11 11:08:20 -04:00
Brainslug
4904c3bba1 change trigger flow interface to dropdown using the local store (#15764) 2022-10-10 11:58:31 +02:00
Azri Kahar
fd47923706 Fix special characters in translation strings (#15872)
* Fix special characters in translation strings

* unit test

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-10-10 11:49:37 +02:00
Andreas Bernhard
8e128fecc2 fix (display-filesize): adjust handler argument to be read as value (#15840)
* fix (display-filesize): adjust handler argument to be read as `value`

rel: https://github.com/directus/directus/issues/15837

* reformatting (display-filesize): ran prettier on file

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-10-04 16:22:38 +02:00
Andreas Bernhard
0a5ff6d12a fix (display-filesize): wrap component value in span node (#15841)
* fix (display-filesize): wrap component value in `span` node

rel: https://github.com/directus/directus/issues/15838

* reformatting (display-filesize): ran prettier on file
2022-10-03 16:11:57 +02:00
Nicola Krumschmidt
cbe1e7fbc6 Ignore pnpm-lock.yaml when running prettier on the repo (#15786) 2022-09-28 13:21:16 -04:00
Roger Stringer
3761abf1f0 adds missing graphQL operators (#15760)
* missing icontains for strings, missing eq, neq for geo, missing in, nin for dates

* fix unit test

* fix unit test part 2

* Update packages/shared/src/utils/get-filter-operators-for-type.ts

Co-authored-by: ian <licitdev@gmail.com>

* fix tests?

* fix tests?

Co-authored-by: ian <licitdev@gmail.com>
2022-09-27 10:16:37 -07:00
Gerard Lamusse
aea55faa46 Change to autocomplete interface (#15585)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-09-26 13:26:01 +02:00
Brainslug
69797776f1 Add fallback message when no fields are visible in a form (#14778)
* Add fallback page when no fields are visible in a form

* fixed spacing for the linter

* properly show empty form message for relational drawer items

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-09-24 18:53:34 +00:00
Nitwel
324b549d9d fix image alt being null (#15709) 2022-09-22 23:23:48 -04:00
rijkvanzanten
cb3d775c4e v9.18.1 v9.18.1 2022-09-22 17:12:51 -04:00
rijkvanzanten
6404258b3a Update docs 2022-09-22 17:11:59 -04:00
Rijk van Zanten
8110f81941 New Crowdin updates (#15649)
* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Polish)

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

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

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Portuguese)

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

* New translations en-US.yaml (Turkish)

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

* New translations en-US.yaml (Turkish)
2022-09-22 23:15:16 +08:00
José Varela
fae5ed1c08 Graphql: Fix required PK on create / update (#15693)
* Do not require primary key on data on create / update

* Do not put fields non nullable if they have default value

* Handle manually entered primary keys (don't have default value)

* Allow uuid PK to be nullable

Co-authored-by: ian <licitdev@gmail.com>
2022-09-22 22:57:40 +08:00
Maxim
efdeded18a Implemented an option to filter m2a fields using graphql. (#15162)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-09-22 13:00:52 +02:00
mtgerb
d6fce8d92a Add support for <collection>.items.query filter hook (#15611)
* fix items.query filtering for a collection

* fix linter error

Co-authored-by: Matthias Gerbershagen <m_gerbersh09@informatik.uni-kl.de>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-09-20 14:40:55 +02:00
rijkvanzanten
0f39a80354 v9.18.0 2022-09-19 09:44:26 -04:00
rijkvanzanten
8f5750c5c1 v9.18.0 v9.18.0 2022-09-19 09:39:58 -04:00
rijkvanzanten
8d7000ddb4 Update docs 2022-09-19 09:37:15 -04:00
Rijk van Zanten
24e8749c7d New Crowdin updates (#15427)
* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Portuguese)

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

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

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Turkish)

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

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Bulgarian)

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

* New translations en-US.yaml (Italian)

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

* New translations en-US.yaml (Croatian)

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

* Update source file en-US.yaml

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Arabic)
2022-09-19 09:34:32 -04:00
José Varela
54cd2d47da Cache: Fix check if endpoint is /graphql or not (#15599) 2022-09-16 09:12:00 -04:00
Brainslug
93a99f0b87 skip interface options for variable panel (#15593)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-09-15 17:21:01 +00:00
Brainslug
f9c4422fb1 Relational Selection Panel for Insights Variable (#15452)
* init

* add field (variable key)

* panel index option

* remove custom component

* attempt at implementing virtual m2o logic

* adding o2m layout

* moved drawer and implementing display items for o2m

* removed o2m draggable, added limit for o2m and implemented diplay templates

* style fix for single relation

* fixed deselect for o2m

* enforce multi limit

* fixed adding items for o2m and clear all button

* abstracted away displayItem logic and cleaned up code

* add selection to drawer-collection

* fix graphql error on init

* only store an array for multiple relations

* udated var names

* use dense display for 5 items and up

* use full width for the limit option

* fixed deselect for single relation

* removed unused notices

* type fix

* clear the cache when switching collections
added required flags in options
updated label to be in line with the variable panel

* added multiple label

* fix time series options filter

it should attempt to JSON.parse() when possible, and skip parsing when there's undefined values

* remove unused styles

* prevent negative limit

* keep multiple-relation top-aligned

* fixed pronblem with deselecting/reselecting items

* keep action buttons sticky at the bottom

* text-only styling for multiple-relation buttons

* use <button> and remove unnecessary styles

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
2022-09-15 12:18:40 -04:00
Azri Kahar
f940b6a1fc correct the documented default type for argon2 (#15594) 2022-09-15 22:15:52 +08:00
Azri Kahar
3ec17671e9 Only pass singleton prop in CollectionOrItem component when necessary (#15570)
* Disable attribute inheritance for layout wrapper

* only pass singleton prop when necessary
2022-09-15 14:52:08 +02:00
Rafly Maulana
e13c8e36b0 Allow user to send a WYSIWYG email body (#15514)
* Allow user to send a WYSIWYG email body

* Revert "Allow user to send a WYSIWYG email body"

This reverts commit b65aeb4efc.

* Use a dropdown to select between WYSIWYG and Markdown Editor

* Change input-rich-text-* to wysiwyg or markdown

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-09-15 13:53:19 +08:00
Vincent Kempers
42261e5fa4 checking if there is a text or an error (#15579) 2022-09-15 11:36:57 +08:00
Nicola Krumschmidt
d68a8768fa Add a pathToRelativeUrl util function (#15578) 2022-09-14 15:01:31 -04:00
ian
bf8eec7df8 Update pull_request_template.md (#15577) 2022-09-14 13:05:41 -04:00
Nicola Krumschmidt
6bcd514161 Fix starting Directus using a custom start file (#15574)
This should resolve #15091 without breaking #14728.
2022-09-14 12:47:02 -04:00
Azri Kahar
9b24233aa4 Handle Date objects in compress util (#15547) 2022-09-13 13:41:17 -04:00
Azri Kahar
c0e12638c6 Fix O2M edits on unsaved items (#15221)
* fix o2m reopening unsaved item in drawer

* fix use-relation-multiple edits w/ display fields

* remove cloneDeep in #15220 since it's reverted

* use isObjectLike

* update the logic of cleaning edited item

* revert o2m fix

* fix merging of edits

Co-authored-by: Nitwel <nitwel@arcor.de>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-09-13 11:30:41 -04:00
ian
551f1d82b4 Fix display dimensions of SVG in image edit drawer (#15463) 2022-09-12 21:49:22 -04:00
Rijk van Zanten
08ac07c639 Update pull_request_template.md 2022-09-12 21:04:15 -04:00
Kepi
5a7974aa19 GraphQLID is always Non-Nullable (#15465) 2022-09-12 21:02:28 -04:00
Azri Kahar
c8ae40f827 fix v-list-group active state (#15442) 2022-09-12 20:00:17 -04:00
Azri Kahar
487112e679 Ensure case insensitive email for password resets (#15420) 2022-09-12 19:59:33 -04:00
Nitwel
b36ea51e13 Fix duplicate indexes (#15500)
* fix duplicate indexes

* lint

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-09-12 17:55:08 -04:00
Brainslug
e72ae3b2a7 Item Duplication for manually entered primary keys (#14947)
* disable save as copy for manually entered primary keys

* only mark primaryKey as readonly for generated pk's

* re-enable save-as-copy for manual ids
2022-09-12 17:23:54 -04:00
Jonathan Schneider
212481ff07 Add missing download and token parameter in File interface (#14871)
* add missing download and token parameter

* add download name

* update all file download links (:download and :href), update icon, add single file drawer download

* add filename_download to adjustFieldsForDisplays

* add new computed use asset url logic

* switch composable to utility function

* switch to new URL and add tests

* add getAssetUrl to file-image

* Update app/src/interfaces/files/files.vue

Co-authored-by: Nitwel <mail@nitwel.de>

* update code style error

* add download to drawer of file-image, fix wrong css selector and update preview download icon

* Remove debugging database

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Nitwel <mail@nitwel.de>
2022-09-12 16:30:43 -04:00
Roger Stringer
b1106e183d revisions for CRUD operations with $full (#15467)
* revisions for CRUD operations with $full

* Update api/src/operations/item-update/index.ts

Co-authored-by: ian <licitdev@gmail.com>

* add system role to getAccountabilityForRole and add it to create, delete and update items operations

* Whitespace consistency

Co-authored-by: ian <licitdev@gmail.com>
2022-09-13 02:25:05 +08:00
Nitwel
b0c9107d3e Fix rotating called twice (#15494)
* fix double rotating

* Fix linting

Co-authored-by: ian <licitdev@gmail.com>
2022-09-12 09:36:55 +00:00
Vincent Kempers
5f3f44a386 redudant message in unexpected error (#15520) 2022-09-11 15:08:15 +00:00
GBSTR
8c53346126 fix autofocus (#15450)
Co-authored-by: dev name <devn@brainpop.com>
2022-09-09 15:12:05 +08:00
Chaiwat Trisuwan
06cff9457a fix: add arrow-placement logic check if folder empty (#15405) (#15441) 2022-09-08 17:32:14 +02:00
rijkvanzanten
4d465764a1 v9.17.4 2022-09-06 17:01:09 -04:00