Commit Graph

91 Commits

Author SHA1 Message Date
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
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
Rijk van Zanten
1fb4db1fda Add _regex validation operator (#5089)
Closes #2917
2021-04-15 17:25:51 -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
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
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
Ben Haynes
feeb1e3a5b Missing Example headings 2021-04-08 17:08:17 -04:00
rijkvanzanten
2e5b053d99 Fix app links and old rest references 2021-04-08 15:36:11 -04:00
Rijk van Zanten
18b2fa99c6 API Reference 2.0 (#4916)
* Rework API reference to include GQL

* Almost done

* Finish API reference update

* Remove items nesting on gql in query params

* Update template examples to match

* Add link to files on assets overview
2021-04-08 15:34:31 -04:00
Dustin
632895eb68 Storage: S3 ACL & Content Type (#4694)
* add S3 env config for ACL. pass along file type for S3 upload

* add STORAGE_<LOCATION>_ACL to S3 docs
2021-04-07 12:15:47 -04:00
WoLfulus
a5564ce4d1 update sdk docs (#4881) 2021-04-07 10:11:58 -04:00
Nitwel
de1b6367f9 Clean up app reference (#4856)
* clean up app reference

* fix table
2021-04-06 10:08:47 -04:00
WoLfulus
3db8b9a1b3 Updated SDK docs and typing fixes (#4787)
* typing fixes

* docs update

* ignore compiled test dir

* use top level await syntax
2021-03-31 14:43:29 -04:00
WoLfulus
3c1204b928 SDK 2.0 (#4510)
* add new sdk

* update version

* fixes and sdk documentation

* typing updates, documentation

* added missing endpoints

* targeting minified version for unpkg

* removed unused types file

* fixed non minified versions

* fix sdk exports

* fix the fix

* Remove old sdk

* Remove old sdk docs

* Install types for Jest, add npm test

* Rely on npm exclusively

* Remove examples folder

* Move typescript down

* Update sdk.md

* added auto refresh and requested changes

added more http test calls
fixed typing issue in customized types

* remove unused endpoint

* updated docs

* added singletons, fixed typing issues, added password handlers

* rename graphql function and fixed system endpoint

* Remove unused imports, fix build

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Ben Haynes <ben@rngr.org>
2021-03-30 18:23:23 -04:00
Rijk van Zanten
f90c31b798 GraphQL 2.0 (#4625)
* Start on GraphQL "2.0", add methodnotallowed exceptoin

* Fix relative file pointer in peer dep

* [WIP] Add pre-filtered schema to SchemaOverview

* Use root schema as is, add reduce-schema util

* Use reduceSchema in the wild

* Base schema on local reduced schema

* Remove todo

* Use graphql-compose to build out schema

* Start restructuring resolvers

* Add create mutation

* Return boolean true for empty create mutation selections

* Add update mutation

* Add delete mutation

* Add system/items scoping

* Fix merge conflicts for real now

* Use system services, rename ids->keys

* Start on docs on mutations

* Updates to match main

* Add fetch-by-id

* Add one/many resolvers for mutations

* Check system collection rows for singleton

* Fix resolver extraction for single read

* Share delete return type

* Add comments

* Use collection root name for readable type

* Add specs endpoint for GraphQL SDL

* Update docs

* Add note on SDL spec

* Fix delete single example

* Remove package-lock

* Fix collection read scoping in non-read
2021-03-30 17:06:35 -04:00
Pyll Gomez
71c8c4cc2c Assets quality parameter #4557 (#4620)
* 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 issue 4557 for asset quality for thumbnail

* asset documentation is updated

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-22 20:08:44 -04:00
Juan Carlos Blanco Delgado
ae0df2ac4d Docs - Adding GraphQL Schema explanation to the docs (#4559)
* Adding GraphQL schema explanation to the documentation to make sure to avoid errors

* Adding extra line between headers
2021-03-17 22:20:36 -04:00
rijkvanzanten
c4394acd7b Support custom endpoint + fix prefix in flatlist
Fixes #4498
2021-03-12 17:23:38 -05:00
Pyll Gomez
998c31d7a0 Updated docs for sdk-js (#4503)
* 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

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-12 09:21:08 -05:00
rijkvanzanten
93c6b157a2 Add a URL allow list for invite urls
Closes #4456
2021-03-11 18:48:52 -05:00
Evgeny Vlasov
7bd5dc5c9f Add env for cookie domain (#4490)
* Add env for cookie domain

* fix doc

Co-authored-by: Власов Евгений <yavlas12@mts.ru>
2021-03-11 14:10:15 -05:00
YannickMol
9b0d778521 Update STORAGE_<LOCATION>_ENDPOINT environment variable description (#4388)
* Update STORAGE_<LOCATION>_ENDPOINT environment variable description

* Update docs/reference/environment-variables.md

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-03-08 16:48:57 -05:00
rijkvanzanten
e8222d2a28 Add reset_url allow list for password reset request 2021-03-08 13:48:59 -05:00
Sebastian Flick
9da34e1851 Update query.md (#4429)
prefix filter with `_` (necessary since rc45)
2021-03-08 08:52:57 -05:00
rijkvanzanten
acc8b4fd08 Use mssql instead of tedious for client name
Fixes #4427
2021-03-08 07:39:57 -05:00
rijkvanzanten
1e89c25872 Remove "locked" field from directus_fields
Closes #3925
2021-03-04 18:41:59 -05:00
Rijk van Zanten
30f631b0b2 Allow deeply nested queries with deep (#4384)
* Allow deeply nested query using _prefix

* Support deeply nested deep-queries

* Parse nested deep in GraphQL correctly

* Update docs
2021-03-04 12:59:54 -05:00
Nicola Krumschmidt
08293b8570 Update Knex to version 0.95.0 (#4374)
* Update Knex to version 0.95.0

* Fix formatting in schema dialects

* Fix Knex imports

* Update package-lock

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-03 19:37:44 -05:00
rijkvanzanten
a5cb9f6b6a Update docs, tweak type 2021-03-03 16:38:21 -05:00
Doron Cohen
f9ffb36a11 docs: fix broken link in config files page (#4321) 2021-02-28 03:09:11 -05:00
rijkvanzanten
c2a5622cef Remove unused environment variable 2021-02-26 10:49:19 -05:00
Rijk van Zanten
1fcb38b7c8 Update authentication.md 2021-02-26 10:06:27 -05:00
Ben Haynes
5fb42db374 Update assets.md 2021-02-25 18:11:06 -05:00
Manuel Schoebel
59464bacf8 Add documentation on how to download an asset as a file (#4303) 2021-02-25 17:41:14 -05:00
rijkvanzanten
0951bf8b98 Tweak relational docs 2021-02-25 16:08:04 -05:00
Pyll Gomez
62eb1484b6 Docs Spell check (#4299)
* 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

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-25 15:09:44 -05:00
Rijk van Zanten
b0f3c0591a Add "explicit" o2m update syntax (#4295)
* Add support for a new o2m relational update structure

* Document these wonders
2021-02-25 14:08:57 -05:00
Nitwel
c2e7c85bbd Update documentation of app (#4222)
* move component docs to documentation

* update app docs tables for components

* update docs

* Add components to docs sidebar

* fix generated tables

* fix tables

* rename transitions

* update tables

* update nested components

* update tables

* update tables

* update tables

* update v-table table

* add basic documentation to each component

* remove all stories of storybook

* add missing documentation

* undate tables

* update tables

* update docs sidebar

* update app docs

* remove unused references

* add general readme

* update docs

* make reference titiles smaller

* add reference tag

* improve docs

* update order of tabs in sidebar

* remove all readmes and stories from interfaces/displays

* Cleanup menu

* Remove storybook

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-24 17:48:19 -05:00
rijkvanzanten
5908822ea9 Fix between query validation, add example to docs
Fixes #4269
2021-02-24 10:44:20 -05:00
Tyler Forest-Hauser
e076fad3a8 Attempt to improve Config Files doc (#4252)
• Adds a basic example to attempt to illustrate how to use different config file formats.
2021-02-23 14:40:38 -05:00
rijkvanzanten
81bb7cfa53 Allow configuring the connection pool size
Closes #3165
2021-02-22 20:19:08 -05:00
Rijk van Zanten
f87cbb5824 Make max-payload-size configurable (#4232)
* Make max post size configurable

Closes #2925

* Document max payload size env var
2021-02-22 18:35:07 -05:00
Juan Carlos Blanco Delgado
7dee95e8aa Adding syntax prefix parsing to specific types instead of only string var (#4190)
* Adding syntax prefix parsing to specific types instead of only strings env variables

* Update api/src/env.ts

* Update docs/reference/environment-variables.md

* Update docs/reference/environment-variables.md

* Ignore pre-parsed types

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-02-22 11:36:24 -05:00
Juan Carlos Blanco Delgado
33f6d1870f Updating docs of the JS SDK (#3816) 2021-02-18 18:13:43 -05:00
Rijk van Zanten
35830a5dfe Move Flydrive home and implement Azure (#4110)
* Add new packages

* Update docs

* Update linked packages

* Setup file pointers

* Don't require getStream to be async

* List credits

* Load azure in storage

* Fix typo in docs

* Fix another typo

* Remove not about raising an issue
2021-02-16 18:33:50 -05:00
rijkvanzanten
c4057377b6 Add note on SameSite
Ref #4097
2021-02-16 16:32:28 -05:00
YannickMol
7830453cfc Align CORS environment variables between middleware and cos (#4099)
* Align CORS environment variables between middleware and cos

Fixes #4080

* Move CORS environment variables to env.ts
2021-02-16 14:56:09 -05:00