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

Case project #39

Merged
merged 7 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
42 changes: 0 additions & 42 deletions LibraryTrackingApp/src/frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion LibraryTrackingApp/src/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion LibraryTrackingApp/src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
33 changes: 33 additions & 0 deletions LibraryTrackingApp/src/frontend/pages/_error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// pages/_error.js

import { Text } from "@chakra-ui/react";

function NotFoundPage() {
return (
<Text textAlign="center" color="red">
Sayfa bulunamadı.
</Text>
);
}

function InternalErrorPage() {
return (
<Text textAlign="center" color="red">
Sunucu iç hatası.
</Text>
);
}

function Error({ statusCode }) {
if (statusCode === 404) {
return <NotFoundPage />;
}
return <InternalErrorPage />;
}

Error.getInitialProps = ({ res, err }) => {
const statusCode = res ? res.statusCode : err ? err.statusCode : 404;
return { statusCode };
};

export default Error;
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion LibraryTrackingApp/src/frontend/siteInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ module.exports = {
dropdownLinks,
footerLinks,
socialMediaLinks

};
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading