Commit Graph

437 Commits

Author SHA1 Message Date
rijkvanzanten
a86c0832b0 v9.0.0-rc.64 2021-05-07 16:36:58 -04:00
rijkvanzanten
5df6696bc0 v9.0.0-rc.63 2021-05-07 14:42:29 -04:00
rijkvanzanten
d912f070f3 Clarify /graphql vs /graphql/system 2021-05-05 15:05:00 -04:00
rijkvanzanten
010eabad27 Format remaining md files 2021-05-04 18:52:08 -04:00
dependabot[bot]
e597fcff56 Bump npm-watch from 0.7.0 to 0.9.0 (#5445)
Bumps [npm-watch](https://github.com/M-Zuber/npm-watch) from 0.7.0 to 0.9.0.
- [Release notes](https://github.com/M-Zuber/npm-watch/releases)
- [Commits](https://github.com/M-Zuber/npm-watch/compare/v0.7.0...v0.9.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 09:30:29 -04:00
dependabot[bot]
ac98d49653 Bump directory-tree from 2.2.7 to 2.2.9 (#5443)
Bumps [directory-tree](https://github.com/mihneadb/node-directory-tree) from 2.2.7 to 2.2.9.
- [Release notes](https://github.com/mihneadb/node-directory-tree/releases)
- [Commits](https://github.com/mihneadb/node-directory-tree/compare/2.2.7...2.2.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 09:29:49 -04:00
João
b20a394f51 Update SDK docs and code to match API (#5437) 2021-05-03 14:46:05 -04:00
Pyll Gomez
09b19b9191 Session store knex (#5432)
* 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

* SDK - Persistent login refresh fixes #4113

* Fixed #4145 SDK, Token Expired error

* Spell check

* Docs Spell check

* Docs Spell check

* Docs Spell check

* update docs for sdk-js

* To delete all expired session from db on login

* corrected the condition for the delete

* changed the from Date.now to new date .

* Move it inline

* Added Knex option for Session store

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-03 11:46:42 -04:00
rijkvanzanten
c653b16729 v9.0.0-rc.62 2021-05-03 09:32:25 -04:00
Pascal Jufer
b312ab84f5 Small fixes and addition in docs (#5417) 2021-05-02 08:42:01 -04:00
Rijk van Zanten
a3898fa321 Add SESSION_STORE options (#5403)
* Allow configuring the session storage driver

Fixes #3814

* Document SESSION_STORE env var

* Add missing dependency

* Docs tweak
2021-04-30 18:18:39 -04:00
Pascal Jufer
26ca4a7717 Docs: Remove dead link, add reference to whole introduction guide (#5383)
instead
2021-04-30 07:36:10 -04:00
Rijk van Zanten
a64a5a124a Add files.upload hook (#5334)
* Allow events to be disabled

* Add files.upload, silence create/update on upload

Fixes #4728

* Document files.upload hook
2021-04-28 17:54:03 -04:00
YannickMol
8145bc05b1 Update styles.md (#5325) 2021-04-28 08:51:35 -04:00
Pascal Jufer
ba3e5eb16a Clarify SQLite setup when running Directus locally (#5271) 2021-04-27 10:01:16 -04:00
Pascal Jufer
f19cf1070c Fix some points in SDK documentation (#5273)
* Change confusing statement about storage adapter

Mainly used to store auth token / expiration
Refresh tokens only in JSON mode

* Remove 'time' option in 1st example since described in 2nd example

* Add infos about options.refresh on Auth
2021-04-27 09:57:49 -04:00
João
1973969265 Update query.md 2021-04-27 10:51:46 -03:00
rijkvanzanten
3e89bcc239 v9.0.0-rc.61 2021-04-26 18:49:04 -04:00
Rijk van Zanten
d25c35fee7 Add MailService (#5265)
* Create MailService

Fixes #5229, ref #3372, #4664, #4858, #5090, #3104, #3465, #2774, #3741

* Fix path to templates extensions

* Add mailservice example to hooks docs
2021-04-26 17:55:34 -04:00
João
63c45a6ae4 Fix SDK docs example 2021-04-26 11:37:25 -03:00
rijkvanzanten
5d338083da Fix tags in docs
Fixes #5140
2021-04-23 17:54:48 -04:00
Rijk van Zanten
f1e2338142 Add auth password policy / login attempts support (#5225)
* Check auth password policy on user modifications

* Show validation errors in drawer-batch

* Allow custom password policy, add placeholder

* Add UserSuspended exception

* Add user suspended error translation

* Move rate limiter creation into root helper

* Add login attempts support to authentication service

* Don't authenticate into settings service when checking password policy
2021-04-23 17:42:46 -04:00
João
c2d634162e Typo on libvips 2021-04-23 11:59:52 -03:00
rijkvanzanten
3354066983 Add union type example to docs
Closes #5161

Squashed commit of the following:

commit 8ef6770185cf4d3bcdcda0c41e98a6f3ef0c4e1f
Merge: 775ceaccc 2ca5fdb86
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Fri Apr 23 10:42:54 2021 -0400

    Merge branch 'main' into patch-1

commit 775ceaccc4
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Fri Apr 23 10:41:59 2021 -0400

    Cleanup union type docs

commit 1000988c32
Author: neo7-studio-web <18073828+neo7-studio-web@users.noreply.github.com>
Date:   Tue Apr 20 15:01:02 2021 +0200

    Add a M2M GraphQL query example
2021-04-23 10:47:17 -04:00
rijkvanzanten
d9b0fc1e33 v9.0.0-rc.60 2021-04-22 17:59:11 -04:00
João
af13cfe18e Change token and auth handling behavior. (#5203)
* change tokens and authentication handling/refresh

* update sdk docs
2021-04-22 17:54:30 -04:00
Thibault SOUQUET
dae9de554a Add missing closing / (#5186) 2021-04-21 16:28:24 -04:00
rijkvanzanten
22535bf566 Resolve TKs/@TODOs in docs
Fixes #3287
2021-04-21 15:57:26 -04:00
rijkvanzanten
5acde209cf Fix assets import 2021-04-21 14:49:29 -04:00
Rijk van Zanten
b40c62d257 Add support for SEARCH method (#5183)
* Add search method support for advanced get

* Add docs for SEARCH
2021-04-21 13:35:16 -04:00
Ben Haynes
8169181d00 ref #3287 2021-04-20 19:17:59 -04:00
Rijk van Zanten
3b05372713 Finalize services API (#5170)
* Start the xOne/xMany work

* Update update/upsert

* Finish updating itemsservice

* Add comments, add nested revisions on update

* Use new internal api

* Update collectionService to one/many structure

* Move files to one/many structure

* Move permissions to one/many structure

* Move relations service to one/many structure

* Move roles to one/many structure

* Move users service over

* Move webhooks to updated structure

* Move deprecated methods to the bottom

* Replace deprecated uses

* Use new methods in controllers, add batch update/delete by query

* Use updated methods in API

* Fix email being required

* Remove unnecessary DB call

* Fix batch update/delete validation
2021-04-20 18:06:27 -04:00
João
6763908070 Tweaks 2021-04-20 11:42:16 -03:00
João
73c14492b3 Fix tabs 2021-04-20 11:40:28 -03:00
João
3900e19ddb Update docker.md 2021-04-20 11:38:18 -03:00
Alex Tremblay
88bf146fbb docs: add API-using examples to module and layout guides (#5110)
* docs: add API-using examples to module and layout guides

* Update docs/guides/layouts.md

* Update docs/guides/layouts.md

* Update docs/guides/modules.md

* Update docs/guides/modules.md

Co-authored-by: Alex Tremblay <alex@tremblay.in>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-16 15:44:13 -04:00
Pyll Gomez
c3ef71298c Add oauth hook (#5045)
* 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

* SDK - Persistent login refresh fixes #4113

* Fixed #4145 SDK, Token Expired error

* Spell check

* Docs Spell check

* Docs Spell check

* Docs Spell check

* update docs for sdk-js

* To delete all expired session from db on login

* corrected the condition for the delete

* changed the from Date.now to new date .

* Move it inline

* Fixes #4653

* added docs and cleaned up the hooks payload

* use req.accountability

* added req.params.provider to payload

* provide scope for login

* docs updated for oauth hook

* Update api/src/controllers/auth.ts

* updated provider to redirect and docs

* added payload

* Make schema available in redirect hook

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-16 15:51:15 +00:00
Rijk van Zanten
1fb4db1fda Add _regex validation operator (#5089)
Closes #2917
2021-04-15 17:25:51 -04:00
rijkvanzanten
0dfad1e96e v9.0.0-rc.59 2021-04-15 12:09:58 -04:00
rijkvanzanten
16b1a4e76e v9.0.0-rc.58 2021-04-14 19:52:03 -04:00
Nicola Krumschmidt
726420576b Fix extension build documentation (#5065) 2021-04-14 22:18:02 +00:00
Nicola Krumschmidt
b2ff80cb74 Add the build step to the running locally docs (#5055) 2021-04-14 10:45:12 -04:00
Salvador Gómez
e2558eb6ed Fix a typo (#5034)
Changed the word body to source in line 88 to match the paragraph.
2021-04-13 13:30:47 -04:00
rijkvanzanten
1bfa128308 v9.0.0-rc.57 2021-04-09 20:30:10 -04:00
WoLfulus
42393951e0 Test runners for storage drivers (#4716)
* add tests to drive

* add azure test runner

* add gcs test runner

* add s3 test runner

* quick changes

* Re-add npm run dev

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 15:40:12 -04:00
Ben Haynes
5d538a1369 Add warning on read field permissions 2021-04-09 12:59:51 -04:00
Rijk van Zanten
c2e4100e55 Add root_redirect option (#4937)
* feat: don't expose admin url (optional)

* Rename REDIRECT_TO_ADMIN -> ROOT_REDIRECT, add docs

Co-authored-by: Michael Mullins <mullinsmikey@users.noreply.github.com>
2021-04-09 11:34:50 -04:00
rijkvanzanten
f8f843e5be v9.0.0-rc.56 2021-04-08 17:41:53 -04:00
Ben Haynes
753cf28110 Docs assets ToC 2021-04-08 17:08:45 -04:00
Ben Haynes
4922d5008d Docs query ToC 2021-04-08 17:08:33 -04:00