Skip to content

Commit 2604786

Browse files
committed
Merge remote-tracking branch 'dostonnabotov/main' into basic-search
2 parents 5edc1b1 + 862ae12 commit 2604786

File tree

284 files changed

+11249
-3284
lines changed

Some content is hidden

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

284 files changed

+11249
-3284
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
text eol=lf

.github/CODEOWNERS

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

.github/ISSUE_TEMPLATE/bugs.yml

Lines changed: 15 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/docs.yml

Lines changed: 15 additions & 0 deletions
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

Lines changed: 13 additions & 0 deletions
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

Lines changed: 12 additions & 0 deletions
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

Lines changed: 46 additions & 0 deletions
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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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: Check if snippets are formated correctly
26+
uses: int128/comment-action@v1
27+
with:
28+
run: node utils/checkSnippetFormatting.js # Run the script located in the utils/ folder
29+
post-on-failure: |
30+
## :x: Snippet Format Error
31+
${run.output}

.github/workflows/consolidate-snippets.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Consolidate JSON Files
33
on:
44
push:
55
paths:
6-
- "public/data/**"
6+
- "snippets/**"
77

88
permissions:
99
contents: write
@@ -14,25 +14,26 @@ jobs:
1414

1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- name: Set up Node.js
20-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
2121
with:
22-
node-version: "16"
22+
node-version: 22
2323

2424
- name: Install dependencies
2525
run: |
2626
npm install
2727
28-
- name: Consolidate JSON files
28+
- name: Consolidate Snippets
2929
run: |
30-
node utils/consolidate.js # Run the script located in the utils/ folder
30+
node utils/consolidateSnippets.js # Run the script located in the utils/ folder
3131
3232
- name: Commit and push changes
3333
run: |
3434
git config --global user.name "GitHub Action"
3535
git config --global user.email "action@github.com"
36-
git add public/consolidated/all_snippets.json
37-
git commit -m "Update consolidated snippets"
36+
git add public/consolidated/*
37+
git add public/icons/*
38+
git diff-index --quiet HEAD || git commit -m "Update consolidated snippets"
3839
git push

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy