rijkvanzanten
95f4b1c521
Fix console log usages in linter
2021-06-14 15:10:50 -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
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
rijkvanzanten
550621479e
Fix boolean field default interface name
...
Fixes #5643
2021-05-21 21:35:21 -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
5bdb9548ce
Add type annotation to md util
2021-05-17 10:17:20 -04:00
rijkvanzanten
a0512f8b5e
Sanitize all user inputted md
2021-05-14 16:04:36 -04:00
José Varela
1a60d0036f
app: fix sort creating items ( #5484 )
...
* app: fix sort creating items
Problem: When sorting, the relations were assigned to
another fresh created items on the related collection
Why: It was missing the primary key on nested relation.
When the primary key is missing, new item is created.
How to fix: Iterate over all fields to request and when nested field
is found, append the nested primary key.
* Make function name more descriptive, add comment, fix linter warning
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-05-14 12:51:09 -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
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
010eabad27
Format remaining md files
2021-05-04 18:52:08 -04:00
Rijk van Zanten
d1de1f0d58
Add calendar layout ( #2893 )
...
* Setup layout boilerplate
* Install calendar
* Render events based on date filter
* Style calendar toolbar
* Add layout options
* Start adding timeGrid, add todo list
* Persist viewInfo to preset
* Add dnd
* Fix linter warnings
2021-05-04 16:51:35 -04: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
rijkvanzanten
26850b08d3
Make unique error nicer on duplicate email invite
...
Fixes #5157
2021-04-23 19:06:41 -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
Rijk van Zanten
bcac4b80c2
Fix perf regression in translations ( #5041 )
...
* Only translate extensions on language load
* Make table-row functional
2021-04-13 17:00:22 -04:00
Nitwel
c7f2b05c00
Fix drawer item title not showing data ( #4940 )
...
* fix drawer item title not showing data
* load template items relational
* Only render preview on first load
* Fix type issue
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-04-09 18:05:41 -04:00
Nitwel
93f8b7720c
Fix translations not working on displays, modules... ( #4734 )
...
* generalyze extensions
* replace vue-i18n tranlslations
* replace vue-i18n tranlslations
* add missing commas
* replace translations recursive
* restructure translate
* remove unused i18n
* remove unused i18n
* remove unused i18n
* Remove i18n context in define
* Rename translate util file
* Fix type errors
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-04-08 16:36:55 -04:00
Nitwel
6f9b2cafcd
Add page titles ( #4775 )
...
* restructure template rendering
* add useTitle composable
* Split up render-string-template from getFieldsFromTemplate
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-03-31 10:53:57 -04:00
Nitwel
07aff68532
add translation type to related collection ( #4722 )
2021-03-29 10:16:05 -04:00
Ngai Kam Wing
e9f18975d8
Reduced chunk vendor build size ( Parsed size from 3.48MB to 1.19MB ) ( #4645 )
...
Split out wysiwyg and markdown code into a separate chunk.
2021-03-24 12:09:11 -04:00
Ben Haynes
7599e0a7aa
primary color and various design updates
2021-03-04 18:50:47 -05:00
Dominic Marcelino
fe0d81c86a
Feature/markdown shortcuts ( #4314 )
...
* add shortcuts to markdown editor
* Update Tooltips
* remove comment
* Use meta in shortcut translation
* Correct spacing in heading dropdown
* Scope shortcuts to current interface instance
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-02-26 16:18:37 -05:00
rijkvanzanten
ce9a6c8cf6
Fix update permission check
2021-02-24 13:28:16 -05:00
rijkvanzanten
fab082b63f
Fix revisions drawer detail when number of revisions > 100
...
Fixes #4187
2021-02-23 14:38:38 -05:00
YannickMol
cf261f4eb2
Show related values for M2A ( #4196 )
2021-02-22 11:24:05 -05:00
Rijk van Zanten
df22a58c6a
Update in-app docs ( #3989 )
...
* Fix root redirect
* Fix html in headings
* Add graphql syntax mode
* Install markdown-it + plugins
* Fix file copying on mac
* Replace md rendering engine
* Fix wrong links in guides
* Scroll to top on every route change
* Update in-app links
* Fix home redirect
* Fix deep-linking paths
* Add to reference
* Fix nested group scoping
* Fix open path reference
2021-02-09 18:31:25 -05:00
Rijk van Zanten
f3cb3ddc2b
Fix query param handling in file interface ( #3977 )
...
Fixes #3944
2021-02-08 17:44:36 -05:00
rijkvanzanten
d910c361a5
Render file type nicer in file library
2021-01-21 14:49:22 -05:00
rijkvanzanten
4ea6aa1f7c
Add image picker to md interface
2021-01-19 12:11:16 -05:00
rijkvanzanten
05f0bc967e
Turn hash into type
...
Fixes #3542
2021-01-12 17:08:19 -05:00
Nicola Krumschmidt
550927e04b
Update readme of filters-to-query util
2020-12-01 22:21:35 +01:00
rijkvanzanten
21f430312c
Fix preview situation
2020-11-18 11:44:59 -05:00
rijkvanzanten
0c72ee6b1d
Fix deep filters in app, fix current-user/current-role in filters
2020-11-12 14:12:05 -05:00
rijkvanzanten
528112314d
Remove outdated tests, fix imports
2020-11-09 12:29:01 -05:00
rijkvanzanten
dd803a915b
Fix archive button permissions check
...
Fixes #900
2020-11-06 14:57:44 -05:00
rijkvanzanten
94c03b4d4a
Use new error handler where we don't handle errors better
2020-11-05 17:24:27 -05:00
rijkvanzanten
44f926e911
Update/fix unexpected error dialog
2020-11-05 17:02:01 -05:00
rijkvanzanten
e416fbabff
Add unexpected error util
2020-11-05 16:39:59 -05:00
rijkvanzanten
207d347b80
Add notify function
2020-11-05 16:34:32 -05:00
rijkvanzanten
4130337f7a
Merge branch 'main' into error-handling
2020-11-05 16:16:44 -05:00
rijkvanzanten
39144a83a1
Override default value with preset in app
...
Fixes #825
2020-11-04 12:22:20 -05:00
rijkvanzanten
2f3e406022
Fix too strict update permission check
...
Fixes #817
2020-11-04 11:02:38 -05:00
Nicola Krumschmidt
c473918c29
Use _and operator when converting filters to query
...
This fixes using multiple filters with the same field.
2020-11-04 12:21:56 +01:00
rijkvanzanten
dca7df6fb2
Fix v-field-select dropdown
...
Ref #852
2020-11-03 15:16:07 -05:00
rijkvanzanten
6e4159e47b
Check for current user/role in app side permissions check
...
Fixes #817
2020-11-02 16:56:45 -05:00
rijkvanzanten
4e54d9fe1e
Improve consistency
2020-10-26 10:33:11 +01:00
Nitwel
c8653589b1
Merge branch 'main' into error-handling
2020-10-24 11:21:33 +02:00
Nitwel
f81771ef1c
clean up error handling
2020-10-24 10:48:14 +02:00