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

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
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"]
}
6 changes: 4 additions & 2 deletions next.config.js
Expand Up @@ -14,11 +14,13 @@ 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";
config.experiments = { asyncWebAssembly: true };

config.experiments = { asyncWebAssembly: true, layers: true };
return config;
},
};
Expand Down
12 changes: 7 additions & 5 deletions package.json
Expand Up @@ -9,7 +9,7 @@
"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"
},
Expand All @@ -29,14 +29,16 @@
"dayjs": "^1.11.10",
"gofmt.js": "^0.0.2",
"html-to-image": "^1.11.11",
"impl": "^1.3.0",
"jq-in-the-browser": "^0.7.2",
"jq-web": "^0.5.1",
"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",
"lodash.debounce": "^4.0.8",
"lodash.get": "^4.4.2",
"lodash.set": "^4.3.2",
Expand All @@ -59,7 +61,7 @@
"styled-components": "^6.1.8",
"toml": "^3.0.0",
"use-long-press": "^3.2.0",
"zustand": "^4.5.0"
"zustand": "^4.4.7"
},
"devDependencies": {
"@next/bundle-analyzer": "^14.1.0",
Expand All @@ -74,14 +76,14 @@
"@types/lodash.update": "^4.10.9",
"@types/node": "^20.11.16",
"@types/pako": "^2.0.3",
"@types/react": "18.2.51",
"@types/react": "18.2.52",
"@types/react-dom": "^18.2.18",
"eslint": "8.56.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.4",
"prettier": "^3.2.2",
"ts-node": "^10.9.2",
"typescript": "5.3.3"
}
Expand Down