Commit Graph

9716 Commits

Author SHA1 Message Date
Rijk van Zanten
88312eb830 Create linear.yml 2022-12-15 17:35:14 -05:00
Brainslug
511c8d368b Fix json serialization (#16558)
* fix copying json fields

* fixed preset filter type

* handling fallback in copyToClipboard function

* add test

* try parsing json content on paste

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-12-15 10:40:43 +01:00
Brainslug
bbcf76e030 enforce uppercase UUIDs for MS SQL (#16691)
* add forced uppercase for UUIDs in MS SQL

* test whether mssql returned uuid is uppercase

* use once just for slight better correctness

* once is actually not enough

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
2022-12-15 13:34:31 +08:00
Azri Kahar
431f95210a align ASSETS_CACHE_TTL default value in .env stub (#16755) 2022-12-15 00:34:02 +08:00
Brainslug
807bda3dcb Follow up user Roles not loading (#16278)
* applied the same role fix too users invite

* added same fix when saving permissions

* Prevent loading users unecessarily on the permission page

* Added proper `deep` query typing

* fixed typing for tests

* apply similar fix for navigation folder
2022-12-13 15:05:14 +01:00
Nitwel
57b023493d Update minimum node version to 16+ (#16774)
* update readme.md

* 16 👎 18 👍

* Update readme.md

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-12-13 12:11:59 +01:00
Azri Kahar
b39603f51c remove duplicated type for interfaceConfig group (#16770) 2022-12-12 17:20:07 +01:00
Nick Ufer
9405e87a34 fix: adds missing Query and x-metadata to /components/schemas (#16524)
* fix: adds missing Query and x-metadata to /components/schemas

* test: adds Query and x-metadata to specifications.test.ts

* refactor: moves oas schemas to be always included to constants.ts

* refactor: renames OAS_INCLUDE_SCHEMAS to OAS_REQUIRED_SCHEMAS

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-12-06 09:17:23 +01:00
Brainslug
939c5ab197 Use absolute url instead of relative path for exports (#16724) 2022-12-05 17:11:31 -05:00
Azri Kahar
b905741601 tweak datetime picker styles (#16714) 2022-12-05 10:01:49 -05:00
José Varela
5d1847807c Translations: Fix missing tfa_setup (#16710)
* Fix missing `tfa_setup` to translations

* Add missing `admin_disable_tfa_text`
2022-12-05 09:40:33 -05:00
Piotr
018452d141 Fix typo in env stub (#16717) 2022-12-05 14:45:41 +01:00
Rijk van Zanten
86dd593f91 Use node16 module-resolution (#16696)
* Use node16 module-resolution

* Lets not mess with apply-query rn

* I love CJS. Death to CJS.

* Use CJS require in hook import

* Fix type export in schema

* Clean up defaults usage

* Use require instead of import for migrations

* Use a vitest compatible dynamic import

* Uno mas

* Cleanup type export
2022-12-02 15:53:15 -05:00
Nitwel
b3110a3627 fix wrong default ip (#16585)
* fix wrong default ip

* update fallback ip
2022-12-02 12:57:52 +01:00
Azri Kahar
0147a7e5b6 fix permission presets with dynamic variables (#16614)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-11-30 16:05:26 +01:00
Azri Kahar
a4de019ead Fix repeated logic caused by updateOne & deleteOne overrides (#16433)
* fix updateOne & deleteOne overrides repeated logic

* replace remaining jest usages

* fix notifications service env mock

* simplify mockImplementation with mockResolvedValue

* fix types in test

Co-authored-by: ian <licitdev@gmail.com>
2022-11-30 21:51:11 +08:00
Azri Kahar
1c93cc661e Reduce translate function calls in the App (#16038)
* translate fields during hydration

* patch untranslated raw values on field edit

* simplify/remove existing translate usages

* minor codestyle

* translate field note and validation_message

* stub api call in fleld-detail store test

* skip fields translation before user locale sets in

* optimize hydration calls

* use translateLiteral for note & validation_message

* cherry pick field meta properties to patch

* reduce setLanguage calls & settings requests

* settings store test & type update

* tweak variable casing

* test server store & fix existing type/ref issues

* update fields store test for skipTranslation

* fix render-display merge

* await field update before opening drawer

* fetch meta at the end to load relationships first

* add loading state to prevent editing some fields

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-11-30 13:33:31 +01:00
Azri Kahar
ce8f571c72 Fix key combinations being prevented in dbSafe v-input when it's a leading number (#16668)
* Fix key combinations being prevented in v-input

* should normalize accented characters first

* add tests for processValue and emitValue

* export keyMap from use-shortcut to keep things DRY

* try to add test for use-shortcut composable

* move systemKeys to use-shortcut

* add "capslock" & "enter" to systemKeys
2022-11-30 19:56:44 +08:00
Brainslug
1eea9d8b0f Missing logs with Pino asynchronous logging (#16299)
* force logger in sync mode when running on the CLI

* using the sync logger for all cli commands

* using cli logger for app initialization

* using pino pretty for log formatting

* installed deps

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-11-29 14:26:37 -05:00
rijkvanzanten
d6b8e5963d v9.21.2 v9.21.2 2022-11-28 15:44:12 -05:00
rijkvanzanten
03505fdba9 Update docs 2022-11-28 15:41:57 -05:00
rijkvanzanten
03bec7975f v9.21.1 2022-11-28 15:10:13 -05:00
rijkvanzanten
51b1daec58 v9.21.1 v9.21.1 2022-11-28 15:09:00 -05:00
Rijk van Zanten
a58dc4dc13 New Crowdin updates (#16500)
* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Vietnamese)

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

* New translations en-US.yaml (Bengali, India)

* New translations en-US.yaml (Arabic)

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

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Dutch)
2022-11-28 15:07:02 -05:00
rijkvanzanten
76284ed9e0 Update docs 2022-11-28 15:05:00 -05:00
Pascal Jufer
ad69b4b264 Fixup: Re-add entrypoint type definition files in @directus/shared (#16641) 2022-11-28 14:50:29 -05:00
Azri Kahar
d1483b15b4 improve v-icon performance (#16511) 2022-11-28 14:39:38 -05:00
Azri Kahar
0a839b53b4 v-menu pointer event tweaks (#16512)
* v-menu pointer event tweaks

* apply tweak to .v-menu click & closeOnContentClick
2022-11-28 14:39:23 -05:00
Azri Kahar
2f5640d383 fix missing collection after sorting M2A (#16570) 2022-11-28 14:38:58 -05:00
Pascal Jufer
62b4a2413c Re-add entrypoint type definition files in '@directus/shared' (#16606) 2022-11-24 15:37:13 -05:00
Azri Kahar
ecb0998a8f optimize stores hydration calls (#16591) 2022-11-23 17:24:20 -05:00
ian
8a3dc4b68b Propagate mutation options for schema apply (#16562)
* Propagate mutation options for schema apply

* Fix unit test

* Add bypassCache flag and remove flushCaches calls

* remove accountability option from getSchema

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-11-22 14:57:17 -05:00
José Varela
f3e4ae0b6f Add nonce to request (#16563) 2022-11-22 10:02:38 -05:00
Andrii Trubai
12786728ed Fix .module-nav-resize-handle layout (#16518)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-11-18 15:18:09 -05:00
Pascal Jufer
47db8e5d2f Clean-up dependencies (#16481)
* Clean-up api

- Remove unnecessary deps
- rimraf -> del-cli

* Clean-up app

- bytes -> pretty-bytes
- Remove ms as we already have pretty-ms
- Remove other unnecessary deps
- Add storybook build to gitignore

* Clean-up drive packages

- Simplify cleanup scripts
- rimraf -> del-cli
- Remove unnecessary deps

* Clean-up schema

- Remove unnecessary dep (lodash)
- Replace 'npm-watch' with native watch mode

* Clean-up shared

- Remove unnecessary dep (c8, adding @vitest/coverage-c8 will be addressed in
  other PR)
- rimraf -> del-cli
- npm-run-all -> concurrently

* Clean-up root

- Add missing eslint-plugin-jest dep
- listr -> listr2

* Make build output a bit friendlier

* Remove cleanup scripts

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-11-18 17:02:41 +00:00
Azri Kahar
f0da901af4 Set auth_data to null when updating user (#16501) 2022-11-18 11:46:55 -05:00
ian
06aca3329c Remove named timezone usage on MySQL (#16499) 2022-11-18 11:46:29 -05:00
Rijk van Zanten
4e0893c6a4 Update readme.md 2022-11-18 10:13:43 -05:00
Nicola Krumschmidt
eb71b5e320 Use esbuild to build typescript extensions (#15989)
* Deduplicate rollup option getters

* Use esbuild to build typescript extensions

* Set esbuild sourceMap option based on cli flag
2022-11-17 16:45:53 -05:00
rijkvanzanten
df3bc387e6 v9.21.0 2022-11-17 16:33:25 -05:00
rijkvanzanten
ba00c28bf3 v9.21.0 v9.21.0 2022-11-17 16:31:59 -05:00
Rijk van Zanten
cab48e57d9 New Crowdin updates (#16300)
* New translations en-US.yaml (German)

* New translations en-US.yaml (French)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (French)

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

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

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

* New translations en-US.yaml (Portuguese, Brazilian)
2022-11-17 16:30:00 -05:00
rijkvanzanten
54e2453e00 Update docs 2022-11-17 16:28:39 -05:00
rijkvanzanten
4ab04f67f3 Add getEnv wrapper 2022-11-17 12:20:57 -05:00
cf-ts
1875f1d18d fix syntax in oas (#16485)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-11-17 11:23:58 -05:00
Azri Kahar
d38d8255c0 fix shares drawer closing event (#16487) 2022-11-17 11:22:25 -05:00
Azri Kahar
5e4d7972b1 use pnpm shell-emulator instead of cross-env (#16486)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-11-17 11:21:22 -05:00
ian
0ac08da7ed Fix legacy permissions for M2O fields in GraphQL (#16430)
* Remove relation for legacy permission without allowed field

* Remove deprecated formatError and improve error handling

* Add unit test

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-11-17 11:04:56 -05:00
Azri Kahar
ed53673b0f Fix condition operation passing even when the checked field isn't present in the payload (#16483)
* use requireAll in validatePayload for condition

* add/update tests
2022-11-17 10:55:43 -05:00
Nicola Krumschmidt
5d25c19836 Detect used package manager in extension CLI (#15909)
* Detect used package manager in extension CLI

* Add tests

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-11-17 10:53:54 -05:00