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
Daniel Westman
9097641bf5
Add the ability to provide custom liquid layouts and partials ( #5269 )
...
* Add ability to provide custom liquid layouts and partials
* Allow overriding partilas with customs
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-04-27 20:41:31 +00:00
rijkvanzanten
292dcedb14
Fix close button on public role permissions detail
...
Fixes #5298
2021-04-27 16:38:17 -04:00
rijkvanzanten
207eda1d2d
Fix login with non-existing user
...
Fixes #5299
2021-04-27 16:28:49 -04:00
Rijk van Zanten
84f4a1da01
Add singular/plural collection name translations ( #5302 )
...
* Add singular/plural options to collection translations
* Use singular/plural item names in related values
* Use singular / plural names on item detail
* Use singular/plural for drawer item
* Fix translation
2021-04-27 16:22:52 -04:00
Rijk van Zanten
451cdac8ef
Add options for create/select ( #5301 )
...
* Hide add/select based on permissions
Fixes #4874
* Add enable create/select options to interfaces
2021-04-27 15:13:22 -04:00
dependabot[bot]
f5f6f325f7
Bump uuid from 3.3.2 to 8.3.2 ( #5292 )
...
Bumps [uuid](https://github.com/uuidjs/uuid ) from 3.3.2 to 8.3.2.
- [Release notes](https://github.com/uuidjs/uuid/releases )
- [Changelog](https://github.com/uuidjs/uuid/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uuidjs/uuid/compare/v3.3.2...v8.3.2 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-27 15:11:23 -04:00
dependabot[bot]
f1bed254be
Bump express-pino-logger from 5.0.0 to 6.0.0 ( #5288 )
...
Bumps [express-pino-logger](https://github.com/pinojs/express-pino-logger ) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/pinojs/express-pino-logger/releases )
- [Commits](https://github.com/pinojs/express-pino-logger/compare/v5.0.0...v6.0.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-27 14:58:06 -04:00
rijkvanzanten
c3c1337346
Ignore file extensions in assets endpoint path
...
Fixes #4067
2021-04-27 12:10:34 -04:00
José Varela
9d432efb34
app: show file preview on drawer-item ( #5289 )
...
if the related collection is `directus_files` we could show the preview
of the file.
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-04-27 12:02:03 -04:00
cynova
56d634ce16
handle enter key for existing sessions ( #5277 )
...
* handle enter key for existing sessions
* replace with more declarative approach
Co-authored-by: Sean Goff <sean318@hotmail.ch >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-04-27 12:01:40 -04:00
dependabot[bot]
f99396c4d1
Bump @google-cloud/storage from 5.8.3 to 5.8.4 ( #5293 )
...
Bumps [@google-cloud/storage](https://github.com/googleapis/nodejs-storage ) from 5.8.3 to 5.8.4.
- [Release notes](https://github.com/googleapis/nodejs-storage/releases )
- [Changelog](https://github.com/googleapis/nodejs-storage/blob/master/CHANGELOG.md )
- [Commits](https://github.com/googleapis/nodejs-storage/compare/v5.8.3...v5.8.4 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-27 12:00:51 -04:00
dependabot[bot]
23824fd4f5
Bump mitt from 1.2.0 to 2.1.0 ( #5282 )
...
Bumps [mitt](https://github.com/developit/mitt ) from 1.2.0 to 2.1.0.
- [Release notes](https://github.com/developit/mitt/releases )
- [Commits](https://github.com/developit/mitt/compare/1.2.0...2.1.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-27 15:59:01 +00:00
dependabot[bot]
08f025801c
Bump gatsby-source-filesystem from 3.2.0 to 3.3.0 ( #5291 )
...
Bumps [gatsby-source-filesystem](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-source-filesystem ) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases )
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-filesystem/CHANGELOG.md )
- [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@3.3.0/packages/gatsby-source-filesystem )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-27 15:56:02 +00:00