dependabot[bot]
24b5e5ff45
Bump commander from 6.2.1 to 7.2.0 ( #5569 )
...
* Bump commander from 6.2.1 to 7.2.0
Bumps [commander](https://github.com/tj/commander.js ) from 6.2.1 to 7.2.0.
- [Release notes](https://github.com/tj/commander.js/releases )
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tj/commander.js/compare/v6.2.1...v7.2.0 )
Signed-off-by: dependabot[bot] <support@github.com >
* Fix breaking changes in commander
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-05-10 11:33:19 -04:00
rijkvanzanten
aaee7cc750
Fix having clause on postgres alias
2021-05-10 10:48:36 -04:00
rijkvanzanten
be20fafb8b
Fix migration on MySQL 5
...
Fixes #5545
2021-05-07 16:36:01 -04:00
Rijk van Zanten
b6964fa1a1
Add XML export ( #5526 )
2021-05-07 12:55:03 -04:00
rijkvanzanten
fa86a06a7a
Stringify json options
2021-05-07 11:48:36 -04:00
Rijk van Zanten
c4ae4b66cc
Finalize interface names ( #5521 )
...
* Rename button-links->presentation-links
* Rename checkboxes->select-multiple-checkbox
* Rename code->input-code
* Rename checkboxes files
* Rename color->select-color
* Rename divider->presentation-divider
* Rename dropdown-multiselect->select-multiple-dropdown
* Rename hash->input-hash
* Rename icon->select-icon
* Rename image->file-image
* Rename m2a-builder->list-m2a
* Rename many-to-many->list-m2m
* Rename many-to-one->select-dropdown-m2o
* Rename markdown->input-rich-text-md
* Rename notice->presentation-notice
* Rename one-to-many->list-o2m
* Rename radio-buttons->select-radio
* Rename repeater->list
* Rename text-input->input
* Rename textarea->input-multiline
* Rename toggle->boolean
* Rename tree-view->list-o2m-tree-view
* Rename wysiwyg->input-rich-text-html
* Use correct interfaces in system defaults
* Rename collection->system-collection
* Rename collections->system-collections
* Rename display-template->system-display-template
* Rename field->system-field
* Rename interface->system-interface
* Rename interface-options->system-interface-options
* Rename scope->interface-scope
* Rename tfa-setup->system-mfa-setup
* Fix oversights
* Remove old todo
* Some more tweaks
* Add migration, fix dropdown name in system use
* Merge numeric + input
* Replace dropdown->select-dropdown in app use
* Merge slug->input, user->select-dropdown-m2o
* Fix type issue
* Fix seeder field name
2021-05-06 16:49:32 -04:00
rijkvanzanten
ae1e22d116
Enforce new collections to have PK field
...
Fixes #5512
2021-05-06 11:19:51 -04:00
Ilya Belousov
4217ace3b4
* Ignore undefined in array filter values ( #5506 )
...
* Ignore non 2-length value for between-filters
Ref #4471
2021-05-06 15:10:26 +00:00
rijkvanzanten
e67702f1b5
Don't pass trx to async hook
...
Fixes #5460
2021-05-04 19:03:11 -04:00
Aiden Foxx
7df8cf2912
Added Oracle healthcheck fix ( #5461 )
2021-05-04 13:22:35 -04:00
Sebastian Kinzlinger
a4552e3752
Allow custom email subjects for invite and pw reset mail ( #5446 )
...
* Make email template overrides work
The ternary needs to be this way for custom email templates to be picked up.
* Allow custom subject lines for emails
Allow subject line to be passed into `inviteUser()` and `requestPasswordReset()`
* Fix typo
* Revert so only one change for PR
* fix typo
* Fix ts tests
2021-05-04 09:32:29 -04:00
Sebastian Kinzlinger
faa3ca7a06
Allow base Email override for standard emails ( #5449 )
...
* Make email template overrides work
The ternary needs to be this way for custom email templates to be picked up.
* Allow custom subject lines for emails
Allow subject line to be passed into `inviteUser()` and `requestPasswordReset()`
* Fix typo
* Fix typo
* eslint stuff
* Update users.ts
2021-05-04 09:31:13 -04:00
Pyll Gomez
09b19b9191
Session store knex ( #5432 )
...
* Rotate JPG image on upload #4206
* fixes #3949 width/height generated for gif and tif
* API hooks for event added for auth.login #4079
* updated doc for api hooks for new auth.login event
* Style tweaks
* Update docs
* Tweak docs some more
* Spelling error
* Allow non-required flags and pass to hook
* SDK - Persistent login refresh fixes #4113
* Fixed #4145 SDK, Token Expired error
* Spell check
* Docs Spell check
* Docs Spell check
* Docs Spell check
* update docs for sdk-js
* To delete all expired session from db on login
* corrected the condition for the delete
* changed the from Date.now to new date .
* Move it inline
* Added Knex option for Session store
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-05-03 11:46:42 -04:00
Rijk van Zanten
a3898fa321
Add SESSION_STORE options ( #5403 )
...
* Allow configuring the session storage driver
Fixes #3814
* Document SESSION_STORE env var
* Add missing dependency
* Docs tweak
2021-04-30 18:18:39 -04:00
Rijk van Zanten
f3574deae0
Ask for value when changing nullable to not-nullable ( #5400 )
...
* Add ContainsNullValues exception abstraction
* Add dialog for null values when disabling non-null
Fixes #2934
* Add translation for CONTAINS_NULL_VALUE error
* Make dialog title translated
2021-04-30 15:27:18 -04: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
3c5c0a043c
Fix error handler not being recognized
2021-04-29 18:09:04 -04:00
rijkvanzanten
99fcf12e73
Fix linter workflow
2021-04-29 16:24:31 -04:00
rijkvanzanten
ba98f23d3d
Fix TS errors
2021-04-29 16:18:09 -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
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
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
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
c225bbf762
Fix password policy check for no requirements
...
Fixes #5310
2021-04-28 14:51:17 -04:00
rijkvanzanten
6adc51383c
Fix duplicate values in sort column causing havoc
...
Fixes #2921
2021-04-27 17:22:22 -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
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
rijkvanzanten
c3c1337346
Ignore file extensions in assets endpoint path
...
Fixes #4067
2021-04-27 12:10:34 -04:00
rijkvanzanten
33f5927e38
Add missing email subjects
...
Fixes #5275
2021-04-27 11:34:32 -04:00
Rijk van Zanten
d25c35fee7
Add MailService ( #5265 )
...
* Create MailService
Fixes #5229 , ref #3372 , #4664 , #4858 , #5090 , #3104 , #3465 , #2774 , #3741
* Fix path to templates extensions
* Add mailservice example to hooks docs
2021-04-26 17:55:34 -04:00
rijkvanzanten
29797dfb97
Pass trx to items service in roles delete
...
Fixes #5244
2021-04-26 14:56:02 -04:00
rijkvanzanten
ad9ffb4647
Fix permissionsAction check in query read
...
Fixes #5257
2021-04-26 12:47:44 -04:00
rijkvanzanten
40ecaec4c7
Skip empty filters
...
Fixes #4471
Squashed commit of the following:
commit 58f7e60710808e927c636a0f0a8c7c91611e8fcb
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Mon Apr 26 12:34:15 2021 -0400
Skip empty filters
2021-04-26 12:36:24 -04:00
Ben Haynes
13db4c7719
Better email line wraps
2021-04-26 09:54:56 -04:00
rijkvanzanten
26850b08d3
Make unique error nicer on duplicate email invite
...
Fixes #5157
2021-04-23 19:06:41 -04:00
rijkvanzanten
4a942067fc
Make migration logs more explicit
2021-04-23 18:04:59 -04:00
Rijk van Zanten
f1e2338142
Add auth password policy / login attempts support ( #5225 )
...
* Check auth password policy on user modifications
* Show validation errors in drawer-batch
* Allow custom password policy, add placeholder
* Add UserSuspended exception
* Add user suspended error translation
* Move rate limiter creation into root helper
* Add login attempts support to authentication service
* Don't authenticate into settings service when checking password policy
2021-04-23 17:42:46 -04:00
José Varela
5f425e4595
api: ignore singleton on validate-batch ( #5209 )
2021-04-23 12:48:25 +00:00
rijkvanzanten
2c557b2c9e
Fix alignment of repeater row previews
2021-04-22 13:34:36 -04:00
rijkvanzanten
cb4bf88e66
Tweak relational interfaces
...
Squashed commit of the following:
commit ade7ce72e7dac9908504eacf420875baaae1cc47
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 13:16:03 2021 -0400
Add no-items notice
commit e47dd5ac1f28300a33478a2be3c50496859b09fc
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 13:13:58 2021 -0400
Remove files interface
commit 2925fb9c86719c48006f7b2619df7fd26bf7b523
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 13:10:44 2021 -0400
Fix sort field in m2m
commit 009e2b1fd99f7a31f20fba04cd9980eaa3566ac8
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 13:06:45 2021 -0400
Add dense at item count
commit 83b088f4da3ea4a1d7e030f34a07aa1cb2235b43
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 12:05:40 2021 -0400
Tweak rendering of thumbnails inside relational interfaces
commit 06770a0f16e344ab62c0228b87824a6c00ad39bc
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 11:36:07 2021 -0400
Rename $file->$thumbnail, render properly in render-template
commit 954fd725629ce055459a7925be4aaddf3fb723c2
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 11:35:53 2021 -0400
Fix injection on v-field-select
commit 83073dea2fc26af61a5155adddd5d4e3afa5cb14
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 11:35:39 2021 -0400
Adjust for virtual $thumbnail field on files
commit ee57b8316479204c0a5c931c86807afde55423a1
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:49:35 2021 -0400
Don't hardcode file/user relations
commit 31ed92c5a785f20b7dc58bb62f35f6e31c95cfc6
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:49:22 2021 -0400
Allow injecting temporary fields in field template
commit 9d98d4fe4def7bdba12d1613bd08bdb9bd9e1431
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:36:53 2021 -0400
Render collection level template in placeholder
commit 0e0dda1e9f5a930ce3c73c2f8003d98853d58bc0
Merge: 65fa8084f 1e3b64bf9
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:35:21 2021 -0400
Merge branch 'main' into relational-tweaks
commit 65fa8084f84aa1a90686fe6407a6d54ca47d1371
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:29:03 2021 -0400
Make input container relative
commit 0674a0a00faa5df2208b466114721ba5d5116bf7
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:28:44 2021 -0400
Add placeholder option to v-field-template
2021-04-22 13:16:20 -04:00
rijkvanzanten
1e3b64bf99
Fix upsert of collections meta
2021-04-22 10:28:27 -04:00
rijkvanzanten
f873f184f5
Fix deep querying in nested o2m in m2a structure
2021-04-22 10:10:41 -04:00
Rijk van Zanten
b40c62d257
Add support for SEARCH method ( #5183 )
...
* Add search method support for advanced get
* Add docs for SEARCH
2021-04-21 13:35:16 -04:00
rijkvanzanten
f836c90990
Set cache-control no-cache for private resources
...
Forces the browser to revalidate the cached item with the server, ensuring you don't pull the wrong records from the browser cache.
Fixes #5175
2021-04-21 13:27:15 -04:00