Commit Graph

1197 Commits

Author SHA1 Message Date
Brainslug
2f3fdace80 Docs update nodejs version 18 (#20586)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-30 13:34:14 +00:00
Pascal Jufer
a5215d674b Update TypeScript to 5.3.2 (#20571) 2023-11-29 13:54:56 +01:00
Pascal Jufer
a5b4a63980 Hint for containers when only testing specific DBs (#20570) 2023-11-29 11:37:32 +01:00
Pascal Jufer
f4c75ba8a6 Fix SSO SAML examples in docs (#20569) 2023-11-29 11:30:41 +01:00
Pascal Jufer
ad91629d35 Clean-up obsolete tags in extensions docs pages (#20566) 2023-11-29 01:49:07 +01:00
Pascal Jufer
bd1ad9ae5b Adjust heading levels for services docs pages (#20565) 2023-11-28 23:08:19 +01:00
Kevin Lewis
e67ed8acf7 Add docs for themes extension type (#20561)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-28 19:58:51 +00:00
Pascal Jufer
0a65c377a4 Improve the file upload example via SDK in docs (#20534)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-11-27 19:54:14 +01:00
Pascal Jufer
4d4fa80f9b Update import alias in docs to work with Windows (#20545) 2023-11-27 17:41:14 +01:00
Kevin Lewis
5d23f89d2b Added note about generating static tokens (#20530)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-27 11:33:36 +00:00
Pascal Jufer
387cf0cd35 Docs: Config / Data improvements (#20532) 2023-11-27 12:17:43 +01:00
Brainslug
b1b5abc6f5 Update Services for Extensions examples (#20519)
* updated code examples for best practices

* prettier

* removed obsolete res.locals['payload']

* update intro

* fix typo

* fix formatting

---------

Co-authored-by: Esther Agbaje <folasadeagbaje@gmail.com>
2023-11-25 19:31:40 +01:00
Pascal Jufer
1b0ea954d3 Fix SnippetToggler sync (#20520) 2023-11-24 14:49:51 +01:00
Kevin Lewis
5312a5b7d6 Clarified that metadata is only autoextracted for images (#20516) 2023-11-24 11:31:36 +01:00
Esther Agbaje
2e88169b69 Document Services for Extensions (#20376)
* docs: add services to config

* docs: intro to services

* document ItemsService

* update introducgtion

* update introduction

* fix typo

* update accessing database

* document collectionsService

* add page to config

* update docs

* update authoring docs

* set up boilerplate for userservice, filesservice

* update files service

* update working with users

* link and text updates

* update dictionary

* update link

* update eslint ignore

* update eslint ignore

* Update docs/.vitepress/config.js

Co-authored-by: Kevin Lewis <kvn@lws.io>

* Update docs/.vitepress/config.js

update config

Co-authored-by: Kevin Lewis <kvn@lws.io>

* Update docs/.vitepress/config.js

update config

Co-authored-by: Kevin Lewis <kvn@lws.io>

* Update docs/extensions/services/introduction.md

update intro text

Co-authored-by: Kevin Lewis <kvn@lws.io>

* update intro to services

* Update docs/extensions/services/introduction.md

update text

Co-authored-by: Kevin Lewis <kvn@lws.io>

* Update docs/extensions/services/introduction.md

Co-authored-by: Kevin Lewis <kvn@lws.io>

* Update docs/extensions/services/introduction.md

Co-authored-by: Kevin Lewis <kvn@lws.io>

* Update docs/extensions/services/introduction.md

Co-authored-by: Kevin Lewis <kvn@lws.io>

* Update docs/extensions/services/introduction.md

Co-authored-by: Kevin Lewis <kvn@lws.io>

* Update docs/extensions/services/introduction.md

Co-authored-by: Kevin Lewis <kvn@lws.io>

* Update docs/extensions/services/introduction.md

Co-authored-by: Kevin Lewis <kvn@lws.io>

* updates to introduction

* update text

* update config

* fix text

* updates to items service

* updates to link

* more updates

* update files service and items service

* update user service

* more updates

* clean up items service

* clean up intro

* clean up all services

* more updates

* update dictiionary

* Moved initialization to root of extensions intead of in route handlers

* Fixed typo

* Added explicit introduction page

* Added changeset

---------

Co-authored-by: Kevin Lewis <kvn@lws.io>
2023-11-24 10:42:03 +01:00
Azri Kahar
a11fb2b59d Allow configuration to prevent server startup when an extension fails to load (#20495)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-23 16:37:57 +00:00
Pascal Jufer
37c5d72c00 Update docs dependencies (#20506) 2023-11-22 19:03:05 +01:00
Pascal Jufer
ba7fac402e Update Prettier v3.1.0 (#20481) 2023-11-20 16:23:22 +01:00
Max Mayorov
39420a13ac Fix error handling in Twilio extension building guide (#20381)
* Update hooks-validate-number-twilio.md

`exceptions` prop is not returned in the context, the exception class has to be created.

* Update contributors.yml

* Update hooks-validate-number-twilio.md

Attempt to avoid `Assigning to rvalue` linting error

* Update hooks-validate-number-twilio.md

Revert previous change

* Update docs/guides/extensions/hooks-validate-number-twilio.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Kevin Lewis <kvn@lws.io>
2023-11-20 13:36:12 +00:00
Rijk van Zanten
8d8b649a1f Theming various (#20426)
* Update the minimal theme

* Remove unused files

* Remove unused default dark theme

* Fix type error

* Fix the order of themes in the picker interface

* Fix account/sign-out not using module foreground color

* Fix module bar interface styling

* Update system match label

* Use half width for default appearance

* Fix preview changed based on appearance

* Add includeNull option to theme selector interface

* Add minimal theme extension docs

* Attempt to make typedoc play nice

* Remove module bar color override

* Add snippet on overrides interface

* Deprecate "normal" style v-notice

* System filter interface background

* Add menu scope

* Use colors consistent with interface previews

* Remove card-face-color usage

* Use consistent hover style in collections & fields

* Deprecate card-face-color

* Remove old --card vars

* Fix revisions divider styling

* Remove duplicate background from overview header

* Fix permissions overview corner overlap

* Make form input height configurable

* Allow overriding public form input height

* Rename text string

* updated data model icon

* Standardize form settings between scopes

* Allow overriding sidebar forms

* Add configurable form gap

* Add configurable input-padding

* Fix list-item padding

* Fix padding in block style

* Add links to defaults

* Apply color match updates

* Default to database icon

* Fix schaling of theme selector interface

* Fix font loading

* Fetch font weights from Google as well

* Use display weight in titles

* Fix color match display font

* Clean up font weights for labels

* Update test to remove normal state

* Remove typo

* Add lowercase dev

* Add changeset

* Remove font-weight

---------

Co-authored-by: Ben Haynes <ben@rngr.org>
2023-11-16 15:36:54 -05:00
daedalus
fdb2e42b29 Add ability to ignore specific paths from the HTTP logger (#20368)
* add changeset

* Add the ability to ignore specific paths from HTTP logger

* fix linting

* Cast env, clean-up, add test

* Use dedicated env config name

* Add docs

* Clean-up

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-16 15:31:42 -05:00
Rijk van Zanten
7df84c0a89 Add support for EXTENSIONS_LOCATION setting (#20207)
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-16 13:29:03 +00:00
Kevin Lewis
013b893e44 Remove feedback for package pages (#20438) 2023-11-16 11:02:02 +01:00
Bryant Gillespie
49449f120c fix styling for dark mode (#20437) 2023-11-15 17:15:49 -05:00
Bryant Gillespie
d5e0c54198 Docs/newsletter fix (#20435)
* remove script globally

* add script on component mounted to avoid ssr issues
2023-11-15 12:11:38 -05:00
Kevin Lewis
f1bf1c56ce Add newsletter signup to docs sidebar (#20431)
* Designed newsletter component

* Add newsletter to bottom on mobile

* Added subtle border to component

* Added HS form

* remove on mobile
2023-11-15 15:08:33 +00:00
Rijk van Zanten
4396ee5166 Add theme-selector (#20413)
* Enable theme fields

* Start adding more default themes

* WIP add theme selector interface

* Restructure, add rules-to-vars util

* Render used vars in local overrides

* Use local theme vars in theme preview

* Render theme option full-width

* Add more test colors

* Only override used variables

* Fix rendering bugs in preview

* Remove test theme

* Add small border to preview

* Add organic theme

* Add changeset

* Don't crash color interface on complex input bg

* Use themable color for disabled input

* Use nav-sidebar theme in v-drawer

* Use border width from the theme in panels

* Use theme border width for panel borders

* Use page background for panel edit buttons

* Fix Active state forselected panel

* Don't use primary for logout hover state

* Fix background color of item duplication fields

* Use form border/background in v-list block

* Use theme border width in hardcoded 2px sections

* fix chip padding

* Rename background-page to background,

rename background to background-normal

* Fix search input styling

* Tweak search input themability

* update icons

* Add border on sidebar section content

* Add color match, start on minimal

* Organize import

* Adjust spacing

* Ignore stylesheet files

* Ignore svg as well

---------

Co-authored-by: Ben Haynes <ben@rngr.org>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-11-14 13:43:43 -05:00
Pascal Jufer
0728419bfb Move remaining blackbox readme to docs (#20397) 2023-11-11 16:36:36 +01:00
Pascal Jufer
1e2ee8dec8 Use double quotes for compose in docker guide (#20395) 2023-11-11 13:29:20 +01:00
Pascal Jufer
2d3da357db Fix SnippetToggler group definitions (#20388)
* Fix SnippetToggler group definitions

* Ignore md files for linting
2023-11-10 19:54:49 +01:00
Pascal Jufer
45847a61a2 Prevent re-installation of deps in Docker image (#20346)
* Ignore Dockerfile to prevent layer cache drops

* Prevent reinstallation of deps in Docker image

* Add changeset

* Prettify by using heredoc & inject packageManager

* Add comment

* Update docs

* Apply suggestions from code review

* Refer to original issue instead of pull request

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-11-08 13:37:59 -05:00
Azri Kahar
0a8e7b7d2e rename to articles to match other examples (#20359) 2023-11-08 15:59:18 +00:00
Brainslug
bbefc62ef4 Updated all docs examples from "@directus/sdk/rest" to "@directus/sdk" (#20321) 2023-11-03 13:58:42 -04:00
Rijk van Zanten
474f8eab1f Add configurable borders (#20226)
* Add borderRadius rule

* Standardize border radii

There was a border-outline style that was visually nearly identical that was hardly ever used. The places it was used in felt like more of an oversight / inconsistent usage than intentional, so I've opted to standardize it to the same configured radius

* Replace --border-radius with --theme--border-radius

* Remove border radius from variables.scss

* Remove default

* Allow overriding v-input border-radius

* Update legacy overrides

* Default to 6px

* Remove overrides

* Update overrides to use v-input specific

* Add LineWidth, fix schema output

* Use border-width from theme

* Add border colors for inputs

* Use theme form colors for borders

* Configurable box-shadow for input

* Use configurable shadow

* Add optional module bar border

* Reduce white space

* Add optional border to nav bar

* Add configurable sidebar border

* Add configurable header shadow

* Add changeset

* Run formatter

* fix borderWidth for calc

* Remove border-normal

* Use border-width for 2px values where appropriate

* Use theme border for avatar divider

* Add rules for project info border

* Add border support to project info

* Add border support for section toggle

* Run formatter

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-10-31 14:36:28 -04:00
Brainslug
7b7777af4a Docs update query limit=-1 (#20251)
* Updated "limit=-1" wording

* mention QUERY_LIMIT_MAX

* Added link and updated wording
2023-10-30 17:04:41 -04:00
Abdón Rodríguez
2c287d1062 Fix self-hosted quickstart indentation (#20252) 2023-10-30 10:28:32 -04:00
Peter Stuifzand
d54418bb39 Fix errors in Realtime Chat Vue guide (#20237)
* Fix errors in vue guide

* Fix fields syntax

* Update contributors.yml

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-30 11:39:24 +00:00
Brainslug
31a6e9ad50 updated sort example (#20248) 2023-10-30 11:06:07 +01:00
Kevin Lewis
e650df7255 Added extensions volume of self-hosted quickstart (#20246) 2023-10-30 09:41:18 +01:00
daedalus
6324cd4e3f docs: add changeset generate command and version bump type explanations (#20244)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-29 23:28:12 +00:00
cyril
039608b5b1 Fix a 404 on the Self-Hosted CLI doc page (#20234)
Fix  #20233
2023-10-29 03:39:32 +01:00
Azri Kahar
c80f8ee247 Fix caching for Content Versioning (#20153) 2023-10-26 11:25:09 +02:00
Rijk van Zanten
cde4dc6c78 Run Directus in PM2 Cluster mode in Docker Image (#18998)
* Send ready state to pm2

* Run with pm2

* Add ecosystem config

* Fix cjs naming

* Add start command

* Increase kill timeout retry

* Set PM2 config through environment variables

* Add changeset

* Add config options for pm2

* Add additional config options

* Add more wordssssssssss

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update ecosystem.config.cjs

Co-authored-by: Wryn (yage) Wagner <yage@yage.io>

* Default to undefined instead of empty string

* Update docs to match safer defaults

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Wryn (yage) Wagner <yage@yage.io>
2023-10-25 15:34:26 -04:00
Kevin Lewis
9d80bd899b Added more detail and an example to the new theming docs (#20181) 2023-10-25 09:30:53 +00:00
Rijk van Zanten
3b1fad1d1f Update examples for union types (#20174) 2023-10-24 15:16:11 -04:00
Rijk van Zanten
9f62da2c1b Add link to upgrading docs (#20172)
Fixes #20148
2023-10-24 15:10:04 -04:00
Azri Kahar
78f25b66a2 Update docs for Theming (#20154)
* update docs for theming

* tweak sidebar ordering based on Data Studio

* fix formatting for theming.md

* Add favicon to dict

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-10-24 11:43:08 -04:00
Kevin Lewis
67306613b3 Secure Extensions Documentation (#19998)
* Scaffed page

* Execution Type section

* Moved secure page to account for potential future subpages

* Request

* CRUD

* Added execution types page

* Please the CI Gods

* Format file

* Update docs

* Add doc highlighting registration differences

* Add missing words to dict

* Add wildcard docs

* Capitalization kills

* Format file

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-10-23 09:34:59 -04:00
Kevin Campbell
fa28f20e22 Fix example code in Realtime Guide (#20114)
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-10-23 08:58:09 +00:00
Rijk van Zanten
09a9be7488 Tweak notes to rules 2023-10-21 14:58:01 -04:00