11746 Commits

Author SHA1 Message Date
Rijk van Zanten
0d6c6b90b0 v10.11.0 v10.11.0 2024-05-07 18:01:38 -04:00
Rijk van Zanten
fc50d43ac2 New Crowdin updates (#22259)
* New translations en-us.yaml (Polish)

* New translations en-us.yaml (Ukrainian)

* New translations en-us.yaml (Romanian)

* New translations en-us.yaml (French)

* New translations en-us.yaml (Spanish)

* New translations en-us.yaml (Arabic)

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

* New translations en-us.yaml (Finnish)

* New translations en-us.yaml (Hungarian)

* New translations en-us.yaml (Italian)

* New translations en-us.yaml (Japanese)

* New translations en-us.yaml (Korean)

* New translations en-us.yaml (Dutch)

* New translations en-us.yaml (Portuguese)

* New translations en-us.yaml (Russian)

* New translations en-us.yaml (Slovak)

* New translations en-us.yaml (Albanian)

* New translations en-us.yaml (Swedish)

* New translations en-us.yaml (Turkish)

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

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

* New translations en-us.yaml (Vietnamese)

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

* New translations en-us.yaml (Indonesian)

* New translations en-us.yaml (Persian)

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

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

* New translations en-us.yaml (Croatian)

* New translations en-us.yaml (Estonian)

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

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

* New translations en-us.yaml (Esperanto)

* New translations en-us.yaml (Bosnian)

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

* New translations en-us.yaml (Azerbaijani)

* New translations en-us.yaml (Azerbaijani)

* Update source file en-US.yaml

* New translations en-us.yaml (Italian)

* New translations en-us.yaml (German)

* New translations en-us.yaml (German)

* Update source file en-US.yaml

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

* New translations en-us.yaml (French)

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

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

* New translations en-us.yaml (German)

* New translations en-us.yaml (Portuguese)

* New translations en-us.yaml (Portuguese)

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

* Update source file en-US.yaml

* Update source file en-US.yaml

* New translations en-us.yaml (German)

* New translations en-us.yaml (Albanian)
2024-05-07 17:58:13 -04:00
Rijk van Zanten
3121ed0fc0 Confirm label (#22421)
* Use confirm label in input

* Add changeset
2024-05-07 17:57:12 -04:00
Daniel Biegler
c893b9fa65 Add public registration (#22125)
* WIP: add new register dummy-route

* fix notice on register route

* WIP register form

* WIP: registering ui and controller for testing

* fix lint ordering problem

* wip: users service

* add migration, initial style for fields in settings

* redo how emails will be filtered

* WIP add filter in the register handler

* conditionally render register link depending on settings

* WIP: add email validation

* wip add email sending

* make clicking the email link work

* rm console log

* update controller

* dont send emails for existing emails

* add translation

* only show register link when unauthenticated

* add different redirects

* only allow selecting non-admin roles

* redirect to users page

* update translation

* move logic from controller to usersservice

* rm remnant of logic from controller

* add stall time to registration

* update translation

* rm comments

* rm unused var

* add changeset

* update translation for success

* remove sso related stuff from registration

* also allow setting first and last name

* update error check

* add @directus/errors to app

* replace error strings with enum

* rename to public_registration

* rename to public_registration_verify_email

* add notes to fields

* add types package to changeset

* dont stall if no work is being done

* allow null-role and resending of reg. email

* add public registration env vars, rm RATE_LIMITER_GLOBAL_STORE

RATE_LIMITER_GLOBAL_STORE wasnt being used. Lets just stick to RATE_LIMITER_STORE for all rate limiters. TODO: also remove from docs!

* use ratelimiter for registration, use stall time env var

* add registration limiter docs, rm global store variable from docs

* update changeset

* add ignore-notice

Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>

* use and document new `EMAIL_VERIFICATION_TOKEN_TTL`, also doc `REGISTER_STALL_TIME`

* change variable name

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

* apply variable rename to usage

* change backticks to single quote

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

* inline variables

* add fields to server info, update types

- The other ratelimiters also expose points and duration, done
- Add `public_registration_verify_email` so that we can render different success messages

* tiny wording tweak of registration mail

* add new user status 'unverified' and check for it

* add unverified status translation

* decouple email verification and validation

* enable register rate limiter by default and up its config

* add autocomplete=new-password on the registration form

* added sdk functions

* add gql query for new fields

* added register api reference

* updated verify sdk function name

* added reference block for email verify endpoint

* updated reference examples

* WIP: add gql resolvers

* add ratelimiter to mutation

* remove ratelimiter registration point+duration info

* rm points and duration from gql

* Update docs/reference/system/users.md

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

---------

Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-07 23:20:24 +02:00
Hannes Küttner
1d7e0b7160 Fix bundle (re-)loading (#22013)
* Fix bundle (re-)loading (fixes #21942 and #21946)

* Add changeset

* Use .some instead of .find for checking existance

* Fix names

* Cleanup

* Add comments

* Update changeset

* moved out type check

* Clearer params, fix bundle check

* Use enabled state from parent

* Clarify changeset

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <tim@brainslug.nl>
2024-05-07 14:42:23 +00:00
Pascal Jufer
b7135fdf64 Fix handling of invalid and empty filter queries (#22048)
Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
2024-05-07 15:47:58 +02:00
dependabot[bot]
78546678d0 Bump tsx from 4.9.0 to 4.9.3 (#22407)
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.9.0 to 4.9.3.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.9.0...v4.9.3)

---
updated-dependencies:
- dependency-name: tsx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-07 13:20:05 +02:00
Pascal Jufer
537d7f1e36 Revert "Consolidate content versioning (#22227)" (#22412)
This reverts commit 5a258dd406.
2024-05-07 17:25:19 +08:00
dependabot[bot]
adeccb7576 Bump happy-dom from 14.7.1 to 14.10.1 (#22405)
Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 14.7.1 to 14.10.1.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](https://github.com/capricorn86/happy-dom/compare/v14.7.1...v14.10.1)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-07 07:46:09 +02:00
dependabot[bot]
9ae3f175ab Bump vue from 3.4.26 to 3.4.27 (#22406)
Bumps [vue](https://github.com/vuejs/core) from 3.4.26 to 3.4.27.
- [Release notes](https://github.com/vuejs/core/releases)
- [Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/core/compare/v3.4.26...v3.4.27)

---
updated-dependencies:
- dependency-name: vue
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-07 07:27:38 +02:00
ian
5a258dd406 Consolidate content versioning (#22227)
* Add migration

* Use the new delta field

* Add cast-json flag

* Fix typing

* Fetch existing deltas if version created during migration

* Add changeset

* Add version delta field into sdk schema
2024-05-06 21:02:23 +02:00
Rijk van Zanten
ec2604f913 Don't require KEY or SECRET to be set on startup (#22320)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-06 13:00:10 +00:00
dependabot[bot]
aa39065c80 Bump @aws-sdk/lib-storage from 3.568.0 to 3.569.0 (#22390)
Bumps [@aws-sdk/lib-storage](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/lib/lib-storage) from 3.568.0 to 3.569.0.
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/lib/lib-storage/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.569.0/lib/lib-storage)

---
updated-dependencies:
- dependency-name: "@aws-sdk/lib-storage"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 10:40:37 +02:00
dependabot[bot]
0b1b463426 Bump @aws-sdk/client-s3 from 3.568.0 to 3.569.0 (#22388)
Bumps [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3) from 3.568.0 to 3.569.0.
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-s3/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.569.0/clients/client-s3)

---
updated-dependencies:
- dependency-name: "@aws-sdk/client-s3"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 10:21:30 +02:00
Hannes Küttner
d80cf72e99 Replace deprecated --primary and --secondary CSS vars and fix conditional panel styling (#22382)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-05 23:37:37 +00:00
Brainslug
6bacead457 [SDK] Fix inferred partial field types, when using _and/_or filters in queries (#22288)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-03 15:28:00 +00:00
José Varela
4de607919b App: Allow interpolation string as the only value on input-code interface (#22318)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-03 13:07:03 +00:00
Hannes Küttner
6ad1c224d5 Fix default naming of related collection junction field for translations (#22378) 2024-05-03 12:09:06 +02:00
Pascal Jufer
cf83f33939 Patch Tuesday 🐸 (Light Edition) (#22376) 2024-05-03 11:19:23 +02:00
Pascal Jufer
ae9c64125c Specific error type mapping in isDirectusError function (#22346)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2024-05-03 09:53:22 +02:00
Hannes Küttner
527dfbccf1 Fix system-filter wrap behavior (#22375) 2024-05-03 07:46:33 +00:00
dependabot[bot]
a50460c005 Bump @types/nodemailer from 6.4.14 to 6.4.15 (#22368)
Bumps [@types/nodemailer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/nodemailer) from 6.4.14 to 6.4.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/nodemailer)

---
updated-dependencies:
- dependency-name: "@types/nodemailer"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-03 02:31:50 +02:00
Brainslug
e70a90c267 Improved values redacting (#22332)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-02 14:54:16 +02:00
Brainslug
a6172f8a6a Improved session token validation (#22353)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-02 14:53:41 +02:00
Hannes Küttner
24d77d0b13 Fix arrow misalignment in M2A relation settings (#22350) 2024-05-02 14:08:40 +02:00
Hannes Küttner
97bf47e67c Change guessType to retain value types if they are known (#22349)
* Improve env variable casting for already typed variables configured through .[c]js files

* Revert back to using dedicated toX functions and extended toBoolean to handle boolean type values

* Some additions to test and removed some redundant code in toBoolean

* Fix test case name

* Add changeset

* Change changeset
2024-05-02 17:42:35 +08:00
José Varela
8e10388487 App: Fix rate limit when having much relationships (#22352)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-02 11:01:34 +02:00
Hannes Küttner
ebd0c063a0 Add changeset for #22345 (#22347)
* Add changeset

* small update

---------

Co-authored-by: Brainslug <tim@brainslug.nl>
2024-04-30 16:02:44 +00:00
Hannes Küttner
d10385d303 Fix large and real numbers in search query (#22345)
* Add db search helper

* Use raw query for redshift

* Fix SQL injection possibility

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

* WIP fix for MS SQL

* Improved big int support and value limit checking

* prettier

* updated for failing test

* Added missing lower bound

* Add missing lower bound at another place

* Rewrite helpers for postgres

* updated constants

* extracted utils

* updated types

* prettier

* renamed searchhelper to numberhelper and extracted parseNumericString util

* moved constants up the tree

* moved constants and types to packages

* prettier

* Add type guard for numeric field

* Fix import - so much for auto imports...

* Use isIn helper

* Drop implementation specific test

* Remove temporary vite file

* Move parseNumericString to its own file

* Rename orWhere

* Fix wrong type

* Fix test after merge

* Change constants import location

* updated postgres valid condition

* Added same stringify logic for oracle

* Add helper for sqlite and catch big int parsing error

* Add curly brackets and redundant catch argument

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2024-04-30 17:22:53 +02:00
ian
df254cc093 Add falsy fallback condition to search query (#22342)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
2024-04-30 11:02:57 +02:00
Pascal Jufer
160b982928 Patch Tuesday 🐸 (#22063)
Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
2024-04-30 10:49:20 +02:00
Pascal Jufer
a3051b3de4 Downgrade samlify to fix issue with allowCreate attribute (#22340) 2024-04-30 09:39:17 +02:00
Pascal Jufer
1d7a7cdf06 Inject Content Version in Live Preview popout (#22339) 2024-04-29 18:04:40 +02:00
Hannes Küttner
0d7441e7a3 Fix failing file upload to Supabase (#22293)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-04-29 01:44:59 +02:00
Hannes Küttner
0e19bcede3 Fix Supabase storage driver list operation (#22322)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-04-29 01:02:39 +02:00
Hannes Küttner
7c22230efd Add Copy button to system-token interface (#22323)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-04-26 13:16:05 +02:00
Pascal Jufer
721de01992 Make SDK realtime composable compatible with React Native (#22105)
* Make SDK realtime compatible with React Native

* Add changeset

* Explicit toString convertion for URL

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

* Make it a major change

* updated realtime strict auth helper

* prettier

* Update sdk/src/realtime/composable.ts

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

* updated comment

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2024-04-25 18:49:59 +00:00
Rijk van Zanten
03c288ad3a Drop extension folder creation (#22316)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-04-25 18:01:47 +02:00
Hannes Küttner
31d73c6fa7 [Docs] Prevent icon translation in components and markdown sources (#22313)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-04-25 12:54:47 +00:00
Pascal Jufer
4b75c375df Client-side restart of failed transactions on CockroachDB (#22240) 2024-04-25 14:19:17 +02:00
José Varela
dd39af2c29 App: Add option to open image on block editor (#22302)
* Add option to open image on block editor

* Fix missing tunes

* Create curvy-fishes-work.md
2024-04-25 13:54:00 +02:00
Brainslug
aa6c583029 Catch invalid HEIC images in the App (#22307)
* show an error for invalid image sizes

* Create brave-chairs-switch.md
2024-04-24 14:13:50 -04:00
Pascal Jufer
73579c548d Clean-up code in useItem composable (#22113)
Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
2024-04-24 16:18:53 +00:00
Pascal Jufer
4fe4c6e988 Fix filter validation for field functions (#22060)
Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
2024-04-24 16:10:04 +00:00
Brainslug
a182087dd0 [SDK] Added "_icontains" string operator (#22309) 2024-04-24 17:59:40 +02:00
Hannes Küttner
bc3f698851 Fix count helper function for self-referencing relations (#22297)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-04-24 14:07:18 +02:00
Hannes Küttner
6a38fb43da Fix deselection of field permissions in access control settings (#22300)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-04-24 10:58:47 +00:00
Alex van der Valk
57a39d54f1 docs - add cache auto purge to compose (#22305)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-04-24 09:45:23 +00:00
Hannes Küttner
cb258f6397 Add search to Roles in Access Control (#22286)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-04-24 11:40:20 +02:00
burka
bb5660c5d7 Amend comment about nanosecond to millisecond conversion (#22304) 2024-04-24 10:35:31 +02:00