Commit Graph

10030 Commits

Author SHA1 Message Date
nazarevrn
9c55ed6728 Make threshold checks configurable (#15284)
* Make threshold checks configurable

* Fix linter

Co-authored-by: Roman Nazarev <roman.nazarev@skyeng.ru>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-08-30 14:41:26 -04:00
Nitwel
6e19683a00 add collection info to conditions (#15238)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-08-30 14:40:12 -04:00
ian
a971455216 Add origin to accountability (#15273)
* Add origin to accountability

* Remove origin column from seeds
2022-08-30 14:15:44 -04:00
Brainslug
b2d127dcc8 Default values ignored for validations affected by conditions (#15310)
* added default values when validating items

* abstracted default value parsing to its own util

* Added a basic test

* updated tests

* fixed import

* implementing the same fix for conditions on the drawer-item
2022-08-30 16:46:38 +02:00
Brainslug
a91e96d6d1 Moved CORS headers before the JSON body is parsed (#15308) 2022-08-30 10:11:45 -04:00
Azri Kahar
f77d12eff4 Fix thumbnail overflow in render-template (#15115)
* fix thumbnail overflow in render-template

* new fix for render-template thumbnail in table

* fix thumbnail not working in page titles

* prevent thumbnail overflow in page title
2022-08-29 15:06:57 -04:00
ian
92b54c4d09 Use encodeurl package to escape URLs for axios (#15257)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-08-29 15:05:29 -04:00
John Flow
5e8137367b Added COOKIE_OPTIONS to /refresh (#15302)
* Added COOKIE_OPTIONS to /refresh

* Remove unused import

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-08-28 15:53:05 -04:00
rijkvanzanten
701e540680 Ignore debug folder 2022-08-27 18:31:36 -04:00
tenebrius
a98a83b5da Update node-cron to 3.0.2 (#15234)
* Update node-cron to 3.0.2

* Update lockfile accordingly

* Fix lockfile resolution

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-08-25 18:46:10 -04:00
Azri Kahar
08105d0ed2 Revert list style for O2M and M2M interfaces (#15267)
* revert list style for list-o2m

* revert list style for list-m2m
2022-08-25 17:19:18 -04:00
Pascal Jufer
93954af2e2 Add new flow env to allowed list & remove comment leftover (#15268) 2022-08-25 14:11:52 -04:00
Nitwel
f91247260a fix and clean up m2m & o2m (#15220) 2022-08-24 17:52:04 -04:00
Nitwel
e605f2cd64 add missing translations (#15218) 2022-08-24 17:51:48 -04:00
ian
05d05f2cb8 Return empty array if scope is not defined (#15228)
* Return empty array if scope is not defined

* Add empty event trigger text when option is removed
2022-08-24 17:34:04 -04:00
ian
f64e1d36d3 Expose login stall time environment variable (#15215)
* Expose login stall time environment variable

* Update env stub template

* Update description

* Increase default stall time to 500ms
2022-08-24 16:52:23 -04:00
Nitwel
ba3494572a Allow for displaying lists in render template (#15243)
* support arrays in render-template

* allow for rendering lists in render-template
2022-08-24 15:22:10 -04:00
Nitwel
61a8cca102 Fix filter not resetting on bookmarks (#15236)
* fix bug and make code consistent

* clean up unnecessary complexity
2022-08-24 15:21:13 -04:00
Nicola Krumschmidt
ef0a6eb965 Be smarter when scaffolding an extension and choosing the package name and target path based on the user-provided name (#15213)
* Only add extension name prefix if it is not present

* Strip package scope from extension name when used as target dir

* Check if extension target dir is empty

* Improve error message when build output file path is empty
2022-08-22 18:19:12 -04:00
Rijk van Zanten
ae55957e82 Don't make variable panels disabled (#15211) 2022-08-22 12:44:41 -04:00
Brainslug
add851ac16 Can't edit o2m relations to directus_files collection (#15210)
* getLocalType confusing m2o and o2m

* first batch of tests for get-local-type

* adding more tests for the get-local-type test
2022-08-22 12:32:06 -04:00
Nicola Krumschmidt
4150315a85 Update watched extensions when enabling watcher (#15209)
This fixes watching for package extensions.
2022-08-22 12:30:03 -04:00
Gerard Lamusse
ef939072cc Fix displaying values from deeper relationships in table (#15155) 2022-08-19 10:42:57 -04:00
rijkvanzanten
9301118650 v9.16.1 2022-08-19 10:13:11 -04:00
ian
13bf30e90a Update workspace tile position only when there are values defined (#15164) 2022-08-19 10:10:05 -04:00
rijkvanzanten
f21f8c4707 v9.16.1 v9.16.1 2022-08-19 09:13:10 -04:00
Brainslug
76964b67a3 v-form error: Cannot read properties of undefined (reading 'meta') (#15160)
* do optional chaining for fieldMeta in case it is not loaded yet

* using the loading prop instead of checking values

* Added better typing to catch undefined values
2022-08-19 09:11:47 -04:00
rijkvanzanten
a4f65292d0 v9.16.0 2022-08-18 16:57:32 -04:00
rijkvanzanten
58f6a6fcde v9.16.0 v9.16.0 2022-08-18 16:55:44 -04:00
rijkvanzanten
ec024217c3 Update app docs 2022-08-18 16:52:48 -04:00
Rijk van Zanten
3643bbfae4 New Crowdin updates (#14994)
* New translations en-US.yaml (Chinese Traditional)

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

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

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

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

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

* 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 (Chinese Traditional)

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

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

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

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

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

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

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

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

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Polish)

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

* New translations en-US.yaml (French)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Italian)

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

* Update source file en-US.yaml

* Update source file en-US.yaml

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Persian)

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

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Breton)

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

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

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Portuguese)

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

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Estonian)

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

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

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

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Afrikaans)

* 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 (Greek)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Hungarian)

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

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Norwegian)

* New translations en-US.yaml (Slovenian)

* New translations en-US.yaml (Ukrainian)

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

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

* New translations en-US.yaml (Croatian)

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

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

* Update source file en-US.yaml

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Persian)

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

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Breton)

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

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

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Polish)

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

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Estonian)

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

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

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

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Afrikaans)

* 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 (Chinese Simplified)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Slovenian)

* New translations en-US.yaml (Ukrainian)

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

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

* New translations en-US.yaml (Croatian)

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

* New translations en-US.yaml (Sorani (Kurdish))
2022-08-18 16:51:57 -04:00
ian
73fa8d66ac Emit nested action events after the transaction completes (#14981)
* Emit nested action events after the transaction completes

* Propagate mutation options for the disabling of nested emits

* Disable emit in test

* Shift emitting
2022-08-18 16:07:33 -04:00
José Varela
63b667e45d API: Bypass cache for /server/ping (#15149)
* Bypass schema cache

* Bypass request cache

* Short-circuit on ping calls

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-08-18 16:04:45 -04:00
Brainslug
b9803456e0 Stop groups from rendering before the conditions are applied (#15144)
* update open state if already initialized

* prevent group rendering with default props before data is loaded

* prevent default field options before values are loaded
2022-08-18 15:40:17 -04:00
Azri Kahar
ad97b309cd Allow array of user IDs for Notify operation (#14694)
* Allow array of user IDs for Notify operation

* Update app/src/operations/notification/index.ts

* use csv for all tags interfaces in Flow operations
2022-08-18 15:39:51 -04:00
Rijk van Zanten
a21b28b423 Add "Run Script" operation (#15101)
* [WIP] Start working on script operation

* WIP Remove npx-import experiment

* Don't break on string value in options scope

* WIP Add module whitelist

* Mission critical import cleanup work

* Add translated labels

* Use nodeVM for everything

Keeps the export function callback structure consistent

* Tweak wording

* WIP start on tests

* Improve typing in shared define types

* Add missing base reactive properties in server store

* Add tests for exec index in app

* Add tests

* Optimize error handling
2022-08-18 15:39:25 -04:00
Gerard Lamusse
9c104519f0 Initial interface of O2M & M2M Table View (#12820)
* Fix lint issues
Merge in main

* Add support for resizing columns.
Disable sorting on json columns

* Replaced static text with translations

* remove unused variables

* add no collection/fields states to system-fields

* turn columns to notice when creating list-m2m

* tweak system-fields no fields background color

* add danger styling for deselect in table layout

* add tooltips

* prevent linking to items without ID yet

* fix launch icon for list layout

* tweak padding for per page

* Update missing types

* resolve ::v-deep to :deep warning

* minor style tweaks

* fix search

* fix destructuring crashing when no permissions

* remove unused variables

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-08-19 03:16:20 +08:00
Gerard Lamusse
394e577668 Fix searching custom value and text property on v-select (#15148) 2022-08-18 15:07:09 -04:00
Pascal Jufer
de2d81082c Revert "Fix "Unrestricted file system access to" messages" (#15146) 2022-08-18 15:06:27 -04:00
ian
6c0e60a7f7 Hide item link for delete action in activity feed (#15131)
* Hide item link for delete action in activity feed

* Store translated action separately
2022-08-19 01:19:31 +08:00
Azri Kahar
b2683e6d75 fix name removal in Presets & Bookmarks (#15141) 2022-08-18 08:55:42 -04:00
Lukas Schätzle
a803331b4a Unify download icon (#15132) 2022-08-17 16:44:41 -04:00
Rijk van Zanten
19ddd89d8d Move unit tests to files they apply to (#15130)
* Move unit tests to files they apply to

* Remove tests root
2022-08-17 16:01:16 -04:00
ian
122f8cfed0 Fix URL for subfolder assets (#15126)
* Prevent duplicate rootPath for image in file-preview

* Add rootPath to file and file-image for downloading

* Revert change to v-image

* Patch rootPaths accordingly

* Fix missing file name on download
2022-08-17 14:03:29 -04:00
Azri Kahar
d6bfef40cc Fix v-image's intersection observer sometimes preventing image load (#15082)
* Fix v-image's intersection observer

* check the last entry instead

* clean up

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-08-17 11:44:18 -04:00
ian
f8ea4fdcd2 Remove limit when loading flows (#15106) 2022-08-17 11:41:04 -04:00
ian
dca0290d1f Remove check button when displaying activity log item (#15107) 2022-08-17 11:40:38 -04:00
ian
191a70d746 Use img for user placeholder image in activity feed (#15109) 2022-08-17 11:36:14 -04:00
Azri Kahar
5297c56422 Fix translations interface and use-relation-multiple empty edits (#15111)
* fix translations interface empty edits

* fix use-relation-multiple empty edits
2022-08-17 11:35:09 -04:00
Azri Kahar
86a8134a37 Reinstate language direction translations keys (#15113) 2022-08-17 11:32:12 -04:00