Commit Graph

1226 Commits

Author SHA1 Message Date
Pascal Jufer
295b8d2711 Revert "Update breaking changes note about extension endpoint (#20918)" (#20919)
This reverts commit 0d4386640e.
2023-12-29 11:36:59 +01:00
Pascal Jufer
0d4386640e Update breaking changes note about extension endpoint (#20918) 2023-12-29 03:16:39 +01:00
dependabot[bot]
54d8152c72 Bump marked from 11.0.1 to 11.1.0 (#20869)
Bumps [marked](https://github.com/markedjs/marked) from 11.0.1 to 11.1.0.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v11.0.1...v11.1.0)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-25 10:15:22 +01:00
Esther Agbaje
80b55fa556 Add npm installation to quickstart guide (#20836)
* add npm installation to quickstart

* update

* update docs

* tweak phrasing

* update

* Update docs/getting-started/quickstart.md

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

* update heading

* fix format

* add changeset

---------

Co-authored-by: Kevin Lewis <kvn@lws.io>
2023-12-22 20:04:28 +01:00
Brainslug
b7839b7e0f SDK WebSocket auth race condition (#20635)
* fixed handshake race condition

* updated docs and errors

* prettier

* Nog prettier

* WIP experiments

* added logger as global api

* refactored to finite state machine object

* reimplemented reconnectivity

* resubscribe upon reconnect

* updated reconnect message

* tiny tweaks

* cleaned up types

* comment

* explicitly typing the logger

* WIP refactor error handling

* WIP refactor error handling

* refactored auth error handling

* prettier

* typo

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-12-21 15:16:14 -05:00
Rijk van Zanten
c222511f1f Update telemetry (#20825)
* Setup shared redis abstraction

* Install directus/memory

* Add mini useEnv util for test mocking purposes

* Export missing class from directus/memory

* Update readme to include kv

* Uninstall memory

* Setup telemetry lib

* Reduce concurrency

* Finalize reporting

* Add tests for send-report

* Add tests for init

* Add tests for tracker

* Add tests for get-item-count

* Add test for wait time

* Add test for get-user-count

* Add test for get-user-item-count

* Fix type issue

* Throw error on non-ok fetch

* Init telemetry on server startup

* Tweak submission logic

* Fix tests, submit version

* Update config-options reference

* Cool kids don't use + in large numbers

* Add changesets

* Update docs/self-hosted/config-options.md

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

* Use vi stubGlobal

* Update api/src/env.ts

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

* Unstub as well

* Mock telemetry start in app test

* Update api/src/telemetry/types/report.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Fix default value in env

* Use toBoolean for env var casting

* Don't rely on knex as

Apparently it doesn't work reliably with count()

* Update api/src/telemetry/lib/init-telemetry.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Use getDatabaseClient for consistent clients

* Rename ingress->url

* Send my apologies to the formatting bot

* Fix version

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-12-21 14:08:42 -05:00
Kevin Lewis
e0ad84ac96 Make extension directory prefix requirement clear (#20835)
* Add note about directory prefix

* CI
2023-12-21 13:25:36 +00:00
Kevin Lewis
6b94bc79cf Guide fix: specified need to add a sort field on the M2A field (#20834)
* Specified need to add a sort field on the M2A field

* Please the linter

---------

Co-authored-by: Esther Agbaje <53586167+estheragbaje@users.noreply.github.com>
2023-12-21 12:54:53 +00:00
Esther Agbaje
d5b9ba9244 Add Documentation for Extension SDK Composables (#20684)
* add useApi

* update sidebar

* update docs

* update composabeles

* more updates

* updates to docs

* update dictionary

* Update docs/.vitepress/data/sidebar.ts

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

* Update docs/extensions/sdk-composables.md

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

* Update docs/extensions/sdk-composables.md

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

* Update docs/extensions/sdk-composables.md

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

* Update docs/extensions/sdk-composables.md

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

* Update docs/extensions/sdk-composables.md

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

* Update docs/extensions/sdk-composables.md

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

* Update docs/extensions/sdk-composables.md

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

* updated headings

* update useApi and useStores

* update useCollection

* updates

* fix docs

* Update docs/dictionary.txt

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

* Update docs/.vitepress/data/sidebar.ts

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

* remove links with line numbers

* rearrange extension sidebar

* update composable file name

---------

Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-21 13:51:04 +01:00
Kevin Lewis
c6238b5e8c Updated breaking changes (#20831)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-21 13:22:06 +01:00
Kevin Lewis
6df01a30e4 Fixing broken links, linking to solutions pages (#20806) 2023-12-20 12:11:12 +01:00
daedalus
dd3de6bda6 Categorize the directus_extensions endpoint as a system collection in the sdk (#20793)
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-12-20 02:45:54 +01:00
dependabot[bot]
efc66b0e47 Bump typedoc-plugin-markdown from 4.0.0-next.30 to 4.0.0-next.38 (#20799)
Bumps [typedoc-plugin-markdown](https://github.com/tgreyuk/typedoc-plugin-markdown/tree/HEAD/packages/typedoc-plugin-markdown) from 4.0.0-next.30 to 4.0.0-next.38.
- [Release notes](https://github.com/tgreyuk/typedoc-plugin-markdown/releases)
- [Changelog](https://github.com/tgreyuk/typedoc-plugin-markdown/blob/typedoc-plugin-markdown@4.0.0-next.38/packages/typedoc-plugin-markdown/CHANGELOG.md)
- [Commits](https://github.com/tgreyuk/typedoc-plugin-markdown/commits/typedoc-plugin-markdown@4.0.0-next.38/packages/typedoc-plugin-markdown)

---
updated-dependencies:
- dependency-name: typedoc-plugin-markdown
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-20 01:25:41 +01:00
Pascal Jufer
dfefb5368a Fix dead links in documentation (#20794) 2023-12-19 18:16:17 +01:00
Kevin Lewis
61c651d874 UI Components Nav Item (#20790) 2023-12-19 11:12:04 +01:00
Kevin Lewis
f4f8a02e2e Broken import fixed (#20789) 2023-12-19 10:43:02 +01:00
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
Kevin Lewis
8d1cc722ba Adding blog posts to guides lists (#20779)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-18 19:00:35 +00:00
Esther Agbaje
33259fd4c4 Add documentation for Directus UI Components (#20675)
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-18 18:04:20 +00:00
weberet
b0f43e8658 Document DB_SSL__CA Environment Variable (#20616)
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-18 17:20:21 +00:00
Code IT
083a95d52d Add missing pong reply in docs (#20765)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-18 12:37:48 +00:00
Gerard Lamusse
f79dbef7c0 Fix example output for array environment syntax prefix (#20771)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-17 13:43:54 +00:00
Nick Crews
72a3eb3716 Add .env info to docker-compose guide (#20725)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-12-13 17:58:36 +00:00
Daniel Biegler
b232e18156 Add translatable label to themes and field translations (#20641)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-12 14:14:56 +01:00
Pascal Jufer
5e72ea1b08 Patch Tuesday 🐸 (#20714) 2023-12-12 04:36:50 +01:00
Pascal Jufer
1a07d7355d Update TypeScript to 5.3.3 (#20710) 2023-12-11 20:39:34 +01:00
omahs
541db825a2 Fix typos in documentation pages and SDK readme (#20691)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-10 16:30:56 +01:00
Brainslug
6671f1c603 GraphQL Content Versions (#20499)
* WIP alternative gql approach for versions

* incorrect schema type

* finally got something working

* ran prettier

* prettier

* prettier

* limited _by_version to items scope

* removed debug comments and logs

* fixed singleton versions

* updated docs

* Added breaking change notice

* undid unneed change

* prettier

* Create six-trees-cry.md

* Update api/src/services/graphql/index.ts

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-12-07 21:35:27 +08:00
Boegie19
b2d66be54b Add missing events to extension hooks docs (#20425)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Kevin Lewis <kvn@lws.io>
2023-12-04 11:18:41 +01:00
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