Movatterモバイル変換


[0]ホーム

URL:


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

Commit301d665

Browse files
committed
feat(snippets): import sample snipppets from old database
1 parent4767c9f commit301d665

28 files changed

+363
-43
lines changed

‎.source/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ import * as docs_1 from "../content/docs/index.mdx?collection=docs&hash=17556734
1111
import*asdocs_0from"../content/docs/code-snippet.mdx?collection=docs&hash=1755673408387"
1212
import{_runtime}from"fumadocs-mdx"
1313
import*as_sourcefrom"../source.config"
14-
exportconstdocs=_runtime.docs<typeof_source.docs>([{info:{"path":"code-snippet.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/code-snippet.mdx"},data:docs_0},{info:{"path":"index.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/index.mdx"},data:docs_1},{info:{"path":"usage.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/usage.mdx"},data:docs_2},{info:{"path":"contributing\\adding-snippets.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/contributing/adding-snippets.mdx"},data:docs_3},{info:{"path":"contributing\\how-to-contribute.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/contributing/how-to-contribute.mdx"},data:docs_4},{info:{"path":"contributing\\modifying-snippets.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/contributing/modifying-snippets.mdx"},data:docs_5},{info:{"path":"contributing\\third-party-apps.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/contributing/third-party-apps.mdx"},data:docs_6},{info:{"path":"extensions\\quicksnip-raycast.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/extensions/quicksnip-raycast.mdx"},data:docs_7},{info:{"path":"extensions\\quicksnip-vscode.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/extensions/quicksnip-vscode.mdx"},data:docs_8},{info:{"path":"extensions\\quicksnip.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/extensions/quicksnip.mdx"},data:docs_9}],[{"info":{"path":"meta.json","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/meta.json"},"data":{"title":"Docs","pages":["---Introduction---","index.mdx","usage.mdx","code-snippet.mdx","---Extensions---","...extensions","---Contributing---","...contributing"],"root":true}},{"info":{"path":"contributing\\meta.json","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/contributing/meta.json"},"data":{"title":"Contributing","pages":["how-to-contribute","adding-snippets","modifying-snippets","third-party-apps"]}},{"info":{"path":"extensions\\meta.json","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/extensions/meta.json"},"data":{"title":"Extensions","pages":["quicksnip","quicksnip-vscode","quicksnip-raycast"]}}])
14+
exportconstdocs=_runtime.docs<typeof_source.docs>([{info:{"path":"code-snippet.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/code-snippet.mdx"},data:docs_0},{info:{"path":"index.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/index.mdx"},data:docs_1},{info:{"path":"usage.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/usage.mdx"},data:docs_2},{info:{"path":"contributing\\adding-snippets.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/contributing/adding-snippets.mdx"},data:docs_3},{info:{"path":"contributing\\how-to-contribute.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/contributing/how-to-contribute.mdx"},data:docs_4},{info:{"path":"contributing\\modifying-snippets.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/contributing/modifying-snippets.mdx"},data:docs_5},{info:{"path":"contributing\\third-party-apps.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/contributing/third-party-apps.mdx"},data:docs_6},{info:{"path":"extensions\\quicksnip-raycast.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/extensions/quicksnip-raycast.mdx"},data:docs_7},{info:{"path":"extensions\\quicksnip-vscode.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/extensions/quicksnip-vscode.mdx"},data:docs_8},{info:{"path":"extensions\\quicksnip.mdx","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/extensions/quicksnip.mdx"},data:docs_9}],[{"info":{"path":"meta.json","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/meta.json"},"data":{"title":"Docs","pages":["---Introduction---","index.mdx","usage.mdx","code-snippet.mdx","---Extensions---","...extensions","---Contributing---","...contributing"],"root":true}},{"info":{"path":"extensions\\meta.json","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/extensions/meta.json"},"data":{"title":"Extensions","pages":["quicksnip","quicksnip-vscode","quicksnip-raycast"]}},{"info":{"path":"contributing\\meta.json","absolutePath":"C:/Technophile/Code/projects/quicksnip/content/docs/contributing/meta.json"},"data":{"title":"Contributing","pages":["how-to-contribute","adding-snippets","modifying-snippets","third-party-apps"]}}])

‎content/docs/extensions/meta.json‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
22
"title":"Extensions",
3-
"pages": ["quicksnip","quicksnip-vscode","quicksnip-raycast"]
3+
"pages": [
4+
"quicksnip",
5+
"quicksnip-cli",
6+
"quicksnip-vscode",
7+
"quicksnip-raycast"
8+
]
49
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title:QuickSnip CLI
3+
description:Hello World
4+
---
5+
6+
##This is title
7+
8+
This is description

‎public/snippets/all.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"id":"reverse-string",
3+
"title":"Reverse String",
4+
"description":"Reverses the characters in a string.",
5+
"languages": ["js","cpp"],
6+
"contributors": ["technoph1le","Vaibhav-kesarwani"],
7+
"tags": ["string","reverse"],
8+
"snippets": {
9+
"js":"const reverseString = (str) => str.split('').reverse().join('');\n\n// Usage:\nreverseString('hello'); // Returns: 'olleh'",
10+
"cpp":"#include <string>\n#include <algorithm>\n\nstd::string reverseString(const std::string& input) {\n std::string reversed = input;\n std::reverse(reversed.begin(), reversed.end());\n return reversed;\n}\n\n// Usage:\nreverseString(\"quicksnip\"); // Returns:\"pinskciuq\""
11+
}
12+
}

‎snippets/README.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
3+
##Markdown Format
4+
5+
````
6+
```js
7+
// code here
8+
```
9+
10+
---
11+
12+
```py
13+
# code here
14+
```
15+
````
16+
17+
18+
##JSON Format
19+
20+
```json
21+
{
22+
"title":"",
23+
"description":"",
24+
"languages": [""],
25+
"contributors": [""],
26+
"tags": ["",""]
27+
}
28+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"title":"Shuffle Array",
3+
"description":"Shuffles the items in an array.",
4+
"languages": ["js"],
5+
"contributors": ["loxt-nixo"],
6+
"tags": ["array","shuffle","random"]
7+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
```js
2+
functionshuffleArray(array) {
3+
for (let i=array.length-1; i>=0; i--) {
4+
constj=Math.floor(Math.random()* (i+1));
5+
[array[i], array[j]]= [array[j], array[i]];
6+
}
7+
}
8+
9+
// Usage:
10+
constarray= [1,2,3,4,5];
11+
shuffleArray(array);// Shuffles `array` in place
12+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"title":"Add Item to localStorage",
3+
"description":"Stores a value in localStorage under the given key.",
4+
"languages": ["js"],
5+
"contributors": ["technoph1le"],
6+
"tags": ["localStorage","storage","memory"]
7+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
```js
2+
constaddToLocalStorage= (key,value)=> {
3+
localStorage.setItem(key,JSON.stringify(value));
4+
};
5+
6+
// Usage:
7+
addToLocalStorage('user', { name:'John', age:30 });
8+
```

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp