Compare commits
16 Commits
@nhost/apo
...
@nhost/nex
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbc9c6131b | ||
|
|
c16be7fb05 | ||
|
|
872e44ebe0 | ||
|
|
dbc10e6205 | ||
|
|
b04d01f022 | ||
|
|
29d0c7250f | ||
|
|
b59f571048 | ||
|
|
64cc648d19 | ||
|
|
30f4e53181 | ||
|
|
5a141453f0 | ||
|
|
788bb9c90d | ||
|
|
09fa429125 | ||
|
|
c505281250 | ||
|
|
7ea5523375 | ||
|
|
c5cd6b1d7b | ||
|
|
90a7999346 |
46
README.md
46
README.md
@@ -12,7 +12,7 @@
|
||||
<span> • </span>
|
||||
<a href="https://nhost.io/blog">Blog</a>
|
||||
<span> • </span>
|
||||
<a href="https://twitter.com/nhostio">Twitter</a>
|
||||
<a href="https://twitter.com/nhost">Twitter</a>
|
||||
<span> • </span>
|
||||
<a href="https://nhost.io/discord">Discord</a>
|
||||
<br />
|
||||
@@ -32,7 +32,7 @@ Nhost consists of open source software:
|
||||
- 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://hub.docker.com/r/nhost/hasura-storage)
|
||||
- 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
|
||||
|
||||
@@ -168,20 +168,20 @@ Here are some ways of contributing to making Nhost better:
|
||||
<sub><b>Nuno Pato</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<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></tr>
|
||||
<tr>
|
||||
<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">
|
||||
@@ -262,6 +262,13 @@ Here are some ways of contributing to making Nhost better:
|
||||
</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"/>
|
||||
@@ -296,15 +303,15 @@ Here are some ways of contributing to making Nhost better:
|
||||
<br />
|
||||
<sub><b>Muttenzer</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<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></tr>
|
||||
<tr>
|
||||
</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"/>
|
||||
@@ -339,15 +346,15 @@ Here are some ways of contributing to making Nhost better:
|
||||
<br />
|
||||
<sub><b>Gaurav Agrawal</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<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></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/nkhdo">
|
||||
<img src="https://avatars.githubusercontent.com/u/26102306?v=4" width="100;" alt="nkhdo"/>
|
||||
@@ -355,13 +362,6 @@ Here are some ways of contributing to making Nhost better:
|
||||
<sub><b>Hoang Do</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<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/jladuval">
|
||||
<img src="https://avatars.githubusercontent.com/u/1935359?v=4" width="100;" alt="jladuval"/>
|
||||
|
||||
@@ -31,7 +31,7 @@ nhost.auth.signOut()
|
||||
nhost.auth.signOut()
|
||||
```
|
||||
|
||||
### Sign out the user from all decvices
|
||||
### Sign out the user from all devices
|
||||
|
||||
```ts
|
||||
nhost.auth.signOut({ all: true })
|
||||
|
||||
@@ -1,38 +1,41 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
|
||||
import { Button, ButtonVariant } from '@mantine/core'
|
||||
import { Button, ButtonProps, SharedButtonProps } from '@mantine/core'
|
||||
|
||||
const AuthLink: React.FC<{
|
||||
icon?: React.ReactNode
|
||||
link: string
|
||||
color?: string
|
||||
children?: React.ReactNode
|
||||
variant?: ButtonVariant
|
||||
}> = ({ icon, color, link, variant, children }) => {
|
||||
return (
|
||||
<Button
|
||||
role="button"
|
||||
component={Link}
|
||||
fullWidth
|
||||
radius="sm"
|
||||
variant={variant}
|
||||
to={link}
|
||||
leftIcon={icon}
|
||||
styles={(theme) => ({
|
||||
root: {
|
||||
backgroundColor: color,
|
||||
'&:hover': {
|
||||
backgroundColor: color && theme.fn.darken(color, 0.05)
|
||||
}
|
||||
},
|
||||
|
||||
leftIcon: {
|
||||
marginRight: 15
|
||||
const AuthButton: <C = 'button'>(props: ButtonProps<C>) => React.ReactElement = ({
|
||||
color,
|
||||
...rest
|
||||
}) => (
|
||||
<Button
|
||||
role="button"
|
||||
fullWidth
|
||||
radius="sm"
|
||||
styles={(theme) => ({
|
||||
root: {
|
||||
backgroundColor: color,
|
||||
'&:hover': {
|
||||
backgroundColor: color && theme.fn.darken(color, 0.05)
|
||||
}
|
||||
})}
|
||||
>
|
||||
{children}
|
||||
</Button>
|
||||
},
|
||||
|
||||
leftIcon: {
|
||||
marginRight: 15
|
||||
}
|
||||
})}
|
||||
{...rest}
|
||||
/>
|
||||
)
|
||||
|
||||
const AuthLink: React.FC<
|
||||
SharedButtonProps & {
|
||||
link: string
|
||||
}
|
||||
> = ({ link, ...rest }) => {
|
||||
const isExternal = link.startsWith('http://') || link.startsWith('https://')
|
||||
return isExternal ? (
|
||||
<AuthButton component={'a'} href={link} {...rest} />
|
||||
) : (
|
||||
<AuthButton component={Link} to={link} {...rest} />
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -8,13 +8,13 @@ export default function OauthLinks() {
|
||||
const { github, google, facebook } = useProviderLink()
|
||||
return (
|
||||
<>
|
||||
<AuthLink icon={<FaGithub />} link={github} color="#333">
|
||||
<AuthLink leftIcon={<FaGithub />} link={github} color="#333">
|
||||
Continue with GitHub
|
||||
</AuthLink>
|
||||
<AuthLink icon={<FaGoogle />} link={google} color="#de5246">
|
||||
<AuthLink leftIcon={<FaGoogle />} link={google} color="#de5246">
|
||||
Continue with Google
|
||||
</AuthLink>
|
||||
<AuthLink icon={<FaFacebook />} link={facebook} color="#3b5998">
|
||||
<AuthLink leftIcon={<FaFacebook />} link={facebook} color="#3b5998">
|
||||
Continue with Facebook
|
||||
</AuthLink>
|
||||
</>
|
||||
|
||||
@@ -16,7 +16,7 @@ const Index: React.FC = () => (
|
||||
<>
|
||||
<OAuthLinks />
|
||||
<Divider my="sm" />
|
||||
<AuthLink icon={<FaLock />} variant="outline" link="/sign-in/email-passwordless">
|
||||
<AuthLink leftIcon={<FaLock />} variant="outline" link="/sign-in/email-passwordless">
|
||||
Continue with passwordless email
|
||||
</AuthLink>
|
||||
<AuthLink variant="subtle" link="/sign-in/email-password">
|
||||
|
||||
@@ -21,7 +21,7 @@ const Index: React.FC = () => {
|
||||
<Divider my="sm" />
|
||||
</>
|
||||
)}
|
||||
<AuthLink icon={<FaLock />} variant="outline" link="/sign-up/email-passwordless">
|
||||
<AuthLink leftIcon={<FaLock />} variant="outline" link="/sign-up/email-passwordless">
|
||||
Continue with passwordless email
|
||||
</AuthLink>
|
||||
<AuthLink variant="subtle" link="/sign-up/email-password">
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @nhost/apollo
|
||||
|
||||
## 0.5.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- dbc10e62: fixed `exports` field to support imports in a server-side environment
|
||||
- Updated dependencies [dbc10e62]
|
||||
- @nhost/nhost-js@1.4.2
|
||||
|
||||
## 0.5.17
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/apollo",
|
||||
"version": "0.5.17",
|
||||
"version": "0.5.18",
|
||||
"description": "Nhost Apollo Client library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -32,7 +32,10 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.esm.js",
|
||||
"import": {
|
||||
"node": "./dist/index.cjs.js",
|
||||
"default": "./dist/index.esm.js"
|
||||
},
|
||||
"require": "./dist/index.cjs.js"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @nhost/core
|
||||
|
||||
## 0.7.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- dbc10e62: fixed `exports` field to support imports in a server-side environment
|
||||
|
||||
## 0.7.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/core",
|
||||
"version": "0.7.1",
|
||||
"version": "0.7.2",
|
||||
"description": "Nhost core client library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -31,7 +31,10 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.esm.js",
|
||||
"import": {
|
||||
"node": "./dist/index.cjs.js",
|
||||
"default": "./dist/index.esm.js"
|
||||
},
|
||||
"require": "./dist/index.cjs.js"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @nhost/hasura-auth-js
|
||||
|
||||
## 1.3.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- dbc10e62: fixed `exports` field to support imports in a server-side environment
|
||||
- Updated dependencies [dbc10e62]
|
||||
- @nhost/core@0.7.2
|
||||
|
||||
## 1.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/hasura-auth-js",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "Hasura-auth client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -30,7 +30,10 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.esm.js",
|
||||
"import": {
|
||||
"node": "./dist/index.cjs.js",
|
||||
"default": "./dist/index.esm.js"
|
||||
},
|
||||
"require": "./dist/index.cjs.js"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -220,7 +220,7 @@ export class HasuraAuthClient {
|
||||
* ```
|
||||
*
|
||||
* @example
|
||||
* ### Sign out the user from all decvices
|
||||
* ### Sign out the user from all devices
|
||||
* ```ts
|
||||
* nhost.auth.signOut({all: true})
|
||||
* ```
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @nhost/hasura-storage-js
|
||||
|
||||
## 0.3.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- dbc10e62: fixed `exports` field to support imports in a server-side environment
|
||||
|
||||
## 0.3.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/hasura-storage-js",
|
||||
"version": "0.3.3",
|
||||
"version": "0.3.4",
|
||||
"description": "Hasura-storage client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -28,7 +28,10 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.esm.js",
|
||||
"import": {
|
||||
"node": "./dist/index.cjs.js",
|
||||
"default": "./dist/index.esm.js"
|
||||
},
|
||||
"require": "./dist/index.cjs.js"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @nhost/nextjs
|
||||
|
||||
## 1.4.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- dbc10e62: fixed `exports` field to support imports in a server-side environment
|
||||
- Updated dependencies [dbc10e62]
|
||||
- @nhost/core@0.7.2
|
||||
- @nhost/nhost-js@1.4.2
|
||||
- @nhost/react@0.9.2
|
||||
|
||||
## 1.4.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/nextjs",
|
||||
"version": "1.4.1",
|
||||
"version": "1.4.2",
|
||||
"description": "Nhost NextJS library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -34,7 +34,10 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.esm.js",
|
||||
"import": {
|
||||
"node": "./dist/index.cjs.js",
|
||||
"default": "./dist/index.esm.js"
|
||||
},
|
||||
"require": "./dist/index.cjs.js"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @nhost/nhost-js
|
||||
|
||||
## 1.4.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- dbc10e62: fixed `exports` field to support imports in a server-side environment
|
||||
- Updated dependencies [dbc10e62]
|
||||
- @nhost/hasura-auth-js@1.3.1
|
||||
- @nhost/hasura-storage-js@0.3.4
|
||||
|
||||
## 1.4.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/nhost-js",
|
||||
"version": "1.4.1",
|
||||
"version": "1.4.2",
|
||||
"description": "Nhost JavaScript SDK",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -31,7 +31,10 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.esm.js",
|
||||
"import": {
|
||||
"node": "./dist/index.cjs.js",
|
||||
"default": "./dist/index.esm.js"
|
||||
},
|
||||
"require": "./dist/index.cjs.js"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @nhost/react-apollo
|
||||
|
||||
## 4.4.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- dbc10e62: fixed `exports` field to support imports in a server-side environment
|
||||
- Updated dependencies [dbc10e62]
|
||||
- @nhost/apollo@0.5.18
|
||||
- @nhost/react@0.9.2
|
||||
|
||||
## 4.4.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react-apollo",
|
||||
"version": "4.4.1",
|
||||
"version": "4.4.2",
|
||||
"description": "Nhost React Apollo client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -33,7 +33,10 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.esm.js",
|
||||
"import": {
|
||||
"node": "./dist/index.cjs.js",
|
||||
"default": "./dist/index.esm.js"
|
||||
},
|
||||
"require": "./dist/index.cjs.js"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @nhost/react-auth
|
||||
|
||||
## 3.2.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- dbc10e62: fixed `exports` field to support imports in a server-side environment
|
||||
- Updated dependencies [dbc10e62]
|
||||
- @nhost/hasura-auth-js@1.3.1
|
||||
- @nhost/react@0.9.2
|
||||
|
||||
## 3.2.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react-auth",
|
||||
"version": "3.2.1",
|
||||
"version": "3.2.2",
|
||||
"description": "Nhost React client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -32,7 +32,10 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.esm.js",
|
||||
"import": {
|
||||
"node": "./dist/index.cjs.js",
|
||||
"default": "./dist/index.esm.js"
|
||||
},
|
||||
"require": "./dist/index.cjs.js"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @nhost/react
|
||||
|
||||
## 0.9.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- dbc10e62: fixed `exports` field to support imports in a server-side environment
|
||||
- Updated dependencies [dbc10e62]
|
||||
- @nhost/core@0.7.2
|
||||
- @nhost/nhost-js@1.4.2
|
||||
|
||||
## 0.9.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.2",
|
||||
"description": "Nhost React library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -32,7 +32,10 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.esm.js",
|
||||
"import": {
|
||||
"node": "./dist/index.cjs.js",
|
||||
"default": "./dist/index.esm.js"
|
||||
},
|
||||
"require": "./dist/index.cjs.js"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @nhost/vue
|
||||
|
||||
## 0.3.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- dbc10e62: fixed `exports` field to support imports in a server-side environment
|
||||
- Updated dependencies [dbc10e62]
|
||||
- @nhost/core@0.7.2
|
||||
- @nhost/nhost-js@1.4.2
|
||||
|
||||
## 0.3.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/vue",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"description": "Nhost Vue library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -32,7 +32,10 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.esm.js",
|
||||
"import": {
|
||||
"node": "./dist/index.cjs.js",
|
||||
"default": "./dist/index.esm.js"
|
||||
},
|
||||
"require": "./dist/index.cjs.js"
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user