Commit Graph

10911 Commits

Author SHA1 Message Date
daedalus
3a4abb10cb fix: extension auto-load crashes directus if local extension is removed (#20259) 2023-11-01 02:19:19 +01:00
Rijk van Zanten
ca85e15003 Don't show value marker for empty values 2023-10-31 15:47:45 -04:00
Rijk van Zanten
ff4f7fde60 Render global rules under globals rule in theme overrides interface (#20280)
* Render globals as collapsable section

Fixes #20279

* Add changeset
2023-10-31 15:42:17 -04:00
Rijk van Zanten
696aa767be Tweak default input border color 2023-10-31 15:04:51 -04:00
Rijk van Zanten
3d66a5c728 Make navigation borders configurable (#20277)
* Make navigation borders configurable

* Add changeset
2023-10-31 15:01:52 -04:00
Rijk van Zanten
1c5ab970e6 Match activity log button to sidebar toggle (#20275)
* Match activity log button to sidebar toggle

Fixes #20274

* Add changeset
2023-10-31 14:43:04 -04:00
Rijk van Zanten
474f8eab1f Add configurable borders (#20226)
* Add borderRadius rule

* Standardize border radii

There was a border-outline style that was visually nearly identical that was hardly ever used. The places it was used in felt like more of an oversight / inconsistent usage than intentional, so I've opted to standardize it to the same configured radius

* Replace --border-radius with --theme--border-radius

* Remove border radius from variables.scss

* Remove default

* Allow overriding v-input border-radius

* Update legacy overrides

* Default to 6px

* Remove overrides

* Update overrides to use v-input specific

* Add LineWidth, fix schema output

* Use border-width from theme

* Add border colors for inputs

* Use theme form colors for borders

* Configurable box-shadow for input

* Use configurable shadow

* Add optional module bar border

* Reduce white space

* Add optional border to nav bar

* Add configurable sidebar border

* Add configurable header shadow

* Add changeset

* Run formatter

* fix borderWidth for calc

* Remove border-normal

* Use border-width for 2px values where appropriate

* Use theme border for avatar divider

* Add rules for project info border

* Add border support to project info

* Add border support for section toggle

* Run formatter

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-10-31 14:36:28 -04:00
Brainslug
2273dbcd70 Fixed incorrect input pattern in the app (#20263)
* fixed incorrect regex

* Create strange-vans-watch.md
2023-10-31 21:08:06 +08:00
Brainslug
7b7777af4a Docs update query limit=-1 (#20251)
* Updated "limit=-1" wording

* mention QUERY_LIMIT_MAX

* Added link and updated wording
2023-10-30 17:04:41 -04: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
Abdón Rodríguez
2c287d1062 Fix self-hosted quickstart indentation (#20252) 2023-10-30 10:28:32 -04:00
Peter Stuifzand
d54418bb39 Fix errors in Realtime Chat Vue guide (#20237)
* Fix errors in vue guide

* Fix fields syntax

* Update contributors.yml

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-30 11:39:24 +00:00
Brainslug
31a6e9ad50 updated sort example (#20248) 2023-10-30 11:06:07 +01: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
Kevin Lewis
e650df7255 Added extensions volume of self-hosted quickstart (#20246) 2023-10-30 09:41:18 +01:00
daedalus
6324cd4e3f docs: add changeset generate command and version bump type explanations (#20244)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-29 23:28:12 +00:00
cyril
039608b5b1 Fix a 404 on the Self-Hosted CLI doc page (#20234)
Fix  #20233
2023-10-29 03:39:32 +01:00
Jan Arends
b2fe81b596 Durus o2m field selects for PostgreSQL (#20037)
* test to split up root query into sub queries

* moved splitter to driver

* moved splitter to data-sql

* filtered o2m within conversion

* removed splitter

* fix

* fix

* util to get root query

* refactoring, preparation for root and sub queries

* preparations for making separate sub queries

* refactoring

* implemented creation of sub query

* made store in relational metadata mandatory

* fixed export

* abstracted the database request

* get root query definition

* preparation to merge streams

* started converting nested many queries in converter

Co-authored-by: Nicola Krumschmidt <nickrum@users.noreply.github.com>

* refactoring

* at least two childnodes for logical operator

* refactoring missing module

* fixed tests for fields

* refactoring, mainly rename current to internal

* start integrating second approach

* getting closer but wip

* getting closer

* fixed naming

* merged streams into final stream

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

* fixed returning array

Co-authored-by: Nicola Krumschmidt <nickrum@users.noreply.github.com>

* added generic type

* use existing many join node again

* fixed test

* made use of generic type

* changed wording for relational stuff

* composite keys

* new generator for sub query parameters

Co-authored-by: Nicola Krumschmidt <nickrum@users.noreply.github.com>

* worked on index test

* more specific return type for driver

* fixed index file tests

* removed approach on abstract query level

* worked on index test but wip

* simple test for nested many node

* continued on index test

* finally finished test

* randomized test values again

* moved common nested many logic up to data-sql

* remove closing controller

* typedocs and error handling

* single test for nested many querying logic

* refactor: added utility function for streams

* Remove unneeded type declaration

* Remove bind call

* Use AtLeastOneElement type alias

* Use unknown instead of any as value of Records

* Rename loadAllResultIntoMemory to readToEnd

* Fix o2m with compound keys

* Fix type error in createJoin

* Simplify AbstractSqlNestedMany type

* catch error of conversion in data-sql

* removed additional error handling in driver

* replaced table alias with actual table name

* Allow join field values to be numbers again

* Clarify property names on AbstractSqlNestedMany some more

* nested many node creation tests

* docs

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Nicola Krumschmidt <nickrum@users.noreply.github.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
2023-10-27 12:19:46 -04:00
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