Commit Graph

10030 Commits

Author SHA1 Message Date
rijkvanzanten
9f708d67bc v9.22.3 v9.22.3 2023-01-11 12:16:11 -05:00
rijkvanzanten
fa8821309e Fix app docs build 2023-01-11 12:14:44 -05:00
rijkvanzanten
f76b29a00e v9.22.2 2023-01-11 11:29:14 -05:00
rijkvanzanten
b9a5005859 v9.22.2 v9.22.2 2023-01-11 11:27:56 -05:00
Rijk van Zanten
73783d002d New Crowdin updates (#16911)
* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Thai)

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

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

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

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

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (Hindi)

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

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

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Khmer)

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

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

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Slovak)

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

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Arabic)
2023-01-11 11:26:45 -05:00
rijkvanzanten
390b55354e Update in-app docs 2023-01-11 11:25:08 -05:00
Azri Kahar
4b89566496 Wrap mime-type display in span node (#17084) 2023-01-11 11:09:05 -05:00
Rijk van Zanten
874dda8078 Make forcePathStyle configurable (#17081)
* Make forcePathStyle configurable

Defaulting to true when an endpoint was provided caused issues.

* Fix test setup
2023-01-10 17:40:48 -05:00
Azri Kahar
bc41307f00 Fix page tracking debounced timeout (#16552)
* fix trackPage timeout resets

* tweak test
2023-01-10 16:56:52 -05:00
Azri Kahar
32603cbf2f use setCacheValue in get-permissions util (#17044) 2023-01-10 16:45:59 -05:00
Brainslug
c6b2d5c408 Updated readme installation instructions to use docker (#17019)
* Updated readme installation instructions to use docker

* Simplify readme

Co-authored-by: Eron Donevan Powell <62306630+erondpowell@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-01-10 16:24:30 -05:00
Brainslug
dda1afcf16 Collection export limit 0 leads to 500 error (#16722)
* prevent 500 error when limit=0

* short circuit parser instead

* removed unneeded comment

* setting a sensible minimum and step for export limit

* fixed notif message when exporting limit=-1

* re-added !exportSettings.limit fallback behavior

* guard against negative limit values lower than -1

* add unit test for sanitizeQuery

* remove unnecessary test cases

because offset and page are validated in validateQuery

* delegate validation to validateQuery instead

* use sanitizeQuery util for export

* Added check for integers

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

* validate instead of sanitize

* removed obsolete test

* added integer checks for limit, offset, page and sensible minimums

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-01-10 09:35:31 +01:00
Azri Kahar
986984e113 Simplify calendar layout's first day options (#16617)
* Simplify calendar layout's first day options

* use type that is more technically accurate
2023-01-09 17:19:49 -05:00
Rijk van Zanten
c249d58a8c Revert "Speed-up api dev scripts by using swc (#16609)" (#17064)
This reverts commit e9a2ce5a9e.
2023-01-09 16:57:03 -05:00
Azri Kahar
7616b25988 Pass emitEvents to query methods in item-read & item-delete operations (#16579)
* fix item-read's readByQuery emitEvents

* fix item-delete's deleteByQuery emitEvents

* tests
2023-01-09 15:50:55 -05:00
Pascal Jufer
e9a2ce5a9e Speed-up api dev scripts by using swc (#16609) 2023-01-09 15:47:41 -05:00
Pascal Jufer
c16be6f644 Type fixes in app (part 1) (#16545)
* 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)

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-01-09 18:29:03 +00:00
Azri Kahar
bc82c7bb8c Throttle idle event listeners (#16555)
* throttle idle event listeners

* export timeout duration to use it in test directly
2023-01-09 12:13:49 -05:00
Andrii Trubai
216930ee92 Render-template layout fix (#16476) 2023-01-09 11:58:32 -05:00
Nitwel
3a52d9e150 Ignore extension folders on lint (#17013)
* ignore extension folders on lint

* Update .eslintignore

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

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-01-09 09:49:10 -05:00
ian
1d6e77d5ab Fix last admin check for alterations type inputs (#16595)
* Fix last admin check for alterations type inputs

* Add unit tests

* fix mocks causing side-effects

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-01-09 20:33:13 +08:00
ian
bcbbd81257 Cast numeric filter values as number for _eq and _neq operators (#16657)
* Cast numeric filter values as number for _eq and _neq operators

* Add check for empty string

* Add check for booleans
2023-01-06 16:06:39 -05:00
ian
f0e8f0bef0 Remove TZ conversion for timestamps in MySQL (#16679) 2023-01-06 16:06:09 -05:00
José Varela
c1887bee86 Cache / Permissions: Prevent server crash when command times out (#16927)
* Catch get permissions from cache when command times out

* Update api/src/utils/get-permissions.ts

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

* Use get/set cache for permissions

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-01-06 18:20:14 +00:00
José Varela
d928275447 Storage / S3: Only pass key and secret if defined (#16942)
* Only pass key and secret if defined
Otherwise, use machine config

* Make conditions more readable

* Opionated formatting tweaks

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-01-06 12:59:26 -05:00
Rijk van Zanten
b0350d3ce0 Don't double-root file ref (#17039)
Fixes #17022, fixes ENG-392
2023-01-06 12:03:49 -05:00
Roger Stringer
c429ecd57c healthcheck crashes with local file storage (#16944)
* Update api/src/services/server.ts
* remove try catch in write
* Update api/src/services/server.ts

Co-authored-by: Freekrai <freekrai@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-01-06 07:17:04 -08:00
ian
daf931a442 Add Khmer (Cambodia) language for i18n (#17007)
* Add Khmer (Cambodia) language for i18n

* Add translation file

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-01-05 15:06:17 -05:00
Azri Kahar
0122c4da4b Add bottom margin to Slider interface to account for field note (#17024)
* add margin when thumb label is always visible

* add z-index to thumb label for field note

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-01-05 08:31:15 -05:00
Brainslug
9f60b0f31d Remove auto-increment primary key when saving as copy (#16966)
* check for auto increment when saving as copy

* updated check to cover uuid generated IDs

* attempt to test use-item composable

* updated test objects

* do not rely on is_generated

* fix readonly regression

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-01-05 19:07:11 +08:00
Azri Kahar
446dbb87c7 fix removal of item in local storage (#16581) 2023-01-05 11:17:00 +01:00
Brainslug
cbd2af050b Implements server sort in o2m table interface (#16897)
* implements server sort when dealing with multple relational pages

* always use server sort

* fixed unsetting sort

* removed frontend sorting

* make loading total count more accurate

* remove removed prop

Co-authored-by: Nitwel <mail@nitwel.de>
2023-01-04 16:32:05 +01:00
Nitwel
2ac022d286 Extension Improvements (#16822)
* add link command and small improvements

* put local bundles into own folder on link

* get rid of packs and add bundle support for local extensions

* make bundle type extensions work locally and remove traces of pack

* fix hot reloading of bundles

* fix app.js not refreshing

* fixed linter errors

* add endpoint to install extensions

* update package.json validation and support top level extensions

* update endpoints

* added some URL escapes and ran linter

* remove installation part

* readd endpoint

* update dependencies

* fix types and validation in extension-sdk

* run linter

* fix linter

* add defaults to manifest

* Added missing constant export

* ensure all the extension folders

* ignore unneeded vite error

* update linking process

* run parser separate

* add await

* fixed linter errors

Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-01-04 15:20:33 +01:00
Gerard Lamusse
9f06c36e0d Disable field selection for alias fields in the system-filter component when functions are used (#14314)
* Disable selecting alias fields to filter on

* Only disable alias fields when in condition mode
2023-01-04 13:27:13 +01:00
ian
802dfa0703 Fix inner query sort limit (#16922)
* Add sort within inner query

* Run tests for all vendors

* Apply limit to all queries

* Enable sorting in MSSQL subquery by setting a limit

* Add tests

* Parse function field names for a2o

* Improve order string spacing

* Update unit test

* Fix mysql5 tests

* Revert testing for all vendors

* Extract original collection name

* Add comment for MSSQL applyLimit helper

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-01-04 19:43:17 +08:00
Andrii Trubai
04497ccbd7 Fix translations display width (#16525) 2023-01-04 12:21:58 +01:00
ian
d01c4cbedf Allow env access in Flows Run Script operation (#16111)
* Allow env access in Flows Run Script operation

* Add env variable

* Expose env for consistency

* Remove global variable from run script operation

* Rename env to FLOWS_ENV_ALLOW_LIST

* Use env within data for consistency

* Remove env notice in run script operation

* Remove translation and tests

* Fix unit test

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-01-04 10:39:52 +01:00
Pascal Jufer
c3ecbed0b4 Handle plain object body in "Send Email" operation (#16859)
* Handle plain object body in "Send Email" operation

* Update api/src/operations/mail/index.ts

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-12-30 14:08:18 +01:00
Brainslug
dc1a218c58 export extension contexts (#16667) 2022-12-23 15:26:32 -05:00
Pascal Jufer
6b68db7127 Remove deprecated npm flag in Dockerfile (#16858) 2022-12-23 11:58:25 -05:00
Azri Kahar
e899244ef3 Add unit tests to several API utility functions (#16662)
* add unit tests to several API util functions

* fix timezone tests to account for daylight saving

* add a note for future reference

* Update api/src/utils/get-date-formatted.test.ts

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

* remove unnecessary note as it is not an issue

* fix getEnv mock in validate-env test

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-12-23 16:51:49 +00:00
Azri Kahar
6bf5de1f9d Re-use getEndpoint utility function (#16700)
* re-use getEndpoint util

* rename endpoint var to route in calendar layout

* move loading below early return statements
2022-12-23 11:50:21 -05:00
Azri Kahar
8080e87d46 Minor codestyle tweaks to datetime display & interface (#16678)
* Minor codestyle tweaks to datetime display

* tweak datetime interface

* use all instead of each
2022-12-23 11:49:18 -05:00
Azri Kahar
ddb873e09b Fix getCacheKey path matching for graphql (#16647)
* fix getCacheKey path matching for graphql

* tweak  test
2022-12-23 11:48:45 -05:00
Rijk van Zanten
40f94e6907 Patch Tuesday 🐸 (#16875)
* Update versions

* Fix usage of fullcalendar

* Patch Tuesday Additions 🐸🐸 (#16878)

* Interop default in vitest

* Update exif-reader

* remove deprecated @types/pino

* remove old "grant" package type shim

* Small clean-up of dependencies (#16576)

* Remove outdated type deps & update concurrently

* fix lock file

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

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-12-23 10:45:15 -05:00
Azri Kahar
fdeddf0118 Fix use-items loading state when an existing request gets canceled (#16881)
* prevent canceled requests from clearing loadingTimeout

* rename CancelTokenSource variable

* don't set loading to false if there's still loadingTimeout

* updated request cancellation to use the abort controller

* azri's getItemCount fix

* prevent cancelled requests from throwing errors

* prevent count request from firing twice

* Remove fetchOnInit option

Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-12-22 21:31:43 +00:00
rijkvanzanten
602f5db4f7 v9.22.1 v9.22.1 2022-12-21 17:12:11 -05:00
Rijk van Zanten
4e3215fb13 Allow setting region outside of endpoint (#16877) 2022-12-21 17:08:54 -05:00
Rijk van Zanten
d2fae39372 Delete add-to-project.yml 2022-12-21 15:09:43 -05:00
rijkvanzanten
4c80992fab v9.22.0 2022-12-21 14:39:21 -05:00