Skip to content

Commit 2c4727c

Browse files
authored
Merge branch 'main' into add-shadcn
2 parents ea49c91 + 52e7c9c commit 2c4727c

File tree

110 files changed

+3383
-285
lines changed

Some content is hidden

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

110 files changed

+3383
-285
lines changed

.github/CODEOWNERS

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
* @Mathys-Gasnier
55

66
# Code maintainers
7-
/src/ @psychlone77 @saminjay
7+
/src/ @psychlone77 @saminjay @Mathys-Gasnier
88

99
# Snippets maintainers
10-
/snippets @Mathys-Gasnier
10+
/snippets @majvax @Mathys-Gasnier
11+
/snippets/javascript @psychlone77 @saminjay
12+
/snippets/python @psychlone77 @saminjay
13+
/snippets/cpp @saminjay
1114

1215

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

.prettierrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
"bracketSpacing": true,
88
"bracketSameLine": false,
99
"arrowParens": "always",
10-
"endOfLine": "lf",
1110
"jsxSingleQuote": false
1211
}

CONTRIBUTING.md

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,41 @@ You can contribute in two main ways:
1111

1212
## Improving the code
1313

14-
If you have a feature request or want to fix a bug, feel free to:
14+
### How to report bugs
1515

16-
- [Open an Issue](https://github.com/dostonnabotov/quicksnip/issues) to let us know what’s up.
17-
- [Send a Pull Request](https://github.com/dostonnabotov/quicksnip/pulls) with your changes.
16+
If you spot a bug in the codebase or issues with the documentation, please open up a [GitHub issue](https://github.com/dostonnabotov/quicksnip/issues) detailing the problem before creating a PR. Once confirmed with maintainers, you can then create a PR.
17+
18+
### How to propose new features
19+
20+
If you are interested in proposing new features, please open up a new [GitHub discussion](https://github.com/dostonnabotov/quicksnip/discussions) with details for the proposed feature.
21+
22+
Please do not create a PR for a new feature without first discussing it with the maintainers. If you create a PR for a new feature without discussing it first, then your PR will be closed.
1823

1924
---
2025

2126
## Snippets Guidelines
2227

2328
### Snippet Tags
2429

25-
Tags must describe the snippet with simple word. \
26-
For example a snippet that capitalize a word would have `string` and `capitalize` as tags. \
27-
**! Do not add the language you are using as a tag, nor some generic keyword like `utility` !**
30+
- Tags must describe the snippet with simple word.
31+
32+
Here's an example:
33+
34+
```md
35+
---
36+
title: Convert Number to Currency
37+
description: Converts a number to a currency format with a specific locale.
38+
author: axorax
39+
tags: number,currency
40+
---
41+
```
42+
43+
**Do not use generic keywords or the language itself as a tag `utility` or `javascript`!**
2844

2945
### Snippet Format
3046

3147
**All** snippets should follow the following structure:
48+
3249
- A `code` segment, containing a function with the actual snippet functionnality
3350
- An `example` segement, containing one or more examples of use
3451

@@ -41,17 +58,17 @@ function example(x) {
4158
// Usage:
4259
example(5) // Returns: 10
4360
```
44-
If your function doesn't return anything just show how to use it. \
45-
If the result of your function is too complicated to be expressed in a single comment, your snippet is probably too complex to begin with.
61+
62+
If your function doesn't return anything just show how to use it. If the result of your function is too complicated to be expressed in a single comment, your snippet is probably too complex to begin with.
4663

4764
### Snippet boundaries
4865

49-
To **check if your snippet will not get refused** ask yourself those questions:
66+
To ensure your snippet isn’t refused, consider these questions:
5067
- **Does the standard library of my language provide an easy way of doing this ?**
51-
- **Does that snippet have a real, and practical use case ?**
68+
- **Does that snippet not have a real, and practical use case ?**
5269
- **Could it be split into separate parts to be better understood ?**
5370

54-
If one of question is true, then your snippet will most likely get refused !
71+
If any answer is yes, then your snippet will most likely get rejected.
5572

5673
---
5774

@@ -230,6 +247,6 @@ If you want to introduce a new programming language, here's how to do it:
230247

231248
Whether you’re fixing a tiny typo, writing a new snippet, or dreaming up big features, every bit counts! 🛠️
232249

233-
If you have any questions or need help, feel free to open an issue or tag me.
250+
If you have any questions or need help, feel free to open a new [GitHub discussion](https://github.com/dostonnabotov/quicksnip/discussions).
234251

235252
Happy coding! 💻✨

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ Be sure to check out the [CONTRIBUTING.md](/CONTRIBUTING.md) file for detailed g
2323

2424
### Improving the code
2525

26-
Got a feature idea or bug fix? Here's how you can contribute:
26+
- **Reporting bugs**
2727

28-
- [Open an issue](https://github.com/dostonnabotov/quicksnip/issues) to share your ideas or report a bug.
29-
- [Send a pull request](https://github.com/dostonnabotov/quicksnip/pulls) with your changes.
28+
- If you spot a bug in the codebase or issues with the documentation, please open up a [GitHub issue](https://github.com/dostonnabotov/quicksnip/issues) detailing the problem before creating a PR.
29+
- Once confirmed with maintainers, you can then create a PR.
30+
31+
- **Proposing new features**
32+
33+
- If you are interested in proposing new features, please open up a new [GitHub discussion](https://github.com/dostonnabotov/quicksnip/discussions) with details for the proposed feature.
34+
- Please do **not** create a PR for a new feature without first discussing it with the maintainers. If you create a PR for a new feature without discussing it first, then your PR will be closed.
3035

3136
### Adding a Snippet
3237

@@ -99,11 +104,13 @@ For more details about adding new categories or programming languages, check out
99104

100105
To keep things smooth and consistent, please:
101106

102-
- Follow the formatting rules described above.
103-
- Include all mandatory fields in the snippet.
104-
- Test your snippet to ensure it works as expected.
107+
- [x] Follow the style and contribution guidelines of this project.
108+
- [x] Include all mandatory fields in the snippet.
109+
- [x] Test your snippet to ensure it works as expected.
110+
111+
Following these guidelines helps us (and everyone else) review and merge your contributions faster.
105112

106-
Following these guidelines helps me (and everyone else) review and merge your contributions faster.
113+
**If you fail to meet the guidelines, your PR will most likely get rejected.**
107114

108115
## License
109116

VISION.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
11
# Vision for QuickSnip
22

3-
Will be updating soon...
3+
## What is QuickSnip?
4+
5+
QuickSnip is an open-source tool designed for developers who want to organize, search, and share code snippets. It aims to streamline the coding process by providing a centralized platform for snippet management.
6+
7+
## Core Principles
8+
9+
- **Developer Focused**: Focus on features that truly improve developer productivity.
10+
11+
- **Open and Extensible**: Encourage community contributions and integrations.
12+
13+
- **Lightweight and Fast**: Keep performance high and avoid unnecessary complexity.
14+
15+
## Our Goals
16+
17+
- Seamless snippet management without turning into an overly complex tool
18+
19+
- Enable collaboration and sharing while respecting user privacy and customization needs.
20+
21+
We do **NOT** aim to be:
22+
23+
- a component library
24+
- a documentation
25+
26+
## QuickSnip Roadmap
27+
28+
### v1.0 (Launching Soon)
29+
30+
- [x] A new snippets storage system for better maintainability and scalability
31+
- [ ] Search functionality
32+
- [ ] A support for frameworks and libraries
33+
- [ ] An ability to share snippets with others
34+
- [ ] A basic SEO (Search Engine Optimization)
35+
36+
### v2.0 (Planned Vision)
37+
38+
- [ ] An ability to have private snippets with personal account
39+
- [ ] Improved search functionality with filters
40+
- [ ] An improved SEO (Search Engine Optimization)
41+
42+
### Potential Future Ideas
43+
44+
- [ ] Plugins for IDEs like VS Code and JetBrains
45+
- [ ] Enterprise-grade support for larger organizations
46+
47+
## Disclaimer on Future Plans
48+
49+
This roadmap outlines our current vision for QuickSnip and may evolve based on user feedback, community contributions, and shifting priorities. We welcome your input and encourage you to help shape QuickSnip’s future.
50+
51+
## Future Vision
52+
53+
QuickSnip aims to become the preferred platform for developers to store, retrieve, and collaborate on code snippets.
54+
55+
Explore our [GitHub Releases](https://github.com/dostonnabotov/quicksnip/releases) for updates and join us on this journey.

package-lock.json

Lines changed: 32 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"clsx": "^2.1.1",
2222
"framer-motion": "^11.15.0",
2323
"lucide-react": "^0.469.0",
24+
"motion": "^11.15.0",
2425
"prismjs": "^1.29.0",
2526
"react": "^18.3.1",
2627
"react-dom": "^18.3.1",

public/consolidated/_index.json

Lines changed: 46 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,72 @@
11
[
22
{
3-
"lang": "C",
4-
"icon": "/icons/c.svg"
3+
"name": "C",
4+
"icon": "/icons/c.svg",
5+
"subLanguages": []
56
},
67
{
7-
"lang": "CPP",
8-
"icon": "/icons/cpp.svg"
8+
"name": "CPP",
9+
"icon": "/icons/cpp.svg",
10+
"subLanguages": []
911
},
1012
{
11-
"lang": "CSHARP",
12-
"icon": "/icons/csharp.svg"
13+
"name": "CSHARP",
14+
"icon": "/icons/csharp.svg",
15+
"subLanguages": []
1316
},
1417
{
15-
"lang": "CSS",
16-
"icon": "/icons/css.svg"
18+
"name": "CSS",
19+
"icon": "/icons/css.svg",
20+
"subLanguages": []
1721
},
1822
{
19-
"lang": "HASKELL",
20-
"icon": "/icons/haskell.svg"
23+
"name": "HASKELL",
24+
"icon": "/icons/haskell.svg",
25+
"subLanguages": []
2126
},
2227
{
23-
"lang": "HTML",
24-
"icon": "/icons/html.svg"
28+
"name": "HTML",
29+
"icon": "/icons/html.svg",
30+
"subLanguages": []
2531
},
2632
{
27-
"lang": "JAVA",
28-
"icon": "/icons/java.svg"
33+
"name": "JAVA",
34+
"icon": "/icons/java.svg",
35+
"subLanguages": []
2936
},
3037
{
31-
"lang": "JAVASCRIPT",
32-
"icon": "/icons/javascript.svg"
38+
"name": "JAVASCRIPT",
39+
"icon": "/icons/javascript.svg",
40+
"subLanguages": []
3341
},
3442
{
35-
"lang": "PYTHON",
36-
"icon": "/icons/python.svg"
43+
"name": "PYTHON",
44+
"icon": "/icons/python.svg",
45+
"subLanguages": []
3746
},
3847
{
39-
"lang": "RUST",
40-
"icon": "/icons/rust.svg"
48+
"name": "REGEX",
49+
"icon": "/icons/regex.svg",
50+
"subLanguages": []
4151
},
4252
{
43-
"lang": "SCSS",
44-
"icon": "/icons/scss.svg"
53+
"name": "RUBY",
54+
"icon": "/icons/ruby.svg",
55+
"subLanguages": []
4556
},
4657
{
47-
"lang": "TYPESCRIPT",
48-
"icon": "/icons/typescript.svg"
58+
"name": "RUST",
59+
"icon": "/icons/rust.svg",
60+
"subLanguages": []
61+
},
62+
{
63+
"name": "SCSS",
64+
"icon": "/icons/scss.svg",
65+
"subLanguages": []
66+
},
67+
{
68+
"name": "TYPESCRIPT",
69+
"icon": "/icons/typescript.svg",
70+
"subLanguages": []
4971
}
5072
]

0 commit comments

Comments
 (0)