Commit Graph

2732 Commits

Author SHA1 Message Date
Pascal Jufer
d30bb69490 Clean-up deps (#20581) 2023-11-30 00:46:09 +01:00
Pascal Jufer
a5215d674b Update TypeScript to 5.3.2 (#20571) 2023-11-29 13:54:56 +01:00
Brainslug
abf0cba75d Fixed GraphQL SDL Error (#20535)
* Fixed missing accountability

* Add changeset

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-11-27 10:23:05 -05:00
Azri Kahar
a11fb2b59d Allow configuration to prevent server startup when an extension fails to load (#20495)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-23 16:37:57 +00:00
Brainslug
e05d9240de GQL directus_permissions ID nullable (#20511) 2023-11-23 14:18:19 +01:00
Rijk van Zanten
afc4b23fc7 v10.8.2 2023-11-22 15:23:38 -05:00
Azri Kahar
2ed5ac0871 Fix full permissions & minimal app permissions (#20505)
* revert #8391

* revert #20347

* revert #20347

* undo revert of validation and presets null logic

* add changeset
2023-11-22 14:56:29 -05:00
Pascal Jufer
c9b4119922 Update tsx to v4.1.4 (#20479) 2023-11-20 16:48:36 +01:00
Pascal Jufer
ba7fac402e Update Prettier v3.1.0 (#20481) 2023-11-20 16:23:22 +01:00
Pascal Jufer
454ecdbefe Update Vitest to v0.34.6 (#20477) 2023-11-20 13:04:56 +01:00
Azri Kahar
091d1a6ade fix default values for system-theme-overrides (#20464) 2023-11-17 23:53:13 +01:00
Pascal Jufer
be4410f948 v10.8.1 (#20463) 2023-11-17 17:38:16 +01:00
Pascal Jufer
c6f47f90b2 More accurate OAS based on authenticated user (#20462) 2023-11-17 17:24:18 +01:00
Pascal Jufer
6953ad46ad Fallback to hostname for OAS URL if no PUBLIC_URL specified (#20460)
* Fallback to hostname for OAS URL if no PUBLIC_URL specified

* Add changeset

* Clearer variable name
2023-11-17 16:49:38 +01:00
Brainslug
90422c30d8 OAS based on permissions (#20386) 2023-11-17 00:15:40 +01:00
Rijk van Zanten
7f5d690c4e v10.8.0 2023-11-16 16:59:46 -05:00
Rijk van Zanten
8d8b649a1f Theming various (#20426)
* Update the minimal theme

* Remove unused files

* Remove unused default dark theme

* Fix type error

* Fix the order of themes in the picker interface

* Fix account/sign-out not using module foreground color

* Fix module bar interface styling

* Update system match label

* Use half width for default appearance

* Fix preview changed based on appearance

* Add includeNull option to theme selector interface

* Add minimal theme extension docs

* Attempt to make typedoc play nice

* Remove module bar color override

* Add snippet on overrides interface

* Deprecate "normal" style v-notice

* System filter interface background

* Add menu scope

* Use colors consistent with interface previews

* Remove card-face-color usage

* Use consistent hover style in collections & fields

* Deprecate card-face-color

* Remove old --card vars

* Fix revisions divider styling

* Remove duplicate background from overview header

* Fix permissions overview corner overlap

* Make form input height configurable

* Allow overriding public form input height

* Rename text string

* updated data model icon

* Standardize form settings between scopes

* Allow overriding sidebar forms

* Add configurable form gap

* Add configurable input-padding

* Fix list-item padding

* Fix padding in block style

* Add links to defaults

* Apply color match updates

* Default to database icon

* Fix schaling of theme selector interface

* Fix font loading

* Fetch font weights from Google as well

* Use display weight in titles

* Fix color match display font

* Clean up font weights for labels

* Update test to remove normal state

* Remove typo

* Add lowercase dev

* Add changeset

* Remove font-weight

---------

Co-authored-by: Ben Haynes <ben@rngr.org>
2023-11-16 15:36:54 -05:00
daedalus
fdb2e42b29 Add ability to ignore specific paths from the HTTP logger (#20368)
* add changeset

* Add the ability to ignore specific paths from HTTP logger

* fix linting

* Cast env, clean-up, add test

* Use dedicated env config name

* Add docs

* Clean-up

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-16 15:31:42 -05:00
Aiden Foxx
a011095aeb [OpenID/OAuth2] Only update user information if payload not empty (#20451) 2023-11-16 19:52:22 +00:00
Pascal Jufer
23c286d9c1 Fail instance on error during extensions syncing (#20450) 2023-11-16 11:19:19 -05:00
Alex Gaillard
3b8d8521bd Update Email Templates to new White Label Style (#20390)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-16 14:56:36 +00:00
Rijk van Zanten
7df84c0a89 Add support for EXTENSIONS_LOCATION setting (#20207)
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-16 13:29:03 +00:00
Rijk van Zanten
4396ee5166 Add theme-selector (#20413)
* Enable theme fields

* Start adding more default themes

* WIP add theme selector interface

* Restructure, add rules-to-vars util

* Render used vars in local overrides

* Use local theme vars in theme preview

* Render theme option full-width

* Add more test colors

* Only override used variables

* Fix rendering bugs in preview

* Remove test theme

* Add small border to preview

* Add organic theme

* Add changeset

* Don't crash color interface on complex input bg

* Use themable color for disabled input

* Use nav-sidebar theme in v-drawer

* Use border width from the theme in panels

* Use theme border width for panel borders

* Use page background for panel edit buttons

* Fix Active state forselected panel

* Don't use primary for logout hover state

* Fix background color of item duplication fields

* Use form border/background in v-list block

* Use theme border width in hardcoded 2px sections

* fix chip padding

* Rename background-page to background,

rename background to background-normal

* Fix search input styling

* Tweak search input themability

* update icons

* Add border on sidebar section content

* Add color match, start on minimal

* Organize import

* Adjust spacing

* Ignore stylesheet files

* Ignore svg as well

---------

Co-authored-by: Ben Haynes <ben@rngr.org>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-14 13:43:43 -05:00
Pascal Jufer
b9532cabe3 App TS fixes (#20421) 2023-11-14 16:42:35 +01:00
Connor
5300443b46 Fix File Limit Erroring Logic and DB Merge Logic (#20392)
* Add Extended Busboy Type

* Change Types and Remove Limit Erroring from Controller

* Change File Upload Logic

* Fix Typescript HELL

* Create perfect-oranges-hear.md

* Update api/src/services/files.ts

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

* Update api/src/services/files.ts

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

* Update api/src/services/files.ts

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>

* Change copy to move

* Fix TS

* Fix naming of BusboyFileStream type and Erroring

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2023-11-13 17:59:42 -05:00
Pascal Jufer
976ebf1330 Refactor env mocking (#20384) 2023-11-10 16:32:35 +01:00
Brainslug
fd6eff4a5a Show package version if available (#20303)
* Show package version if available

* Create nice-bottles-flow.md

* Colorize state chip

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-08 15:55:43 -05:00
Brainslug
b5d73a9013 Allow overriding asset presets (#20305)
* Allow overwriting preset asset transformations

* ran prettier

* Create strong-spoons-mate.md

* simplified transformationParams

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-11-08 14:01:18 -05:00
Azri Kahar
1b01f2c4b4 Preserve minimal app permissions/validations when merging (#20347)
* preserve app minimal permissions when merging

* update test

* add changeset
2023-11-08 18:06:19 +01:00
Brainslug
9a1ba0982c Delete files based on "filename_disk" (#20341)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-08 15:04:15 +01:00
Rijk van Zanten
40e7046ba8 Use server store for public theme information (#20324)
* from rainbow to lava lamp

* svg paths to divs for performance

* Clean up styles

* Public view themable options

* Make speed themable

* Use server store info for public theming

* Add changeset

---------

Co-authored-by: Ben Haynes <ben@rngr.org>
2023-11-03 15:21:33 -04:00
Rijk van Zanten
d4e3ab2c0d v10.7.2 2023-11-02 16:18:09 -04:00
Rijk van Zanten
bf21e6959c Improve rolling deployments from 10.6 to 10.7 (#20308)
* Temporarily add back theme field to permissions

* Mark it as alias to not load from db

* Add field to permissions

* Fetch all user fields

* Note it's only for 10.7

* Add changeset

* Format

* Fix unit test

* Fix tests some more
2023-11-02 15:49:11 -04:00
Brainslug
a09a45eaf7 Unable to import files with predefined ids (#20301)
* Add check for existing file

* Create five-balloons-drum.md
2023-11-02 13:53:40 +01:00
daedalus
3a4abb10cb fix: extension auto-load crashes directus if local extension is removed (#20259) 2023-11-01 02:19:19 +01:00
Brainslug
87cc9cb9a8 Validate the query for SEARCH requests (#20253)
* validate the query used in SEARCH requests

* Create ten-onions-shop.md
2023-10-30 11:18:39 -04:00
ian
50a72a6bf1 Trimmed sort array (#20254)
* Trim sort array in query

* Add changeset
2023-10-30 11:11:49 -04:00
Nicola Krumschmidt
5bf0d621ce Fix legacy endpoint route name (#20231)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-30 11:04:46 +01:00
Aiden Foxx
de8e1b5383 Add the ability to submit plain code challenge method (#20241)
* Added plain code method for OAuth2

* Added plain code method for OpenID

* Minor code cleanup

* Update api/src/auth/drivers/oauth2.ts

* Update oauth2.ts

* Update api/src/auth/drivers/oauth2.ts

* Format files

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-30 10:01:01 +01:00
Rijk van Zanten
3c12967405 10.7.1 2023-10-27 11:46:15 -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
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
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
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
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