Skip to content

Commit

Permalink
feat: Upgrade next.js to 15 using @next/codemod infiniflow#1841
Browse files Browse the repository at this point in the history
  • Loading branch information
cike8899 committed Oct 29, 2024
1 parent 953594a commit 99d765a
Show file tree
Hide file tree
Showing 3 changed files with 647 additions and 668 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ const Empty = () => {
return <div>empty</div>;
};

export default async function DatabasePage({
searchParams: { tab },
params: { tableId, databaseId }
}: DatabaseRouteParams) {
export default async function DatabasePage(props: DatabaseRouteParams) {
const params = await props.params;

const { tableId, databaseId } = params;

const searchParams = await props.searchParams;

const { tab } = searchParams;

const DatabaseTable: React.FunctionComponent<DatabaseRouteParams['params']> =
TableMap[tab] ?? Empty;

Expand Down
18 changes: 12 additions & 6 deletions gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@radix-ui/react-tooltip": "^1.1.2",
"@tanstack/react-table": "^8.20.5",
"@types/node": "20.14.10",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]",
"@vercel/analytics": "^1.3.1",
"autoprefixer": "^10.4.19",
"class-variance-authority": "^0.7.0",
Expand All @@ -33,14 +33,14 @@
"drizzle-orm": "^0.31.2",
"drizzle-zod": "^0.5.1",
"lucide-react": "^0.400.0",
"next": "15.0.0-canary.75",
"next": "15.0.1",
"next-auth": "5.0.0-beta.19",
"postcss": "^8.4.39",
"prettier": "^3.3.2",
"prop-types": "^15.8.1",
"react": "19.0.0-rc.0",
"react": "19.0.0-rc-69d4b800-20241021",
"react-accessible-treeview": "^2.9.1",
"react-dom": "19.0.0-rc.0",
"react-dom": "19.0.0-rc-69d4b800-20241021",
"react-hook-form": "^7.53.0",
"react-icons": "^5.3.0",
"server-only": "^0.0.1",
Expand All @@ -54,8 +54,14 @@
"@svgr/webpack": "^8.1.0",
"code-inspector-plugin": "^0.16.1",
"eslint": "^8",
"eslint-config-next": "14.2.15",
"eslint-config-next": "15.0.1",
"eslint-config-prettier": "^9.1.0",
"prettier-plugin-organize-imports": "^4.0.0"
},
"pnpm": {
"overrides": {
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]"
}
}
}
Loading

0 comments on commit 99d765a

Please sign in to comment.