Skip to content

Commit c07107c

Browse files
committed
Revert "Removed vite & recreated with nextjs"
This reverts commit 84f0698.
1 parent 84f0698 commit c07107c

File tree

458 files changed

+17122
-3516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

458 files changed

+17122
-3516
lines changed

.gitattributes

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
* text=auto
2+
*.js text eol=lf
3+
*.jsx text eol=lf
4+
*.ts text eol=lf
5+
*.tsx text eol=lf
6+
*.json text eol=lf
7+
*.css text eol=lf
8+
*.md text eol=lf
9+

.github/CODEOWNERS

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# ---------- Our awesome maintainers ----------
2+
3+
# Global maintainers
4+
* @Mathys-Gasnier
5+
6+
# Code maintainers
7+
/src/ @psychlone77 @saminjay @Mathys-Gasnier
8+
9+
# Snippets maintainers
10+
/snippets @majvax @Mathys-Gasnier
11+
/snippets/javascript @psychlone77 @saminjay
12+
/snippets/python @psychlone77 @saminjay
13+
/snippets/cpp @saminjay
14+
15+
16+
# ---------- What is a maintainer ----------
17+
18+
# Maintainers will be notified when there is a pull request
19+
# with a change in the folder/file assigned to them. They will
20+
# have to approve the pull request before it can be merged.
21+
22+
23+
# ---------- How to be a maintainer ----------
24+
25+
# To maintain trust and collaboration with reviewers, first,
26+
# we will need to prove that you can contribute to the project well.
27+
# As you contribute more, the more responsibility you will have.
28+
29+
# We will assign maintainers for specific languages as well.
30+
# As we notice more contribution from your side, we will let you know
31+
# and assign you a language.

.github/FUNDING.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: technoph1le
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE/bugs.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Bug Report"
2+
description: "File a bug report to fix issues in the codebase"
3+
title: "[Bug] - "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: "# Bug report"
9+
- type: textarea
10+
id: description
11+
attributes:
12+
label: "What bug did you find in the codebase?"
13+
description: "Please explain the issue in as much detail as possible. Provide screenshots as necessary"
14+
validations:
15+
required: true

.github/ISSUE_TEMPLATE/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/docs.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Documentation
2+
description: Request to update documentation or fix typos
3+
title: "[Docs] - "
4+
labels: ["documentation"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: "# Update documentation"
9+
- type: textarea
10+
id: docs
11+
attributes:
12+
label: What changes would you like to make in the documentation?
13+
description: Please explain the issue and what the change should be
14+
validations:
15+
required: true

.github/ISSUE_TEMPLATE/features.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Feature request
2+
description: Request for feature
3+
title: "[Feature] - "
4+
labels: ["feature"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: "# Feature request"
9+
- type: textarea
10+
id: feature
11+
attributes:
12+
label: What feature would you like to see?
13+
description: Please provide a detailed description for the new feature.

.github/ISSUE_TEMPLATE/general.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: General report
2+
description: This is a general issue that does not fit in the other categories
3+
title: "[General] - "
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: "# General"
8+
- type: textarea
9+
id: description
10+
attributes:
11+
label: What general issue would you like to create?
12+
description: Please be as detailed as possible. Include code snippets or screenshots if necessary.

.github/pull_request_template.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!-- **ANY PULL REQUEST NOT FOLLOWING GUIDELINES OR NOT INCLUDING A DESCRIPTION WILL BE CLOSED !** -->
2+
3+
# Description
4+
5+
<!-- Include a summary of your changes. -->
6+
7+
## Type of Change
8+
9+
<!-- What kind of change does this pull request introduce? (Check all that apply) -->
10+
11+
- [ ] ✨ New snippet
12+
- [ ] 🛠 Improvement to an existing snippet
13+
- [ ] 🐞 Bug fix
14+
- [ ] 📖 Documentation update
15+
- [ ] 🔧 Other (please describe):
16+
17+
## Checklist
18+
19+
<!-- Before submitting, ensure your pull request meets these requirements: -->
20+
21+
- [ ] I have tested my code and verified it works as expected.
22+
- [ ] My code follows the style and contribution guidelines of this project.
23+
- [ ] Comments are added where necessary for clarity.
24+
- [ ] Documentation has been updated (if applicable).
25+
- [ ] There are no new warnings or errors from my changes.
26+
27+
## Related Issues
28+
29+
<!-- Link any relevant issues (use #issue-number syntax). If not, leave it empty -->
30+
31+
Closes #
32+
33+
## Additional Context
34+
35+
<!-- Add any extra details, questions, or considerations here. -->
36+
37+
## Screenshots (Optional)
38+
39+
<!-- If your changes affect visuals, please include screenshots. -->
40+
41+
<details>
42+
<summary>Click to view screenshots</summary>
43+
44+
<!-- Add your screenshots here -->
45+
46+
</details>

.github/workflows/check-snippets.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Checks snippets syntax
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "snippets/**"
7+
8+
jobs:
9+
check-snippets:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Check if snippets are formated correctly
29+
uses: int128/comment-action@v1
30+
with:
31+
run: npx tsx utils/checkSnippetFormatting.ts # Run the script located in the utils/ folder
32+
post-on-failure: |
33+
## :x: Snippet Format Error
34+
${run.output}
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Pre-commit checks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "**"
7+
8+
jobs:
9+
pre-commit-checks:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Run cspell
25+
run: npm run cspell
26+
27+
- name: Run lint
28+
run: npm run lint
29+
30+
- name: Run tests
31+
run: npm run test-ci
32+
33+
- name: Run build
34+
run: npm run build

.gitignore

+26-37
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,30 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.*
7-
.yarn/*
8-
!.yarn/patches
9-
!.yarn/plugins
10-
!.yarn/releases
11-
!.yarn/versions
12-
13-
# testing
14-
/coverage
15-
16-
# next.js
17-
/.next/
18-
/out/
19-
20-
# production
21-
/build
22-
23-
# misc
24-
.DS_Store
25-
*.pem
26-
27-
# debug
1+
# Logs
2+
logs
3+
*.log
284
npm-debug.log*
295
yarn-debug.log*
306
yarn-error.log*
31-
.pnpm-debug.log*
32-
33-
# env files (can opt-in for committing if needed)
34-
.env*
35-
36-
# vercel
37-
.vercel
38-
39-
# typescript
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
coverage
14+
*.local
4015
*.tsbuildinfo
41-
next-env.d.ts
16+
17+
# Editor directories and files
18+
.vscode/*
19+
!.vscode/extensions.json
20+
.idea
21+
.DS_Store
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?
27+
28+
# Consolidated snippets
29+
public/consolidated
30+
public/icons

.husky/pre-commit

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
npm run snippets:check
2+
npm run cspell
3+
npm run lint
4+
npm run test-ci
5+
npm run build

.prettierignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
dist
3+
coverage
4+
snippets
5+
public
6+
.vite
7+
coverage
8+
package-lock.json
9+
.md

.prettierrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"semi": true,
3+
"tabWidth": 2,
4+
"printWidth": 80,
5+
"singleQuote": false,
6+
"trailingComma": "es5",
7+
"bracketSpacing": true,
8+
"bracketSameLine": false,
9+
"arrowParens": "always",
10+
"jsxSingleQuote": false,
11+
"endOfLine": "lf"
12+
}

cspell-dict.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
quicksnip
2+
slugified
3+
slugifyed
4+
sublanguage
5+
fastapi
6+
technophile
7+
technoph1le
8+
technoph1leyt

cspell.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"dictionaryDefinitions": [
3+
{
4+
"name": "workspace",
5+
"path": "./cspell-dict.txt",
6+
"description": "Custom Workspace Dictionary",
7+
"addWords": true
8+
}
9+
],
10+
"dictionaries": ["workspace"],
11+
"ignorePaths": ["node_modules", "dist", "coverage", "public"]
12+
}

0 commit comments

Comments
 (0)