Commit Graph

1254 Commits

Author SHA1 Message Date
Kevin Lewis
e5cd3f3616 Updated URLs (#21102) 2024-01-26 09:30:23 +01:00
Brainslug
fd11cef6fb default to json SDK authentication in the example (#21199) 2024-01-25 16:36:16 +01:00
Pascal Jufer
c29873df09 Align versions of TypeDoc dependencies (#21198) 2024-01-25 14:57:34 +01:00
Esther Agbaje
ba6ceba437 Update useItems composable with the required parameters (#21194)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-25 13:26:55 +00:00
Esther Agbaje
62d640a723 update secure extensions to sandboxed extensions (#21196) 2024-01-25 14:12:50 +01:00
Kevin Lewis
96df9391c4 Adding area toggle to top of docs nav (#21176)
* Added tabs

* Remove area links from nav

* Added social nav links

* Ensured toggle is respected when path changes

* Updated dev toggle link

* Removed white backgroudn to respect dark mode

* CI gods must be pleased

* Simplify path determination

* Toggle design as per Ben's feedback

* Tabs component styling

* Updated tabs content on docs home

* HEader nav links

* Dev sidebar link to home

* Adjust inactive & hover color of tab buttons

* Nest CSS

* Update docs/.vitepress/theme/Layout.vue

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

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-25 11:37:00 +01:00
Marcel
0cee4c0805 Add memory package in the list of package names (#21155)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-25 09:20:23 +00:00
Daniel Biegler
062c8f23f6 Add focal point support for images (#20768)
* add visual feedback for invalid value

* add focal point MVP

* Revert "add visual feedback for invalid value"

This reverts commit 1df1868342.

Accidently committed some local testing stuff. Pls disregard! :)

* fix wrong cropping

* fix text for new cropping, import correct type

* fix saving

* place initial focal point to saved value or center, display different cancel text

* split up tooltips

* honor rotations & flips when saving focal point

* apply custom cropper styles for focal mode

* Create loud-crews-fix.md

* add test and only crop when covering with fixed dimensions to preserve default behaviour

* linter gods pls forgive me

* replace json field with two int fields

* add focal point to sdk

* fix transformation for the two new db columns

* update test for new columns, add new tests

* wip: saving now differentiates between only img data and focal point and only enable saving if there are changes

but this is not optimal. would be better to check beforehand if we can collapse
to requests to one. Now its bad because
one request might succeed and the other fails.

* refactor image editor change persistence

now we save it in one request!

* Update loud-crews-fix.md

* add `focal_point_x` and `focal_point_y` to possible asset transformations

* fix assigning localdragmode upon cropper init

* reuse fetched fields in type

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

* update file type

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

* update changeset

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

* improve type for `ASSET_TRANSFORM_QUERY_KEYS`

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

* Apply suggestions from code review

Trying out the batch change feature from github for the first time. Lets see.

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

* rename `persistChanges` to `saveImage`

* Add docs for focal points (#20959)

* Add user guide

* Added to API Reference

* Prettier

* Spellchecker

* default null

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* from -> around

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* from -> around

---------

Co-authored-by: Daniel Biegler <DanielBiegler@users.noreply.github.com>

* add changeset for docs

* run prettier lets goooooooo

* move & show focal point fields and add divider

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Kevin Lewis <kvn@lws.io>
2024-01-22 18:35:06 +01:00
dependabot[bot]
eba3e08549 Bump typedoc-plugin-markdown from 4.0.0-next.38 to 4.0.0-next.43 (#21151)
Bumps [typedoc-plugin-markdown](https://github.com/tgreyuk/typedoc-plugin-markdown/tree/HEAD/packages/typedoc-plugin-markdown) from 4.0.0-next.38 to 4.0.0-next.43.
- [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.43/packages/typedoc-plugin-markdown/CHANGELOG.md)
- [Commits](https://github.com/tgreyuk/typedoc-plugin-markdown/commits/typedoc-plugin-markdown@4.0.0-next.43/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>
2024-01-22 01:49:46 +01:00
Kevin Lewis
5761b29a20 Updated home toggler content (#21130)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-19 12:59:44 +00:00
dependabot[bot]
9599b91c4c Bump typedoc-plugin-zod from 1.1.1 to 1.1.2 (#21138)
Bumps [typedoc-plugin-zod](https://github.com/Gerrit0/typedoc-plugin-zod) from 1.1.1 to 1.1.2.
- [Commits](https://github.com/Gerrit0/typedoc-plugin-zod/compare/v1.1.1...v1.1.2)

---
updated-dependencies:
- dependency-name: typedoc-plugin-zod
  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>
2024-01-19 08:15:40 +01:00
Kevin Lewis
f0ba61658e Fix logo positioning (#21129) 2024-01-18 15:53:16 +01:00
Kevin Lewis
f1e6301d4b Added missing link in config, typo fix in flows reference (#21131) 2024-01-18 15:46:14 +01:00
Kevin Lewis
9368290608 Updated Docs Landing Page (#21116)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-18 01:58:24 +01:00
Kevin Lewis
70de6168b8 Updated guest author timing FAQ (#21117) 2024-01-17 13:19:27 +00:00
Esther Agbaje
155870ecf5 Add Upload File to FilesService Docs (#21087)
* update filesservice

* add a note for busboy

* fix format

* add note

* change name back to data

---------

Co-authored-by: Kevin Lewis <kvn@lws.io>
2024-01-16 15:09:26 +01:00
Mark Munyaka
2708bed2b0 Update quickstart.md (#21074) 2024-01-13 21:49:14 +01:00
dependabot[bot]
7f4bbc4db1 Bump typedoc from 0.25.6 to 0.25.7 (#21056)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.25.6 to 0.25.7.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.25.6...v0.25.7)

---
updated-dependencies:
- dependency-name: typedoc
  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>
2024-01-12 03:03:29 +01:00
Pascal Jufer
a6e2712e09 Use official abbreviation of Exif (#21030) 2024-01-10 14:42:40 +01:00
ian
4a3a65cfde Add support for IP ranges and CIDR notations (#20971)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-09 00:44:09 +01:00
dependabot[bot]
b9aa2696ed Bump marked from 11.1.0 to 11.1.1 (#20994)
Bumps [marked](https://github.com/markedjs/marked) from 11.1.0 to 11.1.1.
- [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.1.0...v11.1.1)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:production
  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>
2024-01-08 02:01:58 +01:00
Rijk van Zanten
0b0db0f449 Deprecate Messenger in favor of shared Bus (#20862)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-06 23:49:38 +00:00
Pascal Jufer
c9292fdd13 Various small codebase clean-ups (#20977) 2024-01-05 18:53:44 +01:00
daedalus
b189fd4594 Add enable/disable support for bundle type extensions (#20940)
* Add enable/disable support for bundle type extensions

* added changeset

* Update app/src/modules/settings/routes/extensions/components/extension-item.vue

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

* add docs

* bundle with app extensions should display reload on prod

* use early returns for toggle logic

Co-Authored-By: Brainslug <br41nslug@users.noreply.github.com>

* add enable/disable all for partially enabled

* refresh message should work for enable and disable all

* Clearer tooltip for app extensions in dev

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2024-01-05 13:03:24 +01:00
Kevin Lewis
fb7765e5e9 Add SQLITE_CANTOPEN and Default Admin Creds to Quickstarts (#20961) 2024-01-04 17:32:28 +01:00
Emmanuel Mahuni
75c1409a7e Update minimum NodeJS version requirement (#20939)
* Update cli.md NodeJS required version because of Sharp.

Update NodeJs minimum requirement to v18.17.0 because of Sharp new version requirements. See issue #20854

* Update contributors.yml

* Update cli.md

More specific as later versions of Node 18 work too

* Added changeset

---------

Co-authored-by: Kevin Lewis <kvn@lws.io>
2024-01-04 14:11:38 +00:00
dependabot[bot]
1b3fbd8ff3 Bump typedoc-plugin-zod from 1.1.0 to 1.1.1 (#20954)
Bumps [typedoc-plugin-zod](https://github.com/Gerrit0/typedoc-plugin-zod) from 1.1.0 to 1.1.1.
- [Commits](https://github.com/Gerrit0/typedoc-plugin-zod/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: typedoc-plugin-zod
  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>
2024-01-04 02:25:31 +01:00
dependabot[bot]
e168cb42a9 Bump typedoc from 0.25.4 to 0.25.6 (#20941)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.25.4 to 0.25.6.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.25.4...v0.25.6)

---
updated-dependencies:
- dependency-name: typedoc
  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>
2024-01-03 02:09:02 +01:00
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