Commit Graph

37 Commits

Author SHA1 Message Date
rijkvanzanten
02747d9afc Fixed typo 2022-03-11 10:23:59 -05:00
Dominic Marcelino
625c89f74c Update hooks.md - add system collection "files", fix payload parameter (#12094)
* Update hooks.md

* Delete event does not contains the whole payload but the payload keys
* files filter and hooks exist except for create/update

* Update docs/extensions/hooks.md

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-03-11 09:50:25 -05:00
Rijk van Zanten
eec21d8d9a Add "items.sort" event (#11954)
* Adds the 'sort_updated' event emit after items are sorted

Signed-off-by: Mihovil Ilakovac <mihovil.ilakovac@gmail.com>

* Updates the event name to 'sort_update'. Docs.

Signed-off-by: Mihovil Ilakovac <mihovil.ilakovac@gmail.com>

* Updates the event name to `sort`

* Add item/to to hook, fix docs

Co-authored-by: Mihovil Ilakovac <mihovil.ilakovac@gmail.com>
2022-03-04 19:58:47 -05:00
Rijk van Zanten
eea9f45624 Add authenticate hook to implement custom auth checks against current request (#11942)
* Add "authenticate" filter hook that allows custom auth check

* Start on test

* Update Jest, restructure API tests, start implementing authenticate test

* Move access token verify to util function

* Ensure jest can show inline warnings on correct lines

* Update is-directus-jwt to use jsonwebtoken decode + add tests

* Remove unused package

* Tweak and finish + test authenticate

* Tweak test

* Add authenticate filter to docs

* Don't scan tests for codeql

* No seriously, ignore tests
2022-03-03 16:29:13 -05: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
Nicola Krumschmidt
0d9de79abf Add documentation for EXTENSIONS_AUTO_RELOAD (#10922)
* Add documentation for EXTENSIONS_AUTO_RELOAD

* Add note to creating-extensions as well

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-01-10 09:37:56 -05:00
Brainslug
35c3f90c9a added event emitter to extension context and updated docs (#10529) 2021-12-15 21:29:06 +00:00
Azri Kahar
4d909cfa30 fix links to types (#10467) 2021-12-13 08:45:29 +00:00
Azri Kahar
f071a4a933 add custom panel extensions template & docs (#10386) 2021-12-08 11:13:10 -05: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
Azri Kahar
19cbe896b4 docs updates on file library, content sidebar etc (#10334) 2021-12-06 09:36:00 -05:00
Rijk van Zanten
032ec99be1 Add note to enable module in settings after completion (#10280)
Fixes #10259
2021-12-03 11:42:41 -05:00
Oreille
e03bb391b0 Add items.read filter hook (#10279) 2021-12-03 16:37:04 +00:00
Łukasz Szcześniak
e17048e653 Remove runMigrations from database install (#9911) (#10003)
* Remove `runMigrations` from `database install` (#9911)

* Fix typo (#9911)

* Remove unnecessary import (#9911)
2021-12-02 16:05:54 -05:00
Jay Cammarano
57494d8cca removed security hole (#10174) 2021-11-30 21:28:33 +00:00
rijkvanzanten
24c7ac5f61 Fix build by removing inline v-pre
@azrikahar apparently the app build really didn't appreciate that v-pre on code 🤔
2021-11-24 17:41:44 -05:00
Jay Cammarano
2e821f1b2c Reorganize the Hooks Documentation (#10033)
* reorganized hooks

* clean up text

* reordered performance warning

* create a hook rework

* spelling
2021-11-24 17:12:29 -05:00
Azri Kahar
f263dcf4db prevent interpolation for url variable (#9836) 2021-11-24 17:11:23 -05:00
Azri Kahar
da3808b50f Add references for social & material icons (#9689) 2021-11-10 10:29:40 -05:00
José Varela
ca19cb1a99 emit auth.jwt on refresh (#9661) 2021-11-09 14:01:38 -05:00
gkielwasser
053d2a6a37 Expose server instance in action hook 'server.start' (#9616)
* Expose server instance in action hook 'server.start'

* Expose server in start/stop

* Update documentation
2021-11-09 16:28:24 +00:00
Azri Kahar
82e62bc113 Minor docs fixes (#9553) 2021-11-06 16:04:22 -04:00
Tyler Forest-Hauser
3cbd908839 Small fixes for Hooks documentation (#9497)
Remove erroneous closing bracket and remove index position from input as it should be an object in this context, not an array.
2021-11-04 23:16:09 +00:00
Nicola Krumschmidt
7fcebf3768 Clarify hook register function parameter descriptions in docs (#9489)
* Clarify hook register function parameter descriptions in docs

* Update package-lock.json

* Update docs/extensions/hooks.md

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

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2021-11-04 17:03:15 -04:00
Nicola Krumschmidt
3d0e086c55 Rework hook registration (#8027)
* Rework hook registration

* Remove event and action fields from hook payloads

* Move "error" action to "request.error" filter

* Emit meta and context objects in filters and actions

* Run filters sequentially

* Update hook templates

* Fix CLI hook test

* Also emit `<collection>.items.crud` when emitting `items.crud`.

* Update hook docs

Co-authored-by: Oreilles <oreilles.github@nitoref.io>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-03 17:18:56 -04:00
Jay Cammarano
28c59c2dc4 fixes many dead links (#9325) 2021-11-01 21:11:12 +00:00
Ben Haynes
fa816107cc add content and fix broken links (#9321) 2021-11-01 16:52:07 -04:00
Ben Haynes
6ec467e1dc Fixes for docs links 2021-10-29 12:32:02 -04:00
Jay Cammarano
29b0fb9b8b Fixes broken links in docs (#9172)
* first half of broken links fixed

* next chunk of broken links resolved

* next chunk of urls

* last chunk of links

* one more

* filter rules

* homepage links

* removed localhost

* filter rules for query

* updated links

* relationships link

* changed links from references to glossary
2021-10-27 17:22:43 -04:00
Aiden Foxx
b6cb3253f6 Added the provider to auth hooks (#9059)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-26 15:36:08 -04:00
Rijk van Zanten
cfe9d0ffb9 Re-add missing oauth docs (#9170) 2021-10-26 14:17:15 -04:00
Ben Haynes
1b87e4555f Docs structure (#9071)
* WIP

* updates

* docs updates

* structure

* big structure update

* docs module icon change

* in-app docs nav

* more content and structure changes

* Remove redundant

* Fix docs build in app

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-25 21:19:23 -04:00
Rijk van Zanten
817ccf3620 Overhaul docs (#3951)
* Add Quickstart Guide

* Update installation

* Remove unused files

* Update support/backing

* Tweaks in concepts

* Setup file structure for API reference 2.0

* Setup page layout for reference

* Add clean-urls plugin

* getting started updates

* Finish authentication rest

* getting started updates

* Render stylus in 2 spaces

* Various

* Various

* Finish activity docs

* Add collections reference

* Add extension reference

* concepts updates

* Fields/tweaks

* Add files doc

* Add revisions

* concepts docs

* More api reference

* Finish rest api reference (finally)

* initial concepts

* More things

* Add assets api ref

* Move sections from file to assets

* Add environment variables

* contributing docs

* Add field transforms page

* Left align table headers

* concept links

* Add API config

* Fix mobile nav

* Add migrating a project

* doc link fixes

Co-authored-by: Ben Haynes <ben@rngr.org>
2021-02-05 18:51:54 -05:00
Rijk van Zanten
5450de0351 Update Docs (#3905)
* Allow formatted value display for numbers

* Move the docs website into monorepo

* Fix build

* Tweak docs build setup

* Fix tips, pull in images

* Add syntax highlighting to docs

* Restructure nav, add divider

* Fix tips formatting

* Add prettier config

* Add editorconfig
2021-02-02 11:55:04 -05:00