diff --git a/public/scripts/hover.js b/public/scripts/hover.js index 8cc5250..609bb8d 100644 --- a/public/scripts/hover.js +++ b/public/scripts/hover.js @@ -1,7 +1,7 @@ /** * Portfolio - * Copyright (C) 2024 Maxim (https://github.com/max1mde) - * + * Copyright (C) 2024 Maxim (https://github.com/max1mde/portfolio) + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation. diff --git a/public/scripts/scroll.js b/public/scripts/scroll.js index 9fb8655..e2e01f1 100644 --- a/public/scripts/scroll.js +++ b/public/scripts/scroll.js @@ -1,7 +1,7 @@ /** * Portfolio - * Copyright (C) 2024 Maxim (https://github.com/max1mde) - * + * Copyright (C) 2024 Maxim (https://github.com/max1mde/portfolio) + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation. diff --git a/scripts/add-headers.js b/scripts/add-headers.js index 3472ed3..0ab3351 100644 --- a/scripts/add-headers.js +++ b/scripts/add-headers.js @@ -1,7 +1,7 @@ /** * Portfolio - * Copyright (C) 2024 Maxim (https://github.com/max1mde) - * + * Copyright (C) 2024 Maxim (https://github.com/max1mde/portfolio) + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation. @@ -11,7 +11,7 @@ const fs = require("fs").promises; const path = require("path"); const CURRENT_YEAR = new Date().getFullYear(); -const GITHUB_LINK = "https://github.com/max1mde"; +const GITHUB_LINK = "https://github.com/max1mde/portfolio"; function createLicenseHeader(year) { return `/** @@ -40,7 +40,7 @@ function hasLicenseHeader(content, licenseHeader) { }; const contentStripped = stripYear( - content.split("\n").slice(0, 10).join("\n") + content.split("\n").slice(0, 10).join("\n"), ); const headerStripped = stripYear(licenseHeader); @@ -53,18 +53,15 @@ async function processFile(filePath) { const existingYear = extractCopyrightYear(content); const licenseHeader = createLicenseHeader(CURRENT_YEAR); - if (!hasLicenseHeader(content, licenseHeader)) { - if (existingYear && existingYear !== CURRENT_YEAR) { const updatedContent = content.replace( /Copyright \(C\) \d{4}/, - `Copyright (C) ${CURRENT_YEAR}` + `Copyright (C) ${CURRENT_YEAR}`, ); await fs.writeFile(filePath, updatedContent); console.log(`Updated copyright year in: ${filePath}`); } else { - await fs.writeFile(filePath, licenseHeader + content); console.log(`Added license header to: ${filePath}`); } @@ -82,7 +79,6 @@ async function addLicenseHeaders(dir) { const stat = await fs.stat(fullPath); if (stat.isDirectory()) { - const skipDirs = ["node_modules", ".next", ".git", "dist", "build"]; if (!skipDirs.includes(file)) { await addLicenseHeaders(fullPath); @@ -98,7 +94,6 @@ async function addLicenseHeaders(dir) { } } - addLicenseHeaders(process.cwd()) .then(() => console.log("License header processing complete")) .catch(console.error); diff --git a/src/app/api/contact/route.js b/src/app/api/contact/route.js index b90d4f8..cd5fdcf 100644 --- a/src/app/api/contact/route.js +++ b/src/app/api/contact/route.js @@ -1,6 +1,6 @@ /** * Portfolio - * Copyright (C) 2024 Maxim (https://github.com/max1mde) + * Copyright (C) 2024 Maxim (https://github.com/max1mde/portfolio) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/src/app/contact/page.js b/src/app/contact/page.js index 6db8f15..676dcf9 100644 --- a/src/app/contact/page.js +++ b/src/app/contact/page.js @@ -1,7 +1,7 @@ /** * Portfolio - * Copyright (C) 2024 Maxim (https://github.com/max1mde) - * + * Copyright (C) 2024 Maxim (https://github.com/max1mde/portfolio) + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation. diff --git a/src/app/home/page.js b/src/app/home/page.js index b92dc40..113e282 100644 --- a/src/app/home/page.js +++ b/src/app/home/page.js @@ -1,6 +1,6 @@ /** * Portfolio - * Copyright (C) 2024 Maxim (https://github.com/max1mde) + * Copyright (C) 2024 Maxim (https://github.com/max1mde/portfolio) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published diff --git a/src/app/layout.js b/src/app/layout.js index f601b6d..8cc85c8 100644 --- a/src/app/layout.js +++ b/src/app/layout.js @@ -1,6 +1,6 @@ /** * Portfolio - * Copyright (C) 2024 Maxim (https://github.com/max1mde) + * Copyright (C) 2024 Maxim (https://github.com/max1mde/portfolio) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published @@ -17,7 +17,6 @@ import Script from "next/script"; import CustomCursor from "@/components/custom/cursor"; import Footer from "@/components/custom/footer"; -import Head from "next/head"; const deliusFont = localFont({ src: "./fonts/DeliusSwashCaps-Regular.ttf", @@ -53,10 +52,6 @@ export default function RootLayout({ children }) { return ( - -