Commit Graph

5279 Commits

Author SHA1 Message Date
dependabot[bot]
0bee49a355 Bump fs-extra from 7.0.1 to 9.1.0 (#5390)
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 7.0.1 to 9.1.0.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases)
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/7.0.1...9.1.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 09:33:32 -04:00
Pascal Jufer
1a39b4bc6d lint-staged: Reintroduce Prettier for md files (#5382) 2021-04-30 08:44:47 -04:00
Pascal Jufer
26ca4a7717 Docs: Remove dead link, add reference to whole introduction guide (#5383)
instead
2021-04-30 07:36:10 -04:00
Jian Liao
c438917096 Issue 5344 (#5346)
* add more ignore pattern for git

* revert the change for api/.gitignore

* fix issue-5344 support autofocus on first non-readonly form field on open drawer

* fix use a more accurate variable name

* Rename autofocusonfirstitem to autofocus

Co-authored-by: Jian Liao <jianliao@adobe.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-30 01:13:55 +00:00
rijkvanzanten
74861e6f81 Add default display template for directus_files
Fixes #5364
2021-04-29 20:40:52 -04:00
rijkvanzanten
cd565c2e60 Fix patch handler of rest /folders
Fixes #5351
2021-04-29 20:16:52 -04:00
rijkvanzanten
53f2d690dc Add comment 2021-04-29 20:13:36 -04:00
rijkvanzanten
9cc89ecb88 Add missing translation key
s
2021-04-29 18:09:20 -04:00
rijkvanzanten
3c5c0a043c Fix error handler not being recognized 2021-04-29 18:09:04 -04:00
rijkvanzanten
b2d863e9a0 Fix main imports 2021-04-29 17:18:45 -04:00
rijkvanzanten
99fcf12e73 Fix linter workflow 2021-04-29 16:24:31 -04:00
rijkvanzanten
9b3814545d Speed up on-commit eslint fix 2021-04-29 16:18:40 -04:00
rijkvanzanten
ba98f23d3d Fix TS errors 2021-04-29 16:18:09 -04:00
rijkvanzanten
3c0e41e881 Add linter workflow in actions 2021-04-29 16:08:14 -04:00
rijkvanzanten
fb31653ade Fix remaining stylelint problems 2021-04-29 16:08:14 -04:00
Aiden Foxx
c255afd7f1 Update get-local-type.ts (#5375) 2021-04-29 20:00:17 +00:00
rijkvanzanten
801e868554 Fix remaining eslint errors
h/t @paescuj
2021-04-29 15:55:12 -04:00
rijkvanzanten
5b7bd55d68 Update package-lock 2021-04-29 13:02:08 -04:00
Pascal Jufer
acd41eb0be Syntax fixes (#5367)
* Declare return types on functions

And a very few other type related minor fixes

* Minor syntax fixes

* Remove unnecessary escape chars in regexes
* Remove unnecessary awaits
* Replace deprecated req.connection with req.socket
* Replace deprecated upload with uploadOne
* Remove unnecessary eslint-disable-next-line comments
* Comment empty functions / catch or finally clauses
* Fix irregular whitespaces
* Add missing returns (null)
* Remove unreachable code
* A few logical fixes
* Remove / Handle non-null assertions which are certainly unnecessary (e.g. in
tests)
2021-04-29 12:11:43 -04:00
Pascal Jufer
40eba791fa Fix & enhance linting (#5312)
* Enhance eslint config

* Config with sensible settings for typescript and vue,
  including comments
* Differentiate between js/ts files
* Lint .eslintrc.js itself
* Update lint-related packages
  Note: This is required to solve the following error:
    Error: Failed to load plugin 'prettier-vue' declared in '.eslintrc.js#overrides[1]': Cannot find module '@vue/compiler-sfc'

* Only check related files on "npm run lint:stylelint"

* Otherwise stylelint will fail (e.g. on *.d.ts files)
* Also ingore some directories

* Continue on error when linting (show output of both)

* Update package.json

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-29 12:01:17 -04:00
Rijk van Zanten
ccd03c9ad4 New Crowdin updates (#5363)
* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Greek)
2021-04-29 11:05:07 -04:00
dependabot[bot]
3aae334171 Bump rimraf from 2.7.1 to 3.0.2 (#5355)
Bumps [rimraf](https://github.com/isaacs/rimraf) from 2.7.1 to 3.0.2.
- [Release notes](https://github.com/isaacs/rimraf/releases)
- [Changelog](https://github.com/isaacs/rimraf/blob/master/CHANGELOG.md)
- [Commits](https://github.com/isaacs/rimraf/compare/v2.7.1...v3.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 10:33:37 -04:00
dependabot[bot]
57ae282b57 Bump js-yaml from 4.0.0 to 4.1.0 (#5357)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.0.0...4.1.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 10:33:09 -04:00
José Varela
72b516a678 api: use current connection on collection service (#5369)
Allow to retrieve collections in the middle of a transaction
2021-04-29 10:32:16 -04:00
dependabot[bot]
167b41bf7a Bump marked from 2.0.1 to 2.0.3 (#5354)
Bumps [marked](https://github.com/markedjs/marked) from 2.0.1 to 2.0.3.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](https://github.com/markedjs/marked/compare/v2.0.1...v2.0.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 10:05:52 -04:00
dependabot[bot]
d5a701ba8d Bump date-fns from 2.20.1 to 2.21.1 (#5353)
Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.20.1 to 2.21.1.
- [Release notes](https://github.com/date-fns/date-fns/releases)
- [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md)
- [Commits](https://github.com/date-fns/date-fns/compare/v2.20.1...v2.21.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 09:57:22 -04:00
dependabot[bot]
e336f4421d Bump @types/node from 14.14.37 to 15.0.1 (#5352)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 09:57:07 -04:00
Martijn Boland
d9baa0b92d Also join o2m relations when not in subquery but at non-root level (#5338) 2021-04-28 22:21:56 +00:00
Rijk van Zanten
a64a5a124a Add files.upload hook (#5334)
* Allow events to be disabled

* Add files.upload, silence create/update on upload

Fixes #4728

* Document files.upload hook
2021-04-28 17:54:03 -04:00
rijkvanzanten
98c9b9a9ff Ignore invalid array filter values as well
Ref #4471
2021-04-28 15:29:21 -04:00
rijkvanzanten
45ff82c0f1 Fix template rendering on new item creation in relational context
Fixes #5326
2021-04-28 15:21:28 -04:00
rijkvanzanten
c225bbf762 Fix password policy check for no requirements
Fixes #5310
2021-04-28 14:51:17 -04:00
Sebastian Flick
a48b0fbd28 Setting the default date to today is a bad idea (#5332)
If a user selects a year, the day and month are set to today's day and month. This is a very bad idea since people want to sort entries by date. Most of the time only the year is of interest. The entries will be sorted then by the time and day when the were created...
This commit should set the values to the same by default.
2021-04-28 14:49:32 -04:00
Aiden Foxx
da826e2a1a Update oracledb.ts (#5331)
As explained in the code comment, Oracle doesn't return "AUTO_INCREMENT", causing `authorization.ts` to throw a error that primary keys are required values.
2021-04-28 14:07:15 -04:00
Rijk van Zanten
a4e2c499e8 New Crowdin updates (#5306)
* New translations en-US.yaml (French)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Japanese)

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

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

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

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Swedish)

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

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Malay)

* New translations en-US.yaml (Malay)

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

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Arabic)
2021-04-28 12:56:42 -04:00
Aiden Foxx
dc973d37f4 Update oracledb.ts (#5327)
As defined by Oracle, NULLABLE should return "Y" or "N":

https://docs.oracle.com/cd/B19306_01/server.102/b14237/statviews_2094.htm
2021-04-28 14:53:17 +00:00
Ben Haynes
57208d7ebc Fixes #5311 2021-04-28 10:42:31 -04:00
dependabot[bot]
b741c14408 Bump chalk from 1.1.3 to 4.1.1 (#5317) 2021-04-28 14:08:35 +00:00
fissben
56909c3161 Add info about mysql 8 setting up (#5319) 2021-04-28 09:27:23 -04:00
dependabot[bot]
0bb930adb8 Bump eslint-plugin-prettier from 3.3.1 to 3.4.0 (#5318) 2021-04-28 09:22:30 -04:00
dependabot[bot]
f1214150e3 Bump simple-git-hooks from 2.3.1 to 2.4.1 (#5316) 2021-04-28 09:18:56 -04:00
dependabot[bot]
b24eb4f7aa Bump gatsby-source-filesystem from 3.3.0 to 3.4.0 (#5315) 2021-04-28 09:18:29 -04:00
dependabot[bot]
a3590c1706 Bump @types/fs-extra from 8.1.1 to 9.0.11 (#5314) 2021-04-28 09:18:06 -04:00
YannickMol
8145bc05b1 Update styles.md (#5325) 2021-04-28 08:51:35 -04:00
Ben Haynes
31113a3087 Fixes #5241 2021-04-27 18:56:03 -04:00
Rijk van Zanten
872f4ec0e4 New Crowdin updates (#5304)
* Update source file en-US.yaml

* New translations en-US.yaml (French)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Japanese)

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

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

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

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Swedish)

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

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Thai)
2021-04-27 17:46:22 -04:00
Rijk van Zanten
2240b402c3 New Crowdin updates (#5303)
* Update source file en-US.yaml

* New translations en-US.yaml (French)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Japanese)

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

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

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

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Swedish)

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

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

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Thai)

* Update source file en-US.yaml
2021-04-27 17:22:37 -04:00
rijkvanzanten
6adc51383c Fix duplicate values in sort column causing havoc
Fixes #2921
2021-04-27 17:22:22 -04:00
rijkvanzanten
81f488fc8e Rename required->allow null 2021-04-27 17:22:22 -04:00
Ben Haynes
40719cbbed Fixes #5295 2021-04-27 16:59:57 -04:00