Commit Graph

4618 Commits

Author SHA1 Message Date
brainslug
a624733de1 hacky translation implementation 2022-07-18 13:22:15 +02:00
brainslug
f5397c381a changed way of storing the formfield data in v-form 2022-07-18 13:06:35 +02:00
Rijk van Zanten
31a217595c New translations en-US.yaml (Chinese Simplified) (#14471) 2022-07-16 05:22:15 +00:00
Rijk van Zanten
27cc3e1bec Move repo to pnpm based workflow (#14350)
* Use pnpm instead of npm

* Setup workspace

* Replace scripts / lerna root stuff

* Add todo file

* Update lock, start updating packages

* Update todo

* [WIP] Keep going on module resolution in pnpm

* Fix final missing deps/types for complete build

* [WIP] Replace npm commands with pnpm alternatives

* Update jest config for v28

* Fix missing package under schema

* Update workflow

* Run CI on fork

* Use local reference

* Remove version from local workflow

* Add build to prepare

* Add Node's max old space size flag to linter

* Idemdito for codeql

* Hyphens? Underscores?

* Bang

* Only build one thing at a time

* Underscores after all?

* Match 7gb of GH

* Set env on prepare

* Jest is driving me nuts

* Downgrade jest

* Add root jest

* We'll get there, eventually.

* 🥳

* Het houdt niet op, niet vanzelf

* attempt to fix e2e

* fix unit test & shared import

* add `debug: true` to CodeQL action

* Fix dev call in shared

* Add missing cross-env

* Add missing geo-json dependency for app

* add flag to prepare action to skip build

* remove debug flag from codeql action

* fix invalid env syntax

* add tslib to app dependencies for tests

* another attempt

* Added missing rimraf dependency for the api prebuild/cleanup scripts

* Added missing ts-node dependency for the api cli script

* update E2E tests readme to use pnpm

* Undo move of extensions sdk

* Fixes nested groups in accordions not rendering fields (#14369)

* initial fix for nested groups in accordions

* removed debug code

* Fix strict relative dates showing "incorrect" (#14390)

* Set rounding method of relative formatted date to floor when strict option is selected

* Add round fn as an option

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

* Don't use locales in generated camelCased values from env (#14401)

Ref https://github.com/directus/directus/discussions/14122

* Fix list panel descending sort (#14396)

* fix list panel descending sort

* Handle missing or explicit desc value

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

* Fix query primary field for system tables (#14402)

* New Crowdin updates (#14403)

* Update source file en-US.yaml

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

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

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Italian)

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

* Fix/wysiwyg context menu (#14404)

* New translations en-US.yaml (Polish) (#14407)

* Encoded the url using encodeURIComponent, so that the url gets sanitzed and so, we did not get 404 error. (#14418)

* Encoded the url using encodeURIComponent, so that the url gets sanitized and we did not get 404 error.

* Added required changes as stated by the reviewer

* Used encodeURI instead of encodeURIComponent to encode the params only

* Solved linting error

* Solved linting errors

* checked with npm run lint, no linting errors found

* fix generateJoi error due to empty permissions when creating new role (#14416)

* fix empty permissions when creating new role

* basic test

* move logic up

* additional test

* Update api/tests/utils/filter-items.test.ts

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

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

* Recreate lockfile

* Fix build of extensions-sdk

* Add missing dependency

* Add some more missing deps

* Update blackbox to use pnpm

* Update workflow to use main

* Update pack to work with pnpm

* Simplify commands

* Remove todo file (completed)

* ADd missing types dep

* Use local test version

* Remove version from local reference

* Call super with context

* Add missing dep

* Simplify workflows

Ref https://github.com/directus/organization/issues/135

* Simplify some more

* Linter is on root

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: brainslug <tim@brainslug.nl>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Gerard Lamusse <gerardlamo@gmail.com>
Co-authored-by: José Varela <joselcvarela@gmail.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Zeel Pathak <60271095+zeel-pathak@users.noreply.github.com>
2022-07-15 17:41:49 -04:00
Azri Kahar
9015667d02 Add raw editor toggle for using variables in flows operations (#14021)
* add raw editor for flows operation options

* add comment to explain reasoning for watcher

* add simple raw editor with syntax highlighting

* Add multiline to text fields & hide in json fields

* update input icon for toggle

* do not unset value for text fields

* fix mustache tag value checking

* enable raw editor for Insights

* remove lint warning

* Reduce size + inline icons

* add background-highlight when active toggle

* change multiline prop to type prop

* show toggle for all field types (including json)

* remove watcher to toggle rawEditor on load

* fix raw editor emit

* fix request operation headers field type json

* fix raw editor value passed to codemirror

* prevent tags from crashing

* do not unset values anymore when toggling raw

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-15 11:38:23 -04:00
Rijk van Zanten
f3d3fdf463 New translations en-US.yaml (Polish) (#14455) 2022-07-15 14:09:30 +00:00
Rijk van Zanten
9421e05569 New translations en-US.yaml (Czech) (#14454) 2022-07-15 13:11:40 +00:00
Rijk van Zanten
c46eb51a2e New translations en-US.yaml (Czech) (#14452) 2022-07-15 12:11:17 +00:00
Rijk van Zanten
4d02133192 New translations en-US.yaml (Czech) (#14451) 2022-07-15 11:15:49 +00:00
Rijk van Zanten
15302af98f New translations en-US.yaml (Czech) (#14448) 2022-07-15 08:41:12 +00:00
Rijk van Zanten
557e84dea9 New translations en-US.yaml (Czech) (#14444) 2022-07-15 07:39:00 +00:00
Juan Carlos Blanco Delgado
69b231c547 Adding editor to image component (#10488)
* Adding editor to image component

* lint cleanup

* Fix missing import, modelvalue usage

* Use different translation key for edit image operation

Co-authored-by: Azri Kahar <azrikahar@outlook.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-14 20:51:06 +00:00
Rijk van Zanten
d95c6ed3cd Prevent app crash on empty manual flow config (#14438) 2022-07-14 16:33:24 -04:00
ian
71e01e2ac2 Enable spellcheck on wysiwyg and markdown interfaces (#14412)
* Enable spellcheck for rich text md interface

* Enable spellcheck for rich text html interface

* Fix typings

* Disable fenced code block highlighting in markdown

* Revert syntax highlighting disabling

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-07-14 16:08:43 +00:00
Rijk van Zanten
b1585e0556 New translations en-US.yaml (Polish) (#14407) 2022-07-12 17:44:44 +00:00
ian
7b32fbbd46 Fix/wysiwyg context menu (#14404) 2022-07-12 18:32:35 +02:00
Rijk van Zanten
5274ac577c New Crowdin updates (#14403)
* Update source file en-US.yaml

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

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

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (French, Canada)
2022-07-12 14:59:24 +00:00
José Varela
e961e71ec6 Fix query primary field for system tables (#14402) 2022-07-12 16:16:04 +02:00
Azri Kahar
b2ab9d6853 Fix list panel descending sort (#14396)
* fix list panel descending sort

* Handle missing or explicit desc value

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-12 13:58:44 +00:00
Gerard Lamusse
fb90db9872 Fix strict relative dates showing "incorrect" (#14390)
* Set rounding method of relative formatted date to floor when strict option is selected

* Add round fn as an option

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-12 13:48:45 +00:00
Brainslug
de28475e06 Fixes nested groups in accordions not rendering fields (#14369)
* initial fix for nested groups in accordions

* removed debug code
2022-07-12 15:24:11 +02:00
Rijk van Zanten
9e387fe4b0 New translations en-US.yaml (Spanish, Mexico) (#14382) 2022-07-11 22:20:15 +00:00
Rijk van Zanten
828ba37ef3 New translations en-US.yaml (Spanish, Mexico) (#14379) 2022-07-11 21:19:30 +00:00
Rijk van Zanten
421355ab60 New translations en-US.yaml (Spanish, Mexico) (#14377) 2022-07-11 20:17:27 +00:00
Rijk van Zanten
96d9df3168 New translations en-US.yaml (German) (#14375) 2022-07-11 19:09:38 +00:00
Rijk van Zanten
58e38404ba New translations en-US.yaml (German) (#14373) 2022-07-11 18:05:44 +00:00
Jay Cammarano
d57ea95e52 Generate joi merge (#13596)
* branch init tests and stuff

* types changed

* added '@' to modules mapper

* removed unneeded dotenv import

* tests passing

* forgot to save before committing

* remove app/generate-joi

* Skip validation if permissions filter is empty

* Remove another generate-joi api util

* Default allowUnknown to true

* Remove wrapping nested filter as Joi.object()

* Remove duplicate nested field from unit test

* Fix between operator for float values

* Removed unused allowUnknown option

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-07-11 19:09:47 +02:00
rijkvanzanten
01af7e2ab9 Unbreak builds
And unbreak them on M1 too
2022-07-11 18:57:00 +02:00
Addison Elliott
033e12323e Fix field aliasing not returning null after merging documents (#14256)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-07-11 14:45:58 +02:00
Azri Kahar
3d2dd5520c Fix disabled state for markdown interface (#14358)
* fix disabled state for markdown interface

* fix markdown interface focused style

* more fixes for disabled state styling
2022-07-11 14:40:04 +02:00
Gerard Lamusse
f31b415242 Fix translation in render-template (#14355)
* Translate labels

* Fix translate in render-template instead
2022-07-11 17:10:05 +08:00
Rijk van Zanten
3cad162ca2 New translations en-US.yaml (Portuguese, Brazilian) (#14352) 2022-07-10 02:44:31 +00:00
Rijk van Zanten
d0bfd024d3 New translations en-US.yaml (Polish) (#14351) 2022-07-09 22:17:59 +00:00
Rijk van Zanten
4775cf33d9 New translations en-US.yaml (Portuguese) (#14336) 2022-07-08 21:12:52 +02:00
Azri Kahar
c87eb8141f Prevent empty title attribute in WYSIWYG links (#14322) 2022-07-08 14:38:08 +02:00
brainslug
398839be6e v9.14.1 2022-07-08 11:13:22 +02:00
Azri Kahar
06a618c758 Show field data type & interface on hover for system collections' fields (#14321)
* tweak tooltip when no interface configured

* add tooltip & interface name on hover
2022-07-08 09:35:08 +02:00
younky-yang
e0ad2bd69d fix the SSO login issue of bug 14325 (#14326) 2022-07-08 09:30:28 +02:00
Brainslug
e3643a2c5d Performance improvements for groups within v-form (#14188)
* added explicit change check before updating the internal value

* bunch of attempted fixes

* Revert "bunch of attempted fixes"

This reverts commit 17b7a5340f.

* nested v-form performance improvements
preventing re-rendering of some groups

* tries to fix accordion always re-rendering

* abnstracted the fix to its own functions

* abstracted the fix to its own functions

* fixes bug with rendering and saving data in accordion groups

* removed unneeded if statement

Co-authored-by: ian <licitdev@gmail.com>
2022-07-07 21:55:35 +08:00
Brainslug
e386caabc1 limiting the fields selectable as sort field for multi relation interfaces (#14303) 2022-07-07 11:01:44 +02:00
younky-yang
7190e661ec Fix Save As Copy with edited relational fields (#13970)
* Update saveAsCopy function to fix the issue when there are relation items update

* add checking on junctionrelatedkey handler

* Update app/src/composables/use-item/use-item.ts

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

* fix syntax error by auto resolve

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-07-07 10:10:00 +02:00
Azri Kahar
2e599600a2 Remove invalid exported type in app (#14299) 2022-07-06 14:15:46 +02:00
Brainslug
309bc10c20 adding related primary keys to data for m2a interface (#14300) 2022-07-06 14:15:27 +02:00
Rijk van Zanten
7d451f8df4 New translations en-US.yaml (Portuguese) (#14279) 2022-07-04 15:41:35 +00:00
Rijk van Zanten
528ade1b6e New translations en-US.yaml (Portuguese) (#14275) 2022-07-04 14:31:26 +00:00
Rijk van Zanten
c5b0e46145 New translations en-US.yaml (Portuguese) (#14272) 2022-07-04 12:04:19 +00:00
Rijk van Zanten
666d8748e9 New translations en-US.yaml (Portuguese) (#14270) 2022-07-04 10:42:34 +00:00
Rijk van Zanten
33eee889ac New translations en-US.yaml (German) (#14263) 2022-07-03 13:50:42 +00:00
Rijk van Zanten
24aa007dc7 New translations en-US.yaml (German) (#14262) 2022-07-03 12:54:11 +00:00
Rijk van Zanten
5aed15c06e New Crowdin updates (#14261)
* New translations en-US.yaml (French)

* New translations en-US.yaml (Turkish)
2022-07-03 01:33:48 +00:00