From a0bc657b99f155e76e3027164ca8830bcda82558 Mon Sep 17 00:00:00 2001 From: ilyasBozdemir Date: Thu, 16 May 2024 13:55:49 +0300 Subject: [PATCH 1/7] npm version updated --- LibraryTrackingApp/src/frontend/package-lock.json | 2 +- LibraryTrackingApp/src/frontend/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LibraryTrackingApp/src/frontend/package-lock.json b/LibraryTrackingApp/src/frontend/package-lock.json index 1ff3789..c7bf8b4 100644 --- a/LibraryTrackingApp/src/frontend/package-lock.json +++ b/LibraryTrackingApp/src/frontend/package-lock.json @@ -23,7 +23,7 @@ "https": "^1.0.0", "i18next": "^23.7.8", "leaflet-defaulticon-compatibility": "^0.1.2", - "next": "^13.2.5", + "next": "^13.3.0", "next-i18next": "^15.1.1", "next-seo": "^6.4.0", "postcss": "8.4.31", diff --git a/LibraryTrackingApp/src/frontend/package.json b/LibraryTrackingApp/src/frontend/package.json index fa7e912..d0e349d 100644 --- a/LibraryTrackingApp/src/frontend/package.json +++ b/LibraryTrackingApp/src/frontend/package.json @@ -24,7 +24,7 @@ "https": "^1.0.0", "i18next": "^23.7.8", "leaflet-defaulticon-compatibility": "^0.1.2", - "next": "^13.2.5", + "next": "^13.3.0", "next-i18next": "^15.1.1", "next-seo": "^6.4.0", "postcss": "8.4.31", From ad8d5c028c1b1bd252d2fed82f97cbecf84085f8 Mon Sep 17 00:00:00 2001 From: ilyasBozdemir Date: Thu, 16 May 2024 14:00:11 +0300 Subject: [PATCH 2/7] next.config file updated --- .../src/frontend/next.config.js | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/LibraryTrackingApp/src/frontend/next.config.js b/LibraryTrackingApp/src/frontend/next.config.js index 9885e96..6ba69bf 100644 --- a/LibraryTrackingApp/src/frontend/next.config.js +++ b/LibraryTrackingApp/src/frontend/next.config.js @@ -5,48 +5,6 @@ const routes = require("./routes"); const nextConfig = { reactStrictMode: true, - exportTrailingSlash: true, - exportPathMap: async function ( - defaultPathMap, - { dev, dir, outDir, distDir, buildId } - ) { - return { - // paths... - }; - }, - // Zaman aşımını artırın - exportTrailingSlash: true, - exportPathMap: async function ( - defaultPathMap, - { dev, dir, outDir, distDir, buildId } - ) { - return { - // paths... - }; - }, - // Zaman aşımını artırın - exportTrailingSlash: true, - exportPathMap: async function ( - defaultPathMap, - { dev, dir, outDir, distDir, buildId } - ) { - return { - // paths... - }; - }, - // Zaman aşımını artırın - exportTrailingSlash: true, - exportPathMap: async function ( - defaultPathMap, - { dev, dir, outDir, distDir, buildId } - ) { - return { - // paths... - }; - }, - // Zaman aşımını artırın - exportTimeout: 1000, // 1 saniye yerine başka bir değer de kullanabilirsiniz - }; module.exports = nextConfig; From 25a7cd4482d3af705a58fcca9bd557abfb8b91d0 Mon Sep 17 00:00:00 2001 From: ilyasBozdemir Date: Thu, 16 May 2024 14:19:43 +0300 Subject: [PATCH 3/7] updated --- LibraryTrackingApp/src/frontend/siteInfo.js | 1 - 1 file changed, 1 deletion(-) diff --git a/LibraryTrackingApp/src/frontend/siteInfo.js b/LibraryTrackingApp/src/frontend/siteInfo.js index 4119d15..a988862 100644 --- a/LibraryTrackingApp/src/frontend/siteInfo.js +++ b/LibraryTrackingApp/src/frontend/siteInfo.js @@ -55,5 +55,4 @@ module.exports = { dropdownLinks, footerLinks, socialMediaLinks - }; \ No newline at end of file From 9b3e3d0419f81f638b67d0b764f3de290c492edf Mon Sep 17 00:00:00 2001 From: ilyasBozdemir Date: Thu, 16 May 2024 14:31:33 +0300 Subject: [PATCH 4/7] error pages added --- .../src/frontend/pages/_error.js | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 LibraryTrackingApp/src/frontend/pages/_error.js diff --git a/LibraryTrackingApp/src/frontend/pages/_error.js b/LibraryTrackingApp/src/frontend/pages/_error.js new file mode 100644 index 0000000..0e266e5 --- /dev/null +++ b/LibraryTrackingApp/src/frontend/pages/_error.js @@ -0,0 +1,33 @@ +// pages/_error.js + +import { Text } from "@chakra-ui/react"; + +function NotFoundPage() { + return ( + + Sayfa bulunamadı. + + ); +} + +function InternalErrorPage() { + return ( + + Sunucu iç hatası. + + ); +} + +function Error({ statusCode }) { + if (statusCode === 404) { + return ; + } + return ; +} + +Error.getInitialProps = ({ res, err }) => { + const statusCode = res ? res.statusCode : err ? err.statusCode : 404; + return { statusCode }; +}; + +export default Error; From b03d147356535de120c218c3b4177a7e92b461bc Mon Sep 17 00:00:00 2001 From: ilyasBozdemir Date: Thu, 16 May 2024 14:32:28 +0300 Subject: [PATCH 5/7] docs page updated --- .../src/frontend/pages/{docs/index.jsx => docs.jsx} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename LibraryTrackingApp/src/frontend/pages/{docs/index.jsx => docs.jsx} (100%) diff --git a/LibraryTrackingApp/src/frontend/pages/docs/index.jsx b/LibraryTrackingApp/src/frontend/pages/docs.jsx similarity index 100% rename from LibraryTrackingApp/src/frontend/pages/docs/index.jsx rename to LibraryTrackingApp/src/frontend/pages/docs.jsx From 6122ab439698b771735b12e2620606c68b30b1a2 Mon Sep 17 00:00:00 2001 From: ilyasBozdemir Date: Thu, 16 May 2024 14:45:12 +0300 Subject: [PATCH 6/7] getStaticProps to getStaticProps --- LibraryTrackingApp/src/frontend/pages/docs.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibraryTrackingApp/src/frontend/pages/docs.jsx b/LibraryTrackingApp/src/frontend/pages/docs.jsx index cd3031b..4282895 100644 --- a/LibraryTrackingApp/src/frontend/pages/docs.jsx +++ b/LibraryTrackingApp/src/frontend/pages/docs.jsx @@ -30,7 +30,7 @@ function DocsPage({ swaggerJsonUri, pageTitle, error }) { ); } -export async function getStaticProps() { +export async function getInitialProps() { // burda json dosyasını alıp günlük haftalık gibi cachelemek ile From 9a2db7cc49a8c08b2e81c8aabf4d0f28053d01d6 Mon Sep 17 00:00:00 2001 From: ilyasBozdemir Date: Thu, 16 May 2024 14:57:03 +0300 Subject: [PATCH 7/7] readme.md updated --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f60b3d..7cd5fa2 100644 --- a/README.md +++ b/README.md @@ -290,4 +290,10 @@ dotnet restore npm run start ``` -5. Admin sayfası için http://localhost:3000/ sayfasını acın. +5. landing page sayfası için http://localhost:3000/ sayfasını acın. +6. Application sayfası için http://localhost:3000/app sayfasını acın. +7. Admin sayfası için http://localhost:3000/admin sayfasını acın. +8. Üye sayfası için http://localhost:3000/me sayfasını acın. + + +NOT: pages router ile baslanmıstır. App router'a geçirilicektir \ No newline at end of file