Commit Graph

2308 Commits

Author SHA1 Message Date
Rijk van Zanten
1a867f17d1 New Crowdin updates (#6154)
* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Spanish)
2021-06-09 13:56:08 -04:00
Rijk van Zanten
7da3f2c701 New Crowdin updates (#6148)
* New translations en-US.yaml (German)

* New translations en-US.yaml (German)

* New translations en-US.yaml (German)

* New translations en-US.yaml (French)
2021-06-09 11:18:47 -04:00
Nicola Krumschmidt
12a3b22aa1 App type improvements (#6151)
* Fix v-table interalItems type

* Fix useGroupable return type

* Fix useCollection return type

* Fix useCustomSelection return type

* Fix useElementSize return type

* Fix useFormFields return type

* Fix useItem return type

* Fix useItems return type

* Prepend composable return type name with "Usable"

* Fix usePreset return type

* Fix useScrollDistance return type

* Fix useTitle return type

* Fix useWindowSize return type

* Fix usePermissions return type

* Fix useTemplateData return type

* Fix a few type issues in field store

* Fix extension getter return types

* Fix hydrate store type issue and double-hydrating users store

* Fix code interface type issue

* Fix m2m composables return types

* Fix html editor composables return types

* Fix collections module composables return types

* Fix files module composable return type

* Fix settings module composable return type

* Fix settings module roles composables return types

* Fix settings module users composable return type

* Fix return type issues in utils and a nasty parameter overwrite

* Fix modelValue casing in template
2021-06-09 11:18:21 -04:00
rijkvanzanten
a40638a3bf Fix relational preview 2021-06-08 17:57:54 -04:00
rijkvanzanten
9349f2e9b8 Fix options for input interface 2021-06-08 17:57:49 -04:00
Rijk van Zanten
bc8370d084 Add item duplicate fields configuration option to directus_collections (#6140)
* Add item_duplication_fields field

* Add types for item duplicate fields
2021-06-08 17:57:28 -04:00
Rijk van Zanten
175039f52d New Crowdin updates (#6139)
* New translations en-US.yaml (French)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Norwegian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Slovak)

* New translations en-US.yaml (Serbian (Cyrillic))

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Georgian)

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

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

* New translations en-US.yaml (Malay)

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

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Arabic)

* 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 (Ukrainian)

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

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

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Afrikaans)

* New translations en-US.yaml (Catalan)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Hebrew)
2021-06-08 17:51:59 -04:00
Nicola Krumschmidt
1961dc188b Port the app to Vue 3 (#5339)
* Fix linting errors

* Fix remaining catch all routes

* Fix directive registration regression

* Replace $router global with composition function

* Fix v-bind overwrite order in nested-draggable

* Migrate vuedraggable

* Fix building with empty translation files

* Add comment regarding array equality check

* Fix markdown-it plugins import

* Fix newly introduced wrong store usage

* Fix v-button-group model

* Fix v-fancy-select model

* Fix v-field-template model

* Fix v-input model

* Fix v-item-group model

* Fix v-menu model

* Fix v-select model

* Fix v-tabs model

* Fix v-tabs-items model

* Fix v-textarea model

* Fix v-checkbox model

* Fix v-dialog model

* Fix v-drawer model

* Fix v-form model

* Fix v-list model

* Fix v-table model

* Fix v-detail model

* Fix v-radio model

* Fix v-switch model

* Fix files-navigation model

* Fix replace-file model

* Fix bookmark-add model

* Fix bookmark-edit model

* Fix drawer-batch model

* Fix drawer-item model

* Fix file-lightbox model

* Fix image-editor model

* Fix notifications-preview model

* Fix users-invite model

* Lowercase editor component name

* Fix collections-filter model

* Fix filter-input model

* Fix filter-sidebar-detail model

* Fix folder-picker model

* Fix interface-checkboxes model

* Fix interface-code model

* Fix interface-icon model

* Fix interface-repeater model

* Fix refresh-sidebar-detail model

* Fix search-input model

* Fix interface/display component option v-model usage

* Replace calling listener through $attrs with $emit and add emits option

* Add comment regarding useCustomSelection emits

* Fix context menu activation

* Fix collectionsStore access

* Fix popperjs

* Hotfix useGroupable

* Fix notifications-preview old prop name

* Fix module bar tooltip translation

* Fix useSync type signature

* Fix update:layoutOptions emit name

* Fix usePermissions missing imports regression

* Revert changes to docs vuepress instance

* Fix module-relative-resolve vite plugin when serving

* Fix docs

* Fix refresh on first load

* Fix creating new collection

* Fix loading of collection route

* Fix v-dialog/v-menu appear transition

* Access props directly

* Fix v-table clickable

* Fix v-drawer cancelable

* Fix v-icon clickable

* Fix v-input clickable

* Fix v-list-group clickable

* Fix v-list-item clickable

* Fix v-overlay clickable

* Fix header-bar primary button

* Fix v-table item.* slot

* Fix vue warning regarding exposed variables starting with _ or $

* Fix usePermissions

* Add package-lock.json

* Fix v-form unset regression

* Fix vue shims

* Fix useCustomSelection emit

* Make extensions arrays shallow

* Move teleport targets out of the vue app

* Fix v-field-select model

* Fix v-slider model

* Fix v-pagination model

* Fix card model

* Fix v-select item-value prop usage

* Fix layout-sidebar-detail model

* Fix form-field model

* Fix form-field-menu model

* Fix form-field-interface model

* Fix v-form model

* Use kebab-case for modelValue

* Update package-lock.json

* Add missing dependency

* Replace $t with i18n composable

* Replace remaining usages of $t

* Replace $te with i18n composable

* Replace $n with i18n composable

* Disable global injection in vue-i18n

* Replace i18n.global.t usage where composable is already imported

* Replace remaining i18n.global.t usage with composable

* Replace remaining i18n.global usages with composable

* Fix uploadFile emitter regression

* Remove inheritAttrs: false from file-info-sidebar-detail

* Hotfix v-input

* Update .eslintrc.js

* Fix use-preview

* Fix eslint issues

* Remove unused imports

* Fix extension getter type

* Refactor layout structure and fix tabular layout

* Fix build

* Fix cards layout

* Hotfix vuedraggable

* Dev is true again

* Register export-sidebar-detail globally

* Deconstruct layout state

* Fix calendar layout

* Fix cards/calendar layouts

* Fix layout options when switching layout

* Replace marked usage with md util

* Use useLayout everywhere

* Fix type issue

* Fix codemirror dynamic imports

* Fix data-fns dynamic import

* Fix useLayout selection

* Fix v-avatar scoped styling

* Remove unused v-button-group component

* Remove v-deep from v-card-actions

* Replace v-deep in v-dialog

* Use correct pseudoclasses for vue3

* Fix v-deep in v-field-template

* Replace v-deep in v-list-item-content

* Replace v-deep in v-list-item

* v-deep in v-list

* v-deep in v-notice

* Replace breakpoint mixin

* Replace v-deep in v-button

* Enforce empty line before block

* v-deep in v-pagination

* No white lines on the inner brackets of a block please

* Replace v-deep in v-select

* Fix stylelint rule

* Replace v-deep in v-table

* Replace v-deep in v-tabs

* Replace v-deep in rich text input

* Replace v-deep

* Replace v-deep elsewhere

* Needs more stylelint tweaks, but v-deep is done

* Fix translations interface

* Fix date layout

* Fix npm install

* Fix router catch all routes

* Fix layout options

* Remove call to next in router guards

* Remove vue router in-component guards

* Refactor module route registration

* Fix collections module navigation

* Fix settings module navigation

* Fix router-passthrough in devtools

* Refactor docs export and docs route registration

* Import docs routes using exported function

* Remove moduleRelativeResolve vite hack

* Re-add dev scripts

* Fix deprecated hljs usage

* Use activateContextMenu without parens

* Re-add readme/license/editorconfig

* Fix groupable

* Fix initial docs navigation

* Move global app css to app component

* Fix collection navigation icon color

* Fix field setup style

* Fix divider icon style

* Fix optional v-input slots

* Use $slots direct property access

* Fix docs font style

* Fix docs v-deep

* Fix docs add missing styles

* Remove docs style margin

* Fix save options color

* Fix nested v-slotted usage

* Fix v-button exact prop

* Fix v-list-item exact prop

* Fix package-lock.json

* Improve useSync type

* Fix route type error

* Fix bookmark router links

* Add redirect to route with bookmark

* Fix files module folder route

* Fix users module role route

* Add redirect routes to files and roles sub-routes

* Fix users module role active state

* Replace routerPassthrough function with object

* Nest file routes

* Improve module bar hidden check

* Remove slash from module router link

* Fix files and folder navigation

* Revert users route nesting

* Fix buttons in list

* Don't make nav item mandatory in left sidebar

* Fix infinite loop in box open

* Fix interactivity in v-list items

* Fix docs menu jumps

* Fix right click positioning

* Fix missing translations

* Fix close/open alignment of color interface

* Fix code editor interfaces

* Fix relation access in cards layout

* Remove template ref from collection-or-item

* Revert jest-environment-jsdom package update

* Fix package-lock.json

* Resolve vue3 TODO comments

* Fix layout presets

* Remove reactivity fix

* Remove Todo3 comment

* Fix icon color override

* Add error message to useLayoutState

* Add composable to properly transition dialog routes

* Fix new collection transition

* Fix add new role transition

* Fix add new file transition

* Fix activity item transition

* Fix error type in useItems

* Fix collection error dialog transition

* Fix field detail transition

* Fix permissions detail transition

* Fix store getters types

* Update package-lock

* Fix preview icon color

* Fix reference to selections

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-06-08 15:59:55 -04:00
Rijk van Zanten
eaa3f423e5 New translations en-US.yaml (Portuguese, Brazilian) (#6114) 2021-06-07 16:02:43 -04:00
Rijk van Zanten
4b35f97cfa Make mfa output code selectable (#6112)
h/t @masterwendu for the suggestion
2021-06-07 15:38:25 +00:00
Rijk van Zanten
474a13f970 New Crowdin updates (#6092)
* New translations en-US.yaml (Spanish, Latin America)

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

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

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

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

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

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

* New translations en-US.yaml (Spanish)

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

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

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Serbian (Latin))

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

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Mongolian)

* New translations en-US.yaml (Mongolian)

* New translations en-US.yaml (Mongolian)

* New translations en-US.yaml (Mongolian)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Italian)
2021-06-07 09:30:24 -04:00
Rijk van Zanten
cc0a721725 Update available-languages.yaml 2021-06-04 11:36:14 -04:00
Rijk van Zanten
5f7f68f8aa New Crowdin updates (#6063)
* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Hindi)

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Hindi)

* New translations en-US.yaml (Hindi)

* New translations en-US.yaml (Hindi)

* New translations en-US.yaml (Hindi)

* New translations en-US.yaml (Hindi)

* New translations en-US.yaml (Bengali, India)
2021-06-04 11:35:25 -04:00
Rijk van Zanten
f2180b1650 Fixed issue that would cause the whole row to be draggable in the list-type interfaces (#6056)
Fixes #5940
2021-06-03 22:43:28 -04:00
Rijk van Zanten
85d33d9ffc Fixed an issue that would cause "text" fields to show up as varchar with length -1 in MS SQL (#6055)
Fixes #5944
2021-06-03 22:35:07 -04:00
Rijk van Zanten
ac51f20ce2 Fixed issue that would prevent the display tab to show for o2m type fields in field-setup (#6053)
Fixes #6004
2021-06-03 21:27:01 -04:00
Rijk van Zanten
58e38b68ae Fixed issue in collection color reading for tables that weren't configured in directus yet (#6052)
Fixes #6050
2021-06-03 21:16:38 -04:00
Rijk van Zanten
79835d6c83 Fixed right click handler not extending beyond nav items (#6049)
Fixes #6016
2021-06-03 21:06:18 -04:00
rijkvanzanten
c000c8a613 Revert dependency upgrades
Vue apparently had a small breaking change included in the patch release.

Squashed commit of the following:

commit f1e2635c20d4acef1752b8c2a357bbcfbb30a097
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Jun 3 19:07:54 2021 -0400

    Revert dep upgrades
2021-06-03 19:12:01 -04:00
rijkvanzanten
4e02bdb94c Fix reactivity of new-collection action buttons 2021-06-03 17:32:27 -04:00
Rijk van Zanten
3a17b6646f New Crowdin updates (#6038)
* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Serbian (Latin))
2021-06-03 14:40:53 -04:00
Oreille
22f2e4662f Add support for adding a collection accent color (#5818)
* Added icon_color to directus_collections
Added migrations
Added color property to select-icon
Fixed select-icon placeholder

* Use icon color in collection header bar.

* Set `collection` and `note` fields to hald witdh

* Rename icon_color->color

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-06-03 13:04:19 -04:00
nickluger
979bf87921 Improve disabled state on the file interface (#6025)
* See discussion: https://github.com/directus/directus/discussions/5105

* Still allow downloading the file if the file interface is disabled.

* Allow editing the underlying file (as this is possible anyway via the
  files collection), but do not allow disassociating the current file
  or setting another file, which is the actual semantic meaning of
  `disabled` in this context.
2021-06-03 12:42:52 -04:00
Rijk van Zanten
32b714208b Upgrade dependencies (#6032)
* Apply minors/patches

* Apply (safe) major upgrades
2021-06-03 12:10:04 -04:00
Rijk van Zanten
521dfd3f8b New translations en-US.yaml (Finnish) (#6017) 2021-06-03 11:08:40 -04:00
Rijk van Zanten
5e79602031 New Crowdin updates (#6011)
* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Spanish)
2021-06-02 18:18:48 -04:00
Rijk van Zanten
9cf2567598 New Crowdin updates (#5981)
* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Serbian (Latin))
2021-06-02 13:38:34 -04:00
Rijk van Zanten
ea4f18d7d6 New Crowdin updates (#5918)
* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Serbian (Latin))
2021-06-01 12:40:10 -04:00
Nicco
e7381b2490 add basic permissions to user (#5943) 2021-05-28 19:48:33 +00:00
rijkvanzanten
de0b962736 Fix highlight color of active folder picker item
Fixes #5930
2021-05-28 10:23:19 -04:00
Rijk van Zanten
de39b9287a New Crowdin updates (#5868)
* Update source file en-US.yaml

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (French)
2021-05-27 11:55:08 -04:00
rijkvanzanten
dfab7b3911 Remove unused import 2021-05-25 08:23:49 -04:00
rijkvanzanten
9f015312ce Fix type error 2021-05-25 08:17:24 -04:00
Rijk van Zanten
5c66c53478 Enhance translations interface previews (#5860)
* Delete what was previously added

The reasons of which are beyond me

* Don't default to having the first nested field opened

* Add options for translations / language templates

* Pull previews and render based on secondary display template

* Add changeset
2021-05-24 20:56:29 -04:00
rijkvanzanten
2660c39954 Fix reactivity on m2m relation setup
Fixes #5839
2021-05-24 14:17:23 -04:00
rijkvanzanten
374e6e5a7d Set size limit on v-error 2021-05-24 14:16:47 -04:00
rijkvanzanten
dee8160f18 Fix calendar layout dateTime timezone save issue
Fixes #5651
2021-05-24 14:07:36 -04:00
rijkvanzanten
3d3a508880 Expose on create / on update for m2o fields to users/roles 2021-05-24 13:49:10 -04:00
rijkvanzanten
bd6cab8989 Prevent duplicate field name on recursive m2m 2021-05-24 13:20:56 -04:00
Oreille
8590eec662 Fix navigation search (#5834)
* Fix navigation search

* Update use-navigation.ts

* Add changeset

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-24 12:24:14 -04:00
Rijk van Zanten
64f9d7efea New Crowdin updates (#5811)
* New translations en-US.yaml (German)

* New translations en-US.yaml (German)
2021-05-21 22:59:55 -04:00
rijkvanzanten
a40d75a184 Improve hitbox registration in v-menu
Fixes #5774
2021-05-21 22:13:02 -04:00
rijkvanzanten
b782eba859 Fix field name translations failing after sort
Fixes #5413
2021-05-21 21:50:42 -04:00
rijkvanzanten
550621479e Fix boolean field default interface name
Fixes #5643
2021-05-21 21:35:21 -04:00
rijkvanzanten
4beccb6a8a Don't allow contains on a UUID
Fixes #5802
2021-05-21 20:39:09 -04:00
rijkvanzanten
a5cba0dc7e Prevent unusable collections from being selected
Closes #5748
2021-05-21 19:26:52 -04:00
rijkvanzanten
33f4972deb Fix o2m reference in tree-view 2021-05-21 17:23:21 -04:00
rijkvanzanten
4277de0889 Set default value for advanced boolean filter to true
Fixes #5638
2021-05-21 17:23:21 -04:00
rijkvanzanten
158316f863 Allow multiple in filter-setup
Ref #5644
2021-05-21 15:00:50 -04:00
rijkvanzanten
973692d986 Fix relational pointer in m2o tree 2021-05-21 14:59:27 -04:00