5103 Commits

Author SHA1 Message Date
Rijk van Zanten
9c37f5b09b New Crowdin updates (#22902)
* New translations en-us.yaml (Spanish, Latin America)

* New translations en-us.yaml (French)

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

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

* New translations en-us.yaml (Korean)

* New translations en-us.yaml (Spanish)

* New translations en-us.yaml (Albanian)

* New translations en-us.yaml (Korean)

* New translations en-us.yaml (Korean)
2024-07-09 17:39:06 +02:00
Joshua Bemenderfer
c8d8fd8d53 Add in missing getRootPath() call to TUS upload. (#22918) 2024-07-03 18:50:26 +00:00
José Varela
6f2df1d20f Support relative links on images for wysiwyg (#22904) 2024-07-02 15:19:29 -04:00
Rijk van Zanten
a683f2e738 New Crowdin updates (#22824)
* New translations en-us.yaml (Spanish)

* New translations en-us.yaml (Spanish)

* New translations en-us.yaml (Spanish)

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

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

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

* Update source file en-US.yaml

* New translations en-us.yaml (Croatian)

* New translations en-us.yaml (Korean)

* New translations en-us.yaml (Spanish)
2024-07-02 17:24:13 +02:00
Brainslug
266e043c0e Add support for the TUS protocol (#22673)
* WIP initial TUS tests

* WIP further tus integration

* WIP authenticate uploads

* boilerplate stuff

* Migrated handlers

* resolving type errors

* tackle some build errors

* WIP moving resumable uploads to its own package

* added migration and integrated local file storage into directus files

* cleaned up local store

* cleaned up failed experiments

* prettier

* Add tus_data and tus_id to system data

* Improve file upload progress estimation for multiple files

* bypass creating a revision per uploaded chunk

* fixed accidental commit

* Fix pause/resume for multiple uploads

* Null coalesce all the way

* Added directus locking logic

* prettier

* Small tweak (added resume uploads dialog)

* authentication

* Add remove to resumable uploads

* added delete endpoint and cleaned old service setup

* WIP s3 storage adapter

* Less breaking of interfaces, more breaking of text

* Moved local adapter to its own package

* Prettying some things up

* Sort resumable uploads by creation time

* Fix resumable uploads dialog popping up on second file upload

* Move buttons around & properly handle error

* s3

* A few changes

- Make S3 driver work more reliable
- Move common logic to tus driver class
- Respect `folder` when uploading from a different folder
- Implement cleanup for both local and S3

* synced dependencies

* accept presets

* Remove extra code for folder, as this is handled in presets now

* Rename migration to most recent date

* updated lcokfile

* prettier

* dont fully rely on the sudo service

* removed unused import

* Hide partial file uploads from the API

* satisfy linter

* Refactor tus into storage driver

* Fix merge conflicts

* Update pnpm-lock

* Fix typing issue

* nuked tus driver packages

* updated environment vars

* prettier

* Change type import style

* Fix S3 cleanup

* Use `modified_on` instead of tus creation date

* Pass chunk size to storage drivers

* Add sudo service to scheduled job

* Make cleanup work even if no upload was done before

* Remove "Resume Uploads" interface

* Update packages/env/src/constants/defaults.ts

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

* Add config docs

* Add resumable to dictionary

* moved chunk filter to service

* simplify middleware

* use lodash

* Update api/src/services/tus/data-store.ts

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

* move to devDeps

* package lock

* fixed import

* updated test mocking

* Create a new TUS server handler for every request instead of one global one

* Allow for tree-shaking tus-client

* Rename resumable-uploads.ts to tus.ts

* Extract meta data from uploaded file

* Only consider full parts or the final part for bytesUploaded in S3

* Add additional sanity check to S3 driver

* Remove pause/resume functionality

* fixed file replacement

* Remove unused expose

* Reintroduce defineExpose and expose abort

* Broken file replace

* fixed replacement

* prettier

* added filesize in replace

* update metadata extraction

* Remove unused import

* updated package-lock

* extra validation check

* oops

---------

Co-authored-by: Hannes Küttner <kuettner.hannes@gmail.com>
Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-07-02 17:00:59 +02:00
Hannes Küttner
b0d1ad4a16 Fix tooltip arrow (#22858)
* Fix tooltip arrow for high resolutions

* Add changeset

* Account for changed size in offset
2024-06-27 14:58:32 +02:00
drennvinn
a42633b657 collapse/expand all collections (#22780)
* collapse/expand all collections

* Update contributors.yml

* collapse/expand all collections

* change btn placement and design

* run prettier

* change expand All/None mechanics and design

* Improved expand/collapse state management

* run prettier

* removing unnecessary array

* Simplify state management

* Update visual style

* Add changeset

* Remove unused setter

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2024-06-25 15:38:23 -04:00
Matthew Rumery
4c3af9ba0d Include image extension in image URL when uploading image through WYSIWYG (#22789)
* fix: use image extension in image url when uploading image

* fix: get file extension from directus_file type
2024-06-24 15:10:41 -04:00
Daniel Biegler
fc8801f0c0 Fix clipboard copy notification for blocked environments (#22797)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-06-19 11:22:02 +00:00
Hannes Küttner
6fad0576c8 Add translate option to the formatted value display (#22762) 2024-06-17 11:21:33 +02:00
Pascal Jufer
0b936dab69 Fix pattern check in filter component (#22697)
* Fix pattern check in filter component

* Add changeset
2024-06-14 15:09:53 -04:00
Pascal Jufer
94698aa891 Improve field arrangement in bookmark edit view (#22701)
* Improve field arrangement in bookmark edit view

* Add changeset
2024-06-14 15:01:37 -04:00
Pascal Jufer
f6627b1f6f Add a default preset for bookmarks (#22699)
* Add a default preset for bookmarks

* Add changeset
2024-06-14 14:58:45 -04:00
Rijk van Zanten
3284f7815f New translations en-us.yaml (Turkish) (#22704) 2024-06-10 17:04:25 +02:00
Hannes Küttner
300be55497 Fix junction relation lookup in the relations store (#22653) 2024-06-10 14:54:02 +02:00
José Varela
163f0ade6e App: Omit fake fields from requests (#22646)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-06-05 00:56:27 +02:00
Rijk van Zanten
1cd833dfd8 New Crowdin updates (#22629)
* New translations en-us.yaml (Persian)

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

* New translations en-us.yaml (Arabic)

* New translations en-us.yaml (Arabic)

* New translations en-us.yaml (Chinese Simplified)
2024-06-04 17:20:34 +02:00
Rijk van Zanten
bf61ba1044 New Crowdin updates (#22544)
* New translations en-us.yaml (Greek)

* New translations en-us.yaml (Ukrainian)

* New translations en-us.yaml (Vietnamese)

* New translations en-us.yaml (Vietnamese)
2024-05-28 18:40:43 +02:00
Rijk van Zanten
67f07fcc6c New translations en-us.yaml (Dutch) (#22538) 2024-05-21 12:43:18 -04:00
Rijk van Zanten
deb5c9522d New Crowdin updates (#22444)
* New translations en-us.yaml (Arabic)

* New translations en-us.yaml (Arabic)

* New translations en-us.yaml (Polish)

* New translations en-us.yaml (Dutch)

* Update source file en-US.yaml

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

* New translations en-us.yaml (Arabic)

* New translations en-us.yaml (Arabic)

* Update source file en-US.yaml

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

* New translations en-us.yaml (Dutch)

* New translations en-us.yaml (Norwegian)

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

* New translations en-us.yaml (Croatian)

* New translations en-us.yaml (Estonian)

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

* New translations en-us.yaml (Bosnian)

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

* New translations en-us.yaml (Nepali)

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

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

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

* New translations en-us.yaml (Italian)

* New translations en-us.yaml (Vietnamese)

* New translations en-us.yaml (Vietnamese)

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2024-05-21 11:39:09 -04:00
Hannes Küttner
900d3a76c4 Fix file selection drawer failing when some files fail loading (#22530)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-21 10:49:58 +00:00
Pascal Jufer
c849947751 Fix item fetching in calendar layout when switching view (#22517) 2024-05-21 12:42:30 +02:00
ian
2ecee4ee76 Reduce access token refreshing if it is still fresh (#22464)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
2024-05-14 10:03:25 +02:00
ian
18ba6b44cc Add reload button when the app errors out (#22462)
Co-authored-by: Hannes Küttner <4376726+hanneskuettner@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-13 14:29:35 +02:00
Daniel Biegler
902fc6690f Add focal point translations (#22458) 2024-05-10 20:05:33 +08:00
Hannes Küttner
4d570d8254 system-filter: Prevent text wrap, and keep field list dropdown for functions (#22426)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-08 12:39:32 +00:00
Hannes Küttner
b7bc479e39 Fix system-display-template reactivity (#22430)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-08 12:22:57 +00:00
Hannes Küttner
fd4821d890 Fix the failing auto-creation of default languages in translation field setup (#22409)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-05-08 12:00:09 +02: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
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
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
Hannes Küttner
527dfbccf1 Fix system-filter wrap behavior (#22375) 2024-05-03 07:46:33 +00:00
Hannes Küttner
24d77d0b13 Fix arrow misalignment in M2A relation settings (#22350) 2024-05-02 14:08:40 +02: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
Pascal Jufer
1d7a7cdf06 Inject Content Version in Live Preview popout (#22339) 2024-04-29 18:04:40 +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
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
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
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
Hannes Küttner
6f47489529 Fix deselection of item in Collection Item Dropdown (#22294)
* Fix collection item deselect by setting it to null

* Add changeset
2024-04-23 18:16:31 +02:00
Hannes Küttner
f86df7589f Fix "Auto Refresh" for Kanban and Calendar layouts (#22280) 2024-04-23 13:26:46 +02:00
Hannes Küttner
47e8d7cf47 Disable "Download Page as CSV" button if layout does not support it (#22281)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-04-23 08:58:28 +00:00
Hannes Küttner
ae37209ace Fix untranslated field meta data (#22263) 2024-04-19 22:07:36 +02:00
Hannes Küttner
88774b6903 Improve sorting UX in M2A (#22224) 2024-04-19 16:20:15 +02:00
Pascal Jufer
77fe1530a2 Fix small visual inconsistency in Files interface (#22258) 2024-04-19 15:40:59 +02:00