10891 Commits

Author SHA1 Message Date
Rijk van Zanten
dbc1f8095e Update package.json v10.7.1 2023-10-27 11:55:36 -04:00
Rijk van Zanten
3c12967405 10.7.1 2023-10-27 11:46:15 -04:00
Rijk van Zanten
cc8e3ce5a8 New Crowdin updates (#20132)
* New translations en-us.yaml (Italian)

* New translations en-us.yaml (Italian)

* New translations en-us.yaml (Italian)

* New translations en-us.yaml (Slovak)

* New translations en-us.yaml (Slovak)

* Update source file en-US.yaml

* 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 (Spanish, Mexico)

* New translations en-us.yaml (Italian)

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

* New translations en-us.yaml (Italian)

* New translations en-us.yaml (French)
2023-10-27 11:45:20 -04:00
Nicola Krumschmidt
f61f2b7ef1 Fix duplicate local extension name collision (#20221)
* Fix duplicate local extension name collision

Fixes #20213

* Add changeset
2023-10-27 10:14:58 -04:00
Brainslug
715388da9b Extensions fixed hook filter generic type (#20219)
* Fixed hook filter generic type

* Create angry-crabs-cover.md

* applied generic type in Filter Hook type
2023-10-27 20:23:57 +08:00
Rijk van Zanten
9afbc6efaf Handle extension names in npm org scopes (#20209)
* Handle extension names in npm org scopes

Fixes #20142

* Add changeset
2023-10-26 18:41:30 -04:00
Rijk van Zanten
46d5a8ddde Temporarily remove the on-PR blackbox tests (#20208)
* Temporarily remove the on-PR blackbox tests

* Fix formatting, rename file
2023-10-26 16:44:56 -04:00
Rijk van Zanten
fdd27c8d00 Add theme font family overrides per scope (#20204)
* Add scope for project info indicator font

* Add navigation list scope for font

* Set font for navigation bar based on theme

* Inherit font family by default

* Fix title font family not working

* Add headline font scope

* Add field label font

* Add font scope for sidebar content

* Add changeset
2023-10-26 11:59:46 -04:00
Brainslug
b4a74fc5af SDK Fix all filters required (#20200) 2023-10-26 16:08:54 +02:00
Azri Kahar
c80f8ee247 Fix caching for Content Versioning (#20153) 2023-10-26 11:25:09 +02:00
Pascal Jufer
44f1e5b5a0 Workaround for worker pool on ARM machines (#20199) 2023-10-26 11:09:02 +02:00
Azri Kahar
1a79a0df8c Add theming fields to app minimal & recommended permissions (#20198) 2023-10-26 10:38:00 +02:00
Connor
a61c8c79af Update Bug Report & Feature Request Links to Use Templates (#20197) 2023-10-26 09:33:52 +02:00
Rijk van Zanten
bc2f3b85ed Add "Project Default" option to user appearance setting (#20194)
* Add explicit "Match global" option

* Add changeset
2023-10-25 16:10:03 -04:00
Pascal Jufer
bd388f0a6b Properly handle circular structures in redaction (#20191)
* Properly handle circular structures

* Add changeset

* Add test case for circular element in array
2023-10-25 15:50:24 -04:00
Rijk van Zanten
cde4dc6c78 Run Directus in PM2 Cluster mode in Docker Image (#18998)
* Send ready state to pm2

* Run with pm2

* Add ecosystem config

* Fix cjs naming

* Add start command

* Increase kill timeout retry

* Set PM2 config through environment variables

* Add changeset

* Add config options for pm2

* Add additional config options

* Add more wordssssssssss

* Update Dockerfile

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

* Update ecosystem.config.cjs

Co-authored-by: Wryn (yage) Wagner <yage@yage.io>

* Default to undefined instead of empty string

* Update docs to match safer defaults

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Wryn (yage) Wagner <yage@yage.io>
2023-10-25 15:34:26 -04:00
Nicola Krumschmidt
10a59ba783 Fix extension reloading and schedule hooks when using the cli to start Directus (#20188)
* Fix extension reloading and schedule hooks

Fixes #20169, fixes #20184

* Add changeset
2023-10-25 13:48:41 -04:00
Pascal Jufer
f29b5a167a Enable npm provenance (#20182) 2023-10-25 13:13:46 -04:00
Pascal Jufer
4fd6616ec5 Fix rendering of closed field groups once openend (#20185)
* Fix rendering of closed field groups once openend

* Add changeset
2023-10-25 13:05:43 -04:00
Kevin Lewis
9d80bd899b Added more detail and an example to the new theming docs (#20181) 2023-10-25 09:30:53 +00:00
Pascal Jufer
61b7432950 Use fixed tag for prereleases (#20180) 2023-10-25 11:21:07 +02:00
Rijk van Zanten
3b1fad1d1f Update examples for union types (#20174) 2023-10-24 15:16:11 -04:00
Rijk van Zanten
9f62da2c1b Add link to upgrading docs (#20172)
Fixes #20148
2023-10-24 15:10:04 -04:00
Rijk van Zanten
5a0e72f532 Don't load CLI extensions if database is missing or out of date (#20171)
* Try catch extension manager init in cli

Fixes #20166

* Log caught errors to trace

* Add changeset

* Improve extension loading checks

* Revert warn -> trace

* Update changeset

* Add log for extensions skip on missing migrations

* Fix migrations check

* Enhance info message

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-24 14:54:45 -04:00
Brainslug
a4084e7c3c SDK Removed incorrect schema property (#20170)
* removed incorrect `schema` property

* Create smart-schools-run.md

* Run formatter

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-10-24 12:25:28 -04:00
Azri Kahar
78f25b66a2 Update docs for Theming (#20154)
* update docs for theming

* tweak sidebar ordering based on Data Studio

* fix formatting for theming.md

* Add favicon to dict

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-10-24 11:43:08 -04:00
Rijk van Zanten
e80657fcf4 Update requirements check to match LTS requirement (#20167)
* Require node 18+

Fixes #20165

* Add changeset
2023-10-24 11:23:33 -04:00
Rijk van Zanten
d9bd1c72dd Upgrade create-directus-project dependencies (#20164)
* Upgrade dependencies

* Move to ESM and update imports to match

* Add changeset
2023-10-24 11:17:38 -04:00
Rijk van Zanten
3fdc328d7f Change GPL to MIT (#20163)
Fixes #20161
2023-10-24 10:48:42 -04:00
Rijk van Zanten
bb0c22733f Add create-directus-project to monorepo (#20162) 2023-10-24 10:46:13 -04:00
Azri Kahar
d9736d001c Add Content Versioning Specs (#20150)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-24 12:41:17 +00:00
Daniel Biegler
d4a443d2f7 Fix 20143 show feedback on empty login (#20151) 2023-10-24 13:37:08 +02:00
Rijk van Zanten
55cc1176ad Add theming fields to app required permissions (#20136)
* Add theming fields to app required permissions

Fixes #20135

* Add changeset
2023-10-23 16:08:57 -04:00
Rijk van Zanten
9e5b9a78a7 v10.7.0 v10.7.0 2023-10-23 10:21:13 -04:00
Rijk van Zanten
bbd6ff0bb5 New Crowdin updates (#20108)
* New translations en-us.yaml (German)

* New translations en-us.yaml (Arabic)

* New translations en-us.yaml (Italian)

* New translations en-us.yaml (Dutch)

* New translations en-us.yaml (Spanish)

* New translations en-us.yaml (Romanian)

* New translations en-us.yaml (French)

* New translations en-us.yaml (Afrikaans)

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

* New translations en-us.yaml (Finnish)

* New translations en-us.yaml (Hebrew)

* New translations en-us.yaml (Hungarian)

* New translations en-us.yaml (Japanese)

* New translations en-us.yaml (Georgian)

* New translations en-us.yaml (Korean)

* New translations en-us.yaml (Lithuanian)

* New translations en-us.yaml (Mongolian)

* New translations en-us.yaml (Norwegian)

* New translations en-us.yaml (Polish)

* New translations en-us.yaml (Portuguese)

* New translations en-us.yaml (Russian)

* New translations en-us.yaml (Slovak)

* New translations en-us.yaml (Slovenian)

* New translations en-us.yaml (Albanian)

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

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

* New translations en-us.yaml (Persian)

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

* New translations en-us.yaml (Vietnamese)

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

* New translations en-us.yaml (Croatian)

* New translations en-us.yaml (Turkish)

* New translations en-us.yaml (Swedish)

* New translations en-us.yaml (Ukrainian)

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

* New translations en-us.yaml (Icelandic)

* New translations en-us.yaml (Indonesian)

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

* New translations en-us.yaml (Thai)

* New translations en-us.yaml (Estonian)

* New translations en-us.yaml (Hindi)

* New translations en-us.yaml (Malay)

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

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

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

* New translations en-us.yaml (Faroese)

* New translations en-us.yaml (Esperanto)

* New translations en-us.yaml (Breton)

* New translations en-us.yaml (Bosnian)

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

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

* New translations en-us.yaml (Nepali)

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

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

* Update source file en-US.yaml

* New translations en-us.yaml (Polish)

* New translations en-us.yaml (Russian)

* New translations en-us.yaml (Greek)
2023-10-23 10:16:52 -04:00
Pascal Jufer
8e9ad1cf7e Fix v-button active state (#20130)
* Fix v-button active state

* Add comment
2023-10-23 10:06:51 -04:00
ian
a3f4312e6e Propagate error when saving version (#20128) 2023-10-23 09:46:14 -04:00
Kevin Lewis
67306613b3 Secure Extensions Documentation (#19998)
* Scaffed page

* Execution Type section

* Moved secure page to account for potential future subpages

* Request

* CRUD

* Added execution types page

* Please the CI Gods

* Format file

* Update docs

* Add doc highlighting registration differences

* Add missing words to dict

* Add wildcard docs

* Capitalization kills

* Format file

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-10-23 09:34:59 -04:00
Pascal Jufer
b5b650c980 Fix options pass down when fields are nested in accordion (#20127) 2023-10-23 15:21:30 +02:00
Brainslug
10c75d68ca Fixes secure extension register function types (#20124)
* Removed the hard `Promise` type requiring all register functions to be async

* ran prettier

* Create beige-weeks-occur.md
2023-10-23 09:20:10 -04:00
ian
4391a73061 Fix missing hasNestedCollections prop (#20123) 2023-10-23 14:12:11 +02:00
Pascal Jufer
945a4d35ca Patch a few dependencies (#20121) 2023-10-23 12:42:42 +02:00
Brainslug
6228d78a22 Fix create-directus-extension utility (#20120) 2023-10-23 12:33:34 +02:00
Kevin Campbell
fa28f20e22 Fix example code in Realtime Guide (#20114)
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-23 08:58:09 +00:00
Rijk van Zanten
f6d03c2926 Add support for glob strings in request url permissions (#20116)
* Install glob-to-regexp

* Support globs for url config

* Fix exec order of perm check
2023-10-22 13:20:52 -04:00
Rijk van Zanten
441b062ccc Require scope for log / sleep (#20115) 2023-10-22 13:08:08 -04:00
Rijk van Zanten
5a1f8874bd Tweak secure extensions (#20113)
* Catch errors thrown in router callback

* Resolve virtual modules from directus: ns

* Use headers as string-string record

* Add sandbox types

* Ship sandbox types

* Fix copy/paste error in operation registration

* Update pnpm lock for good measure

* Use asyncHandler
2023-10-22 11:28:11 -04:00
Rijk van Zanten
09a9be7488 Tweak notes to rules 2023-10-21 14:58:01 -04:00
Rijk van Zanten
20197141b2 Fix method casing (#20111) 2023-10-21 10:47:44 -04:00
Rijk van Zanten
76f60913e3 Secure Extensions (#20031)
* start setting up types

* Add types for sandbox flag

* Add initial secure API extensions implementation

* Remove erroneous file

* Delete old exec implementation

* Read sandbox from extension manifest

* Rename \0virtual to @directus/virtual-ent4y

* Test register exec

* Add exec function using ivm callback

* Throw error on invalid type

* Make extensions individually unregisterable

* Remove support for secure bundle extensions

* Rework context passing to fix async

* Remove unused promise.resolve

* Start implementing secure extension register and context functions

* Rename secure to sandbox

* Only dispose isolate on catastrophic error

* Use callback copy option instead of explicit ExternalCopy

* Add registerOperation handler

* Add registerRoute handler

* Rename some return values

* Rename sandbox registration file

* Expose utils through sdk import

* Remove unused files

* Rename timeout to sleep for consistency with flows

* Make registerRoute method uppercase

* Add request util

* Abort process on catastrophic error

* Update api extension sdk import name

* Add variables for reference parameters for consistency

* Add permissions to request util

* Fix non-determinism when registering sandboxed extensions

* Improve stack trace readability

* Initialize isolated-vm for Vitest

* Format files

* Fix request options undefined check

* Always copy host function result into isolate

* Split up host function reference generation

* Add workaround for async error from host not thrown in isolate

* Use undefined instead of null as first argument to apply

* Abort process if sandbox has reached memory limit

* Reorganize files

* Use type error for assertion

* Use typeerrors in sdk generators, restructure some more

* Document

* Add changeset

---------

Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-21 10:31:46 -04:00