Commit Graph

5380 Commits

Author SHA1 Message Date
rijkvanzanten
9bd5fc1f54 Ignore current users email on update
Fixes #5538
2021-05-12 16:40:17 -04:00
WoLfulus
d8caf221ed CLI 2.0 (#5376)
* merge components

merge args, parser, docs, formatter, help and handlers

* change directus command and add auto debug

* output format fixes

* adds back some reformatted and documented commands

* better help output format

* refactor all output flow

* export cli types

* more formatting fixes and param rework

* fix table spacing

* add yaml formatting and fix string colors

* finished formatting docs

* remove log

* remove package-lock

* update dependency versions

* fix command description

* workaround typescript loading

* module loading fixes
added command error
rename human to table
fix disconnect usage

* add typescript loader

redirect execution to local package if installed locally
added command alias `directus-ctl`

* fix module load directories

* reimplement stdin pipe to work on linux

* fix sdk server info type

* info command

* Fix stdin bug
Disable community extensions to discourage use for now
Added template to config files
Added password stdin to connect to instances
Fixed typescript command load

* Added command suggestions and QOL features

* Linter fixes

* Add command hints

* Separate positional options

* Add back delete many, fix delete one location

* Change score logic

* Add whoami util command

* Add short online docs

* Fix typo

* Fix typo

* Update commands

* Param consistency fix and docs update

* Create commands

* Update package.json version

* Update package-lock

* Fixed several linting problems

* Update dependencies

* Update lock

* Remove locked dependencies

* Stop conflicts when in home directory

* Package lock update and npm audit fix

* Fix formatting errors

* Comment out extending cli section until we figure out cli ext

* Update readme

* Tweak dev/build/prebuild script naming

* Use up to date deps

* Fix dependency version in lock (fix build)

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-12 20:38:30 +00:00
rijkvanzanten
24e28792f2 Fix fields_in_collection type signature
Fixes #5627
2021-05-12 16:34:34 -04:00
rijkvanzanten
891fe01093 Fix cli role name attr 2021-05-12 15:46:49 -04:00
Pascal Jufer
44ffd60174 Add missing cookie options to cookie cleanup on logout (#5626) 2021-05-12 12:34:58 -04:00
dependabot[bot]
7bdb220bd2 Bump graphql-compose from 8.0.1 to 8.1.0 (#5619)
Bumps [graphql-compose](https://github.com/graphql-compose/graphql-compose) from 8.0.1 to 8.1.0.
- [Release notes](https://github.com/graphql-compose/graphql-compose/releases)
- [Changelog](https://github.com/graphql-compose/graphql-compose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/graphql-compose/graphql-compose/compare/v8.0.1...v8.1.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 10:59:11 -04:00
dependabot[bot]
f66040ecdf Bump eslint from 7.25.0 to 7.26.0 (#5616)
Bumps [eslint](https://github.com/eslint/eslint) from 7.25.0 to 7.26.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.25.0...v7.26.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 10:56:59 -04:00
dependabot[bot]
08cd77c2f5 Bump pretty-ms from 5.1.0 to 7.0.1 (#5617)
Bumps [pretty-ms](https://github.com/sindresorhus/pretty-ms) from 5.1.0 to 7.0.1.
- [Release notes](https://github.com/sindresorhus/pretty-ms/releases)
- [Commits](https://github.com/sindresorhus/pretty-ms/compare/v5.1.0...v7.0.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 10:56:04 -04:00
mcarlson
7531585ccd Fixes #5599 - add jsonb field type mapping for postgres (#5611) 2021-05-11 19:55:19 +00:00
Oreille
316ac9076b Check for schema identity before updating it. (#5608) 2021-05-11 14:36:33 -04:00
dependabot[bot]
bc30ee2bde Bump prettier from 2.2.1 to 2.3.0 (#5593)
* Bump prettier from 2.2.1 to 2.3.0

Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0)

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

* Fix lint issues for updated prettier

* Lets remove dev: true again so we can auto-add it later why don't we

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-11 10:38:42 -04:00
Pierre
95fc9e3368 [TS] Add deprecated note (#5603)
https://github.com/directus/directus/discussions/5601
2021-05-11 09:42:50 -04:00
dependabot[bot]
3ccf5f36d4 Bump @vue/cli-service from 4.5.12 to 4.5.13 (#5594)
Bumps [@vue/cli-service](https://github.com/vuejs/vue-cli/tree/HEAD/packages/@vue/cli-service) from 4.5.12 to 4.5.13.
- [Release notes](https://github.com/vuejs/vue-cli/releases)
- [Changelog](https://github.com/vuejs/vue-cli/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-cli/commits/v4.5.13/packages/@vue/cli-service)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-11 09:37:08 -04:00
dependabot[bot]
c0942f38f8 Bump tedious from 11.0.7 to 11.0.8 (#5592)
Bumps [tedious](https://github.com/tediousjs/tedious) from 11.0.7 to 11.0.8.
- [Release notes](https://github.com/tediousjs/tedious/releases)
- [Commits](https://github.com/tediousjs/tedious/compare/v11.0.7...v11.0.8)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-11 09:35:00 -04:00
dependabot[bot]
52c6d755ac Bump @typescript-eslint/parser from 4.22.1 to 4.23.0 (#5591)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.22.1 to 4.23.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.23.0/packages/parser)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-11 09:34:46 -04:00
dependabot[bot]
bec1362b9f Bump @rollup/plugin-node-resolve from 11.2.1 to 13.0.0 (#5590)
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 11.2.1 to 13.0.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v13.0.0/packages/node-resolve)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-11 09:33:24 -04:00
João
4366194ac3 fix sdk server info type (#5584) 2021-05-10 12:50:19 -04:00
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
dependabot[bot]
3b82b3e568 Bump nodemailer from 6.5.0 to 6.6.0 (#5567)
Bumps [nodemailer](https://github.com/nodemailer/nodemailer) from 6.5.0 to 6.6.0.
- [Release notes](https://github.com/nodemailer/nodemailer/releases)
- [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodemailer/nodemailer/compare/v6.5.0...v6.6.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 10:04:46 -04:00
dependabot[bot]
1579108dca Bump pretty-ms from 5.1.0 to 7.0.1 (#5568)
Bumps [pretty-ms](https://github.com/sindresorhus/pretty-ms) from 5.1.0 to 7.0.1.
- [Release notes](https://github.com/sindresorhus/pretty-ms/releases)
- [Commits](https://github.com/sindresorhus/pretty-ms/compare/v5.1.0...v7.0.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 10:02:38 -04:00
dependabot[bot]
0316d283fd Bump rimraf from 2.7.1 to 3.0.2 (#5570)
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-05-10 10:00:55 -04:00
dependabot[bot]
a83ed15cfe Bump @types/fs-extra from 8.1.1 to 9.0.11 (#5571)
Bumps [@types/fs-extra](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/fs-extra) from 8.1.1 to 9.0.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/fs-extra)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 09:58:01 -04:00
rijkvanzanten
a86c0832b0 v9.0.0-rc.64 v9.0.0-rc.64 2021-05-07 16:36:58 -04:00
rijkvanzanten
be20fafb8b Fix migration on MySQL 5
Fixes #5545
2021-05-07 16:36:01 -04:00
rijkvanzanten
5df6696bc0 v9.0.0-rc.63 v9.0.0-rc.63 2021-05-07 14:42:29 -04:00
rijkvanzanten
8b2d715a90 Fix linting errors 2021-05-07 14:31:01 -04:00
rijkvanzanten
087d785cd6 Move app deps to app 2021-05-07 14:26:49 -04:00
Ben Haynes
7585207121 Merge branch 'main' of https://github.com/directus/directus into main 2021-05-07 14:22:31 -04:00
Ben Haynes
e662186169 Calendar no events styling 2021-05-07 14:22:21 -04:00
rijkvanzanten
2ff66cfecd Make sure active collection is in overflow view of the menu 2021-05-07 14:18:50 -04:00
Ben Haynes
2b54e36233 Calendar styling 2021-05-07 14:15:25 -04:00
Rijk van Zanten
65daa69c30 Update input.vue 2021-05-07 13:19:54 -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
dependabot[bot]
bdbe285089 Bump ora from 3.4.0 to 5.4.0 (#5537)
Bumps [ora](https://github.com/sindresorhus/ora) from 3.4.0 to 5.4.0.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](https://github.com/sindresorhus/ora/compare/v3.4.0...v5.4.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 10:07:43 -04:00
dependabot[bot]
0e14686e0c Bump pg from 8.5.1 to 8.6.0 (#5536)
Bumps [pg](https://github.com/brianc/node-postgres/tree/HEAD/packages/pg) from 8.5.1 to 8.6.0.
- [Release notes](https://github.com/brianc/node-postgres/releases)
- [Changelog](https://github.com/brianc/node-postgres/blob/master/CHANGELOG.md)
- [Commits](https://github.com/brianc/node-postgres/commits/pg@8.6.0/packages/pg)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 10:07:23 -04:00
dependabot[bot]
d077237b03 Bump escape-string-regexp from 4.0.0 to 5.0.0 (#5535)
Bumps [escape-string-regexp](https://github.com/sindresorhus/escape-string-regexp) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/sindresorhus/escape-string-regexp/releases)
- [Commits](https://github.com/sindresorhus/escape-string-regexp/compare/v4.0.0...v5.0.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 10:07:06 -04:00
dependabot[bot]
02a5834085 Bump resolve-cwd from 2.0.0 to 3.0.0 (#5533)
Bumps [resolve-cwd](https://github.com/sindresorhus/resolve-cwd) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/sindresorhus/resolve-cwd/releases)
- [Commits](https://github.com/sindresorhus/resolve-cwd/compare/v2.0.0...v3.0.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 10:06:12 -04:00
dependabot[bot]
2bb3ddb67a Bump aws-sdk from 2.900.0 to 2.902.0 (#5532)
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.900.0 to 2.902.0.
- [Release notes](https://github.com/aws/aws-sdk-js/releases)
- [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js/compare/v2.900.0...v2.902.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 10:04:55 -04:00
Sebastian Flick
90a48cce96 fix datetime (#5534) 2021-05-07 08:54:12 -04:00
Rijk van Zanten
044ab5e1f7 Add default displays based on field type (#5525) 2021-05-06 19:00:13 -04:00
Rijk van Zanten
f0042a7a3d Create input-autocomplete-api interface (#5524) 2021-05-06 18:37:42 -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
Rijk van Zanten
c6927bb4e2 New Crowdin updates (#5496)
* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (German)
2021-05-06 16:38:43 -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
dependabot[bot]
76e44cfb24 Bump dockerode from 3.2.1 to 3.3.0 (#5510)
Bumps [dockerode](https://github.com/apocas/dockerode) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/apocas/dockerode/releases)
- [Commits](https://github.com/apocas/dockerode/compare/v3.2.1...v3.3.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 14:43:50 +00:00
dependabot[bot]
a97166fd18 Bump @types/node from 15.0.1 to 15.0.2 (#5508)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.0.1 to 15.0.2.
- [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-05-06 14:06:15 +00:00
dependabot[bot]
6dbcf9ff13 Bump ora from 3.4.0 to 5.4.0 (#5511)
Bumps [ora](https://github.com/sindresorhus/ora) from 3.4.0 to 5.4.0.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](https://github.com/sindresorhus/ora/compare/v3.4.0...v5.4.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 09:40:17 -04:00