Compare commits

...

1791 Commits

Author SHA1 Message Date
Pilou
9f81ba9713 Merge pull request #956 from nhost/changeset-release/main
chore: update versions
2022-09-26 16:26:49 +02:00
Pierre-Louis Mercereau
2f815e5eb6 chore: correct version bump 2022-09-26 16:12:08 +02:00
Pierre-Louis Mercereau
2cabd2d29a Merge branch 'changeset-release/main' of https://github.com/nhost/nhost into changeset-release/main 2022-09-26 16:08:40 +02:00
github-actions[bot]
d4ee6cc756 chore: update versions 2022-09-26 14:00:32 +00:00
Szilárd Dóró
8208b1c385 Merge pull request #958 from nhost/fix/nextjs-ssg
fix (react-apollo): broken Next.js SSG
2022-09-26 15:59:15 +02:00
Johan Eliasson
4c6c094f71 Merge pull request #957 from nhost/fix/stripe-graphql-updates
stripe graphiql option + readme updates
2022-09-26 15:57:57 +02:00
Johan Eliasson
3dadc7eab9 Merge pull request #954 from nhost/fix/import-users
docs: import users
2022-09-26 15:56:05 +02:00
Johan Eliasson
784041020b Create spotty-wasps-remember.md 2022-09-26 15:55:49 +02:00
Szilárd Dóró
74758f2c36 fix (react-apollo): broken Next.js SSG
Fixes #873
2022-09-26 15:44:02 +02:00
Johan Eliasson
ea34a3856b update 2022-09-26 13:59:08 +02:00
Johan Eliasson
c9175b76d3 readme update 2022-09-26 13:57:57 +02:00
Pierre-Louis Mercereau
1c82522163 chore: undo major peer bumps 2022-09-26 13:45:47 +02:00
github-actions[bot]
5794357374 chore: update versions 2022-09-26 11:40:59 +00:00
Pilou
3edf41f989 Merge pull request #942 from nhost/webauthn-signup
WebAuthn: signup
2022-09-26 13:39:41 +02:00
Johan Eliasson
44f069a253 graphiql 2022-09-26 13:37:21 +02:00
Johan Eliasson
cb0988cb87 readme about impor users 2022-09-26 09:05:06 +02:00
Pierre-Louis Mercereau
27752ca8a7 chore: lint 2022-09-23 13:00:42 +02:00
Pierre-Louis Mercereau
855181abbc refactor: complete name consistency 2022-09-23 12:57:46 +02:00
Pierre-Louis Mercereau
bc0515bd59 Merge branch 'webauthn-signup' of https://github.com/nhost/nhost into webauthn-signup 2022-09-23 12:47:55 +02:00
Pierre-Louis Mercereau
271c401b1a refactor: 💡 consistent names, and adjust example nav 2022-09-23 12:47:34 +02:00
Pilou
cbed7cdc72 Update .changeset/old-games-talk.md
Co-authored-by: Johan Eliasson <johan@nhost.io>
2022-09-23 12:31:39 +02:00
Pilou
fca620f050 Update .changeset/grumpy-ghosts-kneel.md
Co-authored-by: Johan Eliasson <johan@nhost.io>
2022-09-23 12:31:33 +02:00
Pilou
5200a4f272 Update .changeset/angry-dragons-carry.md
Co-authored-by: Johan Eliasson <johan@nhost.io>
2022-09-23 12:31:16 +02:00
Pierre-Louis Mercereau
19458cf076 refactor: bump hasura-auth to v0.13.0 2022-09-23 11:25:48 +02:00
Pierre-Louis Mercereau
1a94359a81 fix: add security key nickname to sign up options 2022-09-22 11:57:26 +02:00
Pierre-Louis Mercereau
96001f683a docs: adapt react-apollo example to the blog post 2022-09-22 09:57:39 +02:00
Pierre-Louis Mercereau
dd08453fb5 chore: adjust from review 2022-09-21 19:27:22 +02:00
Pierre-Louis Mercereau
739a3c4563 chore: 🤖 update changesets 2022-09-21 15:07:00 +02:00
Pierre-Louis Mercereau
20f3eb9086 refactor: 💡 remove irrelevant test 2022-09-21 14:54:36 +02:00
Pierre-Louis Mercereau
7b5f8647fb test: 💍 security key sign up 2022-09-21 14:49:03 +02:00
Pilou
486ddec751 Merge pull request #945 from nhost/guicurcio-patch-3
Update README.md
2022-09-21 13:50:27 +02:00
Guido Curcio
6475047158 Update README.md 2022-09-21 04:47:03 -07:00
Pierre-Louis Mercereau
14b26bdbc7 Merge branch 'main' into webauthn-signup 2022-09-21 12:37:48 +02:00
Pierre-Louis Mercereau
8e4d790b04 feat: 🎸 sign up with an email and a security key 2022-09-21 12:34:01 +02:00
Johan Eliasson
d814c7b46b Merge pull request #944 from nhost/fix/graphql-stripe-js
Fix/graphql stripe js
2022-09-20 20:17:54 +02:00
Johan Eliasson
5baeddba0b removed tmp changeset 2022-09-20 20:14:34 +02:00
Johan Eliasson
0262723329 Merge branch 'main' into fix/graphql-stripe-js 2022-09-20 20:14:17 +02:00
Johan Eliasson
1cf8a58d2c updated version 2022-09-20 20:12:13 +02:00
Johan Eliasson
b9a19d8251 Merge pull request #943 from nhost/fix/graphql-stripe-js
changeset update
2022-09-20 19:40:45 +02:00
Johan Eliasson
465d248456 changeset update 2022-09-20 19:19:00 +02:00
Pierre-Louis Mercereau
9e4861f2bb refactor: sign-in screens 2022-09-20 16:46:49 +02:00
Johan Eliasson
4ca738ba56 Merge pull request #916 from nhost/feat/graphql-stripe
feat: Stripe GraphQL
2022-09-20 12:49:53 +02:00
Johan Eliasson
be27ed73e1 new lock file 2022-09-20 12:21:15 +02:00
Johan Eliasson
f4d81d33b9 Merge branch 'main' into feat/graphql-stripe 2022-09-20 12:17:54 +02:00
Johan Eliasson
730c7d7b28 update 2022-09-20 12:16:25 +02:00
github-actions[bot]
38de442a7f chore: update versions 2022-09-20 12:15:55 +02:00
Johan Eliasson
22b8f02504 Update packages/stripe-graphql-js/README.md
Co-authored-by: Pilou <24897252+plmercereau@users.noreply.github.com>
2022-09-20 12:13:59 +02:00
Pilou
79f268ea08 Merge pull request #931 from nhost/changeset-release/main
chore: update versions
2022-09-20 11:58:56 +02:00
Pierre-Louis Mercereau
24825adb08 feat: improve navigation and names 2022-09-20 11:48:59 +02:00
Johan Eliasson
96e59f0251 update 2022-09-20 11:18:53 +02:00
Johan Eliasson
9e43c320b9 remove unused variable 2022-09-20 11:04:03 +02:00
Johan Eliasson
f199ed5474 update 2022-09-20 11:03:33 +02:00
Johan Eliasson
2f00d7f309 updates 2022-09-20 10:44:54 +02:00
Johan Eliasson
d35dfb1aa0 readme update 2022-09-20 08:35:17 +02:00
Johan Eliasson
93f1d1944c rename 2022-09-19 17:05:05 +02:00
Johan Eliasson
efd3904966 update 2022-09-19 16:53:54 +02:00
Johan Eliasson
133e682e91 claims update 2022-09-19 15:57:34 +02:00
Johan Eliasson
72eebe538e reworked permissions a bit 2022-09-19 14:17:11 +02:00
Johan Eliasson
af313212f7 added metadata 2022-09-19 10:45:11 +02:00
Johan Eliasson
06b29f14fc minor updates 2022-09-19 09:40:16 +02:00
Johan Eliasson
4b960227cf README notice message 2022-09-19 09:37:14 +02:00
Johan Eliasson
a9e2db678d update 2022-09-16 16:33:57 +02:00
Johan Eliasson
4d0738d51c Create tiny-monkeys-jog.md 2022-09-16 15:47:16 +02:00
Johan Eliasson
1a8160632e merge 2022-09-16 15:44:51 +02:00
Johan Eliasson
084ea77355 Merge branch 'main' into feat/graphql-stripe 2022-09-16 15:43:17 +02:00
Johan Eliasson
19e5abb4a9 customers 2022-09-16 11:37:04 +02:00
Johan Eliasson
fe6514fa14 update 2022-09-16 11:14:08 +02:00
Johan Eliasson
92e9659cc7 invoice updates 2022-09-16 11:12:56 +02:00
Johan Eliasson
d5a2a259ce more invoice implementations 2022-09-15 15:19:41 +02:00
Johan Eliasson
6929c7f423 invoice updates 2022-09-14 18:38:34 +02:00
Pilou
d5f56f7e18 Merge pull request #934 from nhost/contributors-readme-action-nCzaq6ybCG
contributors readme action update
2022-09-13 11:04:57 +02:00
github-actions[bot]
6ddaf47a4b chore: update versions 2022-09-13 09:04:53 +00:00
github-actions[bot]
11200934a8 contrib-readme-action has updated readme 2022-09-13 09:03:26 +00:00
Pilou
653f6b5766 Merge pull request #910 from nhost/webauthn
Authentication with security keys and the WebAuthn API
2022-09-13 11:03:09 +02:00
Pilou
653c886ec0 Merge pull request #932 from eltociear/patch-1
Fix typo in init.mdx
2022-09-12 19:19:29 +02:00
Ikko Ashimine
ecba8f78ac Fix typo in init.mdx
Intialize -> Initialize
2022-09-13 02:17:44 +09:00
Pierre-Louis Mercereau
d7b5261f5a Merge branch 'main' into webauthn 2022-09-12 18:43:40 +02:00
Pierre-Louis Mercereau
164e8cac28 doc: inline 2022-09-12 18:35:54 +02:00
Pierre-Louis Mercereau
ad0d56416c refactor: don't list or remove security keys 2022-09-12 17:00:12 +02:00
Pilou
c47ba63dd9 Merge pull request #922 from nhost/workos
Add workos provider
2022-09-12 16:15:10 +02:00
Pilou
47fb75302f Merge pull request #924 from nhost/bump-hasura-auth-0.11
Bump hasura-auth to version 0.11
2022-09-09 21:24:47 +02:00
Pierre-Louis Mercereau
2c95ed2d14 refactor: another change in types 2022-09-09 11:21:53 +02:00
Pierre-Louis Mercereau
07eb26ca29 refactor: improve typings 2022-09-09 11:16:46 +02:00
Pierre-Louis Mercereau
90843a9feb refactor: early returns 2022-09-09 09:31:06 +02:00
Johan Eliasson
5e5a9d6efa updates 2022-09-08 16:16:29 +02:00
Pierre-Louis Mercereau
5fc3b643a7 Merge branch 'bump-hasura-auth-0.11' into webauthn 2022-09-08 12:42:23 +02:00
Johan Eliasson
a365cadbd7 stripe internally + dotenv fix 2022-09-08 12:29:51 +02:00
Pierre-Louis Mercereau
eb93a20bc0 chore: 🤖 bump hasura-auth version to 0.11 2022-09-08 12:23:00 +02:00
Pierre-Louis Mercereau
ac2cd3f34e revert: docgen 2022-09-07 13:15:25 +02:00
Pierre-Louis Mercereau
26cb0de087 test: webauthn 2022-09-07 12:48:13 +02:00
Pierre-Louis Mercereau
6d93aa4235 docs: add core to typedoc's hasura-auth-js 2022-09-07 11:40:43 +02:00
Johan Eliasson
8221664f61 payment methods completed 2022-09-07 10:48:27 +02:00
Johan Eliasson
9396bdbbe3 working 2022-09-07 09:35:33 +02:00
Johan Eliasson
63fd6abd54 enum updates 2022-09-07 09:21:54 +02:00
Pierre-Louis Mercereau
03d7083d3e feat: workos options types 2022-09-06 22:11:46 +02:00
Pierre-Louis Mercereau
618e5a8db2 chore: merge main 2022-09-06 22:00:03 +02:00
Pierre-Louis Mercereau
3a217fd490 style: use #graphql 2022-09-06 21:58:32 +02:00
Johan Eliasson
4e30b4ee21 allowed updated 2022-09-06 21:14:21 +02:00
Pierre-Louis Mercereau
9eb78e06db feat: add workos provider 2022-09-06 11:05:56 +02:00
Pierre-Louis Mercereau
3d7369a19e refactor: break blocks with return statements 2022-09-06 10:33:00 +02:00
Pierre-Louis Mercereau
8e03774bc1 refactor: types 2022-09-06 10:27:12 +02:00
Pilou
13937fa026 Update packages/react/src/useSecurityKeys.ts
Co-authored-by: Szilárd Dóró <doroszilard@icloud.com>
2022-09-06 10:24:14 +02:00
Pilou
9e57a2bfe6 Update packages/react/src/useSecurityKeys.ts
Co-authored-by: Szilárd Dóró <doroszilard@icloud.com>
2022-09-06 10:24:04 +02:00
Johan Eliasson
b07a61b8e4 updates 2022-09-06 10:00:06 +02:00
Johan Eliasson
f52336f698 restructure and started adding payment methods and subscriptions 2022-09-06 09:33:03 +02:00
Pierre-Louis Mercereau
bf4cc38f8d refactor: remove rp_id 2022-09-05 21:31:34 +02:00
Pierre-Louis Mercereau
4e7d1fbe90 docs: inline documentation 2022-09-05 21:12:12 +02:00
Pilou
5ff6876aea Merge pull request #918 from nhost/changeset-release/main
chore: update versions
2022-09-05 10:54:49 +02:00
github-actions[bot]
d392ed86fb chore: update versions 2022-09-05 08:27:06 +00:00
Johan Eliasson
2d6e95b8b5 cleanup 2022-09-05 10:25:34 +02:00
Pilou
3bbe09c4b1 Merge pull request #917 from nhost/fix-passwordless-email-options
fix: add options to `nhost.auth.signIn({ email, options })`
2022-09-05 10:25:30 +02:00
Johan Eliasson
648c880445 update readme 2022-09-05 10:23:26 +02:00
Johan Eliasson
c286a0bbb1 adding payment method 2022-09-05 10:16:12 +02:00
Johan Eliasson
745d9a958d using pothos instead 2022-09-05 10:13:08 +02:00
Pierre-Louis Mercereau
a47ce29173 fix: add options to nhost.auth.signIn({ email, options }) 2022-09-05 09:57:46 +02:00
Johan Eliasson
8c12b4117b updates 2022-09-05 07:57:04 +02:00
Pierre-Louis Mercereau
2f432b5c5f feat: useSecurityKeys 2022-09-03 22:25:32 +02:00
Johan Eliasson
afcced2417 readme update 2022-09-03 15:44:03 +02:00
Johan Eliasson
88fa68e74c update readme 2022-09-03 15:37:08 +02:00
Johan Eliasson
47b4a3ecf1 updates 2022-09-03 15:35:06 +02:00
Johan Eliasson
9095a0f6ae init 2022-09-03 15:21:47 +02:00
Pierre-Louis Mercereau
4629b952c6 refactor: change to "security key" terminology 2022-09-02 20:36:46 +02:00
Pierre-Louis Mercereau
f6cfca9288 refactor: change to "security key" terminology 2022-09-02 19:49:16 +02:00
Pierre-Louis Mercereau
b9c012e263 test: adapt navigation 2022-09-02 11:51:13 +02:00
Pierre-Louis Mercereau
0e112674a4 refactor: explicitly bundle simple webtauthn 2022-09-02 10:57:51 +02:00
Pierre-Louis Mercereau
0feac15d10 fix: bundle @simplewebauth into @nhost/core 2022-09-02 10:32:56 +02:00
Pierre-Louis Mercereau
f42b693aa2 feat: add webauthn to nhost.auth.signIn 2022-09-01 14:33:35 +02:00
Pierre-Louis Mercereau
9687581dc7 feat: add device nickname and adapt example 2022-09-01 14:24:24 +02:00
Pierre-Louis Mercereau
9bf938a507 refactor: rename to passwordlessWebauthn 2022-09-01 10:04:45 +02:00
Pierre-Louis Mercereau
06bc8856dd refactor: simplify 2022-08-30 22:41:21 +02:00
Pierre-Louis Mercereau
1c3c7c225f feat: wip webauthn 2022-08-30 22:21:35 +02:00
Pilou
42fba7a095 Merge pull request #907 from nhost/core-typings
fix: improve typings
2022-08-30 11:24:13 +02:00
Pierre-Louis Mercereau
0ff633760a Merge branch 'main' into core-typings 2022-08-30 11:09:05 +02:00
Pilou
6c51571182 Merge pull request #909 from nhost/bump-storage-version-0.2.4
ci: bump hasura-storage version to 0.2.4
2022-08-30 11:08:44 +02:00
Pierre-Louis Mercereau
3825a09aed ci: bump hasura-storage version to 0.2.4 2022-08-30 10:25:57 +02:00
Pierre-Louis Mercereau
1768b1e069 docs: comment types & interfaces 2022-08-30 09:23:53 +02:00
Pierre-Louis Mercereau
fba5c819ce fix: improve typings 2022-08-29 21:39:26 +02:00
Johan Eliasson
9dea25ebe1 Merge pull request #900 from nhost/changeset-release/main
chore: update versions
2022-08-25 10:58:02 +02:00
github-actions[bot]
9b063abe32 chore: update versions 2022-08-25 07:53:20 +00:00
Johan Eliasson
cea97ba333 Merge pull request #898 from nhost/changeset-iasgd9ad
adding changeset for storage upload
2022-08-25 09:52:09 +02:00
Johan Eliasson
607c457f9d adding changeset for storage upload 2022-08-25 09:14:56 +02:00
Johan Eliasson
6ea9ed69ce Merge pull request #893 from nhost/fix/storage-in-node
Make @nhost/storage-js work on non-browser environments
2022-08-25 09:03:16 +02:00
Johan Eliasson
6450dcc02e overloading 2022-08-25 08:20:31 +02:00
Johan Eliasson
0b18704d5b updates 2022-08-24 18:04:07 +02:00
Johan Eliasson
0c53f9034e adding empty functions folder for nhost-js 2022-08-24 15:07:52 +02:00
Johan Eliasson
0c90292779 adding correct health check endpoints and new vite config files where needed 2022-08-24 15:05:24 +02:00
Johan Eliasson
2333aeb0c8 no tests 2022-08-24 14:58:13 +02:00
Johan Eliasson
3b686a231b use GET request 2022-08-24 14:47:01 +02:00
Johan Eliasson
136b85c5fb add empty package.json in the functions folder 2022-08-24 13:53:30 +02:00
Johan Eliasson
3d715d5f95 wait for hasura console to be up' 2022-08-24 10:38:34 +02:00
Johan Eliasson
6d5295aeca exclude is not needed as we're using include 2022-08-24 10:29:26 +02:00
Johan Eliasson
45f6285249 vite config for storage-js 2022-08-24 10:21:02 +02:00
Pierre-Louis Mercereau
01fb999c7d ci: remove chown 2022-08-24 10:14:52 +02:00
Johan Eliasson
8b8412d5fa exclude paths for vitest 2022-08-24 10:11:51 +02:00
Pierre-Louis Mercereau
0f1311c5b0 ci: correct gh expression 2022-08-24 10:09:34 +02:00
Pierre-Louis Mercereau
6b197aa886 ci: chown package folder 2022-08-24 10:05:14 +02:00
Pierre-Louis Mercereau
0353c6648e ci: change permissions 2022-08-24 09:58:55 +02:00
Johan Eliasson
978b8f8f68 install cli as sudo 2022-08-24 09:37:06 +02:00
Johan Eliasson
3643449a9a update 2022-08-24 07:59:04 +02:00
Johan Eliasson
8e25971e7d move nhost folder 2022-08-24 07:44:24 +02:00
Johan Eliasson
5cf05c8731 correct config 2022-08-23 13:51:48 +02:00
Johan Eliasson
4da70abcfb cleanup 2022-08-23 13:50:31 +02:00
Johan Eliasson
2d5203872c delete test functions folder 2022-08-23 13:49:31 +02:00
Johan Eliasson
882f1531ab update types and docs 2022-08-23 13:47:48 +02:00
Johan Eliasson
6126d77b01 updated tests 2022-08-23 13:47:48 +02:00
Johan Eliasson
09debbd746 Merge branch 'main' into fix/storage-in-node 2022-08-23 12:12:51 +02:00
Johan Eliasson
604ed6b314 readme update 2022-08-23 12:12:11 +02:00
Johan Eliasson
2f1fec1dcf new tests 2022-08-23 12:07:19 +02:00
Johan Eliasson
293bdc3f1c Merge pull request #892 from nhost/changeset-release/main
chore: update versions
2022-08-23 08:55:17 +02:00
Johan Eliasson
70f537841f make storage work on server 2022-08-23 08:01:28 +02:00
github-actions[bot]
b670dc396b chore: update versions 2022-08-22 20:19:44 +00:00
Pilou
88800ba4b4 Merge pull request #786 from nhost/feature/fallback-to-1337
Use :1337 if no port is specified when using "localhost"
2022-08-22 22:18:01 +02:00
Johan Eliasson
d412669c86 removed pnpm lock files in examples 2022-08-22 22:01:03 +02:00
Johan Eliasson
8600acb6f2 Merge branch 'main' into feature/fallback-to-1337 2022-08-22 21:57:31 +02:00
Johan Eliasson
0e2e2344f2 Merge pull request #891 from nhost/fix-cli-update
CLI update fixes
2022-08-22 21:55:51 +02:00
Johan Eliasson
8a91673242 removed pnpm lock files in examples 2022-08-22 21:41:42 +02:00
Pierre-Louis Mercereau
63f27235be refactor: adapt sync-versions to the new cli 2022-08-22 21:34:53 +02:00
Johan Eliasson
7feadbe55d nhost cli updates 2022-08-22 21:25:19 +02:00
Johan Eliasson
98e5680f48 nhost-js package updated 2022-08-22 20:46:07 +02:00
Johan Eliasson
8d6ebf9032 updated config 2022-08-22 20:35:52 +02:00
Johan Eliasson
9feea987e6 remove tmp cypress folders 2022-08-22 20:25:16 +02:00
Johan Eliasson
c2d77bbb7c updated example with latest CLI 2022-08-22 20:18:46 +02:00
Johan Eliasson
4468654054 new config for new cli 2022-08-22 19:55:41 +02:00
Johan Eliasson
998291ea9d correct subdomain 2022-08-22 19:35:07 +02:00
Johan Eliasson
eb46f7d8b7 Create great-adults-compare.md 2022-08-22 19:33:32 +02:00
Johan Eliasson
7bc11a1985 subdomain don't need 1337 2022-08-22 19:31:58 +02:00
Johan Eliasson
0fadc0d3da code + nhost cli updates 2022-08-22 19:26:38 +02:00
Johan Eliasson
814856da0d Merge branch 'main' into feature/fallback-to-1337 2022-08-22 18:43:08 +02:00
Johan Eliasson
1bf5114d6b updates 2022-08-22 18:42:28 +02:00
Johan Eliasson
ed618e0c41 Merge pull request #887 from nhost/remove-templates
Remove templates
2022-08-22 18:14:11 +02:00
Pilou
8a272b5b72 Merge pull request #883 from nhost/docker-email-templates
docs: add email templates to docker-compose, and remove obsolete example
2022-08-22 16:53:43 +02:00
Johan Eliasson
2a0107db55 removed mentions of templates/ 2022-08-22 16:46:36 +02:00
Johan Eliasson
48a90c4f69 remove templates 2022-08-19 13:02:03 +02:00
Pilou
686d3f1b09 Merge pull request #884 from nhost/bump-hasura-2.10.1
Bump hasura version to 2.10.1
2022-08-17 17:59:24 +02:00
Pierre-Louis Mercereau
6b4b4a5798 chore: bump hasura version to 2.10.1 2022-08-17 08:27:59 +02:00
Pierre-Louis Mercereau
3a14b90557 docs: add email templates to docker-compose, and remove obsolete example
the `custom-email-templates` is obsolete as it is now possible to deploy templates with the Nhost GH
integration
2022-08-16 11:02:26 +02:00
Szilárd Dóró
9871bd42e0 Merge pull request #863 from nhost/changeset-release/main
chore: update versions
2022-08-10 10:26:48 +02:00
github-actions[bot]
7982702e26 chore: update versions 2022-08-09 06:53:50 +00:00
Johan Eliasson
7e21fe5c2b Merge pull request #871 from nhost/use-project-wording
Terminology: app -> project
2022-08-09 08:52:17 +02:00
Johan Eliasson
cc4d2ee81a Merge pull request #872 from nhost/storage-fixes-123iygasd
Storage typos
2022-08-05 18:06:37 +02:00
Johan Eliasson
a96adbcd9d sotrage typos 2022-08-05 16:23:35 +02:00
Johan Eliasson
f1ad4a37db u 2022-08-05 11:23:53 +02:00
Johan Eliasson
83b4f7c0eb project overview 2022-08-05 11:18:07 +02:00
Johan Eliasson
45fd0669ee updates 2022-08-05 11:14:33 +02:00
Johan Eliasson
d20add9329 update 2022-08-05 10:08:29 +02:00
Johan Eliasson
58854835e0 upadtes 2022-08-05 10:07:04 +02:00
Johan Eliasson
88a6f3f500 typo 2022-08-05 10:03:49 +02:00
Johan Eliasson
8336e53931 package updates 2022-08-05 10:01:03 +02:00
Johan Eliasson
674fd66922 more updates 2022-08-05 09:55:10 +02:00
Johan Eliasson
fc94bfdd66 app -> project 2022-08-05 08:33:53 +02:00
Johan Eliasson
f299578d69 Merge pull request #868 from nhost/contributors-readme-action-DOCBwXss13
contributors readme action update
2022-08-02 20:42:55 +02:00
github-actions[bot]
221032f087 contrib-readme-action has updated readme 2022-08-02 18:42:13 +00:00
Johan Eliasson
72799762c9 Merge pull request #842 from nhost/example/react-query
GraphQL Code Generator with React Query
2022-08-02 20:41:54 +02:00
Johan Eliasson
6464584d71 updated to react query v4 2022-08-02 20:23:20 +02:00
Johan Eliasson
7ca196955a Merge branch 'main' into example/react-query 2022-08-02 20:08:09 +02:00
Johan Eliasson
90b84ea8c4 Update examples/codegen-react-query/README.md
Co-authored-by: Guido Curcio <guidomaurocurcio@gmail.com>
2022-07-31 09:53:51 +02:00
Johan Eliasson
7ca3c42d23 Apply suggestions from code review
Co-authored-by: Guido Curcio <guidomaurocurcio@gmail.com>
2022-07-31 09:53:42 +02:00
Nuno Pato
bb10741334 Merge pull request #860 from nhost/fix/update-wrong-docs
fix docs
2022-07-28 17:48:26 +00:00
Nuno Pato
50293e7dd8 fix messaging around the folder structure created by nhost init 2022-07-28 17:39:06 +00:00
Nuno Pato
bebe65c4c5 remove -n from --remote 2022-07-28 17:33:15 +00:00
Szilárd Dóró
e2f5cfe9c0 Merge pull request #861 from nhost/contributors-readme-action-NCWsLhOUvy
contributors readme action update
2022-07-28 16:09:52 +02:00
github-actions[bot]
cac64f70c4 contrib-readme-action has updated readme 2022-07-28 14:09:18 +00:00
Szilárd Dóró
302e0aa1e0 Merge pull request #850 from mdp18/docs/js-passwordless-clarify
Update for reference docs 02-sign-in.mdx
2022-07-28 16:08:59 +02:00
Szilárd Dóró
e6a44dc008 chore: auto-generated documentation updates 2022-07-28 14:48:29 +02:00
Szilárd Dóró
93cc6920b6 added changesets 2022-07-28 14:47:15 +02:00
Nuno Pato
4c6e9c7839 fix docs 2022-07-28 11:44:41 +00:00
Max
f4a1eef3d4 fix 2
reversed mdx file and added fix to hasura-auth-client
2022-07-25 13:24:24 -07:00
Szilárd Dóró
2766875ff7 Merge pull request #852 from LucasBois1/patch-1
Typo fix storage.mdx
2022-07-25 15:21:19 +02:00
Lucas Bois
ea61275404 Typo fix storage.mdx 2022-07-23 10:47:01 -03:00
Max
1191cb4fd8 Update 02-sign-in.mdx 2022-07-22 15:10:29 -07:00
Pilou
f6e1517a7a Merge pull request #843 from nhost/contributors-readme-action-O05tbtr6_i
contributors readme action update
2022-07-19 11:11:07 +02:00
github-actions[bot]
e15cb8b798 contrib-readme-action has updated readme 2022-07-19 08:43:33 +00:00
Pilou
024f026241 Merge pull request #839 from nhost/changeset-release/main
chore: update versions
2022-07-19 10:43:17 +02:00
Johan Eliasson
736b0512da meta updates 2022-07-19 10:22:45 +02:00
Pierre-Louis Mercereau
a422a4850d chore: correct peer deps bumps 2022-07-19 09:54:46 +02:00
github-actions[bot]
a7e67979fe chore: update versions 2022-07-19 07:48:08 +00:00
Pilou
1dcbf268db Merge pull request #820 from nhost/feat/sms-hook-and-composable
feat: useSignInSmsPasswordless
2022-07-19 09:47:05 +02:00
Pilou
5c5d489740 Merge pull request #841 from nhost/contributors-readme-action-mLUJqJcCpL
contributors readme action update
2022-07-19 09:46:51 +02:00
github-actions[bot]
a2559e3482 contrib-readme-action has updated readme 2022-07-19 07:46:19 +00:00
Pilou
bbef104a85 Merge pull request #840 from nhost/contributors-readme-action-MWLllvW8wS
contributors readme action update
2022-07-19 09:46:05 +02:00
github-actions[bot]
7843b1aec1 contrib-readme-action has updated readme 2022-07-19 07:41:45 +00:00
Pilou
4711bfa8ec Merge pull request #679 from Svarto/feat/changePassword-with-ticket
included an optional ticket in changePassword function to allow for c…
2022-07-19 09:41:27 +02:00
Pilou
6f3f8a5020 Merge pull request #838 from nhost/fix-providers
added twitch as provider
2022-07-19 09:38:32 +02:00
Pilou
a120bcc8fc Merge pull request #828 from dminkovsky/dminkovsky/fix-react-native-build
Fix React Native build
2022-07-19 09:36:02 +02:00
Johan Eliasson
53e20e87f3 Revert "Create stale-bags-design.md"
This reverts commit 9479aeb596.
2022-07-19 09:18:24 +02:00
Johan Eliasson
9479aeb596 Create stale-bags-design.md 2022-07-19 09:10:25 +02:00
Pilou
c4f11af072 Merge pull request #837 from nhost/contributors-readme-action-ZK2-b_IYkd
contributors readme action update
2022-07-19 09:07:47 +02:00
Johan Eliasson
747aa96914 Create dry-radios-allow.md 2022-07-19 09:07:43 +02:00
Johan Eliasson
5682d92592 added twitch as provider 2022-07-19 09:06:51 +02:00
github-actions[bot]
2cf6556499 contrib-readme-action has updated readme 2022-07-19 07:06:07 +00:00
Johan Eliasson
89553fcaf6 Merge pull request #830 from QuestGiverOrg/main
Add discord to provider types
2022-07-19 09:05:48 +02:00
Johan Eliasson
10beea7246 Create nine-students-design.md 2022-07-19 09:03:06 +02:00
Johan Eliasson
1334ddb693 added package.json export for all npm packages 2022-07-19 09:02:23 +02:00
Pilou
d212128815 Merge pull request #829 from nhost/changeset-release/main
chore: update versions
2022-07-16 15:22:46 +02:00
Gavan Wilhite
302c28b202 Merge pull request #1 from QuestGiverOrg/Adding-discord-to-provider-type
Added discord to provider type
2022-07-15 13:28:45 -07:00
Gavan Wilhite
f3f760b987 Added discord to provider type 2022-07-15 13:24:32 -07:00
github-actions[bot]
9d9caf9834 chore: update versions 2022-07-15 20:20:38 +00:00
Pilou
96cbf023ca Merge pull request #824 from nhost/docs/react-apollo-example-improvements
React Apollo example improvements
2022-07-15 22:19:01 +02:00
Pierre-Louis Mercereau
1ed534cb4a Merge branch 'main' into docs/react-apollo-example-improvements 2022-07-15 22:06:07 +02:00
Pilou
dcdee0b426 Merge pull request #819 from nhost/docs/vue-example-improvements
Vue example improvements
2022-07-15 22:02:58 +02:00
Pierre-Louis Mercereau
e31f4756b4 fix(vue-example): disabled & loading buttons 2022-07-15 20:13:44 +02:00
Pierre-Louis Mercereau
259e198d80 fix(react-apollo-example): fixed logo width 2022-07-15 19:45:22 +02:00
Pierre-Louis Mercereau
1d10a47414 fix(react-apollo-example): fit image logo 2022-07-15 19:42:37 +02:00
Dmitry Minkovsky
34470ff6e0 Fix React Native build fail 2022-07-15 12:11:18 -04:00
Pierre-Louis Mercereau
f30d6779bb chore: bump @apollo/client to v3.6.9 2022-07-15 15:55:29 +02:00
Pierre-Louis Mercereau
2a3b2c3af5 Merge branch 'main' into docs/vue-example-improvements 2022-07-15 15:39:38 +02:00
Pierre-Louis Mercereau
a0db6b58de chore: add hasura-auth 0.10 metadata 2022-07-15 12:06:08 +02:00
Pierre-Louis Mercereau
523d52aa7f Merge branch 'main' into docs/react-apollo-example-improvements 2022-07-15 11:48:41 +02:00
Pierre-Louis Mercereau
6e1ee1802d docs: explicit pnpm run 2022-07-15 11:45:45 +02:00
Pierre-Louis Mercereau
51ad1eb355 fix(react-apollo-example): qrcode img by alttext 2022-07-15 11:39:22 +02:00
Johan Eliasson
ee2dd8481b Merge pull request #825 from nhost/changeset-release/main
chore: update versions
2022-07-15 11:21:12 +02:00
github-actions[bot]
b8e787cb47 chore: update versions 2022-07-15 09:18:40 +00:00
Johan Eliasson
2ef5c238c1 Merge pull request #823 from nhost/patch/cookies
patch: Using same cookie package and made sure cookies are not becoming session cookies
2022-07-15 11:17:04 +02:00
Pierre-Louis Mercereau
e084643032 docs: correct readme 2022-07-15 11:11:35 +02:00
Pierre-Louis Mercereau
5514e81186 docs: update readme 2022-07-15 11:10:44 +02:00
Pierre-Louis Mercereau
16f38aa893 docs(example): update readme instructions 2022-07-15 11:09:08 +02:00
Pierre-Louis Mercereau
76c6e8d0d6 feat(react-apollo-example): improve navbar & index 2022-07-15 10:33:27 +02:00
Johan Eliasson
197d1d5cfc Create lovely-windows-accept.md 2022-07-15 10:03:25 +02:00
Johan Eliasson
abd43d0a8b typo 2022-07-15 09:49:03 +02:00
Johan Eliasson
70383c8c80 same cookie lib + added expires prop to avoid cookie being destroyed 2022-07-15 09:45:19 +02:00
Pierre-Louis Mercereau
a7d5c85f60 fix(example): hide nav drawer on small screens 2022-07-15 09:35:28 +02:00
Pierre-Louis Mercereau
bc657251d6 fix: remove refresh token from the url 2022-07-14 22:07:59 +02:00
Pierre-Louis Mercereau
5abc362a4d fix(example): close magic link sent dialog 2022-07-14 15:10:11 +02:00
Pierre-Louis Mercereau
7a4c9fa806 refactor(example): use form submit 2022-07-14 15:06:57 +02:00
Pierre-Louis Mercereau
348318d709 feat(example): add dialog after magic link is sent 2022-07-14 14:48:30 +02:00
Pierre-Louis Mercereau
4e4600d769 refactor: improve readability 2022-07-14 09:13:55 +02:00
Pierre-Louis Mercereau
44d57d4b89 refactor: from comments 2022-07-14 09:04:16 +02:00
Pierre-Louis Mercereau
84ba29dd7f feat: useSignInSmsPasswordless 2022-07-13 20:39:17 +02:00
Pierre-Louis Mercereau
b5f7f7fe5f refactor(example): toast errors on top of window 2022-07-13 19:45:38 +02:00
Pierre-Louis Mercereau
7116a4df8a refactor(example): misc improvements 2022-07-13 19:39:11 +02:00
Pierre-Louis Mercereau
7e4c52dbd1 feat(example): add title and GitHub link 2022-07-13 17:20:55 +02:00
Pierre-Louis Mercereau
446dc01bde feat(example): toast anonymous user errors 2022-07-13 17:07:25 +02:00
Pierre-Louis Mercereau
a1989c51f8 feat(example): enable anonymous users in the backend 2022-07-13 17:00:59 +02:00
Pierre-Louis Mercereau
1383de558a feat(example): add email verification dialog on sign-in 2022-07-13 17:00:39 +02:00
Pierre-Louis Mercereau
d828107f74 fix(example): remove "return" from previous "setup()" syntax 2022-07-13 16:43:10 +02:00
Pierre-Louis Mercereau
4a1650cb35 refactor(example): use the template "setup" syntax 2022-07-13 16:37:23 +02:00
Pierre-Louis Mercereau
913651d440 feat(example): add "verification email sent" dialog 2022-07-13 16:29:40 +02:00
Pierre-Louis Mercereau
6af2d52666 chore(vue): bump dependencies 2022-07-13 15:52:12 +02:00
Pilou
da7c2a2362 Merge pull request #818 from nhost/chore/hasura-storage-0.2.3
chore: bump hasura-storage version to 0.2.3
2022-07-13 15:25:04 +02:00
Pierre-Louis Mercereau
4a7940b59a chore: bump hasura-storage version to 0.2.3 2022-07-13 15:10:39 +02:00
Pilou
ddda8bb031 Merge pull request #817 from nhost/chore/hasura-auth-0.10.0
chore: bump hasura-auth version to 0.10.0
2022-07-13 13:28:52 +02:00
Pierre-Louis Mercereau
b146e60f7e chore: bump hasura-auth version to 0.10.0 2022-07-13 11:02:40 +02:00
Pilou
5591789840 Merge pull request #816 from nhost/contributors-readme-action-wpdtyjiZOQ
contributors readme action update
2022-07-13 10:12:05 +02:00
github-actions[bot]
fac5ddb866 contrib-readme-action has updated readme 2022-07-13 05:09:22 +00:00
Johan Eliasson
f2fab8dac2 Merge pull request #784 from nachoaldamav/patch-1
docs: Add "redirectTo" to provider sign-in
2022-07-13 07:09:03 +02:00
Pilou
6e3f2c382d Merge pull request #807 from nhost/doc/vue-live-example
fix: wrong package name
2022-07-07 17:53:51 +02:00
Pilou
05385d01dc Merge pull request #809 from nhost/contributors-readme-action-l3DsL6Hz69
contributors readme action update
2022-07-07 16:37:59 +02:00
github-actions[bot]
7ea72b799c contrib-readme-action has updated readme 2022-07-07 14:10:36 +00:00
Pilou
4936261cee Merge pull request #808 from nhost/docs/docker-functions
refactor: use nhost/functions docker image
2022-07-07 16:09:10 +02:00
Pierre-Louis Mercereau
80902b9cf1 refactor: use nhost/functions docker image 2022-07-07 15:53:30 +02:00
Pierre-Louis Mercereau
c3af490e67 fix: wrong package name 2022-07-07 14:32:13 +02:00
Pilou
6a24e32857 Merge pull request #806 from nhost/doc/vue-live-example
Vue example: add env var deps in turborepo
2022-07-07 14:21:38 +02:00
Pierre-Louis Mercereau
0ebddd30cf ci: add env var deps in turborepo 2022-07-07 14:17:11 +02:00
Johan Eliasson
d019f1de21 Merge pull request #805 from nhost/doc/vue-live-example
Adapt Vue-Apollo example to live demo
2022-07-07 12:35:02 +02:00
Pierre-Louis Mercereau
3abb57f510 chore: add vercel.json to handle redirections 2022-07-07 11:20:26 +02:00
Pierre-Louis Mercereau
4a2ad15f14 docs: adapt Vue-Apollo example to live demo 2022-07-07 11:17:02 +02:00
Pilou
ca45b612c9 Merge pull request #773 from nhost/build/sync-versions
Sync the Nhost services versions within the repository
2022-07-07 10:43:18 +02:00
Pilou
27ee9b721f Merge pull request #804 from nhost/docs/oauth-providers-alphabetic
Docs: List OAuth providers in order
2022-07-07 10:43:04 +02:00
Johan Eliasson
2a373dd50f revert 2022-07-07 10:36:37 +02:00
Johan Eliasson
a91f714c4c order 2022-07-07 10:34:51 +02:00
Pilou
3b4d89d5b6 Merge pull request #803 from nhost/elitan-patch-2
Missing `services:` in nhost config
2022-07-07 10:31:40 +02:00
Johan Eliasson
16d1b26298 Update config.yaml 2022-07-07 10:29:24 +02:00
Pierre-Louis Mercereau
86d8beb044 chore: update lockfile 2022-07-07 10:27:53 +02:00
Pierre-Louis Mercereau
17f870f31f Merge branch 'main' into build/sync-versions 2022-07-07 10:26:17 +02:00
Pilou
fbfffe25ca Merge pull request #799 from nhost/docs/discord-signin
Docs: Sign in with Discord and Twitch
2022-07-07 09:46:01 +02:00
Pilou
87a472b27e Merge pull request #802 from nhost/docs/video-iuasd
Docs: Update videos
2022-07-07 09:44:46 +02:00
Johan Eliasson
779b03b0b2 delete unused video 2022-07-07 07:16:00 +02:00
Johan Eliasson
9d933b6ffd open hasura console 2022-07-07 07:12:23 +02:00
Johan Eliasson
34d643868d typos 2022-07-06 20:25:47 +02:00
Johan Eliasson
0023f5f6f6 og images 2022-07-06 20:24:48 +02:00
Johan Eliasson
48f5c8bfb9 added docs for twitch + images 2022-07-06 20:22:12 +02:00
Johan Eliasson
f398b2e3ac update 2022-07-06 18:59:40 +02:00
Johan Eliasson
11795abe61 discord docs 2022-07-06 18:59:06 +02:00
Johan Eliasson
e2eafc9ee1 Merge pull request #796 from nhost/docs/apple-signin
Docs: Sign in with Apple
2022-07-06 07:29:30 +02:00
Pilou
4a5a2fac43 Merge pull request #794 from nhost/changeset-release/main
chore: update versions
2022-07-05 22:14:42 +02:00
Johan Eliasson
4a908af7ef old domain structure 2022-07-05 11:27:58 +02:00
Johan Eliasson
a7b6498053 update information about service id 2022-07-05 11:02:02 +02:00
Johan Eliasson
7f418a7559 started 2022-07-05 10:54:36 +02:00
github-actions[bot]
8493129750 chore: update versions 2022-07-05 08:03:48 +00:00
Pilou
26b817c5fa Merge pull request #788 from nhost/785-sms-passwordless-otp-sign-in-is-never-returning-or-rejecting-a-promise-on-failure
fix: return promise when using SMS OTP and an error occurs
2022-07-05 10:02:36 +02:00
Johan Eliasson
e61ea19421 Merge pull request #792 from nhost/timpratim-patch-2
Updated React quick-start ( without images )
2022-07-05 07:26:47 +02:00
Johan Eliasson
401f2cb540 updated react quick start 2022-07-05 07:18:15 +02:00
Johan Eliasson
6363a289fb Merge branch 'main' into timpratim-patch-2 2022-07-05 07:07:32 +02:00
Johan Eliasson
f09037ccef Merge pull request #783 from nhost/domain-structure
Docs: Use subdomain and region instead of backend url
2022-07-05 07:05:52 +02:00
Pratim
a4dea7339e Updated react quick-start ( without images ) 2022-07-05 00:24:34 +05:30
Pierre-Louis Mercereau
50474810bf refactor: run command with swc 2022-07-04 16:52:31 +02:00
Pilou
f356c7176b Merge pull request #789 from nhost/contributors-readme-action-K0Fk8ZdmGi
contributors readme action update
2022-07-04 16:50:59 +02:00
github-actions[bot]
cb99c6d989 contrib-readme-action has updated readme 2022-07-04 14:50:20 +00:00
Pilou
7cef49bb02 Merge pull request #761 from uulwake/chore/add-test-coverage
chore: add test coverage in every packages
2022-07-04 16:50:04 +02:00
Pierre-Louis Mercereau
6eaa5c7920 fix: return promise when using SMS OTP and an error occurs 2022-07-04 16:24:35 +02:00
Nuno Pato
5485d48ce5 Use :1337 if no port is specified when using "localhost" 2022-07-04 00:14:46 +00:00
Johan Eliasson
64574ee892 info for CLI 2022-07-03 10:39:25 +02:00
Johan Eliasson
d3d38b2631 update vue quickstart with subdomain and region 2022-07-03 10:36:15 +02:00
Johan Eliasson
023afae3cd updated redwoodjs guide with subdomain and region 2022-07-03 10:32:53 +02:00
Johan Eliasson
19d2242918 updated app dashboard image 2022-07-03 10:27:54 +02:00
Nacho Aldama
ead2c16aac Add "redirectTo" to documentation
When I was searching for the "redirectTo" param I didn't find anything in the docs, maybe it was my fault but I've missed this.

Sorry if this is duplicated.
2022-07-02 19:19:25 +02:00
Johan Eliasson
a5f02e8056 workding 2022-07-02 08:58:19 +02:00
Johan Eliasson
aeb85a1e01 u 2022-07-02 08:54:42 +02:00
Johan Eliasson
821912e23e Merge pull request #781 from nhost/docs/subdomain-readmes
docs: update to subdomains in readmes
2022-07-02 08:11:54 +02:00
Pierre-Louis Mercereau
8608a78eaf docs: update readmes to subdomains 2022-07-01 22:57:08 +02:00
Pilou
2d2da4f6e0 Merge pull request #778 from nhost/plmercereau-patch-1
Update docker compose readme
2022-07-01 11:18:19 +02:00
Pilou
19d7262b05 Update README.md 2022-07-01 08:07:37 +02:00
Johan Eliasson
1c750bd652 Merge pull request #769 from nhost/codegen-example
Example: Adding codegen example from blog post
2022-06-30 13:45:52 +02:00
Pierre-Louis Mercereau
8a3943a942 build: fix lockfile 2022-06-30 11:34:50 +02:00
Johan Eliasson
62385a7866 Merge branch 'main' into codegen-example 2022-06-30 11:00:23 +02:00
Pilou
9e21de3819 Merge pull request #771 from nhost/changeset-release/main
chore: update versions
2022-06-29 21:55:36 +02:00
Pierre-Louis Mercereau
c101a26ce5 build: clean lockfile, and build all packages 2022-06-29 17:55:15 +02:00
Pierre-Louis Mercereau
21fa83d115 build: adapt turborepo pipeline 2022-06-29 17:23:00 +02:00
Pierre-Louis Mercereau
522839d8f7 chore: keep original lockfile 2022-06-29 17:19:24 +02:00
Pierre-Louis Mercereau
87aad599f3 chore: update lockfile 2022-06-29 17:17:01 +02:00
Pierre-Louis Mercereau
5b097e635d chore: remove verbose 2022-06-29 17:10:43 +02:00
Pierre-Louis Mercereau
bfdcacd5a3 smaller eslintrc 2022-06-29 17:04:09 +02:00
Pierre-Louis Mercereau
dcb9055475 chore: remove console.log 2022-06-29 16:58:14 +02:00
Pierre-Louis Mercereau
6f0bf3d67c docs: typoe 2022-06-29 16:54:24 +02:00
Pierre-Louis Mercereau
3c96c561a0 chore: remove unused dependency 2022-06-29 16:45:33 +02:00
Pierre-Louis Mercereau
3d319364f3 build: sync nhost services versions 2022-06-29 16:44:15 +02:00
Johan Eliasson
80468ac3ac merge main and pnpm install 2022-06-29 14:54:37 +02:00
Johan Eliasson
d03653f1fd config update 2022-06-29 14:46:40 +02:00
Pierre-Louis Mercereau
a7f3599fb1 chore: unbump peer dep versions 2022-06-29 14:21:20 +02:00
github-actions[bot]
c789102189 chore: update versions 2022-06-29 12:11:21 +00:00
Pilou
b638173181 Merge pull request #768 from nhost/storage-improvements
Storage fixes and improvements
2022-06-29 14:10:11 +02:00
Pierre-Louis Mercereau
d65df02adb docs: format inline example 2022-06-29 14:08:49 +02:00
Johan Eliasson
5dff7ad5d3 README update 2022-06-29 13:40:29 +02:00
Johan Eliasson
9263bea2ae clear 2022-06-29 13:32:04 +02:00
Johan Eliasson
4f994b536e correct parameters 2022-06-29 13:15:13 +02:00
Pierre-Louis Mercereau
4f9287562e chore: changeset 2022-06-29 12:16:39 +02:00
Pierre-Louis Mercereau
58f82f9aad fix: adapt to new signature 2022-06-29 11:56:05 +02:00
Johan Eliasson
c907021313 update 2022-06-29 11:10:34 +02:00
Johan Eliasson
12a218b12c importing Nhost providers 2022-06-29 10:55:43 +02:00
Pierre-Louis Mercereau
196156ff93 build: use vite 2022-06-29 10:15:12 +02:00
Johan Eliasson
28ca032f70 adding public permissions 2022-06-29 08:26:41 +02:00
Johan Eliasson
38462c45b6 Merge pull request #762 from nhost/docs-seed
docs: Added seed data information
2022-06-29 08:22:38 +02:00
Johan Eliasson
8e03ed43b7 prepending with zeros 2022-06-29 08:21:31 +02:00
Johan Eliasson
333292ab89 adding codegen example from blog post 2022-06-29 08:17:42 +02:00
Pierre-Louis Mercereau
b4d52debff chore: wip 2022-06-28 18:49:38 +02:00
Pilou
287e48a51a Merge pull request #766 from nhost/docs/example-on-vercel
fix: force redirectTo link
2022-06-28 16:58:12 +02:00
Pierre-Louis Mercereau
9370e06b68 fix: simplify 2022-06-28 16:53:19 +02:00
Pierre-Louis Mercereau
d5b775c630 fix: force redirectTo link 2022-06-28 16:46:12 +02:00
Pilou
ea8e1df8da Merge pull request #743 from nhost/docs/example-on-vercel
React-apollo example on Vercel
2022-06-28 16:23:06 +02:00
Szilárd Dóró
20005986a9 Merge pull request #765 from nhost/changeset-release/main
chore: update versions
2022-06-28 16:15:23 +02:00
Pierre-Louis Mercereau
ced8100168 build: adjust env vars in turborepo 2022-06-28 14:39:54 +02:00
Pierre-Louis Mercereau
36d6db526c feat: add perms to anonymous users & on delete 2022-06-28 14:36:58 +02:00
Pierre-Louis Mercereau
fb53e94193 feat: use CDN backend 2022-06-28 14:36:20 +02:00
Pierre-Louis Mercereau
c1d722390f revert: correct peer deps version bumps 2022-06-28 13:33:44 +02:00
Pierre-Louis Mercereau
165ff16cdc Merge branch 'main' into docs/example-on-vercel 2022-06-28 13:25:50 +02:00
github-actions[bot]
111d6d99a1 chore: update versions 2022-06-28 11:19:14 +00:00
Pilou
dabbb6ec0d Merge pull request #624 from nhost/feat/file-upload
file upload hooks
2022-06-28 13:17:43 +02:00
Pierre-Louis Mercereau
7174aa1384 fix: do not clear errord list when already empty 2022-06-28 13:07:38 +02:00
Pierre-Louis Mercereau
e3ef4a0188 revert: keep localhost:1337 as default url 2022-06-28 12:21:18 +02:00
Pierre-Louis Mercereau
82ac9b9684 chore: xstate does not support async callbacks 2022-06-28 12:05:51 +02:00
Pierre-Louis Mercereau
bd494434d9 chore: review adjustments 2022-06-28 11:30:10 +02:00
Pierre-Louis Mercereau
0ee47821cd chore: remove console.log 2022-06-28 11:14:01 +02:00
Pierre-Louis Mercereau
0dc01a99e9 add redirectTo to oauth links 2022-06-28 11:11:07 +02:00
Pierre-Louis Mercereau
3a04c272ee chore: use async/await syntax 2022-06-28 11:09:07 +02:00
Pierre-Louis Mercereau
0e782b8e99 chore: default backend url and update readme 2022-06-28 10:51:34 +02:00
Pierre-Louis Mercereau
3e9d864899 Merge branch 'main' into docs/example-on-vercel 2022-06-28 10:26:31 +02:00
Pierre-Louis Mercereau
dd38973515 chore: review adjustments 2022-06-28 10:25:08 +02:00
Johan Eliasson
9ab5b7a927 Merge pull request #764 from nhost/chore/deploy
chore: trigger again
2022-06-28 09:17:18 +02:00
Pierre-Louis Mercereau
406132902d chore: trigger again 2022-06-28 09:14:42 +02:00
Johan Eliasson
7503b0d840 Merge pull request #763 from nhost/chore/deploy
chore: trigger deployment
2022-06-28 09:12:07 +02:00
Pierre-Louis Mercereau
d42cb698c1 chore: trigger deployment 2022-06-28 09:05:09 +02:00
Johan Eliasson
73e4702a1a wording 2022-06-28 08:33:41 +02:00
Johan Eliasson
93cc6bc1cf added seed data information 2022-06-28 07:35:49 +02:00
Ulrich Wake
db955e3b71 chore: add test coverage in every packages 2022-06-28 10:26:29 +07:00
Pierre-Louis Mercereau
c944ef11e4 docs: fix docgen broken link 2022-06-27 23:53:49 +02:00
Pierre-Louis Mercereau
d9e2e41efd feat: multiple upload errors and promises 2022-06-27 23:40:31 +02:00
Pilou
1219356c8f Merge pull request #757 from nhost/docs/docker-compose-functions
docs: add functions to docker-compose example
2022-06-27 19:52:28 +02:00
Pilou
2eb7467afa Merge pull request #759 from nhost/chore/trigger-deployment
chore: trigger a new deployment
2022-06-27 16:34:14 +02:00
Pierre-Louis Mercereau
12f42319f9 chore: trigger a new deployment 2022-06-27 16:32:26 +02:00
Pilou
bbc9c6131b Merge pull request #758 from nhost/changeset-release/main
chore: update versions
2022-06-27 11:59:51 +02:00
github-actions[bot]
c16be7fb05 chore: update versions 2022-06-27 09:51:39 +00:00
Szilárd Dóró
872e44ebe0 Merge pull request #756 from nhost/fix/bundling-improvements
fix: `exports` field to support server-side environments
2022-06-27 11:50:21 +02:00
Pierre-Louis Mercereau
a898a19ffa docs: add functions to docker-compose example 2022-06-27 10:46:13 +02:00
Szilárd Dóró
dbc10e6205 fix: fixed exports field in all packages
- added changeset
2022-06-27 10:35:17 +02:00
Pilou
b04d01f022 Merge pull request #755 from nhost/docs/readme
docs: update twitter handle & hasura-storage link
2022-06-27 09:30:20 +02:00
Pilou
29d0c7250f Merge pull request #754 from nhost/docs/fix-provider-links
React-apollo example: correct links to external urls (social providers)
2022-06-27 09:30:02 +02:00
Pierre-Louis Mercereau
b59f571048 docs: update twitter handle & hasura-storage link 2022-06-26 22:34:56 +02:00
Pierre-Louis Mercereau
64cc648d19 docs(example): correct react-apollo external links 2022-06-26 21:10:39 +02:00
Pierre-Louis Mercereau
5f05d46c3d fix: use xstate/react syntax 2022-06-25 21:01:37 +02:00
Pierre-Louis Mercereau
bfcabe8e73 chore: clean 2022-06-24 23:17:29 +02:00
Pierre-Louis Mercereau
233a6e4bd6 refactor: simplify 2022-06-24 23:04:43 +02:00
Pierre-Louis Mercereau
577792b3d5 feat(storage): upload with admin secret 2022-06-24 22:51:34 +02:00
Pierre-Louis Mercereau
3ba026e7d7 chore: clean tests, add error code, improve types 2022-06-24 22:06:33 +02:00
Pierre-Louis Mercereau
fa740867c5 chore: lint 2022-06-24 14:09:40 +02:00
Pilou
30f4e53181 Merge pull request #746 from nhost/docs/fix-typo
docs: fix typo
2022-06-24 13:52:24 +02:00
Pierre-Louis Mercereau
a417c8468a chore: lockfile 2022-06-24 13:24:57 +02:00
Pierre-Louis Mercereau
2dc020a676 Merge branch 'main' into feat/file-upload 2022-06-24 12:57:46 +02:00
Pierre-Louis Mercereau
f49d14cc1b chore: lockfile 2022-06-24 12:44:54 +02:00
Pilou
5a141453f0 Merge pull request #745 from nhost/contributors-readme-action-wA3mZijrN6
contributors readme action update
2022-06-23 18:55:11 +02:00
Pierre-Louis Mercereau
788bb9c90d docs: fix typo 2022-06-23 18:53:24 +02:00
github-actions[bot]
09fa429125 contrib-readme-action has updated readme 2022-06-23 15:04:08 +00:00
Johan Eliasson
c505281250 Merge pull request #744 from MelodicCrypter/patch-1
Deleted typo error
2022-06-23 17:03:50 +02:00
Hugh Caluscusin
7ea5523375 Deleted typo error
Edited line 34, from "decvices" to "devices"
2022-06-23 22:57:53 +08:00
Pilou
c5cd6b1d7b Merge pull request #740 from nhost/contributors-readme-action-_AZSPBOfXF
contributors readme action update
2022-06-22 16:40:55 +02:00
Pierre-Louis Mercereau
2d1185f7ec chore: turborepo cache input 2022-06-22 16:33:51 +02:00
Pierre-Louis Mercereau
c6d4c5e943 chore: add VITE_NHOST_URL as a turborepo dep 2022-06-22 16:29:35 +02:00
Pierre-Louis Mercereau
0a536ccfda build: add vercel.json 2022-06-22 16:18:53 +02:00
Johan Eliasson
4107287c8e Merge pull request #741 from nhost/changeset-release/main
chore: update versions
2022-06-22 14:16:59 +02:00
github-actions[bot]
651c481874 chore: update versions 2022-06-22 12:10:47 +00:00
github-actions[bot]
90a7999346 contrib-readme-action has updated readme 2022-06-22 12:09:31 +00:00
Nuno Pato
b54b0c0743 Merge pull request #601 from nhost/feat/add-cdn-support-nhost-js
Add `subdomain` and `region` as options to `NhostClient`
2022-06-22 12:09:12 +00:00
Johan Eliasson
d07373d255 updated parameters for NhostClient 2022-06-22 13:46:13 +02:00
Nuno Pato
73c8fa1fb2 fix typo 2022-06-22 10:47:35 +00:00
Pilou
67f2622642 Merge pull request #739 from nhost/docs/move-hasura-auth
Remove hasura-auth from the reference documentation
2022-06-22 12:40:08 +02:00
Pierre-Louis Mercereau
780f95d950 chore: update versions 2022-06-22 12:34:31 +02:00
Pierre-Louis Mercereau
cb84db7688 docs: remove hasura-auth from reference documentation 2022-06-22 12:31:24 +02:00
Johan Eliasson
67d76ebbb6 Merge pull request #737 from nhost/elitan-patch-2
Added ROSS Index badge
2022-06-22 10:11:26 +02:00
Johan Eliasson
48af3fb4d1 Update README.md 2022-06-22 09:26:21 +02:00
Johan Eliasson
e5adc515d4 Update README.md 2022-06-22 09:25:12 +02:00
Pilou
5f4b16f2f9 Merge pull request #716 from nhost/docs-algolio-fix
Fix Algolia full page search
2022-06-21 19:02:15 +02:00
Nuno Pato
be50d4ad1d Merge branch 'main' into feat/add-cdn-support-nhost-js 2022-06-21 15:09:07 +00:00
Nuno Pato
d40afbb744 Fix messaging 2022-06-21 15:04:35 +00:00
Nuno Pato
7e0035a856 Merge pull request #733 from nhost/chore/bump-all-versions
Bump all versions of hasura, hasura auth, and hasura storage
2022-06-21 14:12:56 +02:00
Pilou
2fec74e501 Merge pull request #717 from nhost/changeset-release/main
chore: update versions
2022-06-21 14:10:10 +02:00
Pierre-Louis Mercereau
e94b28b3bc chore: avoid major bumps of peer dependencies 2022-06-21 13:54:06 +02:00
github-actions[bot]
f591f76256 chore: update versions 2022-06-21 11:42:44 +00:00
Pilou
58fb955dc6 Merge pull request #720 from nhost/docs/vue-use-reset-password
docs(vue): correct useResetPassword inline example
2022-06-21 13:41:33 +02:00
Nuno Pato
5826baa57e Update missing packages 2022-06-21 10:26:25 +00:00
Nuno Pato
3c789629a4 Bump all versions of hasura, hasura auth, and hasura storage 2022-06-21 09:47:24 +00:00
Johan Eliasson
f472d42ae9 Merge pull request #732 from nhost/contributors-readme-action-RQTOlQZRpc
contributors readme action update
2022-06-21 07:39:06 +02:00
github-actions[bot]
9993bea7ab contrib-readme-action has updated readme 2022-06-21 05:22:34 +00:00
Johan Eliasson
6f33fc6ce6 Merge pull request #728 from nhost/contributors-readme-action-0KCGh0rhTk
contributors readme action update
2022-06-21 07:22:16 +02:00
Johan Eliasson
b6858c5638 Merge pull request #731 from nhost/contributors-readme-action-yVNIRBZEXT
contributors readme action update
2022-06-21 07:20:27 +02:00
github-actions[bot]
9b01c3ba93 contrib-readme-action has updated readme 2022-06-21 05:19:56 +00:00
Johan Eliasson
fcfd6a9c13 Merge pull request #729 from kylehayes/patch-1
Clarifying how to open Hasura Console
2022-06-21 07:19:41 +02:00
Kyle Hayes
e4daefe637 Clarifying how to open Hasura Console
Updating the documentation to reflect the new location of the button to open Hasura Console.
2022-06-20 17:45:07 -07:00
Guido Curcio
59a5fe97b1 chore: change from types to inferface; fix example; add test missing region test. 2022-06-20 11:20:27 -03:00
github-actions[bot]
a0bcbb6269 contrib-readme-action has updated readme 2022-06-20 13:16:03 +00:00
Pilou
1ec1004507 Merge pull request #727 from muttenzer/docs/permission-variables
Correct permission variables section
2022-06-20 15:15:40 +02:00
Pierre-Louis Mercereau
756d996096 chore: changeset 2022-06-20 12:16:30 +02:00
Timo
c0f1d03c3c Correct permission variables section
Mention how Nhost prefixes the custom JWT claims locally and correct example path.
2022-06-19 16:52:43 +02:00
Pilou
af55789d07 Merge pull request #723 from nhost/contributors-readme-action-IeghAq7Be4
contributors readme action update
2022-06-18 08:11:22 +02:00
Pilou
cb28676895 Merge pull request #722 from nhost/contributors-readme-action-8WdPB9amrq
contributors readme action update
2022-06-18 08:10:11 +02:00
github-actions[bot]
939a3d1090 contrib-readme-action has updated readme 2022-06-18 06:08:16 +00:00
Pilou
0163d0588b Merge pull request #721 from nhost/contributors-readme-action--AZAZ22Nlk
contributors readme action update
2022-06-18 08:08:02 +02:00
github-actions[bot]
c4124f22b0 contrib-readme-action has updated readme 2022-06-18 06:06:29 +00:00
Pilou
7188b0971c Merge pull request #718 from nhost/remove-build-script-dashes
chore: remove build script dashes
2022-06-18 08:06:16 +02:00
github-actions[bot]
6ac969320c contrib-readme-action has updated readme 2022-06-18 05:56:16 +00:00
Johan Eliasson
414bc2e75b Merge pull request #719 from muttenzer/docs/permission-variables
Update permission variables section
2022-06-18 07:56:00 +02:00
Pierre-Louis Mercereau
6862e1e24d docs(vue): correct useResetPassword inline example 2022-06-18 07:04:33 +02:00
muttenzer
4b9deaa2f7 Update permission variables section
Further instructions of how to handle custom permission variables in development.
2022-06-17 23:53:05 +02:00
Pierre-Louis Mercereau
cf366cef35 chore: remove build script dashes 2022-06-17 21:02:44 +02:00
Pilou
00d041f6b4 Merge pull request #714 from nhost/test/anonymous
test: anonymous sign-in and deanonymisation
2022-06-17 19:53:50 +02:00
Pierre-Louis Mercereau
da06fef64e refactor: use aria-label 2022-06-17 15:07:51 +02:00
Pierre-Louis Mercereau
09be9582f8 Merge branch 'main' into test/anonymous 2022-06-17 15:02:50 +02:00
Pilou
6b26fed8ae Merge pull request #713 from nhost/complete-mfa
Complete email+password sign-in with MFA
2022-06-17 15:02:08 +02:00
Pierre-Louis Mercereau
5a62c66fc4 Merge branch 'main' into test/anonymous 2022-06-17 14:26:17 +02:00
Pilou
17e0e6d116 Merge pull request #711 from nhost/test/change-email-password
test: change email and password
2022-06-17 14:22:02 +02:00
Pierre-Louis Mercereau
938000e61b test: don't accept an invalid email/password 2022-06-17 11:53:47 +02:00
Pierre-Louis Mercereau
d700107222 test: add apollo tests 2022-06-17 11:12:13 +02:00
Johan Eliasson
7f1b8a5881 config update 2022-06-17 08:38:17 +02:00
Johan Eliasson
7fd5f0fedf added initialIndexSettings 2022-06-17 08:33:14 +02:00
Johan Eliasson
bf551fe705 update 2022-06-17 08:24:00 +02:00
Pierre-Louis Mercereau
69d9e40187 chore: chore 2022-06-16 15:40:55 +02:00
Pierre-Louis Mercereau
fc5b18fdf0 test: add item to todo list when anonymous 2022-06-15 20:55:37 +02:00
Pierre-Louis Mercereau
fa3eb980a0 feat: allow anonymous users to use the todo list 2022-06-15 19:03:47 +02:00
Pierre-Louis Mercereau
efad3a2b08 chore: add comment 2022-06-15 17:20:42 +02:00
Pierre-Louis Mercereau
563fa4fe9b test: anonymous sign-in and deanonymisation 2022-06-15 17:19:09 +02:00
Pierre-Louis Mercereau
6f0a30059a feat: complete email+password sign-in with MFA 2022-06-15 13:37:52 +02:00
Pierre-Louis Mercereau
47cda5d716 chore: order 2022-06-15 10:08:09 +02:00
Pierre-Louis Mercereau
3f625ce9e1 test: change email and password 2022-06-15 10:03:23 +02:00
Pilou
38d2609249 Merge pull request #710 from nhost/roles-docs
Info about allowed roles
2022-06-15 09:10:56 +02:00
Pilou
030243cd45 Merge pull request #691 from nhost/e2e-react-tests
test: passwordless email, sign-in with token, sign-out
2022-06-15 09:08:32 +02:00
Johan Eliasson
c1905243d0 roles info 2022-06-14 22:40:15 +02:00
Johan Eliasson
37627cc50e info about allowed roles 2022-06-14 21:44:14 +02:00
Pierre-Louis Mercereau
009f68d500 test: should get a session from localStorage 2022-06-14 17:44:35 +02:00
Pierre-Louis Mercereau
b752cc2be8 test: add assertions 2022-06-13 18:35:43 +02:00
Pierre-Louis Mercereau
72fc7d4e44 Merge branch 'main' into e2e-react-tests 2022-06-13 09:31:26 +02:00
Pierre-Louis Mercereau
d20bfe3431 refactor: move files machines to hasura-storage-js, and prepare tests 2022-06-13 09:29:09 +02:00
Pilou
80ef14e50a Merge pull request #700 from nhost/react-example-todo-list
docs: replace the `books` table by a `todos` table
2022-06-13 08:23:55 +02:00
Pilou
543ea2a0e7 Merge pull request #706 from nhost/changeset-release/main
chore: update versions
2022-06-12 21:58:05 +02:00
github-actions[bot]
6764d476fd chore: update versions 2022-06-12 19:42:37 +00:00
Pilou
7bed0eadc9 Merge pull request #704 from nhost/fix/vue-nested-unref
Correct use of ref values in action options
2022-06-12 21:41:41 +02:00
Pierre-Louis Mercereau
c7644ace34 test: should return the same value when not a ref 2022-06-11 22:05:41 +02:00
Pierre-Louis Mercereau
49cdb2843e test: add one test 2022-06-11 21:58:03 +02:00
Pierre-Louis Mercereau
6f45856c46 fix: nestedUnref 2022-06-11 21:54:21 +02:00
Pierre-Louis Mercereau
dcf5e28e06 test: remove unecessary assertions 2022-06-10 21:49:24 +02:00
Pierre-Louis Mercereau
5c10169972 test: add single/multiple file upload tests 2022-06-10 21:46:47 +02:00
Pierre-Louis Mercereau
abdbbe6fcc Merge remote-tracking branch 'origin/e2e-react-tests' into feat/file-upload 2022-06-10 20:28:55 +02:00
Pierre-Louis Mercereau
61e719eea0 refactor: use findByRole 2022-06-10 18:37:13 +02:00
Pilou
208bdbba2d Merge pull request #703 from nhost/docs/fix-dependency
Use internal `*` dependencies in examples
2022-06-10 17:31:19 +02:00
Pierre-Louis Mercereau
cd62e1e833 docs: use internal * dependencies in examples 2022-06-10 16:47:32 +02:00
Pierre-Louis Mercereau
1dfb11d7e8 Merge branch 'e2e-react-tests' into react-example-todo-list 2022-06-10 14:30:07 +02:00
Pierre-Louis Mercereau
8b5c4ed443 refactor: make tests independent from each other 2022-06-10 14:28:03 +02:00
Szilárd Dóró
b60cd0411b Merge pull request #697 from nhost/changeset-release/main
chore: update versions
2022-06-10 12:56:52 +02:00
Pierre-Louis Mercereau
6bd5c96ed5 chore: modify autogenerated down migration 2022-06-10 11:58:52 +02:00
Pierre-Louis Mercereau
6b8762a62e chore: add missing change 2022-06-10 11:56:37 +02:00
Pierre-Louis Mercereau
ddeff7cbd6 refactor: rename index name 2022-06-10 11:55:17 +02:00
Pierre-Louis Mercereau
ed952c1251 perf: add index 2022-06-10 11:53:30 +02:00
Pierre-Louis Mercereau
34e73f18bd chore: remove .vscode directory 2022-06-10 11:44:12 +02:00
Pierre-Louis Mercereau
84262a24f1 docs: replace the books table by a todos table
adapt the Apollo page to add a todo item, add permissions so the connected user only sees its own
todos, add cypress test, use GraphQL codegen
2022-06-10 11:33:12 +02:00
Pierre-Louis Mercereau
ec2a88d69c chore: remove useless line 2022-06-09 11:40:22 +02:00
Pierre-Louis Mercereau
fe1049df6b test: token should be refresh on time 2022-06-09 11:39:18 +02:00
Pierre-Louis Mercereau
a924d21815 Merge remote-tracking branch 'origin/main' into e2e-react-tests 2022-06-09 09:09:03 +02:00
Pierre-Louis Mercereau
503339e5a8 chore: correct peer deps versions from major to minor bump 2022-06-09 08:55:32 +02:00
Pierre-Louis Mercereau
4405535d4a chore: adjustments 2022-06-09 08:43:08 +02:00
github-actions[bot]
6d031e7484 chore: update versions 2022-06-09 06:27:05 +00:00
Pilou
e80c7b629a Merge pull request #582 from nhost/anonymous-users
Anonymous users
2022-06-09 08:26:05 +02:00
Pierre-Louis Mercereau
479a2ed08d Merge remote-tracking branch 'origin/main' into feat/file-upload 2022-06-08 21:52:21 +02:00
Pierre-Louis Mercereau
7a469e1e1e Merge remote-tracking branch 'origin/main' into anonymous-users 2022-06-08 21:40:40 +02:00
Pierre-Louis Mercereau
af15771517 test: simulate network errors on sign-un and sign-in 2022-06-08 16:01:09 +02:00
Johan Eliasson
9b28e1329a Merge pull request #692 from nhost/auth-settings-name-update
docs: update login settings to authentication settings
2022-06-08 15:53:18 +02:00
Pierre-Louis Mercereau
c066ea5b75 ci: tranform package name into a valid file name 2022-06-08 14:05:11 +02:00
Pierre-Louis Mercereau
80e42b939b make it fail 2022-06-08 13:36:19 +02:00
Pierre-Louis Mercereau
3ea6f685e2 Merge remote-tracking branch 'origin/main' into e2e-react-tests 2022-06-08 13:27:57 +02:00
Pierre-Louis Mercereau
ac77f427c3 Merge remote-tracking branch 'origin/main' into e2e-react-tests 2022-06-08 13:01:46 +02:00
Pierre-Louis Mercereau
0f95ee5bb4 chore: rename 2022-06-08 11:26:41 +02:00
Johan Eliasson
4b572c4f58 update login settings to authentication settings 2022-06-08 11:25:47 +02:00
Pierre-Louis Mercereau
47406d3617 test: passwordless email, sign-in with token, sign-out 2022-06-08 11:24:18 +02:00
Pierre-Louis Mercereau
125bc9a749 test: passwordless email, sign-in with token, sign-out 2022-06-08 11:14:50 +02:00
Pilou
df29c8f98d Merge pull request #681 from nhost/test/ci
CI: end-to-end tests
2022-06-08 09:59:38 +02:00
Pilou
a08c3ec2d1 Merge pull request #690 from nhost/docs/vue-useSignOut
docs: add `useSignOut` inline example in `@nhost/vue`
2022-06-08 09:58:38 +02:00
Pierre-Louis Mercereau
fef034aa6e docs: adjust 2022-06-08 08:56:24 +02:00
Pierre-Louis Mercereau
7037af8ae6 docs: add useSignOut inline example in @nhost/vue 2022-06-07 21:47:44 +02:00
Pilou
477b48f184 Merge pull request #689 from nhost/contributors-readme-action-D3RyXdsQsy
contributors readme action update
2022-06-07 15:30:13 +02:00
Pierre-Louis Mercereau
33ac09fa40 ci: correct codecov url 2022-06-07 14:50:38 +02:00
Pierre-Louis Mercereau
92d66b9413 ci: include coverage as an output 2022-06-07 14:45:56 +02:00
Pierre-Louis Mercereau
9eb9b590f9 debug2 2022-06-07 14:20:41 +02:00
Pierre-Louis Mercereau
7edca99d48 debug 2022-06-07 14:19:25 +02:00
Pierre-Louis Mercereau
964cc6ded3 ci: don't redact vercel team 2022-06-07 14:12:32 +02:00
Pierre-Louis Mercereau
a69e0032bf ci: add comment to test turborepo cache + codecov 2022-06-07 14:01:03 +02:00
github-actions[bot]
86fbf934d6 contrib-readme-action has updated readme 2022-06-07 11:00:16 +00:00
Johan Eliasson
0d6ecd8397 Merge pull request #688 from nhost/contributors-readme-action-C3ZlKRvXQT
contributors readme action update
2022-06-07 13:00:00 +02:00
github-actions[bot]
56b57b2878 contrib-readme-action has updated readme 2022-06-07 10:59:11 +00:00
Johan Eliasson
e79ee93fde Merge pull request #686 from nhost/contributors-readme-action-1LPJf9w-v5
contributors readme action update
2022-06-07 12:58:58 +02:00
Johan Eliasson
7cec42b392 Merge pull request #683 from nhost/contributors-readme-action-PH9phwd1Bo
contributors readme action update
2022-06-07 12:58:42 +02:00
github-actions[bot]
f254c329f5 contrib-readme-action has updated readme 2022-06-07 10:58:28 +00:00
Johan Eliasson
2a84a025d5 Merge pull request #685 from nhost/contributors-readme-action-iIoqZk95q5
contributors readme action update
2022-06-07 12:58:14 +02:00
github-actions[bot]
c2b0625c31 contrib-readme-action has updated readme 2022-06-07 10:57:57 +00:00
Johan Eliasson
e80384c7ee Merge pull request #684 from nhost/timpratim-patch-1
Update event-triggers.mdx
2022-06-07 12:57:40 +02:00
Pratim
8fa4813b4e Update event-triggers.mdx
Added "t" to even
2022-06-07 16:07:54 +05:30
github-actions[bot]
d4c2e9eb78 contrib-readme-action has updated readme 2022-06-07 10:17:33 +00:00
Pilou
557d1a69b3 Merge pull request #682 from nhost/timpratim-patch-1
Update index.mdx
2022-06-07 12:17:16 +02:00
Pratim
4b811d939e Update index.mdx
Corrected the spelling of intuitive
2022-06-07 15:34:12 +05:30
Pierre-Louis Mercereau
f2a25b688d Merge branch 'main' into test/ci 2022-06-07 11:21:18 +02:00
Pierre-Louis Mercereau
e9c82d8609 ci: remove 'test/ci' from the gh workflow 2022-06-07 11:20:11 +02:00
Pierre-Louis Mercereau
853527a770 Merge branch 'main' into test/ci 2022-06-07 11:19:07 +02:00
Pilou
9e6e05c1b2 Merge pull request #663 from nhost/test/react-apollo
e2e tests: groundwork on the react-apollo example
2022-06-07 11:17:42 +02:00
Pierre-Louis Mercereau
85b5d89dbd chore: merge from main 2022-06-07 11:09:32 +02:00
Pilou
d22885f6b7 Merge pull request #680 from plmercereau/test/ci
Test/ci
2022-06-07 11:01:46 +02:00
Pierre-Louis Mercereau
5944b25e7e rename ci script to e2e 2022-06-07 11:00:57 +02:00
Pierre-Louis Mercereau
52fc5d3123 summary 2022-06-07 10:04:20 +02:00
Pierre-Louis Mercereau
7e0608f5ca ci: codecov 2022-06-07 09:57:55 +02:00
Svarto
18ac56d097 added changeset for hasura-auth-js 2022-06-06 21:38:53 +02:00
Svarto
366fc2403d included an optional ticket in changePassword function to allow for changeing password of logged out users, matches hasura-auth #186 2022-06-06 21:27:44 +02:00
Pierre-Louis Mercereau
8876819687 docs: inline explanation of the tests GH workflow 2022-06-06 20:11:06 +02:00
Pilou
635d82b18f Merge pull request #678 from nhost/changeset-release/main
chore: update versions
2022-06-06 19:02:34 +02:00
github-actions[bot]
6a1def9b86 chore: update versions 2022-06-06 16:29:21 +00:00
Pilou
2cc075f4ef Merge pull request #677 from nhost/fix/subscription-headers
fix: add headers to subscription when creating the Apollo client
2022-06-06 18:28:27 +02:00
Pierre-Louis Mercereau
bbe6750632 chore: rephrase changeset 2022-06-06 18:28:08 +02:00
Johan Eliasson
19149261aa Merge pull request #676 from nhost/docs-emails-b8as9d
Docs abut emails with CLI
2022-06-06 13:59:08 +02:00
Pierre-Louis Mercereau
8b2d1b00a1 fix: add headers to subscription when creating the Apollo client 2022-06-06 13:34:27 +02:00
Johan Eliasson
3231e31c3e docs abuot emails with CLI 2022-06-06 08:08:09 +02:00
Pierre-Louis Mercereau
be1ef6fe79 ci: cosmetics: ann install step name 2022-06-05 23:06:55 +02:00
Pierre-Louis Mercereau
5a963832e2 ci: clean gh action and workflow 2022-06-05 23:05:52 +02:00
Pierre-Louis Mercereau
aa3f5c243c ci: disable fail-fast 2022-06-05 22:56:54 +02:00
Pierre-Louis Mercereau
5dce0f0fdc ci: make e2e test work locally 2022-06-05 22:49:46 +02:00
Pierre-Louis Mercereau
3c0e9fbb84 Merge branch 'plmercereau-test/ci' into test/ci 2022-06-05 22:19:54 +02:00
Pierre-Louis Mercereau
6c202304b2 Merge branch 'test/ci' of https://github.com/plmercereau/nhost into plmercereau-test/ci 2022-06-05 22:19:34 +02:00
Pierre-Louis Mercereau
50dcf41e6c ci: unit tests, e2e and lint 2022-06-05 22:14:13 +02:00
Pierre-Louis Mercereau
d6b4f83e16 ci: return json as a single line 2022-06-04 11:27:00 +02:00
Pierre-Louis Mercereau
ba86ae229d ci: include hasura-auth-js to e2e, and improve gh action 2022-06-04 11:14:30 +02:00
Pierre-Louis Mercereau
96f41ad0de ci: rename ci to test:ci 2022-06-03 22:41:25 +02:00
Pierre-Louis Mercereau
aba0c8b2da refactor: readability, and remove obsolete script 2022-06-03 22:36:53 +02:00
Pierre-Louis Mercereau
a27eeeab8e ci: improve readability 2022-06-03 22:30:06 +02:00
Pierre-Louis Mercereau
61a746e674 ci: only build example dependencies 2022-06-03 22:21:52 +02:00
Pierre-Louis Mercereau
7f37c87929 ci: add build step 2022-06-03 22:08:22 +02:00
Pierre-Louis Mercereau
3322c4b795 ci: convert list to stringified json and remove presumably useless steps 2022-06-03 22:04:19 +02:00
Pierre-Louis Mercereau
1e70c7e7a5 ci: gh actions matrix 2022-06-03 21:57:07 +02:00
Pierre-Louis Mercereau
9fbbdca60d chore: check new gh action runs on separate branch 2022-06-03 20:28:32 +02:00
Pilou
f7a3136086 Merge pull request #670 from nhost/changeset-release/main
chore: update versions
2022-06-03 20:06:20 +02:00
github-actions[bot]
b5642586a4 chore: update versions 2022-06-03 14:00:05 +00:00
Pilou
cadc8f8864 Merge pull request #667 from nhost/662-invalid-url-when-using-google-provider
fix: correct rewriting options when `clientUrl` is not available
2022-06-03 15:58:17 +02:00
Pierre-Louis Mercereau
1dc2bce05a refactor: add tests and inline docs 2022-06-03 14:41:15 +02:00
Pilou
65588268f6 Merge pull request #669 from nhost/contributors-readme-action-hUXZuGw8l3
contributors readme action update
2022-06-03 13:37:21 +02:00
github-actions[bot]
a6b15bb387 contrib-readme-action has updated readme 2022-06-03 10:07:07 +00:00
Pilou
7b8f64ab25 Merge pull request #668 from nbourdin/patch-2
Update github-integration.mdx
2022-06-03 12:06:50 +02:00
Nicolas Bourdin
451b62d641 Update github-integration.mdx 2022-06-03 12:05:04 +02:00
Pierre-Louis Mercereau
d843f1a3ed refactor: use testing-library and other adjustments 2022-06-03 12:00:17 +02:00
Pierre-Louis Mercereau
08a37aae7c fix: correct rewriting options when clientUrl is not available
The client URL is set to `window.location.origin`, so it can rewrite redirection urls that are
passed on to authenticaion methods. However, `clientUrl` is set to `''` when running on the server
side. This fix then avoid raising an error when trying to rewrite `redirectTo` on non-browser
environment, and forces `useProviderLink` to be rendered on the client side.
2022-06-03 11:41:52 +02:00
Pierre-Louis Mercereau
464a10fa06 refactor: replace 'workspace:*' by '*' in react-apollo example 2022-06-03 08:42:24 +02:00
Pierre-Louis Mercereau
2cb1c36c76 chore: remove line from .eslint.base.js (merge mistake), remove eslintrc in example folder 2022-06-02 21:35:04 +02:00
Pierre-Louis Mercereau
b4670024ca Merge branch 'main' into test/react-apollo 2022-06-02 21:13:20 +02:00
Pierre-Louis Mercereau
feb616ecc0 test: mvp 2022-06-02 21:05:03 +02:00
Johan Eliasson
679c32cb5a Merge pull request #658 from nhost/docs-storage
Docs: Storage and small fixes
2022-06-02 17:03:13 +02:00
Johan Eliasson
25bc2bee67 small updates 2022-06-02 15:34:17 +02:00
Szilárd Dóró
ce1ea16981 Merge pull request #661 from nhost/changeset-release/main
chore: update versions
2022-06-02 12:50:27 +02:00
github-actions[bot]
7048eaf0bb chore: update versions 2022-06-02 10:47:48 +00:00
Szilárd Dóró
9c382a3773 Merge pull request #660 from nhost/fix/esm-rollback
chore: reverted ESM related changes
2022-06-02 12:46:57 +02:00
Johan Eliasson
7f07c75dc4 Merge pull request #659 from gdangelo/docs/quickstarts-nextjs
docs: Add skip option to useQuery call to skip query if id is falsy
2022-06-02 12:44:13 +02:00
Szilárd Dóró
ebad09364e added changeset 2022-06-02 12:43:40 +02:00
Szilárd Dóró
cbec4dbab6 chore: reverted ESM related changes
ESM gods didn't like me 😞 we'll come back to this in the future
2022-06-02 11:26:23 +02:00
Johan Eliasson
a05d7585a3 typo 2022-06-02 10:51:15 +02:00
Johan Eliasson
89f823fdce stronger 2022-06-02 10:50:08 +02:00
Johan Eliasson
6f4d465f54 main repo 2022-06-02 10:48:23 +02:00
Johan Eliasson
aafbaa8d25 update 2022-06-02 10:37:47 +02:00
Johan Eliasson
0f7b31497f storage update 2022-06-02 09:33:36 +02:00
Grégory D'Angelo
bcf2751625 docs: Add skip option to useQuery call to skip query if id is falsy 2022-06-02 09:20:53 +02:00
Johan Eliasson
1965fc85d6 storage started 2022-06-02 08:30:46 +02:00
Johan Eliasson
a8a7c32ec1 better docs for magic link and sms 2022-06-02 07:21:36 +02:00
Johan Eliasson
e8232cdfbb better phone number sign in docs 2022-06-02 07:14:28 +02:00
Johan Eliasson
066489e3d4 zoom images 2022-06-02 07:00:34 +02:00
Johan Eliasson
de10d84cc1 started 2022-06-01 23:24:11 +02:00
Pierre-Louis Mercereau
7bc6d231b8 chore: cypress example 2022-06-01 18:24:07 +02:00
Szilárd Dóró
f7ddafdf05 Merge pull request #657 from nhost/changeset-release/main
chore: update versions
2022-06-01 15:26:43 +02:00
github-actions[bot]
f86b707d34 chore: update versions 2022-06-01 13:23:25 +00:00
Szilárd Dóró
d281665424 Merge pull request #655 from nhost/fix/missing-modules
fix: `@nhost/react-apollo` imports
2022-06-01 15:22:21 +02:00
Szilárd Dóró
24659b2979 fixed build warning related to unknown globals 2022-06-01 14:52:36 +02:00
Szilárd Dóró
ef8c8f9cd4 fixed @nhost/react-apollo imports 2022-06-01 14:47:04 +02:00
Pierre-Louis Mercereau
84e72f1d8d chore: install cypress and adjust eslint 2022-06-01 14:36:15 +02:00
Johan Eliasson
bc526e70ef Merge pull request #651 from gdangelo/docs/quickstarts-redwoodjs
docs: Add skip option to useQuery call to skip query if id is falsy
2022-06-01 14:30:23 +02:00
Szilárd Dóró
35068d213f Merge pull request #652 from nhost/changeset-release/main
chore: update versions
2022-06-01 13:42:31 +02:00
Pilou
e732ea9aa5 Merge pull request #650 from gdangelo/docs/quickstarts-react
docs: Add skip option to useQuery call to skip query if id is falsy
2022-06-01 13:40:35 +02:00
github-actions[bot]
e8d5338aca chore: update versions 2022-06-01 11:39:36 +00:00
Szilárd Dóró
ac84f4d0e9 Merge pull request #648 from nhost/fix/next-esm-followup
ESM and build process improvements
2022-06-01 13:38:05 +02:00
Szilárd Dóró
12e9a572db activated import/extensions ESLint rule
- file extensions are mandatory for imported packages
- fixed general errors indicated by the linter
2022-06-01 13:31:09 +02:00
Grégory D'Angelo
c1c7ceb319 docs: Add skip option to useQuery call to skip query if id is falsy 2022-06-01 13:20:41 +02:00
Grégory D'Angelo
23a9f9f547 docs: Add skip option to useQuery call to skip query if id is falsy 2022-06-01 11:43:27 +02:00
Pierre-Louis Mercereau
3db941eb46 Merge branch 'main' into feat/file-upload 2022-06-01 11:22:50 +02:00
Pierre-Louis Mercereau
42a7aaf916 add doc link 2022-06-01 11:04:13 +02:00
Szilárd Dóró
1b37b9f62a added changeset 2022-06-01 10:37:25 +02:00
Szilárd Dóró
764ea72d60 fixed build warning about globals 2022-06-01 09:42:06 +02:00
Pilou
3efbbca136 Merge pull request #646 from nhost/plmercereau-patch-1
Remove AUTH_SMS_TWILIO_FROM from env var list
2022-06-01 09:01:24 +02:00
Pilou
93d8eec950 Remove AUTH_SMS_TWILIO_FROM from env var list 2022-06-01 08:46:49 +02:00
Szilárd Dóró
d4ea2fce6d fixed React ESM issues, simplified bundle copy 2022-05-31 23:08:48 +02:00
Pierre-Louis Mercereau
2443399cdc Merge branch 'main' into feat/file-upload 2022-05-31 20:35:43 +02:00
Nuno Pato
b8f4b75b0c Add changeset 2022-05-31 17:43:45 +02:00
Nuno Pato
5227c84820 Merge branch 'main' into feat/add-cdn-support-nhost-js 2022-05-31 17:32:47 +02:00
Johan Eliasson
5096456f78 Merge pull request #643 from nhost/elitan-patch-2
Light mode for now to match landing page and dashboard
2022-05-31 17:08:01 +02:00
Johan Eliasson
507d09861c Light mode for now to match landing page and dashboard 2022-05-31 16:32:25 +02:00
Szilárd Dóró
050cb288fc Merge pull request #642 from nhost/changeset-release/main
chore: update versions
2022-05-31 16:22:55 +02:00
github-actions[bot]
cd120c61fb chore: update versions 2022-05-31 14:19:38 +00:00
Szilárd Dóró
5ddb5a751b Merge pull request #640 from nhost/fix/next-esm-bundling 2022-05-31 16:18:20 +02:00
Johan Eliasson
92209b6690 Merge pull request #641 from nhost/contributors-readme-action-A3l1kugNkY
contributors readme action update
2022-05-31 16:04:08 +02:00
github-actions[bot]
bdb11c0fa4 contrib-readme-action has updated readme 2022-05-31 14:02:31 +00:00
Johan Eliasson
63c3e7cb2c Merge pull request #639 from nhost/contributors-readme-action-Dh3J_t5dMB
contributors readme action update
2022-05-31 16:02:09 +02:00
Szilárd Dóró
78341491cd fixed ESM related errors, updated ESM file names 2022-05-31 15:19:42 +02:00
github-actions[bot]
cd8560e6d3 contrib-readme-action has updated readme 2022-05-31 13:14:37 +00:00
Johan Eliasson
fced43f55d Merge pull request #638 from nhost/contributors-readme-action-bW8QNtGd78
contributors readme action update
2022-05-31 15:14:19 +02:00
github-actions[bot]
47cc5d1562 contrib-readme-action has updated readme 2022-05-31 12:42:26 +00:00
Johan Eliasson
9ab4d49421 Merge pull request #616 from mdp18/docs-react-nhost-fix
docs clarification for nhost instance
2022-05-31 14:42:12 +02:00
Johan Eliasson
4bdd29c2ea Merge branch 'main' into docs-react-nhost-fix 2022-05-31 14:41:48 +02:00
Johan Eliasson
a43fa284b4 Merge pull request #637 from nhost/docs-small-fixes
Docs: Small fixes
2022-05-31 14:40:59 +02:00
Johan Eliasson
e68ca9b0c8 Merge pull request #632 from nhost/docs-og-images
Docs: Open Graph Images
2022-05-31 14:40:40 +02:00
Johan Eliasson
ad26b8392f small fixes 2022-05-31 14:01:46 +02:00
Johan Eliasson
09ffcb961a slightly modified images 2022-05-31 13:56:43 +02:00
Johan Eliasson
42879a26da added img for all docs under platform 2022-05-31 13:49:26 +02:00
Johan Eliasson
cdba9aa5a0 no nextjs 2022-05-31 11:26:16 +02:00
Johan Eliasson
b092e13ba0 more images 2022-05-31 11:16:14 +02:00
Johan Eliasson
a2343c8ef2 small config updates 2022-05-31 10:57:03 +02:00
Szilárd Dóró
31cc558492 Merge pull request #610 from nhost/changeset-release/main
chore: update versions
2022-05-31 10:42:25 +02:00
Johan Eliasson
2cbe8a5045 dynamic url 2022-05-31 10:39:35 +02:00
github-actions[bot]
b6817f4c55 chore: update versions 2022-05-31 08:39:18 +00:00
Szilárd Dóró
41823e143f Merge pull request #633 from nhost/fix/bundling-follow-up
Package build improvements
2022-05-31 10:37:33 +02:00
Johan Eliasson
a38ddeed5e update 2022-05-31 10:35:49 +02:00
Szilárd Dóró
8b69be1baa changeset wording improvements 2022-05-31 10:32:17 +02:00
Szilárd Dóró
bc11c9e56a build related fixes: warnings, copying on Windows 2022-05-31 10:30:30 +02:00
Johan Eliasson
1fbf990c79 test image 2022-05-31 10:25:36 +02:00
Johan Eliasson
b942420b07 Merge pull request #621 from nhost/docs-auth-4
Docs: Authentication
2022-05-31 09:58:13 +02:00
Johan Eliasson
abbbf0b059 correct variables 2022-05-31 09:56:51 +02:00
Johan Eliasson
6121d2be45 updates 2022-05-31 09:52:46 +02:00
Johan Eliasson
6e8a3c9b56 nice looking directory tree 2022-05-31 09:50:06 +02:00
Szilárd Dóró
601e0237ed Merge pull request #623 from nhost/fix/esm-bundling
fix: Package bundling / Node.js environment
2022-05-31 09:40:28 +02:00
Johan Eliasson
7ccd051a41 info about custom permission variables 2022-05-31 09:39:19 +02:00
Johan Eliasson
7f7eebd75e jwt clarification 2022-05-31 09:34:50 +02:00
Johan Eliasson
c5a9fc568b Merge branch 'main' into docs-react-nhost-fix 2022-05-31 09:31:22 +02:00
Pilou
24833db254 Merge pull request #631 from nhost/628-docker-compose-file-not-working-with-nhosthasura-storage-v020
fix: docker-compose with hasura-storage 0.2
2022-05-31 08:49:52 +02:00
Pierre-Louis Mercereau
6f970ec18d fix: docker-compose with hasura-storage 0.2 2022-05-31 08:41:03 +02:00
Pierre-Louis Mercereau
de81942fb2 phrasing 2022-05-31 08:21:10 +02:00
Johan Eliasson
fe158a5334 Merge pull request #630 from nhost/contributors-readme-action-lw_Njvj3EE
contributors readme action update
2022-05-31 07:41:52 +02:00
github-actions[bot]
05fd36ce75 contrib-readme-action has updated readme 2022-05-31 05:35:53 +00:00
Johan Eliasson
e19818b262 Merge pull request #629 from atapas/patch-1
Corrected the yarn switch for installing express
2022-05-31 07:35:39 +02:00
Tapas Adhikary
dac7e16249 Corrected the yarn switch for installing express
The switch for yarn should `D`, not `d`.
2022-05-31 10:04:21 +05:30
Pierre-Louis Mercereau
5a60c5cb29 doc cleanup 2022-05-30 23:59:43 +02:00
Pierre-Louis Mercereau
752812a321 minor improvement 2022-05-30 23:53:07 +02:00
Pierre-Louis Mercereau
0af2337499 rename to bucketId 2022-05-30 23:46:10 +02:00
Pierre-Louis Mercereau
b238bd7b6b improve actions 2022-05-30 23:41:49 +02:00
Pierre-Louis Mercereau
f87403108f correct progress 2022-05-30 23:31:54 +02:00
Pilou
4708c36a05 Merge pull request #627 from nhost/contributors-readme-action-baAdE7ragJ
contributors readme action update
2022-05-30 23:01:17 +02:00
Pierre-Louis Mercereau
20f8fe9eb4 correct inline doc 2022-05-30 22:48:56 +02:00
github-actions[bot]
a1f4e9146a contrib-readme-action has updated readme 2022-05-30 20:47:17 +00:00
Pilou
b0d0577800 Merge pull request #626 from nbourdin/patch-1
Update serverless-functions.mdx
2022-05-30 22:47:04 +02:00
Pierre-Louis Mercereau
6f6044c49c forbid clearing list when uploading 2022-05-30 22:45:24 +02:00
Nicolas Bourdin
74a7feed45 Update serverless-functions.mdx 2022-05-30 22:42:10 +02:00
Pierre-Louis Mercereau
4ffb14b240 rename to useFileUploadItem 2022-05-30 22:23:25 +02:00
Pierre-Louis Mercereau
f9854b15c4 typo and changesets 2022-05-30 22:19:14 +02:00
Pierre-Louis Mercereau
cf206a4d1c inline documentation 2022-05-30 22:10:03 +02:00
Szilárd Dóró
2b2f8e91ae fixed bundling of packages to support Node.js environment 2022-05-30 21:57:41 +02:00
Pierre-Louis Mercereau
eae285bfc9 misc improvements 2022-05-30 21:47:13 +02:00
Pierre-Louis Mercereau
51a115eaf7 rename machine files and fix cancel action 2022-05-30 20:37:39 +02:00
Pierre-Louis Mercereau
da9c043fb5 reuse single file upload hook 2022-05-30 19:44:45 +02:00
Johan Eliasson
a729bc6cde Merge branch 'docs-auth-3' into docs-auth-4 2022-05-30 19:33:10 +02:00
Max
0b79b4f492 end ticks fix
fixed ``` end ticks from protected routes
2022-05-30 09:07:29 -07:00
Max
832702ff45 docs clarification v2
added review comments
2022-05-30 09:05:51 -07:00
Johan Eliasson
397748bd1f typo 2022-05-30 17:38:38 +02:00
Johan Eliasson
1026dfccb7 typos and updates 2022-05-30 17:37:52 +02:00
Pierre-Louis Mercereau
e821af279a error, cancellation, simplification 2022-05-30 17:36:27 +02:00
Johan Eliasson
e5d3066091 typo 2022-05-30 17:33:51 +02:00
Johan Eliasson
9847875752 updates 2022-05-30 17:33:26 +02:00
Johan Eliasson
8af9c880c9 correct links 2022-05-30 17:29:40 +02:00
Johan Eliasson
004c44cb80 auth docs updated 2022-05-30 17:00:57 +02:00
Pierre-Louis Mercereau
1d3469a455 Merge branch 'main' into feat/file-upload 2022-05-30 15:58:37 +02:00
Szilárd Dóró
33358e88f8 Merge pull request #618 from nhost/fix/docs-highlight-background
fix: Docusaurus highlight background color
2022-05-30 15:50:22 +02:00
Pierre-Louis Mercereau
05ced50d74 Merge branch 'main' into anonymous-users 2022-05-30 13:31:27 +02:00
Pilou
40facd73f7 Merge pull request #607 from nhost/refactor/react-files
refactor: simpler and more consistent file structure in @nhost/react
2022-05-30 13:17:55 +02:00
Pierre-Louis Mercereau
4c916a94f0 improve tests on anonymous users 2022-05-30 13:17:21 +02:00
Pierre-Louis Mercereau
a69a6d63e3 grammar 2022-05-30 13:16:33 +02:00
Pierre-Louis Mercereau
5abb2dda3f not(a and b) <=> not a and not b 2022-05-30 13:15:25 +02:00
Pierre-Louis Mercereau
5630c07a8a rename hook to composable 2022-05-30 11:47:19 +02:00
Pierre-Louis Mercereau
5c6239589c remove unused interface 2022-05-30 11:46:38 +02:00
Pierre-Louis Mercereau
028793d1a3 remove unnecessary useMemo 2022-05-30 11:37:15 +02:00
Pierre-Louis Mercereau
bc4c20592e export hook result interfaces 2022-05-30 11:35:51 +02:00
Szilárd Dóró
023a3cbef2 fix: Docusaurus highlight background color 2022-05-30 09:12:27 +02:00
Johan Eliasson
a8490b5a52 Merge pull request #613 from nhost/docs-react-clarification
Docs: React protected route clarification
2022-05-29 21:46:04 +02:00
Max
1791452fc2 docs clarification for nhost instance
Clarifying where nhost client instance should be made for ease of following and understanding the documentation. I think ultimately it should follow the steps shown subsequently.
2022-05-29 10:53:59 -07:00
Johan Eliasson
e390f99c43 updates 2022-05-29 19:21:14 +02:00
Johan Eliasson
0a9143a5b8 docs clarification 2022-05-29 19:13:36 +02:00
Johan Eliasson
4e9a47d229 Merge pull request #612 from nhost/contributors-readme-action-hUP1378npl
contributors readme action update
2022-05-29 18:50:47 +02:00
github-actions[bot]
fbec804d9e contrib-readme-action has updated readme 2022-05-29 15:34:04 +00:00
Pilou
a815678379 Merge pull request #611 from MelodicCrypter/MelodicCrypter-fix-docs-authentication-typo
Fixed typo error in Authentication/sign-in-methods page
2022-05-29 17:33:49 +02:00
Hugh Caluscusin
a2d4530e8a Fixed typo error 2022-05-29 21:49:19 +08:00
Pilou
c8b0269d6f Merge pull request #609 from nhost/feat/admin-secret
feat: new `adminSecret` option
2022-05-27 21:50:55 +02:00
Pierre-Louis Mercereau
2eed249826 post-review 2022-05-27 20:23:54 +02:00
Pierre-Louis Mercereau
88c74cc059 fix: add missing param 2022-05-27 19:37:02 +02:00
Pierre-Louis Mercereau
858014e42a feat: new adminSecret option 2022-05-27 19:12:39 +02:00
Pierre-Louis Mercereau
16b15802c7 chore: lint fix and clean 2022-05-27 09:59:45 +02:00
Pierre-Louis Mercereau
9ff668d26c feat: remove one or every file in multiple upload 2022-05-27 09:34:52 +02:00
Pierre-Louis Mercereau
8f100e6e56 refactor: get things prepared for the next @nhost/react file structure 2022-05-27 08:29:40 +02:00
Pierre-Louis Mercereau
1a6201f327 refactor: simpler and more consistent file structure
Keep the same logic as in Vue: 1 hook = 1 file, file name = hook name
2022-05-26 23:08:18 +02:00
Pierre-Louis Mercereau
42dc93100c feat(wip): file upload machines, hooks and example 2022-05-26 22:28:44 +02:00
Nuno Pato
04aadb6fa4 Add missing https 2022-05-25 19:04:22 +02:00
Nuno Pato
e08a08973d Test urlFromParams util function 2022-05-25 18:36:16 +02:00
Nuno Pato
3b11caf3bc Introduce types for backendUrl and subdomain 2022-05-25 17:11:01 +02:00
Johan Eliasson
cb1560594b Merge pull request #604 from nhost/package-readmes
basic package readmes
2022-05-25 11:13:06 +02:00
Pierre-Louis Mercereau
6fa70a6202 correct copy-paste 2022-05-25 09:31:04 +02:00
Nuno Pato
049f67e54a Improve messaging 2022-05-25 00:45:41 +02:00
Nuno Pato
6da1f90bc3 Add subdomain alongside backendUrl 2022-05-25 00:03:14 +02:00
Pierre-Louis Mercereau
93b6daf486 basic package readmes 2022-05-24 20:47:42 +02:00
Pierre-Louis Mercereau
9772a3b577 rephrase 2022-05-24 15:24:11 +02:00
Johan Eliasson
b35936c230 Merge pull request #596 from nhost/docs-graphql
docs: GraphQL, Permissions, GitHub Integration, Environment Variables
2022-05-24 14:17:00 +02:00
Johan Eliasson
45e536a1de docs improvements 2022-05-24 14:06:50 +02:00
Johan Eliasson
cb3b9d4c79 Merge pull request #600 from nhost/elitan-patch-2
Update README.md
2022-05-24 13:01:33 +02:00
Nuno Pato
59fd68dee3 Add region to the NhostClient constructor 2022-05-24 12:56:02 +02:00
Johan Eliasson
865f052674 Update README.md 2022-05-24 09:20:00 +02:00
Johan Eliasson
401fc2db9b Merge pull request #599 from nhost/oss-tagline
README updates
2022-05-24 09:15:30 +02:00
Johan Eliasson
00a641d20a header fix 2022-05-24 09:15:08 +02:00
Pilou
a64284a028 Merge pull request #598 from nhost/elitan-patch-2
Update vercel.json
2022-05-24 08:56:13 +02:00
Johan Eliasson
1fd42677a8 headers update 2022-05-23 22:28:16 +02:00
Johan Eliasson
0851a0a53d README updates 2022-05-23 22:25:27 +02:00
Johan Eliasson
3122c5e726 Update vercel.json 2022-05-23 22:16:37 +02:00
Johan Eliasson
f38a831405 updated env vars docs 2022-05-23 22:07:21 +02:00
Johan Eliasson
3a18239c71 workdings and headers 2022-05-23 21:47:00 +02:00
Johan Eliasson
4952cc9d7b small updates 2022-05-23 21:20:05 +02:00
Johan Eliasson
b13ddd087e updates 2022-05-23 21:18:46 +02:00
Johan Eliasson
01e9b609cf Merge pull request #597 from nhost/contributors-readme-action-ui0UBmK5hr
contributors readme action update
2022-05-23 21:03:33 +02:00
Johan Eliasson
d1068ea78a added github integration docs 2022-05-23 21:02:54 +02:00
github-actions[bot]
793672fd3d contrib-readme-action has updated readme 2022-05-23 18:13:47 +00:00
Johan Eliasson
577a108329 Merge pull request #595 from nhost/docs/add-missing-links
docs: add missing links
2022-05-23 20:13:31 +02:00
Johan Eliasson
7e49829d81 updates 2022-05-23 17:25:04 +02:00
Pierre-Louis Mercereau
b64fa32c8a docs: add missing links 2022-05-23 11:53:12 +02:00
Pilou
c63aaaf5ce Merge pull request #590 from Sonichigo/patch-1
fixed typo in documentation
2022-05-23 09:45:04 +02:00
Pilou
110ce6414c Merge pull request #593 from nhost/contributors-readme-action--vk6xBLD4J
contributors readme action update
2022-05-23 09:27:59 +02:00
Pilou
4df37cdefa Merge pull request #591 from nhost/contributors-readme-action-8a6nvMV_es
contributors readme action update
2022-05-23 09:27:11 +02:00
github-actions[bot]
d7a9e5c150 contrib-readme-action has updated readme 2022-05-23 07:26:53 +00:00
Pilou
c3bede4051 Merge pull request #592 from nhost/changeset-release/main
chore: update versions
2022-05-23 09:26:36 +02:00
github-actions[bot]
e2e87bd0b2 chore: update versions 2022-05-23 07:20:25 +00:00
github-actions[bot]
2270983eb9 contrib-readme-action has updated readme 2022-05-23 07:19:46 +00:00
Pilou
c6bc105a6c Merge pull request #589 from heygambo/feat/vue
🐛 imports from @apollo/client/core for vue
2022-05-23 09:19:31 +02:00
Pierre-Louis Mercereau
097e304f9f reflect changes in missing files and add changeset 2022-05-23 09:14:42 +02:00
Animesh Pathak
17ad0a21cc fixed typo in documentation 2022-05-23 06:59:04 +05:30
Christian Gambardella
fb34967ea6 🐛 imports from @apollo/client/core for vue
This fixes a bug where it's required to have react in a vue project.
@apollo/client exports code related to react.
@apollo/client/core does not not.

Ref: https://github.com/apollographql/apollo-client/blob/main/src/index.ts
2022-05-23 00:28:57 +02:00
Johan Eliasson
0f574d4c30 graphql first draft 2022-05-22 21:54:50 +02:00
Johan Eliasson
20ab24d227 Merge pull request #588 from nhost/contributors-readme-action-ABARDipKaO
contributors readme action update
2022-05-22 08:53:16 +02:00
github-actions[bot]
efd31f4bce contrib-readme-action has updated readme 2022-05-22 06:52:14 +00:00
Johan Eliasson
30da899832 Merge pull request #587 from leothorp/patch-1
Fix broken README.md doc links
2022-05-22 08:52:01 +02:00
Leo Thorp
d14b0d4644 Fix broken README.md doc links 2022-05-21 17:23:25 -05:00
Johan Eliasson
51d742b12c Merge pull request #581 from nhost/docs-database
Docs: Database and Event Triggers
2022-05-20 22:10:08 +02:00
Pilou
4f9b34a6a0 Merge pull request #585 from nhost/contributors-readme-action-H5QVIVxSRf
contributors readme action update
2022-05-20 21:56:19 +02:00
github-actions[bot]
640d4521e2 contrib-readme-action has updated readme 2022-05-20 19:54:39 +00:00
Pilou
8003dfed8b Merge pull request #573 from nhost/docs-structure
Docs: Top menu structure change
2022-05-20 21:54:24 +02:00
Johan Eliasson
972af7bab1 added base dir redirect 2022-05-20 21:40:24 +02:00
Johan Eliasson
2c35b02c83 Merge branch 'main' into docs-structure 2022-05-20 21:38:09 +02:00
Johan Eliasson
c8c2f50fca added redirects to blog posts 2022-05-20 21:36:42 +02:00
Johan Eliasson
3ef786392b more small updates 2022-05-20 16:12:23 +02:00
Johan Eliasson
b4b3c5edc2 small updates 2022-05-20 16:06:41 +02:00
Pierre-Louis Mercereau
5b69e6eccb refactor: lint 2022-05-20 14:17:00 +02:00
Pierre-Louis Mercereau
1ca5d34c80 revert: unnecessary renaming 2022-05-20 14:08:18 +02:00
Johan Eliasson
02fb3eaa91 event trigger updates 2022-05-20 14:01:14 +02:00
Pierre-Louis Mercereau
c161339423 chore: changesets and improvements 2022-05-20 13:56:59 +02:00
Pierre-Louis Mercereau
ab469fba84 Merge branch 'main' into anonymous-users 2022-05-20 13:07:04 +02:00
Pierre-Louis Mercereau
b122a306a4 feat: deanonymisation from a phone 2022-05-20 13:04:14 +02:00
Pierre-Louis Mercereau
d3a2eae789 refactor: merge email and signup states into a common registration state 2022-05-20 10:49:04 +02:00
Johan Eliasson
a5c21ed9f8 fix2 2022-05-20 10:14:50 +02:00
Johan Eliasson
a36843296a fix 2022-05-20 10:14:16 +02:00
Johan Eliasson
318b0c8d54 db updates 2022-05-20 09:05:48 +02:00
Johan Eliasson
2a684d3f84 Merge pull request #580 from nhost/fix/docgen-multiline-description
fix: Auto-generated documentation descriptions
2022-05-20 08:58:26 +02:00
Pierre-Louis Mercereau
3ac1694d1e Merge branch 'main' into anonymous-users 2022-05-20 08:44:36 +02:00
Johan Eliasson
0e870ad971 redirect cli URLs 2022-05-20 07:55:52 +02:00
Pilou
96a2c5f63f Merge pull request #578 from nhost/changeset-release/main
chore: update versions
2022-05-20 07:42:54 +02:00
Johan Eliasson
5dbad5feb2 Merge pull request #579 from nhost/hasura-diagram
Added Hasura to diagram
2022-05-20 06:27:46 +02:00
Pierre-Louis Mercereau
032743c750 refactor: consistent naming 2022-05-19 22:34:48 +02:00
Pierre-Louis Mercereau
5029c0b934 fix: corrections 2022-05-19 22:29:31 +02:00
Pierre-Louis Mercereau
7eb927b549 refactor: working and tested 2022-05-19 22:22:25 +02:00
Johan Eliasson
6bb43b2536 wrong branch.. 2022-05-19 18:46:48 +02:00
Johan Eliasson
7a13cb247f redirect cli urls 2022-05-19 18:44:21 +02:00
Szilárd Dóró
1521572f5f fixed #559
- Fixed typos in docs
- Updated wording of some TSDocs
2022-05-19 16:05:03 +02:00
Johan Eliasson
b8c150e6c3 updated diagram in docs too 2022-05-19 15:55:39 +02:00
Johan Eliasson
f9ad440114 updated diagram 2022-05-19 15:33:52 +02:00
Johan Eliasson
da6fab0767 updated diagram 2022-05-19 15:28:18 +02:00
Johan Eliasson
4b4181a073 added Hasura to diagram 2022-05-19 15:25:38 +02:00
Johan Eliasson
1fc001a31a Merge pull request #569 from gdangelo/docs/quickstarts-redwoodjs
Create new quickstart guide for RedwoodJS
2022-05-19 14:16:13 +02:00
github-actions[bot]
e150a6d212 chore: update versions 2022-05-19 12:13:26 +00:00
Johan Eliasson
083dc4865b Merge branch 'main' into docs-structure 2022-05-19 14:12:55 +02:00
Johan Eliasson
86c58f62d9 Merge pull request #576 from nhost/elitan-patch-2
typo
2022-05-19 14:12:40 +02:00
Johan Eliasson
a2d31c119b Merge branch 'main' into elitan-patch-2 2022-05-19 14:12:13 +02:00
Johan Eliasson
50a4c2d9b8 codegen 2022-05-19 14:10:57 +02:00
Johan Eliasson
29229734f0 actually, the URLs are the same :D 2022-05-19 14:08:39 +02:00
Johan Eliasson
5e1756681c redirects for moved urls 2022-05-19 14:06:58 +02:00
Pierre-Louis Mercereau
dbb29ac4d6 Merge branch 'main' into anonymous-users 2022-05-19 13:49:24 +02:00
Pilou
476c732935 Merge pull request #468 from nhost/feat/vue
Feat/vue
2022-05-19 13:46:58 +02:00
Pilou
d8d1423158 Merge pull request #577 from nhost/changeset-release/main
chore: update versions
2022-05-19 13:42:24 +02:00
Pierre-Louis Mercereau
260c2eb51a docs: typo 2022-05-19 13:34:18 +02:00
Pierre-Louis Mercereau
0348114d26 test: first anonymous user tests 2022-05-19 13:19:20 +02:00
Pierre-Louis Mercereau
e66c1689a4 Merge branch 'feat/vue' into anonymous-users 2022-05-19 13:03:29 +02:00
Pierre-Louis Mercereau
b2fae7c78f Merge branch 'main' into feat/vue 2022-05-19 12:56:03 +02:00
Pierre-Louis Mercereau
ad52223fde docs: make mdx component work with the latest docusaurus beta 2022-05-19 12:55:42 +02:00
github-actions[bot]
e95881089b chore: update versions 2022-05-19 10:04:56 +00:00
Szilárd Dóró
8726458df9 Merge pull request #572 from nhost/chore/auth-test-coverage
chore: Auth test coverage
2022-05-19 12:04:04 +02:00
Pierre-Louis Mercereau
c317669152 Merge branch 'main' into feat/vue 2022-05-19 12:04:04 +02:00
Pierre-Louis Mercereau
7d53883697 docs: simplify quickstart 2022-05-19 12:01:32 +02:00
Grégory D'Angelo
94105194ff Add extra line to avoid confusion 2022-05-19 11:40:29 +02:00
Grégory D'Angelo
433ceb508e Update JSX of the homepage 2022-05-19 11:38:59 +02:00
Grégory D'Angelo
dec2a83d0b Replace images src for logo with a public URL 2022-05-19 11:35:52 +02:00
Johan Eliasson
e4751470b0 typo 2022-05-19 11:03:26 +02:00
Szilárd Dóró
6c4233948d added patch notes 2022-05-19 10:49:44 +02:00
Johan Eliasson
5300c09f56 link fix 2022-05-19 10:48:35 +02:00
Johan Eliasson
5c13953a2b removed Get Started menu and made the platform the main entrypoint for our docs 2022-05-19 10:36:27 +02:00
Szilárd Dóró
160ebd9f04 Merge pull request #562 from nhost/changeset-release/main
chore: update versions
2022-05-19 10:22:16 +02:00
Szilárd Dóró
c16f630a7b Added refreshIntervalTime related tests 2022-05-19 10:05:03 +02:00
Johan Eliasson
688471faf0 Merge pull request #571 from nhost/fix/docs-typo
fix: Typo in docs
2022-05-19 09:27:52 +02:00
Pierre-Louis Mercereau
c42ffe6809 Merge branch 'main' into feat/vue 2022-05-19 09:19:59 +02:00
github-actions[bot]
f07d17a3e8 chore: update versions 2022-05-19 06:49:42 +00:00
Pilou
609681e741 Merge pull request #566 from nhost/fix/redirect-query-parameters
accept query parameters from both relative `redirectTo` URLs and the client URL
2022-05-19 08:48:44 +02:00
Szilárd Dóró
ab8d20a354 fix: Typo in docs 2022-05-19 08:24:01 +02:00
Pierre-Louis Mercereau
80c1de6a55 refactor: remove DEANONYMYZE event 2022-05-18 21:46:46 +02:00
Pierre-Louis Mercereau
52de584034 refactor: adjust 2022-05-18 21:39:31 +02:00
Johan Eliasson
543c85c85e Merge pull request #570 from nhost/docs-serverless-functions-underscore
docs: added information about prepending underscore
2022-05-18 21:30:43 +02:00
Johan Eliasson
4a9fbd6d84 using the word underscore 2022-05-18 21:29:40 +02:00
Johan Eliasson
24d45a1aed rephrase 2022-05-18 21:28:15 +02:00
Pierre-Louis Mercereau
edfb04cd07 refactor: improve naming consistency 2022-05-18 21:27:47 +02:00
Johan Eliasson
4511b7b538 added information about prepending underscore 2022-05-18 21:25:00 +02:00
Johan Eliasson
cb39f3d9ab Merge pull request #564 from nhost/docs-yu8g79yjo
Docs: CLI
2022-05-18 21:21:29 +02:00
Johan Eliasson
d49beb72bc typo 2022-05-18 21:14:19 +02:00
Johan Eliasson
d5ca9ae2c5 commands in sidebar 2022-05-18 21:09:53 +02:00
Pierre-Louis Mercereau
bb30d683ee Merge branch 'feat/vue' into anonymous-users 2022-05-18 20:57:14 +02:00
Pierre-Louis Mercereau
eb13606762 docs: "Vue 3" to "Vue" 2022-05-18 20:13:36 +02:00
Pierre-Louis Mercereau
3b16cfd295 feat: deanonymisation
tests need to be written
2022-05-18 20:11:18 +02:00
Grégory D'Angelo
d0201c8a23 Create new quickstarts guide for RedwoodJS 2022-05-18 19:59:57 +02:00
Johan Eliasson
80eeea49be moved storage and serverless functions to it's own files only instead of in directory 2022-05-18 17:54:29 +02:00
Johan Eliasson
e92716097e added list and upgrade 2022-05-18 17:44:03 +02:00
Johan Eliasson
54e11430b9 use up and down instad of dev and purge for docs 2022-05-18 17:42:48 +02:00
Johan Eliasson
7af47ba7d2 update 2022-05-18 17:41:27 +02:00
Johan Eliasson
7b624eae1c Updated CLI reference docs 2022-05-18 17:39:01 +02:00
Pierre-Louis Mercereau
151871cedc refactor: unnest if statement 2022-05-18 16:38:20 +02:00
Szilárd Dóró
4ecde10b99 Simplified time based token refresh tests
Also removed unnecessary error checks from auth machine
2022-05-18 15:49:26 +02:00
Szilárd Dóró
0530bac1f1 Token auto-refresh tests
- Added token auto-refresh related tests
- Simplified test context initialization
2022-05-18 15:02:02 +02:00
Pierre-Louis Mercereau
13e4fa73d5 typo 2022-05-18 12:21:13 +02:00
Pierre-Louis Mercereau
b1c652b550 Merge branch 'main' into feat/vue 2022-05-18 12:16:53 +02:00
Pierre-Louis Mercereau
5f980cb810 refactor: adjustments 2022-05-18 11:55:48 +02:00
Pierre-Louis Mercereau
0b58894ef1 fix: accept query parameters from both relative redirectTo URLs and the client URL 2022-05-18 11:27:22 +02:00
Johan Eliasson
3ba123dbff updated platform CLI docs 2022-05-18 10:44:15 +02:00
Johan Eliasson
0ffdeab89f updated docusaurus packages 2022-05-18 09:33:10 +02:00
Szilárd Dóró
df02e25d02 Merge pull request #561 from nhost/chore/auth-tests
chore: Authentication related tests
2022-05-17 20:18:34 +02:00
Szilárd Dóró
c7a407f111 added changesets 2022-05-17 15:53:43 +02:00
Szilárd Dóró
91edc67a5e Added password change related tests 2022-05-17 15:44:21 +02:00
Szilárd Dóró
d1a7bd7f94 Added email change tests 2022-05-17 15:31:47 +02:00
Pierre-Louis Mercereau
62c8c7a27f docs: use the same directory name 2022-05-17 15:15:08 +02:00
Pierre-Louis Mercereau
7c8f092667 chore: changesets 2022-05-17 15:01:41 +02:00
Pierre-Louis Mercereau
eb36f6698d Merge branch 'main' into feat/vue 2022-05-17 14:41:18 +02:00
Johan Eliasson
31b0830b91 Merge pull request #558 from nhost/sdk-docs-uygsa9h8dio
Docs: Updated inline and SDK docs
2022-05-17 14:36:19 +02:00
Szilárd Dóró
7c39b14fd2 Added MFA generation / activation tests 2022-05-17 14:19:24 +02:00
Johan Eliasson
16669d98e4 edit links correct for storage 2022-05-17 13:21:51 +02:00
Johan Eliasson
0696c108eb typo 2022-05-17 13:18:12 +02:00
Johan Eliasson
88f8e5dbed small updates 2022-05-17 13:17:08 +02:00
Pierre-Louis Mercereau
78ae8b52d0 docs: minor changes 2022-05-17 13:03:58 +02:00
Pilou
5a288f52df Merge pull request #560 from nhost/contributors-readme-action-Zl7cUfYzsW
contributors readme action update
2022-05-17 12:51:36 +02:00
github-actions[bot]
f922c02c08 contrib-readme-action has updated readme 2022-05-17 10:48:49 +00:00
Pilou
1abb4354e8 Merge pull request #549 from gaurav1999/patch-1
user-management: Specify metadata info
2022-05-17 12:48:35 +02:00
Pierre-Louis Mercereau
828bf5bf2d docs: adapt examples to composable ref values 2022-05-17 12:44:46 +02:00
Pierre-Louis Mercereau
d49d7d1ce0 feat: add missing composables 2022-05-17 12:32:54 +02:00
Johan Eliasson
b3f68b8748 more docs update 2022-05-17 12:11:28 +02:00
Pierre-Louis Mercereau
d51389b50d docs: remove todo code from the doc 2022-05-17 12:11:22 +02:00
Pierre-Louis Mercereau
8030f91f51 Merge branch 'feat/vue' of https://github.com/nhost/nhost into feat/vue 2022-05-17 12:07:15 +02:00
Pierre-Louis Mercereau
9a2afe7d77 Merge branch 'sdk-docs-uygsa9h8dio' into feat/vue 2022-05-17 12:06:03 +02:00
Pierre-Louis Mercereau
3e9cf30c40 Merge branch 'sdk-docs-uygsa9h8dio' into feat/vue 2022-05-17 12:04:54 +02:00
Johan Eliasson
0ee2171754 single user 2022-05-17 11:48:04 +02:00
Pierre-Louis Mercereau
f18b58e2fc Merge branch 'sdk-docs-uygsa9h8dio' into feat/vue 2022-05-17 11:40:08 +02:00
Pierre-Louis Mercereau
fa577f5c48 docs: correct links 2022-05-17 11:39:53 +02:00
Pierre-Louis Mercereau
8969748d3c docs: general vue documentation 2022-05-17 11:33:43 +02:00
Johan Eliasson
a112a9a8ad link fixed 2022-05-17 11:21:23 +02:00
Pierre-Louis Mercereau
589d17968f docs: copy vue composables documentation from react hooks 2022-05-17 11:03:41 +02:00
Szilárd Dóró
195b8ee4b7 Added email verification related tests
- improved the way validations are tested
- added email validation guard to reset password machine
2022-05-17 10:53:19 +02:00
Pierre-Louis Mercereau
44d092a997 Merge branch 'sdk-docs-uygsa9h8dio' into feat/vue 2022-05-17 10:50:06 +02:00
Johan Eliasson
21a9da792f storage inline docs updated 2022-05-17 10:37:34 +02:00
Pierre-Louis Mercereau
d8983be968 feat: allow nested ref options 2022-05-17 10:37:28 +02:00
Johan Eliasson
fd562b9c78 updated auth sdk docs 2022-05-17 10:20:01 +02:00
Szilárd Dóró
eca4ed92c1 Added password reset related tests 2022-05-17 10:17:48 +02:00
Szilárd Dóró
adf4d2b997 vitest bump, remaining token related tests 2022-05-17 09:52:12 +02:00
Johan Eliasson
3a724f847d Merge branch 'main' into sdk-docs-uygsa9h8dio 2022-05-17 09:47:42 +02:00
Johan Eliasson
99f941b060 next and react cleanup 2022-05-17 09:45:35 +02:00
Johan Eliasson
97392e547f all react hooks done first draft 2022-05-17 09:11:15 +02:00
Johan Eliasson
685e2dfccc react inline docs 2022-05-16 22:54:31 +02:00
Pierre-Louis Mercereau
1f8dd6dbd0 docs: use markup instead of html for Vue in prism 2022-05-16 22:25:27 +02:00
Pierre-Louis Mercereau
9b9d5def10 language 2022-05-16 22:23:07 +02:00
Pierre-Louis Mercereau
b4c08c999c docs: update tentative gh url 2022-05-16 22:21:19 +02:00
Pierre-Louis Mercereau
79425ad8e6 chore: don't export interface to avoid failed docgen link in docusaurus 2022-05-16 22:07:04 +02:00
Pierre-Louis Mercereau
a2a6790ae4 chore: lockfile, again 2022-05-16 21:44:07 +02:00
Pierre-Louis Mercereau
2ce1579ad6 docs: complete vue quickstart 2022-05-16 21:41:47 +02:00
Szilárd Dóró
0222d0fa22 improved refresh token related tests 2022-05-16 17:21:04 +02:00
Johan Eliasson
08e7a8e23a link fixed 2022-05-16 16:19:35 +02:00
Johan Eliasson
24faf32abe react docs update 2022-05-16 16:11:16 +02:00
Szilárd Dóró
8662674abe auto sign-in tests, improved in-memory storage 2022-05-16 16:05:55 +02:00
Pierre-Louis Mercereau
a53d57a0e3 build: update lockfile 2022-05-16 14:26:23 +02:00
Pierre-Louis Mercereau
61df286fe8 build: add missing changes 2022-05-16 14:21:45 +02:00
Pierre-Louis Mercereau
0dce5d47f0 build: correct vue-quickstart 2022-05-16 14:18:37 +02:00
Johan Eliasson
e9a01588da JavaScript index update 2022-05-16 14:15:59 +02:00
Johan Eliasson
17e370e889 update 2022-05-16 14:00:25 +02:00
Johan Eliasson
5929da369f more inline docs 2022-05-16 13:59:22 +02:00
Pierre-Louis Mercereau
23dd5e9414 ci: exec build, test and lint in series 2022-05-16 13:58:56 +02:00
Pierre-Louis Mercereau
32346f4e5a refactor: correct vue test scripts 2022-05-16 13:46:54 +02:00
Johan Eliasson
d4450ea0e4 added nhost.auth 2022-05-16 13:44:37 +02:00
Johan Eliasson
f5b86f5865 storage inline docs updated 2022-05-16 13:43:59 +02:00
Pierre-Louis Mercereau
69b3a6ba93 Merge branch 'main' into feat/vue 2022-05-16 13:40:36 +02:00
Szilárd Dóró
a6cfdb67d0 Merge pull request #557 from nhost/testing-framework
Testing framework
2022-05-16 13:23:34 +02:00
Johan Eliasson
645eaf6367 updated hasura auth js docs 2022-05-16 13:22:53 +02:00
Pierre-Louis Mercereau
02aee323a2 refactor: simplify machine and adjust tests 2022-05-16 13:20:24 +02:00
Szilárd Dóró
5217ffa5e3 renamed test files, removed unnecessary states 2022-05-16 12:36:42 +02:00
Szilárd Dóró
b08790b7ab removed "sleep" calls from sign out tests 2022-05-16 11:48:24 +02:00
Pierre-Louis Mercereau
9737fde711 Merge branch 'testing-framework' into feat/vue 2022-05-16 11:39:31 +02:00
Szilárd Dóró
5802feedec code format improvements, fixed sign out tests 2022-05-16 11:23:16 +02:00
Pierre-Louis Mercereau
63f607b8f1 Merge branch 'main' into feat/vue 2022-05-16 09:35:52 +02:00
Pierre-Louis Mercereau
c5ed2e0793 docs: common create-nhost-app fragment 2022-05-16 09:35:41 +02:00
Johan Eliasson
79f153e627 Merge pull request #556 from nhost/functions-f657g8hui
docs: Serverless functions
2022-05-16 09:22:31 +02:00
Johan Eliasson
84c5ae1cba update 2022-05-16 09:22:20 +02:00
Johan Eliasson
b5f82d9dd0 Merge pull request #554 from nhost/nunopato-patch-1
Remove outdated mention to minio.
2022-05-16 09:13:07 +02:00
Johan Eliasson
00e03d44b5 more info 2022-05-16 09:08:11 +02:00
Johan Eliasson
15aacc09db production info 2022-05-16 09:04:26 +02:00
Johan Eliasson
01b53348c4 updates 2022-05-16 08:54:59 +02:00
Johan Eliasson
aa770cc15a serverless functions 2022-05-16 08:32:51 +02:00
Nuno Pato
552790fe3f Remove outdated mention to minio. 2022-05-13 17:24:12 +02:00
Pierre-Louis Mercereau
6f12144615 docs: vue quickstart: wip 2022-05-13 15:51:59 +02:00
Szilárd Dóró
4d08a2c1dd Merge pull request #552 from nhost/contributors-readme-action-VJJueJLfwd
contributors readme action update
2022-05-13 15:05:36 +02:00
github-actions[bot]
ee34b9d2aa contrib-readme-action has updated readme 2022-05-13 12:29:06 +00:00
Johan Eliasson
0d87c30a8e Merge pull request #517 from nhost/docs-guides
Docs guides
2022-05-13 14:28:50 +02:00
Johan Eliasson
d7aaeeb8cc syncing package manager tabs 2022-05-13 14:20:28 +02:00
Johan Eliasson
101f4f502d v12 latest 2022-05-13 14:17:15 +02:00
Johan Eliasson
d070680abd settings only work locally for now 2022-05-13 14:16:17 +02:00
Szilárd Dóró
aa16ba979b Sign out related tests
- added sign out related tests
- still need to figure out token removal from storage
2022-05-13 14:02:42 +02:00
Szilárd Dóró
3f07c33b17 improved Sign In test structure in Core package 2022-05-13 10:49:37 +02:00
Szilárd Dóró
f935269a6b improved Sign In tests, created Sign Up tests 2022-05-13 09:55:59 +02:00
Pierre-Louis Mercereau
5f9b2f5b27 Merge remote-tracking branch 'origin/docs-guides' into feat/vue 2022-05-13 09:30:41 +02:00
Szilárd Dóró
965f1b26b0 Merge branch 'main' into testing-framework 2022-05-12 16:44:22 +02:00
Szilárd Dóró
08394ffd01 Sign up test stubs, Sign in test wording updates 2022-05-12 16:28:23 +02:00
Szilárd Dóró
802d095044 added remaining password sign in tests 2022-05-12 16:09:53 +02:00
Szilárd Dóró
9340e115d1 final MFA TOTP tests 2022-05-12 14:58:25 +02:00
Szilárd Dóró
170dbfc930 MFA ticket validation, MFA TOTP tests 2022-05-12 14:43:05 +02:00
Pierre-Louis Mercereau
a525409bee refactor: use a consistent syntax to send events to state machines 2022-05-12 12:45:07 +02:00
Pierre-Louis Mercereau
5f718bf356 refactor: improve code sharing 2022-05-12 12:32:28 +02:00
Szilárd Dóró
e44c4b2e93 Passwordless SMS OTP tests 2022-05-12 11:32:59 +02:00
Szilárd Dóró
5154d31126 Passwordless SMS tests, MSW folder structure 2022-05-12 10:32:11 +02:00
Pierre-Louis Mercereau
913aef1986 chore: lint 2022-05-12 09:45:48 +02:00
Pierre-Louis Mercereau
ce93615c1c Merge remote-tracking branch 'origin/main' into feat/vue 2022-05-12 09:44:05 +02:00
Johan Eliasson
f5e542e4c1 updated template link 2022-05-12 09:21:47 +02:00
Johan Eliasson
029925d88f added graphql dependency 2022-05-12 08:12:52 +02:00
Gaurav Agrawal
718a4db33c user-management: Specify metadata info
fixes #241
2022-05-11 21:16:35 +05:30
Szilárd Dóró
5a7be0cfd4 Passwordless email tests, hasura-auth-js CI fix 2022-05-11 16:18:32 +02:00
Johan Eliasson
f4dc867242 updated CTA 2022-05-11 15:58:19 +02:00
Johan Eliasson
038e279660 typo 2022-05-11 15:05:22 +02:00
Johan Eliasson
f671a5a420 small updates 2022-05-11 15:03:59 +02:00
Johan Eliasson
95dbfd59ee Merge pull request #535 from gdangelo/patch-5
docs: Update Next.js quickstart guide
2022-05-11 14:30:33 +02:00
Johan Eliasson
8980c99200 Merge pull request #536 from gdangelo/patch-6
docs: Update React quickstart guide
2022-05-11 14:20:35 +02:00
Szilárd Dóró
c0dcdb2410 started working on passwordless sign in tests 2022-05-11 14:20:07 +02:00
Pilou
1035639850 Merge pull request #544 from nhost/changeset-release/main
chore: update versions
2022-05-11 13:33:54 +02:00
Szilárd Dóró
9be836b036 Merge branch 'main' into testing-framework 2022-05-11 13:15:45 +02:00
github-actions[bot]
0e96e7329e chore: update versions 2022-05-11 11:13:25 +00:00
Szilárd Dóró
19ccc5ab0d Merge pull request #548 from nhost/axios-version-bump
Bump `axios` and set correct `Content-Type` for file upload
2022-05-11 13:12:16 +02:00
Szilárd Dóró
e094e682ce bump axios and fix file upload Content-Type
chore: bump axios from 0.26.0 to 0.27.2
fix: add Content-Type to file upload request headers
2022-05-11 12:45:52 +02:00
Szilárd Dóró
49cc3cb41b added test case for network errors when signing in 2022-05-11 10:23:16 +02:00
Szilárd Dóró
e0d81d419f fix: idempotent test results if the order of tests changes 2022-05-11 09:21:59 +02:00
Pilou
74eb71f8f0 Merge pull request #543 from nhost/fix/signup-states
Fix/signup states
2022-05-11 08:59:41 +02:00
Pierre-Louis Mercereau
a931c15073 Merge main and fix wrong negation 2022-05-11 08:30:40 +02:00
Pierre-Louis Mercereau
d3028169df docs: add apollo to the vue example 2022-05-10 23:20:10 +02:00
Szilárd Dóró
e04d88b034 chore: improved test helper structure 2022-05-10 18:56:22 +02:00
Szilárd Dóró
eca552b931 merged email and password error test cases 2022-05-10 17:30:33 +02:00
Szilárd Dóró
ed30bdd7e1 chore: improved structure of helpers 2022-05-10 17:26:49 +02:00
Szilárd Dóró
b76bc30fe4 Merge pull request #546 from nhost/testing-framework-patch
refactor: reset errors when entering auth states instead of doing it when exiting the signOut state
2022-05-10 16:54:00 +02:00
Pierre-Louis Mercereau
2b571ebf23 refactor: reset errors when entering auth states instead of doing it when exiting the signOut state 2022-05-10 16:41:45 +02:00
Pierre-Louis Mercereau
ce2a77a859 test: check auth actions are run in the right state 2022-05-10 15:11:11 +02:00
Pierre-Louis Mercereau
5bb64ae36b fix: start interpreters 2022-05-10 14:34:43 +02:00
Pierre-Louis Mercereau
79258689ef refactor: continue reusing common auth actions, and update doc links 2022-05-10 14:17:17 +02:00
Pierre-Louis Mercereau
8a1eefeee6 refactor: use the same actions in hasura-auth-js, react hooks and vue composables 2022-05-10 13:58:33 +02:00
Szilárd Dóró
ebe9fb0a44 started working on Sign In flow related tests 2022-05-10 13:49:37 +02:00
Pierre-Louis Mercereau
25f0d05fc2 refactor: improve code consistency 2022-05-10 13:20:44 +02:00
Pierre-Louis Mercereau
ace5d89eed refactor: adapt hooks to Vue while using shared logic 2022-05-10 12:45:53 +02:00
Pierre-Louis Mercereau
92cf6ae7bd Merge remote-tracking branch 'origin/main' into feat/vue 2022-05-10 10:53:55 +02:00
Pilou
9ae5e485e6 Merge pull request #520 from nhost/feat/improve-errors
Improve the handling of authentication errors
2022-05-10 10:39:57 +02:00
Pierre-Louis Mercereau
2965a7bf5b chore: update lockfile 2022-05-10 10:12:52 +02:00
Pierre-Louis Mercereau
236ce72bb3 fix: correct email verification states and useSignUpEmailPassword loading state 2022-05-10 10:12:03 +02:00
Pierre-Louis Mercereau
5ad5832e41 docs: minor improvements in the examples 2022-05-10 10:08:54 +02:00
Szilárd Dóró
a57825e5ad Merge branch 'main' into testing-framework 2022-05-10 09:45:20 +02:00
Pierre-Louis Mercereau
648eac45b4 chore: configure eslint for either react or vue 2022-05-09 22:17:47 +02:00
Pierre-Louis Mercereau
47936d4d1a Merge remote-tracking branch 'origin/main' into feat/vue 2022-05-09 21:49:56 +02:00
Pilou
1e233b6582 Merge pull request #541 from nhost/changeset-release/main
chore: update versions
2022-05-09 21:47:15 +02:00
github-actions[bot]
9ebd014287 chore: update versions 2022-05-09 19:32:16 +00:00
Pilou
6ce2534a36 Merge pull request #540 from nhost/dont-ignore-changeset
ci: trigger GH action even if comitted files are only in the `.changeset` directory
2022-05-09 21:31:23 +02:00
Pierre-Louis Mercereau
9f8e792f0d ci: trigger GH action even if comitted files are only in the .changeset directory 2022-05-09 21:29:29 +02:00
Pierre-Louis Mercereau
e1383106d9 Merge remote-tracking branch 'origin/main' into feat/improve-errors 2022-05-09 21:16:33 +02:00
Szilárd Dóró
812d7a8eae Merge pull request #539 from nhost/chore/nhost-react-changesets
chore: @nhost/react release notes
2022-05-09 21:10:53 +02:00
Szilárd Dóró
2887ce0f82 @nhost/react release notes 2022-05-09 21:08:18 +02:00
Szilárd Dóró
8bdfb8fcac Merge pull request #538 from nhost/fix/xstate-react-version
fix: @xstate/react bump to support React 18
2022-05-09 21:00:54 +02:00
Szilárd Dóró
573436dd87 fix: @xstate/react version to support React 18 2022-05-09 20:48:47 +02:00
Pierre-Louis Mercereau
1c82ab5346 refactor: basic vue eslint 2022-05-09 20:27:58 +02:00
Grégory D'Angelo
c7ce66597a docs: Update React quickstart guide
Update the guide based on Johan's feedback + add a new section at the end to show how to use the GraphQL API to fetch user data + reflect changes from the provided template.
2022-05-09 19:16:08 +02:00
Grégory D'Angelo
c82605c4e8 docs: Update Next.js quickstart guide 2022-05-09 19:12:41 +02:00
Pierre-Louis Mercereau
479cbbe305 refactor: use common promises in vue and react 2022-05-09 17:36:51 +02:00
Pierre-Louis Mercereau
888a51ed33 refactor: adapt to new monorepo setup 2022-05-09 16:37:47 +02:00
Szilárd Dóró
ef41ce8bb2 merged Vite configs, watch mode 2022-05-09 15:15:17 +02:00
Szilárd Dóró
864074fba5 added support for vitest
- Upgraded tests to use utilities of vitest
2022-05-09 14:52:32 +02:00
Szilárd Dóró
f58c2bb9ce Merge pull request #530 from nhost/changeset-release/main
chore: update versions
2022-05-09 14:10:10 +02:00
Pierre-Louis Mercereau
4eac3101c9 refactor: deprecated the use of isError when it is the negation of isSuccess 2022-05-09 13:01:54 +02:00
Pierre-Louis Mercereau
80bd938336 Merge remote-tracking branch 'origin/main' into feat/improve-errors 2022-05-09 10:50:43 +02:00
Pilou
41db6f613a Merge pull request #532 from nhost/contributors-readme-action-dGXEs_q2EP
contributors readme action update
2022-05-09 10:44:31 +02:00
github-actions[bot]
ee84bfa098 chore: update versions 2022-05-09 08:43:56 +00:00
github-actions[bot]
ad1b7b80e2 contrib-readme-action has updated readme 2022-05-09 08:42:51 +00:00
Pilou
3fcd345cff Merge pull request #528 from nhost/nextjs-example-email-sent-model
nextjs example: add an "email sent" modal to the magic-link page
2022-05-09 10:42:37 +02:00
Pierre-Louis Mercereau
43a3f1dd46 Merge remote-tracking branch 'origin/main' into nextjs-example-email-sent-model 2022-05-09 10:36:36 +02:00
Pilou
3ec745c91e Merge pull request #514 from MarcelloTheArcane/patch-1
Fix signIn/signUp typo
2022-05-09 10:34:09 +02:00
Pierre-Louis Mercereau
92deec4531 docs: docgen 2022-05-09 10:28:26 +02:00
Pierre-Louis Mercereau
c7fcc9fe82 Merge remote-tracking branch 'origin/main' into patch-1 2022-05-09 10:27:22 +02:00
Pilou
081377af6c Merge pull request #531 from nhost/clean-nextjs-example
refactor: stop using next-transpile-modules
2022-05-09 10:25:11 +02:00
Pierre-Louis Mercereau
23cb207afc style: typo 2022-05-09 10:23:59 +02:00
Johan Eliasson
62b1495a22 docs update 2022-05-09 10:13:16 +02:00
Pierre-Louis Mercereau
8a79a7102f Merge remote-tracking branch 'origin/main' into feat/improve-errors 2022-05-09 10:11:40 +02:00
Pierre-Louis Mercereau
0f55f6db9b style: post feedback 2022-05-09 10:07:04 +02:00
Pierre-Louis Mercereau
7b16a8d790 Merge remote-tracking branch 'origin/main' into nextjs-example-email-sent-model 2022-05-09 10:05:00 +02:00
Pierre-Louis Mercereau
dca8233601 refactor: stop using next-transpile-modules
It is not required in the new monorepo setup
2022-05-09 10:03:27 +02:00
Pilou
a7535b260b Merge pull request #529 from nhost/contributors-readme-action-xXIDbIv_3L
contributors readme action update
2022-05-09 09:56:40 +02:00
github-actions[bot]
82520963f1 contrib-readme-action has updated readme 2022-05-09 07:48:43 +00:00
Szilárd Dóró
722abd9a19 Merge pull request #462 from nhost/monorepo-improvements
Monorepo improvements
2022-05-09 09:48:28 +02:00
Pierre-Louis Mercereau
92fbf2b425 merge main 2022-05-09 09:38:00 +02:00
Szilárd Dóró
2aff6c0b4e fix: lock file changes 2022-05-09 09:12:03 +02:00
Szilárd Dóró
e101915f60 Merge branch 'main' into monorepo-improvements 2022-05-09 09:09:35 +02:00
Pierre-Louis Mercereau
0195143fe1 fix: correct the way to monitor the email is awaiting verification 2022-05-08 19:08:53 +02:00
Pierre-Louis Mercereau
e362925041 feat: pull needsEmailVerification out of the signedIn state 2022-05-07 21:19:26 +02:00
Pierre-Louis Mercereau
b4f8c7457d docs: remove option that raises a React warning 2022-05-07 16:39:59 +02:00
Pierre-Louis Mercereau
84f1ab2f61 docs: add an "email sent" modal to the magic-link page 2022-05-07 16:35:41 +02:00
Pilou
dee93bb873 Merge pull request #526 from nhost/changeset-release/main
chore: update versions
2022-05-06 22:29:55 +02:00
github-actions[bot]
173b587802 chore: update versions 2022-05-06 20:24:16 +00:00
Pilou
30ef1660b4 Merge pull request #525 from nhost/fix/cookie-mode
fix: correct cookie storage type
2022-05-06 22:23:12 +02:00
Pierre-Louis Mercereau
a613aa9f0c refactor: unnest if block 2022-05-06 22:12:50 +02:00
Pierre-Louis Mercereau
3c03b9b46f refactor: remove dead code 2022-05-06 22:09:51 +02:00
Pierre-Louis Mercereau
65a3061146 fix: correct cookie storage type 2022-05-06 22:01:38 +02:00
Johan Eliasson
f4c2088bce grammarly updates 2022-05-06 20:13:57 +02:00
Johan Eliasson
d3107934b0 updates 2022-05-06 20:11:23 +02:00
Johan Eliasson
5ae02605b2 added npm/yarn tabs 2022-05-06 20:08:39 +02:00
Pilou
55864eac30 Merge pull request #522 from nhost/event-triggers-syntax-error
fixed syntax error in Event Triggers docs
2022-05-06 19:59:46 +02:00
Johan Eliasson
b927587d75 correct repo link 2022-05-06 19:34:21 +02:00
Johan Eliasson
e63c45cdaa grammarly updates 2022-05-06 19:29:45 +02:00
Szilárd Dóró
28494d6c1f fixed syntax error in Event Triggers docs 2022-05-06 19:09:51 +02:00
Pilou
6777738c53 Merge pull request #519 from nhost/changeset-release/main
chore: update versions
2022-05-06 15:24:04 +02:00
Szilárd Dóró
34532b1a2f Merge branch 'main' into monorepo-improvements 2022-05-06 14:53:03 +02:00
Pierre-Louis Mercereau
de3257ca7a Merge branch 'main' into feat/improve-errors 2022-05-06 14:46:14 +02:00
Pierre-Louis Mercereau
9d32314065 feat: improve the handling of authentication errors 2022-05-06 14:44:54 +02:00
Johan Eliasson
9edfe408e0 updated template repo 2022-05-06 14:17:33 +02:00
github-actions[bot]
0d60693c27 chore: update versions 2022-05-06 11:43:21 +00:00
Pilou
c159c9c98c Merge pull request #518 from nhost/fix/refresh-token-load
fix: corrections and reshape the react-apollo example
2022-05-06 13:42:05 +02:00
Pierre-Louis Mercereau
58fa2a201c fix: corrections and reshape the react-apollo example 2022-05-06 12:55:17 +02:00
Johan Eliasson
d3c7930b48 all images locally 2022-05-06 12:22:45 +02:00
Johan Eliasson
4a864a9777 store quickstart images locally 2022-05-06 12:12:32 +02:00
Johan Eliasson
50ba5fe2c8 Merge pull request #494 from gdangelo/patch-4
Add content for the React quickstart guide
2022-05-06 11:53:01 +02:00
Johan Eliasson
05e0c42c82 Merge pull request #484 from gdangelo/patch-2
Create "Get started with Nhost CLI" guide
2022-05-06 11:52:49 +02:00
Johan Eliasson
fbc9ff32dd Merge pull request #485 from gdangelo/patch-3
Add content for the Next.js quickstart guide
2022-05-06 11:52:13 +02:00
Johan Eliasson
db4607ccac Merge pull request #516 from nhost/docs-guides
Docs intro of Nhost
2022-05-06 11:50:05 +02:00
Johan Eliasson
95b14557a0 intro 2022-05-06 11:47:29 +02:00
Johan Eliasson
8b527d0fcb Merge pull request #445 from nhost/docs-guides
docs: intro, architecture and quickstarts
2022-05-06 11:43:41 +02:00
Szilárd Dóró
67f0450dac fixed issues with package references in Next.js docs 2022-05-06 11:01:53 +02:00
Pilou
fc50beec5e Merge pull request #513 from nhost/docs/clean-nextjs-intro
remove reference to useless component
2022-05-06 10:42:24 +02:00
Szilárd Dóró
584976d1ad added patch notes 2022-05-06 10:32:13 +02:00
Szilárd Dóró
509ed7d864 Merge branch 'main' into monorepo-improvements 2022-05-06 08:56:34 +02:00
Max Reynolds
71b92363b4 Fix signIn/signUp typo
I think the example should be for signUp here.
2022-05-06 06:25:20 +01:00
Pierre-Louis Mercereau
ed0de2d930 remove reference to useless component 2022-05-05 21:53:37 +02:00
Grégory D'Angelo
c7aa9f7ea9 Edit code snippets to replace Tailwind utility classes with CSS modules
As discussed with Johan. The React template for this guide has also been edited to remove Tailwind CSS and use CSS modules instead.

You can find this template here: https://github.com/gdangelo/cra-template-quickstart-nhost. Please make sure to move it to the Nhost Github repository and publish it to npm.
2022-05-05 19:50:09 +02:00
Grégory D'Angelo
3e6057b4ed Edit code snippets to replace Tailwind utility classes with CSS modules
As discussed with Johan. The Next.js template for this guide has also been edited to remove Tailwind CSS and use CSS modules instead.

You can find this template here: https://github.com/gdangelo/nhost-quickstart-nextjs. Please make sure to move it to the Nhost Github repository.
2022-05-05 19:11:49 +02:00
Pierre-Louis Mercereau
e2940d7de3 merge 2022-05-05 16:52:40 +02:00
Pierre-Louis Mercereau
c65c7f5538 chore: correct typings 2022-05-05 16:36:13 +02:00
Pilou
f26e8c3614 Merge pull request #491 from nhost/changeset-release/main
chore: update versions
2022-05-05 16:11:42 +02:00
Pierre-Louis Mercereau
a05a484426 chore: correct changelog 2022-05-05 16:04:33 +02:00
Pierre-Louis Mercereau
4f0d5aa9c0 chore: downgrade major to minor bump 2022-05-05 16:02:23 +02:00
github-actions[bot]
254e362e95 chore: update versions 2022-05-05 13:58:01 +00:00
Pilou
a2a8839694 Merge pull request #507 from nhost/refactor/simplify-and-correct-options
Make code more consistent, implement the 'custom and 'cookie' storage types
2022-05-05 15:56:41 +02:00
Pierre-Louis Mercereau
d12667ccc5 refactor: post-review 2022-05-05 15:22:35 +02:00
Pierre-Louis Mercereau
feb55fe0ad chore: update lockfile 2022-05-05 14:43:12 +02:00
Pilou
b97c0a9c9d Merge branch 'main' into refactor/simplify-and-correct-options 2022-05-05 14:35:08 +02:00
Szilárd Dóró
bb548cd108 added support for TS package references, fixed CI 2022-05-05 14:15:20 +02:00
Szilárd Dóró
adb30c537f updated pnpm-lock.yaml file 2022-05-05 13:53:54 +02:00
Szilárd Dóró
d7d3e8f903 Merge branch 'main' into monorepo-improvements 2022-05-05 13:53:09 +02:00
Pierre-Louis Mercereau
2e98934f75 refactor: expose the interface of NhostReactProvider and use PropsWithChildren type 2022-05-05 13:35:30 +02:00
Szilárd Dóró
8a4064e99f reverted next-transpile-modules change 2022-05-05 13:31:27 +02:00
Pilou
937e28116b Merge pull request #509 from nhost/monorepo-adjustments
Adjustments to the new monorepo setup
2022-05-05 13:27:57 +02:00
Pilou
8cedafc807 Merge pull request #503 from nhost/patch/react-18
Patch/react 18
2022-05-05 13:27:24 +02:00
Pierre-Louis Mercereau
d885fe7b02 refactor: remove direct dependency to @nhost/core 2022-05-05 12:50:55 +02:00
Pierre-Louis Mercereau
b0d7217276 refactor: correct react-apollo-crm tsconfig 2022-05-05 12:38:49 +02:00
Pierre-Louis Mercereau
bfba4ae7ec refactor: make the react examples work inside the monorepo 2022-05-05 12:37:30 +02:00
Pierre-Louis Mercereau
11934f202d refactor: use clearer syntax when sending xstate events 2022-05-05 12:18:11 +02:00
Pierre-Louis Mercereau
322b433994 docs(example): correct nextjs example 2022-05-05 12:07:20 +02:00
Pierre-Louis Mercereau
6082ba6943 docs: remove part of the doc already automatically generated 2022-05-05 10:54:24 +02:00
Szilárd Dóró
44b12dc0a0 updated DEVELOPERS.md: fixed some typos, added development mode related info 2022-05-05 10:46:43 +02:00
Pierre-Louis Mercereau
1fb1d25a72 chore: remove testing credentials 2022-05-05 10:39:07 +02:00
Pierre-Louis Mercereau
ae4e4e50f6 chore: update changeset 2022-05-05 10:37:22 +02:00
Pierre-Louis Mercereau
185f39e23f fix: don't take previous errors into account when using SMS and deanonymisation 2022-05-05 10:35:49 +02:00
Szilárd Dóró
bf6ee5d360 unified Prettier configuration, temporarily disabled import sorter 2022-05-05 10:28:11 +02:00
Pierre-Louis Mercereau
0dd7cab3bf fix: remove async import 2022-05-04 22:35:18 +02:00
Pierre-Louis Mercereau
47c7380d89 refactor: cooooooooookies
(miom miom miom)
2022-05-04 22:28:13 +02:00
Pierre-Louis Mercereau
b56162a74b refactor: make code more consistent, and implement the 'custom and 'cookie' client storage types 2022-05-04 22:25:17 +02:00
Grégory D'Angelo
1a7007d1cb Remove the CLI and Github connection steps
As discussed with Johan.
2022-05-04 17:58:29 +02:00
Grégory D'Angelo
05d25a54af Remove the CLI and Github connection steps
As discussed with Johan
2022-05-04 17:52:21 +02:00
Szilárd Dóró
9f8bdb504d fixed UMD config 2022-05-04 16:02:13 +02:00
Pierre-Louis Mercereau
aeb8b8afda chore: lint, and update changesets 2022-05-04 14:23:58 +02:00
Pierre-Louis Mercereau
f9e107b008 docs: return errors to the UI 2022-05-04 13:42:30 +02:00
Szilárd Dóró
cd2594f66a fixed linter configs 2022-05-04 13:33:03 +02:00
Szilárd Dóró
c6a3e9f516 restructured project configuration, removed config copy script 2022-05-04 13:15:07 +02:00
Pierre-Louis Mercereau
d748d82483 docs: flesh up the nextjs example 2022-05-04 13:11:00 +02:00
Szilárd Dóró
1bfb1e6d10 Merge branch 'main' into monorepo-improvements 2022-05-04 11:13:13 +02:00
Szilárd Dóró
35fd7b1b7c added root lintstagedrc to gitignore 2022-05-04 11:10:01 +02:00
Szilárd Dóró
04c1ed6955 moved lintstagedrc and tsconfig files to .config folder 2022-05-04 11:02:40 +02:00
Szilárd Dóró
0c591daef4 fixed source code references of docs 2022-05-04 10:54:29 +02:00
Johan Eliasson
2192fdc92e change cta 2022-05-04 09:04:53 +02:00
Johan Eliasson
eec2601a3a architecture 2022-05-04 08:55:17 +02:00
Johan Eliasson
93eaa85b47 Merge branch 'main' into docs-guides 2022-05-04 07:40:53 +02:00
Pierre-Louis Mercereau
4c8a168c02 refactor: update lockfile 2022-05-03 22:12:57 +02:00
Pierre-Louis Mercereau
eb166cf5ee refactor: remove debug code 2022-05-03 22:07:07 +02:00
Pierre-Louis Mercereau
54e1873461 refactor: wrap again the apollo client creation into useEffect to avoid SSR when CSR 2022-05-03 22:02:15 +02:00
Pierre-Louis Mercereau
e5bc3b356c refactor(nextjs): bump to React 18 and Apollo client 3.6.2 2022-05-03 21:43:39 +02:00
Pierre-Louis Mercereau
42edb74057 refactor: upgrade to React 18 2022-05-03 21:20:10 +02:00
Pierre-Louis Mercereau
3ebeae9294 refactor: upgrade react-apollo to React 18 to reproduce the missing attached headers bug 2022-05-03 19:51:50 +02:00
Pilou
24189bd155 Merge pull request #501 from nhost/contributors-readme-action-tjRSlp2hVR
contributors readme action update
2022-05-03 16:47:01 +02:00
github-actions[bot]
5985b18764 contrib-readme-action has updated readme 2022-05-03 14:43:47 +00:00
Pilou
95efcb4de6 Merge pull request #500 from heygambo/patch-1
Adds environment variables to auth service
2022-05-03 16:43:30 +02:00
Christian Gambardella
609d9001f5 Adds environment variables to auth service
I ran into an issue where I couldn't sign up users because the auth service wasn't able to connect to mailhog.
That caused the auth service to not send an email and not respond to the HTTP request.

fixes #499 

I'm wondering if anyone else had this issue. If I'm the only one then maybe this PR is obsolete.
2022-05-03 16:18:36 +02:00
Szilárd Dóró
6f5729eb45 fixed Next.js example configuration 2022-05-03 15:54:21 +02:00
Szilárd Dóró
9bc447dbff fixed pnpm-lock 2022-05-03 15:51:02 +02:00
Szilárd Dóró
d2d0e7fced reverted package versions to leverage pnpm workspace features 2022-05-03 15:48:59 +02:00
Szilárd Dóró
0ad654226b fixed example projects, upgraded Vite to latest version 2022-05-03 13:54:32 +02:00
Pierre-Louis Mercereau
14f0d27c7d refactor: improve auth machine, vue plugin and tokens in url 2022-05-03 13:01:32 +02:00
Szilárd Dóró
9d8f2dea22 UMD module name change for all packages 2022-05-03 11:16:33 +02:00
Szilárd Dóró
f3a44931a5 reverted unnecessary build command change 2022-05-03 08:35:51 +02:00
Pierre-Louis Mercereau
9933e4389e refactor: use vuetify instead of quasar, implement oauth composable, correct bugs, extend example 2022-05-02 17:29:24 +02:00
Pilou
1e44a14b8a Merge pull request #497 from nhost/docs/generate-hasura-auth-openapi
Generate the latest hasura-auth openapi specs
2022-05-02 17:05:26 +02:00
Szilárd Dóró
1c1656441b removed esbuild related packages from pnpm-lock 2022-05-02 17:00:42 +02:00
Szilárd Dóró
5f68f8fe31 fixed build warning caused by a missing global 2022-05-02 16:54:26 +02:00
Szilárd Dóró
961103d7a5 removed individual Vite configs, using unified 2022-05-02 16:27:48 +02:00
Szilárd Dóró
2bebab3f8e fixed ESLint ignore patterns to prevent lint error 2022-05-02 15:11:12 +02:00
Szilárd Dóró
0363abbbb1 fixed CI build and test step 2022-05-02 14:48:47 +02:00
Szilárd Dóró
2f3715d02a fixed linter errors 2022-05-02 14:05:26 +02:00
Szilárd Dóró
7c101e5226 removed unnecessary tsconfig, fixed an issue in NhostClient 2022-05-02 13:52:42 +02:00
Szilárd Dóró
ef943995e2 added umd folder to cached turborepo output 2022-05-02 13:30:56 +02:00
Szilárd Dóró
b6032508bc docs reference update, tsconfig fixes 2022-05-02 12:50:53 +02:00
Szilárd Dóró
a6b00294e7 Merge branch 'main' into monorepo-improvements 2022-05-02 12:17:52 +02:00
Szilárd Dóró
dbfc5ec220 added support for UMD build 2022-05-02 11:55:42 +02:00
Pierre-Louis Mercereau
5917eff5a6 chore: newline 2022-05-02 09:44:38 +02:00
Pierre-Louis Mercereau
f8ee87ad01 feat: smalls script that generates the latest hasura-auth openapi specs 2022-05-02 09:42:24 +02:00
Szilárd Dóró
a7990b363f Merge pull request #496 from nhost/contributors-readme-action-Vits42iSrd
contributors readme action update
2022-05-02 08:59:28 +02:00
github-actions[bot]
ca8ecb4b5c contrib-readme-action has updated readme 2022-05-02 06:48:04 +00:00
Szilárd Dóró
dfe080b8f6 Merge pull request #495 from GavanWilhite/patch-2
Fixed npm <> yarn instructions
2022-05-02 08:47:50 +02:00
Gavan Wilhite
069a5d4d9a Fixed npm <> yarn instructions 2022-05-01 19:42:53 -06:00
Grégory D'Angelo
c9d474ea6c Use .mdx extension instead 2022-04-29 18:30:02 +02:00
Grégory D'Angelo
2afa460263 Use .mdx extension instead 2022-04-29 18:29:35 +02:00
Grégory D'Angelo
776555bdda Add content for the React quickstart guide 2022-04-29 18:27:59 +02:00
Grégory D'Angelo
e0e9729884 Add missing props to NhostApolloProvider 2022-04-29 18:20:21 +02:00
Szilárd Dóró
6ffaf31af5 simplified tsconfig of React libs 2022-04-29 17:33:29 +02:00
Szilárd Dóró
8ec18157bb simplified Vite config of packages, improved TSConfig 2022-04-29 17:31:18 +02:00
Pilou
efccd54641 Merge pull request #492 from nhost/docs/autogen-edit-page
feat: link the 'Edit Page' button to the source code instead of the generated file
2022-04-29 17:02:18 +02:00
Grégory D'Angelo
396dc554d9 Remove sections number + add level 4 titles 2022-04-29 16:36:08 +02:00
Grégory D'Angelo
92f9576ca6 Re-organize sections 2022-04-29 16:16:49 +02:00
Grégory D'Angelo
5cf8ace1bc Add title to code snippets + fix syntax highlighting + add tabs + admonitions 2022-04-29 16:10:54 +02:00
Grégory D'Angelo
cf1518ab75 Use admonitions instead of basic Markdown quotes 2022-04-29 15:38:30 +02:00
Grégory D'Angelo
b8c0dba6de Update language for syntax highlighting to bash + add titles 2022-04-29 15:31:53 +02:00
Pierre-Louis Mercereau
116c8eba66 fix: close img tags 2022-04-29 14:52:13 +02:00
Pierre-Louis Mercereau
a9bc698dae fix: close img tags 2022-04-29 14:49:00 +02:00
Szilárd Dóró
175ab26e04 Merge branch 'main' into monorepo-improvements 2022-04-29 13:54:29 +02:00
Szilárd Dóró
eb2d064cbe restored removed docs pages 2022-04-29 13:38:53 +02:00
Szilárd Dóró
17d2c8c3d9 bump axios to 0.26.0 so that all packages use the same version 2022-04-29 13:32:54 +02:00
Pierre-Louis Mercereau
95ba1649d5 build: add baseEditUrl 2022-04-29 12:37:43 +02:00
Pierre-Louis Mercereau
4c1992068e chore: merge main 2022-04-29 12:36:39 +02:00
Szilárd Dóró
4e0aab1bb2 removed unnecessary @nhost/config package, excluded several packages from CI command 2022-04-29 12:33:53 +02:00
Pilou
a3357265ec Merge pull request #480 from nhost/docs/algolia
docs: enable algolia search
2022-04-29 12:33:20 +02:00
Pierre-Louis Mercereau
494d8127dc refactor: simplify 2022-04-29 12:31:15 +02:00
Pierre-Louis Mercereau
57b628a255 refactor: remove useless condition 2022-04-29 12:28:31 +02:00
Pierre-Louis Mercereau
98b30a5c5e Merge branch 'main' into docs/autogen-edit-page 2022-04-29 12:26:02 +02:00
Pierre-Louis Mercereau
48afcf415d feat: link the 'Edit Page' button to the source code instead of the generated file 2022-04-29 12:24:33 +02:00
Johan Eliasson
58b9488af8 update setting 2022-04-29 11:48:42 +02:00
Pilou
e49528d43e Merge pull request #488 from nhost/chore/rename-user-hooks
fix: rename user data hooks to make them all start with `userUser...`
2022-04-29 11:47:33 +02:00
Pilou
ab0f5582e5 Merge pull request #489 from nhost/docs/developers-guide
Basic developer guide
2022-04-29 11:47:17 +02:00
Pierre-Louis Mercereau
b499548503 post review 2022-04-29 10:30:29 +02:00
Pilou
fbc15cfee1 Merge pull request #452 from nhost/441-user_id-not-seen-in-the-screenshots-before-the-permissions-section-of-todoapp
docs: correct docs for `user_id` column
2022-04-29 09:43:03 +02:00
Pierre-Louis Mercereau
8788de83e8 docs: basic developer guide 2022-04-29 09:14:41 +02:00
Pierre-Louis Mercereau
1fb51a7bed fix: rename user data hooks to make them all start with userUser... 2022-04-29 08:31:32 +02:00
Pilou
365b806755 Merge pull request #487 from nhost/changeset-release/main
chore: update versions
2022-04-28 23:55:00 +02:00
github-actions[bot]
74025a2d90 chore: update versions 2022-04-28 21:51:11 +00:00
Pilou
ebd6f86ea3 Merge pull request #486 from nhost/fix/fine-tune-nextjs
fix: get the refresh token in the right place in the url
2022-04-28 23:50:19 +02:00
Pierre-Louis Mercereau
7b23d33d9b fix: get the refresh token in the right place in the url 2022-04-28 22:18:48 +02:00
Grégory D'Angelo
87fc565b14 Add content for the Next.js quickstart guide 2022-04-28 19:46:06 +02:00
Grégory D'Angelo
ed46a7a6f9 Add missing file extension 2022-04-28 19:28:51 +02:00
Grégory D'Angelo
6749bf3486 Rename file to get-started-with-nhost-cli 2022-04-28 19:26:53 +02:00
Grégory D'Angelo
b32c1bab39 Add "Get help" section 2022-04-28 19:25:17 +02:00
Pierre-Louis Mercereau
de177710f7 chore: bump correct version number, and trigger release 2022-04-28 18:39:58 +02:00
Pierre-Louis Mercereau
eebfddb48e build: bump nextjs to correct version 2022-04-28 16:52:17 +02:00
Pilou
f5df7eaa2d Merge pull request #457 from nhost/changeset-release/main
chore: update versions
2022-04-28 16:31:09 +02:00
Pierre-Louis Mercereau
0b4028b1d6 chore: remove duplicate lines in changelog 2022-04-28 15:57:20 +02:00
github-actions[bot]
f2da21026b chore: update versions 2022-04-28 13:48:50 +00:00
Pilou
a8233ea621 Merge pull request #461 from nhost/feat/get-claim
feat: add accessors for decoded access token and Hasura claims
2022-04-28 15:47:30 +02:00
Pierre-Louis Mercereau
bbebf6ade2 build: update lintstagedrc 2022-04-28 15:27:45 +02:00
Pierre-Louis Mercereau
f300d8b9f1 build: update lintstagedrc 2022-04-28 15:26:29 +02:00
Pierre-Louis Mercereau
3b625acd96 Merge branch 'main' into feat/get-claim 2022-04-28 15:24:46 +02:00
Pilou
116e23cb13 Merge pull request #459 from nhost/feat/capture-url-errors
feat: capture url errors & improved SSR / NextJs startup
2022-04-28 15:22:54 +02:00
Szilárd Dóró
1bde3e6516 dependency optimization, build improvements 2022-04-28 14:48:50 +02:00
Pierre-Louis Mercereau
954aa43e49 refactor: adjustments from review 2022-04-28 14:01:18 +02:00
Pierre-Louis Mercereau
de6f862c4c style: remove dead code and add minor piece of doc 2022-04-28 13:54:29 +02:00
Pierre-Louis Mercereau
5025333fb4 Merge branch 'main' into feat/capture-url-errors 2022-04-28 13:44:14 +02:00
Pilou
b3991ea9d9 Merge pull request #482 from nhost/docs/404
docs: custom 404 page
2022-04-28 13:42:54 +02:00
Szilárd Dóró
3674f11183 upgraded turborepo, updated turborepo commands 2022-04-28 13:31:48 +02:00
Pierre-Louis Mercereau
239db617f3 docs: clean file 2022-04-28 12:48:07 +02:00
Szilárd Dóró
76b3cb4643 Merge branch 'main' into monorepo-improvements 2022-04-28 12:34:45 +02:00
Szilárd Dóró
6d6c8b3e2e Merge pull request #481 from nhost/fix/docgen-tags 2022-04-28 12:24:03 +02:00
Grégory D'Angelo
5a06ecbb10 Create "Get started with Nhost CLI" guide 2022-04-28 11:26:17 +02:00
Pierre-Louis Mercereau
83a00bbde1 refactor: rename docgen path to .docgen 2022-04-28 10:57:44 +02:00
Pierre-Louis Mercereau
169f163c99 docs: custom 404 page 2022-04-28 10:53:35 +02:00
Szilárd Dóró
5ddd7eda22 fixed some errors caused by undefined values 2022-04-28 10:49:03 +02:00
Szilárd Dóró
556190dfc5 Merge branch 'main' into monorepo-improvements 2022-04-28 10:44:15 +02:00
Szilárd Dóró
00d50f404a temporary support for link removal from TSDoc comments, renamed __tsdoc__ folder to .docgen 2022-04-28 10:21:06 +02:00
Pierre-Louis Mercereau
60dc34a24b chore: update lock file 2022-04-28 10:12:06 +02:00
Pierre-Louis Mercereau
8cc5c94da5 refactor(vue): rename user composables, and improve authentication status composable 2022-04-28 10:11:31 +02:00
Pierre-Louis Mercereau
83952b44b5 docs(react): start using @link 2022-04-27 23:32:38 +02:00
Pierre-Louis Mercereau
e609cc3fcb docs(vue): skeleton documentation 2022-04-27 23:17:58 +02:00
Pierre-Louis Mercereau
b52b4fca2d feat: complete NextJs 2022-04-27 22:18:03 +02:00
Pierre-Louis Mercereau
4dc31bd156 build(example): disable composition option to build vue example 2022-04-27 20:20:06 +02:00
Pierre-Louis Mercereau
56b1adfa81 docs: enable algolia search 2022-04-27 17:25:34 +02:00
Pierre-Louis Mercereau
d57c0d6261 chore: merge main 2022-04-27 16:56:09 +02:00
Pierre-Louis Mercereau
9f55f4890e chore: merge main 2022-04-27 16:44:19 +02:00
Szilárd Dóró
284890b437 Merge pull request #477 from nhost/docgen-improvements
DocGen improvements
2022-04-27 16:22:05 +02:00
Szilárd Dóró
1e3cb855f0 improved function overloads in auto-generated docs 2022-04-27 16:12:41 +02:00
Pierre-Louis Mercereau
aaf575f0af chore: remove dev code 2022-04-27 16:09:30 +02:00
Pierre-Louis Mercereau
ff3427ccdb chore: update changeset title 2022-04-27 16:08:40 +02:00
Szilárd Dóró
3834d80a0a improved the way function overloads are displayed
fixed an issue where line breaks broke the layout of parameter table fragments
2022-04-27 15:57:34 +02:00
Pierre-Louis Mercereau
8fcc3fd560 Merge branch 'main' into feat/capture-url-errors 2022-04-27 15:56:04 +02:00
Pierre-Louis Mercereau
616e320421 refactor: simplify startup 2022-04-27 15:55:04 +02:00
Pilou
ff8fdc4db4 Merge pull request #476 from nhost/contributors-readme-action-84g__a20xD
contributors readme action update
2022-04-27 15:43:27 +02:00
Szilárd Dóró
b732bc51e8 fixed an issue where multiple function signatures were not rendered properly in generated docs 2022-04-27 14:42:01 +02:00
Pierre-Louis Mercereau
8b88d6c553 refactor: augment useAuthenticationState instead of creating useAuthenticationError 2022-04-27 14:26:14 +02:00
Szilárd Dóró
af192fbb66 updated lint-staged config 2022-04-27 14:23:27 +02:00
Szilárd Dóró
b7c031d7e0 added deprecation indicator to sidebar items if applicable 2022-04-27 14:21:31 +02:00
Pierre-Louis Mercereau
05e91d93a8 fix: check if window existd 2022-04-27 14:20:52 +02:00
Pierre-Louis Mercereau
261f001a99 fix(nextjs): correct refresh method 2022-04-27 14:14:46 +02:00
Szilárd Dóró
ddb965c7cf added warning message to auto-generated markdown files 2022-04-27 14:10:17 +02:00
github-actions[bot]
ff8af4912b contrib-readme-action has updated readme 2022-04-27 11:42:13 +00:00
Pilou
948aebcf42 Merge pull request #472 from jladuval/patch-1
Docs: Update event-triggers.md with environment variable example
2022-04-27 13:41:57 +02:00
Szilárd Dóró
51a4d7a343 Merge pull request #474 from nhost/fix/docs-redirects
fix: Docs redirects
2022-04-27 13:17:41 +02:00
Johan Eliasson
d521218146 Merge pull request #475 from nhost/typo-hbuyg87y9
Typo
2022-04-27 13:08:06 +02:00
Johan Eliasson
9a1685c2eb typo 2022-04-27 12:55:43 +02:00
Szilárd Dóró
fb8f58503f updated CODEOWNERS 2022-04-27 12:31:02 +02:00
Szilárd Dóró
86409c2f18 changed React Hooks redirect 2022-04-27 12:26:36 +02:00
Szilárd Dóró
f7d8c061a0 added redirects from previously removed docs 2022-04-27 12:23:57 +02:00
Szilárd Dóró
eb59a07c3f Merge pull request #453 from nhost/feat/docgen
feat: Auto-generate documentation from TSDoc
2022-04-27 12:07:58 +02:00
Szilárd Dóró
27add80f95 added index page to JavaScript docs 2022-04-27 11:59:04 +02:00
Szilárd Dóró
cc60a845f3 fixes HasuraStorageClient examples to use code block 2022-04-27 10:53:02 +02:00
Szilárd Dóró
aeea44e4e8 fixed HasuraAuthClient examples to use code block 2022-04-27 10:51:35 +02:00
Jacob Duval
d273825cee Update event-triggers.md with environment variable example
Show how environment variables are used with the correct formatting. I had to search around a while to find the correct {{}} format.
2022-04-27 10:44:57 +02:00
Szilárd Dóró
177733f4b1 added deprecation note to parameters and parameter tables 2022-04-27 10:40:50 +02:00
Szilárd Dóró
efd33a7115 updated docs according to code changes 2022-04-27 10:04:08 +02:00
Szilárd Dóró
e4fe166992 Merge branch 'main' into feat/docgen 2022-04-27 10:02:34 +02:00
Pierre-Louis Mercereau
d9f221b625 feat: get refresh token from url in Next, and remove the refresh token from the url when possible 2022-04-27 09:55:42 +02:00
Szilárd Dóró
e0f5bf3396 fixed example in hasura-auth-client 2022-04-27 09:50:23 +02:00
Szilárd Dóró
17bd23460f added lint-staged configuration 2022-04-27 09:16:12 +02:00
Pierre-Louis Mercereau
59a34143df refactor: change type to interface, adjust composable functionning to current react hook's logic 2022-04-26 17:34:42 +02:00
Szilárd Dóró
52c30c25a9 expand Reference > JavaScript menu by default 2022-04-26 17:11:00 +02:00
Szilárd Dóró
989bc54544 added support for DocGen parallelization, improved DocGen configuration 2022-04-26 17:05:07 +02:00
Szilárd Dóró
5781cb0f9c restored accidentally removed docs pages 2022-04-26 15:51:26 +02:00
Szilárd Dóró
24f9ed4c4d fixed slugs, re-generated docs 2022-04-26 15:25:31 +02:00
Szilárd Dóró
2b447af8a7 Merge branch 'feat/docgen' of https://github.com/nhost/nhost into feat/docgen 2022-04-26 14:57:06 +02:00
Szilárd Dóró
2485c83de3 updated documentation URLs, fixed auto-generated documentation slugs 2022-04-26 14:53:26 +02:00
Pilou
707877477f Merge pull request #465 from nhost/chore/inline-react-doc
docs(react): add inline documentation
2022-04-26 14:32:15 +02:00
Pierre-Louis Mercereau
756e1af52d chore: merge 2022-04-26 14:31:35 +02:00
Pierre-Louis Mercereau
7f771e2e8f pre-merge 2022-04-26 14:29:25 +02:00
Szilárd Dóró
a737863c2b added support for flattened navigation structure on References page 2022-04-26 13:32:24 +02:00
Pierre-Louis Mercereau
ca2a61089a docs: add missing backticks 2022-04-26 12:19:53 +02:00
Szilárd Dóró
7432db0fe8 created custom sidebar mapping to support appropriate structure 2022-04-26 12:10:38 +02:00
Pierre-Louis Mercereau
9c25e65df6 docs(react): add inline documentation 2022-04-26 12:06:51 +02:00
Szilárd Dóró
e345895fd8 generated React, Next.js, Nhost JS documentation, fixed issues 2022-04-26 11:55:53 +02:00
Szilárd Dóró
cba7996dcf generated React, Next.js, Nhost JS documentation, fixed issues 2022-04-26 10:58:03 +02:00
Johan Eliasson
d7ceda6ae6 Merge pull request #464 from nhost/contributors-readme-action-yLZgG3Dxtk
contributors readme action update
2022-04-26 08:36:39 +02:00
github-actions[bot]
4e19b7309d contrib-readme-action has updated readme 2022-04-25 18:21:46 +00:00
David Barroso
de8a7d5512 Merge pull request #449 from nhost/dbarroso/update-docker-compose
update hasura-storage example
2022-04-25 20:21:32 +02:00
Szilárd Dóró
69f3a84bf5 vite config to exclude external dependencies from bundle 2022-04-25 17:23:24 +02:00
Pierre-Louis Mercereau
214ae2fe19 chore: update pnpm lockfile 2022-04-25 17:16:03 +02:00
Pierre-Louis Mercereau
bc86be70ef refactor: done checking refeshIntervalTime works with Vue 2022-04-25 17:02:02 +02:00
Pierre-Louis Mercereau
8555d30dab feat: add a devTools option 2022-04-25 17:01:10 +02:00
Pierre-Louis Mercereau
6f1ca70b7a refactor: reshape file structure, hooks signatures, and use unref when possible 2022-04-25 16:13:00 +02:00
Szilárd Dóró
16dcd314bb replaced esbuild with Vite, unified entry point and publish configuration of packages 2022-04-25 14:45:14 +02:00
Pierre-Louis Mercereau
aae6524acb Merge branch 'main' into feat/vue 2022-04-25 14:32:28 +02:00
Pierre-Louis Mercereau
7e7aa5adc4 refactor: explain 2022-04-25 14:11:22 +02:00
Pierre-Louis Mercereau
1ed948952a refactor: remove mock credentials 2022-04-25 14:07:47 +02:00
Pilou
55b0a8f4b9 Merge pull request #458 from nhost/examples/xstate-inspector
react-apollo example: activate xstate inspector with an environment variable
2022-04-25 13:37:43 +02:00
Pierre-Louis Mercereau
1ce55c5568 feat: add aceessors for decoded access token and Hasura claims 2022-04-25 13:24:07 +02:00
Pierre-Louis Mercereau
fabd1da04c feat: new useAuthenticationError hook 2022-04-25 11:19:59 +02:00
Pierre-Louis Mercereau
53f5226d0c feat: capture hasura-auth errors from the url 2022-04-25 11:16:48 +02:00
Pilou
e339cba384 Merge pull request #450 from nhost/fix/filter-logs
Remove filtering of `useLayoutEffect` from logs
2022-04-25 11:14:05 +02:00
Pierre-Louis Mercereau
c14d12e04d docs: activate xstate inspector with an environment variable 2022-04-25 10:57:42 +02:00
Szilárd Dóró
03370da2f4 added DocGen support for React package, generated default React SDK references 2022-04-25 10:46:06 +02:00
Pilou
87d32b2639 Merge pull request #451 from nhost/chore/reprecate-bad-naming
Rename `autoLogin` to `autoSignIn`, and deprecate `autoLogin`
2022-04-25 10:13:08 +02:00
Pilou
61b5fb549c Merge pull request #456 from nhost/docs/use-display-name
docs: `useDisplayName` instead of `displayName`
2022-04-25 10:12:52 +02:00
Szilárd Dóró
28cd8dc5c5 resolved conflicts with main branch 2022-04-25 10:06:33 +02:00
Szilárd Dóró
fb93d8c1af Merge branch 'main' into feat/docgen 2022-04-25 10:05:41 +02:00
Pierre-Louis Mercereau
f4e6aea9c1 docs: fix incorrect example 2022-04-25 09:45:40 +02:00
Johan Eliasson
65d61cf4b8 update 2022-04-25 09:40:23 +02:00
Johan Eliasson
a8d5214b2f grammerly updates 2022-04-25 09:39:14 +02:00
Johan Eliasson
f9e5283fc3 correct docs for column 2022-04-25 09:35:18 +02:00
Pierre-Louis Mercereau
d49b837abb fix: rename autoLogin to autoSignIn, and deprecate autoLogin 2022-04-25 09:09:19 +02:00
Pierre-Louis Mercereau
49545c058b fix: remove filtering of useLayoutEffect from logs 2022-04-25 08:40:34 +02:00
David Barroso
765340f7b2 update hasura-storage example 2022-04-25 08:30:39 +02:00
Johan Eliasson
5a212aaa12 link fix 2022-04-22 22:34:45 +02:00
Pilou
2c3d9b11a6 Merge pull request #446 from nhost/changeset-release/main
chore: update versions
2022-04-22 22:33:18 +02:00
Johan Eliasson
79056d8b48 update 2022-04-22 22:30:02 +02:00
github-actions[bot]
b1678eaad3 chore: update versions 2022-04-22 20:29:10 +00:00
Pilou
f1c16dba6e Merge pull request #444 from nhost/fix/refresh-session-start
fix: fix `refreshSession`
2022-04-22 22:28:23 +02:00
Johan Eliasson
f86883df88 new menu strucutre 2022-04-22 22:20:42 +02:00
Pierre-Louis Mercereau
aa1fdf6c2c fix: fix refreshSession 2022-04-22 22:18:17 +02:00
Pilou
bebf9e1f2b Merge pull request #443 from nhost/changeset-release/main
chore: update versions
2022-04-22 17:35:44 +02:00
github-actions[bot]
2413c10283 chore: update versions 2022-04-22 15:32:40 +00:00
Pilou
0f7fbdab97 Merge pull request #440 from nhost/fix/token-refresher
fix: improve reliability of the token refresher
2022-04-22 17:31:47 +02:00
Pilou
14e5fd63a6 Merge branch 'main' into fix/token-refresher 2022-04-22 17:27:11 +02:00
Pilou
2446913836 Merge pull request #439 from nhost/fix/refresh-session
fix: fix and improve `nhost.auth.refreshSession`
2022-04-22 17:22:47 +02:00
Pierre-Louis Mercereau
1f88a9f47a style: improve readability 2022-04-22 17:20:05 +02:00
Pierre-Louis Mercereau
261e37cda4 fix: fix nullable value miss 2022-04-22 16:50:30 +02:00
Pierre-Louis Mercereau
5ee395ea8e fix: ensure the session is destroyed when signout is done 2022-04-22 16:44:52 +02:00
Szilárd Dóró
e5f00394ae added tests for getNestedParametersFromParameter 2022-04-22 16:41:04 +02:00
Szilárd Dóró
dd08aef4cc added tests for helper functions, improved verbose logging 2022-04-22 15:55:08 +02:00
Szilárd Dóró
4ab85815a0 introduced support for "alias" tag, added tests for DeprecationNoteFragment and CommentTagFragment 2022-04-22 15:18:53 +02:00
Pierre-Louis Mercereau
9b834d8893 chore: change hasura-auth versions in examples 2022-04-22 13:49:15 +02:00
Pierre-Louis Mercereau
bd8ddaacc3 chore: set lint and prettier, update hasura-auth version 2022-04-22 13:48:03 +02:00
Pierre-Louis Mercereau
1cf7116bd8 chore: skeleton of a vue sdk 2022-04-22 13:43:36 +02:00
Pilou
828633ffc9 Merge pull request #435 from nhost/chore/include-examples-in-monorepo
Chore/include examples in monorepo
2022-04-22 13:28:02 +02:00
Szilárd Dóró
1b0902079b changed reference paths to use root path, improved some examples of HasuraAuthClient 2022-04-22 12:55:07 +02:00
Pierre-Louis Mercereau
7b7527a5e6 fix: improve reliability of the token refresher 2022-04-22 11:32:25 +02:00
Szilárd Dóró
f719d47ed3 created command for Storage docs generation, added initial docs generated with the tool 2022-04-22 11:23:54 +02:00
Szilárd Dóró
8cc88533b1 fixed class references 2022-04-22 10:57:41 +02:00
Szilárd Dóró
71de2bd0c5 added custom styling for optional / required labels of parameters
improved prettier formatter of classes, functions and types
2022-04-21 22:50:40 +02:00
Szilárd Dóró
66d204331b improved function signature formatting, union and intersection types 2022-04-21 22:31:17 +02:00
Szilárd Dóró
ee288fbc5f added tests for ClassTemplate, improved typings of signatures 2022-04-21 21:59:26 +02:00
Pilou
620566fa4d Merge pull request #438 from nhost/changeset-release/main
chore: update versions
2022-04-21 21:58:07 +02:00
Szilárd Dóró
1a38b5dca3 fixed parameter reference generator issues, added option to wrap or unwrap values to label generator 2022-04-21 19:39:38 +02:00
Szilárd Dóró
e0bd8cf14b moved docgen to packages, created temporary scripts to execute docgen procedure 2022-04-21 18:21:36 +02:00
github-actions[bot]
4ce8b88d27 chore: update versions 2022-04-21 15:45:25 +00:00
Pilou
28d25e46de Merge pull request #436 from nhost/fix/mixed-email-password-errors
fix: invalid password and email errors on sign up
2022-04-21 17:44:35 +02:00
Pierre-Louis Mercereau
e0cfcafead fix: fix and improve nhost.auth.refreshSession 2022-04-21 16:57:55 +02:00
Pilou
12bc30daa3 Merge pull request #437 from nhost/fix/broadcast-channel-react-native
fix: avoid error when BroadcastChannell is not available
2022-04-21 16:10:49 +02:00
Pierre-Louis Mercereau
7b5f00d10e fix: avoid error when BroadcastChannell is not available 2022-04-21 16:00:12 +02:00
Pierre-Louis Mercereau
58e1485c13 fix: invalid password and email errors on sign up 2022-04-21 14:46:30 +02:00
Szilárd Dóró
1da0ff9109 fixed ESLint issues, improved error handling, improved DocGen state management 2022-04-21 14:09:44 +02:00
Johan Eliasson
a64f1c4396 typo 2022-04-21 13:54:09 +02:00
Pierre-Louis Mercereau
75a1428114 chore(examples): fix resolution error with nextjs 2022-04-21 13:42:23 +02:00
Pierre-Louis Mercereau
d82d830849 chore: update pnpm lock file 2022-04-21 13:23:13 +02:00
Pierre-Louis Mercereau
2def59fc6c chore: merge main 2022-04-21 13:21:36 +02:00
Pierre-Louis Mercereau
64ceb2c6bf docs: update examples readme 2022-04-21 12:46:05 +02:00
Pierre-Louis Mercereau
3ee007620c chore: use vite to build react-apollo-crm, and prettier examples 2022-04-21 12:40:19 +02:00
Szilárd Dóró
c08230ae95 disabled import sort command in DocGen because of the Prettier plugin 2022-04-21 12:04:43 +02:00
Szilárd Dóró
18df8921fd initial DocGen code 2022-04-21 11:44:31 +02:00
Pierre-Louis Mercereau
b9cf8172a0 chore(examples): include react-apollo and nextjs examples back in the monorepo workspace 2022-04-21 11:24:32 +02:00
Pilou
32edfb4a9f Merge pull request #432 from nhost/contributors-readme-action-GEao4TGXIq
contributors readme action update
2022-04-21 11:20:17 +02:00
Pilou
848db9b672 Merge pull request #433 from nhost/contributors-readme-action--71qTzGJKI
contributors readme action update
2022-04-21 11:19:43 +02:00
github-actions[bot]
3766921bcc contrib-readme-action has updated readme 2022-04-21 09:19:09 +00:00
Pilou
5546052b2c Merge pull request #430 from nhost/docs/update-example
Docs/update example
2022-04-21 11:18:54 +02:00
github-actions[bot]
c569b56d3d contrib-readme-action has updated readme 2022-04-21 09:18:43 +00:00
Pilou
52ffa84adb Merge pull request #431 from timpratim/patch-3
Changed the wording for better understanding
2022-04-21 11:18:26 +02:00
Pratim
b5ae438a8e Changed the wording for better understanding
Changed the wording for a better understanding of the permissions doc
2022-04-21 14:17:13 +05:30
Pierre-Louis Mercereau
fae05f7af2 docs: bump to latest version of hasura-auth 2022-04-21 10:38:15 +02:00
Pierre-Louis Mercereau
380d7fc8ce docs: bump versions 2022-04-21 10:36:53 +02:00
Pierre-Louis Mercereau
94132bbc7f docs: move allowed_redirect_urls option to the right place, and prettier files 2022-04-21 10:36:28 +02:00
Szilárd Dóró
d87a9d7c79 Merge pull request #429 from nhost/changeset-release/main
chore: update versions
2022-04-21 10:00:00 +02:00
github-actions[bot]
be7756d4a2 chore: update versions 2022-04-21 07:54:52 +00:00
Szilárd Dóró
ca5e335bff Merge pull request #425 from nhost/fix/broadcast-channel
fix: remove broadcast-channel
2022-04-21 09:53:45 +02:00
Pilou
b9ed794f2b Merge pull request #424 from nhost/docs/graphql-dependency
docs: use docusaurus tabs for npm/yarn commands, and add `graphql` dependency
2022-04-20 16:39:24 +02:00
Pierre-Louis Mercereau
042dc7d27c docs: remove duplicate text 2022-04-20 15:12:22 +02:00
Pierre-Louis Mercereau
db2df3d5b2 docs: remove useless lines 2022-04-20 15:10:57 +02:00
Pierre-Louis Mercereau
0b1cb628f2 fix: remove broadcast-channel 2022-04-20 15:08:30 +02:00
Pierre-Louis Mercereau
912d95d153 docs: add admonitions 2022-04-20 12:14:01 +02:00
Pierre-Louis Mercereau
76059f4738 docs: use docusaurus tabs for npm/yarn commands, and add graphql dependency 2022-04-20 12:06:21 +02:00
Pilou
011572f3ef Merge pull request #423 from nhost/docs/auth-host
docs: notify AUTH_HOST won't be available after hasura-auth `v0.6.0`
2022-04-20 09:22:44 +02:00
Pierre-Louis Mercereau
b727b354dd docs: notify AUTH_HOST won't be available after hasura-auth v0.6.0 2022-04-20 08:37:32 +02:00
Pilou
a0682ed22e Merge pull request #406 from nhost/changeset-release/main
chore: update versions
2022-04-19 08:39:05 +01:00
Szilárd Dóró
4d16306e56 Merge pull request #421 from nhost/contributors-readme-action-C0LArrqIaO
contributors readme action update
2022-04-19 09:25:07 +02:00
github-actions[bot]
b7861bbd36 chore: update versions 2022-04-19 07:23:44 +00:00
github-actions[bot]
e279805896 contrib-readme-action has updated readme 2022-04-19 07:23:03 +00:00
Szilárd Dóró
e3ebd9cb1b Merge pull request #407 from hajek-raven/feat/graphql-ts-generic-types
feat: Add generic types for NhostFunctionsClient and NhostGraphqlClient request method return type and variables
2022-04-19 09:22:46 +02:00
Filip Hájek
5bb928da2c feat: Refactor NhostGraphqlClient request method 2022-04-18 18:31:26 +02:00
Filip Hájek
ab06e96eac feat: Add generic types for NhostFunctionsClient and NhostGraphqlClient request method return type and variables 2022-04-18 18:12:30 +02:00
Johan Eliasson
6e2aabbda0 Merge pull request #417 from nhost/contributors-readme-action-cvcdbRwZtm
contributors readme action update
2022-04-15 16:40:41 +02:00
github-actions[bot]
e4ce235f38 contrib-readme-action has updated readme 2022-04-15 14:40:11 +00:00
Johan Eliasson
e783b7478b Merge pull request #413 from GavanWilhite/patch-1
Fixed typos in migration doc
2022-04-15 16:39:58 +02:00
Johan Eliasson
06d2d2b0c7 Merge branch 'main' into patch-1 2022-04-15 16:37:42 +02:00
Johan Eliasson
656379e78b Merge pull request #415 from nhost/docs/u898ashda
docs: updated migrations
2022-04-15 16:36:30 +02:00
Pilou
4156a9a61e Merge pull request #414 from nhost/402-add-gql-support-for-graphql-client
feat: add `gql` support for GraphQL client
2022-04-15 07:02:54 +01:00
Johan Eliasson
0b72829274 typo fixes 2022-04-15 00:21:14 +02:00
Pierre-Louis Mercereau
6b0baab151 refactor: graphql becomes a peer dependency, and no dynamic import 2022-04-14 22:59:16 +01:00
Johan Eliasson
93f9d2d01d migration updates 2022-04-14 23:47:41 +02:00
Pierre-Louis Mercereau
3fb3d4c282 refactor: rename gql to graphql-tag 2022-04-14 22:40:12 +01:00
Pierre-Louis Mercereau
ccba0b5015 feat: add gql support for GraphQL client 2022-04-14 22:36:24 +01:00
Gavan Wilhite
62e331500d Update index.md
Fixed typos
2022-04-14 13:10:38 -07:00
Szilárd Dóró
4104ddbcb6 Merge pull request #412 from nhost/szilarddoro-readme-patch 2022-04-14 18:57:52 +02:00
Szilárd Dóró
43fc040a29 Update Docs README.md
Mac put this weird whitespace-like character here, therefore the README was rendered incorrectly.
2022-04-14 17:26:25 +02:00
Johan Eliasson
e472b2cb19 Merge pull request #411 from nhost/docs/edit-link
Docs: edit link instead of blob
2022-04-14 15:21:28 +02:00
Johan Eliasson
6570a940ee Merge pull request #408 from nhost/docs/new-structure-jhbuas79yasd
Docs update
2022-04-14 15:20:38 +02:00
Johan Eliasson
d3e97c87d6 typo update 2022-04-14 13:29:45 +02:00
Johan Eliasson
36508c7930 edit link instead of blob 2022-04-14 10:08:33 +02:00
Johan Eliasson
709d364749 fixed broken link 2022-04-14 09:34:47 +02:00
Johan Eliasson
73eb2db159 more updates 2022-04-13 21:29:47 +02:00
Johan Eliasson
86eb8903dc fixed next page issues 2022-04-13 21:13:32 +02:00
Johan Eliasson
d665473074 updated gql 2022-04-13 21:09:37 +02:00
Johan Eliasson
58534c24f0 fixed platform structure 2022-04-13 20:20:50 +02:00
Pilou
90a1c3b9e1 Merge pull request #388 from nhost/feat/graphql-ws
feat: graphql-ws and useAuthSubscription
2022-04-13 11:47:14 +01:00
Johan Eliasson
bdfa2b3053 Merge pull request #403 from nhost/fix/docs-opengraph-image
fix: Docs - OpenGraph image
2022-04-13 11:46:56 +02:00
Szilárd Dóró
2c5b31f27a added previous OpenGraph image 2022-04-13 11:15:32 +02:00
Pierre-Louis Mercereau
d75fd747e0 refactor: type websocket 2022-04-13 10:10:18 +01:00
Pierre-Louis Mercereau
a71b3aff59 chore: merge main 2022-04-13 10:01:12 +01:00
Szilárd Dóró
8a8c67db92 Merge pull request #399 from nhost/changeset-release/main
chore: update versions
2022-04-13 10:49:05 +02:00
Szilárd Dóró
13935ebdc4 added OpenGraph image to Docs page 2022-04-13 10:23:16 +02:00
github-actions[bot]
357ba89d53 chore: update versions 2022-04-13 08:11:16 +00:00
Szilárd Dóró
7e34805eb4 Merge pull request #392 from nhost/feat/docusaurus
Migration to Docusaurus
2022-04-13 10:10:08 +02:00
Szilárd Dóró
52782ee550 fixed Hooks documentation 2022-04-13 10:04:08 +02:00
Szilárd Dóró
089d7fb0a2 replaced old docs with the docusaurus version 2022-04-13 10:00:11 +02:00
Szilárd Dóró
9df131201e README update 2022-04-12 16:49:37 +02:00
Szilárd Dóró
067d8a692c lock file update 2022-04-12 16:09:49 +02:00
Szilárd Dóró
824060e7f6 Merge branch 'main' into feat/docusaurus 2022-04-12 16:08:31 +02:00
Szilárd Dóró
0fe7b8f0fb fixed category slugs 2022-04-12 16:00:12 +02:00
Szilárd Dóró
78f096a738 Merge pull request #398 from nhost/fix/get-nhost-session-typing-improvements
fix: getNhostSession typing improvements, missing TSDoc
2022-04-12 15:39:54 +02:00
Szilárd Dóró
4635a145c1 improved getNhostSession function's typing, added missing tsdoc
added @types/cookies package
2022-04-12 15:33:17 +02:00
Szilárd Dóró
1446a8f13b Merge pull request #395 from nhost/changeset-release/main
chore: update versions
2022-04-12 14:54:23 +02:00
Johan Eliasson
ff75998e93 Merge pull request #397 from nhost/contributors-readme-action-v-3ccBloq6
contributors readme action update
2022-04-12 14:36:51 +02:00
github-actions[bot]
9cc044ca9f contrib-readme-action has updated readme 2022-04-12 12:28:41 +00:00
Johan Eliasson
c65e44b8d6 Merge pull request #396 from nhost/test/messaging-gql-be
Messaging test
2022-04-12 14:28:24 +02:00
Johan Eliasson
9ec73b4c22 edit readme 2022-04-12 14:25:47 +02:00
Szilárd Dóró
e4eda9e967 migrated changes from https://github.com/nhost/nhost/pull/385
added CTA to header
2022-04-12 14:07:37 +02:00
github-actions[bot]
94b70e0ce9 chore: update versions 2022-04-12 12:04:21 +00:00
Pilou
d108dff4f4 Merge pull request #387 from nhost/fix/sync-auth-state
fix onTokenChanged
2022-04-12 13:03:38 +01:00
Szilárd Dóró
7a8e771a72 Merge pull request #385 from gdangelo/patch-1
Add a table to detail the data returned by `useUserData`
2022-04-12 13:48:31 +02:00
Szilárd Dóró
f8fb4bbedd Merge pull request #393 from nhost/contributors-readme-action-L56J6ymmkI
contributors readme action update
2022-04-12 13:06:10 +02:00
Szilárd Dóró
90e38b1cc5 fixed build warnings, added missing videos 2022-04-12 13:04:31 +02:00
Szilárd Dóró
9c04dad57c Merge branch 'main' into feat/docusaurus 2022-04-12 12:51:45 +02:00
github-actions[bot]
c6b1c33a8e contrib-readme-action has updated readme 2022-04-12 10:51:37 +00:00
Szilárd Dóró
65b36eff13 Merge pull request #391 from gdangelo/patch-2
Update example with the latest version of React Router, v6
2022-04-12 12:51:21 +02:00
Szilárd Dóró
cac6088016 fixed broken links, fixed typo in authentication hooks 2022-04-12 11:47:47 +02:00
Grégory D'Angelo
c192cb9503 refact: Remove additional props to simplify example 2022-04-12 11:44:36 +02:00
Grégory D'Angelo
94ff290264 fix: Return Outlet in ProtectedRoute component + add missing closing tag + add explanation 2022-04-12 11:40:03 +02:00
Szilárd Dóró
aff80db515 updated slugs in new documentation to match old docs 2022-04-12 11:02:52 +02:00
Szilárd Dóró
6e2c991b2e added sitemap support to new docs page 2022-04-12 10:32:11 +02:00
Grégory D'Angelo
78781ebfec Update example with the latest version of React Router, v6 2022-04-12 09:04:28 +02:00
Pierre-Louis Mercereau
f6093a619f feat: graphql-ws and useAuthSubscription 2022-04-11 22:54:28 +01:00
Pierre-Louis Mercereau
63d6059981 fix: fix onTokenChanged bugs 2022-04-11 20:55:02 +01:00
Grégory D'Angelo
022d49fb25 Add a table to detail the data returned by useUserData 2022-04-11 19:06:30 +02:00
Szilárd Dóró
a8e6187360 fixed a 404 error on deployed page 2022-04-11 17:49:55 +02:00
Szilárd Dóró
276d6b10dd fixed a 404 error on deployed page 2022-04-11 17:42:55 +02:00
Szilárd Dóró
62461a2f20 moved get-started/cli documentation to get-started/cli-workflow to better mirror old structure 2022-04-11 17:33:41 +02:00
Szilárd Dóró
81ec16d77b moved documentation from root folder to get-started to better mirror old documentation structure 2022-04-11 17:31:10 +02:00
Szilárd Dóró
5a059c1e9e fixed broken documentation links, reverted broken link severity to error 2022-04-11 17:13:21 +02:00
Szilárd Dóró
28bbde6142 finalized old documentation migration 2022-04-11 17:06:13 +02:00
Szilárd Dóró
05f01e45ec finalized Reference page in new docs 2022-04-11 16:04:58 +02:00
Szilárd Dóró
b1bd405a5e Merge branch 'main' into feat/docusaurus 2022-04-11 15:34:05 +02:00
Szilárd Dóró
a295b5b1e6 finalized platform page migration 2022-04-11 15:21:39 +02:00
Szilárd Dóró
eece559771 changed broken link severity from error to warning temporarily 2022-04-11 13:37:17 +02:00
Szilárd Dóró
cd0e4d1908 added remaining social providers to the new docs, optimized preview SVGs 2022-04-11 11:14:02 +02:00
Johan Eliasson
7bf678df9f docs update 2022-04-11 06:54:42 +02:00
Pilou
3bd1aa4d53 Merge pull request #357 from nhost/changeset-release/main
chore: update versions
2022-04-10 08:51:47 +01:00
github-actions[bot]
f3cca4997b chore: update versions 2022-04-10 07:44:55 +00:00
Pilou
0fd7a487d6 Merge pull request #382 from nhost/fix/sync-auth-state
Keep authentication status and access token in sync
2022-04-10 08:44:15 +01:00
Pierre-Louis Mercereau
1bb032c1e7 chore: remove console.log and add explaination 2022-04-09 20:48:00 +01:00
Pierre-Louis Mercereau
2c97db68b5 fix: sync auth state with all the nhost sub-clients 2022-04-09 20:44:38 +01:00
Johan Eliasson
714f2872ee Merge pull request #380 from nhost/contributors-readme-action-nMk7JwQ8hY
contributors readme action update
2022-04-09 16:19:05 +02:00
github-actions[bot]
65fc26a0e8 contrib-readme-action has updated readme 2022-04-09 14:11:13 +00:00
Johan Eliasson
86a56f28c1 Merge pull request #379 from Savinvadim1312/patch-1
Fix a type in react documentation
2022-04-09 16:10:55 +02:00
Savin Vadim
6e8abe28d6 Fix a type in react documentation
Fix a typo in the `nhsot/react` documentation in the code example. 

The imported hook had a wrong name
2022-04-09 13:41:56 +01:00
Szilárd Dóró
39925ff5ca Merge pull request #376 from nhost/fix/documentation-react-router
React Router example upgraded to v6
2022-04-08 16:03:09 +02:00
Szilárd Dóró
583a77ed0d build fix and sitemap updates 2022-04-08 15:12:34 +02:00
Szilárd Dóró
e704831500 upgraded AuthGate example documentation to use react-router v6 2022-04-08 15:03:31 +02:00
Szilárd Dóró
a8f82e8133 improved navigation structure on Reference page 2022-04-08 09:10:25 +02:00
Johan Eliasson
95948dd5b9 Merge pull request #372 from nhost/contributors-readme-action-9bzNZt6pM9
contributors readme action update
2022-04-08 07:24:40 +02:00
github-actions[bot]
247b69c952 contrib-readme-action has updated readme 2022-04-08 05:24:23 +00:00
Johan Eliasson
7d15b76402 Merge pull request #359 from nhost/contributors-readme-action-txEVhnQt0i
contributors readme action update
2022-04-08 07:24:11 +02:00
github-actions[bot]
b1ae65fd72 contrib-readme-action has updated readme 2022-04-07 18:55:02 +00:00
Pilou
0063fd1840 Merge pull request #358 from Savinvadim1312/patch-1
Fix a typo in the React docs
2022-04-07 19:54:48 +01:00
Savin Vadim
743a7e6507 Fix a typo in the React docs
Changed from `clientStorageGetter` to `clientStorageSetter` on the line referencing the setter function
2022-04-07 19:43:30 +01:00
Szilárd Dóró
1687f7af04 improved sidebar structure of docs, added reference page 2022-04-07 20:35:54 +02:00
Pilou
078652861f Merge pull request #345 from nhost/fix/dont-remove-ts-comments
fix: don't remove comments so they are present in the built .d.ts
2022-04-07 19:27:39 +01:00
Pilou
39840cfd95 Merge pull request #347 from nhost/docs/update-examples
Update examples to bump versions & hooks syntax, and fix dead link in react-apollo readme
2022-04-07 19:26:49 +01:00
Szilárd Dóró
102c99e491 asset cleanup, redirect and docs route fixes 2022-04-07 17:49:31 +02:00
Szilárd Dóró
a3702a644e removed unnecessary files related to the default placeholder page 2022-04-07 16:51:24 +02:00
Szilárd Dóró
db65fea706 more branding related changes, redirect support 2022-04-07 16:48:40 +02:00
Szilárd Dóró
ffe9123b48 fixed build issues caused by broken links 2022-04-07 15:29:07 +02:00
Szilárd Dóró
f112ea2115 fixed text color in dark mode 2022-04-07 15:17:26 +02:00
Szilárd Dóró
4963153def basic docusaurus stylign improvements 2022-04-07 15:02:44 +02:00
Johan Eliasson
940a36a68f Merge pull request #352 from nhost/contributors-readme-action-YMeH8uC8qa
contributors readme action update
2022-04-07 13:23:41 +02:00
github-actions[bot]
77b109b3df contrib-readme-action has updated readme 2022-04-07 11:22:27 +00:00
Johan Eliasson
15907d65e6 Merge pull request #351 from nhost/contr-test-1
readme update
2022-04-07 13:22:12 +02:00
Johan Eliasson
7d7d16fa71 readme update 2022-04-07 13:21:56 +02:00
Johan Eliasson
3f39e48cbd Merge pull request #349 from nhost/contributors
contr init
2022-04-07 13:18:57 +02:00
Johan Eliasson
97ade32869 contr init 2022-04-07 13:18:22 +02:00
Pierre-Louis Mercereau
8583af8290 chore: changeset 2022-04-07 09:34:46 +02:00
Pierre-Louis Mercereau
a28193a6ba docs: correct link to documentation 2022-04-07 09:30:15 +02:00
Johan Eliasson
60d85e5a69 init structure updates 2022-04-06 15:46:12 +02:00
Pierre-Louis Mercereau
9d6c64430a chore: remove rsuite toaster workaround 2022-04-06 15:44:57 +02:00
Pierre-Louis Mercereau
519d1bf5cb chore: prettier and lint fix 2022-04-06 15:39:29 +02:00
Pierre-Louis Mercereau
5ffb0320b5 docs: update examples to bump versions and to match the recommended hooks syntax 2022-04-06 15:31:58 +02:00
Johan Eliasson
50d2413554 Update README.md 2022-04-06 15:19:50 +02:00
Szilárd Dóró
7d275aad90 initialized Docusaurus project 2022-04-06 15:12:08 +02:00
Pierre-Louis Mercereau
6607e73cc2 fix: don't remove comments so they are present in the built .d.ts 2022-04-06 15:07:37 +02:00
Pilou
b4bac161a5 Merge pull request #344 from timpratim/patch-2
Separated the commands for installation
2022-04-06 12:56:28 +02:00
Pratim
37d15377c8 Separated the commands for installation
Separated the commands for installation according to the package managers.
2022-04-06 15:33:45 +05:30
Pilou
8ee1df3be4 Merge pull request #343 from nhost/changeset-release/main
chore: update versions
2022-04-06 10:50:29 +02:00
Pilou
47ffca945e Update package.json 2022-04-06 10:46:11 +02:00
Pilou
d60f5e623c Update CHANGELOG.md 2022-04-06 10:45:41 +02:00
Pilou
6f80643ee0 Update package.json 2022-04-06 10:45:10 +02:00
Pilou
8d5084725d Update CHANGELOG.md 2022-04-06 10:44:56 +02:00
Pilou
693498dd09 Update CHANGELOG.md 2022-04-06 10:37:39 +02:00
Pilou
4d36a966ea Update CHANGELOG.md 2022-04-06 10:37:02 +02:00
Pilou
239a075f1d Update CHANGELOG.md 2022-04-06 10:36:37 +02:00
github-actions[bot]
931194812e chore: update versions 2022-04-06 08:33:17 +00:00
Pilou
c8f80c58f3 Merge pull request #335 from nhost/refactor/correct-react-hook-signature
React hook signature & add promises to hook action results
2022-04-06 10:32:33 +02:00
Pilou
7fdb5aee0a Merge pull request #334 from nhost/docs/bump-version-examples
docs: bump dependencies of react-apollo and nextjs examples
2022-04-05 20:52:12 +02:00
Pilou
1710808fef Merge pull request #321 from nhost/docs/correct-hljs
docs: pass language to react-syntax-highlighter
2022-04-05 20:52:00 +02:00
Pilou
696815d4a8 Merge pull request #311 from nhost/306-the-useuserdata-hook-does-not-return-the-emailverified-or-phonenumberverified-user-properties
Add `emailVerified`, `phoneNumber`, `phoneNumberVerified`, and `activeMfaType` to User type, and add missing providers types
2022-04-05 20:51:42 +02:00
Pilou
5cc9be00b6 Merge pull request #341 from nhost/changeset-release/main
chore: update versions
2022-04-05 16:14:26 +02:00
github-actions[bot]
28dae23a91 chore: update versions 2022-04-05 14:02:46 +00:00
Pilou
7819e20cf4 Merge pull request #340 from nhost/elitan-patch-1
Correct OAuth provider link
2022-04-05 16:01:42 +02:00
Johan Eliasson
6be3758668 Create ninety-eels-lick.md 2022-04-05 15:56:18 +02:00
Johan Eliasson
658c67faf4 Update hasura-auth-client.ts 2022-04-05 15:54:39 +02:00
Pierre-Louis Mercereau
e7f3a5f6e0 chore: ellaborate changesets 2022-04-05 10:50:55 +02:00
Pierre-Louis Mercereau
7135aee78b chore: add changeset 2022-04-05 10:42:44 +02:00
Pierre-Louis Mercereau
587eaff734 feat: add promise with the current context to hooks actions 2022-04-04 20:45:12 +02:00
Pierre-Louis Mercereau
7cf875f4b8 refactor: deprecate the use of values end as hook parameters 2022-04-04 16:56:46 +02:00
Pierre-Louis Mercereau
657cfb91c5 docs: update corresponding swagger api 2022-04-04 10:42:09 +02:00
Pierre-Louis Mercereau
103dd6e98e Merge branch 'main' into 306-the-useuserdata-hook-does-not-return-the-emailverified-or-phonenumberverified-user-properties 2022-04-04 10:40:05 +02:00
Pierre-Louis Mercereau
3c8caa680b docs: bump dependencies of react-apollo and nextjs examples
and remove workaround related to https://github.com/rsuite/rsuite/issues/2336
2022-04-03 23:45:06 +02:00
Pilou
1bcee357fe Merge pull request #325 from nhost/docs/auth-refresh-expiration
docs: change default refresh token expiration to 30 days
2022-04-03 22:32:21 +02:00
Pierre-Louis Mercereau
b729aa9290 ci: fix pnpm/npm/changeset 2022-04-03 22:26:58 +02:00
Pilou
57780ee645 Merge pull request #333 from nhost/changeset-release/main
chore: update versions
2022-04-03 15:35:58 +02:00
github-actions[bot]
aad8d22380 chore: update versions 2022-04-03 13:28:59 +00:00
Pilou
85d33c4de0 Merge pull request #332 from nhost/fix/auto-signin
fix: correct auto-signin bug introducted in previous version
2022-04-03 15:28:16 +02:00
Pierre-Louis Mercereau
ab3e2dcee9 refactor: remove log 2022-04-03 15:22:11 +02:00
Pierre-Louis Mercereau
12f4504b61 refactor: remove incorrect and unused snapshot script 2022-04-03 15:19:00 +02:00
Pierre-Louis Mercereau
71d7a11c96 refactor: correct script 2022-04-03 15:11:48 +02:00
Pierre-Louis Mercereau
16a6c5073e fix: correct auto-signin bug introducted in previous version 2022-04-03 15:05:13 +02:00
Pilou
3fcc86792a Merge branch 'main' into main 2022-04-03 13:40:31 +02:00
Pierre-Louis Mercereau
27909128e4 chore: bump versions to fix the workspace/package link bug 2022-04-02 11:25:38 +02:00
Pierre-Louis Mercereau
72371c72a1 chore: bump versions 2022-04-02 10:58:56 +02:00
Pierre-Louis Mercereau
d878414b10 ci: freeze node version 2022-04-02 10:52:27 +02:00
Pierre-Louis Mercereau
9b840f7c4a docs: change default refresh token expiration to 30 days 2022-04-01 21:15:40 +02:00
Pilou
4fd09b4080 Merge pull request #316 from nhost/changeset-release/main
chore: update versions
2022-04-01 16:18:58 +02:00
Pilou
bdb786fa83 Merge pull request #313 from chrtze/patch-2
Update hooks.mdx
2022-04-01 13:35:56 +02:00
Pierre-Louis Mercereau
d42be972b4 Merge branch 'main' into patch-2 2022-04-01 13:31:25 +02:00
Pierre-Louis Mercereau
5920c830b3 docs: minor adjustments 2022-04-01 13:25:32 +02:00
Pilou
5fc16653c0 Update index.mdx 2022-04-01 08:50:49 +02:00
Pilou
900ec48889 Update index.mdx 2022-04-01 08:45:55 +02:00
Pierre-Louis Mercereau
83d3c90f43 docs: pass language to react-syntax-highlighter 2022-03-31 21:57:40 +02:00
github-actions[bot]
cf20ee5a8f chore: update versions 2022-03-31 14:45:03 +00:00
Pilou
9180154325 Merge pull request #231 from nhost/hasura-auth-documentation
Hasura auth documentation
2022-03-31 16:44:19 +02:00
Pilou
1ae025b745 Merge pull request #310 from nhost/309-nhostclient-constructor-error-using-expo
fix: check if `window.location` exists
2022-03-31 16:16:55 +02:00
Pilou
ba538a4ad9 Merge pull request #315 from nhost/fix/wait-authentication-loaded
fix(sdk): wait for the authentication status to be known before executing auth actions
2022-03-31 16:15:07 +02:00
Szilárd Dóró
0e5e47b8f8 Merge pull request #314 from nhost/fix/token-refresh-usequery
fix: Query refetch and leaking GraphQL subscription
2022-03-31 15:06:05 +02:00
Szilárd Dóró
113beed447 added changeset 2022-03-31 14:53:10 +02:00
Pierre-Louis Mercereau
6eeb9d2e65 fix(sdk): wait for the authentication status to be known before executing auth actions 2022-03-31 14:47:31 +02:00
Szilárd Dóró
3db2959bc2 fixed query refetch and leaking GraphQL subscriptions when issuing new JWT token 2022-03-31 14:23:33 +02:00
Pierre-Louis Mercereau
16fcc08b0a refactor: simplify code 2022-03-31 13:53:08 +02:00
Christopher Möller
5b098c8ef4 Update hooks.mdx 2022-03-31 12:51:37 +02:00
Pierre-Louis Mercereau
058956bdcb feat: update types 2022-03-31 12:27:47 +02:00
Pierre-Louis Mercereau
d3384614b4 fix: typeof window still needs to be used 2022-03-31 11:28:16 +02:00
Pierre-Louis Mercereau
0064fccb12 docs: last missing suggestions 2022-03-31 11:25:16 +02:00
Pierre-Louis Mercereau
6efd45fcb7 docs: take suggestions into account - missing pieces 2022-03-31 11:23:22 +02:00
Pierre-Louis Mercereau
4420c0e070 fix: check if window.location exists 2022-03-31 11:18:05 +02:00
Pierre-Louis Mercereau
354b07947a docs(hasura-auth): update swagger to hasura-auth 0.5.0 2022-03-31 11:01:16 +02:00
Pierre-Louis Mercereau
2fa5c10e14 chore: merge main 2022-03-31 08:57:07 +02:00
Pierre-Louis Mercereau
94124c7754 docs: improve explainations 2022-03-31 08:54:49 +02:00
Johan Eliasson
e405b738a6 Update README.md (#307) 2022-03-30 16:19:30 +02:00
Pierre-Louis Mercereau
947b7e037f fix: correct dependency bump 2022-03-29 16:33:40 +02:00
github-actions[bot]
cd6f37f2a6 chore: update versions (#304)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-29 16:11:46 +02:00
Pilou
39df4d5b9c Deprecate useAuthLoading and introduce useAuthenticationStatus (#303)
* fix(react): keep authentication and loading status in sync

fix #302

* style: typo
2022-03-29 13:21:50 +02:00
Pierre-Louis Mercereau
63ee1d7659 docs: correct typo and code blocks 2022-03-28 17:18:58 +02:00
Pierre-Louis Mercereau
eb33952760 docs: take Szilard's comments into account 2022-03-28 14:18:59 +02:00
Pilou
e91215bbac Docs/nextjs (#299)
* fix: correct access to user/session information through getUser/getSession/isReady

* chore: use carret instead of star

* docs: explain all react hooks are available from @nhost/nextjs

* docs: correct imports in nextjs example

* chore: remove orphan changeset

* docs: next.js instead of NextJs
2022-03-28 14:16:41 +02:00
github-actions[bot]
ccaa4c4bba chore: update versions (#300)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-28 10:11:31 +02:00
Pilou
ab36f90cec fix: correct access to user/session information through getUser/getSession/isReady (#298)
* fix: correct access to user/session information through getUser/getSession/isReady

* chore: use carret instead of star
2022-03-28 10:09:38 +02:00
Johan Eliasson
cfbe2db430 fix: make it clear the @nhost/react-auth package is depricated (#297)
* fix: make it clear this package is depricated

* Update README.md

Co-authored-by: Pilou <24897252+plmercereau@users.noreply.github.com>
2022-03-28 09:57:55 +02:00
Pilou
6838ac6201 docs: fix deadlinks in README (#256) 2022-03-25 15:38:19 +00:00
Johan Eliasson
0caf43037d fix: updated react apollo crm package versions (#296)
* update

* update
2022-03-25 16:33:30 +01:00
Pilou
4ed626d5b5 chore: bump fixed versions in examples (#257)
* chore: bump fixed versions in examples

* chore: bump to latest sdk version

* chore: bump to latest version

* chore: bump example version
2022-03-25 14:49:35 +00:00
github-actions[bot]
9ff9abee6a chore: update versions (#293)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-25 11:50:45 +00:00
Pilou
9d3f0521a5 fix: keep location.hash in email redirections (#294)
In the next cycle, hasura-auth will only send the refresh token in the hash, and will add the
redirection type as a query parameter. We will then be able to remove/hide the hash from the url as
soon as the refresh token has been used
2022-03-25 11:34:41 +00:00
Pilou
744fd6929f Unify @nhost/react and @nhost/nhost-js (#273)
* chore: rename `@nhost/client` to `@nhost/core`

* chore: refactor hasura-auth-js to use @nhost/core

all existing tests pass

* refactor: adapt syntax to react, and rename machine to authMachine

* refactor: rename to authmachine and remove useless license files

pnpm uses the root license file when publishing packages

* feat: totp login+password

* refactor: passwordless sms, mfa, deanonymize

* refactor: state/value mfa code

* refactor: rename

* refactor: auth status and token change events

* refactor: adjust apollo to original syntax, and sync auth session accross all nhost-js sub-clients

* refactor: revert changelog and adjust documentation

* refactor: adjust to the shape-up signatures

* refactor: make nextjs work with the new system

* refactor: allow async storage getters and setters

* refactor: implement refreshSession

* chore: fix pnpm lock file

* docs: change NhostReactProvider to NhostNextProvider

* chore: changesets

* refactor: change signup/signin hooks signatures as per Johan's request

* refactor: remove `nhost.auth.verifyEmail`

* chore: add changeset

* docs: add mfa to the react example, and adjust examples to the new conventions

* feat: allow oauth providers to get options

* fix: sync sdk client with the machine state

* fix: don't use state.matches and state.hasTag in useSelector, and improve useSelectors

* refactor: set oauth options everywhere, document, and rewrite relative redirectTo

* chore: update pnpm lock file

* fix: correct paths to cjs dist file, and reactivate warning suppression about useLayoutEffect

* chore: keep the same parameters in the React Apollo providers

* refactor: use the new system in @nhost/react-auth, and mark it as deprecated

* chore: @nhost/react-auth changeset

* chore: update pnpm lock file

* docs: remove todos and point to the documenation when it exists

* docs: name files `.tsx` instead of `.jsx`

* refactor: retro-compatible clientStorageType and clientStorage options

* refactor: improve hooks names consistency

See https://github.com/nhost/nhost/pull/273#discussion_r829058348

* chore: don't override changelog

* refactor: bump hasura-auth to version 0.4.2

* refactor: move @apollo/client to a peer dependency

This was the case in the origination @nhost/react-apollo package

* refactor: prettier

* refactor: rename useConfigMfa properties

* chore: ellaborate changesets

* refactor: rename `anonymousSignIn` to `signInAnonymous`

* docs: correct typo

* refactor: rename anonymous signin hook

* refactor: use @nhost/nextjs instead of @nhost/react in Nextjs documentation

* chore: explain renaming from @nhost/client to @nhost/core

* chore: changeset

* chore: complete sentence in changeset
2022-03-24 20:37:56 +00:00
Szilárd Dóró
f43f52e766 updated react-apollo changelog (#292) 2022-03-24 12:33:31 +00:00
github-actions[bot]
fd4c54ee91 chore: update versions (#290)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-24 09:58:40 +00:00
Szilárd Dóró
b30ff6f507 fix: Auth header condition check (#291)
* fixed auth header conditions in storage functions

* fixed lint errors in hasura-storage-js package

* removed patch changeset file
2022-03-24 09:56:25 +00:00
Pilou
ff7ae21a87 feat: admin secret for storage (#289)
* added Hasura Admin Secret support to storage functions

* @nhost/hasura-storage-js changelog

Co-authored-by: Szilárd Dóró <szilard.doro@bishop.hu>
2022-03-23 16:55:30 +00:00
Pierre-Louis Mercereau
b2c398df22 docs: redirections 2022-03-23 14:35:05 +00:00
Pierre-Louis Mercereau
888192282f docs: hide missing chapters, and add todos 2022-03-23 14:23:07 +00:00
Pierre-Louis Mercereau
945b557dea docs: totp 2022-03-23 14:17:16 +00:00
Pierre-Louis Mercereau
4031d8a9e1 docs: smtp settings 2022-03-23 13:21:49 +00:00
Pierre-Louis Mercereau
c77aa16181 docs: email templates 2022-03-23 13:04:36 +00:00
Pierre-Louis Mercereau
ea2fb2e9a4 docs: extending user schema 2022-03-23 12:50:47 +00:00
Pierre-Louis Mercereau
e147487e27 docs: fix bullet points 2022-03-23 12:39:57 +00:00
Pierre-Louis Mercereau
6f52652e10 docs: hasura integration 2022-03-23 11:49:43 +00:00
Pierre-Louis Mercereau
1a8d9b5c28 docs: overview 2022-03-23 11:39:37 +00:00
Pierre-Louis Mercereau
9111299ddd docs: email passwordless 2022-03-23 11:27:31 +00:00
Pierre-Louis Mercereau
1c7f520073 docs: minor reshape 2022-03-23 11:09:26 +00:00
Pierre-Louis Mercereau
dff37a4cd0 docs: email and password checks 2022-03-23 11:04:53 +00:00
Pierre-Louis Mercereau
96a572379e docs: gravatar 2022-03-23 10:46:17 +00:00
Pierre-Louis Mercereau
da3bbf2e10 chore: update pnpm lockfile 2022-03-23 10:09:13 +00:00
Pierre-Louis Mercereau
a11fa372ff chore: merge main 2022-03-22 12:59:49 +00:00
Jerry Jäppinen
6d2c7b26c0 Formatting and paths (#285) 2022-03-21 15:23:09 +00:00
github-actions[bot]
d2d3ba6eb7 chore: update versions (#272)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-15 14:38:45 +01:00
Johan Eliasson
e688600ea2 fix: current options when sign in with a provider (#274)
* fix: current options when sign in with a provider

* Create eighty-pianos-try.md

* Create chilled-swans-repeat.md

* send sign-up options

* doesn't hurt to do encodeURIComponent everywhere

Co-authored-by: Pilou <24897252+plmercereau@users.noreply.github.com>
2022-03-15 14:32:09 +01:00
Hoang Do
d9aec711c4 Fix(nhost-js): Fix typo in README (#283) 2022-03-15 07:03:41 +01:00
Dominic Garms
9bd01e756f export refresh function (#281)
* export refresh utilitly function

For being able to receive a new accessToken on client side it would be ideal to expose the `refresh` function.

* Create loud-planets-impress.md

Co-authored-by: Pilou <24897252+plmercereau@users.noreply.github.com>
2022-03-14 18:33:52 +01:00
Pilou
8f7643a90e fix: change target ES module build target to es2019 (#282) 2022-03-14 18:32:27 +01:00
Johan Eliasson
50b9d763ae feat: correct available providers (Discord & Twitch added) (#266)
* feat: correct available providers (Discord & Twitch added)

* Create hip-eels-unite.md

* putting back proviers

Co-authored-by: Pierre-Louis Mercereau <24897252+plmercereau@users.noreply.github.com>
2022-03-11 08:11:57 +01:00
Quentin Decré
63cb1f0ce6 doc(hasura-auth-client): fixed onAuthStateChanged @example (#268) 2022-03-10 18:42:38 +01:00
Pilou
7c70b1823d fix broken ci pipeline (#267)
* ci: clean ci

* ci: matrix

* ci: install dependencies

* ci: debug

* ci: updated packages

* ci: remove scope

* ci: add src to files

* ci: deactivate turbo cache

* ci: debug

* ci: downgrade turborepo

* ci: reverse version

* ci: installl again

* ci: pwd

* ci: increase depth

* ci: decrease pnpm version

* ci: another turbo version

* ci: 1.1.5

* ci: clean

* ci: frozen lockfile

* ci: add options

* ci: deactivate cache

* ci: single ci command

* ci: correct

* ci: desesperant

* ci: again

* ci: again

* ci: remove testing project

* ci: remove testing project

* ci: exec nhost in tmp

* ci: deactivate nhost

* ci: manually create nhost project

* ci: again

* ci: copy existing nhost project

* ci: correct cp arg

* ci: correct cp

* ci: cd, not cp

* ci: wrap up

* ci: scope ci script
2022-03-10 13:16:48 +01:00
Pierre-Louis Mercereau
47c57ff665 ci: scope ci script 2022-03-10 13:12:08 +01:00
Pierre-Louis Mercereau
1cb330016b ci: wrap up 2022-03-10 13:06:17 +01:00
Pierre-Louis Mercereau
497652d1b4 ci: cd, not cp 2022-03-10 13:00:22 +01:00
Pierre-Louis Mercereau
20eb7aa381 ci: correct cp 2022-03-10 12:58:54 +01:00
Pierre-Louis Mercereau
4a3c2f92b1 ci: correct cp arg 2022-03-10 12:57:38 +01:00
Pierre-Louis Mercereau
5647e64265 ci: copy existing nhost project 2022-03-10 12:55:43 +01:00
Pierre-Louis Mercereau
c113debf46 ci: again 2022-03-10 12:52:49 +01:00
Pierre-Louis Mercereau
3f0ae4a58c ci: manually create nhost project 2022-03-10 12:50:36 +01:00
Pierre-Louis Mercereau
3d5b8183e8 ci: deactivate nhost 2022-03-10 12:47:38 +01:00
Pierre-Louis Mercereau
789ef8f783 ci: exec nhost in tmp 2022-03-10 12:44:45 +01:00
Pierre-Louis Mercereau
94df175ca3 ci: remove testing project 2022-03-10 12:41:24 +01:00
Pierre-Louis Mercereau
c8bcefb0e5 ci: remove testing project 2022-03-10 12:40:20 +01:00
Pierre-Louis Mercereau
fc52f59eb8 ci: again 2022-03-10 12:37:39 +01:00
Pierre-Louis Mercereau
a80389e5c7 ci: again 2022-03-10 12:30:57 +01:00
Pierre-Louis Mercereau
923276422b ci: desesperant 2022-03-10 12:28:43 +01:00
Pierre-Louis Mercereau
7c9192f3a0 ci: correct 2022-03-10 12:24:33 +01:00
Pierre-Louis Mercereau
51d139b7aa ci: single ci command 2022-03-10 12:21:58 +01:00
Pierre-Louis Mercereau
8fe1bdb6f7 ci: deactivate cache 2022-03-10 12:19:01 +01:00
Pierre-Louis Mercereau
5b288bc0d1 ci: add options 2022-03-10 12:18:38 +01:00
Pierre-Louis Mercereau
27cd769c76 ci: frozen lockfile 2022-03-10 12:16:08 +01:00
Pierre-Louis Mercereau
5bb370869d ci: clean 2022-03-10 12:13:57 +01:00
Pierre-Louis Mercereau
ec68f64db4 ci: 1.1.5 2022-03-10 12:11:48 +01:00
Pierre-Louis Mercereau
4cf8f146c9 ci: another turbo version 2022-03-10 12:08:16 +01:00
Pierre-Louis Mercereau
61cf317541 ci: decrease pnpm version 2022-03-10 12:04:03 +01:00
Pierre-Louis Mercereau
a2066c9b41 ci: increase depth 2022-03-10 12:02:25 +01:00
Pierre-Louis Mercereau
817b152704 ci: pwd 2022-03-10 12:00:40 +01:00
Pierre-Louis Mercereau
cc73494c91 ci: installl again 2022-03-10 11:58:05 +01:00
Pierre-Louis Mercereau
64ed4083b9 ci: reverse version 2022-03-10 11:54:12 +01:00
Pierre-Louis Mercereau
77e8c58cc6 ci: downgrade turborepo 2022-03-10 11:48:33 +01:00
Pierre-Louis Mercereau
0cd2eab309 ci: debug 2022-03-10 11:43:58 +01:00
Pierre-Louis Mercereau
7d8c843c74 ci: deactivate turbo cache 2022-03-10 11:41:34 +01:00
Pierre-Louis Mercereau
da1c2d6914 ci: add src to files 2022-03-10 11:38:58 +01:00
Pierre-Louis Mercereau
3a949301f9 ci: remove scope 2022-03-10 11:34:43 +01:00
Pierre-Louis Mercereau
585eebab49 ci: updated packages 2022-03-10 11:30:05 +01:00
Pierre-Louis Mercereau
45c3e4686e ci: debug 2022-03-10 11:26:04 +01:00
Pierre-Louis Mercereau
52f2e67952 ci: install dependencies 2022-03-10 11:22:24 +01:00
Pierre-Louis Mercereau
929774aa5b ci: matrix 2022-03-10 11:21:04 +01:00
Pierre-Louis Mercereau
e711e338e7 ci: clean ci 2022-03-10 11:18:56 +01:00
Pierre-Louis Mercereau
d2aae774a0 ci: wait-for at the end 2022-03-10 11:10:33 +01:00
Pierre-Louis Mercereau
322e8a1b07 ci: recreate pnpm lock 2022-03-10 11:07:24 +01:00
Pierre-Louis Mercereau
d154f8d71b ci: checkout twice 2022-03-10 11:00:53 +01:00
Pierre-Louis Mercereau
0931afd84c ci: nhost cli at the top 2022-03-10 10:48:17 +01:00
Pierre-Louis Mercereau
837548cfd5 ci: wrap wait-on in an action 2022-03-10 10:43:40 +01:00
Pierre-Louis Mercereau
a6cabbca79 ci: deactivate wait-on 2022-03-10 10:37:55 +01:00
Pierre-Louis Mercereau
82f19fe717 ci: internal wait-on script 2022-03-10 10:35:19 +01:00
Pierre-Louis Mercereau
82be281153 ci: use npx 2022-03-10 10:28:31 +01:00
Pierre-Louis Mercereau
0112ca775f ci: start nhost cli 2022-03-10 10:22:34 +01:00
Pierre-Louis Mercereau
b30b812b93 ci: install nhost cli 2022-03-10 10:20:52 +01:00
Pierre-Louis Mercereau
bace64c306 ci: without nhost 2022-03-10 10:19:40 +01:00
Pierre-Louis Mercereau
be49b641e3 ci: deactivate all cache 2022-03-10 10:16:56 +01:00
Pierre-Louis Mercereau
5ac8c2f516 ci: deactivate turborepo cache 2022-03-10 10:12:38 +01:00
Pierre-Louis Mercereau
168ae1d82b ci: reactivate all ci steps 2022-03-10 10:08:46 +01:00
Pierre-Louis Mercereau
b4a2e28fc3 ci: manually install node packages 2022-03-10 10:05:31 +01:00
Pierre-Louis Mercereau
ca3ae21286 ci: try explicit pnpm install params 2022-03-10 10:01:54 +01:00
Pierre-Louis Mercereau
9f30c1af09 ci: debug 2022-03-10 09:51:16 +01:00
Pierre-Louis Mercereau
e1f9f64910 ci: deactivate all cache 2022-03-10 09:48:36 +01:00
Pierre-Louis Mercereau
2634dd8335 ci: deactivate turborepo cache 2022-03-10 09:46:30 +01:00
Pierre-Louis Mercereau
42b4c78d4c ci: correct gh action 2022-03-10 09:44:01 +01:00
Pierre-Louis Mercereau
54174c1b0f ci: change gh action 2022-03-10 09:41:06 +01:00
Johan Eliasson
9fad359ae9 docs: Added docs for permission variables (#263)
* added docs for permissions

* update

* wording update

* typos
2022-03-09 14:15:10 +01:00
Johan Eliasson
1cbf460223 added Nhost diagram (#265) 2022-03-09 13:37:06 +01:00
Pilou
8a3aa007b8 Update README.md (#258) 2022-03-08 21:55:28 +01:00
github-actions[bot]
21b02a39e4 chore: update versions (#254)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-05 17:52:43 +01:00
Pilou
0d8afde2c3 improve examples, fix interdependencies, move examples away from the monorepo (#253)
* fix: improve examples, fix interdependencies, move examples away from the monorepo

* docs: flag the nextjs example as WIP

* docs: describe changesets
2022-03-05 17:43:49 +01:00
Pierre-Louis Mercereau
f366158d02 ci: improve turborepo caching 2022-03-05 16:50:21 +01:00
Pierre-Louis Mercereau
2c8aac2123 ci: simplify cache hash 2022-03-05 16:43:45 +01:00
Pierre-Louis Mercereau
2d9f6fbcfc ci: simplify turborepo cache key 2022-03-05 16:38:50 +01:00
Pierre-Louis Mercereau
31c845823d ci: correct gh action 2022-03-05 16:29:31 +01:00
Johan Eliasson
f949da055e Docs for social sign-in providers (#232)
* added Google

* added base for facebook, github, linkedin

* use sign-in instead of login

* order

* added docs for facebook, github and linkedin

* added spotify docs

* added Microsoft

* use Microsoft instead of Windows

* remove microsoft for now

* links + info about client URL

* wording

Co-authored-by: Guido Curcio <guidomaurocurcio@gmail.com>
2022-03-05 11:47:44 +01:00
Pierre-Louis Mercereau
0cd1654f88 docs: add readme and remove file that's not ready 2022-03-04 19:16:52 +01:00
Pilou
a71ae28192 docs: improve NextJS example (#252)
add basic input fields to the main page, and create a basic readme
2022-03-04 19:13:48 +01:00
Johan Eliasson
bd56c3522b Update README.md 2022-03-04 12:53:05 +01:00
Pierre-Louis Mercereau
a00152b8b6 chore: clean changelogs 2022-03-04 10:18:46 +01:00
Pierre-Louis Mercereau
7f26055ea3 build: correct public access to npm 2022-03-04 10:14:27 +01:00
Pierre-Louis Mercereau
4235eb812e Merge branch 'main' into hasura-auth-documentation 2022-03-04 09:59:48 +01:00
github-actions[bot]
e11099d452 chore: update versions (#245)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-04 09:57:45 +01:00
Pierre-Louis Mercereau
ed145234b2 Merge branch 'main' into hasura-auth-documentation 2022-03-04 09:52:42 +01:00
Pierre-Louis Mercereau
7c2597ddc7 chore: merge main 2022-03-04 09:52:11 +01:00
Pilou
4111b8cc7e fix: correct way to access hooks in nextjs, and remove an error in the documentation (#248)
* fix: correct way to access hooks in nextjs, and remove an error in the documentation

* chore: add npm version to example
2022-03-04 09:51:42 +01:00
Pilou
207ae38e44 Next.js and React rewrite (#214) 2022-03-04 09:26:09 +01:00
Johan Eliasson
4e680e130d Readme update (#246)
* add new version of readme

* update community url

* change nuxt logo capitalization

* update links for svelte and vue

* Update README.md

* Padding in files

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* update

* update

* work updates

* update

* wording updates

* upadte

Co-authored-by: Vadim Smirnov <smirnou.vadzim@gmail.com>
Co-authored-by: Jerry Jäppinen <eiskis@gmail.com>
2022-03-04 08:56:50 +01:00
Pierre-Louis Mercereau
2b1f8182f2 docs: add hasura auth schema 2022-03-03 11:09:15 +01:00
Pilou
d058cd9500 docs: add custom-email page (#242)
* docs: add custom-email page
2022-03-03 10:39:15 +01:00
Pilou
35f0ee7177 refactor(hasura-storage-js): rename storage.getUrl to storage.getPublicUrl (#244)
fix #178
2022-03-03 09:43:03 +01:00
Guido Curcio
e5456b49cb Remove border images and alt props. (#243) 2022-03-03 07:32:28 +01:00
Pierre-Louis Mercereau
ded9e7637a chore: fix lockfile 2022-02-24 22:31:07 +01:00
Pilou
c42fb85bae Merge branch 'main' into hasura-auth-documentation 2022-02-24 22:26:44 +01:00
Pierre-Louis Mercereau
33edc4291b docs(hasura-auth): structure documentation 2022-02-24 22:25:17 +01:00
Pierre-Louis Mercereau
df89d804c5 docs(hasura-auth): complete openapi documentation 2022-02-24 21:55:08 +01:00
Pierre-Louis Mercereau
89da44d715 docs: update hasura-auth swagger 2022-02-24 17:32:01 +01:00
Pierre-Louis Mercereau
789faad645 docs: add hasura-auth swagger documentation 2022-02-24 15:59:20 +01:00
Pierre-Louis Mercereau
8c7267cbee chore: merge main 2022-02-24 14:21:27 +01:00
Pilou
96c12ffff1 Correct typo 2022-02-19 13:01:15 +01:00
Pierre-Louis Mercereau
783729a6f6 docs(hasura-auth): move docs to the right directory and adjust the menu 2022-02-10 23:09:30 +01:00
Pierre-Louis Mercereau
60d4dbabdf Merge branch 'main' into hasura-auth-documentation 2022-02-10 22:47:07 +01:00
Pierre-Louis Mercereau
a77ddcdbc2 docs: document hasura-auth v0.2 features 2022-02-03 12:11:16 +01:00
Pierre-Louis Mercereau
f4c8a776a4 docs(wip): basic installation information 2022-02-01 10:37:11 +01:00
Pierre-Louis Mercereau
efbaf08483 docs(wip): add hasura-auth documentation 2022-02-01 10:02:38 +01:00
1825 changed files with 91834 additions and 136554 deletions

View File

@@ -1,50 +0,0 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"ignorePatterns": ["**/dist", "**/build", "**/.next"],
"extends": ["react-app", "plugin:react/recommended", "plugin:react-hooks/recommended"],
"parserOptions": {
// "project": "./tsconfig.json"
"project": ["packages/*/tsconfig.json", "examples/*/tsconfig.json"]
},
"plugins": ["react", "@typescript-eslint", "react-hooks", "simple-import-sort"],
"rules": {
"no-use-before-define": "off",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
// Node.js builtins. You could also generate this regex if you use a `.js` config.
// For example: `^(${require("module").builtinModules.join("|")})(/|$)`
[
"^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)"
],
// Packages
["^\\w"],
// Internal packages.
["^(@|config/)(/*|$)"],
// Side effect imports.
["^\\u0000"],
// Parent imports. Put `..` last.
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
// Other relative imports. Put same-folder imports and `.` last.
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
// Style imports.
["^.+\\.s?css$"]
]
}
],
"import/no-anonymous-default-export": [
"error",
{
"allowArrowFunction": true,
"allowAnonymousFunction": true
}
]
}
}

View File

@@ -1,30 +0,0 @@
const esbuild = require('esbuild')
// Automatically exclude all node_modules from the bundled version
const { nodeExternalsPlugin } = require('esbuild-node-externals')
esbuild
.build({
entryPoints: ['./src/index.ts'],
outfile: 'dist/index.cjs.js',
bundle: true,
minify: true,
platform: 'node',
format: 'cjs',
sourcemap: true,
target: 'node14',
plugins: [nodeExternalsPlugin()]
})
.catch(() => process.exit(1))
esbuild
.build({
entryPoints: ['./src/index.ts'],
outfile: 'dist/index.es.js',
bundle: true,
minify: true,
platform: 'browser',
format: 'esm',
sourcemap: true,
target: 'esnext'
})
.catch(() => process.exit(1))

View File

@@ -1,7 +0,0 @@
const base = require('./jest.config.base.js')
module.exports = {
...base,
projects: ['<rootDir>/packages/*/jest.config.js'],
coverageDirectory: '<rootDir>/coverage/'
}

View File

@@ -1,57 +0,0 @@
import fs from 'fs'
import path from 'path'
import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'
import tsconfigPaths from 'vite-tsconfig-paths'
import react from '@vitejs/plugin-react'
const PWD = process.env.PWD
const pkg = require(path.join(PWD, 'package.json'))
const tsEntry = path.resolve(PWD, 'src/index.ts')
const entry = fs.existsSync(tsEntry) ? tsEntry : tsEntry.replace('.ts', '.tsx')
/**
* @type {import('vite').UserConfig}
*/
export default defineConfig({
plugins: [
react(),
tsconfigPaths(),
dts({
exclude: ['**/*.spec.ts', '**/*.test.ts', '**/tests/**'],
afterBuild: () => {
const types = fs.readdirSync(path.join(PWD, 'dist/src'))
types.forEach((file) => {
fs.renameSync(path.join(PWD, 'dist/src', file), path.join(PWD, 'dist', file))
})
fs.rmdirSync(path.join(PWD, 'dist/src'))
}
})
],
build: {
lib: {
entry,
name: pkg.name,
fileName: 'index'
},
rollupOptions: {
external: ['react'],
output: {
globals: {
react: 'react'
}
}
// external: ['react', 'vue'],
// output: {
// globals: {
// react: 'react',
// vue: 'vue' // ? check
// }
// }
}
}
})

1
.github/CODEOWNERS vendored
View File

@@ -2,6 +2,7 @@
# https://help.github.com/en/articles/about-code-owners
/packages @plmercereau
/packages/docgen @szilarddoro
/.github/workflows @plmercereau
/docs/ @guicurcio
/examples/ @plmercereau @guicurcio @FuzzyReason

View File

@@ -0,0 +1,17 @@
name: Install Node and package dependencies
description: 'Install Node dependencies with pnpm'
runs:
using: 'composite'
steps:
- uses: pnpm/action-setup@v2.2.1
with:
version: 6.32.14
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'
# * Install package dependencies. As cache is enabled, it will cache/restore downloaded files
- shell: bash
name: Install packages
run: pnpm install --frozen-lockfile

View File

@@ -5,10 +5,10 @@ on:
branches: [main]
paths-ignore:
- 'docs/**'
- 'templates/**'
- 'examples/**'
- 'assets/**'
- '**.md'
- '!.changeset/**'
- 'LICENSE'
jobs:
@@ -16,29 +16,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache pnpm modules
uses: actions/cache@v2
- name: Checkout repository
uses: actions/checkout@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
fetch-depth: 0
- uses: pnpm/action-setup@v2.1.0
with:
version: 6.30.1
run_install: true
version: 6.32.3
# run_install: true
- name: Use Node.js 17
uses: actions/setup-node@v2
with:
node-version: '17.8.0'
cache: 'pnpm'
- name: Pick the right npm version
# * See: https://github.com/pnpm/pnpm/issues/4348
run: npm install --global npm@8.4
- name: Install dependencies
run: pnpm install
- name: Create PR or Publish release
id: changesets
uses: changesets/action@v1
with:
version: pnpm ci:version
version: pnpm run ci:version
commit: 'chore: update versions'
title: 'chore: update versions'
publish: pnpm release
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

15
.github/workflows/contributors.yaml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Add contributors
on:
push:
branches:
- main
jobs:
contrib-readme-job:
runs-on: ubuntu-latest
name: A job to automate contrib in readme
steps:
- name: Contribute List
uses: akhilmhdh/contributors-readme-action@v2.3.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,71 +1,115 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
# Poached from https://github.com/hayes/pothos/tree/main/.github/workflows, thanks to the original author
name: Node.js CI
name: Tests
on:
push:
branches: [main]
paths-ignore:
- 'docs/**'
- 'templates/**'
- 'examples/**'
- 'assets/**'
- '**.md'
- 'LICENSE'
pull_request:
branches: [main]
types: [opened, synchronize]
paths-ignore:
- 'docs/**'
- 'templates/**'
- 'examples/**'
- 'assets/**'
- '**.md'
- 'LICENSE'
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: nhost
jobs:
build:
name: Build @nhost packages
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.30.1
run_install: true
- name: Cache turbo
uses: actions/cache@v2
with:
path: ./node_modules/.cache
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}
- name: Install nhost CLI
# * Install Node and dependencies. Package downloads will be cached for the next jobs.
- name: Install Node and dependencies
uses: ./.github/actions/install-dependencies
# * Build all Nhost packages as they are all supposed to be tested.
# * They will be reused through the Turborepo cache
- name: Build packages
run: pnpm build
# * List packagesthat has an `e2e` script, except the root, and return an array of their name and path
- name: List examples with an e2e script
id: set-matrix
run: |
PACKAGES=$(pnpm recursive list --depth -1 --parseable --filter=!nhost-root \
| xargs -I@ jq "if (.scripts.e2e | length) != 0 then {name: .name, path: \"@\"} else null end" @/package.json \
| awk "!/null/" \
| jq -c --slurp)
echo "::set-output name=matrix::$PACKAGES"
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
e2e:
name: 'e2e: ${{ matrix.package.name }}'
needs: build
strategy:
# * Don't cancel other matrices when one fails
fail-fast: false
matrix:
package: ${{ fromJson(needs.build.outputs.matrix) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# * Install Nhost CLI if a `nhost/config.yaml` file is found
- name: Install Nhost CLI
if: hashFiles(format('{0}/nhost/config.yaml', matrix.package.path)) != ''
run: curl -L https://raw.githubusercontent.com/nhost/cli/main/get.sh | bash
- name: Start Nhost Backend
# * Install Node and dependencies. Package dependencies won't be downloaded again as they have been cached by the `build` job.
- name: Install Node and dependencies
uses: ./.github/actions/install-dependencies
# * Run the `ci` script of the current package of the matrix. Dependencies build is cached by Turborepo
- name: Run e2e test
run: pnpm run e2e -- --filter="${{ matrix.package.name }}"
- id: file-name
if: ${{ failure() }}
name: Tranform package name into a valid file name
run: |
cd examples/testing-project
nhost dev -d --no-browser &
- name: Wait for Nhost Backend to start
PACKAGE_FILE_NAME=$(echo "${{ matrix.package.name }}" | sed 's/@//g; s/\//-/g')
echo "::set-output name=fileName::$PACKAGE_FILE_NAME"
# * Run this step only if the previous step failed, and some Cypress screenshots/videos exist
- name: Upload Cypress videos and screenshots
if: ${{ failure() && hashFiles(format('{0}/cypress/screenshots/**', matrix.package.path), format('{0}/cypress/videos/**', matrix.package.path)) != ''}}
uses: actions/upload-artifact@v3
with:
name: cypress-${{ steps.file-name.outputs.fileName }}
path: |
${{format('{0}/cypress/screenshots/**', matrix.package.path)}}
${{format('{0}/cypress/videos/**', matrix.package.path)}}
unit:
name: Unit tests
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# * Install Node and dependencies. Package dependencies won't be downloaded again as they have been cached by the `build` job.
- name: Install Node and dependencies
uses: ./.github/actions/install-dependencies
# * Run every `test` script in the workspace . Dependencies build is cached by Turborepo
- name: Run unit tests
run: pnpm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: '**/coverage/coverage-final.json'
name: codecov-umbrella
- name: Create summary
run: |
pnpm dlx wait-on http://localhost:1337/v1/auth/healthz -i 500 -t 120000
- run: pnpm run ci
echo '### Code coverage' >> $GITHUB_STEP_SUMMARY
echo 'Visit [codecov](https://app.codecov.io/gh/nhost/nhost/) to see the code coverage reports' >> $GITHUB_STEP_SUMMARY
lint:
name: Lint
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# * Install Node and dependencies. Package dependencies won't be downloaded again as they have been cached by the `build` job.
- name: Install Node and dependencies
uses: ./.github/actions/install-dependencies
# * Run every `lint` script in the workspace . Dependencies build is cached by Turborepo
- name: Lint
run: pnpm run lint

28
.gitignore vendored
View File

@@ -15,11 +15,11 @@ logs/
/.vscode/
.eslintcache
.yarnclean
.husky
# Directories
coverage/
dist/
umd/
lib/
node_modules/
tmp/
@@ -33,16 +33,15 @@ tmp/
*.map
todo.md
# Generated configs
.eslintignore
.eslintrc
.prettierignore
prettier.config.js
vite.*.js
jest.*.js
esbuild.*.js
# Config files that are not part of the repository root anymore. Should be removed in the future.
/.eslintignore
/.eslintrc*
/vite.*.js
/jest.*.js
/*tsconfig*.json
/esbuild.*.js
!.config/**
!config/**
*.tsbuildinfo
@@ -50,4 +49,11 @@ esbuild.*.js
.netlify
.monorepo-example
.next
.next
# TypeDoc output
.docgen
# Nhost CLI data
.nhost

View File

@@ -11,6 +11,11 @@ module.exports = {
tabWidth: 2,
trailingComma: 'none',
useTabs: false,
// TODO: add import sort configuration to match ESLint rules
// plugins: ['./node_modules/@trivago/prettier-plugin-sort-imports'],
// importOrderSeparation: true,
// importOrderSortSpecifiers: true
plugins: [],
overrides: [
{
files: ['*.json', '*.yaml'],

View File

@@ -24,6 +24,8 @@ If you find an Issue that addresses the problem you're having, please add your r
### Pull Requests
Please have a look at our [developers guide](https://github.com/nhost/nhost/blob/main/DEVELOPERS.md) to start coding!
PRs to our libraries are always welcome and can be a quick way to get your fix or improvement slated for the next release. In general, PRs should:
- Only fix/add the functionality in question **OR** address wide-spread whitespace/style issues, not both.

103
DEVELOPERS.md Normal file
View File

@@ -0,0 +1,103 @@
# Developer guide
## Requirements
- We use [pnpm](https://pnpm.io/) as a package manager to speed up development and builds, and as a basis for our monorepo. You need to make sure it's installed on your machine. There are [several ways to install it](https://pnpm.io/installation), but the easiest way is with `npm`:
```sh
$ npm install -g pnpm
```
- Our tests and examples use the Nhost CLI, to run the backend services locally. You can follow the installation instructions in [our documentation](https://docs.nhost.io/get-started/cli-workflow/install-cli).
## Get started
### Installation
First, clone this repository:
```sh
git clone https://github.com/nhost/nhost
```
Then, install the dependencies with `pnpm`:
```sh
$ cd nhost
$ pnpm install
```
### Development
Although package references are correctly updated on the fly for TypeScript, example projects won't
see the changes because they are depending on the build output. To fix this, you can run packages
in development mode.
Running packages in development mode is as simple as:
```sh
$ pnpm dev
```
Our packages are linked together using [PNPM's workspace](https://pnpm.io/workspaces) feature. Vite automatically detects changes in the dependencies and rebuilds everything, so that the changes are immediately reflected in the other packages.
### Use examples
Examples are a great way to test your changes in practice. Make sure you've `pnpm dev` running in your terminal and then run an example.
Let's follow the instructions to run [react-apollo example](https://github.com/nhost/nhost/blob/main/examples/react-apollo/README.md).
## Run the documentation website locally
The easier way to contribute to our documentation is to go to the `docs` folder and follow the [instructions to start local development](https://github.com/nhost/nhost/blob/main/docs/README.md):
```sh
$ cd docs
# not necessary if you've already done this step somewhere in the repository
$ pnpm install
$ pnpm start
```
## Run test suites
### Unit tests
You can run the unit tests with the following command from the repository root:
```sh
$ pnpm test
```
### End-to-end tests
Each package that defines end-to-end tests embeds their own Nhost configuration, that will be automatically when running the tests. As a result, you must make sure you are not running the Nhost CLI before running the tests.
You can run the e2e tests with the following command from the repository root:
```sh
$ pnpm e2e
```
## Changesets
If you've made changes to the packages, you must describe those changes so that they can be reflected in the next release.
We use [changesets](https://github.com/changesets/changesets) to support our versioning and release workflows. When you submit a pull request, a bot checks if some changesets are present, and if not, it directs you to add them.
The most comprehensive way to add a changeset is to run the following command in the repository root:
```sh
$ pnpm changeset
```
This will create a file in the `.changeset` directory. You can edit it to give more details about the change you just made.
You can take a look at the changeset documentation: [How to add a changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md).
## Committing changes
You'll notice that `git commit` takes a few seconds to run. We set a commit hook that scans the changes in the code, automatically generates documentation from the inline [TSDoc](https://tsdoc.org/) annotations, and adds these generated documentation files to the commit. They automatically update the [reference documentation](https://docs.nhost.io/reference).
<!-- ## Good practices
- lint
- prettier
- documentation -->

504
README.md
View File

@@ -1,137 +1,473 @@
![Nhost](https://i.imgur.com/ZenoUlM.png)
<div align="center">
<p align="center">
<img width="237" src="https://raw.githubusercontent.com/nhost/nhost/main/assets/logo.png"/>
</p>
# Nhost
<p>
<!-- <div style="padding: 5px"><img src="https://img.shields.io/github/stars/nhost/nhost?colorB=7289da" /></div> -->
<img src="https://img.shields.io/discord/552499021260914688?label=Discord&logo=Discord&colorB=7289da" />
<img src="https://img.shields.io/github/license/Naereen/StrapDown.js.svg" />
<img src="https://img.shields.io/docker/pulls/nhost/hasura-backend-plus" />
<img src="https://img.shields.io/twitter/follow/nhostio?style=social" />
<img src="https://badgen.net/badge/Open%20Source%3F/Yes%21/blue?icon=github" />
<img src="https://img.shields.io/github/contributors/nhost/nhost" />
</p>
<a href="https://docs.nhost.io/#quickstart">Quickstart</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="http://nhost.io/">Website</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://docs.nhost.io">Docs</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://nhost.io/blog">Blog</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://twitter.com/nhost">Twitter</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://nhost.io/discord">Discord</a>
<br />
<hr />
</div>
<p align="center">
<img width="550" src="https://reporoster.com/stars/nhost/nhost" />
</p>
<p align="center">
<img width="550" src="https://raw.githubusercontent.com/nhost/nhost/master/assets/follow-us-banner.png"/>
</p>
**Nhost is an open source Firebase alternative with GraphQL,** built with the following things in mind:
**Nhost is a serverless backend for web and mobile apps.** Nhost consists of open
source software pre-configured to make it fast to get started and easy to scale.
- Open Source
- GraphQL
- SQL
- Great Developer Experience
This is what you get with Nhost:
Nhost consists of open source software:
- Database: [Postgres](https://www.postgresql.org/)
- GraphQL API: [Hasura](https://hasura.io/)
- Database: [PostgreSQL](https://www.postgresql.org/)
- Instant GraphQL API: [Hasura](https://hasura.io/)
- Authentication: [Hasura Auth](https://github.com/nhost/hasura-auth/)
- Storage: [Hasura Storage](https://github.com/nhost/hasura-backend-plus/)
- Functions: [JS](https://developer.mozilla.org/en-US/docs/Web/JavaScript)/[TS](https://www.typescriptlang.org/) and [Go](https://golang.org/) runtimes
- Storage: [Hasura Storage](https://github.com/nhost/hasura-storage)
- Serverless Functions: Node.js (JavaScript and TypeScript)
- [Nhost CLI](https://docs.nhost.io/reference/cli) for local development
We also provide a UI to manage your database, users, and files. And we have
JS/TS and Flutter SDKs to make it easy to work with.
## Architecture of Nhost
![Nhost](assets/hero-image.png)
<div align="center">
<br />
<img src="assets/nhost-diagram.png"/>
<br />
<br />
</div>
<hr />
Visit [https://docs.nhost.io](http://docs.nhost.io) for the complete documentation.
# Get Started
![Nhost CLI](assets/cli-started.png)
## Option 1: Nhost Hosted Platform
## Managed at Nhost.io
1. Sign in to [Nhost](https://app.nhost.io).
2. Create Nhost app.
3. Done.
[Sign up](https://app.nhost.io) and create your first app [here](https://app.nhost.io/new).
## Option 2: Self-hosting
![Nhost](assets/get-started.png)
Since Nhost is 100% open source, you can self-host the whole Nhost stack. Check out the example [docker-compose file](https://github.com/nhost/nhost/tree/main/examples/docker-compose) to self-host Nhost.
Then connect to your new Nhost app using the [JavaScript/TypeScript SDK](https://docs.nhost.io/get-started/quick-start/javascript-client) or [Flutter SDK](https://github.com/nhost/nhost-dart).
## Sign In and Make a Graphql Request
```bash
$ npm install nhost-js-sdk
# or
$ flutter i nhost-dart-sdk
```
Install the `@nhost/nhost-js` package and start build your app:
In your project, initialize the SDK with the endpoint of your new Nhost App:
```js
```jsx
import { NhostClient } from '@nhost/nhost-js'
const nhost = new NhostClient({
baseURL: 'https://project-id.nhost.app'
subdomain: '<your-subdomain>',
region: '<your-region>'
})
export { nhost }
await nhost.auth.signIn({ email: 'elon@musk.com', password: 'spaceX' })
await nhost.graphql.request(`{
users {
id
displayName
email
}
}`)
```
Now you're ready to develop your app.
## Frontend Agnostic
# Develop Your App
Nhost is frontend agnostic, which means Nhost works with all frontend frameworks.
Now you're ready to use these fundamental building blocks to build a unique experience:
- [Quick Start](https://docs.nhost.io/get-started/quick-start): Create an app with React
- [Authentication](https://docs.nhost.io/platform/authentication) with email/password, magic link or social logins (Google, GitHub, Facebook, etc).
- [Real-time database](https://docs.nhost.io/platform/database) with GraphQL and Postgres to keep your data in sync.
- [File Storage](https://docs.nhost.io/platform/storage) with image transformation.
- [Payment](https://github.com/nhost/nhost) powered by Stripe _(coming soon)_.
[Full Documentation](https://docs.nhost.io)
### Examples and tutorials
- [Todo App](https://github.com/nhost/nhost/tree/main/templates/web/react-apollo) with React
- [Full App Template](https://github.com/nhost/nhost/tree/main/templates/web/nextjs-apollo) with Next.js
- [Native Mobile App](https://github.com/nhost/nhost-dart/tree/main/packages/nhost_flutter_graphql/example) with Dart and Flutter
- [Nuxt](https://github.com/nhost/nhost/tree/main/examples/nuxt-apollo) with Apollo.
- [CRM Example App](https://github.com/nhost/nhost/tree/main/examples/react-apollo-crm)
- [Multi-tenant App](https://github.com/nhost/nhost/tree/main/examples/multi-tenant-one-to-many)
# Backend development
To further develop your backend, deep dive into these topics:
- [Serverless Functions](https://docs.nhost.io/platform/serverless-functions)
- [User Permissions](https://docs.nhost.io/platform/database/permissions)
- [Database events and webhooks](https://docs.nhost.io/platform/serverless-functions/event-triggers)
- [Local development with the Nhost CLI](https://docs.nhost.io/platform/nhost/local-development)
[Full Documentation](https://docs.nhost.io)
<div align="center">
<a href="https://docs.nhost.io/platform/quickstarts/nextjs"><img src="assets/nextjs.svg"/></a>
<a href="https://docs.nhost.io/reference/javascript"><img src="assets/nuxtjs.svg"/></a>
<a href="https://docs.nhost.io/platform/quickstarts/react"><img src="assets/react.svg"/></a>
<a href="https://docs.nhost.io/reference/javascript"><img src="assets/react-native.svg"/></a>
<a href="https://docs.nhost.io/reference/javascript"><img src="assets/svelte.svg"/></a>
<a href="https://docs.nhost.io/platform/quickstarts/vue"><img src="assets/vuejs.svg"/></a>
</div>
# Resources
Nhost libraries and tools
- [JavaScript/TypeScript SDK](https://docs.nhost.io/reference/sdk)
- [JavaScript/TypeScript SDK](https://docs.nhost.io/reference/javascript)
- [Dart and Flutter SDK](https://github.com/nhost/nhost-dart)
- [Nhost CLI](https://docs.nhost.io/reference/cli)
- [Nhost React Auth](https://docs.nhost.io/reference/supporting-libraries/react-auth)
- [Nhost React Apollo](https://docs.nhost.io/reference/supporting-libraries/react-apollo)
- [Nhost React](https://docs.nhost.io/reference/react)
- [Nhost Next.js](https://docs.nhost.io/reference/nextjs)
- [Nhost Vue](https://docs.nhost.io/reference/vue)
## Community ❤️
First and foremost: **Star and watch this repository** to stay up-to-date.
Also, follow Nhost on [GitHub Discussions](https://github.com/nhost/nhost/discussions), our [Blog](https://nhost.io/blog), and on [Twitter](https://twitter.com/nhostio). You can chat with the team and other members on [Discord](https://discord.com/invite/9V7Qb2U), and follow our tutorials and other video material at [YouTube](https://www.youtube.com/channel/UCJ7irtvV9Y0EQMxpabb6ntg?view_as=subscriber).
Also, follow Nhost on [GitHub Discussions](https://github.com/nhost/nhost/discussions), our [Blog](https://nhost.io/blog), and on [Twitter](https://twitter.com/nhostio). You can chat with the team and other members on [Discord](https://discord.com/invite/9V7Qb2U) and follow our tutorials and other video material at [YouTube](https://www.youtube.com/channel/UCJ7irtvV9Y0EQMxpabb6ntg?view_as=subscriber).
## Nhost is Open Source
### Nhost is Open Source
This repository, and most of our other open source projects, are licensed under the MIT license.
<a href="https://runacap.com/ross-index/q1-2022/" target="_blank" rel="noopener">
<img style="width: 260px; height: 56px" src="https://runacap.com/wp-content/uploads/2022/06/ROSS_badge_black_Q1_2022.svg" alt="ROSS Index - Fastest Growing Open-Source Startups in Q1 2022 | Runa Capital" width="260" height="56" />
</a>
### How to contribute
Here are some ways of contributing to making Nhost better:
- **[Try out Nhost](https://docs.nhost.io/get-started/quick-start)**, and think of ways of how you can make the service better.
- **[Try out Nhost](https://docs.nhost.io/get-started/quick-start)**, and think of ways to make the service better. Let us know here on GitHub.
- Join our [Discord](https://discord.com/invite/9V7Qb2U) and connect with other members to share and learn from.
- Send a pull request to any of our [open source repositories](https://github.com/nhost) on Github. Check our [contribution guide](https://github.com/nhost/nhost/blob/main/CONTRIBUTING.md) for more details about how to contribute. We're looking forward to your contribution!
- Send a pull request to any of our [open source repositories](https://github.com/nhost) on Github. Check our [contribution guide](https://github.com/nhost/nhost/blob/main/CONTRIBUTING.md) and our [developers guide](https://github.com/nhost/nhost/blob/main/DEVELOPERS.md) for more details about how to contribute. We're looking forward to your contribution!
## Security
### Contributors
If you discover a security vulnerability within Nhost, please send an e-mail to [security@nhost.io](mailto:security@nhost.io). All security vulnerabilities will be promptly addressed.
<!-- readme: contributors -start -->
<table>
<tr>
<td align="center">
<a href="https://github.com/plmercereau">
<img src="https://avatars.githubusercontent.com/u/24897252?v=4" width="100;" alt="plmercereau"/>
<br />
<sub><b>Pilou</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/elitan">
<img src="https://avatars.githubusercontent.com/u/331818?v=4" width="100;" alt="elitan"/>
<br />
<sub><b>Johan Eliasson</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/nunopato">
<img src="https://avatars.githubusercontent.com/u/1523504?v=4" width="100;" alt="nunopato"/>
<br />
<sub><b>Nuno Pato</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/gdangelo">
<img src="https://avatars.githubusercontent.com/u/4352286?v=4" width="100;" alt="gdangelo"/>
<br />
<sub><b>Grégory D'Angelo</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/szilarddoro">
<img src="https://avatars.githubusercontent.com/u/310881?v=4" width="100;" alt="szilarddoro"/>
<br />
<sub><b>Szilárd Dóró</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/guicurcio">
<img src="https://avatars.githubusercontent.com/u/20285232?v=4" width="100;" alt="guicurcio"/>
<br />
<sub><b>Guido Curcio</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/subatuba21">
<img src="https://avatars.githubusercontent.com/u/34824571?v=4" width="100;" alt="subatuba21"/>
<br />
<sub><b>Subha Das</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/sebagudelo">
<img src="https://avatars.githubusercontent.com/u/43288271?v=4" width="100;" alt="sebagudelo"/>
<br />
<sub><b>Sebagudelo</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/mrinalwahal">
<img src="https://avatars.githubusercontent.com/u/9859731?v=4" width="100;" alt="mrinalwahal"/>
<br />
<sub><b>Mrinal Wahal</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/timpratim">
<img src="https://avatars.githubusercontent.com/u/32492961?v=4" width="100;" alt="timpratim"/>
<br />
<sub><b>Pratim</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/GavanWilhite">
<img src="https://avatars.githubusercontent.com/u/2085119?v=4" width="100;" alt="GavanWilhite"/>
<br />
<sub><b>Gavan Wilhite</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/FuzzyReason">
<img src="https://avatars.githubusercontent.com/u/62517920?v=4" width="100;" alt="FuzzyReason"/>
<br />
<sub><b>Vadim Smirnov</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/macmac49">
<img src="https://avatars.githubusercontent.com/u/831190?v=4" width="100;" alt="macmac49"/>
<br />
<sub><b>Macmac49</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/subhendukundu">
<img src="https://avatars.githubusercontent.com/u/20059141?v=4" width="100;" alt="subhendukundu"/>
<br />
<sub><b>Subhendu Kundu</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/heygambo">
<img src="https://avatars.githubusercontent.com/u/449438?v=4" width="100;" alt="heygambo"/>
<br />
<sub><b>Christian Gambardella</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/chrtze">
<img src="https://avatars.githubusercontent.com/u/3797215?v=4" width="100;" alt="chrtze"/>
<br />
<sub><b>Christopher Möller</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/dbarrosop">
<img src="https://avatars.githubusercontent.com/u/6246622?v=4" width="100;" alt="dbarrosop"/>
<br />
<sub><b>David Barroso</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/hajek-raven">
<img src="https://avatars.githubusercontent.com/u/7288737?v=4" width="100;" alt="hajek-raven"/>
<br />
<sub><b>Filip Hájek</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/MelodicCrypter">
<img src="https://avatars.githubusercontent.com/u/18341500?v=4" width="100;" alt="MelodicCrypter"/>
<br />
<sub><b>Hugh Caluscusin</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/jerryjappinen">
<img src="https://avatars.githubusercontent.com/u/1101002?v=4" width="100;" alt="jerryjappinen"/>
<br />
<sub><b>Jerry Jäppinen</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/mdp18">
<img src="https://avatars.githubusercontent.com/u/11698527?v=4" width="100;" alt="mdp18"/>
<br />
<sub><b>Max</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/mustafa-hanif">
<img src="https://avatars.githubusercontent.com/u/30019262?v=4" width="100;" alt="mustafa-hanif"/>
<br />
<sub><b>Mustafa Hanif</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/nbourdin">
<img src="https://avatars.githubusercontent.com/u/5602476?v=4" width="100;" alt="nbourdin"/>
<br />
<sub><b>Nicolas Bourdin</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Savinvadim1312">
<img src="https://avatars.githubusercontent.com/u/16936043?v=4" width="100;" alt="Savinvadim1312"/>
<br />
<sub><b>Savin Vadim</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/Svarto">
<img src="https://avatars.githubusercontent.com/u/24279217?v=4" width="100;" alt="Svarto"/>
<br />
<sub><b>Svarto</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/muttenzer">
<img src="https://avatars.githubusercontent.com/u/49474412?v=4" width="100;" alt="muttenzer"/>
<br />
<sub><b>Muttenzer</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ahmic">
<img src="https://avatars.githubusercontent.com/u/13452362?v=4" width="100;" alt="ahmic"/>
<br />
<sub><b>Amir Ahmic</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/akd-io">
<img src="https://avatars.githubusercontent.com/u/30059155?v=4" width="100;" alt="akd-io"/>
<br />
<sub><b>Anders Kjær Damgaard</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Sonichigo">
<img src="https://avatars.githubusercontent.com/u/53110238?v=4" width="100;" alt="Sonichigo"/>
<br />
<sub><b>Animesh Pathak</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/rustyb">
<img src="https://avatars.githubusercontent.com/u/53086?v=4" width="100;" alt="rustyb"/>
<br />
<sub><b>Colin Broderick</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/dminkovsky">
<img src="https://avatars.githubusercontent.com/u/218725?v=4" width="100;" alt="dminkovsky"/>
<br />
<sub><b>Dmitry Minkovsky</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/dohomi">
<img src="https://avatars.githubusercontent.com/u/489221?v=4" width="100;" alt="dohomi"/>
<br />
<sub><b>Dominic Garms</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/gaurav1999">
<img src="https://avatars.githubusercontent.com/u/20752142?v=4" width="100;" alt="gaurav1999"/>
<br />
<sub><b>Gaurav Agrawal</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/alveshelio">
<img src="https://avatars.githubusercontent.com/u/8176422?v=4" width="100;" alt="alveshelio"/>
<br />
<sub><b>Helio Alves</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/nkhdo">
<img src="https://avatars.githubusercontent.com/u/26102306?v=4" width="100;" alt="nkhdo"/>
<br />
<sub><b>Hoang Do</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/eltociear">
<img src="https://avatars.githubusercontent.com/u/22633385?v=4" width="100;" alt="eltociear"/>
<br />
<sub><b>Ikko Ashimine</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/jladuval">
<img src="https://avatars.githubusercontent.com/u/1935359?v=4" width="100;" alt="jladuval"/>
<br />
<sub><b>Jacob Duval</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/kylehayes">
<img src="https://avatars.githubusercontent.com/u/509932?v=4" width="100;" alt="kylehayes"/>
<br />
<sub><b>Kyle Hayes</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/leothorp">
<img src="https://avatars.githubusercontent.com/u/12928449?v=4" width="100;" alt="leothorp"/>
<br />
<sub><b>Leo Thorp</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/LucasBois1">
<img src="https://avatars.githubusercontent.com/u/44686060?v=4" width="100;" alt="LucasBois1"/>
<br />
<sub><b>Lucas Bois</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MarcelloTheArcane">
<img src="https://avatars.githubusercontent.com/u/21159570?v=4" width="100;" alt="MarcelloTheArcane"/>
<br />
<sub><b>Max Reynolds</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/nachoaldamav">
<img src="https://avatars.githubusercontent.com/u/22749943?v=4" width="100;" alt="nachoaldamav"/>
<br />
<sub><b>Nacho Aldama</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/ghoshnirmalya">
<img src="https://avatars.githubusercontent.com/u/6391763?v=4" width="100;" alt="ghoshnirmalya"/>
<br />
<sub><b>Nirmalya Ghosh</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/quentin-decre">
<img src="https://avatars.githubusercontent.com/u/1137511?v=4" width="100;" alt="quentin-decre"/>
<br />
<sub><b>Quentin Decré</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/atapas">
<img src="https://avatars.githubusercontent.com/u/3633137?v=4" width="100;" alt="atapas"/>
<br />
<sub><b>Tapas Adhikary</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/uulwake">
<img src="https://avatars.githubusercontent.com/u/22399181?v=4" width="100;" alt="uulwake"/>
<br />
<sub><b>Ulrich Wake</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/komninoschat">
<img src="https://avatars.githubusercontent.com/u/29049104?v=4" width="100;" alt="komninoschat"/>
<br />
<sub><b>Komninos</b></sub>
</a>
</td></tr>
</table>
<!-- readme: contributors -end -->

15
assets/nextjs.svg Normal file
View File

@@ -0,0 +1,15 @@
<svg width="100" height="48" viewBox="0 0 100 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_517_1670)">
<g clip-path="url(#clip1_517_1670)">
<path d="M28.7326 12.5189H43.7066V13.7118H30.1056V22.6886H42.8954V23.8815H30.1056V33.7372H43.8625V34.9301H28.7326V12.5189V12.5189ZM45.0478 12.5189H46.639L53.6892 22.3747L60.8953 12.5189L70.6968 0L54.594 23.4106L62.8919 34.9301H61.2383L53.6892 24.4464L46.109 34.9301H44.4866L52.8469 23.4106L45.0484 12.5189H45.0478ZM63.4848 13.7118V12.5189H80.5483V13.7118H72.6874V34.9296H71.3145V13.7118H63.4853H63.4848ZM10 12.5189H11.7159L35.3748 48L25.5975 34.9301L11.4348 14.2138L11.3724 34.9301H10V12.5189V12.5189ZM80.4107 33.3771C80.1295 33.3771 79.9193 33.1594 79.9193 32.8782C79.9193 32.5965 80.1295 32.3788 80.4101 32.3788C80.694 32.3788 80.9009 32.5965 80.9009 32.8782C80.9009 33.1594 80.694 33.3771 80.4101 33.3771H80.4107ZM81.7589 32.0638H82.4937C82.504 32.4627 82.7948 32.7304 83.2216 32.7304C83.699 32.7304 83.9694 32.4428 83.9694 31.9031V28.4863H84.7171V31.9063C84.7171 32.8782 84.1564 33.4378 83.2281 33.4378C82.3572 33.4378 81.7594 32.8949 81.7594 32.0638H81.7589ZM85.695 32.0208H86.4363C86.4997 32.4793 86.947 32.7707 87.5915 32.7707C88.192 32.7707 88.6328 32.4589 88.6328 32.0305C88.6328 31.6622 88.3527 31.4407 87.7146 31.2902L87.0937 31.1397C86.2229 30.9354 85.8251 30.5129 85.8251 29.8028C85.8251 28.9416 86.526 28.3685 87.5775 28.3685C88.5559 28.3685 89.2709 28.9416 89.3139 29.7555H88.586C88.5161 29.3104 88.1291 29.0319 87.5678 29.0319C86.9765 29.0319 86.583 29.3168 86.583 29.7522C86.583 30.0974 86.8368 30.2952 87.4646 30.4425L87.9952 30.5731C88.9833 30.8043 89.3907 31.2064 89.3907 31.9332C89.3907 32.8578 88.6758 33.4378 87.5345 33.4378C86.4664 33.4378 85.7482 32.8847 85.695 32.0202V32.0208Z" fill="#758399"/>
</g>
</g>
<defs>
<clipPath id="clip0_517_1670">
<rect width="79.395" height="48" fill="white" transform="translate(10)"/>
</clipPath>
<clipPath id="clip1_517_1670">
<rect width="79.3907" height="48" fill="white" transform="translate(10)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
assets/nhost-diagram.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

19
assets/nuxtjs.svg Normal file
View File

@@ -0,0 +1,19 @@
<svg width="184" height="48" viewBox="0 0 184 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_517_1667)">
<g clip-path="url(#clip1_517_1667)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M75.1894 17.2054C75.4114 17.4369 75.5306 17.7482 75.5199 18.0688V34.6665C75.5292 35.0219 75.3962 35.3663 75.1505 35.6232C74.9048 35.8809 74.5614 36.0223 74.2055 36.0121C74.006 36.0124 73.8078 35.9809 73.6183 35.9188C73.4447 35.8653 73.2888 35.7658 73.1672 35.631L62.4144 21.631V34.8104C62.4242 35.132 62.3007 35.4434 62.0732 35.6709C61.8457 35.8985 61.5343 36.0219 61.2127 36.0121C60.8942 36.0243 60.5857 35.8998 60.3649 35.6699C60.1453 35.4387 60.0276 35.1291 60.0383 34.8104V18.1777C60.0302 17.8233 60.1713 17.4818 60.4272 17.2365C60.6666 16.9909 60.9981 16.8568 61.341 16.8671C61.5569 16.8661 61.7708 16.907 61.971 16.9877C62.1532 17.0582 62.313 17.1764 62.4338 17.3299L73.1399 31.361V18.0688C73.1301 17.7472 73.2536 17.4358 73.4811 17.2083C73.7086 16.9808 74.02 16.8573 74.3416 16.8671C74.6592 16.8554 74.9671 16.9782 75.1894 17.2054ZM97.2783 17.2054C97.5108 17.464 97.6336 17.8029 97.6205 18.1504V28.6504C97.6428 30.0076 97.3132 31.3474 96.6638 32.5393C96.0488 33.6639 95.135 34.5965 94.0233 35.2343C92.8713 35.8953 91.5635 36.2363 90.2355 36.2221C88.8955 36.2433 87.5739 35.9092 86.4049 35.2538C85.2881 34.6187 84.3699 33.6856 83.7527 32.5588C83.1034 31.3668 82.7738 30.027 82.796 28.6699V18.1699C82.7859 17.814 82.9272 17.4705 83.1849 17.2249C83.4473 16.9683 83.8019 16.8281 84.1688 16.836C84.5147 16.8362 84.8458 16.9765 85.0866 17.2249C85.3415 17.466 85.4827 17.8035 85.4755 18.1543V28.6543C85.4614 29.5508 85.6884 30.4345 86.1327 31.2132C86.9706 32.6903 88.5373 33.6036 90.2355 33.6049C91.088 33.6109 91.9273 33.3937 92.6699 32.9749C93.4191 32.5609 94.0425 31.9522 94.4744 31.2132C94.9258 30.4369 95.1571 29.5522 95.1433 28.6543V18.1543C95.1306 17.8096 95.2471 17.4726 95.4699 17.2093C95.6997 16.9522 96.0314 16.8098 96.376 16.8204C96.7182 16.8126 97.0472 16.9529 97.2783 17.2054V17.2054ZM118.329 34.0443C118.493 34.2701 118.579 34.5431 118.574 34.8221C118.588 35.1742 118.446 35.5146 118.185 35.7515C117.944 35.979 117.626 36.1057 117.294 36.1054C116.869 36.1216 116.465 35.9154 116.229 35.561L110.913 28.4638L105.717 35.5493C105.483 35.9096 105.081 36.1252 104.652 36.121C104.337 36.1279 104.035 36.004 103.815 35.7788C103.598 35.5785 103.474 35.2966 103.473 35.001C103.479 34.6717 103.596 34.354 103.804 34.0988L109.412 26.4649L103.777 18.8893C103.601 18.668 103.503 18.3943 103.5 18.1115C103.493 17.7608 103.635 17.4232 103.889 17.1821C104.13 16.9337 104.461 16.7934 104.807 16.7932C105.011 16.7943 105.212 16.8422 105.394 16.9332C105.587 17.0246 105.752 17.1655 105.873 17.3415L111.127 24.3999L116.33 17.4115C116.56 17.056 116.946 16.8319 117.368 16.8088C117.698 16.8105 118.012 16.9518 118.232 17.1977C118.471 17.4111 118.611 17.7135 118.62 18.0338C118.611 18.3147 118.516 18.5862 118.348 18.8115L112.639 26.4104L118.329 34.0443ZM138.065 17.2054C138.322 17.44 138.464 17.7752 138.454 18.1232C138.463 18.4665 138.321 18.7966 138.065 19.0254C137.802 19.2482 137.465 19.3647 137.12 19.3521H132.251V34.7015C132.258 35.0522 132.117 35.3896 131.862 35.631C131.293 36.1391 130.433 36.1391 129.863 35.631C129.61 35.3887 129.469 35.052 129.474 34.7015V19.3521H124.617C124.272 19.3652 123.934 19.244 123.676 19.0138C123.426 18.7757 123.291 18.4409 123.307 18.096C123.296 17.7598 123.43 17.4351 123.676 17.2054C123.934 16.9752 124.272 16.854 124.617 16.8671H137.12C137.467 16.8546 137.805 16.9757 138.065 17.2054V17.2054Z" fill="#758399"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M144.054 35.5223C143.168 35.0208 142.432 34.2935 141.919 33.4145C141.767 33.1971 141.68 32.9407 141.67 32.6756C141.67 32.3326 141.82 32.0069 142.082 31.785C142.305 31.5521 142.608 31.413 142.93 31.3962C143.418 31.4418 143.866 31.69 144.163 32.0806C144.771 33.0808 145.862 33.6845 147.033 33.6673C147.983 33.6894 148.901 33.3244 149.576 32.6562C150.258 32.01 150.636 31.1065 150.618 30.1673V18.1778C150.614 17.8236 150.763 17.4849 151.027 17.2484C151.282 16.9974 151.626 16.8576 151.983 16.8595C152.345 16.8418 152.697 16.9757 152.955 17.2289C153.203 17.4786 153.336 17.8189 153.325 18.17V30.1867C153.335 31.2638 153.051 32.3233 152.504 33.2512C151.962 34.1758 151.184 34.9396 150.249 35.4639C149.269 36.0189 148.159 36.3034 147.033 36.2884C145.99 36.2994 144.962 36.0352 144.054 35.5223ZM162.86 35.7245C161.777 35.313 160.782 34.6964 159.932 33.9084C159.582 33.6394 159.371 33.2263 159.36 32.7845C159.365 32.4485 159.505 32.1285 159.749 31.8978C159.982 31.6472 160.31 31.506 160.652 31.5089C160.94 31.505 161.218 31.6122 161.429 31.8084C162.086 32.4355 162.85 32.94 163.685 33.2978C164.525 33.6317 165.422 33.7956 166.325 33.78C167.354 33.8126 168.369 33.5348 169.238 32.9828C169.961 32.5766 170.414 31.817 170.428 30.9878C170.442 30.097 169.991 29.2632 169.238 28.7867C168.146 28.1453 166.947 27.7053 165.699 27.4878C163.817 27.0989 162.374 26.4728 161.359 25.5978C160.344 24.7228 159.843 23.5095 159.843 21.9617C159.821 20.9452 160.121 19.9478 160.698 19.1112C161.286 18.2806 162.094 17.6313 163.032 17.2367C164.104 16.7843 165.259 16.5605 166.423 16.5795C167.513 16.5726 168.597 16.7582 169.623 17.1278C170.528 17.4331 171.358 17.9276 172.058 18.5784C172.431 18.8538 172.662 19.2816 172.688 19.745C172.688 20.0746 172.554 20.3902 172.318 20.62C172.092 20.873 171.767 21.015 171.428 21.0089C171.198 21.0177 170.974 20.9384 170.802 20.7873C170.234 20.2551 169.563 19.846 168.83 19.5856C168.071 19.2795 167.261 19.1186 166.442 19.1112C165.417 19.0584 164.4 19.3218 163.529 19.8656C162.853 20.3137 162.447 21.0708 162.447 21.882C162.447 22.6932 162.853 23.4503 163.529 23.8984C164.525 24.4793 165.613 24.8869 166.745 25.1039C167.948 25.3406 169.122 25.707 170.245 26.1967C171.094 26.5717 171.819 27.1783 172.338 27.9467C172.863 28.8301 173.119 29.8481 173.073 30.875C173.088 31.8845 172.777 32.872 172.186 33.6906C171.564 34.5347 170.728 35.1968 169.763 35.6078C168.703 36.0717 167.556 36.305 166.399 36.2923C165.195 36.3147 163.997 36.1224 162.86 35.7245V35.7245Z" fill="#758399"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.8377 35.7867C21.8099 35.7377 21.7853 35.687 21.7638 35.635C21.6146 35.2899 21.5687 34.909 21.6315 34.5383H12.8076L25.921 11.4617L30.226 19.0294L31.4743 16.8206L27.7215 10.2094C27.6165 10.0189 26.9827 9 25.8899 9C25.396 9 24.6882 9.21389 24.1127 10.225L10.8282 33.5817C10.7154 33.7839 10.1671 34.8456 10.7115 35.7867C10.9604 36.2144 11.4893 36.7239 12.656 36.7239H23.7821C22.6232 36.7239 22.0865 36.2222 21.8377 35.7867V35.7867Z" fill="#758399"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M47.4188 33.5818L36.5027 14.3512C36.3899 14.149 35.7599 13.1262 34.6633 13.1262C34.1694 13.1262 33.4616 13.3362 32.886 14.3473L31.4744 16.8207L32.7305 19.0296L34.6749 15.5879L45.4744 34.5384H41.3677C41.4202 34.8517 41.3908 35.1733 41.2821 35.4718C41.2593 35.5377 41.2306 35.6014 41.1966 35.6623L41.1616 35.7323C40.6094 36.6734 39.4155 36.724 39.1821 36.724H45.6066C45.8438 36.724 47.0338 36.6734 47.586 35.7323C47.831 35.3045 48.006 34.5851 47.4188 33.5818Z" fill="#758399"/>
<path d="M41.1616 35.7322L41.1966 35.6622C41.2307 35.6013 41.2593 35.5376 41.2822 35.4717C41.3908 35.1732 41.4203 34.8516 41.3677 34.5383C41.3072 34.2005 41.186 33.8763 41.0099 33.5817L32.7383 19.0294L31.4744 16.8206L30.2183 19.0294L21.9505 33.5817C21.79 33.8798 21.6821 34.2035 21.6316 34.5383C21.5651 34.9079 21.6069 35.2888 21.7522 35.635C21.7737 35.687 21.7983 35.7377 21.8261 35.7867C22.0749 36.2144 22.6038 36.7239 23.7705 36.7239H39.1705C39.4155 36.7239 40.6094 36.6733 41.1616 35.7322V35.7322ZM31.4744 21.2383L39.0344 34.5383H23.9183L31.4744 21.2383Z" fill="#758399"/>
</g>
</g>
<defs>
<clipPath id="clip0_517_1667">
<rect width="163" height="28" fill="white" transform="translate(10.4744 9)"/>
</clipPath>
<clipPath id="clip1_517_1667">
<rect width="163" height="28" fill="white" transform="translate(10.4744 9)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 7.8 KiB

16
assets/react-native.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 13 KiB

16
assets/react.svg Normal file
View File

@@ -0,0 +1,16 @@
<svg width="139" height="48" viewBox="0 0 139 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_517_1669)">
<g clip-path="url(#clip1_517_1669)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M42.396 23.0032C42.396 20.9203 39.7876 18.9464 35.7885 17.7224C36.7114 13.6464 36.3012 10.4035 34.494 9.3653C34.0791 9.12275 33.5942 9.00734 33.0648 9.00641V9C31.3024 9 28.9952 10.2561 26.6624 12.4351C24.3296 10.2689 22.0224 9.02564 20.26 9.02564V9.03204C19.7217 9.03204 19.2346 9.1474 18.8116 9.39094C17.0108 10.4292 16.607 13.6656 17.5363 17.7288C13.55 18.9593 10.9545 20.9268 10.9545 23.0032C10.9545 25.0861 13.5628 27.06 17.5619 28.284C16.6391 32.36 17.0492 35.6029 18.8565 36.6411C19.2731 36.8846 19.7601 37 20.2985 37C22.0609 37 24.3681 35.7439 26.7009 33.5649C29.0337 35.7311 31.3408 36.9744 33.1032 36.9744C33.6416 36.9744 34.1287 36.859 34.5516 36.6155C36.3525 35.5772 36.7563 32.3408 35.827 28.2776C39.8004 27.0536 42.396 25.0797 42.396 23.0032ZM27.6814 13.4349C29.7673 11.4961 31.7255 10.4326 33.0584 10.4292V10.4356C33.3532 10.4356 33.5903 10.4932 33.789 10.6022C34.6606 11.1021 35.0387 13.0055 34.7439 15.4537C34.6734 16.0561 34.558 16.6905 34.417 17.3378C33.1609 17.0302 31.7894 16.7931 30.3475 16.6393C29.4823 15.4537 28.5851 14.377 27.6814 13.4349ZM20.26 10.4548C21.5867 10.4548 23.5541 11.5122 25.6434 13.4413C24.7462 14.3834 23.849 15.4537 22.9966 16.6393C21.5482 16.7931 20.1767 17.0302 18.9206 17.3442C18.7732 16.7034 18.6642 16.0817 18.5873 15.4857C18.2861 13.0375 18.6578 11.1341 19.523 10.6278C19.7153 10.5125 19.9652 10.4612 20.26 10.4612V10.4548ZM34.0573 18.7286C33.8201 19.5553 33.5253 20.4077 33.1921 21.26C32.9293 20.7473 32.6537 20.2346 32.3525 19.7219C32.0577 19.2092 31.7437 18.7093 31.4297 18.2223C32.3397 18.3568 33.2177 18.5235 34.0573 18.7286ZM29.5702 28.0021C30.1021 27.2394 30.6148 26.4191 31.1147 25.5539C31.5954 24.7143 32.0376 23.8556 32.4413 22.9968C32.0376 22.138 31.5954 21.2856 31.1083 20.4461C30.6084 19.5873 30.0893 18.7734 29.5574 18.0107C28.6089 17.9338 27.6411 17.889 26.6734 17.889C25.6993 17.889 24.7315 17.9338 23.7766 18.0172C23.2447 18.7798 22.732 19.6001 22.2321 20.4653C21.7514 21.3049 21.3028 22.1636 20.9055 23.0224C21.3092 23.8812 21.7514 24.7336 22.2385 25.5731C22.7384 26.4319 23.2575 27.2458 23.7894 28.0085C24.7379 28.0854 25.7057 28.1302 26.6734 28.1302C27.6475 28.1302 28.6153 28.0854 29.5702 28.0021ZM33.1905 24.7208C33.5365 25.5795 33.8313 26.4383 34.0749 27.2715C33.2353 27.4765 32.3509 27.6496 31.4344 27.7842C31.7485 27.2907 32.0625 26.7844 32.3573 26.2653C32.6521 25.7526 32.9277 25.2335 33.1905 24.7208ZM24.9094 29.5081C25.499 30.258 26.095 30.9437 26.691 31.5589C27.2806 30.9437 27.8766 30.258 28.4534 29.5081C27.8702 29.5402 27.2742 29.553 26.6718 29.553C26.0758 29.553 25.4862 29.5338 24.9094 29.5081ZM21.9225 27.7842C21.0124 27.6496 20.1344 27.4829 19.2949 27.2779C19.532 26.4511 19.8268 25.5988 20.16 24.7464C20.4228 25.2591 20.6984 25.7718 20.9996 26.2845C21.3008 26.7972 21.6084 27.2971 21.9225 27.7842ZM28.4289 16.4983C27.8393 15.7485 27.2432 15.0627 26.6472 14.4475C26.0576 15.0627 25.4616 15.7485 24.8848 16.4983C25.468 16.4662 26.064 16.4534 26.6664 16.4534C27.2625 16.4534 27.8521 16.4726 28.4289 16.4983ZM21.9186 18.2223C21.6045 18.7157 21.2905 19.222 20.9957 19.7411C20.7009 20.2538 20.4253 20.7665 20.1626 21.2793C19.8165 20.4205 19.5217 19.5617 19.2781 18.7286C20.1177 18.5299 21.0021 18.3568 21.9186 18.2223ZM12.3819 23.0032C12.3819 24.0094 13.8495 25.2783 16.1182 26.2461C16.6758 26.4832 17.2782 26.7011 17.9127 26.8998C18.2716 25.65 18.7458 24.3491 19.3354 23.016C18.7394 21.6766 18.2587 20.3692 17.8934 19.1131C17.2718 19.3117 16.6694 19.5232 16.1182 19.7604C13.8495 20.7217 12.3819 21.997 12.3819 23.0032ZM19.552 35.4042C18.6804 34.9043 18.3023 33.0009 18.5971 30.5527C18.6676 29.9503 18.7829 29.3158 18.9239 28.6686C20.1801 28.9762 21.5515 29.2133 22.9935 29.3671C23.8587 30.5527 24.7559 31.6294 25.6596 32.5715C23.5703 34.5134 21.6092 35.5772 20.2762 35.5772C19.9878 35.5708 19.7443 35.5131 19.552 35.4042ZM33.8218 35.3786C34.687 34.8723 35.0587 32.9689 34.7575 30.5207C34.687 29.9247 34.5717 29.3031 34.4243 28.6558C33.1681 28.9698 31.7967 29.2069 30.3483 29.3607C29.4959 30.5464 28.5987 31.6166 27.7014 32.5587C29.7907 34.4878 31.7582 35.5452 33.0848 35.5452C33.3796 35.5452 33.6296 35.4939 33.8218 35.3786ZM37.2308 26.246C36.6797 26.4832 36.0773 26.6946 35.4556 26.8933C35.0903 25.6372 34.6096 24.3298 34.0136 22.9904C34.6032 21.6573 35.0775 20.3563 35.4364 19.1066C36.0709 19.3053 36.6733 19.5232 37.2372 19.7603C39.506 20.7281 40.9736 21.997 40.9736 23.0032C40.9672 24.0094 39.4996 25.2847 37.2308 26.246ZM29.5965 23.0032C29.5965 24.6207 28.2852 25.932 26.6677 25.932C25.0501 25.932 23.7388 24.6207 23.7388 23.0032C23.7388 21.3857 25.0501 20.0744 26.6677 20.0744C28.2852 20.0744 29.5965 21.3857 29.5965 23.0032Z" fill="#758399"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M53.5752 23.1473V33.8012H54.8301H56.0852L56.1475 29.6199L56.21 25.4385L58.1811 25.3727L60.1522 25.307L60.7115 26.0601C61.0192 26.4743 62.2821 28.3856 63.5184 30.3072L65.7658 33.8012H67.2312C68.1335 33.8012 68.6969 33.7055 68.6969 33.5522C68.6969 33.4154 68.402 32.874 68.0416 32.3493C66.3892 29.9443 63.6201 25.7253 63.5163 25.4552C63.4398 25.2554 63.7422 25.0698 64.4252 24.898C68.7017 23.8211 70.1724 17.7903 66.9785 14.4281C65.3314 12.6941 64.4653 12.4934 58.6306 12.4934H53.5752V23.1473ZM122.911 14.2805C122.841 14.3942 122.81 15.2808 122.843 16.2511C122.878 17.2904 122.802 18.0978 122.659 18.217C122.525 18.3281 121.954 18.4518 121.389 18.4919L120.363 18.565V19.4815V20.3979L121.565 20.4671L122.768 20.5365L122.791 25.164C122.819 30.6813 122.9 31.8031 123.333 32.6405C123.989 33.9091 125.771 34.5174 127.482 34.0567C128.995 33.6493 129.226 33.3764 128.914 32.3692C128.658 31.5415 128.219 31.2617 127.923 31.7392C127.704 32.0945 126.279 32.0093 125.887 31.6173C125.344 31.0741 125.264 30.1452 125.336 25.2094L125.403 20.627L126.892 20.5125L128.382 20.3979L128.452 19.4349L128.521 18.472L126.962 18.4039L125.403 18.3359L125.289 16.2738L125.174 14.2118L124.107 14.1428C123.519 14.1048 122.981 14.1669 122.911 14.2805ZM63.734 15.3454C65.393 16.151 66.3125 18.3689 65.7252 20.148C64.9685 22.441 63.4964 23.077 59.1654 22.9826L56.21 22.9182L56.1468 19.1465C56.1122 17.0723 56.139 15.2307 56.2066 15.0542C56.405 14.5374 62.56 14.7754 63.734 15.3454ZM75.8813 18.4692C71.2605 20.2462 69.5176 26.5298 72.4374 30.8853C74.1592 33.4537 77.1536 34.6292 80.4929 34.0478C82.9674 33.6168 85.1717 32.314 84.743 31.5357C84.0552 30.2873 83.9698 30.2579 82.9635 30.924C81.8708 31.6468 80.1811 32.1974 79.0545 32.1974C76.3865 32.1974 74.472 30.5226 73.6201 27.4432L73.4774 26.9277H79.6656C83.6376 26.9277 85.9053 26.8439 85.9984 26.6933C86.2575 26.2743 85.6531 23.1773 85.0828 22.0017C84.3428 20.4758 82.8324 19.0464 81.3471 18.4658C79.7689 17.8488 77.4906 17.8504 75.8813 18.4692ZM93.0519 18.4188C91.9414 18.8026 90.139 19.8806 89.864 20.3257C89.752 20.5068 90.6141 22.1163 90.8233 22.1163C90.8749 22.1163 91.3739 21.7676 91.932 21.3416C94.2658 19.5603 97.7452 19.7511 98.9494 21.7266C99.2841 22.2753 99.3969 22.8779 99.3976 24.1211C99.3985 25.8094 99.2452 26.0837 98.6818 25.4011C98.1853 24.7997 96.5845 24.1884 95.0991 24.0333C90.5227 23.5549 87.4588 27.7892 89.6127 31.615C91.1278 34.3069 95.4375 35.0664 98.1892 33.1269C98.7356 32.7418 99.2243 32.4265 99.2754 32.4265C99.3263 32.4265 99.4008 32.7102 99.4406 33.0566C99.5089 33.6502 99.5792 33.6867 100.659 33.6867H101.804V27.6151C101.804 21.8159 101.782 21.5016 101.305 20.611C100.747 19.569 99.467 18.6181 98.1175 18.2433C96.7776 17.8715 94.3978 17.9537 93.0519 18.4188ZM110.478 18.4692C105.384 20.4282 103.965 28.0449 107.956 32.0047C109.751 33.7859 112.495 34.5825 114.998 34.0494C116.28 33.7763 118.565 32.4428 118.799 31.8306C118.924 31.5055 117.858 30.1354 117.48 30.1354C117.391 30.1354 116.994 30.4378 116.598 30.8076C115.626 31.7158 114.498 32.0508 112.901 31.906C110.084 31.6505 108.257 29.3891 108.259 26.16C108.261 22.4751 110.224 20.3001 113.558 20.2884C115.165 20.2829 116.059 20.6387 116.798 21.5786L117.283 22.1956L117.889 21.7435C119.025 20.8956 119.069 20.5975 118.184 19.7468C116.399 18.0309 113.058 17.4769 110.478 18.4692ZM80.5578 20.4089C81.0247 20.6039 81.6536 20.9904 81.9556 21.2681C82.607 21.8668 83.5839 23.8498 83.5871 24.5793L83.5894 25.0948H78.677C75.9095 25.0948 73.7072 25.0022 73.6334 24.8826C73.5612 24.7658 73.7095 24.116 73.9629 23.4388C74.4394 22.1649 75.4095 21.0603 76.6014 20.4339C77.4874 19.9683 79.4734 19.9557 80.5578 20.4089ZM97.5422 26.2493C99.0814 26.9479 99.3985 27.4398 99.3985 29.1305C99.3985 30.3324 99.3116 30.6577 98.883 31.0624C97.7374 32.1436 96.0802 32.5993 94.2768 32.3289C92.3687 32.0428 91.1164 30.1299 91.6179 28.2672C91.8672 27.3415 92.9055 26.214 93.7271 25.9769C94.7889 25.6703 96.5421 25.7957 97.5422 26.2493Z" fill="#758399"/>
</g>
</g>
<defs>
<clipPath id="clip0_517_1669">
<rect width="118.589" height="28" fill="white" transform="translate(10.395 9)"/>
</clipPath>
<clipPath id="clip1_517_1669">
<rect width="118.588" height="28" fill="white" transform="translate(10.9545 9)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 8.9 KiB

11
assets/svelte.svg Normal file
View File

@@ -0,0 +1,11 @@
<svg width="151" height="48" viewBox="0 0 151 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_517_1666)">
<path d="M53.0621 32.7532C51.6861 32.7881 50.3317 32.406 49.1767 31.6573C48.099 30.9456 47.299 29.8847 46.9113 28.6527L49.2702 27.7833C49.5977 28.5396 50.1328 29.1877 50.8136 29.6523C51.5054 30.116 52.3228 30.3562 53.1555 30.3405C53.9551 30.3826 54.7444 30.1442 55.387 29.6665C55.6664 29.4315 55.8871 29.1346 56.0317 28.7993C56.1762 28.464 56.2405 28.0997 56.2196 27.7352C56.223 27.3958 56.1443 27.0606 55.9902 26.7582C55.8565 26.4875 55.6817 26.2391 55.472 26.0219C55.2059 25.7798 54.904 25.5802 54.5771 25.43C54.175 25.229 53.8436 25.0761 53.5775 24.9713C53.3113 24.8665 52.9205 24.7249 52.4079 24.5493C51.7622 24.3228 51.2752 24.1472 50.958 24.0169C50.5224 23.8327 50.0996 23.6199 49.6921 23.3798C49.2521 23.147 48.8524 22.8448 48.5084 22.4849C48.212 22.1329 47.9731 21.7363 47.8005 21.3097C47.4669 20.4985 47.3968 19.6029 47.6001 18.7497C47.8033 17.8964 48.2697 17.1287 48.9332 16.555C49.8998 15.7036 51.211 15.2778 52.8667 15.2778C54.2524 15.2778 55.3908 15.5827 56.2819 16.1925C57.1494 16.7684 57.7862 17.6318 58.0801 18.6308L55.7636 19.4038C55.5275 18.8798 55.1308 18.4444 54.6309 18.1607C54.0311 17.8303 53.3526 17.6698 52.6684 17.6962C51.9956 17.6572 51.3289 17.8435 50.7739 18.2258C50.5473 18.4017 50.3667 18.6298 50.2473 18.8907C50.128 19.1515 50.0735 19.4374 50.0886 19.7238C50.0906 19.9433 50.1388 20.1598 50.2301 20.3593C50.3213 20.5589 50.4535 20.737 50.6182 20.8821C50.9394 21.197 51.3156 21.4504 51.7282 21.6297C52.1134 21.7911 52.7024 22.0063 53.4897 22.281C53.9711 22.4594 54.3392 22.5897 54.5629 22.6803C54.7867 22.7709 55.1293 22.9154 55.5881 23.1249C55.9493 23.2853 56.2968 23.4747 56.6274 23.6913C56.9232 23.9046 57.2069 24.1343 57.4769 24.3794C57.7674 24.6322 58.0159 24.9295 58.2132 25.2601C58.4012 25.6037 58.5467 25.9689 58.6465 26.3476C58.7701 26.7909 58.8311 27.2494 58.8277 27.7097C58.8277 29.288 58.2887 30.5227 57.2107 31.4138C56.1327 32.3049 54.7498 32.7513 53.0621 32.7532ZM68.5297 32.47L62.7385 15.5723H65.4401L69.2773 27.3472C69.489 27.981 69.6668 28.6257 69.8097 29.2785C69.9501 28.6254 70.1269 27.9806 70.3392 27.3472L74.1283 15.5723H76.8072L71.0387 32.4644L68.5297 32.47ZM81.9215 32.47V15.5723H92.3994V17.9369H84.4334V22.5699H89.5732V24.9345H84.4334V30.0884H92.929V32.4531L81.9215 32.47ZM99.3205 32.47V15.5723H101.832V30.0516H110.084V32.4644L99.3205 32.47ZM119.543 17.9908V32.4644H117.034V17.9851H112.256V15.5723H124.314V17.9851L119.543 17.9908ZM129.511 32.47V15.5723H139.989V17.9369H132.02V22.5699H137.16V24.9345H132.02V30.0884H140.516V32.4531L129.511 32.47Z" fill="#758399"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.4926 9.5745C26.6979 6.89557 32.5146 8.14442 35.4597 12.3582V12.3809C36.1586 13.3594 36.6551 14.4676 36.9201 15.6405C37.1852 16.8134 37.2134 18.0274 37.0031 19.2113C36.7976 20.3413 36.366 21.4181 35.7344 22.3773C36.657 24.1358 36.967 26.1518 36.6151 28.1062C36.404 29.2639 35.9547 30.3652 35.2956 31.3402C34.6365 32.3151 33.7821 33.1425 32.7864 33.7699L25.4009 38.4566C21.1956 41.1356 15.379 39.8867 12.4339 35.6729C11.7344 34.6947 11.2375 33.5865 10.9725 32.4135C10.7074 31.2405 10.6796 30.0264 10.8905 28.8425C11.0937 27.7123 11.5243 26.6352 12.1563 25.6765C11.2342 23.9168 10.9253 21.8998 11.2785 19.9448C11.4879 18.7864 11.9366 17.6845 12.5958 16.7093C13.255 15.7341 14.1103 14.9071 15.1071 14.2811L22.4926 9.5745ZM18.2541 35.9024C19.3803 36.3201 20.6076 36.3824 21.7703 36.0806C22.3011 35.9379 22.8071 35.7154 23.2712 35.4208L30.6595 30.7143C31.2597 30.3365 31.7745 29.8376 32.1709 29.2496C32.5674 28.6615 32.8367 27.9972 32.9618 27.299C33.0883 26.5872 33.0714 25.8573 32.9118 25.1522C32.7523 24.447 32.4535 23.7809 32.0329 23.1929C31.3489 22.206 30.3784 21.453 29.2525 21.0356C28.1266 20.6183 26.8997 20.5568 25.7377 20.8594C25.2061 20.9997 24.6996 21.2223 24.2368 21.5192L21.405 23.3146C21.2644 23.4024 21.1118 23.4692 20.9519 23.5129C20.6038 23.6006 20.2373 23.5804 19.9009 23.4549C19.5646 23.3295 19.2743 23.1048 19.0687 22.8106C18.9419 22.6327 18.8517 22.4316 18.8031 22.2187C18.7544 22.0058 18.7485 21.7854 18.7855 21.5702C18.8238 21.3602 18.9052 21.1604 19.0246 20.9835C19.144 20.8065 19.2989 20.6563 19.4793 20.5422L26.8676 15.8442C27.0076 15.7553 27.1604 15.6884 27.3207 15.646C27.6672 15.5547 28.0332 15.5712 28.3702 15.6931C28.7071 15.815 28.9989 16.0366 29.2067 16.3284C29.4333 16.6478 29.5396 17.037 29.5069 17.4272L29.4814 17.7104L29.7646 17.7925C30.8023 18.1067 31.7791 18.5951 32.6531 19.2367L33.0298 19.5199L33.1713 19.0952C33.2441 18.8696 33.3027 18.6398 33.3469 18.407C33.4738 17.6952 33.457 16.9652 33.2975 16.2601C33.1379 15.5549 32.8389 14.8887 32.4181 14.3008C31.7342 13.3137 30.7637 12.5604 29.6379 12.1426C28.5121 11.7248 27.2851 11.6626 26.1229 11.9645C25.596 12.1069 25.0937 12.3284 24.6333 12.6215L17.2365 17.3281C16.6362 17.7059 16.1215 18.2047 15.725 18.7928C15.3286 19.3809 15.0592 20.0452 14.9342 20.7433C14.8064 21.4545 14.822 22.1841 14.9801 22.8893C15.1381 23.5944 15.4354 24.2608 15.8545 24.8495C16.5385 25.8341 17.5077 26.5856 18.6317 27.0028C19.7557 27.42 20.9805 27.4828 22.1413 27.1829C22.671 27.0412 23.1762 26.8196 23.6393 26.526L26.4712 24.7277C26.6112 24.6388 26.764 24.572 26.9243 24.5295C27.2744 24.4386 27.6439 24.4573 27.9832 24.5828C28.3224 24.7084 28.615 24.9349 28.8216 25.2318C28.949 25.4087 29.0397 25.6094 29.0883 25.8219C29.1369 26.0345 29.1425 26.2546 29.1048 26.4693C29.0674 26.68 28.9864 26.8805 28.8669 27.0581C28.7474 27.2356 28.5921 27.3862 28.411 27.5001L21.0368 32.2067C20.8966 32.295 20.7438 32.3619 20.5837 32.4049C20.2336 32.4957 19.8641 32.4771 19.5248 32.3516C19.1856 32.226 18.893 31.9995 18.6864 31.7026C18.4596 31.3862 18.3505 31.0006 18.3777 30.6123L18.4032 30.3291L18.12 30.247C17.086 29.9354 16.1123 29.4509 15.24 28.8141L14.8605 28.5309L14.7218 28.9557C14.6467 29.1786 14.588 29.4067 14.5462 29.6382C14.4189 30.3498 14.4353 31.0796 14.5943 31.7848C14.7534 32.49 15.0519 33.1563 15.4722 33.7444C16.1569 34.7314 17.1278 35.4846 18.2541 35.9024Z" fill="#758399"/>
</g>
<defs>
<clipPath id="clip0_517_1666">
<rect width="130.265" height="32" fill="white" transform="translate(10.4744 8)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 6.1 KiB

16
assets/vuejs.svg Normal file
View File

@@ -0,0 +1,16 @@
<svg width="120" height="48" viewBox="0 0 120 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_517_1668)">
<path d="M54.426 14.1752C54.426 13.9261 54.5589 13.7186 54.8245 13.5525C55.1068 13.3865 55.3973 13.3035 55.6962 13.3035C56.1113 13.3035 56.3687 13.4612 56.4683 13.7767L60.8517 28.5706L65.2102 13.7767C65.3264 13.4612 65.5755 13.3035 65.9573 13.3035C66.2728 13.3035 66.5634 13.3948 66.829 13.5774C67.1113 13.7601 67.2524 13.9676 67.2524 14.2001C67.2524 14.2167 67.2441 14.2416 67.2275 14.2748C67.2275 14.308 67.2275 14.3412 67.2275 14.3744L62.1717 30.9367C61.989 31.4182 61.549 31.6589 60.8517 31.6589C60.1543 31.6589 59.7309 31.4182 59.5815 30.9367L54.4758 14.3744C54.4426 14.2748 54.426 14.2084 54.426 14.1752Z" fill="#758399"/>
<path d="M68.1415 26.9269V20.4514C68.1415 20.2521 68.2411 20.0778 68.4403 19.9284C68.6562 19.7789 68.9052 19.7042 69.1875 19.7042C69.4532 19.7042 69.6856 19.7872 69.8849 19.9533C70.1007 20.1027 70.2086 20.2688 70.2086 20.4514V26.9269C70.2086 27.674 70.4909 28.3465 71.0554 28.9442C71.6199 29.542 72.2924 29.8408 73.0728 29.8408C73.8366 29.8408 74.5007 29.5503 75.0652 28.9691C75.6298 28.3714 75.912 27.6906 75.912 26.9269V20.4265C75.912 20.2438 76.0116 20.0778 76.2109 19.9284C76.4267 19.7789 76.6758 19.7042 76.9581 19.7042C77.2569 19.7042 77.4977 19.7789 77.6803 19.9284C77.8796 20.0612 77.9792 20.2272 77.9792 20.4265V26.9269C77.9792 28.2054 77.4894 29.3261 76.5098 30.2891C75.5467 31.2355 74.4011 31.7088 73.0728 31.7088C71.7279 31.7088 70.5656 31.2355 69.586 30.2891C68.623 29.3261 68.1415 28.2054 68.1415 26.9269Z" fill="#758399"/>
<path d="M80.3672 26.8771V24.262C80.3672 22.9835 80.8487 21.8793 81.8117 20.9495C82.7914 20.0197 83.9619 19.5548 85.3234 19.5548C86.6185 19.5548 87.7393 19.9948 88.6857 20.8748C89.6321 21.7382 90.1053 22.8257 90.1053 24.1374C90.1053 24.6189 90.0472 25.0091 89.931 25.308C89.8148 25.5903 89.6321 25.7978 89.3831 25.9306C89.1506 26.0469 88.9265 26.1216 88.7106 26.1548C88.5114 26.188 88.2374 26.2046 87.8887 26.2046H82.4344V26.9518C82.4344 27.865 82.7582 28.5955 83.4057 29.1435C84.0699 29.6914 84.925 29.9654 85.971 29.9654C86.5189 29.9654 86.9921 29.8823 87.3906 29.7163C87.8057 29.5503 88.1378 29.3925 88.3868 29.2431C88.6359 29.0771 88.8351 28.994 88.9846 28.994C89.217 28.994 89.4163 29.102 89.5823 29.3178C89.7484 29.5171 89.8314 29.7246 89.8314 29.9405C89.8314 30.3223 89.4495 30.7125 88.6857 31.111C87.9385 31.5095 87.0087 31.7088 85.8963 31.7088C84.2691 31.7088 82.9408 31.2688 81.9114 30.3888C80.8819 29.4921 80.3672 28.3216 80.3672 26.8771ZM82.4344 24.8099H87.0419C87.4736 24.8099 87.7642 24.7601 87.9136 24.6605C88.0631 24.5442 88.1378 24.3284 88.1378 24.0129C88.1378 23.2657 87.8638 22.6099 87.3159 22.0454C86.768 21.4808 86.0955 21.1986 85.2985 21.1986C84.5182 21.1986 83.8457 21.4642 83.2812 21.9955C82.7167 22.5103 82.4344 23.1495 82.4344 23.9133V24.8099Z" fill="#758399"/>
<path d="M91.8448 30.3638C91.8448 29.9986 91.9694 29.6914 92.2184 29.4423C92.4675 29.1767 92.7746 29.0438 93.1399 29.0438C93.4886 29.0438 93.7875 29.1767 94.0365 29.4423C94.2856 29.6914 94.4101 29.9986 94.4101 30.3638C94.4101 30.7125 94.2856 31.0197 94.0365 31.2854C93.7875 31.5344 93.4886 31.6589 93.1399 31.6589C92.7746 31.6589 92.4675 31.5344 92.2184 31.2854C91.9694 31.0197 91.8448 30.7125 91.8448 30.3638Z" fill="#758399"/>
<path d="M94.3798 36.3163C94.3798 36.0506 94.4628 35.8265 94.6288 35.6438C94.7949 35.4778 94.9941 35.3948 95.2266 35.3948C95.8741 35.3948 96.2975 35.154 96.4967 34.6725C96.696 34.191 96.7956 33.4688 96.7956 32.5057V20.4265C96.7956 20.2106 96.8869 20.0363 97.0696 19.9035C97.2688 19.7706 97.5179 19.7042 97.8167 19.7042C98.1156 19.7042 98.3647 19.7706 98.5639 19.9035C98.7632 20.0363 98.8628 20.2106 98.8628 20.4265V32.5057C98.8628 33.9503 98.5805 35.0959 98.016 35.9427C97.4515 36.7895 96.5964 37.2129 95.4507 37.2129C94.7367 37.2129 94.3798 36.914 94.3798 36.3163ZM96.8952 16.1178C96.6462 15.8687 96.5217 15.5865 96.5217 15.271C96.5217 14.9555 96.6462 14.6816 96.8952 14.4491C97.1443 14.2167 97.4515 14.1004 97.8167 14.1004C98.1654 14.1004 98.4643 14.2167 98.7134 14.4491C98.9624 14.6816 99.0869 14.9555 99.0869 15.271C99.0869 15.5865 98.9624 15.8687 98.7134 16.1178C98.4643 16.3503 98.1654 16.4665 97.8167 16.4665C97.4681 16.4665 97.1609 16.3503 96.8952 16.1178Z" fill="#758399"/>
<path d="M101.107 29.8159C101.107 29.6001 101.174 29.3925 101.307 29.1933C101.456 28.9774 101.63 28.8695 101.83 28.8695C101.963 28.8695 102.153 28.9691 102.403 29.1684C102.652 29.3676 103.009 29.5669 103.473 29.7661C103.938 29.9488 104.486 30.0401 105.117 30.0401C105.947 30.0401 106.545 29.8906 106.91 29.5918C107.292 29.2929 107.483 28.9193 107.483 28.471C107.483 27.9231 107.276 27.4914 106.861 27.1759C106.446 26.8438 105.939 26.5948 105.341 26.4288C104.744 26.2627 104.146 26.0801 103.548 25.8808C102.95 25.6816 102.444 25.3495 102.029 24.8846C101.614 24.4197 101.406 23.8054 101.406 23.0416C101.406 22.0952 101.738 21.2816 102.403 20.6008C103.083 19.9035 104.113 19.5548 105.491 19.5548C106.371 19.5548 107.176 19.6959 107.907 19.9782C108.637 20.2438 109.003 20.551 109.003 20.8997C109.003 21.0989 108.919 21.3231 108.753 21.5721C108.604 21.8212 108.413 21.9457 108.181 21.9457C108.114 21.9457 107.79 21.8295 107.209 21.5971C106.645 21.348 106.08 21.2235 105.516 21.2235C104.752 21.2235 104.179 21.4061 103.797 21.7714C103.432 22.1201 103.249 22.5186 103.249 22.9669C103.249 23.4318 103.457 23.7971 103.872 24.0627C104.287 24.3284 104.793 24.5359 105.391 24.6854C106.006 24.8348 106.612 25.0174 107.209 25.2333C107.807 25.4491 108.313 25.8227 108.729 26.354C109.144 26.8688 109.351 27.5412 109.351 28.3714C109.351 29.4008 108.986 30.2144 108.255 30.8121C107.525 31.4099 106.504 31.7088 105.192 31.7088C104.063 31.7088 103.1 31.5095 102.303 31.111C101.506 30.6959 101.107 30.2642 101.107 29.8159Z" fill="#758399"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M27.9646 17.3631L31.8862 10.5647H38.1532L27.9646 28.2274L17.7761 10.5647H24.0431L27.9646 17.3631ZM27.9646 30.5174L39.5276 10.5648H44.9455L27.9646 40.0027L10.9838 10.5648H16.4017L27.9646 30.5174Z" fill="#758399"/>
</g>
<defs>
<clipPath id="clip0_517_1668">
<rect width="98.4906" height="30" fill="white" transform="translate(10.9838 10)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 6.1 KiB

65
config/.eslint.base.js Normal file
View File

@@ -0,0 +1,65 @@
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
ignorePatterns: [
'dist',
'umd',
'build',
'.next',
'node_modules',
'tsup.config.ts',
'__tests__',
'__mocks__',
'*.test.ts',
'*.test.tsx',
'*.spec.ts',
'*.spec.tsx',
'tests/**/*.ts',
'tests/**/*.d.ts'
],
plugins: ['@typescript-eslint', 'simple-import-sort', 'cypress'],
extends: ['plugin:cypress/recommended'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
rules: {
'react/prop-types': 'off',
'no-use-before-define': 'off',
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': [
'error',
{
groups: [
// Node.js builtins. You could also generate this regex if you use a `.js` config.
// For example: `^(${require("module").builtinModules.join("|")})(/|$)`
[
'^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)'
],
// Packages
['^\\w'],
// Internal packages.
['^(@|config/)(/*|$)'],
// Side effect imports.
['^\\u0000'],
// Parent imports. Put `..` last.
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
// Other relative imports. Put same-folder imports and `.` last.
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
// Style imports.
['^.+\\.s?css$']
]
}
],
'import/no-anonymous-default-export': [
'error',
{
allowArrowFunction: true,
allowAnonymousFunction: true
}
]
}
}

12
config/.eslintrc.js Normal file
View File

@@ -0,0 +1,12 @@
const base = require('./.eslint.base')
module.exports = {
...base,
extends: [
...base.extends,
'react-app',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:react/jsx-runtime'
],
plugins: [...base.plugins, 'react', 'react-hooks']
}

13
config/.eslintrc.vue.js Normal file
View File

@@ -0,0 +1,13 @@
const base = require('./.eslint.base')
module.exports = {
...base,
extends: [...base.extends, 'plugin:import/recommended', 'plugin:import/typescript'],
parser: 'vue-eslint-parser',
parserOptions: {
...base.parserOptions,
parser: '@typescript-eslint/parser'
},
rules: {
'vue/html-self-closing': 'off'
}
}

1
config/.husky/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
_

4
config/.husky/pre-commit Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged --config config/.lintstagedrc.js

8
config/.lintstagedrc.js Normal file
View File

@@ -0,0 +1,8 @@
module.exports = {
'packages/(docgen|hasura-auth-js|hasura-storage-js|nextjs|nhost-js|react|core|vue)/src/**/*.{js,ts,jsx,tsx}':
['pnpm docgen', 'git add docs'],
'(nhost-cloud.yaml|**/nhost/config.yaml)': () => [
'pnpm sync-versions',
"git add ':(glob)**/nhost/config.yaml'"
]
}

View File

@@ -7,7 +7,6 @@ module.exports = {
testRegex: '(/tests/.*.(test|spec)).(jsx?|tsx?)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverage: true,
// coveragePathIgnorePatterns: ['(tests/.*.mock).(jsx?|tsx?)$'],
verbose: true,
testTimeout: 30000,
globals: {

15
config/jest.config.js Normal file
View File

@@ -0,0 +1,15 @@
module.exports = {
rootDir: process.cwd(),
preset: 'ts-jest',
collectCoverage: true,
coverageProvider: 'v8',
coverageDirectory: '<rootDir>/coverage',
clearMocks: true,
verbose: true,
testTimeout: 30000,
globals: {
'ts-jest': {
isolatedModules: true
}
}
}

View File

@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "React Library",
"extends": "./tsconfig.base.json",
"compilerOptions": {
"jsx": "preserve"
}
}

57
config/tsconfig.base.json Normal file
View File

@@ -0,0 +1,57 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"composite": false,
"declaration": true,
"declarationMap": true,
"strict": true,
"isolatedModules": true,
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"moduleResolution": "node",
"target": "ES6",
"module": "CommonJS",
"lib": [
"es5",
"dom",
"es2015.promise",
"es2015.symbol",
"es2015.iterable",
"es2015.collection",
"es2015.symbol.wellknown",
"es2015.core",
"es2017.object",
"es2017.string"
],
"resolveJsonModule": true,
"esModuleInterop": true,
"sourceMap": true,
"types": ["node"],
"typeRoots": [
"./node_modules/@types", "**/*/dist", "**/*/build", "**/*/.next", "**/*/umd"
],
"paths": {
"@nhost/apollo": ["../packages/apollo/src/index.ts"],
"@nhost/core": ["../packages/core/src/index.ts"],
"@nhost/docgen": ["../packages/docgen/src/index.ts"],
"@nhost/hasura-auth-js": ["../packages/hasura-auth-js/src/index.ts"],
"@nhost/hasura-storage-js": ["../packages/hasura-storage-js/src/index.ts"],
"@nhost/nextjs": ["../packages/nextjs/src/index.ts"],
"@nhost/nhost-js": ["../packages/nhost-js/src/index.ts"],
"@nhost/react": ["../packages/react/src/index.ts"],
"@nhost/react-apollo": ["../packages/react-apollo/src/index.ts"],
"@nhost/react-auth": ["../packages/react-auth/src/index.ts"],
"@nhost/vue": ["../packages/vue/src/index.ts"]
}
},
"exclude": [
"node_modules",
"**/*/dist",
"**/*/build",
"**/*/.next",
"**/*/__tests__",
"**/*/__mocks__"
]
}

76
config/vite.lib.config.js Normal file
View File

@@ -0,0 +1,76 @@
import fs from 'fs'
import path from 'path'
import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'
import tsconfigPaths from 'vite-tsconfig-paths'
const PWD = process.env.PWD
const pkg = require(path.join(PWD, 'package.json'))
const tsEntry = path.resolve(PWD, 'src/index.ts')
const entry = fs.existsSync(tsEntry) ? tsEntry : tsEntry.replace('.ts', '.tsx')
const deps = [...Object.keys(Object.assign({}, pkg.peerDependencies, pkg.dependencies))]
export default defineConfig({
plugins: [
tsconfigPaths(),
dts({
exclude: ['**/*.spec.ts', '**/*.test.ts', '**/tests/**'],
afterBuild: () => {
const types = fs.readdirSync(path.join(PWD, 'dist/src'))
types.forEach((file) => {
fs.renameSync(path.join(PWD, 'dist/src', file), path.join(PWD, 'dist', file))
})
fs.rmdirSync(path.join(PWD, 'dist/src'))
}
})
],
test: {
globals: true,
environment: 'jsdom',
reporters: 'verbose',
include: [`${PWD}/src/**/*.{spec,test}.{ts,tsx}`, `${PWD}/tests/**/*.{spec,test}.{ts,tsx}`],
// Note: temporarily disabled threads, because of a bug in vitest
// https://github.com/vitest-dev/vitest/issues/1171
threads: false,
coverage: {
enabled: process.env.CI === 'true',
reporter: ['json']
}
},
build: {
sourcemap: true,
lib: {
entry,
name: pkg.name,
fileName: (format) => (format === 'cjs' ? `index.cjs.js` : `index.esm.js`),
formats: ['cjs', 'es']
},
rollupOptions: {
external: (id) => deps.some((dep) => id.startsWith(dep)),
output: {
globals: {
graphql: 'graphql',
'@apollo/client': '@apollo/client',
'@apollo/client/core': '@apollo/client/core',
'@apollo/client/link/context': '@apollo/client/link/context',
'@apollo/client/react': '@apollo/client/react',
'@apollo/client/link/subscriptions': '@apollo/client/link/subscriptions',
'@apollo/client/utilities': '@apollo/client/utilities',
'graphql-ws': 'graphql-ws',
xstate: 'xstate',
axios: 'axios',
'js-cookie': 'Cookies',
react: 'React',
'react-dom': 'ReactDOM',
'react/jsx-runtime': '_jsx',
'@nhost/react': '@nhost/react',
vue: 'Vue',
'vue-demi': 'vue-demi'
}
}
}
}
})

View File

@@ -0,0 +1,13 @@
import { defineConfig } from 'vite'
import viteLibConfig from './vite.lib.config'
export default defineConfig({
...viteLibConfig,
build: {
...viteLibConfig.build,
watch: {
buildDelay: 500
}
}
})

View File

@@ -0,0 +1,28 @@
import path from 'path'
import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'
import baseLibConfig from './vite.lib.config'
const PWD = process.env.PWD
const pkg = require(path.join(PWD, 'package.json'))
const deps = [...Object.keys(Object.assign({}, pkg.peerDependencies))]
export default defineConfig({
plugins: [tsconfigPaths()],
build: {
...(baseLibConfig.build || {}),
outDir: 'umd',
lib: {
...(baseLibConfig.build?.lib || {}),
fileName: pkg.name.replace(/@nhost\//g, ''),
formats: ['umd']
},
rollupOptions: {
...(baseLibConfig.build?.rollupOptions || {}),
external: (id) => deps.some((dep) => id.startsWith(dep))
}
}
})

View File

@@ -0,0 +1,13 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import baseLibConfig from './vite.lib.config'
export default defineConfig({
...baseLibConfig,
optimizeDeps: {
include: ['react/jsx-runtime']
},
plugins: [react({ jsxRuntime: 'classic' }), ...baseLibConfig.plugins]
})

View File

@@ -0,0 +1,13 @@
import { defineConfig } from 'vite'
import viteReactConfig from './vite.react.config'
export default defineConfig({
...viteReactConfig,
build: {
...viteReactConfig.build,
watch: {
buildDelay: 500
}
}
})

View File

@@ -0,0 +1,30 @@
import path from 'path'
import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'
import react from '@vitejs/plugin-react'
import baseLibConfig from './vite.lib.config'
const PWD = process.env.PWD
const pkg = require(path.join(PWD, 'package.json'))
const deps = [...Object.keys(Object.assign({}, pkg.peerDependencies))]
export default defineConfig({
plugins: [react(), tsconfigPaths()],
build: {
...(baseLibConfig.build || {}),
outDir: 'umd',
lib: {
...(baseLibConfig.build?.lib || {}),
fileName: pkg.name.replace(/@nhost\//g, ''),
formats: ['umd']
},
rollupOptions: {
...(baseLibConfig.build?.rollupOptions || {}),
external: (id) => deps.some((dep) => id.startsWith(dep))
}
}
})

10
config/vite.vue.config.js Normal file
View File

@@ -0,0 +1,10 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import baseLibConfig from './vite.lib.config'
export default defineConfig({
...baseLibConfig,
plugins: [vue(), ...baseLibConfig.plugins]
})

View File

@@ -0,0 +1,13 @@
import { defineConfig } from 'vite'
import viteVueConfig from './vite.vue.config'
export default defineConfig({
...viteVueConfig,
build: {
...viteVueConfig.build,
watch: {
buildDelay: 500
}
}
})

View File

@@ -0,0 +1,30 @@
import path from 'path'
import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'
import vue from '@vitejs/plugin-vue'
import baseLibConfig from './vite.lib.config'
const PWD = process.env.PWD
const pkg = require(path.join(PWD, 'package.json'))
const deps = [...Object.keys(Object.assign({}, pkg.peerDependencies))]
export default defineConfig({
plugins: [vue(), tsconfigPaths()],
build: {
...(baseLibConfig.build || {}),
outDir: 'umd',
lib: {
...(baseLibConfig.build?.lib || {}),
fileName: pkg.name.replace(/@nhost\//g, ''),
formats: ['umd']
},
rollupOptions: {
...(baseLibConfig.build?.rollupOptions || {}),
external: (id) => deps.some((dep) => id.startsWith(dep))
}
}
})

View File

@@ -1,17 +0,0 @@
{
"root": true,
"extends": ["next", "prettier"],
"rules": {
"@next/next/no-img-element": "off",
"import/no-default-export": "off",
"react/self-closing-comp": "warn",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"jsx-a11y/anchor-is-valid": "off",
"no-console": "warn"
},
"parser": "@typescript-eslint/parser",
"settings": { "react": { "version": "detect" } }
}

22
docs/.gitignore vendored
View File

@@ -1,2 +1,20 @@
!lib
!.prettierignore
# Dependencies
/node_modules
# Production
/build
# Generated files
.docusaurus
.cache-loader
# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*

View File

@@ -1,2 +0,0 @@
node_modules/
.next/

View File

@@ -1,6 +1,21 @@
# nhost-documentation
# @nhost/docs
## 0.0.3
## null
### Patch Changes
- 03562af: Build in CommonJS and ESM instead of UMD and ESM as the UMD bundle generated by the default Vite lib build mode doesn't work with NodeJS
- eb46f7d8: Use port 1337 if no port is specified when using "localhost" as `subdomain`.
## 0.0.2
### Patch Changes
- 747aa969: fix: added twitch and discord as provider
## 0.0.1
### Patch Changes
- 584976d: - publishable directory structure changes (ESM, CJS and UMD included in the output)
- build system improvements
- fixed some bundling concerns (https://github.com/nhost/nhost/issues/428)

View File

@@ -1,44 +1,37 @@
# Nhost Documentation
# Nhost Docs
## Get started
This documentation describes how to build, start and test the documentation locally.
1. Install dependencies: `yarn`
2. Start dev server: `yarn dev`
### Installation
## NOTES;
The content is copied from the main `nhost/nhost` repo. This repo is only to modify styles/react components.
## Structure
The `order.ts` file contains the main order for the entire structure of `posts`. The keys are `categories` and the values are `subcategories` in which contains the order the posts.
```
export const orderTwo = {
"get-started": {
"quick-start": ["introduction", "nhost-app", "todos-table", "javascript-app"],
upgrade: ["upgrade-from-v1-to-v2"],
},
platform: {
data: ["database", "graphql", "permissions", "event-triggers"],
auth: ["overview", "sign-in-methods", "users"],
storage: ["overview"],
cli: ["overview"],
nhost: ["environment-variables", "serverless-functions"],
},
tutorials: {
"frontend-templates": ["react"],
templates: ["nhost"],
},
reference: {
cli: ["nhost-cli"],
sdk: ["javascript-sdk", "react-auth", "react-apollo"],
},
};
```bash
$ pnpm i
```
Metadata such as the `title` of the file that appears on the nav is on the frontmatter of each markdown file. The file name becomes the final url. Each top-level folder appears on the header as main navigation, each subfolder becomes a main subcategory of the nav and posts are included under each subcategory.
### Local Development
In order to create a new file you place it its proper subcategory and modify the category on the `order.ts` file such as `sdk: ["javascript-sdk", "react-auth", "react-apollo"],` -> `sdk: ["javascript-sdk", "react-auth", "vue"]`
```bash
$ pnpm start
```
Each subCategory e.g. `reference` or `tutorials` has an `index.mdx` file. If a new subcategory is added, a file has to be created for it.
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
### Build
```bash
$ pnpm build
```
This command generates static content into the `build` directory and can be served using any static contents hosting service.
### Serve
```bash
$ pnpm serve
```
This command serves the static content from the `build` directory.
### Contributing
All pull requests are greatly appreciated! See our [contributing guide](https://github.com/nhost/nhost/blob/main/CONTRIBUTING.md) to get started.

3
docs/babel.config.js Normal file
View File

@@ -0,0 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};

View File

@@ -1,81 +0,0 @@
import Text from '@/components/ui/Text'
import { motion } from 'framer-motion'
import { useRouter } from 'next/dist/client/router'
import React, { useState } from 'react'
import createKebabCase from '../utils/createKebabCase'
import Permalink from './icons/Permalink'
export interface AnchorLinkProps {
children?: any
id?: string
size?: 'tiny' | 'small' | 'normal' | 'large' | 'big' | 'heading'
className?: string
}
export default function AnchorLink({ children, id, size, className }: AnchorLinkProps) {
const {
query: { category, subcategory, post }
} = useRouter()
const [showPermaLink, setShowPermalink] = useState(false)
const isQuoted = typeof children !== 'string'
return (
<div
id={
id
? children.split('/')[1]
: createKebabCase(
`#${isQuoted ? (children.props ? children.props.children : children) : children}`
)
}
className={className}
onMouseOver={() => setShowPermalink(true)}
onMouseLeave={() => setShowPermalink(false)}
>
<span id={createKebabCase(`${children}`)} className={'flex flex-row relative'}>
{showPermaLink ? (
<motion.span
className="absolute self-center w-4 h-4 align-middle -left-5"
onClick={() => {
navigator.clipboard
.writeText(
`https://docs.nhost.io/${category}/${subcategory}/${post}/${
id
? id
: createKebabCase(
`#${
isQuoted
? children.props
? children.props.children
: children
: children
}`
)
}`
)
.catch((e) => {
// eslint-disable-next-line no-console
console.log(e)
})
}}
>
<Permalink className="w-4 h-4" />
</motion.span>
) : (
<></>
)}
<Text
variant="a"
href={createKebabCase(
`#${isQuoted ? (children.props ? children.props.children : children) : children}`
)}
color="greyscaleDark"
className="font-medium break-all"
>
{children}
</Text>
</span>
</div>
)
}

View File

@@ -1,36 +0,0 @@
import React from 'react'
import { useState } from 'react'
import Check from './icons/Check'
import Copy from './icons/Copy'
export default function Command({ children }) {
const [copied, setCopied] = useState(false)
return (
<div className="my-1 flex-row inline-flex self-center text-xs bg-gray-50 pl-2 pr-1.5 text-gray-900 font-mono leading-6 py-0.25 border border-gray-200 rounded-md">
<span className="text-verydark mr-1.5 self-center">$</span>
{children}
<button
className="ml-1.5 self-center inline-block cursor-pointer"
onClick={() => {
navigator.clipboard.writeText(children).catch((e) => {
// eslint-disable-next-line no-console
console.log(e)
})
setCopied(true)
setTimeout(() => {
setCopied(false)
}, 1000)
}}
>
{/* <Tooltip text={"Copied!"}> */}
{copied ? (
<Check className="w-3.5 h-3.5 mr-0.5 text-greenDark transition-colors self-center" />
) : (
<Copy className="w-4 h-4 text-gray-500 transition-colors hover:text-gray-900" />
)}
{/* </Tooltip> */}
</button>
</div>
)
}

View File

@@ -1,7 +0,0 @@
export function Container({ children }) {
return (
<div className="mx-10 px-2 sm:px-10 md:px-20 lg:px-0 flex flex-row md:max-w-container pb-20 md:mx-auto mt-8 lg:space-x-20">
{children}
</div>
)
}

View File

@@ -1,47 +0,0 @@
import markdownStyles from '@/styles/markdown-styles.module.css'
import { DOCS_GITHUB_ENDPOINT } from '@/utils/constants'
import { MDXRemote } from 'next-mdx-remote'
import { useRouter } from 'next/dist/client/router'
import React from 'react'
import GithubIcon from './icons/GithubIcon'
import Button from './ui/Button/Button'
import Text from './ui/Text/Text'
function getGithubLink(category, subcategory, post) {
if (post) return `${DOCS_GITHUB_ENDPOINT}${category}/${subcategory}/${post}.mdx`
else if (subcategory) return `${DOCS_GITHUB_ENDPOINT}${category}/${subcategory}/index.mdx`
else {
return `${DOCS_GITHUB_ENDPOINT}${category}/index.mdx`
}
}
export function Content({ mdxSource, components, frontmatter }) {
const router = useRouter()
return (
<div className="mt-2 h-full w-full flex flex-col">
<div className="flex flex-row place-content-between mb-4">
<Text color="greyscaleDark" className="font-medium cursor-pointer" size="heading">
{frontmatter.title}
</Text>
<div className="hidden md:block self-center">
<Button
Component="a"
variant="secondary"
className="invisible md:visible"
href={getGithubLink(router.query.category, router.query.subcategory, router.query.post)}
target="_blank"
rel="noreferrer"
type={null}
>
Edit This Page
<GithubIcon className="w-3.5 h-3.5 ml-1.5 text-greyscaleDark self-center" />
</Button>
</div>
</div>
<div className={markdownStyles['markdown']}>
<MDXRemote {...mdxSource} components={components} lazy />
</div>
</div>
)
}

View File

@@ -1,21 +0,0 @@
import { withRouter } from 'next/router'
import Link from 'next/link'
import React, { Children } from 'react'
const CustomLink = ({ router, children, ...props }) => {
const child = Children.only(children)
let className = child.props.className || ''
const pathname = `/${router.query.category}/${router.query.post}`
if (pathname === props.href && props.activeClassName) {
className = `${className} ${props.activeClassName}`.trim()
}
delete props.activeClassName
// @ts-ignore
return <Link {...props}>{React.cloneElement(child, { className })}</Link>
}
export default withRouter(CustomLink)

View File

@@ -1,5 +0,0 @@
import React from 'react'
export default function Divider() {
return <div className="divider mt-6 mb-4 order-2" />
}

View File

@@ -1,162 +0,0 @@
import Button from '@/components/ui/Button'
import siteLinks from '@/data/siteLinks.json'
import Link from 'next/link'
import React from 'react'
import { useState } from 'react'
import { Newsletter } from './Newsletter'
// import Input from './ui/Input/Input';
export default function Footer() {
const [email, setEmail] = useState('')
return (
<div className="bg-verydark">
<div className="max-w-mxcontainer px-5 mx-auto">
<div className="flex flex-col pt-20">
{/* Logo and CTA */}
<div className="place-content-between flex flex-row">
<div className="">
<img
src="/logos/nhost-footer-logo.svg"
width={141.57}
height={48}
alt="Nhost white logo"
/>
</div>
<div className="flex flex-row self-center">
<Button
Component="a"
variant="secondary"
className="md:visible invisible mr-2 text-white cursor-pointer"
href="mailto:hello@nhost.io"
type={null}
>
Contact Us
</Button>
<Button
Component="a"
variant="primary"
href="https://app.nhost.io"
target="_blank"
rel="noreferrer"
className="cursor-pointer"
type={null}
>
<span className="md:block hidden">Sign up or Log in</span>
<span className="md:hidden">Sign up</span>
</Button>
</div>
</div>
{/* All links */}
{/* @FIX: space-x on the firSubscribest one. */}
<div className="font-display md:flex-row flex flex-col mt-12">
<div className="gap-14 md:grid-flow-col md:grid-cols-5 grid grid-flow-row grid-cols-1">
{siteLinks.siteLinks.map((siteLink, i) => {
return (
<FooterLinks
key={siteLink.text + i}
title={siteLink.text}
links={siteLink.links}
/>
)
})}
</div>
</div>
<Newsletter />
{/* <Newsletter email={email} setEmail={setEmail} /> */}
{/* Socials */}
{/* @FIX: mt is 103px */}
<div className="md:mx-0 place-content-between font-display md:flex-row flex flex-col pb-2 mx-auto mt-24">
<div className="pb-2">
<ul className="flex flex-row space-x-6">
<li className="items-center self-center align-middle">
<a href="https://github.com/nhost" target="_blank" rel="noreferrer">
<img src="/logos/Github.svg" width={25} height={25} alt="Nhost on GitHub" />
</a>
</li>
<li className="items-center self-center align-middle">
<a href="https://twitter.com/nhostio" target="_blank" rel="noreferrer">
<img src="/logos/Twitter.svg" width={25} height={25} alt="Nhost on Twitter" />
</a>
</li>
<li className="items-center self-center align-middle">
<a
href="https://www.linkedin.com/company/nhost/"
target="_blank"
rel="noreferrer"
>
<img src="/logos/Linkedin.svg" width={25} height={25} alt="Nhost in LinkedIn" />
</a>
</li>
<li className="items-center self-center align-middle">
<a href="https://discord.com/invite/9V7Qb2U" target="_blank" rel="noreferrer">
<img
src="/logos/Discord.svg"
width={25}
height={25}
alt="Nhost community on Discord"
/>
</a>
</li>
</ul>
</div>
<div className="md:pt-0 md:space-y-0 md:flex-row flex flex-col pt-2 space-y-4 text-xs font-medium text-white">
<a
className="translucent self-center"
href="https://nhost.io/privacy-policy"
target="_blank"
rel="noreferrer"
>
Privacy Policy
</a>
<a
className="md:pl-6 translucent self-center"
href="https://nhost.io/terms-of-service"
target="_blank"
rel="noreferrer"
>
Terms of Service
</a>
<a
className="md:pl-6 translucent self-center"
href="https://nhost.io"
target="_blank"
rel="noreferrer"
>
nhost.io 2022
</a>
</div>
</div>
</div>
</div>
</div>
)
}
interface FooterLinkProps {
title: string
links: Links[]
}
interface Links {
name: string
href: string
}
function FooterLinks({ title, links }: FooterLinkProps) {
return (
<div>
{/* color */}
<h1 className="font-medium text-gray-700 uppercase">{title}</h1>
<ul className="mt-4 space-y-4">
{links.map((link) => {
return (
<li key={link.name} className="text-white font-normal text-sm+ cursor-pointer">
<Link href={link.href}>{link.name}</Link>
</li>
)
})}
</ul>
</div>
)
}

View File

@@ -1,277 +0,0 @@
import { useNavData } from '@/components/NavDataContext'
import { ArrowLeftIcon, MenuIcon } from '@heroicons/react/outline'
import clsx from 'clsx'
import { useRouter } from 'next/dist/client/router'
import Link from 'next/link'
import React, { MouseEvent, useEffect, useState } from 'react'
import Button from '../components/ui/Button'
import { Nav } from './Nav'
export default function Header() {
const [mobileMenu, setMobileMenu] = useState(false)
const router = useRouter()
const GithubStarsCounter = () => {
const repoUrl = `https://api.github.com/repos/nhost/nhost`
const [count, setCount] = useState(null)
const format = (n: number) => (n > 1000 ? `${(n / 1000).toFixed(1)}k` : n)
useEffect(() => {
;(async () => {
const data = await fetch(repoUrl).then((res) => res.json())
setCount(data.stargazers_count)
})()
}, [repoUrl])
return (
<a
className="text-base font-medium leading-snug flex flex-row items-center justify-center px-2.5 py-1.5 rounded opacity-50 hover:opacity-100 mr-8"
href="https://github.com/nhost/nhost"
target="_blank"
rel="noreferrer"
>
<img
className="mr-2"
src="/logos/Github2.svg"
width={20}
height={20}
alt="Nhost on GitHub"
/>
{count === null ? 0 : format(count)}
</a>
)
}
function handleMobileMenuOpen() {
setMobileMenu(true)
}
function handleMobileMenuClose() {
setMobileMenu(false)
}
if (mobileMenu) {
return <MobileNav onClose={handleMobileMenuClose} />
}
return (
<header className="bg-white md:max-w-full menu-card rounded-md px-4 py-0.5 mx-2">
<div className="md:max-w-header2 mx-auto font-display flex flex-row antialiased">
<div className="flex flex-row w-full mx-auto place-content-between py-2">
<div className="flex flex-row">
<button
className="md:hidden w-8 h-8 flex items-center justify-center cursor-pointer text-greyscaleDark"
aria-label="Open menu"
onClick={handleMobileMenuOpen}
>
<MenuIcon className="h-6 w-6" />
</button>
<Link href="/get-started" passHref>
<a className="hidden ml-3 sm:ml-0 self-center md:flex flex-row cursor-pointer">
<img src="/images/nhost-docs.svg" width={110} height={35} alt="Nhost white logo" />
<h1 className="self-center ml-6 font-medium text-greyscaleDark">DOCS</h1>
</a>
</Link>
<div className="ml-20 hidden md:flex flex-row self-center ">
<ul className="flex flex-row items-center self-center antialiased font-medium text-greyscaleGrey font-display">
<Link href="/get-started" passHref={true}>
<a
className={clsx(
'cursor-pointer text-base- self-center hover:text-greyscaleDark transition-colors duration-200 py-3',
router.query.category === 'get-started' && 'text-greyscaleDark'
)}
>
Get Started
</a>
</Link>
<Link href="/platform" passHref={true}>
<a
className={clsx(
'ml-12 cursor-pointer text-base- self-center hover:text-greyscaleDark transition-colors duration-200 py-3',
router.query.category === 'platform' && 'text-greyscaleDark'
)}
>
Platform
</a>
</Link>
<Link href="/reference" passHref={true}>
<a
className={clsx(
'ml-12 cursor-pointer text-base- self-center hover:text-greyscaleDark transition-colors duration-200 py-3',
router.query.category === 'reference' && 'text-greyscaleDark'
)}
>
Reference
</a>
</Link>
</ul>
</div>
</div>
<div className="hidden sm:flex self-center">
<GithubStarsCounter />
<Button
className="self-center"
variant="primary"
href={'https://app.nhost.io'}
Component="a"
target="_blank"
rel="noreferrer"
type={null}
>
Go to Nhost
</Button>
</div>
</div>
</div>
</header>
)
}
export type MobileNavProps = {
onClose?: VoidFunction
}
export function MobileNav({ onClose }: MobileNavProps) {
const { getConvolutedNavByCategory } = useNavData()
const router = useRouter()
const [selectedMenuSlug, setSelectedMenuSlug] = useState<string | null>(null)
const [selectedMenuName, setSelectedMenuName] = useState<string | null>(null)
function handleMenuSelect(event: MouseEvent<HTMLAnchorElement>, slug: string, name: string) {
event.preventDefault()
setSelectedMenuSlug(slug)
setSelectedMenuName(name)
}
function clearMenuSelection() {
setSelectedMenuSlug(null)
setSelectedMenuName(null)
}
return (
<div className="bg-white menu-card rounded-lg px-4 pb-6 max-w-full mx-2">
<div className="flex flex-col w-full py-3 mx-auto">
<div className="grid grid-flow-col justify-between items-center">
{!selectedMenuSlug && (
<>
<button
className="w-8 h-8 flex items-center justify-center cursor-pointer text-greyscaleDark"
aria-label="Close menu"
onClick={onClose}
>
<MenuIcon className="h-6 w-6" aria-hidden="true" />
</button>
<Link href="/get-started" passHref>
<a
className="ml-3 sm:ml-0 self-center flex flex-row cursor-pointer"
onClick={onClose}
>
<img
src="/images/nhost-docs.svg"
width={110}
height={35}
alt="Nhost white logo"
/>
<h1 className="self-center ml-5 font-medium text-greyscaleDark">DOCS</h1>
</a>
</Link>
</>
)}
{selectedMenuSlug && (
<button
className="ml-2 h-8 grid grid-flow-col gap-2 items-center justify-center cursor-pointer text-greyscaleDark"
aria-label="Go back to main menu"
onClick={clearMenuSelection}
>
<ArrowLeftIcon className="h-4 w-4" aria-hidden="true" />{' '}
<span className="font-medium text-base-">{selectedMenuName}</span>
</button>
)}
{/* Placeholder for making logo appear correctly in the middle */}
<div className="w-8 h-8" />
</div>
<div className="flex flex-col py-6 mt-4 border-divide border-t border-b">
{!selectedMenuSlug && (
<ul className="flex flex-col font-medium text-greyscaleDark text-base- font-display space-y-4 text-left px-4">
<li
className={clsx(
'cursor-pointer text-base- hover:text-greyscaleDark transition-colors duration-200 text-left ',
router.query.category === 'get-started' && 'text-greyscaleDark'
)}
>
<Link href="/get-started" passHref>
<a
className="block"
onClick={(event) => handleMenuSelect(event, 'get-started', 'Get Started')}
>
Get Started
</a>
</Link>
</li>
<li
className={clsx(
'cursor-pointer text-base- hover:text-greyscaleDark transition-colors duration-200 text-left',
router.query.category === 'platform' && 'text-greyscaleDark'
)}
>
<Link href="/platform">
<a
className="block"
onClick={(event) => handleMenuSelect(event, 'platform', 'Platform')}
>
Platform
</a>
</Link>
</li>
<li
className={clsx(
'cursor-pointer text-base- hover:text-greyscaleDark transition-colors duration-200',
router.query.category === 'reference' && 'text-greyscaleDark'
)}
>
<Link href="/reference">
<a
className="block"
onClick={(event) => handleMenuSelect(event, 'reference', 'Reference')}
>
Reference
</a>
</Link>
</li>
</ul>
)}
{selectedMenuSlug && (
<Nav
category={selectedMenuSlug}
categoryTitle={selectedMenuName}
convolutedNav={getConvolutedNavByCategory(selectedMenuSlug)}
onMenuSelected={onClose}
/>
)}
</div>
</div>
<div className="sm:flex self-center py-2">
<Button
className="self-center"
variant="primary"
href="https://app.nhost.io"
Component="a"
target="_blank"
rel="noreferrer"
type={null}
>
Go to Nhost
</Button>
</div>
</div>
)
}

View File

@@ -1,42 +0,0 @@
import Text from '@/components/ui/Text/Text'
import createKebabCase from '@/utils/createKebabCase'
import clsx from 'clsx'
import { useRouter } from 'next/dist/client/router'
import Link from 'next/link'
import React from 'react'
export function HeadingsNavigation(props) {
const {
query: { category, subcategory, post }
} = useRouter()
return (
<div className="hidden xl:flex flex-col mt-10 sticky top-20 w-full h-full pb-12 pl-4">
<Text className="font-medium" color="greyscaleDark" size="normal">
On this page
</Text>
<ul className="space-y-2 mt-2 pl-1">
{props.headings.map((heading) => {
return (
<Link
passHref
key={heading.name}
href={`/${category}/${subcategory}/${post}#${createKebabCase(heading.name)}`}
>
<li
className={clsx(
'text-blue hover:text-darkBlue transition-all duration-300 cursor-pointer hover:translate-x-0.5 transform',
heading.depth === 1 && 'text-sm font-medium',
heading.depth === 2 && 'pl-3 text-sm font-normal',
heading.depth === 3 && 'pl-7 text-xs font-normal'
)}
>
{heading.name}
</li>
</Link>
)
})}
</ul>
</div>
)
}

View File

@@ -1,73 +0,0 @@
import { lightNhostTheme } from '@/data/lightTheme'
import { useState } from 'react'
import { Light as SyntaxHighlighter } from 'react-syntax-highlighter'
import js from 'react-syntax-highlighter/dist/cjs/languages/hljs/javascript'
import Check from '../icons/Check'
import Copy from '../icons/Copy'
// @ts-ignore -> add to types
// @ts-ignore -> add to types
SyntaxHighlighter.registerLanguage('js', js)
export interface CodeEditorProps {
code: string
fileName: string
className: string
fixed: boolean
gradient: boolean
deploy: boolean
url?: string
children: any
}
const CodeEditor = (props: CodeEditorProps) => {
const { children, url } = props
const [copied, setCopied] = useState(false)
return (
<div className="relative min-w-full pb-0 my-4 rounded-md">
<div className="absolute right-0">
<button
className="ml-1.5 self-center inline-block cursor-pointer rounded-md mt-2 mr-2"
onClick={() => {
navigator.clipboard.writeText(children).catch((e) => {
// eslint-disable-next-line no-console
console.log(e)
})
setCopied(true)
setTimeout(() => {
setCopied(false)
}, 1000)
}}
>
{/* <Tooltip text={"Copied!"}> */}
{copied ? (
<Check className="w-3.5 h-3.5 mr-0.5 text-greenDark transition-colors self-center" />
) : (
<Copy className="w-4 h-4 text-gray-500 transition-colors hover:text-gray-900" />
)}
{/* </Tooltip> */}
</button>
</div>
<SyntaxHighlighter
style={lightNhostTheme}
wrapLongLines={true}
wrapLines={true}
lineProps={{
style: { wordBreak: 'break-all', whiteSpace: 'pre-wrap' }
}}
customStyle={{
paddingLeft: '12px',
fontSize: '13px'
}}
className="pt-2 rounded-md"
showLineNumbers={false}
>
{children}
</SyntaxHighlighter>
</div>
)
}
export default CodeEditor

View File

@@ -1,147 +0,0 @@
import AnchorLink, { AnchorLinkProps } from '@/components/AnchorLink'
import CodeComponent, { CodeEditorProps } from '@/components/MDX/CodeComponent'
import Text, { TextProps } from '@/components/ui/Text'
import clsx from 'clsx'
import Image from 'next/image'
import Link from 'next/link'
import React, { DetailedHTMLProps, HTMLProps, PropsWithChildren } from 'react'
import Command from '../Command'
import Divider from '../Divider'
function Note({ children }: PropsWithChildren<unknown>) {
return (
<div className="px-5 py-5 my-5 space-y-2 text-white rounded-md bg-verydark">
<Text className="text-white">Note</Text>
<Text className="text-white">{children}</Text>
</div>
)
}
function Video({
src,
...props
}: DetailedHTMLProps<HTMLProps<HTMLSourceElement>, HTMLSourceElement>) {
return (
<div className="flex justify-center mx-10 my-8">
<video width="800" controls>
<source src={src} type="video/mp4" {...props} />
</video>
</div>
)
}
const CustomLink = ({
className,
children,
href,
...props
}: DetailedHTMLProps<HTMLProps<HTMLAnchorElement>, HTMLAnchorElement>) => {
const isInternalLink = href && ['./', '../', '/', '#'].some((symbol) => href.startsWith(symbol))
if (isInternalLink) {
return (
<Link href={href} passHref>
<a className={clsx('font-medium text-blue', className)} {...props}>
{children}
</a>
</Link>
)
}
return (
<a
target="_blank"
className={clsx('font-medium text-blue', className)}
rel="noopener noreferrer"
href={href}
{...props}
>
{children}
</a>
)
}
const components = {
img: (props: DetailedHTMLProps<HTMLProps<HTMLImageElement>, HTMLImageElement>) => {
return (
<span className="block mx-10 mt-5 ">
<img src={props.src} alt={props.alt} className="mx-auto mt-2 border" />
{props.alt && (
<div className="block pt-4 mb-8 text-sm text-center text-secondary">
<Text color="greyscaleDark" size="tiny">
{props.alt}
</Text>
</div>
)}
</span>
)
},
Video,
Image,
Text,
Note,
code: (props: CodeEditorProps) => {
if (props.className && props.className.includes('language')) {
return <CodeComponent {...props} />
} else {
return <Command>{props.children}</Command>
}
},
Divider,
a: CustomLink,
h1: (props: AnchorLinkProps) => {
return (
<>
<Divider />
<AnchorLink {...props} className="text-3xl cursor-pointer md:text-4xl" />
</>
)
},
h2: (props: AnchorLinkProps) => {
return (
<div className="mt-10">
<AnchorLink {...props} className="cursor-pointer text-lg sm:text-xl md:text-2.5xl" />
</div>
)
},
h3: (props: AnchorLinkProps) => {
return (
<div className="mt-8">
<AnchorLink {...props} className="text-lg cursor-pointer" />
</div>
)
},
h4: (props: AnchorLinkProps) => {
return (
<div className="mt-4">
<AnchorLink {...props} className="font-bold cursor-pointer text-base-" />
</div>
)
},
p: (props: TextProps) => {
return (
<Text
variant="body"
size="small"
color="dark"
className="my-2 antialiased leading-6"
{...props}
/>
)
},
th: ({
className,
...props
}: DetailedHTMLProps<HTMLProps<HTMLTableCellElement>, HTMLTableCellElement>) => {
return <th className={clsx('font-display', className)} {...props} />
},
td: ({
className,
...props
}: DetailedHTMLProps<HTMLProps<HTMLTableCellElement>, HTMLTableCellElement>) => {
return <td className={clsx('font-display', className)} {...props} />
}
}
export default components

View File

@@ -1,3 +0,0 @@
export function Main({ children }) {
return <div className="flex flex-col w-full lg:min-w-body lg:w-body">{children}</div>
}

View File

@@ -1,130 +0,0 @@
import Text from '@/components/ui/Text'
import clsx from 'clsx'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { ParsedUrlQuery } from 'querystring'
import React, { MouseEvent } from 'react'
import { fixTitle } from '../utils/fixTitle'
import { NavItem } from './NavDataContext'
export type NavProps = {
/**
* Class name to apply to the wrapper element.
*/
className?: string
/**
* Category slug.
*/
category: string
/**
* The category title.
*/
categoryTitle: string
/**
* Convoluted navigation.
*/
convolutedNav: NavItem[]
/**
* Function to be called when a menu item is selected.
*/
onMenuSelected?: (event?: MouseEvent<HTMLAnchorElement, MouseEvent>) => void
}
export function Nav({ className, onMenuSelected, ...props }: NavProps) {
const router = useRouter()
return (
<div className={clsx('lg:min-w-nav lg:w-nav flex-col space-y-5 antialiased mt-1', className)}>
<div>
<ul>
<li
className={clsx(
'transition duration-300 ease-in-out rounded-md hover:text-black hover:bg-veryLightGray',
router.query.category === props.category &&
!router.query.subcategory &&
!router.query.post &&
'bg-veryLightGray'
)}
>
<Link href={`/${props.category}`} passHref>
<Text
variant="a"
color="greyscaleDark"
size="normal"
className={clsx(
'block py-1.5 px-3 transition-colors duration-300 ease-in-out text-greyscaleDark hover:text-dark subpixel-antialiased',
'font-medium'
)}
onClick={onMenuSelected}
>
{props.categoryTitle}
</Text>
</Link>
</li>
</ul>
</div>
{props.convolutedNav.map((elem) => {
const parentCategory = props.category.replace(' ', '-')
return (
<div key={elem.category}>
<Link href={`/${parentCategory}/${elem.category}/`} passHref>
<Text
variant="a"
color="greyscaleGrey"
size="normal"
className="block px-3 py-px font-medium capitalize"
onClick={onMenuSelected}
>
{/* Split */}
{fixTitle(elem)}
</Text>
</Link>
<ul className="mt-1 space-y-1 ">
{elem.posts.map((post) => {
const pathToLink =
post.fileName != 'index'
? `/${parentCategory}/${elem.category}/${post.fileName}`
: `/${parentCategory}/${elem.category}`
const shouldHighlight =
router.query.subcategory === elem.category && router.query.post === post.fileName
const shouldHighlightSubcategories =
!router.query.post &&
post.fileName === 'index' &&
elem.category === router.query.subcategory
return (
<li
className={clsx(
'transition duration-300 ease-in-out rounded-md hover:text-black hover:bg-veryLightGray',
(shouldHighlight || shouldHighlightSubcategories) && 'bg-veryLightGray'
)}
key={pathToLink}
>
<Link href={pathToLink} passHref>
<Text
variant="a"
color="greyscaleDark"
size="normal"
className={clsx(
'py-1.5 px-3 block transition-colors duration-300 ease-in-out text-greyscaleDark hover:text-dark subpixel-antialiased block',
(shouldHighlight || shouldHighlightSubcategories) && 'font-medium'
)}
onClick={onMenuSelected}
>
{post.title}
</Text>
</Link>
</li>
)
})}
</ul>
</div>
)
})}
</div>
)
}

View File

@@ -1,85 +0,0 @@
import { ParsedUrlQuery } from 'querystring'
import { createContext, PropsWithChildren, useContext } from 'react'
export type Post = {
/**
* Title of the post.
*/
title: string
/**
* File name where the post is located.
*/
fileName: string
/**
* Order of posts.
*/
order: string[]
}
export type NavItem = {
/**
* Slug of the category.
*/
category: string
/**
* List of posts in the category.
*/
posts: Post[]
}
export type NavDataContextProps = {
/**
* Category slug.
*/
category: string
/**
* The category title.
*/
categoryTitle: string
/**
* Convoluted navigation.
*/
convolutedNav: NavItem[]
/**
* Available menu items for all categories.
*/
availableCategoryMenus: {
/**
* Slug of the category.
*/
slug: string
/**
* Menu items of the category.
*/
items: NavItem[]
}[]
}
export const NavDataContext = createContext<NavDataContextProps>(null)
export function NavDataProvider({ children, ...props }: PropsWithChildren<NavDataContextProps>) {
return <NavDataContext.Provider value={props}>{children}</NavDataContext.Provider>
}
export function useNavData() {
const context = useContext(NavDataContext)
if (!context) {
throw new Error(`"useNavData" must be used within a "NavDataProvider"`)
}
/**
* Returns all of the navigation items for the specified category.
*
* @param slug Slug of the category.
* @returns All of the navigation items for the specified category.
*/
function getConvolutedNavByCategory(slug: string) {
return (
context.availableCategoryMenus.find(({ slug: category }) => category === slug)?.items ||
context.convolutedNav
)
}
return { getConvolutedNavByCategory, ...context }
}

View File

@@ -1,47 +0,0 @@
import React from 'react'
import AnchorLink from './AnchorLink'
import CustomLink from './CustomLink'
import createKebabCase from '../utils/createKebabCase'
import Text from '@/components/ui/Text'
export default function Nav({ headings }: { headings: any }) {
return (
<div className="flex flex-col space-y-5 mt-9">
{headings.map((heading, index) => {
return (
<NavLink
category={heading.category}
post={heading.post}
headings={heading.content}
key={heading.category + index}
/>
)
})}
</div>
)
}
function NavLink({ category, headings, post }) {
const href = `/${category}/${post.toLowerCase()}`
return (
<div className="mt-10 font-display" key={category}>
<CustomLink href={href} activeClassName="active" key={category}>
<Text variant="body" size="small" className="capitalize cursor-pointer text-grayscale">
{post.split('-').join(' ')}
</Text>
</CustomLink>
<ul className="space-y-1">
{headings.map((heading: { value: string }) => {
return (
<li className="py-1 capitalize rounded-sm" key={heading.value}>
<AnchorLink
id={`/${category}/${post.toLowerCase()}#${createKebabCase(heading.value)}`}
>{`/${heading.value}`}</AnchorLink>
</li>
)
})}
</ul>
</div>
)
}

View File

@@ -1,121 +0,0 @@
import axios from 'axios'
import React, { useEffect } from 'react'
import { useState } from 'react'
import Input from './ui/Input/Input'
import Loading from './ui/Loading'
function NewsletterForm(props) {
return (
<div className="flex flex-row w-64 mt-5">
<form
className="grid grid-flow-row sm:grid-flow-col gap-4"
onSubmit={(e) => props.subscribe(e)}
>
<Input
color="dark"
placeholder="Email address"
value={props.email}
onChange={props.setEmail}
type="email"
/>
<button
className="btn-subscribe font-display text-greyscaleDark font-medium cursor-pointer"
disabled={!props.email}
>
{!props.loading ? 'Subscribe' : <Loading />}
</button>
</form>
</div>
)
}
function NewsletterError({ errorMessage, retry }) {
const formattedError = errorMessage.includes('already a list member')
? errorMessage.split('.').slice(0, 2).join('.')
: errorMessage
return (
<div className="grid grid-flow-row md:grid-flow-col gap-4 mt-5">
<p className="text-white font-normal text-sm mt-2.5">{formattedError}.</p>
<button
className="btn-subscribe font-display text-greyscaleDark font-medium cursor-pointer"
onClick={() => {
retry()
}}
>
Try again
</button>
</div>
)
}
export function Newsletter() {
const [email, setEmail] = useState('')
const [error, setError] = useState('')
const [success, setSuccess] = useState('')
const [loading, setLoading] = useState(false)
const handleSubmit = async function (e) {
e.preventDefault()
setLoading(true)
try {
const res = await axios.post('/api/add-email-to-newsletter', {
email
})
if (!res.data.success) {
setError(res.data.message)
return
}
setSuccess(res.data.message)
} catch (error) {
setError(
error.message ||
"We've encountered an error while subscribing you. Try again in a few seconds"
)
} finally {
setEmail('')
setLoading(false)
}
}
useEffect(() => {
if (success) {
let id = setInterval(() => {
setSuccess('')
}, 5000)
return () => clearInterval(id)
}
}, [success])
return (
<div className="font-display flex flex-col mt-16">
<div className="md:px-0 w-full mx-auto">
<h1 className="font-medium text-gray-700 uppercase">newsletter</h1>
<p className="text-white font-normal text-sm+ mt-2.5">
Platform updates and news on web and mobile development.
</p>
{error ? (
<NewsletterError errorMessage={error} retry={() => setError('')} />
) : !success ? (
<NewsletterForm
email={email}
setEmail={setEmail}
subscribe={handleSubmit}
loading={loading}
/>
) : (
<NewsletterSuccess success={success} />
)}
</div>
</div>
)
}
function NewsletterSuccess({ success }) {
return (
<div className="flex flex-row mt-5">
<p className="text-white font-normal text-sm mt-2.5">{success}</p>
</div>
)
}

View File

@@ -1,32 +0,0 @@
import Text from '@/components/ui/Text'
import React from 'react'
import Github from '@/components/icons/Github'
import { DOCS_GITHUB_ENDPOINT } from '@/utils/constants'
export function PostMetadata(props) {
return (
<div className="mt-3 flex flex-row border-t pt-6 place-content-between px-3">
<div className="flex flex-row">
<Github className="text-blue" />
<a
className="text-blue text-xs ml-2 self-center"
href={`${DOCS_GITHUB_ENDPOINT}${props.category}/${props.subcategory}/${props.post}.mdx`}
target="_blank"
rel="noreferrer"
>
Edit this page on GitHub
</a>
</div>
<div>
{props.frontmatter.updatedAt ? (
<div className="flex">
<Text size="tiny">Last updated on {props.frontmatter.updatedAt}</Text>
</div>
) : (
''
)}
</div>
</div>
)
}

View File

@@ -1,52 +0,0 @@
import ArrowLeft from '@/components/icons/ArrowLeft'
import ArrowRight from '@/components/icons/ArrowRight'
import Text from '@/components/ui/Text/Text'
import { orderTwo } from '@/lib/order'
import { useRouter } from 'next/dist/client/router'
import Link from 'next/link'
import React from 'react'
export function SubNavigation({ category, subcategory, post, convolutedNav }) {
const router = useRouter()
const indexOfSubcategory = Object.keys(orderTwo[category]).indexOf(subcategory)
const indexOfPreviousPost = orderTwo[category][subcategory].indexOf(post) - 1
let indexOfCurrentPost = orderTwo[category][subcategory].indexOf(post)
const previousPost = orderTwo[category][subcategory][indexOfCurrentPost - 1]
let indexOfNextPost = orderTwo[category][subcategory].indexOf(post) + 1
if (!router.query.post) indexOfCurrentPost++ && indexOfNextPost++
const nextPost = orderTwo[category][subcategory][indexOfCurrentPost + 1]
const pathLink = `/${category}/${subcategory}/${previousPost === 'index' ? '' : previousPost}`
return (
<div className="flex flex-row mt-10 place-content-between px-2 antialiased">
<Link href={pathLink} passHref>
<Text variant="a" color="blue" className="font-medium cursor-pointer" size="small">
{indexOfCurrentPost === 0 || !router.query.post ? (
<></>
) : (
<div className="flex flex-row self-center hover:-translate-x-1 transform transition-transform duration-500">
<ArrowLeft className="self-center mr-1" />
{convolutedNav[indexOfSubcategory].posts[indexOfPreviousPost].title}
</div>
)}
</Text>
</Link>
<Link href={`/${category}/${subcategory}/${nextPost}`} passHref>
<Text variant="a" size="small" color="blue" className="font-medium cursor-pointer">
{nextPost ? (
<div className="flex flex-row self-center hover:translate-x-1 transform transition-transform duration-500">
{convolutedNav[indexOfSubcategory].posts[indexOfNextPost].title}
<ArrowRight className="self-center ml-1" />
</div>
) : (
<></>
)}
</Text>
</Link>
</div>
)
}

View File

@@ -1,25 +0,0 @@
export function Tooltip({ text, children, position = '-mx-20', color = '' }) {
return (
<div className="relative has-tooltip">
{children}
<span
className={`z-50 px-1.5 py-0.5 text-sm bg-verydark -my-12 -mx-9 text-white rounded-sm shadow-2xl border tooltip font-medium`}
>
{text}
</span>
<svg
className="absolute z-50 w-3 h-2 text-verydark transform tooltip -top-2 right-0.5"
x="0px"
y="0px"
viewBox="0 0 255 255"
xmlSpace="preserve"
>
<polygon
className="border border-white fill-current text-lightbrand"
points="0,0 127.5,127.5 255,0"
/>
</svg>
</div>
)
}

View File

@@ -1,46 +0,0 @@
import CaretRight from '@/components/icons/CaretRight'
import Text from '@/components/ui/Text/Text'
import Link from 'next/link'
import React from 'react'
export function TopNavigation(props) {
const category = props.category.split('-').join(' ')
function uppercaseEdgeCases(subcategory) {
switch (subcategory) {
case 'sdk':
return 'SDK'
case 'cli':
return 'CLI'
default:
return subcategory
}
}
const subcategory = props.subcategory.split('-').join(' ')
return (
<div className="flex flex-row w-full">
<Link href={`/${props.category}`} passHref>
<Text
variant="a"
color="grey"
className="self-center font-medium capitalize transition-colors duration-200 cursor-pointer hover:text-greyscaleDark"
size="normal"
>
{category}
</Text>
</Link>
<CaretRight className="self-center text-greyscaleGrey mx-1" />
<Link href={`/${props.category}/${props.subcategory}`} passHref>
<Text
color="grey"
className="self-center font-medium capitalize transition-colors duration-200 cursor-pointer hover:text-greyscaleDark"
size="normal"
>
{uppercaseEdgeCases(subcategory)}
</Text>
</Link>
</div>
)
}

View File

@@ -1,16 +0,0 @@
import * as React from 'react'
function ArrowLeft(props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>) {
return (
<svg width={16} height={16} fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
d="M13.5 8h-11M7 3.5L2.5 8 7 12.5"
stroke="#0052CD"
strokeWidth={1.5}
strokeLinejoin="round"
/>
</svg>
)
}
export default ArrowLeft

View File

@@ -1,16 +0,0 @@
import * as React from 'react'
function ArrowRight(props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>) {
return (
<svg width={16} height={16} fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
d="M2.5 8h11M9 3.5L13.5 8 9 12.5"
stroke="#0052CD"
strokeWidth={1.5}
strokeLinejoin="round"
/>
</svg>
)
}
export default ArrowRight

View File

@@ -1,11 +0,0 @@
import * as React from 'react'
function CaretRight(props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>) {
return (
<svg width={16} height={16} fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path d="M6 3l5 5-5 5" stroke="currentColor" strokeWidth={1.5} strokeLinejoin="round" />
</svg>
)
}
export default CaretRight

View File

@@ -1,11 +0,0 @@
import * as React from 'react'
function Check(props: any) {
return (
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path d="M13.5 4.5l-7 7L3 8" stroke="currentColor" strokeWidth={2} strokeLinejoin="round" />
</svg>
)
}
export default Check

View File

@@ -1,11 +0,0 @@
import * as React from 'react'
function Check2(props: any) {
return (
<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path d="M27 9L13 23l-7-7" stroke="#0D3777" strokeWidth={2} strokeLinejoin="round" />
</svg>
)
}
export default Check2

View File

@@ -1,20 +0,0 @@
const Copy = ({ ...props }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
{...props}
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
/>
</svg>
)
}
export default Copy

View File

@@ -1,22 +0,0 @@
const Github = ({ ...props }) => {
return (
<div className="cursor-pointer">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
{...props}
>
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22" />
</svg>
</div>
)
}
export default Github

View File

@@ -1,23 +0,0 @@
import * as React from 'react'
function GithubIcon(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
width={14}
height={14}
viewBox="0 0 14 14"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M7 0a7 7 0 00-2.213 13.642c.35.065.478-.152.478-.337 0-.166-.006-.607-.01-1.19-1.947.422-2.357-.94-2.357-.94-.319-.808-.778-1.023-.778-1.023-.635-.434.048-.426.048-.426.703.05 1.073.722 1.073.722.624 1.07 1.638.76 2.037.581.063-.452.244-.76.444-.935-1.554-.177-3.188-.778-3.188-3.46 0-.764.273-1.39.72-1.878-.072-.177-.312-.89.07-1.853 0 0 .586-.188 1.924.718A6.705 6.705 0 017 3.385c.595.003 1.194.08 1.753.236 1.336-.906 1.923-.718 1.923-.718.382.964.142 1.676.07 1.853a2.7 2.7 0 01.72 1.878c0 2.69-1.638 3.281-3.197 3.454.251.216.475.644.475 1.297 0 .935-.009 1.69-.009 1.92 0 .187.127.405.482.337A7 7 0 007 0z"
fill="currentColor"
/>
</svg>
)
}
export default GithubIcon

View File

@@ -1,20 +0,0 @@
const Help = ({ ...props }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
{...props}
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
)
}
export default Help

View File

@@ -1,36 +0,0 @@
import * as React from 'react'
function Logo(props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>) {
return (
<svg viewBox="0 0 95 32" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<g clipPath="url(#prefix__clip0)">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M50.657 15.218h4.792v-3.801h2.535v9.752h-2.535v-3.802h-4.792v3.802H48.21v-9.752h2.446v3.801zm16.996-3.801H63.74c-1.084 0-1.744.204-2.243.703-.497.496-.688 1.126-.688 2.238v3.874c0 1.112.19 1.74.688 2.238.497.498 1.157.703 2.243.703h3.913c1.084 0 1.744-.205 2.243-.703.5-.496.688-1.126.688-2.238v-3.874c0-1.112-.19-1.74-.688-2.239-.5-.498-1.159-.702-2.243-.702zm.483 6.872c0 .57-.19.73-.879.73h-3.121c-.688 0-.88-.16-.88-.73v-3.992c0-.571.192-.731.88-.731h3.121c.705 0 .88.145.88.73v3.993zm8.512-2.97h3.501c1.084 0 1.758.205 2.243.703.439.44.688 1.155.688 1.93v.586c0 .776-.25 1.476-.688 1.93-.485.498-1.145.703-2.243.703h-6.681v-2.15h6.271c.688 0 .88-.16.88-.73v-.292c0-.571-.192-.731-.88-.731h-3.5c-1.087 0-1.76-.207-2.243-.703-.439-.44-.689-1.154-.689-1.93v-.585c0-.776.248-1.477.689-1.93.485-.499 1.142-.703 2.242-.703h6.333v2.149h-5.923c-.688 0-.879.16-.879.73v.292c0 .572.191.732.88.732zm7.983-1.753v-2.15h9.963v2.15h-3.75v7.603h-2.448v-7.603H84.63z"
fill="#21324B"
/>
<path
d="M42.355 11.34h-3.913c-1.084 0-1.744.204-2.243.703-.497.496-.688 1.126-.688 2.236v6.888h2.447V14.22c0-.57.191-.73.88-.73h3.121c.704 0 .879.146.879.73v6.948h2.448V14.28c0-1.112-.191-1.74-.689-2.236-.497-.5-1.156-.705-2.242-.705z"
fill="#0052CD"
/>
<g clipPath="url(#prefix__clip1)">
<path
d="M27.208 6.858L16.055.43a3.268 3.268 0 00-3.246 0 3.245 3.245 0 00-1.621 2.803v.839l-.727-.42a3.268 3.268 0 00-3.246 0A3.246 3.246 0 005.594 6.46v.838l-.727-.419a3.268 3.268 0 00-3.245 0A3.246 3.246 0 000 9.683v20.136a1.526 1.526 0 002.47 1.195L8 26.66l8.53 4.914a1.548 1.548 0 001.526 0c.47-.272.763-.776.763-1.319V18.14a5.595 5.595 0 00-2.797-4.835l-2.797-1.612V3.236a1.21 1.21 0 011.815-1.045l11.153 6.425a3.562 3.562 0 011.78 3.076v15.089c0 .43-.232.83-.605 1.045l-2.955 1.703V14.914a5.595 5.595 0 00-2.797-4.834L14.75 6.125v2.343l5.849 3.37a3.559 3.559 0 011.78 3.076v15.492c0 .54.292 1.047.763 1.319a1.549 1.549 0 001.526 0l3.719-2.143c1-.577 1.622-1.65 1.622-2.805V11.688a5.609 5.609 0 00-2.801-4.83zM15 15.062a3.559 3.559 0 011.78 3.077v11.24L9.718 25.31l2.267-1.782a3.214 3.214 0 001.236-2.542V14.04l1.78 1.023zm-3.813-2.197v8.117c0 .373-.169.72-.461.948l-8.693 6.84V9.68a1.209 1.209 0 011.814-1.045L5.594 9.64v14.39l2.033-1.6V6.458a1.209 1.209 0 011.815-1.045l1.745 1.004v4.102L9.155 9.347v2.345l2.034 1.173z"
fill="#0052CD"
/>
</g>
</g>
<defs>
<clipPath id="prefix__clip0">
<path fill="#fff" d="M0 0h94.582v32H0z" />
</clipPath>
<clipPath id="prefix__clip1">
<path fill="#fff" d="M0 0h30.009v31.927H0z" />
</clipPath>
</defs>
</svg>
)
}
export default Logo

View File

@@ -1,15 +0,0 @@
const Permalink = ({ ...props }) => {
return (
<svg fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
d="M5.878 10.12l4.243-4.242M9.06 11.182L7.293 12.95A3 3 0 013.05 8.707l1.768-1.768M11.182 9.06l1.768-1.768A3 3 0 008.707 3.05L6.939 4.818"
stroke="#21324B"
strokeWidth={1.5}
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
)
}
export default Permalink

View File

@@ -1,21 +0,0 @@
import * as React from 'react'
function Vector(props: JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>) {
return (
<svg
width={260}
height={117}
viewBox="0 0 260 117"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M35.5 1h1V0h-1v1zM254 87l-5.773 10h11.546L254 87zM.5 2h2.188V0H.5v2zm6.563 0h4.375V0H7.061v2zm8.75 0h4.374V0h-4.375v2zm8.75 0h4.375V0h-4.375v2zm8.75 0H35.5V0h-2.188v2zM34.5 1v1.982h2V1h-2zm0 5.946v3.965h2V6.946h-2zm0 7.929v3.964h2v-3.964h-2zm0 7.929v3.964h2v-3.964h-2zm0 7.928v3.964h2v-3.964h-2zm0 7.929v3.964h2v-3.964h-2zm0 7.928v3.965h2v-3.965h-2zm0 7.929v3.964h2v-3.964h-2zm0 7.928v3.965h2v-3.965h-2zm0 7.929v3.964h2v-3.964h-2zm0 7.929v3.964h2v-3.964h-2zm0 7.928v3.964h2v-3.964h-2zm0 7.929v3.964h2v-3.964h-2zm0 7.928v3.965h2v-3.965h-2zm0 7.929V112h2v-1.982h-2zm0 1.982c0 .676.135 1.323.38 1.914l1.847-.766A2.985 2.985 0 0136.5 112h-2zm3.086 4.62c.59.245 1.238.38 1.914.38v-2a2.99 2.99 0 01-1.148-.227l-.766 1.847zm1.914.38h2.024v-2H39.5v2zm6.072 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.097 0h4.048v-2H69.86v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0H90.1v-2h-4.048v2zm8.096 0h4.048v-2H94.15v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.097 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.049v-2h-4.049v2zm8.097 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.049v-2h-4.049v2zm8.097 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0h4.048v-2h-4.048v2zm8.096 0H250v-2h-2.024v2zm2.024 0c.676 0 1.323-.135 1.914-.38l-.766-1.847A2.987 2.987 0 01250 115v2zm4.62-3.086c.245-.591.38-1.238.38-1.914h-2c0 .409-.081.796-.227 1.148l1.847.766zM255 112v-2.083h-2V112h2zm0-6.25v-4.167h-2v4.167h2zm0-8.333V93.25h-2v4.167h2z"
fill="#C2CAD6"
/>
</svg>
)
}
export default Vector

View File

@@ -1,97 +0,0 @@
.root {
@apply font-display flex px-2 py-1.6;
justify-content: center;
align-items: center;
line-height: 22px;
font-size: 15px;
}
.primary {
@apply bg-blue font-display flex font-medium text-white;
font-size: 15px;
border-radius: 4px;
line-height: 22px;
}
.danger {
@apply py-2.5 px-2.5 text-red font-display font-medium;
height: 36px;
border-radius: 4px;
justify-content: center;
align-items: center;
display: flex;
flex-direction: row;
border: 1px solid #c2cad6;
}
.blue {
@apply text-blue;
}
.red {
@apply text-red;
}
.root:focus {
@apply outline-none;
}
.root[data-active] {
@apply bg-accent-6;
}
.loading {
@apply bg-accent-1 text-accent-3 border-accent-2 cursor-not-allowed;
}
.secondary {
@apply font-display text-greyscaleDark bg-white;
font-weight: 500;
font-size: 15px;
border: 1px solid #c2cad6;
box-sizing: border-box;
border-radius: 4px;
}
.menu {
@apply font-display text-greyscaleDark cursor-pointer;
font-family: Inter;
font-style: normal;
font-weight: 500;
font-size: 15px;
}
.dark {
@apply font-medium text-white;
background: #21324b;
border-radius: 4px;
}
.dark .disabled {
@apply font-medium text-white;
background: #21324b;
border-radius: 4px;
}
.secondary .disabled {
@apply font-medium;
color: rgba(9, 34, 72, 0.4);
}
.disabled,
.disabled:hover {
@apply text-gray-400 cursor-not-allowed;
border-radius: 4px;
}
.small {
width: 51px;
height: 24px;
font-family: Inter;
font-style: normal;
font-weight: 500;
font-size: 12px;
line-height: 16px;
}
.transparent {
@apply px-0 py-1 bg-transparent border-0;
}
.border {
@apply px-2 py-1.5;
border: 1px solid #c2cad6;
border-radius: 4px;
}

View File

@@ -1,88 +0,0 @@
import cn from 'classnames'
import React, { ButtonHTMLAttributes, forwardRef, JSXElementConstructor, useRef } from 'react'
import mergeRefs from 'react-merge-refs'
import s from './Button.module.css'
// import Loading from "../components/ui/Loading";
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
href?: string
className?: string
variant?: 'primary' | 'dark' | 'secondary' | 'menu' | 'danger'
color?: 'blue' | 'red'
active?: boolean
type?: 'submit' | 'reset' | 'button'
Component?: string | JSXElementConstructor<any>
width?: string | number
loading?: boolean
disabled?: boolean
small?: boolean
transparent?: boolean
target?: string
rel?: string
onClick?: any
border?: boolean
}
// eslint-disable-next-line react/display-name
export const Button: React.FC<ButtonProps> = forwardRef((props, buttonRef) => {
const {
className,
variant,
children,
active,
width,
small,
href,
color,
border,
loading = false,
disabled = false,
transparent = false,
style = {},
type = 'button',
Component = 'button',
...rest
} = props
const ref = useRef<typeof Component>(null)
const rootClassName = cn(
s.root,
{
[s.primary]: variant === 'primary',
[s.secondary]: variant === 'secondary',
[s.menu]: variant === 'menu',
[s.dark]: variant === 'dark',
[s.danger]: variant === 'danger',
[s.loading]: loading,
[s.disabled]: disabled,
[s.small]: small,
[s.transparent]: transparent,
[s.blue]: color === 'blue',
[s.red]: color === 'red',
[s.border]: border
},
className
)
return (
<Component
aria-pressed={active}
data-variant={variant}
ref={mergeRefs([ref, buttonRef])}
className={rootClassName}
disabled={disabled}
type={type}
href={href}
style={{
width,
...style
}}
{...rest}
>
{children}
</Component>
)
})
export default Button

View File

@@ -1 +0,0 @@
export { default } from './Button'

View File

@@ -1,31 +0,0 @@
.root {
@apply border-input text-dark focus:ring-dark focus:border-dark flex px-2 py-2 text-xs rounded-md shadow-sm;
border: 1px solid #c2cad6;
}
.root:focus {
@apply outline-none;
}
.dark {
flex: none;
width: 247px;
height: 36px;
left: 0px;
top: 0px;
color: white;
/* Translucent white/White light (20) */
background: rgba(255, 255, 255, 0.2);
border-radius: 4px;
border: none;
/* Inside Auto Layout */
order: 0;
flex-grow: 1;
}
.disabled,
.disabled:hover {
@apply text-accent-3 cursor-not-allowed;
}

View File

@@ -1,44 +0,0 @@
import cn from 'classnames'
import s from './Input.module.css'
import React, { InputHTMLAttributes } from 'react'
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
className?: string
onChange?: (...args: any[]) => any
disabled?: boolean
}
type Color = 'dark' | 'light'
const Input: React.FC<InputProps> = (props) => {
const { className, children, onChange, color, disabled, placeholder = '', ...rest } = props
const rootClassName = cn(
s.root,
{ [s.disabled]: disabled, [s.dark]: color === 'dark' },
className
)
const handleOnChange = (e: any) => {
if (onChange) {
onChange(e.target.value)
}
return null
}
return (
<input
className={rootClassName}
onChange={handleOnChange}
disabled={disabled}
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"
spellCheck="false"
placeholder={placeholder}
{...rest}
/>
)
}
export default Input

View File

@@ -1 +0,0 @@
export { default } from './Input'

View File

@@ -1,19 +0,0 @@
import React from 'react'
export default function Loading() {
return (
<svg
className="w-5 h-5 text-dark animate-spin"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
>
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4" />
<path
className="opacity-75"
fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
/>
</svg>
)
}

View File

@@ -1,90 +0,0 @@
.body {
font-family: Inter;
font-style: normal;
}
.dark {
@apply text-dark;
}
.greyscaleDark {
@apply text-greyscaleDark;
}
.white {
@apply text-white;
}
.greyscaleGrey {
@apply text-greyscaleGrey;
}
.grey {
@apply text-grayscale;
}
.red {
@apply text-red;
}
.blue {
@apply text-blue;
}
.heading {
@apply font-display;
}
.pageHeading {
@apply pt-1 pb-4 text-2xl font-bold leading-7 tracking-wide;
}
.a {
font-family: Inter;
font-style: normal;
}
.tiny {
font-size: 12px;
line-height: 16px;
}
.small {
font-size: 15px;
}
.normal {
font-size: 15px;
line-height: 22px;
}
.large {
font-size: 18px;
line-height: 26px;
}
.big {
font-size: 26px;
line-height: 36px;
}
.heading {
font-size: 36px;
line-height: 48px;
}
.subHeading {
font-family: Inter;
font-style: normal;
font-weight: 500;
}
.sectionHeading {
@apply text-lg font-medium font-display;
color: gray;
}
.item {
font-family: Inter;
font-style: normal;
}

View File

@@ -1,123 +0,0 @@
import cn from 'classnames'
import React, {
CSSProperties,
ForwardedRef,
forwardRef,
FunctionComponent,
JSXElementConstructor
} from 'react'
import mergeRefs from 'react-merge-refs'
import s from './Text.module.css'
export interface TextProps {
variant?: Variant
className?: string
style?: CSSProperties
children?: React.ReactNode | any
color?: Color
html?: string
size?: Size
target?: any
rel?: any
href?: string
onClick?: () => any
name?: any
}
type Variant = 'heading' | 'body' | 'pageHeading' | 'sectionHeading' | 'item' | 'subHeading' | 'a'
type Size = 'tiny' | 'small' | 'normal' | 'large' | 'big' | 'heading'
type Color = 'dark' | 'grey' | 'blue' | 'greyscaleDark' | 'greyscaleGrey' | 'red' | 'white'
export const Text: FunctionComponent<TextProps> = forwardRef(function DefaultText(
{
style,
className = '',
variant = 'body',
color,
children,
html,
onClick,
size,
rel,
href,
target,
name
},
ref: ForwardedRef<HTMLElement>
) {
const componentsMap: {
[P in Variant]: React.ComponentType<any> | string
} = {
body: 'div',
heading: 'h1',
pageHeading: 'h1',
sectionHeading: 'h2',
subHeading: 'h3',
item: 'p',
a: 'a'
}
const Component:
| JSXElementConstructor<any>
| React.ReactElement<any>
| React.ComponentType<any>
| string = componentsMap![variant!]
const htmlContentProps = html
? {
dangerouslySetInnerHTML: { __html: html }
}
: {}
const aProps =
variant === 'a'
? {
rel,
href,
target
}
: {}
return (
<Component
ref={ref}
className={cn(
s.root,
{
[s.body]: variant === 'body',
[s.a]: variant === 'a',
[s.heading]: variant === 'heading',
[s.pageHeading]: variant === 'pageHeading',
[s.sectionHeading]: variant === 'sectionHeading',
[s.subHeading]: variant === 'subHeading',
[s.item]: variant === 'item',
[s.dark]: color === 'dark',
[s.greyscaleDark]: color === 'greyscaleDark',
[s.grey]: color === 'grey',
[s.blue]: color === 'blue',
[s.tiny]: size === 'tiny',
[s.small]: size === 'small',
[s.normal]: size === 'normal',
[s.large]: size === 'large',
[s.big]: size === 'big',
[s.heading]: size === 'heading',
[s.greyscaleGrey]: color === 'greyscaleGrey',
[s.red]: color === 'red',
[s.white]: color === 'white'
},
className
)}
onClick={onClick}
style={style}
{...htmlContentProps}
{...aProps}
name={name}
>
{children}
</Component>
)
})
export default Text

View File

@@ -1,2 +0,0 @@
export * from './Text'
export { default } from './Text'

View File

@@ -1,2 +0,0 @@
export * from './Button/Button'
export * from './Text/Text'

View File

@@ -1,90 +0,0 @@
---
title: 'Authenticate users'
---
You defined `select` permissions for the `public` role in the previous section. You will now add `insert` and `create` permissions for authenticated users to secure your app's GraphQL API with authentication.
> Nhost's authentication service lets you deliver frictionless registration and login experiences to your users. We support most social providers and different methods such as email & password and passwordless (magic link).
---
## Insert a test user
Manually create a user by going to your app's **Users** tab (top menu) and clicking on **Add User**.
![Add user](/images/quick-start/add-user.gif)
You will now use that newly created user to make authenticated requests to the API.
---
## Authenticate and query data
Add the following code to sign in the new user and request the list of todos again:
```js
import { NhostClient } from '@nhost/nhost-js'
const nhost = new NhostClient({
backendUrl: 'https://[app-subdomain].nhost.run'
})(async () => {
// Sign in user
const signInResponse = await nhost.auth.signIn({
email: 'joe@example.com',
password: 'securepassword'
})
// Handle sign-in error
if (signInResponse.error) {
throw signInResponse.error
}
// Get todos
const todos = await nhost.graphql.request(`
query {
todos {
id
created_at
name
is_completed
}
}
`)
console.log(JSON.stringify(todos.data, null, 2))
})()
```
Why is the return value `null`? Because when making GraphQL requests as an authenticated user, the `user` role is assumed.
> For authenticated requests, there is always the option to override the default `user` role with any other valid role.
---
## Permissions for users
### Remove permissions for the public role
We won't use the `public` role anymore, so let's remove all permission for that role.
![Remove public permissions from Hasura](/images/quick-start/remove-public-permissions.png)
Now we'll add permissions for the `user` role.
> All logged-in users have the `user` role.
### Insert permission
First, we'll set the **Insert permission**.
A user can only insert `name` because all other columns will be set automatically. More specifically, `user_id` is set to the user's id making the request (`x-hasura-user-id`) and is configured in the `Column presets` section. See the image below.
![User insert permission](/images/quick-start/user-insert-permission.png)
### Select permission
For **Select permission**, set a **custom check** so users can only select todos where `user_id` is the same as their user id. In other words: users are only allowed to select their own todos. See the image below.
![User select permission](/images/quick-start/user-select-permission.png)
Now rerun the app. New todos are inserted, and only todos for the user are fetched and displayed. Your backend is successfully secured!

View File

@@ -1,33 +0,0 @@
---
title: 'CLI from Zero to Production'
---
In the previous tutorials, we tested various parts of Nhost, such as:
- Database
- GraphQL API
- Permission
- JavaScript SDK
- Authentication
All changes we did to our database and API happened directly in production of our Nhost app.
Its not ideal for making changes in production because you might break things, which will affect all users of your app.
Instead, its recommended to make changes and test your app locally before deploying those changes to production.
To do changes locally, we need to have a complete Nhost app running locally, which the Nhost CLI does.
The Nhost CLI matches your production application in a local environment, this way you can make changes and test your code before deploying your changes to production.
## Recommended workflow with Nhost
1. Develop locally using the Nhost CLI.
2. Push changes to GitHub.
3. Nhost automatically applies changes to production.
## What youll learn in this guide:
- Use the Nhost CLI to create a local environment
- Connect a GitHub repository with a Nhost app
- Deploy local changes to production

View File

@@ -1,37 +0,0 @@
---
title: 'Install the CLI'
---
Install the Nhost CLI using the following command:
```sql
sudo curl -L https://raw.githubusercontent.com/nhost/cli/main/get.sh | bash
```
Initialize a new Nhost App locally:
```sql
nhost init -n "nhost-example-app" && cd nhost-example-app
```
And initialize the GitHub repository in the same folder:
```bash
echo "# nhost-example-app" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/[github-username]/nhost-example-app.git
git push -u origin main
```
Now go back to the **Nhost Console** and click **Deployments**. You just made a new deployment to your Nhost app!
![Deployments tab](/images/cli-workflow/deployments-tab.png)
If you click on the deployment you can see that nothing was really deployed. Thats because we just made a change to the README file.
![Deployments details](/images/cli-workflow/deployments-details.png)
Let's do some local backend changes!

View File

@@ -1,76 +0,0 @@
---
title: 'Local changes'
---
Start Nhost locally:
```sql
nhost dev
```
>💡 Make sure you have [Docker](https://www.docker.com/get-started) installed on your computer. Its required for Nhost to work.
The `nhost dev` command will automatically start a complete Nhost environment locally on your computer using:
- Postgres
- Hasura
- Authentication
- Storage
- Serverless Functions
- Mailhog
You use this local environment to do changes and testing before you deploy your changes to production.
Running `nhost dev` also starts the Hasura Console.
>💡 Its important that you use the Hasura Console that is started automatically when you do changes. This way, changes are automatically tracked for you.
![Hasura Console](/images/cli-workflow/hasura-console.png)
In the Hasura Console, create a new table `customers` with two columns:
- id
- name
<Video src="/videos/cli-workflow/hasura-create-customers-table.mp4">
</Video>
When we created the `customers` table there was also a migration created automatically. The migration was created at under `nhost/migrations/default`.
```bash
$ ls -la nhost/migrations/default
total 0
drwxr-xr-x 3 eli staff 96 Feb 7 16:19 .
drwxr-xr-x 3 eli staff 96 Feb 7 16:19 ..
drwxr-xr-x 4 eli staff 128 Feb 7 16:19 1644247179684_create_table_public_customers
```
This database migration has only been applied locally, meaning, you created the `customers` table locally but it does not (yet) exists in production.
To apply the local change to production we need to commit the changes and push it to GitHub. Nhost will then automatically pick up the change in the repository and apply the changes.
<aside>
💡 You can commit and push files in another terminal while still having `nhost dev` running.
</aside>
```sql
git add -A
git commit -m "Initialized Nhost and added a customers table"
git push
```
Head over to the **Deployments** tab in the **Nhost console** to see the deployment.
![Deployments tab after changes](/images/cli-workflow/deployments-tab-with-changes.png)
Once the deployment finishes the `customers` table is created in production.
![Customers table in Hasura Console](/images/cli-workflow/hasura-customers-table.png)
Weve now completed the recommended workflow with Nhost:
1. Develop locally using the Nhost CLI.
2. Push changes to GitHub.
3. Nhost deploys changes to production.

View File

@@ -1,159 +0,0 @@
---
title: 'Metadata and Serverless Functions'
---
In the previous section, we only created a new table; `customers`. Using the CLI you can also do changes to other parts of your backend.
There are three things the CLI and the GitHub integration track and applies to production:
1. Database migrations
2. Hasura Metadata
3. Serverless Functions
For this section, lets do one change to the Hasura metadata and create one serverless function
### Hasura Metadata
Well add permissions to the `users` table, making sure users can only see their own data. For this, go to the `auth` schema and click on the `users` table. then click on **Permissions** and enter a new role **user** and create a new **select** permission for that role**.**
Create the permission **with custom check**:
```json
{
"id": {
"_eq" : "X-Hasura-User-Id"
}
}
```
Select the following columns:
- id
- created_at
- display_name
- avatar_url
- email
Then click **Save permissions**.
<Video src="/videos/cli-workflow/hasura-user-permissions.mp4">
</Video>
Now, lets do a `git status` again to confirm the permission changes we did was tracked locally in your git repository.
![Git status](/images/cli-workflow/git-status.png)
We can now commit this change:
```bash
git add -A
git commit -m "added permission for uses"
```
Now lets create a serverless function before we push all changes to GitHub so Nhost can deploy our changes.
### Serverless Function
A serverless function is a pieces of code written in JavaScript or TypeScript that take an HTTP request and returns a response.
Heres an example:
```bash
import { Request, Response } from 'express'
export default (req: Request, res: Response) => {
res.status(200).send(`Hello ${req.query.name}!`)
}
```
Serverless functions are placed in the `functions/` folder of your repository. Every file will become its own endpoint.
Before we create our serverless function well install `express`, which is a requirement for serverless functions to work.
```bash
npm install express
# or with yarn
yarn add express
```
Well use TypeScript so well install two type definitions too:
```bash
npm install -d @types/node @types/express
# or with yarn
yarn add -D @types/node @types/express
```
Then well create a file `functions/time.ts`
In the file `time.ts` well add the following code to create our serverless function:
```bash
import { Request, Response } from 'express';
export default (req: Request, res: Response) => {
return res
.status(200)
.send(`Hello ${req.query.name}! It's now: ${new Date().toUTCString()}`);
};
```
We can now test the function locally. Locally, the backend URL is `http://localhost:1337`. Functions are under `/v1/functions`. And every functions path and filename becomes an API endpoint.
This means our function `functions/time.ts` is at `http://localhost:1337/v1/functions/time`.
Lets use curl to test our new function:
```bash
curl http://localhost:1337/v1/functions/time
Hello undefined! It's now: Sun, 06 Feb 2022 17:44:45 GMT
```
And with a query parameter with our name:
```bash
curl http://localhost:1337/v1/functions/time\?name\=Johan
Hello Johan! It's now: Sun, 06 Feb 2022 17:44:48 GMT
```
Again, lets use `git status` to see the changes we did to create our serverless function.
Now lets commit the changes and push them to GitHub.
```bash
git add -A
git commit -m "added serverless function"
git push
```
In the Nhost Console, click on the new deployment to see details.
![Deployments details for function](/images/cli-workflow/details-for-function.png)
After Nhost has finished deploying your changes we can test them in production. First lets confirm that the user permissions are applied.
![Hasura Console permissions table](/images/cli-workflow/hasura-permissions-table.png)
Then, lets confirm that the serverless function was deployed. Again, well use curl:
```bash
curl https://your-backend-url.nhost.run/v1/functions/time\?name\=Johan
```
![Serverless Function test](/images/cli-workflow/function-test.png)
## Conclusion
In this tutorial we have installed the Nhost CLI and created a local Nhost environment to do local development and testing.
In the local environment weve made changes to our database, to Hasuras metadata and created a serverless function.
Weve connected a GitHub repository and pushed our changes to GitHub.
Weve seen Nhost automatically deploying our changes and weve verified that the changes were applied.
In summary, weve set up a productive environment using the recommended Nhost workflow:
1. Develop locally using the Nhost CLI.
2. Push changes to GitHub.
3. Nhost deploys changes to production.

View File

@@ -1,26 +0,0 @@
---
title: 'Workflow setup'
---
What follows is a detailed tutorial on how you setup Nhost for this workflow
### Create Nhost App
Create a **new Nhost app** for this tutorial.
> Its important that you create a **new** Nhost app for this guide instead of reusing an old Nhost app because we want to start with a clean Nhost app.
![Create new app](/images/cli-workflow/create-app.png)
### Create new GitHub Repository
Create a new GitHub repository for your new Nhost app. The repo can be either private or public.
![Create new repo](/images/cli-workflow/create-repo.png)
## Connect GitHub Repository to Nhost App
In the Nhost Console, go to the dashboard of your Nhost app and click **Connect to GitHub**.
<Video src="/videos/cli-workflow/connect-github-repo.mp4">
</Video>

View File

@@ -1,35 +0,0 @@
---
title: 'Welcome to Nhost'
---
Nhost is an open-source, real-time, server-less backend platform for building reliable apps that scale with your business.
---
## Components
Nhost uses an opinionated set of open-source components.
#### Database
Your application gets its own PostgreSQL database, the world's most advanced relational database.
#### GraphQL API
Highly performant and real-time GraphQL API with Hasura.
#### Authentication and storage
User management & file storage seamlessly integrated with Hasura permissions.
#### Serverless functions
JavaScript and TypeScript functions run your custom code in the backend.
---
## Get started
Follow our [Quick start](/get-started/quick-start) guide to build your first app.
Check out [Nhost on GitHub](https://github.com/nhost/nhost). Give us a star, and feel free to open a discussion for any feature requests as well.

View File

@@ -1,35 +0,0 @@
---
title: 'Create your app'
---
Let's create a simple todo-app using Nhost. In a todo-app, a user should be able to create list items for their account (CRUD) and not have anyone else see them (permissions).
To implement this todo-app with Nhost, we'll briefly cover these topics:
- Creating a new app on Nhost
- Defining a database schema
- Inserting data
- Setting permissions
- Querying data via the GraphQL API
By the end of this quick-start, you will better understand what Nhost is and what it does for you.
---
## Log in to Nhost
Go to [app.nhost.io](https://app.nhost.io) and sign up for a new account if you don't have one already.
---
## Create app
Press the **"New App"** button on the console's home page. Choose a name and pick the region closest to your users.
You'll be all set with the Default Workspace and the Free plan for now.
![New App](/images/quick-start/new-app.png)
Creating a new app takes around 20 seconds or so. During this time, Nhost sets up your app's entire backend and infrastructure.
Once the setup completes, you'll automatically see the app dashboard, and you're ready to define your app's database schema.

View File

@@ -1,96 +0,0 @@
---
title: 'JavaScript client'
---
In the previous section, you used the Hasura Console to fetch a list of todos. Now, you will write a small JavaScript client to interact and retrieve todos from your Nhost app.
### Frontend frameworks
Nhost is framework-agnostic and works with any frontend you might build. You can also connect to Nhost from your server-side if you wish.
In this guide, we'll keep the example simple. We're not using a frontend framework. In a real-life scenario, you'd probably build a frontend client with a framework such as React, Vue, Svelte or React Native.
---
## Setup
> Make sure you have [Node.js](https://nodejs.org) and [npm](https://docs.npmjs.com/getting-started) installed.
Create a new folder called `nhost-todos`, and initialize a new JavaScript app there:
```sh
npm init -y
# or
yarn init -y
```
> You might have to edit the `package.json` file and add/change the `type` object to `module` (`"type": "module"`).
Install Nhost JavaScript SDK:
```sh
npm install @nhost/nhost-js
# or
yarn add @nhost/nhost-js
```
---
## Initialize Nhost
In the new directory, create a file called `index.js`.
Enter the following code into this file. It will initialize a new `NhostClient` that will interact with your backend:
```js
import { NhostClient } from '@nhost/nhost-js'
const nhost = new NhostClient({
backendUrl: 'https://[app-subdomain].nhost.run' // replace this with the backend URL of your app
})
console.log(nhost.graphql.getUrl())
```
Run the code in your terminal. You should see your app's GraphQL endpoint URL:
```sh
➜ node index.js
https://[app-subdomain].nhost.run/v1/graphql
```
### Query todos
If you now add the following GraphQL query to the client, let's see what happens when you run the updated version:
```js
import { NhostClient } from '@nhost/nhost-js'
const nhost = new NhostClient({
backendUrl: 'https://[app-subdomain].nhost.run'
})(async () => {
// nhost.graphql.request returns a promise, so we use await here
const todos = await nhost.graphql.request(`
query {
todos {
id
created_at
name
is_completed
}
}
`)
// Print todos to console
console.log(JSON.stringify(todos.data, null, 2))
})()
```
```sh
➜ node index.js
null
```
`null` is printed. Why is that? Let's find out.

Some files were not shown because too many files have changed in this diff Show More