Skip to content

Commit 7cf9a24

Browse files
committed
init
- gist 拉取 - gist 创建 - gist 编辑 - gist 删除 - gist 查看 by Cursor
0 parents  commit 7cf9a24

28 files changed

+3403
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
#!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
.idea/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Gist uTools 插件
2+
3+
一个用于管理 GitHub Gist 的 uTools 插件,让你可以快速创建、查看、编辑和删除 Gist。
4+
5+
## 功能特性
6+
7+
- 📝 创建和编辑 Gist
8+
- 🗑️ 删除 Gist
9+
- 🔍 搜索 Gist
10+
- 👀 查看 Gist 内容,支持代码高亮
11+
- 🌐 快速打开 Gist 网页版
12+
- 🎨 支持多种编程语言
13+
14+
## 技术栈
15+
16+
- Vue 3
17+
- TypeScript
18+
- Arco Design Vue
19+
- Vite
20+
- Highlight.js
21+
- Axios
22+
23+
## 使用方法
24+
25+
1. 在 uTools 中安装本插件
26+
2. 首次使用需要设置 GitHub Token:
27+
- 访问 [GitHub Token 设置页面](https://github.com/settings/tokens)
28+
- 点击 "Generate new token (classic)"
29+
- 为 token 添加描述
30+
- 选择 "gist" 权限
31+
- 点击 "Generate token" 生成
32+
- 将生成的 token 复制到插件中保存
33+
34+
3. 使用关键字 "gist" 呼出插件
35+
4. 功能说明:
36+
- 点击右下角 "+" 按钮创建新的 Gist
37+
- 使用顶部搜索框搜索 Gist
38+
- 点击 Gist 卡片展开查看内容
39+
- 使用卡片右上角按钮进行编辑或删除操作
40+
41+
## 开发
42+
43+
```bash
44+
# 安装依赖
45+
npm install
46+
47+
# 开发模式
48+
npm run dev
49+
50+
# 构建
51+
npm run build
52+
```
53+
54+
55+
## 许可证
56+
57+
[MIT License](LICENSE)

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)