Skip to content

Commit

Permalink
Merge upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sync Fork committed Feb 13, 2024
1 parent 4de9e9a commit 4f58bb2
Show file tree
Hide file tree
Showing 15 changed files with 83 additions and 55 deletions.
6 changes: 6 additions & 0 deletions dashboard/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @nhost/dashboard

## 1.6.7

### Patch Changes

- 5ef5189: fix: update `@apollo/client` to `3.9.4` to fix a cache bug

## 1.6.6

### Patch Changes
Expand Down
7 changes: 3 additions & 4 deletions dashboard/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
});
const { version } = require('./package.json');


const cspHeader = `
default-src 'self' *.nhost.run ws://*.nhost.run nhost.run ws://nhost.run;
script-src 'self' 'unsafe-eval' 'unsafe-inline' cdn.segment.com js.stripe.com;
Expand All @@ -19,7 +18,7 @@ const cspHeader = `
frame-src 'self' js.stripe.com;
block-all-mixed-content;
upgrade-insecure-requests;
`
`;

module.exports = withBundleAnalyzer({
reactStrictMode: true,
Expand All @@ -41,15 +40,15 @@ module.exports = withBundleAnalyzer({
headers: [
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN'
value: 'SAMEORIGIN',
},
{
key: 'Content-Security-Policy',
value: cspHeader.replace(/\n/g, ''),
},
],
},
]
];
},
async redirects() {
return [
Expand Down
4 changes: 2 additions & 2 deletions dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nhost/dashboard",
"version": "1.6.6",
"version": "1.6.7",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand All @@ -19,7 +19,7 @@
"e2e": "pnpm install-browsers && pnpm playwright test"
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@codemirror/lang-sql": "^6.5.5",
"@emotion/cache": "^11.11.0",
"@emotion/react": "^11.11.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ function Plan({ planName, price, setPlan, planId, selectedPlanId }: any) {
return (
<button
type="button"
className="my-4 grid w-full grid-flow-col items-center justify-between gap-2 px-1"
className="grid items-center justify-between w-full grid-flow-col gap-2 px-1 my-4"
onClick={setPlan}
tabIndex={-1}
>
<div className="grid grid-flow-row gap-y-0.5">
<div className="grid grid-flow-col items-center justify-start gap-2">
<div className="grid items-center justify-start grid-flow-col gap-2">
<Checkbox
onChange={setPlan}
checked={selectedPlanId === planId}
Expand All @@ -40,7 +40,7 @@ function Plan({ planName, price, setPlan, planId, selectedPlanId }: any) {
<Text
variant="h3"
component="p"
className="self-center text-left font-medium"
className="self-center font-medium text-left"
>
Upgrade to {planName}
</Text>
Expand Down Expand Up @@ -156,7 +156,7 @@ export function ChangePlanModalWithData({ app, plans, close }: any) {

if (pollingCurrentProject) {
return (
<Box className="mx-auto w-full max-w-xl rounded-lg p-6 text-left">
<Box className="w-full max-w-xl p-6 mx-auto text-left rounded-lg">
<div className="flex flex-col">
<div className="mx-auto">
<Image
Expand All @@ -179,7 +179,7 @@ export function ChangePlanModalWithData({ app, plans, close }: any) {
<Button
variant="outlined"
color="secondary"
className="mx-auto mt-4 w-full max-w-sm"
className="w-full max-w-sm mx-auto mt-4"
onClick={() => {
if (close) {
close();
Expand All @@ -196,7 +196,7 @@ export function ChangePlanModalWithData({ app, plans, close }: any) {
}

return (
<Box className="w-full max-w-xl rounded-lg p-6 text-left">
<Box className="w-full max-w-xl p-6 text-left rounded-lg">
<BaseDialog
open={showPaymentModal}
onClose={() => setShowPaymentModal(false)}
Expand Down Expand Up @@ -241,7 +241,7 @@ export function ChangePlanModalWithData({ app, plans, close }: any) {
))}
</div>

<div className="mt-2 grid grid-flow-row gap-2">
<div className="grid grid-flow-row gap-2 mt-2">
<Button
onClick={handleChangePlanClick}
disabled={!selectedPlan}
Expand Down
6 changes: 6 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @nhost/docs

## 2.4.0

### Minor Changes

- 791b729: fix: remove auth method

## 2.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nhost/docs",
"version": "2.3.0",
"version": "2.4.0",
"private": true,
"scripts": {
"start": "mintlify dev"
Expand Down
2 changes: 1 addition & 1 deletion examples/codegen-react-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
]
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@nhost/react": "workspace:^",
"@nhost/react-apollo": "workspace:^",
"clsx": "^1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"verify:fix": "run-p prettier:fix lint:fix"
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@mantine/core": "^4.2.12",
"@mantine/hooks": "^4.2.12",
"@mantine/next": "^4.2.12",
Expand Down
2 changes: 1 addition & 1 deletion examples/quickstarts/nextjs-server-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@nhost/nhost-js": "workspace:^",
"autoprefixer": "10.4.15",
"cookies-next": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/react-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.2.0",
"private": true,
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@mantine/core": "^4.2.12",
"@mantine/dropzone": "^4.2.12",
"@mantine/hooks": "^4.2.12",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"verify:fix": "run-p prettier:fix lint:fix"
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@mdi/font": "5.9.55",
"@nhost/apollo": "workspace:^",
"@nhost/nhost-js": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-quickstart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "vitest"
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@nhost/apollo": "workspace:^",
"@nhost/vue": "workspace:^",
"@vue/apollo-composable": "4.0.0-alpha.18",
Expand Down
2 changes: 1 addition & 1 deletion integrations/apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"graphql-ws": "^5.14.3"
},
"devDependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@nhost/nhost-js": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion integrations/react-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"react-dom": "^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@nhost/react": "workspace:*",
"@types/react": "^18.2.50",
"graphql": "16.8.1",
Expand Down
Loading

0 comments on commit 4f58bb2

Please sign in to comment.