Nicola Krumschmidt
9ee6e97cd9
Move useLayout composable to shared and expose it through extensions-sdk ( #10850 )
...
* Move useLayout composable to shared
* Expose useLayout through extensions-sdk
2022-01-05 15:38:48 -05:00
José Varela
eb68f85e54
Support 'selectionMode' on tabular and cards ( #8010 )
...
* showSelect as 'none', 'one' or 'multiple' on table
* showSelect on cards
* showSelect and fix on calendar
* showSelect and fix on map
* fix layout selection prop type
* fix tabular row click on select mode
* remove unused import
* minor strict equality changes
* hide checkbox for activity table
* Update app/src/modules/notifications/routes/collection.vue
Co-authored-by: ian <licitdev@gmail.com >
* Make preset item reactive
* Add comment clarifying ref wrapper
* Fix type signature of layout props
Co-authored-by: Azri Kahar <azrikahar@outlook.com >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: ian <licitdev@gmail.com >
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-12-02 16:02:13 -05:00
Jay Cammarano
25375cc481
Add notifications system and support user mentions in comments ( #9861 )
...
* v-menu de/activated onKeyDown. No List yet.
* v-list
* add user suggestion
* uuids replaced
* user-popover working
* avatars flex row with usernames in suggestions
* added space to end of uuid insert
* autofocus + move caret to end of last insert
* removed unnecessary setTimeout()
* fixed filter 500 with ids
* better fix
* New translations en-US.yaml (French) (#9907 )
* New translations en-US.yaml (French) (#9912 )
* New translations en-US.yaml (French) (#9916 )
* New translations en-US.yaml (Russian) (#9918 )
* New translations en-US.yaml (Swedish) (#9920 )
* Email updates (#9921 )
* add from name for emails
* updatd email template style
* reset password email copy
* updated logo to newest version
* update invite email copy
* decouple field template logic
* push up styling
* Start on new v-template-input
* Add notifications API endpoints
Squashed commit of the following:
commit 9d86721ef795d03bc55693c0f99bde8e269d60e9
Merge: b4458c19f 34131d06e
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Mon Nov 22 09:27:43 2021 -0500
Merge branch 'mentions' into mentions-api
commit b4458c19f7c54f18fa415fc04c63642c2f5a17b0
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Nov 18 18:34:04 2021 -0500
Remove unused import
commit e6a9d36bbfdf95cb18d29336da61ecb14b677934
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Nov 18 18:28:31 2021 -0500
Extract user mentions from comments
commit b3e571a2daa287e1740a050096913662a57e9861
Merge: c93b833d2 af2a6dd7f
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Nov 18 17:39:52 2021 -0500
Merge branch 'mentions' into mentions-api
commit c93b833d2b848e306c434b370d4e4e11967e85d0
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Nov 18 17:35:45 2021 -0500
Send emails w/ parsed MD
commit 64bbd6596f20a07028d2387d60e33dfe4f91c032
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Nov 18 16:18:16 2021 -0500
Add notifications endpoint + permissions
commit fba55c02dc9c303a38b1b958350684cccd3dd82c
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Nov 18 15:33:28 2021 -0500
Add system data for notifications
* push
* Make v-template-input work
* Add the two-way binding
* submit button posting, not clearing text area
* comment text area clearing on submit
* Replace insertion correctly
* Added scope support to LDAP group and user search (#9529 )
* Added scope support LDAP group and user search
* Fixed linter screwing up my markdown
* Update docs/configuration/config-options.md
* Always return correct DN for user with sub scope
* Fix indeterminate meta and schema property in advanded field creation (#9924 )
* Fix impossibility to save M2M (alterations not triggered) (#9992 )
* Fix alterations refactor
* fix roles aggregate query (#9994 )
* Update iis.md (#9998 )
added the IIS URL Rewrite module as a requirement
* New translations en-US.yaml (English, United Kingdom) (#10001 )
* Fix LDAP race condition (#9993 )
* Fix input ui
* Revert changes to v-field-template
* Update mentions permissions
* Fix linter warnings
* Optimize sending flow
* Revert "Rename activity->notifications module (#9446 )"
This reverts commit 428e5d4ea9 .
* Add notifications drawer
* Update migrations
* Improve constraints
* Add email notifications toggle on users
* Add docs, fix graphql support
* Move caret-pos to devdeps
* Remove unused new triggerKeyPressed system
* Remove unused use-caret composable
Co-authored-by: Nitwel <nitwel@arcor.de >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
Co-authored-by: Ben Haynes <ben@rngr.org >
Co-authored-by: Aiden Foxx <aiden.foxx@sbab.se >
Co-authored-by: Oreille <33065839+Oreilles@users.noreply.github.com >
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: Paul Boudewijn <paul@helderinternet.nl >
2021-11-24 16:11:26 -05:00
Rijk van Zanten
428e5d4ea9
Rename activity->notifications module ( #9446 )
2021-11-03 19:09:26 -04:00
Rijk van Zanten
caa053a467
Rename Collections Modules to Content Module ( #9441 )
...
* Rename collections->content module
* Replace collection name
* Replace some loose ends
2021-11-03 18:34:55 -04:00
Rijk van Zanten
8f00e37daf
Add improved collection organization setup ( #8623 )
...
* Add migrations, start on service
* Dont track TODO files
* Update collection types, add collection type
* Allow drag and drop sorting of collections
* Add tooltip
* Add grouping + collapsed state
* Fix nested closed state
* Tweak active drag styling
* Remove collapsed state
* Add folder creation/editing
* Render collections as nested tree in nav
* Fix open active state
* Add dense when collection count > 5
* Add visible toggle
* Add show-hidden toggle
* Fix css specificity
* Add support for query in v-list-group
* Add missing cascade
* Remove collapsed state
* Finish three-way toggle
* Add custom lock icon
* Fix icon size in non-dense
* Redirect to first & open tree on load
* Dont make prop required
* Fix search
* Only apply archive filter when enabled in settings
* Add archive view
* Add translations
* Hide organization fields
* Show system collections
2021-10-15 21:19:00 +00:00
Pascal Jufer
e3bfe69de3
Translation fixes ( #8695 )
...
* Implement translation for activity items
Fixes #8415
Also fixes issue with "Open item" link for system collection
* Fix 'Create New' btn translation in list interface
Fixes #8427
Default values needs to return a function to be dynamic
Same for "Empty item" translation
Also use field.name instead of field.field value for field title
* Fix translation of default values in boolean & dropdown interfaces
* Translate note field of system collections in edit mode
* Translate remaining "hard-coded" values
* Add dedicated translation for open folder
* Update app/src/interfaces/list/list.vue
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
* Use translate-object-values and check if collection starts with
'directus_'
* Use already existing translation keys for activity items
As discussed
* Translate whole data object if system collection
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-10-14 11:29:48 -04:00
Nicola Krumschmidt
9913922edc
Fix activity layout filter ( #8664 )
2021-10-08 13:17:48 -04:00
Rijk van Zanten
f64a5bef7e
Add new advanced filters experience ( #8570 )
...
* Remove advanced filter sidebar detail
So long, and thanks for all the fish.
* Remove filter conversion logic
* Start replacing/removing old skool filters
* Add inline mode for usages in search bar
* Make filter work in header bar
* Emit empty string as null in filter
* Move shared filter types to shared
* Upgrade use-items
* Fix manual sort on tabular
* Cleanup styling in search bar usage
* Tweak styling
* Fix filtering issues
* Update cards
* Remove activeFilterCount from tabular
* Update maps to work with new filters
* Update calendar to new filter/sort structure
* Fix activity module nav/search
* Fix no-results message
* Update file library filtering
* Finalize user search
* Allow filtering in drawer-collection
* Handle cancelled responses semi-gracefully
* Add loading start state timeout
* Replace sort type in api
* Last commit before redoing a bunch
* Finish new visual style
* Remove unused rounded prop from v-menu
* Tweak sizing
* Enough size tweaking for now
* Count all filter operators instead of top
* Fix archive casting
* Fix api build
* Add merge filters util
* Split filter in user vs system
* Fix export sidebar detail
* Show field label on permissions configuration
* Add migration for filter/sort
* Use filters in insights
2021-10-07 18:06:03 -04:00
ian
1b92d711d4
Refactor action value from authenticate to login in directus_activity ( #8397 )
...
* Refactor action value from authenticate to login in directus_activity
* Fix incorrect where clause in migration
* Add missing authenticate uses
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-09-28 20:59:27 +00:00
Nicola Krumschmidt
f99b97720e
Rework layout extension component management ( #7489 )
...
* Rework layout extension component management
* Move cards layout to new system
* Move calendar layout to new system
* Move map layout to new system
* Use new useLayout everywhere
* Remove useLayoutState composable
2021-08-31 10:55:46 -04:00
Nicola Krumschmidt
d64ca14348
Explicitly set catch parameters to any type ( #7654 )
...
This fixes not being able to build the repo due to type issues
introduced by the Typescript 4.4 option "useUnknownInCatchVariables",
which is enabled by default in strict mode.
2021-08-27 10:33:30 -04:00
Rijk van Zanten
d94548992e
Remove illegal words from translations root ( #7045 )
...
Fixes #7033
2021-07-28 18:55:38 +02:00
Rijk van Zanten
92e1ee77bd
Add support for Conditional Fields ( #6864 )
...
* Add conditions field to directus_fields
* Add conditions configuration
* Apply conditional overrides
* Handle conditions in nested groups
* Fix reverse mutating conditions
* Start on filter setup interface
* Move field types/constants to shared
* [WIP] Updated client side filter validation
* Support logical operators in client validation step
* Use new validation util in conditions check
* Add nesting in filter seutp
* Add filter rule setup configurator
* Fixes that should've been done in the merge
* Strip out filter-settings interface
TBD in a new PR
* Move browser to index
2021-07-26 18:02:24 -04:00
Nicola Krumschmidt
32972f4c01
Move define extension functions to shared and expose them through extension-sdk ( #6880 )
...
* Move defineInterface to shared
* Split up utils into node and browser utils
* Move defineDisplay to shared
* Move defineLayout to shared
* Move defineModule to shared
* Add defineEndpoint and defineHook to define-extensions
* Expose define extension functions through extension-sdk
* Make route type of defineEndpoint more specific
* Simplify define extension functions
* Deduplicate types and local types definition
* Do not allow functional components in display handler
* Make interface options nullable
* Deduplicate extension types definition
* Fix utils/node exports
2021-07-22 17:02:29 +02:00
Rijk van Zanten
d38681c2ee
Add v-md directive ( #6835 )
...
* Use stricter Vue eslint setting
* Implement v-md directive
Replaces old uses of v-html + md util
* Fix typo
2021-07-15 18:01:30 +00:00
Rijk van Zanten
5f7dce54e2
Use stricter Vue eslint setting ( #6833 )
2021-07-15 13:49:59 -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
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
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
a0512f8b5e
Sanitize all user inputted md
2021-05-14 16:04:36 -04:00
rijkvanzanten
801e868554
Fix remaining eslint errors
...
h/t @paescuj
2021-04-29 15:55:12 -04:00
José Varela
acc145006c
App: encode primary key ( #5143 )
...
* app: encode primary key
Since primary keys could be manually entered strings,
we should encode those in order to prevent accessing
inexistent routes.
E.g.
Document with primary key: 'clients/John Doe'
* fixup! app: encode primary key Since primary keys could be manually entered strings, we should encode those in order to prevent accessing inexistent routes. E.g. Document with primary key: 'clients/John Doe'
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-04-19 11:35:01 -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
e1b353b38b
fix translation of module names ( #4057 )
2021-02-15 11:32:36 -05:00
Rijk van Zanten
81fc8443df
Don't wrap text in nav ( #4035 )
...
* Move v-list-item-text to v-text-overflow, use in tables
* Fix type issue
2021-02-12 16:39:17 -05:00
Rijk van Zanten
1064d10296
Fix file imports now that vetur supports monorepos ( #4016 )
2021-02-11 13:08:59 -05:00
rijkvanzanten
dbfc594857
Fix activity sidebar filters
...
Fixes #3768
2021-01-28 17:39:28 -05:00
rijkvanzanten
4130337f7a
Merge branch 'main' into error-handling
2020-11-05 16:16:44 -05:00
rijkvanzanten
3a54e396b8
Persist activity navigation filters
...
Fixes #736
2020-11-04 18:55:02 -05:00
Nitwel
ae50632874
clean up imports
2020-10-24 11:15:37 +02:00
Nitwel
f81771ef1c
clean up error handling
2020-10-24 10:48:14 +02:00
Nitwel
2dd509e48a
add proper error handling
2020-10-22 17:26:37 +02:00
rijkvanzanten
6c0afa9651
Add userName util function to render user's name
2020-10-19 13:31:44 -04:00
e01
552fbff5ed
Small UX touches
2020-10-18 20:11:32 +03:00
rijkvanzanten
8eebc6e950
Fix permissions drawer
2020-10-16 15:15:13 -04:00
rijkvanzanten
2b1395b5fc
Update drawer actions
2020-10-16 13:46:52 -04:00
rijkvanzanten
c601b790c7
Add cancel button
2020-10-16 13:21:28 -04:00
rijkvanzanten
6d76cf6737
Rename modal to drawer
2020-10-16 12:14:31 -04:00
rijkvanzanten
e8bee549a2
Rename drawer to sidebar
2020-10-16 11:53:20 -04:00
rijkvanzanten
120ef2f05a
Rename close to esc
2020-10-15 18:47:06 -04:00
rijkvanzanten
9ca6996155
Merge branch 'main' into esc-to-close
2020-10-15 18:38:39 -04:00
rijkvanzanten
047d2b6d97
Rename help translation keys
2020-10-14 16:07:50 -04:00
rijkvanzanten
6fd78b90ee
Replace browse/detail naming with collection/item
2020-10-14 16:05:50 -04:00
Nitwel
c19ac51ffa
add 'close' event to v-dialog and v-modal
2020-10-09 14:55:58 +02:00
Nitwel
de55e1a18e
Update props of v-list
2020-10-05 18:13:56 +02:00
rijkvanzanten
bf76244ba7
Various system schema name changes
...
Fixes #482
2020-10-02 17:43:58 -04:00
rijkvanzanten
d0e897d735
Rename view -> layout in db
2020-09-08 11:22:18 -04:00
rijkvanzanten
6d768285b2
Finish reset page preferences button on tabular
2020-09-03 10:07:43 -04:00
rijkvanzanten
533c44c6c7
Flatten module structure
2020-08-31 16:10:31 -04:00