Nitwel
256b0b66bf
Add modular extension badge to app docs ( #6924 )
...
* Add modular extension badge to app docs
* order css properly
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-07-26 19:25:05 -04: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
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
Nicola Krumschmidt
427b339e04
Fix proxying to the app from a subpath ( #6212 )
2021-06-11 11:23:27 -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
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
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
Ben Haynes
e61aea53f9
Docs markdown styling adjustmsnts
2021-04-08 17:09:05 -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
rijkvanzanten
2e5b053d99
Fix app links and old rest references
2021-04-08 15:36:11 -04:00
Nitwel
11e191f426
Add /admin to file if in production ( #4826 )
...
* add /admin if in production
* Use /admin regardless of env
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-04-07 12:22:24 -04:00
WoLfulus
3c1204b928
SDK 2.0 ( #4510 )
...
* add new sdk
* update version
* fixes and sdk documentation
* typing updates, documentation
* added missing endpoints
* targeting minified version for unpkg
* removed unused types file
* fixed non minified versions
* fix sdk exports
* fix the fix
* Remove old sdk
* Remove old sdk docs
* Install types for Jest, add npm test
* Rely on npm exclusively
* Remove examples folder
* Move typescript down
* Update sdk.md
* added auto refresh and requested changes
added more http test calls
fixed typing issue in customized types
* remove unused endpoint
* updated docs
* added singletons, fixed typing issues, added password handlers
* rename graphql function and fixed system endpoint
* Remove unused imports, fix build
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
Co-authored-by: Ben Haynes <ben@rngr.org >
2021-03-30 18:23:23 -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
Ben Haynes
d1fb64223d
in-app docs styling updates
2021-02-18 14:25:32 -05:00
WoLfulus
813c731d27
Add config override support to env module ( #4029 )
...
* add override support for env module
* Override instead of merge w/ config file
* Default to reading .env instead of process.env
* Make env available in process.env
* Add docs for config-files
* Extend note
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-02-16 11:38:07 -05: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
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
5450de0351
Update Docs ( #3905 )
...
* Allow formatted value display for numbers
* Move the docs website into monorepo
* Fix build
* Tweak docs build setup
* Fix tips, pull in images
* Add syntax highlighting to docs
* Restructure nav, add divider
* Fix tips formatting
* Add prettier config
* Add editorconfig
2021-02-02 11:55:04 -05:00
Philleep Florence
c934dd17a6
1129.01 - Resolve links and images within the Docs Module. ( #3760 )
...
* 1129.01 - Resolve links and images within the Docs Module. Validate hint container blocks.
* Remove copy-to-app
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-02-01 17:15:58 -05:00
Nitwel
4c5c8cc629
replace replaceAll with replace
2020-10-22 18:22:21 +02:00
e01
81dc11ceb3
Fix tables in docs constrast UX
2020-10-17 13:44:52 +03:00
rijkvanzanten
e8bee549a2
Rename drawer to sidebar
2020-10-16 11:53:20 -04:00
rijkvanzanten
fa2e255b7e
Update spec service to use m2a
2020-10-12 14:16:54 -04:00
Nitwel
9fa88dba2a
fix docs navigation
2020-10-12 13:45:54 +02:00
Nitwel
86d4cdcbdb
remove console log
2020-10-09 13:46:46 +02:00
Nitwel
812f60874d
fix navigation now working
2020-10-09 00:42:42 +02:00
Nitwel
ae7ad4cb38
Merge branch 'main' into list-accordion
2020-10-08 22:57:17 +02:00
Ben Haynes
aa437ab8f5
Style docs heading links
2020-10-08 11:26:32 -04:00
Ben Haynes
cc77446b6d
Add docs sidebar info
2020-10-08 11:26:18 -04:00
rijkvanzanten
045aa613e2
Rely on undefined check for #583
2020-10-08 09:08:20 -04:00
Nitwel
1ef08942b3
fix view possibly being null
2020-10-08 10:20:00 +02:00
rijkvanzanten
44a2260d18
Remove empty injection
2020-10-07 22:07:14 -04:00
rijkvanzanten
da51cffcff
Small tweaks
2020-10-07 22:05:19 -04:00
rijkvanzanten
e9f136bbb0
Add nav structure to docs folder
2020-10-07 21:57:22 -04:00
rijkvanzanten
6057c9e5d1
Update docs module
2020-10-07 21:54:44 -04:00
Nitwel
7c74cd8fa9
fix code highlighting
2020-10-07 12:48:09 +02:00
Rijk van Zanten
ff466c2bb7
Merge pull request #494 from directus/v-list-subdued
...
Added subdued and tweak dense prop
2020-10-06 17:14:20 -04:00
rijkvanzanten
ce84977714
Remove unused lines prop, remove unused subtitle comp
2020-10-06 17:04:47 -04:00
Ben Haynes
1535db7646
Docs updates
2020-10-06 16:19:36 -04:00
Ben Haynes
da8a6a1502
Docs updates
2020-10-06 12:57:57 -04:00