-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Changes from 1 commit
7029efd
a60652c
f1d2b7a
1b79b9a
e1d0495
c945b7c
92f0df0
e47414a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
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. |
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'] |
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blank_issues_enabled: false |
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 |
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. |
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. |
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> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"JavaScript": { | ||
"subLanguages": ["React"] | ||
}, | ||
"Python": { | ||
"subLanguages": ["FastAPI", "Tkinter"] | ||
} | ||
} |
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" | ||
} | ||
] | ||
} | ||
] | ||
} |
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", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 -"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
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" | ||
} | ||
] | ||
} | ||
] | ||
} |