diff --git a/LibraryTrackingApp/src/frontend/layouts/Anon/components/Footer.jsx b/LibraryTrackingApp/src/frontend/layouts/Anon/components/Footer.jsx
index 2da421a..675da51 100644
--- a/LibraryTrackingApp/src/frontend/layouts/Anon/components/Footer.jsx
+++ b/LibraryTrackingApp/src/frontend/layouts/Anon/components/Footer.jsx
@@ -2,6 +2,7 @@ import {
Link as CLink,
Flex,
} from "@chakra-ui/react";
+import Link from "next/link";
import React from "react";
@@ -18,7 +19,7 @@ const Footer = () => {
const FooterData = () => {
- const startYear = 2023;
+ const startYear = 2024;
const currentYear = new Date().getFullYear();
let yearText;
if (currentYear > startYear) {
@@ -26,7 +27,15 @@ const FooterData = () => {
} else {
yearText = `${startYear}`;
}
- return <> {yearText} © Tüm Hakları Saklıdır.>;
+ const utmParameters = '?utm_source=library-tracking-app&utm_medium=footer&utm_campaign=yourcampaign';
+
+ return (
+ <>
+
+ <>{yearText} İlyas Bozdemir © Tüm Hakları Saklıdır.>
+
+ >
+ );
};
export async function getStaticProps({ locale }) {
return {
diff --git a/LibraryTrackingApp/src/frontend/layouts/App/components/Navbar/index.jsx b/LibraryTrackingApp/src/frontend/layouts/App/components/Navbar/index.jsx
index 8f20e8f..a600b74 100644
--- a/LibraryTrackingApp/src/frontend/layouts/App/components/Navbar/index.jsx
+++ b/LibraryTrackingApp/src/frontend/layouts/App/components/Navbar/index.jsx
@@ -101,6 +101,7 @@ const NavItem = ({ isMaximized, handleMaximizeToggle }) => {
return (
<>
+
- Object.entries(route).map(([path, c]) => ({
- source: c.config.rewrite.source,
- destination: c.config.rewrite.destination,
- }))
- );
-
- return rewritesConfig;
+ 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;
diff --git a/LibraryTrackingApp/src/frontend/package-lock.json b/LibraryTrackingApp/src/frontend/package-lock.json
index 9ad754c..1ff3789 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.5.6",
+ "next": "^13.2.5",
"next-i18next": "^15.1.1",
"next-seo": "^6.4.0",
"postcss": "8.4.31",
@@ -31,7 +31,7 @@
"react-burger-menu": "^3.0.9",
"react-dom": "18.2.0",
"react-floating-whatsapp": "^5.0.8",
- "react-icons": "^4.12.0",
+ "react-icons": "^5.2.1",
"react-joyride": "^2.8.1",
"react-leaflet": "^4.2.1",
"react-pdf": "^8.0.0",
@@ -4613,9 +4613,9 @@
}
},
"node_modules/react-icons": {
- "version": "4.12.0",
- "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.12.0.tgz",
- "integrity": "sha512-IBaDuHiShdZqmfc/TwHu6+d6k2ltNCf3AszxNmjJc1KUfXdEeRJOKyNvLmAHaarhzGmTSVygNdyu8/opXv2gaw==",
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.2.1.tgz",
+ "integrity": "sha512-zdbW5GstTzXaVKvGSyTaBalt7HSfuK5ovrzlpyiWHAFXndXTdd/1hdDHI4xBM1Mn7YriT6aqESucFl9kEXzrdw==",
"peerDependencies": {
"react": "*"
}
diff --git a/LibraryTrackingApp/src/frontend/package.json b/LibraryTrackingApp/src/frontend/package.json
index 9e9663d..fa7e912 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.5.6",
+ "next": "^13.2.5",
"next-i18next": "^15.1.1",
"next-seo": "^6.4.0",
"postcss": "8.4.31",
@@ -32,7 +32,7 @@
"react-burger-menu": "^3.0.9",
"react-dom": "18.2.0",
"react-floating-whatsapp": "^5.0.8",
- "react-icons": "^4.12.0",
+ "react-icons": "^5.2.1",
"react-joyride": "^2.8.1",
"react-leaflet": "^4.2.1",
"react-pdf": "^8.0.0",
diff --git a/LibraryTrackingApp/src/frontend/pages/_app.jsx b/LibraryTrackingApp/src/frontend/pages/_app.jsx
index d1ea4f5..2b9315d 100644
--- a/LibraryTrackingApp/src/frontend/pages/_app.jsx
+++ b/LibraryTrackingApp/src/frontend/pages/_app.jsx
@@ -1,32 +1,53 @@
-import { ChakraProvider, extendTheme } from "@chakra-ui/react";
+import { Alert, AlertIcon, ChakraProvider, Text, extendTheme } from "@chakra-ui/react";
import dynamic from "next/dynamic";
const AnonLayout = dynamic(() => import("@/layouts/Anon/layout"));
const AppLayout = dynamic(() => import("@/layouts/App/layout"));
const MeLayout = dynamic(() => import("@/layouts/Me/layout"));
const AdminLayout = dynamic(() => import("@/layouts/Admin/layout"));
-import ForumLayout from "@/layouts/Forum/layout";
-
+const ForumLayout = dynamic(() => import("@/layouts/Forum/layout"));
const PlaceholderLayout = dynamic(() => import("@/layouts/Placeholder/layout"));
-import { useColorMode, colorMode } from "@chakra-ui/react";
import "../styles/globals.css";
import AOS from "aos";
import "aos/dist/aos.css";
import { useRouter } from "next/router";
-import { useEffect } from "react";
+import { useEffect, useState } from "react";
import { darkTheme, lightTheme } from "@/src/foundations/colors";
import { AuthContextProvider, AuthProvider } from "@/contexts/AuthContext";
import { AppContextProvider } from "@/contexts/AppContext";
import { errorStatusCodes } from "@/constants/errorStatusCodes";
+import { site } from "@/constants/site";
+import theme from "@/src/theme";
-function MyApp({ Component, pageProps, session, statusCode }) {
- const router = useRouter();
+const AlertData = () => {
+ const [error, setError] = useState(null);
- const theme = extendTheme(
- colorMode === "light" ? lightTheme.colors : darkTheme.colors
- );
+ useEffect(() => {
+ const fetchData = async () => {
+ try {
+ const response = await axios.get(site.API_BASE_URL + '');
+ } catch (error) {
+ setError(error.message);
+ }
+ };
+
+ fetchData();
+ }, []);
+ return (<>
+
+
+
+
+
+ {error ? 'Üzgünüm, veritabanından veri çekilemiyor. Fakat Sayfalar arasında gezinmeye devam edebilirsiniz.' : 'Harika! Veriler başarıyla alındı.'}
+
+ >)
+}
+
+function MyApp({ Component, pageProps, statusCode = 200 }) {
+ const router = useRouter();
const placeholderRoutes = [
"/privacy-policy",
@@ -77,6 +98,9 @@ function MyApp({ Component, pageProps, session, statusCode }) {
AOS.refresh();
}, []);
+
+
+
return (
<>
{errorStatusCodes.includes(statusCode) ? (
@@ -87,7 +111,14 @@ function MyApp({ Component, pageProps, session, statusCode }) {
+
+ {/*
+
+*/}
+
+
+
@@ -98,20 +129,5 @@ function MyApp({ Component, pageProps, session, statusCode }) {
);
}
-MyApp.getInitialProps = async (appContext) => {
- const { Component, ctx } = appContext;
- let pageProps = {};
- let session = {};
-
- if (Component.getInitialProps) {
- pageProps = await Component.getInitialProps(ctx);
- session = await Component.getInitialProps(ctx);
- }
-
- const { res, err } = ctx;
- const statusCode = res ? res.statusCode : err ? err.statusCode : null;
-
- return { pageProps, session, statusCode };
-};
export default MyApp;
diff --git a/LibraryTrackingApp/src/frontend/pages/forum/[category]/new.jsx b/LibraryTrackingApp/src/frontend/pages/forum/[category]/new.jsx
index e69de29..925490f 100644
--- a/LibraryTrackingApp/src/frontend/pages/forum/[category]/new.jsx
+++ b/LibraryTrackingApp/src/frontend/pages/forum/[category]/new.jsx
@@ -0,0 +1,9 @@
+import React from 'react'
+
+function NewPage() {
+ return (
+ NewPage
+ )
+}
+
+export default NewPage
\ No newline at end of file
diff --git a/LibraryTrackingApp/src/frontend/src/theme.js b/LibraryTrackingApp/src/frontend/src/theme.js
index 783900b..5ad7009 100644
--- a/LibraryTrackingApp/src/frontend/src/theme.js
+++ b/LibraryTrackingApp/src/frontend/src/theme.js
@@ -1,7 +1,7 @@
import { extendTheme } from "@chakra-ui/react";
import { styles } from "./foundations/styles";
import { config } from "./foundations/config";
-import { colors } from "./foundations/colors";
+import { lightTheme, darkTheme } from "./foundations/colors";
import { fonts } from "./foundations/fonts";
import { fontSizes } from "./foundations/fontSizes";
import { fontWeights } from "./foundations/fontWeights";
@@ -15,7 +15,8 @@ import { zIndices } from "./foundations/zIndices";
const theme = extendTheme({
styles,
config,
- colors,
+ lightTheme,
+ darkTheme,
fonts,
fontSizes,
fontWeights,
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..664a0e1
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,6 @@
+{
+ "name": "libraryTrackingApp",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {}
+}