From 4b042017cfa74f54ac676421ba43f1a19df725f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 12:20:04 +0000 Subject: [PATCH 1/5] chore(deps): bump next from 14.2.5 to 14.2.22 Bumps [next](https://github.com/vercel/next.js) from 14.2.5 to 14.2.22. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v14.2.5...v14.2.22) --- updated-dependencies: - dependency-name: next dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- package-lock.json | 88 +++++++++++++++++++++++------------------------ package.json | 2 +- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/package-lock.json b/package-lock.json index 02de40a2..64621f57 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "dotenv-cli": "^7.4.1", "echarts": "^5.5.0", "echarts-for-react": "^3.0.2", - "next": "^14.2.5", + "next": "^14.2.22", "next-auth": "^4.24.7", "next-nprogress-bar": "^2.3.11", "nextjs-toploader": "^1.6.12", @@ -669,9 +669,9 @@ } }, "node_modules/@next/env": { - "version": "14.2.5", - "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.5.tgz", - "integrity": "sha512-/zZGkrTOsraVfYjGP8uM0p6r0BDT6xWpkjdVbcz66PJVSpwXX3yNiRycxAuDfBKGWBrZBXRuK/YVlkNgxHGwmA==" + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.22.tgz", + "integrity": "sha512-EQ6y1QeNQglNmNIXvwP/Bb+lf7n9WtgcWvtoFsHquVLCJUuxRs+6SfZ5EK0/EqkkLex4RrDySvKgKNN7PXip7Q==" }, "node_modules/@next/eslint-plugin-next": { "version": "14.2.5", @@ -683,9 +683,9 @@ } }, "node_modules/@next/swc-darwin-arm64": { - "version": "14.2.5", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.5.tgz", - "integrity": "sha512-/9zVxJ+K9lrzSGli1///ujyRfon/ZneeZ+v4ptpiPoOU+GKZnm8Wj8ELWU1Pm7GHltYRBklmXMTUqM/DqQ99FQ==", + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.22.tgz", + "integrity": "sha512-HUaLiehovgnqY4TMBZJ3pDaOsTE1spIXeR10pWgdQVPYqDGQmHJBj3h3V6yC0uuo/RoY2GC0YBFRkOX3dI9WVQ==", "cpu": [ "arm64" ], @@ -698,9 +698,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "14.2.5", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.5.tgz", - "integrity": "sha512-vXHOPCwfDe9qLDuq7U1OYM2wUY+KQ4Ex6ozwsKxp26BlJ6XXbHleOUldenM67JRyBfVjv371oneEvYd3H2gNSA==", + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.22.tgz", + "integrity": "sha512-ApVDANousaAGrosWvxoGdLT0uvLBUC+srqOcpXuyfglA40cP2LBFaGmBjhgpxYk5z4xmunzqQvcIgXawTzo2uQ==", "cpu": [ "x64" ], @@ -713,9 +713,9 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "14.2.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.5.tgz", - "integrity": "sha512-vlhB8wI+lj8q1ExFW8lbWutA4M2ZazQNvMWuEDqZcuJJc78iUnLdPPunBPX8rC4IgT6lIx/adB+Cwrl99MzNaA==", + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.22.tgz", + "integrity": "sha512-3O2J99Bk9aM+d4CGn9eEayJXHuH9QLx0BctvWyuUGtJ3/mH6lkfAPRI4FidmHMBQBB4UcvLMfNf8vF0NZT7iKw==", "cpu": [ "arm64" ], @@ -728,9 +728,9 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "14.2.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.5.tgz", - "integrity": "sha512-NpDB9NUR2t0hXzJJwQSGu1IAOYybsfeB+LxpGsXrRIb7QOrYmidJz3shzY8cM6+rO4Aojuef0N/PEaX18pi9OA==", + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.22.tgz", + "integrity": "sha512-H/hqfRz75yy60y5Eg7DxYfbmHMjv60Dsa6IWHzpJSz4MRkZNy5eDnEW9wyts9bkxwbOVZNPHeb3NkqanP+nGPg==", "cpu": [ "arm64" ], @@ -743,9 +743,9 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "14.2.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.5.tgz", - "integrity": "sha512-8XFikMSxWleYNryWIjiCX+gU201YS+erTUidKdyOVYi5qUQo/gRxv/3N1oZFCgqpesN6FPeqGM72Zve+nReVXQ==", + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.22.tgz", + "integrity": "sha512-LckLwlCLcGR1hlI5eiJymR8zSHPsuruuwaZ3H2uudr25+Dpzo6cRFjp/3OR5UYJt8LSwlXv9mmY4oI2QynwpqQ==", "cpu": [ "x64" ], @@ -758,9 +758,9 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "14.2.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.5.tgz", - "integrity": "sha512-6QLwi7RaYiQDcRDSU/os40r5o06b5ue7Jsk5JgdRBGGp8l37RZEh9JsLSM8QF0YDsgcosSeHjglgqi25+m04IQ==", + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.22.tgz", + "integrity": "sha512-qGUutzmh0PoFU0fCSu0XYpOfT7ydBZgDfcETIeft46abPqP+dmePhwRGLhFKwZWxNWQCPprH26TjaTxM0Nv8mw==", "cpu": [ "x64" ], @@ -773,9 +773,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "14.2.5", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.5.tgz", - "integrity": "sha512-1GpG2VhbspO+aYoMOQPQiqc/tG3LzmsdBH0LhnDS3JrtDx2QmzXe0B6mSZZiN3Bq7IOMXxv1nlsjzoS1+9mzZw==", + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.22.tgz", + "integrity": "sha512-K6MwucMWmIvMb9GlvT0haYsfIPxfQD8yXqxwFy4uLFMeXIb2TcVYQimxkaFZv86I7sn1NOZnpOaVk5eaxThGIw==", "cpu": [ "arm64" ], @@ -788,9 +788,9 @@ } }, "node_modules/@next/swc-win32-ia32-msvc": { - "version": "14.2.5", - "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.5.tgz", - "integrity": "sha512-Igh9ZlxwvCDsu6438FXlQTHlRno4gFpJzqPjSIBZooD22tKeI4fE/YMRoHVJHmrQ2P5YL1DoZ0qaOKkbeFWeMg==", + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.22.tgz", + "integrity": "sha512-5IhDDTPEbzPR31ZzqHe90LnNe7BlJUZvC4sA1thPJV6oN5WmtWjZ0bOYfNsyZx00FJt7gggNs6SrsX0UEIcIpA==", "cpu": [ "ia32" ], @@ -803,9 +803,9 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "14.2.5", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.5.tgz", - "integrity": "sha512-tEQ7oinq1/CjSG9uSTerca3v4AZ+dFa+4Yu6ihaG8Ud8ddqLQgFGcnwYls13H5X5CPDPZJdYxyeMui6muOLd4g==", + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.22.tgz", + "integrity": "sha512-nvRaB1PyG4scn9/qNzlkwEwLzuoPH3Gjp7Q/pLuwUgOTt1oPMlnCI3A3rgkt+eZnU71emOiEv/mR201HoURPGg==", "cpu": [ "x64" ], @@ -6246,11 +6246,11 @@ "license": "MIT" }, "node_modules/next": { - "version": "14.2.5", - "resolved": "https://registry.npmjs.org/next/-/next-14.2.5.tgz", - "integrity": "sha512-0f8aRfBVL+mpzfBjYfQuLWh2WyAwtJXCRfkPF4UJ5qd2YwrHczsrSzXU4tRMV0OAxR8ZJZWPFn6uhSC56UTsLA==", + "version": "14.2.22", + "resolved": "https://registry.npmjs.org/next/-/next-14.2.22.tgz", + "integrity": "sha512-Ps2caobQ9hlEhscLPiPm3J3SYhfwfpMqzsoCMZGWxt9jBRK9hoBZj2A37i8joKhsyth2EuVKDVJCTF5/H4iEDw==", "dependencies": { - "@next/env": "14.2.5", + "@next/env": "14.2.22", "@swc/helpers": "0.5.5", "busboy": "1.6.0", "caniuse-lite": "^1.0.30001579", @@ -6265,15 +6265,15 @@ "node": ">=18.17.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "14.2.5", - "@next/swc-darwin-x64": "14.2.5", - "@next/swc-linux-arm64-gnu": "14.2.5", - "@next/swc-linux-arm64-musl": "14.2.5", - "@next/swc-linux-x64-gnu": "14.2.5", - "@next/swc-linux-x64-musl": "14.2.5", - "@next/swc-win32-arm64-msvc": "14.2.5", - "@next/swc-win32-ia32-msvc": "14.2.5", - "@next/swc-win32-x64-msvc": "14.2.5" + "@next/swc-darwin-arm64": "14.2.22", + "@next/swc-darwin-x64": "14.2.22", + "@next/swc-linux-arm64-gnu": "14.2.22", + "@next/swc-linux-arm64-musl": "14.2.22", + "@next/swc-linux-x64-gnu": "14.2.22", + "@next/swc-linux-x64-musl": "14.2.22", + "@next/swc-win32-arm64-msvc": "14.2.22", + "@next/swc-win32-ia32-msvc": "14.2.22", + "@next/swc-win32-x64-msvc": "14.2.22" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", diff --git a/package.json b/package.json index 48867d46..28acdb1e 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "dotenv-cli": "^7.4.1", "echarts": "^5.5.0", "echarts-for-react": "^3.0.2", - "next": "^14.2.5", + "next": "^14.2.22", "next-auth": "^4.24.7", "next-nprogress-bar": "^2.3.11", "nextjs-toploader": "^1.6.12", From 37bd8eed95b58ef3c867462c7aa4c68e09b04c20 Mon Sep 17 00:00:00 2001 From: Kusindra Aji Rabbany Date: Mon, 6 Jan 2025 19:45:32 +0700 Subject: [PATCH 2/5] Create CONTRIBUTING.md --- CONTRIBUTING.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..d0a6edc1 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,61 @@ +# Contributing to Moklet.org + +Thank you for considering contributing to Moklet.org! Your support helps us enhance this project. + +## Table of Contents + +- [Code of Conduct](#code-of-conduct) +- [How to Contribute](#how-to-contribute) + - [Reporting Issues](#reporting-issues) + - [Rules for Verified Issues](#rules-for-verified-issues) + - [Submitting Pull Requests](#submitting-pull-requests) +- [Development Setup](#development-setup) +- [Style Guidelines](#style-guidelines) +- [License](#license) + +## Code of Conduct + +Please adhere to our [Code of Conduct](CODE_OF_CONDUCT.md) in all interactions. + +## How to Contribute + +### Reporting Issues + +- **Search Existing Issues**: Before reporting, check if the issue already exists. +- **Create a New Issue**: If not found, open a new issue with detailed information, including steps to reproduce, expected behavior, and screenshots if necessary. + +### Rules for Verified Issues + +- **Labeling**: Verified issues will have the label `todo`. +- **Open for Contribution**: Anyone can work on `todo` issues **if they are not assigned to someone**. +- **Self-Assignment**: You can assign yourself to an issue to indicate that you are working on it. +- **Claiming an Issue**: Leave a comment to express your intent to work on a `todo` issue before assigning it to yourself. + +### Submitting Pull Requests + +- **Fork the Repository**: Start by forking the repository to your GitHub account. +- **Branch Selection**: + - For simple changes, you can commit directly to the `development` branch of your fork. + - For more complex changes, create a new branch in your fork with a descriptive name (e.g., `feature/add-user-auth` or `bugfix/fix-navbar-issue`). +- **Implement Changes**: Make your changes and ensure they align with the project's code formatting and guidelines. +- **Write a Clear Description**: When opening a pull request (PR), provide a clear and concise description of your changes, including: + - The purpose of the PR. + - Any relevant details about the implementation. + - How the changes improve the project. +- **Link to Issues**: + If your PR is related to an issue, link it to the issue by following [GitHub's guide for linking pull requests to issues](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue). This helps maintain traceability and context for the changes. + - Example: Include text like `Fixes #123` or `Closes #456` in your PR description to automatically close the related issue when the PR is merged. +- **Submit the PR**: Open a pull request to the `development` branch of the main repository. Collaborators will review your changes and provide feedback if necessary. + +### Discussions + +- Use [GitHub Discussions](https://github.com/mokletdev/moklet.org/discussions) for brainstorming ideas, seeking feedback, or discussing potential features. This helps maintain clear communication among contributors. + +## Style Guidelines + +- **Code Formatting**: Follow the project's `.eslintrc.json` and `.prettierrc` configurations. +- **Commit Messages**: Use clear and descriptive messages. Follow the [Conventional Commits](https://www.conventionalcommits.org/) specification for structured commit messages. + +## License + +By contributing, you agree that your contributions will be licensed under the [GPL-3.0 License](LICENSE). From 9921ebfc2bb6e13451c5fd89c4b63fd93e22976c Mon Sep 17 00:00:00 2001 From: Kusindra Aji Rabbany Date: Mon, 6 Jan 2025 20:31:58 +0700 Subject: [PATCH 3/5] docs: add CONTRIBUTING.md reference in README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 49372975..612a707b 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,12 @@ Technologies used in the project: - NextAuth.JS - Prisma +## 🤝 Contributing + +We welcome contributions to this project! Please take a moment to review our [📄 CONTRIBUTING.md](https://github.com/mokletdev/moklet.org/blob/development/CONTRIBUTING.md) guide for details on our code of conduct, contribution process, and how to get started. + +Your support and ideas make this project even better. Thank you for being part of our community! 🌟 +

🛡️ License:

This project is licensed under the GNU [General Public License v3.0](https://github.com/mokletdev/moklet.org/blob/development/LICENSE.md) From 1bf426aa52480f7faf35d5145ea0795361ef8ad7 Mon Sep 17 00:00:00 2001 From: Muhammad Fadhil Kholaf Date: Tue, 7 Jan 2025 00:18:29 +0700 Subject: [PATCH 4/5] fix: Filter posts by tag does not working correctly --- src/app/(main)/berita/tags/[tag]/page.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/(main)/berita/tags/[tag]/page.tsx b/src/app/(main)/berita/tags/[tag]/page.tsx index 2203eb3b..456725c4 100644 --- a/src/app/(main)/berita/tags/[tag]/page.tsx +++ b/src/app/(main)/berita/tags/[tag]/page.tsx @@ -6,14 +6,16 @@ import { findPostByTag } from "@/utils/database/tag.query"; import GoBack from "../../[slug]/_components/BackButton"; export default async function Tag({ params }: { params: { tag: string } }) { - const filteredPost = await findPostByTag(params.tag, true); + const decodedTag = decodeURIComponent(params.tag); + + const filteredPost = await findPostByTag(decodedTag, true); return (
-

Post dengan tag "{params.tag}"

+

Post dengan tag "{decodedTag}"

{filteredPost?.map((post) => ( From 1712a1ffb79e40b881173c73c4974eb676249b83 Mon Sep 17 00:00:00 2001 From: Muhammad Fadhil Kholaf Date: Tue, 7 Jan 2025 02:37:06 +0700 Subject: [PATCH 5/5] fix: Tag Layout Issue in Related News Section on News Detail Page --- src/app/(main)/berita/[slug]/_components/RelatedNewsFigure.tsx | 2 +- src/app/(main)/berita/[slug]/page.tsx | 2 +- src/app/_components/global/NewsFigure.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/(main)/berita/[slug]/_components/RelatedNewsFigure.tsx b/src/app/(main)/berita/[slug]/_components/RelatedNewsFigure.tsx index 29ec238a..fc6194d6 100644 --- a/src/app/(main)/berita/[slug]/_components/RelatedNewsFigure.tsx +++ b/src/app/(main)/berita/[slug]/_components/RelatedNewsFigure.tsx @@ -22,7 +22,7 @@ export default function RelatedNewsFigure({
-
+
{post.tags.map((tag) => ( ))} diff --git a/src/app/(main)/berita/[slug]/page.tsx b/src/app/(main)/berita/[slug]/page.tsx index bbfdc3ca..76cadae3 100644 --- a/src/app/(main)/berita/[slug]/page.tsx +++ b/src/app/(main)/berita/[slug]/page.tsx @@ -106,7 +106,7 @@ export default async function Post({ params }: { params: { slug: string } }) { />
-
+
{post?.tags.map((tag) => ( diff --git a/src/app/_components/global/NewsFigure.tsx b/src/app/_components/global/NewsFigure.tsx index 4f9bc3ea..17586d0a 100644 --- a/src/app/_components/global/NewsFigure.tsx +++ b/src/app/_components/global/NewsFigure.tsx @@ -11,7 +11,7 @@ export function Tags({ tag }: Readonly<{ tag: Tag }>) { {tag.tagName}