Commit Graph

115 Commits

Author SHA1 Message Date
Pyll Gomez
aeb4ec0472 API hooks for event added for auth.login (#4255)
* Rotate JPG image on upload #4206

* fixes #3949 width/height generated for gif and tif

* API hooks for event added for auth.login #4079

* updated doc for api hooks for new auth.login event

* Style tweaks

* Update docs

* Tweak docs some more

* Spelling error

* Allow non-required flags and pass to hook

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-24 10:37:13 -05:00
rijkvanzanten
8d67cffdbb Add note on interface groups
Ref #4256
2021-02-24 09:24:58 -05:00
Valentino Stillhardt
12a7c409a7 Update api-hooks.md (#4250)
I think it's worth mentioning that `items.create` is the same as the old (v8) `items.create.after`.
I personally tried putting .after and it didn't call, only to realize that it's not needed anymore.
2021-02-23 14:29:01 -05:00
Ben Haynes
c5f97b2a83 Update api-hooks.md 2021-02-23 11:01:13 -05:00
Rijk van Zanten
0beaf56dc3 Add on-error hook (#4233)
* Add on-error hook

Closes #2906

* Ignore unspecified listeners

* Document error hook
2021-02-22 19:00:53 -05:00
Bart van der Meeren
8df9cf4a43 Added 'npx' to db migrate (#4181)
Not sure if this is something that is commonly known, I just happend to run into it.
2021-02-19 11:22:08 -05:00
Rijk van Zanten
35117389e5 Update projects.md 2021-02-19 11:10:25 -05:00
Jerem Dlcn
a524526f9c Adding detail to Ubuntu deployment documentation (#4133)
* Adding detail to Ubuntu deployment documentation

* Update docs/guides/installation/ubuntu.md

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-02-17 13:19:39 -05:00
Rage Brahimi
eb90eba4c5 Update example for endpoints to pass error to next (#4098) 2021-02-16 14:35:39 -05:00
WoLfulus
813c731d27 Add config override support to env module (#4029)
* add override support for env module

* Override instead of merge w/ config file

* Default to reading .env instead of process.env

* Make env available in process.env

* Add docs for config-files

* Extend note

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-16 11:38:07 -05:00
rijkvanzanten
f11b9c9072 Add accountability to custom endpoint example
Fixes #4043
2021-02-15 13:51:59 -05:00
Rijk van Zanten
a5721c2c09 Update digitalocean-app-platform.md 2021-02-15 13:02:45 -05:00
rijkvanzanten
bb45c7f505 Add note on changing port in installing 2021-02-15 10:19:51 -05:00
Pablo Zehle
8c1402fb88 Update api-endpoints.md (#4012)
Line 62, .readByQuery({ sort: 'name', fields: <needs to be an array> })
Added the array implementation as a string will fail.
2021-02-11 10:07:23 -05:00
Ben Haynes
cc38da1314 unused docs page 2021-02-10 16:06:15 -05:00
Rijk van Zanten
df22a58c6a Update in-app docs (#3989)
* Fix root redirect

* Fix html in headings

* Add graphql syntax mode

* Install markdown-it + plugins

* Fix file copying on mac

* Replace md rendering engine

* Fix wrong links in guides

* Scroll to top on every route change

* Update in-app links

* Fix home redirect

* Fix deep-linking paths

* Add to reference

* Fix nested group scoping

* Fix open path reference
2021-02-09 18:31:25 -05:00
Ben Haynes
e1d36706aa migration docs 2021-02-09 16:52:04 -05:00
Ben Haynes
239c021f12 Updates to API Reference 2021-02-08 17:31:07 -05:00
WoLfulus
b8e7c80b72 Application initialization events (#3680)
* Adds `not_found` hook

* Separate hooks and endpoints initialization process

* Adds additional application events

* Remove unused import

* Change the event order to accound for notFound and errorHandler

* Change emitAsync.catch to use the emitAsyncSafe function

* Updated docs, reordered table by lifecycle and usage
2021-02-08 12:30:09 -05:00
Ben Haynes
f862f0f8f3 More docs! (#3953)
* 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

* link fixes

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-05 21:31:39 -05:00
rijkvanzanten
d25900d13f Remove unused file 2021-02-05 18:59:38 -05: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
Philleep Florence
c934dd17a6 1129.01 - Resolve links and images within the Docs Module. (#3760)
* 1129.01 - Resolve links and images within the Docs Module. Validate hint container blocks.

* Remove copy-to-app

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-01 17:15:58 -05:00
maggie0002
deba17d355 Update docker.md 2021-01-23 10:21:14 -08:00
maggie0002
d933c0a9d6 Close open ports for security improvement
- Ports are not required here, as all three containers share the same 'directus' network. They can communicate with each other internally. Opening the ports only exposes the database and cache to the world (the internet) unnecessarily, posing more of a security issue. 

- 'Container name:' ensures that the container adopts that specific name. While by default the container will start with the name specified at the top of each container section (i.e. directus, cache, database), if one of those names is occupied it risks reverting to an alternative, which will have networking implications as those specific hostnames are sought from the other containers. With 'container name:' set, it will return an error that the container name is in use. Adopting here the 'explicit is better than implicit' approach. 

'Depends on:' as the name suggests, ensures that the database and cache are up and running before Directus starts.
2021-01-23 10:15:59 -08:00
Ben Haynes
89a32352e1 update custom module boilerplate 2021-01-20 10:10:41 -05:00
Ben Haynes
f708645b1b add docs for private data variables 2021-01-20 10:04:25 -05:00
Philleep Florence
7a7026a3ca 1128.03 - Fix Broken Links . Update Installation and Contribution Guides 2021-01-15 16:11:53 -05:00
WoLfulus
09d45b9f93 Remove bundles from docs 2021-01-14 07:23:40 -03:00
Rijk van Zanten
4261d88499 Merge pull request #3594 from philleepflorence/docs
1128.01 - Fix Broken Links (Getting Started): Update installation guide.
2021-01-12 11:55:26 -07:00
Ben Haynes
8323264335 app translations docs WIP 2021-01-12 12:50:28 -05:00
Philleep Florence
afbe1de320 1128.02 - Fix Broken Links (Getting Started): Update installation guide. 2021-01-08 13:09:32 -05:00
Philleep Florence
f731b08b95 1128.01 - Fix Broken Links (Getting Started): Update installation guide. 2021-01-06 02:57:10 -05:00
Ben Haynes
9340a45615 Merge pull request #3565 from joewinger/main
Update phrasing fields.md
2021-01-03 21:21:29 -05:00
Joe Winger
2eb8d41d32 Update phrasing fields.md
"Keep in mind that Directus Fields are just a database columns." --> "Keep in mind that a Directus Field is just a database column."
2021-01-03 14:30:49 -05:00
Joe Winger
7332f3de90 Update phrasing collections.md
"Keep in mind that Directus Collections are just a database tables." --> "Keep in mind that a Directus Collection is just a database table."
2021-01-03 14:26:05 -05:00
Joe Winger
d2a84b8bf9 Fix typo items.md
Change "Archving" to "Archiving" in line 7.
2021-01-03 12:28:53 -05:00
Sebastian Kinzlinger
ca2fd85aef Update interfaces.md
Correct link for types.
2021-01-03 08:58:42 +02:00
Dugi
f44f3ca490 Update Full Example
Pass { schema: req.schema } as a second argument
2020-12-30 11:49:36 +02:00
Ben Haynes
4b14249c6b additional docs 2020-12-28 18:42:31 -05:00
WoLfulus
4782d38c54 Update docker-compose examples. 2020-12-21 13:13:55 -03:00
rijkvanzanten
a563fe81e7 Merge branch 'main' into build-packages 2020-12-16 16:28:14 -05:00
Nicola Krumschmidt
e66bd5a58a Fix admin credentials env var names in docker docs 2020-12-15 01:36:27 +01:00
Nicola Krumschmidt
cb49b87676 Fix formatting in docker docs 2020-12-15 01:35:54 +01:00
rijkvanzanten
2f9f7b8f44 Update mariaDB version 2020-12-11 17:28:16 -05:00
Ben Haynes
c0d1eeed25 docs updates 2020-12-09 19:05:01 -05:00
rijkvanzanten
7d8bc308f1 Update minimum required version of MySQL
Closes #3355
2020-12-08 16:19:32 -05:00
Jimmy Saenz
04b0dabdf9 Fix broken link (env variables) 2020-12-06 22:39:07 -06:00
rijkvanzanten
d352609a50 Add support for custom migrations extension 2020-12-02 15:51:58 -05:00