Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Initial migration to NextJS #268

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

Closed
technoph1le wants to merge 8 commits into main from nextjs-migration
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Prev Previous commit
Next Next commit
implement api routes & import previous assets
  • Loading branch information
technoph1le committed Mar 21, 2025
commit c945b7c94eb1ebb6ebf30cb0ea146d53bbf89166
31 changes: 31 additions & 0 deletions .github/CODEOWNERS
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# ---------- Our awesome maintainers ----------

# Global maintainers
* @Mathys-Gasnier

# Code maintainers
/src/ @psychlone77 @saminjay @Mathys-Gasnier

# Snippets maintainers
/snippets @majvax @Mathys-Gasnier
/snippets/javascript @psychlone77 @saminjay
/snippets/python @psychlone77 @saminjay
/snippets/cpp @saminjay


# ---------- What is a maintainer ----------

# Maintainers will be notified when there is a pull request
# with a change in the folder/file assigned to them. They will
# have to approve the pull request before it can be merged.


# ---------- How to be a maintainer ----------

# To maintain trust and collaboration with reviewers, first,
# we will need to prove that you can contribute to the project well.
# As you contribute more, the more responsibility you will have.

# We will assign maintainers for specific languages as well.
# As we notice more contribution from your side, we will let you know
# and assign you a language.
15 changes: 15 additions & 0 deletions .github/FUNDING.yml
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: technoph1le
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/bugs.yml
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Bug Report"
description: "File a bug report to fix issues in the codebase"
title: "[Bug] - "
labels: ["bug"]
body:
- type: markdown
attributes:
value: "# Bug report"
- type: textarea
id: description
attributes:
label: "What bug did you find in the codebase?"
description: "Please explain the issue in as much detail as possible. Provide screenshots as necessary"
validations:
required: true
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/docs.yml
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Documentation
description: Request to update documentation or fix typos
title: "[Docs] - "
labels: ["documentation"]
body:
- type: markdown
attributes:
value: "# Update documentation"
- type: textarea
id: docs
attributes:
label: What changes would you like to make in the documentation?
description: Please explain the issue and what the change should be
validations:
required: true
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/features.yml
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Feature request
description: Request for feature
title: "[Feature] - "
labels: ["feature"]
body:
- type: markdown
attributes:
value: "# Feature request"
- type: textarea
id: feature
attributes:
label: What feature would you like to see?
description: Please provide a detailed description for the new feature.
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/general.yml
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: General report
description: This is a general issue that does not fit in the other categories
title: "[General] - "
body:
- type: markdown
attributes:
value: "# General"
- type: textarea
id: description
attributes:
label: What general issue would you like to create?
description: Please be as detailed as possible. Include code snippets or screenshots if necessary.
46 changes: 46 additions & 0 deletions .github/pull_request_template.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!-- **ANY PULL REQUEST NOT FOLLOWING GUIDELINES OR NOT INCLUDING A DESCRIPTION WILL BE CLOSED !** -->

# Description

<!-- Include a summary of your changes. -->

## Type of Change

<!-- What kind of change does this pull request introduce? (Check all that apply) -->

- [ ] ✨ New or updating snippet(s)
- [ ] πŸ›  Code improvement
- [ ] 🐞 Bug fix
- [ ] πŸ“– Documentation update
- [ ] πŸ”§ Other (please describe):

## Checklist

<!-- Before submitting, ensure your pull request meets these requirements: -->

- [ ] I have tested my code and verified it works as expected.
- [ ] My code follows the style and contribution guidelines of this project.
- [ ] Comments are added where necessary for clarity.
- [ ] Documentation has been updated (if applicable).
- [ ] There are no new warnings or errors from my changes.

## Related Issues

<!-- Link any relevant issues (use #issue-number syntax). If not, leave it empty -->

Closes #

## Additional Context

<!-- Add any extra details, questions, or considerations here. -->

## Screenshots (Optional)

<!-- If your changes affect visuals, please include screenshots. -->

<details>
<summary>Click to view screenshots</summary>

<!-- Add your screenshots here -->

</details>
8 changes: 8 additions & 0 deletions consolidated/_relationships.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"JavaScript": {
"subLanguages": ["React"]
},
"Python": {
"subLanguages": ["FastAPI", "Tkinter"]
}
}
34 changes: 34 additions & 0 deletions consolidated/javascript.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"languageName": "JavaScript",
"languageIcon": "/icons/javascript.svg",
"categories": [
{
"categoryName": "Array Manipulation",
"snippets": [
{
"title": "Remove Duplicates",
"description": "Removes duplicate values from an array.",
"author": "technoph1le",
"tags": ["array", "deduplicate"],
"contributors": [],
"code": "const removeDuplicates = (arr) => [...new Set(arr)];\n\n// Usage:\nconst numbers = [1, 2, 2, 3, 4, 4, 5];\nremoveDuplicates(numbers); // Returns: [1, 2, 3, 4, 5]\n",
"extension": "js"
}
]
},
{
"categoryName": "Basics",
"snippets": [
{
"title": "Hello, World!",
"description": "Prints Hello, World! to the terminal.",
"author": "James-Beans",
"tags": ["printing", "hello-world"],
"contributors": [],
"code": "console.log(\"Hello, World!\"); // Prints Hello, World! to the console\n",
"extension": "js"
}
]
}
]
}
20 changes: 20 additions & 0 deletions consolidated/react.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"languageName": "React",
"languageIcon": "/icons/react.svg",
"categories": [
{
"categoryName": "Basics",
"snippets": [
{
"title": "Hello, World!",
"description": "Show Hello World on the page.",
"author": "ACR1209",
"tags": ["printing", "hello-world"],
"contributors": [],
"code": "import React from 'react';\nimport ReactDOM from 'react-dom';\n\nconst App = () => {\n return (\n <div>\n <h1>Hello, World!</h1>\n </div>\n );\n};\n\nReactDOM.render(<App />, document.getElementById('root'));\n",
Copy link

@coderabbitai coderabbitai bot Apr 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ› οΈ Refactor suggestion

Update React rendering code to use modern API.

The code snippet uses the deprecated ReactDOM.render() method which has been replaced in React 18 with createRoot.

-"code": "import React from 'react';\nimport ReactDOM from 'react-dom';\n\nconst App = () => {\n return (\n <div>\n <h1>Hello, World!</h1>\n </div>\n );\n};\n\nReactDOM.render(<App />, document.getElementById('root'));\n",
+"code": "import React from 'react';\nimport { createRoot } from 'react-dom/client';\n\nconst App = () => {\n return (\n <div>\n <h1>Hello, World!</h1>\n </div>\n );\n};\n\nconst root = createRoot(document.getElementById('root')!);\nroot.render(<App />);\n",
πŸ“ Committable suggestion

!!️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"code": "import React from 'react';\nimport ReactDOM from 'react-dom';\n\nconst App = () => {\n return (\n <div>\n <h1>Hello, World!</h1>\n </div>\n );\n};\n\nReactDOM.render(<App />, document.getElementById('root'));\n",
"code": "import React from 'react';\nimport { createRoot } from 'react-dom/client';\n\nconst App = () => {\n return (\n <div>\n <h1>Hello, World!</h1>\n </div>\n );\n};\n\nconst root = createRoot(document.getElementById('root')!);\nroot.render(<App />);\n",

"extension": "tsx"
}
]
}
]
}
1 change: 1 addition & 0 deletions public/icons/bash.svg
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]
15 changes: 15 additions & 0 deletions public/icons/c.svg
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]
10 changes: 10 additions & 0 deletions public/icons/cpp.svg
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]
10 changes: 10 additions & 0 deletions public/icons/csharp.svg
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]
6 changes: 6 additions & 0 deletions public/icons/css.svg
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]
6 changes: 6 additions & 0 deletions public/icons/haskell.svg
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]
Loading

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /