Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrated project from pages to app router #380

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3de41ff
migrate: remove pages/_app.tsx & pages/_document.tsx, added app/layou…
zoosphar Jan 11, 2024
a77ebc6
migrate: update next.config.js and tsconfig.json
zoosphar Jan 11, 2024
7d252a0
migrate: rename src/pages/index.tsx -> src/app/page.tsx
zoosphar Jan 11, 2024
90ca39b
migrate: customAppInit for app initialization with required styles an…
zoosphar Jan 11, 2024
3267c01
migrate: new error handling file app/not-found.tsx
zoosphar Jan 11, 2024
69d3ae3
migrate: update useRouter import from next/router to next/navigation
zoosphar Jan 11, 2024
4c39339
further replace next/router with next/navigation
zoosphar Jan 22, 2024
a1d25cf
migrate all routes from pages to app router
zoosphar Jan 22, 2024
9b180f5
add missing impl package
zoosphar Jan 22, 2024
2a44335
make undefined a fallback type for 'json' query param
zoosphar Jan 23, 2024
cc3d382
update metadataBase property in layout metadata export
zoosphar Jan 23, 2024
4fabc6e
minor fix in chechEditorSession function call
zoosphar Jan 23, 2024
99bd413
feat: move toast to bottom right
AykutSarac Jan 13, 2024
231a3e9
chore: update meta tag
AykutSarac Jan 13, 2024
f276932
feat: update meta description
AykutSarac Jan 15, 2024
4eba0dc
feat: enable ai
AykutSarac Jan 19, 2024
6ea0dea
installed lodash
zoosphar Jan 23, 2024
a055738
update metadata content in layout.tsx
zoosphar Jan 28, 2024
471d7b2
Update layout.tsx
zoosphar Jan 31, 2024
7f2cf0e
Merge branch 'main' into migration-to-app-router-ZPHR
AykutSarac Feb 3, 2024
2402e81
fix: pages.tsx
AykutSarac Feb 3, 2024
3979d73
fix: sign-in page.tsx
AykutSarac Feb 3, 2024
e234db0
feat: lazy load adapter libs
AykutSarac Feb 3, 2024
3ac83b1
Merge branch 'main' into migration-to-app-router-ZPHR
AykutSarac Feb 3, 2024
815e4ba
fix: update components
AykutSarac Feb 3, 2024
b4f9a08
chore: update deps & add next lint
AykutSarac Feb 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
]
},
"extends": ["next/core-web-vitals", "prettier"],
"extends": ["next", "next/core-web-vitals", "prettier"],
"plugins": ["prettier", "unused-imports"],
"ignorePatterns": ["src/enums"]
}
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const config = {
compiler: {
styledComponents: true,
},
experimental: {
optimizePackageImports: ["@mantine/core", "@mantine/hooks"],
},
webpack: config => {
config.resolve.fallback = { fs: false };
config.output.webassemblyModuleFilename = "static/wasm/[modulehash].wasm";
Expand Down
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,23 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "tsc --project tsconfig.json && eslint src && prettier --check src",
"lint": "tsc --project tsconfig.json && eslint src && prettier --check src && next lint",
"lint:fix": "eslint --fix src & prettier --write src",
"analyze": "ANALYZE=true npm run build"
},
"dependencies": {
"@mantine/code-highlight": "^7.4.1",
"@mantine/core": "^7.4.1",
"@mantine/hooks": "^7.4.1",
"@mantine/code-highlight": "^7.5.1",
"@mantine/core": "^7.5.1",
"@mantine/dropzone": "^7.5.1",
"@mantine/hooks": "^7.5.1",
"@monaco-editor/react": "^4.6.0",
"@sentry/nextjs": "^7.99.0",
"@supabase/auth-helpers-nextjs": "^0.9.0",
"@supabase/auth-helpers-react": "^0.4.2",
"@supabase/supabase-js": "^2.39.3",
"@tanstack/react-query": "^4.36.1",
"allotment": "^1.19.5",
"axios": "^1.6.5",
"allotment": "^1.20.0",
"axios": "^1.6.7",
"dayjs": "^1.11.10",
"gofmt.js": "^0.0.2",
"html-to-image": "^1.11.11",
Expand All @@ -34,7 +35,7 @@
"js-yaml": "^4.1.0",
"json-2-csv": "^5.0.1",
"json_typegen_wasm": "^0.7.0",
"jsonc-parser": "^3.2.0",
"jsonc-parser": "^3.2.1",
"jsonwebtoken": "^9.0.2",
"jxon": "^2.0.0-beta.5",
"lodash": "^4.17.21",
Expand All @@ -44,8 +45,8 @@
"lodash.unset": "^4.5.2",
"lodash.update": "^4.10.2",
"maketypes": "^1.1.2",
"million": "^2.6.4",
"next": "13.5.6",
"million": "^3.0.2",
"next": "14.1.0",
"pako": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down Expand Up @@ -73,13 +74,13 @@
"@types/lodash.set": "^4.3.9",
"@types/lodash.unset": "^4.5.9",
"@types/lodash.update": "^4.10.9",
"@types/node": "^20.4.7",
"@types/node": "^20.11.16",
"@types/pako": "^2.0.3",
"@types/react": "18.2.45",
"@types/react": "18.2.52",
"@types/react-dom": "^18.2.18",
"eslint": "8.56.0",
"eslint-config-next": "14.0.4",
"eslint-config-prettier": "^8.10.0",
"eslint-config-next": "14.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-unused-imports": "^3.0.0",
"prettier": "^3.2.2",
Expand Down
Loading
Loading