* `list-m2m` make layout optional
* Silence a few more warnings
* Properly type v-button `to`
* Make search prop in field-detail-simple not required
* Set undefined as default value for text in v-text-overflow
* Change initial search value to undefined in field-detail
* Rework field-detail and field-detail-simple to use script setup
* One less ctrl+z
* Remove unnecessary new line
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* added select all option
* added default value
* removed space for linter
* refactoring: combined emits
* removed unnecessary prefix
* added option to remove all at once
* linter
* Drop support for deselect
* I HAVE OPINIONS
* Revert addition of remove event
* Some more opinions
* Refactor other uses of v-field-list
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* Fix paths of imports
* Process not-found.vue as ts
To prevent the following error from 'vue-tsc':
error TS6504: File '/Users/pascal/Development/directus/app/src/modules/insights/routes/not-found.vue.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
Note: We could also enable 'allowJS' but since this is the only js file
this seems to be a more fitting fix
* Drop hljs language definition for GraphQL (now in core)
* Enhance bug reporting from within the app
* Simplify simplify simplify
---------
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* Step 1
* Step 2
* False sense of confidence
* Couple more before dinner
* Update schema package
* Update format-title
* Upgrade specs file
* Close
* Replace ts-node-dev with tsx, and various others
* Replace lodash with lodash-es
* Add lodash-es types
* Update knex import
* More fun is had
* FSE
* Consolidate repos
* Various tweaks and fixes
* Fix specs
* Remove dependency on knex-schema-inspector
* Fix wrong imports of inspector
* Move shared exceptions to new package
* Move constants to separate module
* Move types to new types package
* Use directus/types
* I believe this is no longer needed
* [WIP] Start moving utils to esm
* ESMify Shared
* Move shared utils to @directus/utils
* Use @directus/utils instead of @directus/shared/utils
* It runs!
* Use correct schemaoverview type
* Fix imports
* Fix the thing
* Start on new update-checker lib
* Use new update-check package
* Swap out directus/shared in app
* Pushing through the last bits now
* Dangerously make extensions SDK ESM
* Use @directus/types in tests
* Copy util function to test
* Fix linter config
* Add missing import
* Hot takes
* Fix build
* Curse these default exports
* No tests in constants
* Add tests
* Remove tests from types
* Add tests for exceptions
* Fix test
* Fix app tests
* Fix import in test
* Fix various tests
* Fix specs export
* Some more tests
* Remove broken integration tests
These were broken beyond repair.. They were also written before we really knew what we we're doing with tests, so I think it's better to say goodbye and start over with these
* Regenerate lockfile
* Fix imports from merge
* I create my own problems
* Make sharp play nice
* Add vitest config
* Install missing blackbox dep
* Consts shouldn't be in types
tsk tsk tsk tsk
* Fix type/const usage in extensions-sdk
* cursed.default
* Reduce circular deps
* Fix circular dep in items service
* vvv
* Trigger testing for all vendors
* Add workaround for rollup
* Prepend the file protocol for the ESM loader to be compatible with Windows
"WARN: Only URLs with a scheme in: file and data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'"
* Fix postgres
* Schema package updates
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
* Resolve cjs/mjs extensions
* Clean-up eslint config
* fixed extension concatination
* using string interpolation for consistency
* Revert MySQL optimisation
* Revert testing for all vendors
* Replace tsx with esbuild-kit/esm-loader
Is a bit faster and we can rely on the built-in `watch` and `inspect`
functionalities of Node.js
Note: The possibility to watch other files (.env in our case) might be
added in the future, see https://github.com/nodejs/node/issues/45467
* Use exact version for esbuild-kit/esm-loader
* Fix import
---------
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
* add util function to get vue component name
* add global error handler
* add v-error-boundary component
* use error boundary to wrap insights panels
* use error boundary to wrap form interfaces
* use error boundary in render display and template
* use error boundary in extension options
* use error boundary for flows operation overview
* extract default options-overview into a component
* add tests
* Parse string filter as JSON
* Parse content as JSON when toggling raw editor
* Refactor missing Dashboard type
* Convert filter to gql format
* Disable alias field filter selection in insights
* Use parseJSON util
* Refactor to allow selectivity of relational field for GraphQL filters
* Emit variables
* Skip emitting invalid JSON
* Add unit tests
* check for auto increment when saving as copy
* updated check to cover uuid generated IDs
* attempt to test use-item composable
* updated test objects
* do not rely on is_generated
* fix readonly regression
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
* implements server sort when dealing with multple relational pages
* always use server sort
* fixed unsetting sort
* removed frontend sorting
* make loading total count more accurate
* remove removed prop
Co-authored-by: Nitwel <mail@nitwel.de>
* translate fields during hydration
* patch untranslated raw values on field edit
* simplify/remove existing translate usages
* minor codestyle
* translate field note and validation_message
* stub api call in fleld-detail store test
* skip fields translation before user locale sets in
* optimize hydration calls
* use translateLiteral for note & validation_message
* cherry pick field meta properties to patch
* reduce setLanguage calls & settings requests
* settings store test & type update
* tweak variable casing
* test server store & fix existing type/ref issues
* update fields store test for skipTranslation
* fix render-display merge
* await field update before opening drawer
* fetch meta at the end to load relationships first
* add loading state to prevent editing some fields
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
* Fix key combinations being prevented in v-input
* should normalize accented characters first
* add tests for processValue and emitValue
* export keyMap from use-shortcut to keep things DRY
* try to add test for use-shortcut composable
* move systemKeys to use-shortcut
* add "capslock" & "enter" to systemKeys
* Add bundle type to constants and types
* Add support for API bundle extensions
* Rename generateExtensionsEntry to generateExtensionsEntrypoint
* Add support for App bundle extensions
* Refactor App extension registration
* Replace extensions inject with useExtensions()
* Replace getInterfaces() with useExtensions()
* Replace getDisplays() with useExtensions()
* Replace getLayouts() with useExtensions()
* Replace getModules() with useExtensions()
* Replace getPanels() with useExtensions()
* Replace getOperations() with useExtensions()
* Add useExtension() composable
* Replace useExtensions() with useExtension() where applicable
* Remove interface getters
* Remove display getters
* Remove layout getters
* Remove module getter
* Remove panel getters
* Remove operation getters
* Rename extension register.ts files to index.ts
* Perform module pre register check in parallel
* Remove Refs from AppExtensionConfigs type
* Remove old extension shims
* Ensure registration of modules is awaited when hydrating
* Add support for scaffolding package extensions
* Add support for building bundle extensions
* Add JsonValue type
* Use json for complex command line flags
* Load internal extensions if custom ones are not available
* Fix extension manifest validation for pack extensions
* Fix tests in shared
* Add SplitEntrypoint type
* Move command specific utils to helpers
* Add SDK version getter
* Move extension dev deps generation to helpers
* Move template path to getter util
* Move template copying to a helper
* Only rename copied template files
* Add directus-extension add command
* Convert provided extension source path to url
* Replace deprecated import.meta.globEager
* Mock URL.createObjectURL to make App unit tests pass
* Update rollup-plugin-typescript2
* indentation
* sort vite glob imported modules
* fix unintentional wrong commit
* Simplify app extension import logic
* reinstall @rollup/plugin-virtual
* add test for getInterfaces() expected sort order
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
* Update API non-majors
* Update major changes
* Temp fix for type warning in sdk
* Resolve missing new keyword in GraphQLNonNull use
* Lock versions in api
* Update and lock versions in shared
* Update lockfile
* Fix build type errors in api
* Update app patches/minors
* Upgrade major versions
* Lock versions
* Upgrade root deps
* Update packages
* Switch from pino-colada to pino-pretty
* Update snapshots
* Fix globby sync usage
* Remove globals from jest config
* No ranges
* Revert "Remove globals from jest config"
This reverts commit e249e2c8fe.
* Revert "Upgrade root deps"
This reverts commit 62add28a85.
* Update non-jest stuff
* We'll keep trying
* Update globby to latest minor only
* Test on all vendors
* Revert test on all vendors
* Fix linting
* Preserve request log format
* Preserve existing timestamp format and allow configuration
* Use lodash merge to allow for nested objects
Co-authored-by: ian <licitdev@gmail.com>
* fix empty form info
* hide circle
* Allow setting prop icon to false in v-info
* Add inline prop to v-form to disable info icon
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* this works in the form-field setting up for refactor
* refactored the useRaw and made form-field-raw-editor
* add defaults
* add tests for render submitting and cancelling
* add isNil
* delete the comment
* add a cancel button
* change let to const
* add the if statement when it's not a object
* delete the .raw-value and place it in the raw-editor form field
* rename submit to setRawValue
* change submit to set-raw-value
* add a possibility to add a placeholder to the system-raw-editor
* implement the system-raw-editor to the form-field-raw-editor
* update the snapshot and fix the emitted tests
* found out we can disable the gutter and line-numbers
* add a language prop to the system when it's not defined it should default to mustache
* delete style; add language and add type
* update the html in tests
* add input-code for the extended validation
* add default value
* Update form-field-raw-editor.vue language to plaintext
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* update test
Co-authored-by: Vincent Kempers <vincentkempers@vincents-mbp.lan>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>