Rijk van Zanten
711fb6353d
Fix permissions/validation default value for full ( #6801 )
...
Fixes #6743
2021-07-15 01:25:21 +02:00
Nicola Krumschmidt
2948cd9f24
Fix two small issues around field grouping ( #6732 )
...
* Fix note field showing up in group field setup
* Fix type issue in field detail
Technically this also changes behavior.
I changed it to what seemed to be the intended behavior before field
grouping was added.
2021-07-11 10:04:56 +02:00
Rijk van Zanten
8ec478dfd2
Fix auto-fill of directus_files in relational setup ( #6555 )
...
Fixes #6487
2021-06-28 19:25:27 -04:00
Rijk van Zanten
0a20b90691
Add support for field grouping ( #6553 )
...
* Update icon font, add group type to field setup
* Add group type, start on group-raw interface
* Add style for group
* Finish nested groups
* Finish field group setup
* Add type check
* Work on group raw group
* Various
* Fix support for nested groups
* Add group-divider interface
* Remove unused file
* Fix linter warning
2021-06-28 19:17:55 -04:00
Nicola Krumschmidt
051df415df
Fix extensions ( #6377 )
...
* Add support for npm extensions
* Allow extensions to import vue from the main app
* Bundle app extensions on server startup
* Fix return type of useLayoutState
* Add shared package
* Add extension-sdk package
* Add type declaration files to allow deep import of shared package
* Add extension loading to shared
* Refactor extension loading to use shared package
* Remove app bundle newline replacement
* Fix extension loading in development
* Rename extension entrypoints
* Update extension build instructions
* Remove vite auto-replacement workaround
* Update package-lock.json
* Remove newline from generated extension entrypoint
* Update package-lock.json
* Build shared package as cjs and esm
* Move useLayoutState composable to shared
* Reverse vite base env check
* Share useLayoutState composable through extension-sdk
* Update layout docs
* Update package versions
* Small cleanup
* Fix layout docs
* Fix imports
* Add nickrum to codeowners
* Fix typo
* Add 'em to vite config too
* Fix email
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-23 12:43:06 -04:00
Nicola Krumschmidt
bf7faf2899
Remove html tags from i18n strings ( #6463 )
...
This also removes an unnecessary html interpolation.
2021-06-23 09:56:27 -04:00
Rijk van Zanten
0766f6b608
Fix creating custom names for recommend collection fields on new collection setup drawer ( #6451 )
...
Fixes #6381
2021-06-22 19:22:05 -04:00
Rijk van Zanten
4943100977
Don't default to directus_files on existing relation ( #6447 )
...
Fixes #6395
2021-06-22 18:36:27 -04:00
Nicola Krumschmidt
ee95fa3dfd
Fix environment info in github issue templates ( #6288 )
2021-06-15 14:09:21 -04:00
Nicola Krumschmidt
4f9ae6591e
Add workaround for vite auto-replacement in docs ( #6284 )
2021-06-15 10:55:20 -04:00
rijkvanzanten
95f4b1c521
Fix console log usages in linter
2021-06-14 15:10:50 -04:00
Rijk van Zanten
8d0206a149
Fixes issue that would prevent the layout from refreshing on batch operations ( #6262 )
...
Fixes #6249
2021-06-14 14:08:24 -04:00
Nicola Krumschmidt
427b339e04
Fix proxying to the app from a subpath ( #6212 )
2021-06-11 11:23:27 -04:00
dependabot[bot]
cd2e24d82c
Bump vuedraggable from 4.0.1 to 4.0.3 ( #6197 )
...
* Bump vuedraggable from 4.0.1 to 4.0.3
Bumps [vuedraggable](https://github.com/SortableJS/Vue.Draggable ) from 4.0.1 to 4.0.3.
- [Release notes](https://github.com/SortableJS/Vue.Draggable/releases )
- [Commits](https://github.com/SortableJS/Vue.Draggable/commits )
---
updated-dependencies:
- dependency-name: vuedraggable
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update vite as well
* Update vite, fix imports
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-11 09:43:31 -04:00
Nicola Krumschmidt
f55a2072e1
Refactor bookmark query navigation ( #6170 )
...
* Revert back to using query params for bookmarks
Aka "this hurts so much"
* Fix collection navigation active state
* Add active and query props to v-button
Also unify active and activated state.
* Remove not needed exact prop from collections navigation
2021-06-10 15:11:01 -04:00
rijkvanzanten
1b319706b3
Remove unused import
2021-06-10 09:24:00 -04:00
Rijk van Zanten
e9a8850a58
Fix translations hint not linking to collection ( #6172 )
2021-06-09 19:10:11 -04:00
Rijk van Zanten
e20ad6c6b5
Use JSON editor for JSON field type default value ( #6171 )
...
Fixes #6088
2021-06-09 18:52:48 -04:00
rijkvanzanten
61f66eaf5d
Fix m2m relationship not showing current col/pk
2021-06-09 17:26:00 -04:00
Tien Tran
7ecbe49bb6
Support async preRegisterCheck for custom modules ( #6118 )
...
* Support async preRegisterCheck for custom modules
* Make loop a tad more expressive
* Update type to indicate potential promise return
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-09 14:16:17 -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
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
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
rijkvanzanten
4e02bdb94c
Fix reactivity of new-collection action buttons
2021-06-03 17:32:27 -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
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
rijkvanzanten
2660c39954
Fix reactivity on m2m relation setup
...
Fixes #5839
2021-05-24 14:17:23 -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
rijkvanzanten
550621479e
Fix boolean field default interface name
...
Fixes #5643
2021-05-21 21:35:21 -04:00
rijkvanzanten
a5cba0dc7e
Prevent unusable collections from being selected
...
Closes #5748
2021-05-21 19:26:52 -04:00
rijkvanzanten
da7b539adb
Fix new-collection relational field creation
2021-05-21 12:49:05 -04:00
Rijk van Zanten
9335372400
Foreign Key Constraints ✨ ( #5615 )
...
* Bump knex-schema-inspector
* Fix cli role name attr
* Update relation type
* Restructure relations
* Restructure relations table
* Update api type for relation record
* Fetch relations in new structure
* Update schema-inspector
* Use new relations schema structure in api
* Update relations GETters
* Add default value to one deselect
* Add create relationship on existing field
* Add updating existing relationship
* Add delete relations
* Add relations query resolver
* Add graphql mutations for relations
* Fix reading from wrong name
* Fix wrong method name
* No idea why this flip flops every install
* Update relation type
* Accept null in use-collection composable
* Use new relations structure in translations
* Use new relations structure in new-collection
* Start updating field detail store
* Renames for new relations structure
* Silently ignore passed collection/field in relation update
* Fix setting pk field in m2o relational setup
* Small tweaks in o2m setup
* Fix m2m setup
* Tweak m2o setup
* Fix m2a setup
* Allow null for related collection (m2a)
* Fix languages code name
* Fix migration default value
* Fix relational cleanup in collections/fields
* Fix transaction problem in field delete
* Fix inserting relational o2m items
* Don't execute updateByQuery on empty item set
Fixes #5710 , fixes #5070
* Show referential action input on m2o
* Finish language for m2o
* Show triggers config on o2m
* Delete items on one_deselect_item delete
* Fix naming, show relational trigger config on m2m
* Tweak language, add setup to m2a
* Fix linter warnings
* Add trigger setup for translations
* fix Edit non-schema relationship issue
* Sync existing on_delete triggers in o2m setup
* Add migration to setup foreign key constraints
* Update illegal FK values before setting constraint
* Fix MySQL unsigned vs not-unsigned in FK creation
* Use pretty names for labels in relational triggers
* Prefix auto-junction when system table
Fixes #5493
* Add system foreign key triggers
Fixes #5749
* Update docs
2021-05-19 12:29:16 -04:00
rijkvanzanten
92f0abfbfc
Start on email templates docs
...
Closes #5736
2021-05-17 18:15:42 -04:00
rijkvanzanten
a0512f8b5e
Sanitize all user inputted md
2021-05-14 16:04:36 -04:00
ernst86913
c4fc0ea92b
Move export to layouts ( #5557 )
...
* Export Fix
* Remove unused fields
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-05-14 16:02:05 +00:00
José Varela
9ecbeee488
app: fix export with filters ( #5653 )
...
When filters are applied and flag is checked,
should export taking into account the active filters
2021-05-13 16:10:53 -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
rijkvanzanten
2ff66cfecd
Make sure active collection is in overflow view of the menu
2021-05-07 14:18:50 -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
23f647ce22
Prevent saving permissions during save
...
Fixes #5454
2021-05-04 19:14:34 -04:00
Rijk van Zanten
eda19a8eb2
Fix users not adhering to field permissions ( #5467 )
...
* Update package once again
* Format remaining md files
* Fix permissions not disabling fields on users
Fixes #5411
2021-05-04 18:56:41 -04:00
Rijk van Zanten
0df96b3d8a
Refresh permissions more eagerly in settings ( #5404 )
...
* Update package-lock (again?)
* Reload permissions close too
Fixes #5307
2021-04-30 18:56:21 -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
fb31653ade
Fix remaining stylelint problems
2021-04-29 16:08:14 -04:00
rijkvanzanten
801e868554
Fix remaining eslint errors
...
h/t @paescuj
2021-04-29 15:55:12 -04:00