Commit Graph

10604 Commits

Author SHA1 Message Date
Nitwel
cd78801f9a Filter out any non existent fields (#19352)
* filter out any non existent fields

* hide upsi

* fix layout throwing error

* Format file

* Add changeset

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-10 14:42:56 +02:00
Moritz
7f2e58ee44 Docu: Fix 'Storage Asset Preset' link in 'Requesting a Thumbnail' (#19388)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-10 12:51:32 +02:00
Jan Arends
52e51b4cd4 Docs: Slightly more details regarding relations on the item object (#19381)
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-10 10:47:26 +00:00
Daniel Biegler
d443ea6b20 Fixed hiding of modals after failing to delete item (#19383)
* fix hiding of modals when unsuccessfully deleting

* add changeset
2023-08-09 13:43:29 -04:00
Daniel Biegler
a885c7b868 Add file preview to m2o-fields if the relation is directus_files (#19374)
* add file preview to m2o-fields if the relation is directus_files

* add changeset

* move check to useFile instead of relatedCollection
2023-08-08 18:36:08 +00:00
Bevis Halsey-Perry
60df20d780 Simplified generic examples and consolidated imports for sdk examples in docs. (#19370)
* Simplified generics and imports for items page snippets

* Simplified generics and imports for files page snippets

* Fixing simplified generic snippets in items page

* Simplified generics and imports for activity page snippets

* Simplified generics and imports for collections page snippets

* Simplified generics and imports for dashboards page snippets

* Simplified generics and imports for extensions page snippets

* Simplified generics and imports for fields page snippets

* Simplified generics and imports for flows page snippets

* Simplified generics and imports for folders page snippets

* Simplified generics and imports for notifications page snippets

* Simplified generics and imports for operations page snippets

* Simplified generics and imports for panels page snippets

* Simplified generics and imports for permissions page snippets

* Simplified generics and imports for presets page snippets

* Simplified generics and imports for relations page snippets

* Simplified generics and imports for relations page snippets

* Simplified generics and imports for revisions page snippets

* Simplified generics and imports for roles page snippets

* Consolidated imports for schema page snippets

* Simplified generics and imports for server page snippets

* Simplified generics and imports for settings page snippets

* Fixed mixed up snippets and simplified generics and imports for shares page snippets

* Simplified generics and imports for translation page snippets

* Fixed mixed up snippets and simplified generics and imports for user page snippets

* Simplified generics and imports fo uutilitie pages snippets

* Simplified generics and imports for webhook pages snippets

* Simplified generics and imports for authentication pages snippets

* Consolidated imports for query pages sdk snippets

* Format files

* Update lockfile

* Fix spelling

* Format snippets

* Aling `result` const

* Small clean-ups

- Align `SEARCH` snippets, move "Learn more..." next to other hint
- ids -> IDs
- Other alignments

---------

Co-authored-by: Bevis Halsey-Perry <hi@be7.is>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-08 10:16:23 -04:00
Daniel Biegler
5114169b38 fix detailed and improve simple variants of showing rating-display on card layout (#19365)
* fix detailed and improve simple variants of showing rating-display on card layout

* create changeset
2023-08-07 14:10:57 -04:00
ian
3393216328 Disable TinyMCE only after editor has been initialized (#19346)
* Disable tinymce only after editor has been initialized

* Create old-zoos-relax.md

* Update changeset

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-07 12:25:51 -04:00
Kevin Lewis
4b27abc864 Updated main quickstart to make self-hosted more prominent (#19367)
* Include vitepress tabs plugin

* Update quickstart to make self-hosting more clear

* rewrite intro

* Fixed formatting

* Prettier with newline

* Typo fix

* Update docs/package.json

* Update pnpm-lock

* Format getting-started

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-08-07 16:13:41 +00:00
Nitwel
84ecefabf9 Add option for lazy loading image (#19353)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: ian <licitdev@gmail.com>
2023-08-06 02:02:10 +00:00
Kevin Lewis
299977b5d5 SEO improvements for dev blog (#19343)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-04 11:21:37 +00:00
Rijk van Zanten
00d170c016 Update relational.md
Fixes #19339
2023-08-03 19:09:45 -04:00
Bryant Gillespie
8ab73b2c0f Add Developer Blog to /docs (#19049)
* wip

* Added guest author details

* Adding guidelines

* avatar fixes

* extract Badge component

* Add links in header and sidebar

* add lazy loading for article images

* get user_created fields

* refactor post page

* refactor blog index page

* refactor data fetching to developer_articles

* fix avatar image position

* avatar cleanup

* lint fixes

* lint fixed

* fix formatting to pass checks

* pull in blog data

* add blog tags to sidevar

* flex article card meta to align across grid

* remove unneeded date formatters

* tagging support

* fixes for blog index page

* avatar cleanup

* dev blog post metadata

* Fix edit link for blog pages

* unneeded util

* fix tags condition

* fix lint errors

* dark mode fixes

* Main Listing

* TagsIndex Styling

* ADjusted the PostMeta component, shifted component directories

* Fixed broken data file

* Prettier

* remove articles that aren't published from tags

* sort 1th and 2th

* fix sidebar conflict

* Latest posts first

* removed sort on tags pages

* Dev blog items to landing page

* Order posts on tag pages

* Linting

* Fix tag pages when article values are null

* Sidebar: remove tags, add guest author, perma-open

* Blog link on docs home

* Fix blog button on landing page

* Prettier

* Default description

* Default OG Image

* Add meta tags to docs blog post

* Prettier

* Hardcoded colors now variables

---------

Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-03 15:27:18 -04:00
Hey... It's ruffiØ!
93ef89321d SSO Examples URL Update (#19325)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-02 13:24:50 +02:00
Rijk van Zanten
59c574f7b8 Refer to endoflife.date rather than manually listing database support (#19319)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Kevin Lewis <kvn@lws.io>
2023-08-02 11:16:05 +00:00
Daniel Biegler
cd2d601fbe fix unexpected error when showing only selected checkbox values w/o defaults (#19321)
* fix unexpected error when showing only selected checkbox values w/o default

* add myself to contributors list

* replace spans with buttons, disable when theres no value

* run prettier formatting

* add changeset

* Disable hover when button is disabled

---------

Co-authored-by: ian <licitdev@gmail.com>
2023-08-01 20:59:41 +02:00
Esther Agbaje
dd00703c83 Update Project Settings (#19318)
* docs: moved project settings from cloud to general

* docs: update sidebar

* docs: update redirects
2023-08-01 10:29:33 -04:00
Pascal Jufer
84eee63dbf Allow to pass type to useItem & fix User type (#19308)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2023-08-01 12:48:35 +00:00
Bryant Gillespie
527708a328 Fix missing info on reusable components guide (#19316) 2023-08-01 14:40:44 +02:00
Nitwel
1d00b29af3 Add max size to markdown interface (#19305)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-08-01 12:33:18 +00:00
Brainslug
91c4863f22 Improving SDK types (#19286)
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-07-31 17:52:08 +02:00
Pascal Jufer
318c77270f Fix deps definition of @directus/types (#19296) 2023-07-31 11:09:59 +02:00
Pascal Jufer
e18bb2194f Fix full code sample in React Real-Time guide (#19299) 2023-07-30 16:34:36 -04:00
nebojsa
4d88cfcf86 📜 fix typo : missing tag closing sign (#19293) 2023-07-29 12:57:11 +02:00
rijkvanzanten
e701313191 v10.5.2 v10.5.2 2023-07-28 13:07:10 -04:00
rijkvanzanten
0b64b0fd45 v10.5.2 2023-07-28 13:06:42 -04:00
Bryant Gillespie
1b70e98e72 Fix Bookmark Icon on Collections (#19287) 2023-07-28 11:59:47 -04:00
Pascal Jufer
bb59633c2d Correct docs for corresponding field for M2M relationship (#19284) 2023-07-28 10:59:55 -04:00
Pascal Jufer
99d1a64553 Update TinyMCE to fix issue with readonly mode (#19280)
* Update TinyMCE to fix issue with readonly mode

* Add changeset
2023-07-28 09:42:41 -04:00
Brainslug
13525107d2 Request output parsing improvement for the SDK (#19283)
* improve request output formatting

* stop relying on null for output formatting

* Create warm-owls-sleep.md
2023-07-28 09:41:06 -04:00
Pascal Jufer
aa2d63bda9 Remove accidentially added npm lockfile in docs (#19281) 2023-07-28 14:26:48 +02:00
Ilia Belov
683502c771 Fix "Invite user" SDK example in docs (#19277) 2023-07-28 12:01:46 +00:00
Rijk van Zanten
b00a0db0da New Crowdin updates (#19262)
* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Italian)
2023-07-28 03:35:29 +02:00
GitStart
6f004f8428 Enable usage of Home and End keys in input fields (#19273)
Co-authored-by: RubensRafael <rubensrafael2@live.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-07-28 03:34:58 +02:00
Pascal Jufer
ce099a0337 Enhance user fetching on user detail page (#19257)
* Enhance user fetching on user detail page

* Add changeset

* Get avatar ID from flat response
2023-07-27 13:52:16 -04:00
Pascal Jufer
84cbc31d18 Delay retrieving context for conditions (#19271)
* Delay retrieving context for conditions

* Add changeset
2023-07-27 13:51:28 -04:00
Brainslug
5c3e7a7a9d Initial SDK release fixes (#19270)
* moved @directus/types to dependencies

* fixed nested partial usecases

* remove json fallback in request helper

* fixed multipart boundary error

* Remove unnecessary tsup option

* Added missing login options

* ran prettier

* Create itchy-impalas-dream.md
2023-07-27 13:27:38 -04:00
Hey... It's ruffiØ!
9af30cccee Update Docs Config For SSO Example Link (#19272)
* Update config.js

Make the SSO examples more prominent in the sidebar

* missing }

my laptop keyboard plays tricks on me

* Update contributors.yml

* Run formatter

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-07-27 13:25:20 -04:00
ian
171fa67dd9 Add details of websocket auth modes to config options (#19267) 2023-07-27 18:30:38 +02:00
Pascal Jufer
9a675880ab Align example SDK URL in docs (#19256) 2023-07-27 00:45:48 +02:00
Pascal Jufer
cae8c72097 Proper active link match for 'Developer Reference' in docs (#19254) 2023-07-26 22:21:24 +02:00
Esther Agbaje
00f328994b Update docs (#19253)
* docs: install dependencies

* docs: update navigation wording

* docs: add block editor to fields

* update alt text

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

* add punctuation

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

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-07-26 13:52:29 -04:00
rijkvanzanten
f3d3ee1292 v10.5.1 v10.5.1 2023-07-26 10:34:54 -04:00
rijkvanzanten
71eb32aaa6 v10.5.1 2023-07-26 10:33:22 -04:00
Pascal Jufer
479c5b55b7 Fix URL seralizing of trailing slashes after adding paths (#19252)
* Fix URL seralizing of trailing slashes after adding paths

* Create rare-shrimps-rescue.md

* Clean-up

* More precise changeset summary
2023-07-26 10:28:21 -04:00
rijkvanzanten
373cc9f4fa v10.5.0 v10.5.0 2023-07-25 17:36:33 -04:00
rijkvanzanten
73e01079d0 Add directus changeset 2023-07-25 17:35:46 -04:00
Pascal Jufer
5a57d163a6 Add changeset for SDK (#19241)
* Add changeset for SDK

* Update .changeset/swift-carrots-help.md

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-07-25 17:33:28 -04:00
Bevis Halsey-Perry
0c54f5a9ef Introduce SnippetToggler and New SDK Reference (#19110)
* items semi complete

* updated items page to use snippet toggler and migrated endpoint docs to use it

* updated files page to use snippet toggler and migrated REST and GraphQL endpoint docs to it

* updated activity page to use snippet toggler and migrated REST and GraphQL endpoint doc to it

* updated collections page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* updated dashboards page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated extensions page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated fields page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated flows page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated folders page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated notifications page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated operations page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated panels page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated permissions page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated presets page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated relations page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated revisions page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated roles page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Made headlines consistant with the rest of the doc pages

* Updated server page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated settings page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated shares page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated translations page to use snippet togglers and migrated REST endpoint docs to them

* Updated users page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated utilities page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated webhooks page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated authentication page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* Updated Global Parameters page to use snippet togglers where there are adjacent REST and GraphQL Examples

* Added SDK code snippets to items page and made generic variables consistant

* Added SDK code snippets to files  page and made generic variables consistant

* Few lang changes for files page

* Added SDK code snippets to activity page and made generic variables consistant

* Added SDK code snippets to collections page and made generic variables consistant

* Added SDK code snippets to dashboards page and made generic variables consistant

* removed query word from query parameter objects

* Added SDK code snippets to fields page and made generic variables consistant

* SnippetToggler border

* Used dynamic border color for snippettoggler heading

* Spacing top and bottom of snippet toggler in docs

* Removed extra HRs

* Remove manual TOC in query reference

* Small code styling change in items page

* Updated users page to use snippet togglers and migrated REST and GraphQL endpoint docs to them

* dashboards fixed up property names

* Small copy update on extensions page

* Updated keys in delete mult notifications REST

* Updated keys in operations

* Update keys in panel delete many

* Update keys in permissions

* Added quotes around generic example ID strings

* Added code formatting to final example in share public info

* Format files

* Refined sidebar

* Insert newline before ending template tags

* Fixed extra closing tags, causing an error, un users ref

* Text Formatting Users

* Put GQL related notes inside toggler

* Added SDK code snippets to flows page and made generic variables consistant

* Added SDK code snippets to folder page and made generic variables consistant

* fixing whitepsace for flows and folders page

* Consistent newlines in SnippetToggler usages

* Run prettier

* Fix 'alwaysDark' definition

* Home page snippet toggler style fixes

* Fix snippet toggler lang hover color in light mode

* Introduce different code theme for light mode

* Added SDK code snippets to notifications page and made generic variables consistant

* Switch to 'material-theme-lighter'

* Format file

* Fix tip

* Fix tip in sdk ref

* Consistent spacing for custom containers

* Added SDK code snippets to operations page and made generic variables consistant

* Lint & format code blocks

* Lint & format operations

* Added SDK code snippets to panels page and made generic variables consistant

* Added SDK code snippets to permissions page and made generic variables consistant

* Added SDK code snippets to presets page and made generic variables consistant

* Added SDK code snippets to relations page and made generic variables consistant

* Added SDK code snippets to revisions page and made generic variables consistant

* Added SDK code snippets to roles page and made generic variables consistant

* Added SDK code snippets to server page and made generic variables consistant

* Added SDK code snippets to settings page and made generic variables consistant

* app_url -> directus_project_url

* Omitted auth details in delete multiple files

* Added quotes to values in roles

* Upload a file snippets

* Pluralization for upload/import files

* More files functions typos

* Added SDK code snippets to shares page (still missing createShare(s) as endpoint not functioning currently) and made generic variables consistant

* Added SDK code snippets to translations page (missing delete endponts because not working) and made generic variables consistant

* Added SDK code snippets to users page and made generic variables consistant

* Added SDK code snippets to webhooks page and made generic variables consistant

* Added SDK code snippets to utilites page (except cleaning cache, will be tested and added in later commit) and made generic variables consistant

* Added SDK code snippets to auth page (not login, refresh, and logout though due to errors)

* Added SDK code snippets for utilsExport and clearCache

* added github username be7DOTis to contributors

* Omit auth commands in updateComment

* utilsImport

* rename app_url generic value

* changed instances of updated*operation* to update*Operation*

* missed some 'updated' changse

* Added SDK Snippets to Query Parameters page

* Add section on file security

* added create(s)Shares SDK snippet to shares page

* added console.log to create snippets

* Added delete(s)Webhook SDK snippet to webhooks page

* Added SDK snippets to extensions page

* Added create/updateSingleton section to items page

* Links in files security

* Added SDK Snippets to Schema page

* Added GQL Generic examples to snippet togglers and removed snippet toggler from Login Using SSO Providers

* Added create(s)Presets SDK Snippets to presets page

* replaced fields query in generics snippets for a more generic

* replaced fields query in generics snippets for a more generic

* Use storage value only if valid choice

* Sync snippet togglers across page

* Update docs/reference/system/activity.md

* Update docs/reference/system/activity.md

* Update docs/reference/system/extensions.md

* Update docs/reference/system/revisions.md

* Update docs/reference/system/settings.md

* Update docs/reference/system/revisions.md

* Update docs/reference/system/settings.md

* Update docs/reference/system/activity.md

* Update docs/reference/system/roles.md

* Update docs/reference/system/roles.md

* Update docs/reference/system/roles.md

* Update docs/reference/system/roles.md

* Update docs/reference/system/schema.md

* Update docs/reference/system/server.md

* Update docs/reference/system/shares.md

* Replace all directus_project_url placeholders

* Revert "Sync snippet togglers across page"

This reverts commit 8b36f0d778.

* Update docs/reference/system/shares.md

* Update docs/reference/system/webhooks.md

* Clarify singleton section

* Consistent newlines between SnippetToggler templates

* Format files

* Remove console.log(result) statements from snippet

* Add examples for shares & users

Co-authored-by: Brainslug <tim@brainslug.nl>

* Fix hash GraphQL example

* Clarify update singleton section

* Add auth examples

Co-authored-by: Brainslug <tim@brainslug.nl>

* Final run on consistent newlines between SnippetToggler

* Switch to github themes

* The "Last One"

Co-authored-by: Brainslug <tim@brainslug.nl>

* The "Big One"

* Fix dead links

---------

Co-authored-by: Bevis Halsey-Perry <hi@be7.is>
Co-authored-by: Kevin Lewis <kvn@lws.io>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
2023-07-25 17:30:37 -04:00
Rijk van Zanten
4a9107aa71 New Crowdin updates (#19136)
* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Croatian)

* Update source file en-US.yaml

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Croatian)

* Update source file en-US.yaml
2023-07-25 15:09:04 -04:00