Joel Bohorquez
4e042c6418
Add support for custom claims before issuing a JWT. ( #7906 )
...
* add event auth.jwt.before
* document event auth.jwt.before
* fix event auth.jwt.before
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-09-17 21:25:46 -04:00
Chris Bartley
6148259beb
Fixed readByQuery's sort parameter in custom API endpoint example (see https://github.com/directus/directus/discussions/7867 ) ( #8088 )
2021-09-16 16:19:20 -04:00
Azri Kahar
dd319793a5
Fix sidebar glitch on resize ( #7903 )
...
* fix sidebar glitch on resize
* move scroll-padding-top property to original line
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-09-15 17:07:58 -04:00
Jay Cammarano
e243a33cd9
Add new translations interface ( #7727 )
...
* added v-select and button to start sidebyside view
* v-chip next to field name on translations
* v-chip color changed
* add baisc logic
* finish inner workings of translation interface
* finish design
* clean up code
* remove unused prop
* small tweaks
* finish translation interface
* fix lang icon
* tweak styling
* Use v-model over separate bind+event
* Tweak margin definition
* Add class to field-name to prevent span confusion
* Rename classes to match var names
* Add limit -1, remove commented code
* Tweak toggle tooltip wording
* Add hover state to v-icons
* Use self-closing elements
* Remove unused imports
* Rename newVal->sideBySideEnabled
* Use filter + length instead of reducer
* Fix param typo
* Move dividers into main translations component
* Base initial language on fetched languages array
* Move styling to language-select, simplify component
* Don't rely on deep styling
* Tweak interactive state of chip
* Use existing form-grid for side-by-side layoutin
* Only fetch preview values when we dont have them yet
* Improve stability of edited status
* Fix hover state of v-icon
Co-authored-by: Nitwel <nitwel@arcor.de >
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-09-15 13:03:08 -04:00
cstork
1f94542c2c
Fix URL ( #8036 )
2021-09-14 18:01:02 -04:00
Nicola Krumschmidt
2f319d4f24
Fix start script ( #8024 )
2021-09-14 12:00:26 -04:00
cstork
5e8ef97e6d
Update cli.md ( #8023 )
2021-09-14 09:47:32 -04:00
Philipp Gegenfurtner
55009f5413
update actions for file event based on https://github.com/directus/directus/pull/5334 ( #7915 )
2021-09-08 12:08:04 -04:00
Sam Milledge
7186c4e381
Allow custom CLI commands to be added by extensions ( #7675 )
...
* Fix typescript errors in shared package
* Hooks for adding custom CLI commands
* Add CLI hooks to documentation
2021-09-07 16:18:16 -04:00
Sam Milledge
3b7be6282b
Add ability to customise database errors ( #7833 )
...
* Add hook for database errors
* Handle multiple returned values
* Add db error hook dosc
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-09-07 16:00:26 -04:00
Azri Kahar
92ff994b38
fix minor typo in api-hooks.md ( #7821 )
2021-09-03 18:26:55 -04:00
Harun Kilic
9200b88db4
Update modules.md ( #7795 )
2021-09-03 12:36:16 -04:00
Dieter Luypaert
da6f492a44
Expose logger through ExtensionContext ( #7777 )
...
Fixes #7737 .
2021-09-02 13:46:51 -04:00
Nicola Krumschmidt
8b6cee4c16
Update layout docs to new layouts system ( #7750 )
2021-09-01 09:21:21 -04:00
Nicola Krumschmidt
6286edf6a9
Remove /custom subpath for endpoints and add a way to customize the endpoint subpath ( #7695 )
...
* Remove /custom subpath for endpoints
* Add a way to customize the endpoint subpath
2021-08-30 10:09:12 -04:00
Nicola Krumschmidt
d2ca0d094c
Rename extension-sdk to extensions-sdk ( #7282 )
...
While it is never nice to rename an already published package,
this allows us to reserve the "@directus/extension-" prefix for official extensions.
2021-08-27 13:48:19 -04:00
Lukas Schätzle
2f18f2750c
Add installation guide for plesk/shared hosting ( #7586 )
...
* Add installation guide for plesk/shared hosting
* Add note on ports and passenger
* Fix wording
* Fix asset references
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-08-26 17:46:36 -04:00
Nicola Krumschmidt
ba43e3139e
Add create-directus-extension package ( #7329 )
...
* Make spinner success message bold in extension cli
* Expose extension-sdk cli functions
* Add create-directus-extension package
* Bump version
* Fix type fun times
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-08-26 17:32:27 -04:00
Tanc
2ad07b27b4
Add docker compose update instructions ( #7479 )
...
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-08-18 14:16:36 -04:00
Jay Cammarano
0b17fdcf81
Warn on Missing Migrations ( #6580 )
...
* added warn when migrations have not all been run
* fixed imports
* added better error handling
* Update api/src/database/index.ts
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
* migration is its own file
* added custom migrations path
* Handle non-existing custom migrations folder
Co-authored-by: jaycammarano <jaycammarano@gmail.com >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-08-02 15:52:10 -04:00
Markus
0fc1453800
Fix link to conditions and adapt text ( #7108 )
2021-07-31 01:39:01 +00:00
Rijk van Zanten
5f39b64fcf
Add note on conditional fields ( #7106 )
...
Fixes #7073
2021-07-30 15:44:14 -04:00
Nicola Krumschmidt
e05470ecc7
Add note regarding required directus:extension field to extension docs ( #7099 )
...
Fixes #7072
2021-07-30 12:00:02 -04:00
Rijk van Zanten
273ccb4927
Add note on hook params ( #7077 )
...
Fixes #7064
2021-07-29 17:58:00 +02:00
Pascal Jufer
fdd5c261eb
Add PUBLIC_URL example in docker-compose guide ( #6962 )
2021-07-26 10:29:59 -04:00
Adrian Dimitrov
efe7b076a3
Add default-folder option ( #3209 )
...
* Allow set folder for imported files
* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.
* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).
* Add custom folder interface; use props for interfaces file/files/image in upload component
* Allow set folder for imported files
* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.
* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).
* Add custom folder interface; use props for interfaces file/files/image in upload component
* Update after rebase
* Add storage_default_folder setting, use folder when deploy file
* Fix files options; Add default label option for folder interface.
* Fix set folder for file
* UX
* Add migration for column, undo seed change
* Update nomanclature
* Make sure file library always submits folder, cleanup setting retrieval
* Use indexName on down migrate
* Fix import default folder, rename customPresets->folderPreset
* Rename interface import
* Use undefined as default folder
* Remove deprecated lang file
* Fix display of folder interface, treat null as value
* Move shared composable
* Remove unused ref
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-07-21 17:29:21 -04:00
Pascal Jufer
667db994b1
Add note about change in naming of Docker tags ( #6876 )
...
* https://github.com/directus/directus/pull/6759#issuecomment-881462198
* https://github.com/directus/directus/issues/6859
2021-07-19 09:13:44 -04:00
rijkvanzanten
6d7dc17852
Remove oracle from optionaldependencies
2021-07-14 18:18:16 -04:00
Pascal Jufer
3bc5f7ff4f
Add note about sensitive values in Docker guide ( #6784 )
2021-07-14 10:53:55 -04:00
Thijs-Jan
18ef097402
Fix item.read hook not firing for readByQuery ( #6645 )
...
* Move read hook to readByQuery method
* Return query to items.read hook, update docs accordingly
2021-07-07 12:13:38 +02:00
Nicola Krumschmidt
31c74e01f2
Update the required Node version to 12.20.0 ( #6578 )
2021-06-30 09:16:45 -04:00
Nicola Krumschmidt
7f60fb0fc1
Add directus-extension CLI to extension-sdk ( #6548 )
...
* Remove return from api cli entrypoint
* Add directus-extension cli to extension-sdk
The initial version only implements the "build" command.
Executing "build" in the root of an extension package bundles the
extension to a single distributable and loadable entrypoint.
* Update extension docs to use directus-extension build
2021-06-28 15:56:01 -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
Pascal Jufer
4a2ea9a03e
Add "require('axios')" in API hooks examples ( #6360 )
...
* Docs: Add "require('axios')" in API hooks examples
* Move "require('axios')" to top
2021-06-18 09:28:12 -04:00
Thijs-Jan
e4b9bf06a0
Add support for read hooks on items ( #6341 )
...
* Add emitter on item read
* Add performance warning to docs
* Make result instead of query the payload
2021-06-17 10:56:52 -04:00
Nicola Krumschmidt
4f9ae6591e
Add workaround for vite auto-replacement in docs ( #6284 )
2021-06-15 10:55:20 -04:00
Rijk van Zanten
9f2feee602
Temp remove process env usage in docs ( #6261 )
2021-06-14 14:04:25 -04:00
Nicola Krumschmidt
4fc5ba6259
Update the app extension docs to work with Vue 3 ( #6232 )
2021-06-14 10:40:33 -04:00
Juan Carlos Blanco Delgado
5826fd6110
Adding an example to cron hook ( #6188 )
...
* Adding an example to cron hook
* Update docs/guides/api-hooks.md
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-06-10 16:16:33 -04:00
Pascal Jufer
a2a35aaab5
Add support for _FILE environment variables ( #6101 )
...
* Add support for _FILE environment variables
* Enhance processing of _FILE env vars
* Same processing as with other env vars (do not simply treat as string)
- tested successfully
* Warn if both variables are set (EXAMPLE and EXAMPLE_FILE)
* Add comments to make it easier to understand the code
* Set newKey only after file read was successful
* Don't convert value > MAX_SAFE_INTEGER to number
Thanks to @skizer!
As stated by @skizer (from #6119 ):
Altho it seems that we do have a numerical value
it can happen that its outside of Number.MAX_SAFE_INTEGER
thus resulting in a change of the original intended value
e.g oauth -> discord -> client_id
* Fix recursive logger-env import
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-09 14:08:26 -04:00
Nacho García
284d9789c0
Add breaking API changes ( #6150 )
...
Add filter operators change.
2021-06-09 09:06:26 -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
Ben Haynes
32737ba884
Update api-hooks.md ( #6135 )
2021-06-08 10:14:00 -04:00
Rijk van Zanten
1e4850f53a
Add support for CRON hooks (interval) ( #6116 )
...
* Install node-cron
* Support CRON hooks
* Document interval hook
* Fix package-lokc
2021-06-07 16:57:32 -04:00
Ben Haynes
a08ff52349
ref: #6096 ( #6110 )
2021-06-07 09:47:04 -04:00
rijkvanzanten
fe659ec32a
Add downgrading notes
...
Closes #6051
2021-06-03 21:09:13 -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
Rijk van Zanten
f6741eae6b
Fix wrong reference to not-yet-existing /backup endpoint ( #6033 )
2021-06-03 12:03:24 -04:00
nichols-green
f3d1561005
Added document for running directus on iis ( #6006 )
...
* Added document for running directus on iis
* Update iis.md
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-06-02 13:12:02 -04:00
Rijk van Zanten
477c36d867
Update docker.md
2021-05-19 17:22:58 -04:00