Compare commits
14 Commits
@nhost/das
...
@nhost/vue
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
958dec5dfe | ||
|
|
61e3497a13 | ||
|
|
a7b4e5606d | ||
|
|
34d77c9db1 | ||
|
|
4f1efd28a6 | ||
|
|
07a45fde0e | ||
|
|
9d0380eef3 | ||
|
|
ce3ec36b0a | ||
|
|
b62a9d19b5 | ||
|
|
c1472079c5 | ||
|
|
dd36971798 | ||
|
|
6199c1c555 | ||
|
|
f41fdc12af | ||
|
|
fc419ffa4d |
@@ -1,5 +1,15 @@
|
|||||||
# @nhost/dashboard
|
# @nhost/dashboard
|
||||||
|
|
||||||
|
## 0.17.15
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- f41fdc12a: chore(deps): bump `turbo` to `1.10.5`
|
||||||
|
- 6199c1c55: fix(projects): don't redirect to 404 page
|
||||||
|
- Updated dependencies [07a45fde0]
|
||||||
|
- @nhost/react-apollo@5.0.28
|
||||||
|
- @nhost/nextjs@1.13.30
|
||||||
|
|
||||||
## 0.17.14
|
## 0.17.14
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ RUN apk add --no-cache libc6-compat
|
|||||||
RUN apk update
|
RUN apk update
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN yarn global add turbo@1.10.3
|
RUN yarn global add turbo@1.10.5
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN turbo prune --scope="@nhost/dashboard" --docker
|
RUN turbo prune --scope="@nhost/dashboard" --docker
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/dashboard",
|
"name": "@nhost/dashboard",
|
||||||
"version": "0.17.14",
|
"version": "0.17.15",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
"preinstall": "npx only-allow pnpm",
|
||||||
@@ -104,8 +104,8 @@
|
|||||||
"@types/lodash.debounce": "^4.0.7",
|
"@types/lodash.debounce": "^4.0.7",
|
||||||
"@types/node": "^16.11.7",
|
"@types/node": "^16.11.7",
|
||||||
"@types/pluralize": "^0.0.29",
|
"@types/pluralize": "^0.0.29",
|
||||||
"@types/react": "18.2.13",
|
"@types/react": "18.2.12",
|
||||||
"@types/react-dom": "18.2.6",
|
"@types/react-dom": "18.2.5",
|
||||||
"@types/react-table": "^7.7.12",
|
"@types/react-table": "^7.7.12",
|
||||||
"@types/testing-library__jest-dom": "^5.14.5",
|
"@types/testing-library__jest-dom": "^5.14.5",
|
||||||
"@types/validator": "^13.7.10",
|
"@types/validator": "^13.7.10",
|
||||||
|
|||||||
@@ -66,7 +66,10 @@ export default function WebAuthnSettings() {
|
|||||||
config: {
|
config: {
|
||||||
auth: {
|
auth: {
|
||||||
method: {
|
method: {
|
||||||
webauthn: values,
|
webauthn: {...values,
|
||||||
|
relyingParty: {
|
||||||
|
name: currentProject.name,
|
||||||
|
}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import type { Project, Workspace } from '@/types/application';
|
|||||||
import { ApplicationStatus } from '@/types/application';
|
import { ApplicationStatus } from '@/types/application';
|
||||||
import { getHasuraAdminSecret } from '@/utils/env';
|
import { getHasuraAdminSecret } from '@/utils/env';
|
||||||
import { GetWorkspaceAndProjectDocument } from '@/utils/__generated__/graphql';
|
import { GetWorkspaceAndProjectDocument } from '@/utils/__generated__/graphql';
|
||||||
import { useNhostClient, useUserData } from '@nhost/nextjs';
|
import { useAuthenticationStatus, useNhostClient } from '@nhost/nextjs';
|
||||||
import type { RefetchOptions } from '@tanstack/react-query';
|
import type { RefetchOptions } from '@tanstack/react-query';
|
||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
@@ -34,14 +34,24 @@ export interface UseCurrentWorkspaceAndProjectReturnType {
|
|||||||
|
|
||||||
export default function useCurrentWorkspaceAndProject(): UseCurrentWorkspaceAndProjectReturnType {
|
export default function useCurrentWorkspaceAndProject(): UseCurrentWorkspaceAndProjectReturnType {
|
||||||
const client = useNhostClient();
|
const client = useNhostClient();
|
||||||
const user = useUserData();
|
|
||||||
const isPlatform = useIsPlatform();
|
const isPlatform = useIsPlatform();
|
||||||
|
const { isAuthenticated, isLoading: isAuthLoading } =
|
||||||
|
useAuthenticationStatus();
|
||||||
|
|
||||||
const {
|
const {
|
||||||
query: { workspaceSlug, appSlug },
|
query: { workspaceSlug, appSlug },
|
||||||
isReady,
|
isReady: isRouterReady,
|
||||||
} = useRouter();
|
} = useRouter();
|
||||||
|
|
||||||
|
const isWorkspaceSlugAvailable = Boolean(workspaceSlug);
|
||||||
|
|
||||||
|
const shouldFetchWorkspaceAndProject =
|
||||||
|
isPlatform &&
|
||||||
|
isRouterReady &&
|
||||||
|
isWorkspaceSlugAvailable &&
|
||||||
|
isAuthenticated &&
|
||||||
|
!isAuthLoading;
|
||||||
|
|
||||||
// We can't use the hook exported by the codegen here because there are cases
|
// We can't use the hook exported by the codegen here because there are cases
|
||||||
// where it doesn't target the Nhost backend, but the currently active project
|
// where it doesn't target the Nhost backend, but the currently active project
|
||||||
// instead.
|
// instead.
|
||||||
@@ -59,7 +69,7 @@ export default function useCurrentWorkspaceAndProject(): UseCurrentWorkspaceAndP
|
|||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
keepPreviousData: true,
|
keepPreviousData: true,
|
||||||
enabled: isPlatform && isReady && !!workspaceSlug && !!user,
|
enabled: shouldFetchWorkspaceAndProject,
|
||||||
// multiple components are relying on this query, so we don't want to
|
// multiple components are relying on this query, so we don't want to
|
||||||
// refetch it too often - kind of a hack, should be improved later
|
// refetch it too often - kind of a hack, should be improved later
|
||||||
staleTime: 1000,
|
staleTime: 1000,
|
||||||
@@ -142,7 +152,7 @@ export default function useCurrentWorkspaceAndProject(): UseCurrentWorkspaceAndP
|
|||||||
return {
|
return {
|
||||||
currentWorkspace,
|
currentWorkspace,
|
||||||
currentProject,
|
currentProject,
|
||||||
loading: response ? false : isFetching,
|
loading: response ? false : isFetching || isAuthLoading,
|
||||||
error: response?.error
|
error: response?.error
|
||||||
? new Error(error?.message || 'Unknown error occurred.')
|
? new Error(error?.message || 'Unknown error occurred.')
|
||||||
: null,
|
: null,
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
# @nhost/apollo
|
# @nhost/apollo
|
||||||
|
|
||||||
|
## 5.2.12
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
|
||||||
|
- Updated dependencies [07a45fde0]
|
||||||
|
- @nhost/nhost-js@2.2.10
|
||||||
|
|
||||||
## 5.2.11
|
## 5.2.11
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/apollo",
|
"name": "@nhost/apollo",
|
||||||
"version": "5.2.11",
|
"version": "5.2.12",
|
||||||
"description": "Nhost Apollo Client library",
|
"description": "Nhost Apollo Client library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
"@nhost/nhost-js": "workspace:*"
|
"@nhost/nhost-js": "workspace:*"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"graphql": "16.6.0",
|
"graphql": "16.7.1",
|
||||||
"graphql-ws": "^5.10.1"
|
"graphql-ws": "^5.10.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
# @nhost/react-apollo
|
# @nhost/react-apollo
|
||||||
|
|
||||||
|
## 5.0.28
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
|
||||||
|
- Updated dependencies [07a45fde0]
|
||||||
|
- @nhost/apollo@5.2.12
|
||||||
|
- @nhost/react@2.0.24
|
||||||
|
|
||||||
## 5.0.27
|
## 5.0.27
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/react-apollo",
|
"name": "@nhost/react-apollo",
|
||||||
"version": "5.0.27",
|
"version": "5.0.28",
|
||||||
"description": "Nhost React Apollo client",
|
"description": "Nhost React Apollo client",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
"@apollo/client": "^3.7.10",
|
"@apollo/client": "^3.7.10",
|
||||||
"@nhost/react": "workspace:*",
|
"@nhost/react": "workspace:*",
|
||||||
"@types/react": "^18.0.34",
|
"@types/react": "^18.0.34",
|
||||||
"graphql": "16.6.0",
|
"graphql": "16.7.1",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0"
|
"react-dom": "^18.2.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# @nhost/react-urql
|
# @nhost/react-urql
|
||||||
|
|
||||||
|
## 2.0.25
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
|
||||||
|
- @nhost/react@2.0.24
|
||||||
|
|
||||||
## 2.0.24
|
## 2.0.24
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/react-urql",
|
"name": "@nhost/react-urql",
|
||||||
"version": "2.0.24",
|
"version": "2.0.25",
|
||||||
"description": "Nhost React URQL client",
|
"description": "Nhost React URQL client",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nhost/react": "workspace:*",
|
"@nhost/react": "workspace:*",
|
||||||
"@types/react": "^18.0.34",
|
"@types/react": "^18.0.34",
|
||||||
"graphql": "16.6.0",
|
"graphql": "16.7.1",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"urql": "^4.0.0"
|
"urql": "^4.0.0"
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost/stripe-graphql-js
|
# @nhost/stripe-graphql-js
|
||||||
|
|
||||||
|
## 1.0.4
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
|
||||||
|
|
||||||
## 1.0.3
|
## 1.0.3
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/stripe-graphql-js",
|
"name": "@nhost/stripe-graphql-js",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"description": "Stripe GraphQL API",
|
"description": "Stripe GraphQL API",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pothos/core": "^3.21.0",
|
"@pothos/core": "^3.21.0",
|
||||||
"graphql": "16.6.0",
|
"graphql": "16.7.1",
|
||||||
"graphql-scalars": "^1.18.0",
|
"graphql-scalars": "^1.18.0",
|
||||||
"graphql-yoga": "^3.4.0",
|
"graphql-yoga": "^3.4.0",
|
||||||
"jsonwebtoken": "^9.0.0",
|
"jsonwebtoken": "^9.0.0",
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
"husky": "^8.0.1",
|
"husky": "^8.0.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"turbo": "1.10.3",
|
"turbo": "1.10.5",
|
||||||
"typedoc": "^0.22.18",
|
"typedoc": "^0.22.18",
|
||||||
"typescript": "4.9.5",
|
"typescript": "4.9.5",
|
||||||
"vite": "^4.3.8",
|
"vite": "^4.3.8",
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
"vitest": "^0.32.0"
|
"vitest": "^0.32.0"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"graphql": "16.6.0"
|
"graphql": "16.7.1"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@8.6.2",
|
"packageManager": "pnpm@8.6.2",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost/graphql-js
|
# @nhost/graphql-js
|
||||||
|
|
||||||
|
## 0.1.4
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
|
||||||
|
|
||||||
## 0.1.3
|
## 0.1.3
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/graphql-js",
|
"name": "@nhost/graphql-js",
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"description": "Nhost GraphQL client",
|
"description": "Nhost GraphQL client",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -61,6 +61,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nhost/docgen": "workspace:*",
|
"@nhost/docgen": "workspace:*",
|
||||||
"graphql": "16.6.0"
|
"graphql": "16.7.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,11 @@
|
|||||||
# @nhost/nextjs
|
# @nhost/nextjs
|
||||||
|
|
||||||
|
## 1.13.30
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- @nhost/react@2.0.24
|
||||||
|
|
||||||
## 1.13.29
|
## 1.13.29
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/nextjs",
|
"name": "@nhost/nextjs",
|
||||||
"version": "1.13.29",
|
"version": "1.13.30",
|
||||||
"description": "Nhost NextJS library",
|
"description": "Nhost NextJS library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
# @nhost/nhost-js
|
# @nhost/nhost-js
|
||||||
|
|
||||||
|
## 2.2.10
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
|
||||||
|
- Updated dependencies [07a45fde0]
|
||||||
|
- @nhost/graphql-js@0.1.4
|
||||||
|
|
||||||
## 2.2.9
|
## 2.2.9
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/nhost-js",
|
"name": "@nhost/nhost-js",
|
||||||
"version": "2.2.9",
|
"version": "2.2.10",
|
||||||
"description": "Nhost JavaScript SDK",
|
"description": "Nhost JavaScript SDK",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nhost/docgen": "workspace:*",
|
"@nhost/docgen": "workspace:*",
|
||||||
"graphql": "16.6.0"
|
"graphql": "16.7.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# @nhost/react
|
# @nhost/react
|
||||||
|
|
||||||
|
## 2.0.24
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [07a45fde0]
|
||||||
|
- @nhost/nhost-js@2.2.10
|
||||||
|
|
||||||
## 2.0.23
|
## 2.0.23
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/react",
|
"name": "@nhost/react",
|
||||||
"version": "2.0.23",
|
"version": "2.0.24",
|
||||||
"description": "Nhost React library",
|
"description": "Nhost React library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# @nhost/vue
|
# @nhost/vue
|
||||||
|
|
||||||
|
## 1.13.30
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [07a45fde0]
|
||||||
|
- @nhost/nhost-js@2.2.10
|
||||||
|
|
||||||
## 1.13.29
|
## 1.13.29
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/vue",
|
"name": "@nhost/vue",
|
||||||
"version": "1.13.29",
|
"version": "1.13.30",
|
||||||
"description": "Nhost Vue library",
|
"description": "Nhost Vue library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
1539
pnpm-lock.yaml
generated
1539
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user