Kevin Lewis
59d79787c7
Add docs guides for building modules ( #20630 )
...
* Add Create a Custom Portal Module
* Add Use Native Layout Features In Your Modules
* Added changeset
* Pascal's edits
* Update guide imports on extension type pages
* Changed livePreviewMode to a bool
* Please for formatter
* Rename file
* Replace all remaining imports while we're at it
* Finishing touch
* Update docs/guides/extensions/modules-native-layout-features.md
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-12-19 09:14:32 +00:00
Pascal Jufer
ad91629d35
Clean-up obsolete tags in extensions docs pages ( #20566 )
2023-11-29 01:49:07 +01:00
Esther Agbaje
20b977b7a8
Improve Extension Documentation ( #19727 )
...
Co-authored-by: Kevin Lewis <kvn@lws.io >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
2023-09-28 20:40:49 +02:00
Kevin Lewis
f92b4b6db7
Building Extensions Guides ( #18952 )
...
Co-authored-by: Nitwel <mail@nitwel.de >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com >
2023-08-22 14:51:42 +02:00
Rijk van Zanten
ca3e7f521f
Upgrade previous "Extensions" system to new "Errors" model ( #18797 )
...
* Typecheck across packages that are built with esbuild
* Boilerplate new Errors package
* No need, tsup checks with --dts
* Switch to tsup
* Setup dev script
* Add readme
* More boilerplaty things
* Finish createError function
* Install @directus/random
* Downgrade node types
* Add utility function to check if an error is a DirectusError
* Use new is-error check
* Install errors package
* Add failed validation common error
* Export common errors
* Move joi convertion to utils
* Export failed validation
* Use new failed validation error in validate-batch
* Enhance typing output of createError
* Remove outdir (handled by tsup now)
* Replace Exception with Error
* Replace exception in test
* Remove exceptions from app
* Remove exceptions from app
* Remove failed validation exception from users service
* Remove old failed validation exception from shared
* Remove exceptions package in favor of errors
* Uninstall exceptions
* Replace baseexception check
* Migrate content too large error
* Critical detail
* Replace ForbiddenException
* WIP remove exceptions
* Add ForbiddenError to errors
* HitRateLimitError
* Move validation related error/helper to new validation package
* Add index
* Add docs
* Install random
* Convert TokenExpired
* Convert user-suspended
* Convert invalid-credentials
* Move UnsupportedMediaType
* Replace wrong imports for forbidden
* Convert invalid-ip
* Move invalid provider
* Move InvalidOtp
* Convert InvalidToken
* Move MethodNotAllowed
* Convert range not satisfiable
* Move unexpect response
* Move UnprocessableContent
* Move IllegalAssetTransformation
* Move RouteNotFound
* Finalize not found
* Various db errors
* Move value too long
* Move not null
* Move record-not-unique
* Move value out of range
* Finish db errors
* Service unavailable
* GQL errors
* Update packages/validation/src/errors/failed-validation.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Update packages/validation/src/errors/failed-validation.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* InvalidQuery
* Add test for invalid query message constructor
* Invalid Payload
* Finalize exceptions move
* Improve type of isDirectusError
* Various fixes
* Fix build in api
* Update websocket exceptions use
* Allow optional reason for invalid config
* Update errors usage in utils
* Remove unused package from errors
* Update lockfile
* Update api/src/auth/drivers/ldap.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Update packages/validation/src/utils/joi-to-error-extensions.ts
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Put error codes in shared enum
* Replace instanceof checks in api
* Fix tests I think
* Tweak override names
* Fix linter warnings
* Set snapshots
* Start fixing BB tests
* Fix blackbox tests
* Add changeset
* Update changeset
* Update extension docs to use new createError abstraction
* 🙄
* Fix graphql validation error name
* 🥳
* use ErrorCode.Forbidden
* fix blackbox auth login test
* Add license files
* Rename preMutationException to preMutationError
* Remove unused ms dep & sort package.json
* Remove periods from error messages for consistency
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
* Add optional code check
* Use updated error code checker
* Rename InvalidConfigError to InvalidProviderConfigError
---------
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com >
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch >
Co-authored-by: ian <licitdev@gmail.com >
2023-06-27 17:22:26 -04:00
Rijk van Zanten
c723085902
Move docs to monorepo ( #18052 )
...
* Move docs to monorepo
* Tweaks
2023-04-04 18:23:58 -04:00
Rijk van Zanten
288e7d62b9
Move docs folder to dedicated repo ( #14192 )
...
* Move docs to https://github.com/directus/docs
* Update included docs
2022-06-29 13:47:45 -04:00
Chris Bartley
bd89fe2a4c
Fixed readByQuery's sort parameter in custom API endpoint example ( #11662 )
2022-02-22 14:36:30 +08:00
rijkvanzanten
3baa0e5eb0
Tweak wording in docs
2022-01-24 10:47:46 -05:00
Juan José Miranda
717280b883
Change "register" for "handler" in the example ( #11224 )
...
* Change "register" for "handler" in the example
Change "register" for "handler" in the example custom endpoint route using id for access endpoints.
* Tweak name in reference points
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2022-01-24 09:51:18 -05:00
Nicola Krumschmidt
aa5da81fc0
Remove no-break space characters with regular spaces ( #11232 )
...
There are quite a few other occurrences all over the translation files,
some of which feel intentionally placed.
2022-01-24 09:43:57 -05:00
Brainslug
35c3f90c9a
added event emitter to extension context and updated docs ( #10529 )
2021-12-15 21:29:06 +00:00
Nicola Krumschmidt
90b59d89e0
Extension docs updates ( #8611 )
...
* Rename API Endpoints docs to Endpoints to align with Hooks
* Add a Creating Extensions page to the docs
* Update individual extension docs pages
* Apply latest changes to hook docs
* Move available events to a dedicated section in hook docs
2021-12-06 13:08:31 -05:00