Skip to content

Commit 99bb1ce

Browse files
committed
run prettier
1 parent 7377b4f commit 99bb1ce

File tree

320 files changed

+38557
-31659
lines changed

Some content is hidden

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

320 files changed

+38557
-31659
lines changed

.github/workflows/test.yml

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
name: Test
22

33
on:
4-
push:
5-
branches:
6-
- 'main'
7-
pull_request:
8-
types: [opened, reopened, synchronize]
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
types: [opened, reopened, synchronize]
99

1010
jobs:
11-
deploy:
12-
runs-on: ubuntu-latest
13-
steps:
14-
# 拉取代码
15-
- name: Checkout
16-
uses: actions/checkout@v4
17-
with:
18-
fetch-depth: 1
19-
- name: Install Node.js
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version: 20
23-
- name: Install pnpm
24-
uses: pnpm/action-setup@v4
25-
with:
26-
run_install: false
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# 拉取代码
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 1
19+
- name: Install Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
run_install: false
2727

28-
- name: Get pnpm store directory
29-
shell: bash
30-
run: |
31-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
32-
- name: Setup pnpm cache
33-
uses: actions/cache@v4
34-
with:
35-
path: ${{ env.STORE_PATH }}
36-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37-
restore-keys: |
38-
${{ runner.os }}-pnpm-store-
28+
- name: Get pnpm store directory
29+
shell: bash
30+
run: |
31+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
32+
- name: Setup pnpm cache
33+
uses: actions/cache@v4
34+
with:
35+
path: ${{ env.STORE_PATH }}
36+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37+
restore-keys: |
38+
${{ runner.os }}-pnpm-store-
3939
40-
- name: "Install"
41-
run: "pnpm install --frozen-lockfile"
40+
- name: "Install"
41+
run: "pnpm install --frozen-lockfile"
4242

43-
# 压缩图片
44-
- name: "图片压缩"
45-
uses: calibreapp/image-actions@main
46-
with:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
jpegQuality: '80'
49-
pngQuality: '80'
50-
webpQuality: '80'
51-
ignorePaths: 'node_modules/**'
52-
compressOnly: true
43+
# 压缩图片
44+
- name: "图片压缩"
45+
uses: calibreapp/image-actions@main
46+
with:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
jpegQuality: "80"
49+
pngQuality: "80"
50+
webpQuality: "80"
51+
ignorePaths: "node_modules/**"
52+
compressOnly: true
5353

54-
- name: "MarkdownLint Check"
55-
uses: DavidAnson/markdownlint-cli2-action@v17
56-
with:
57-
fix: true
58-
globs: 'docs*/**/*.md'
54+
- name: "MarkdownLint Check"
55+
uses: DavidAnson/markdownlint-cli2-action@v17
56+
with:
57+
fix: true
58+
globs: "docs*/**/*.md"
5959

60-
- name: "Build"
61-
run: "pnpm run build"
60+
- name: "Build"
61+
run: "pnpm run build"

.imgbotconfig

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"aggressiveCompression": true,
3-
"ignoredFiles": [
4-
"*.svg",
5-
],
6-
"schedule": "weekly",
7-
}
3+
"ignoredFiles": ["*.svg"],
4+
"schedule": "weekly"
5+
}

.markdownlint.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"default": true,
3-
"line-length": {"line_length": 1000},
3+
"line-length": { "line_length": 1000 },
44
"single-h1": false,
55
"no-bare-urls": false,
66
"no-inline-html": false,
77
"no-alt-text": false
8-
}
8+
}

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
- [这篇文档有问题](#这篇文档有问题)
1010
- [我想要为文档做出贡献](#我想要为文档做出贡献)
11-
- [格式要求](#格式要求)
12-
- [尽量使用个人分叉而不是组织分叉](#尽量使用个人分叉而不是组织分叉)
11+
- [格式要求](#格式要求)
12+
- [尽量使用个人分叉而不是组织分叉](#尽量使用个人分叉而不是组织分叉)
1313
- [感谢](#感谢)
1414

1515
## 这篇文档有问题

docs-about/ad.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ title: 广告
1111

1212
在投放前,请确保你的内容满足以下要求:
1313

14-
* 与 Minecraft 有关
15-
* 合法合规 (不要求有备案)
16-
* **申请时**在信用方面没有问题
14+
- 与 Minecraft 有关
15+
- 合法合规 (不要求有备案)
16+
- **申请时**在信用方面没有问题
1717

1818
价格 (单位:人民币/月)
1919

2020
### Q 群
2121

2222
- 群名称广告
2323

24-
29.9/月(仅限一个Q号)
24+
29.9/月(仅限一个Q号)
2525

2626
- 群聊天消息广告
2727

28-
39.9/月
28+
39.9/月
2929

3030
仅限一个 Q 号,每天三次,每次只允许一条消息
3131

@@ -35,7 +35,7 @@ title: 广告
3535

3636
### Tier 1
3737

38-
根据你的付费内容,我们会在对应页面写宣传语或开 教程*,并且在赞助商那里加上你的网站链接或联系方式,以下是对应的内容:
38+
根据你的付费内容,我们会在对应页面写宣传语或开 教程\*,并且在赞助商那里加上你的网站链接或联系方式,以下是对应的内容:
3939

4040
- VPS -> [购买服务器](/process/deploy/purchase-server)
4141
- 模型定制 -> [创建美术资源](/process/create-art-assets)
@@ -44,7 +44,7 @@ title: 广告
4444

4545
更多的就不链接了,只要和 MC 有关,都有地方挂广告,没有就立刻开新的天坑
4646

47-
教程*:需要你提供教程内容
47+
教程\*:需要你提供教程内容
4848

4949
以及允许群名称广告(仅限一个 Q 号),可以将群名称改为 A.xxx 在群成员列表中得到靠前的位置
5050

@@ -60,11 +60,11 @@ title: 广告
6060

6161
### Tier 2
6262

63-
对你提供的服务 所有* 内容在适当位置 (请查看 Tier 1) 编写教程,在赞助商那里加上你的网站链接或联系方式
63+
对你提供的服务 所有\* 内容在适当位置 (请查看 Tier 1) 编写教程,在赞助商那里加上你的网站链接或联系方式
6464

6565
允许每天在群里发一次广告 (不超过 50 字)
6666

67-
所有*
67+
所有\*
6868

6969
- 只能宣传自己的服务,不能以任何理由为自己以外的其他人宣传
7070
- 服务数量适可而止,你一个人是怎么提供几十种服务的?
@@ -93,4 +93,3 @@ title: 广告
9393
2. 对于 跑路/诈骗/较久联系不上 或发生一些恶劣影响事件,撤销广告(不退费)
9494
3. 禁止在广告中出现不文明词汇或攻击其他广告
9595
4. 特殊情况和本页之外的情况,完全由站长驿站忆行决定
96-

docs-about/arch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Cubic-Project 所有文档采用静态页面,主要为 Docusaurus,VitePress,mk
99

1010
其中 `8aka.org` 所有的文档托管在 Cloudflare Page/Worker,`8aka.cn` 托管在 EdgeOne Page,并且进行了备案
1111

12-
`pvp.kim` 是 Cubic-Project 提供的免费的域名,你可以在 `domain.8aka.org` 上面注册
12+
`pvp.kim` 是 Cubic-Project 提供的免费的域名,你可以在 `domain.8aka.org` 上面注册

docs-about/contributors.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,24 @@ import ContributorCard from '@site/src/components/ContributorCard';
3333

3434
1. Fork 本仓库到你的 GitHub 账户
3535
2. 克隆你 Fork 的仓库到本地
36-
```bash
37-
git clone https://github.com/你的用户名/NitWikit.git
38-
```
39-
如果你对历史记录没有需求,建议这么克隆
40-
```bash
41-
git clone https://github.com/你的用户名/NitWikit.git --depth 1
42-
```
36+
```bash
37+
git clone https://github.com/你的用户名/NitWikit.git
38+
```
39+
如果你对历史记录没有需求,建议这么克隆
40+
```bash
41+
git clone https://github.com/你的用户名/NitWikit.git --depth 1
42+
```
4343
3. 创建新的分支
44-
```bash
45-
git checkout -b feature/your-feature-name
46-
```
44+
```bash
45+
git checkout -b feature/your-feature-name
46+
```
4747
4. 进行修改并提交
48-
```bash
49-
git add .
50-
git commit -m "描述你的修改"
51-
```
48+
```bash
49+
git add .
50+
git commit -m "描述你的修改"
51+
```
5252
5. 推送到你的仓库
53-
```bash
54-
git push origin feature/your-feature-name
55-
```
53+
```bash
54+
git push origin feature/your-feature-name
55+
```
5656
6. 创建 Pull Request

docs-about/intro.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ MC 里傻子村民的英文就是 nitwit,后缀又和 wiki 相近,所以组
5050
画群头像,banner 图,MineBBS 宣传图,小涵想写 Bedrock 内容给文档拆成三块,突然冒出个糯米团子搞出个 VitePress 版文档,
5151
有那么几个我不认识的人和我认识的三七为笨蛋文档录制视频,千屈帮助编写了好多好多内容,修了好多 bug,甚至重写文档整个界面等等。
5252
不知不觉就有了六十多个贡献者,如果算上 GitHub 之外提供建议和帮助的人,远比这个数字要多。
53-

docs-about/sponsor.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ import SponsorCard from '@site/src/components/SponsorCard';
1717

1818
## 赞助者
1919

20-
<SponsorCard
21-
sponsors={[
22-
{ name: '碳酸锂片', amount: 200, qq: '3631901756' },
23-
{ name: '千屈', amount: 100, qq: '3824670178' },
24-
{ name: 'shi', amount: 100, qq: '1978606020' },
25-
{ name: '忘记名字了', amount: 50, qq: 'default' },
26-
{ name: '哓迅', amount: 30, qq: '2720819243' },
27-
{ name: '未雨屏', amount: 110, qq: '207622954' },
28-
{ name: 'awa', amount: 10,qq: 'default' },
29-
{ name: 'Pepper', amount: 10,qq: '2747789919' },
30-
{ name: 'PuddingKC', amount: 30, qq: '3116078709' }
31-
]}
20+
<SponsorCard
21+
sponsors={[
22+
{ name: '碳酸锂片', amount: 200, qq: '3631901756' },
23+
{ name: '千屈', amount: 100, qq: '3824670178' },
24+
{ name: 'shi', amount: 100, qq: '1978606020' },
25+
{ name: '忘记名字了', amount: 50, qq: 'default' },
26+
{ name: '哓迅', amount: 30, qq: '2720819243' },
27+
{ name: '未雨屏', amount: 110, qq: '207622954' },
28+
{ name: 'awa', amount: 10,qq: 'default' },
29+
{ name: 'Pepper', amount: 10,qq: '2747789919' },
30+
{ name: 'PuddingKC', amount: 30, qq: '3116078709' }
31+
]}
3232
/>

docs-about/timeline.mdx

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,51 @@ sidebar_position: 4
33
title: 时间线
44
---
55

6-
import {Timeline} from "antd";
6+
import { Timeline } from "antd";
77

88
欢迎来到 Cubic-Project 的发展时间线!
99

10-
<Timeline style={{fontSize: 16}}
11-
mode="right"
12-
pending="故事还在继续..."
13-
items={[
14-
{children: 'lezi-wiki 项目创建!', label: '2024/2/29 21:09', color: 'green'},
15-
{
16-
children: 'NitWikit 项目创建!(此时项目名字叫 Dumb_Service_Guide)',
17-
label: '2024/3/23 13:25',
18-
color: 'green'
19-
},
20-
{children: '第一个有意义提交', label: '2024/3/23 16:24'},
21-
{children: 'LLF 第一个提交', label: '2024/3/28 19:28'},
22-
{children: '项目名称更改为 NitWikit', label: '2024/4/5 10:22'},
23-
{children: 'NitWikit Banner 诞生!', label: '2024/4/14 12:30'},
24-
{children: '笨蛋脚本诞生', label: '2024/4/14 14:01', color: 'green'},
25-
{children: '第一个笨蛋脚本!:自动优化', label: '2024/4/20 13:28'},
26-
{children: '启用文档新的域名 yizhan.wiki', label: '2024/4/26 22:40', color: 'red'},
27-
{children: 'NitWikit QQ 群建立(公开?)', label: '2024/5/2 00:02'},
28-
{children: '主页第一次重构', label: '2024/5/11 20:43'},
29-
{children: '贡献者达到 20 人', label: '2024/6/8 15:57'},
30-
{children: '文档目录结构转换为英文', label: '2024/6/22 20:14'},
31-
{children: '第一/二个友链', label: '2024/7/24 10:50'},
32-
{children: '视频教程创建', label: '2024/7/27 20:06'},
33-
{children: '切换到 Cloudflare Page', label: '2024/10/29 22:06'},
34-
{children: 'NitWikit VitePress 项目创建!', label: '2024/11/11 13:39'},
35-
{children: '主页第二次重构', label: '2024/11/24 8:49'},
36-
{children: 'Cubic-Project 建立!', label: '2024/11/30 19:39', color: '#00CCFF',},
37-
{children: 'Docker-Minecraft 项目创建!', label: '2024/12/20 20:20', color: 'green'},
38-
{children: 'PluginsWiki 项目创建!', label: '2024/12/21 22:05', color: 'green'},
39-
{children: 'TypeWriter-CN 项目创建!', label: '2025/1/11 11:24', color: 'green'},
40-
{children: 'Pumpkin-CN 项目创建!', label: '2025/1/22 13:51', color: 'green'},
41-
{children: '域名更换到 8aka.org', label: '2025/1/26 14:13', color: 'red',},
42-
{children: 'PaperDocs-CN 项目创建!', label: '2025/2/11 13:57', color: 'green'},
43-
{children: 'PurpurDocs-CN 项目创建!', label: '2025/2/15 15:15', color: 'green'},
44-
{children: 'Invero/Docs 项目接手!', label: '2025/3/8 15:22', color: 'green'},
45-
{children: 'Talent-Anticheat 项目接手!', label: '2025/3/29 13:21', color: 'green'},
46-
{children: '主页第三次重构', label: '2025/3/31 00:36'},
47-
{children: 'BedrockWiki-CN 项目创建!', label: '2025/4/5 10:19', color: 'green'},
48-
{children: 'NitWikit star 破 100', label: '2025/4/30', color: 'yellow'},
49-
{children: 'TabooLib-Guide 项目创建!', label: '2025/4/30 20:00', color: 'green'},
50-
{children: '新组织 Cubic-Project 建立', label: '2025/11/16 18:00', color: 'red',},
51-
]}/>
52-
10+
<Timeline
11+
style={{ fontSize: 16 }}
12+
mode="right"
13+
pending="故事还在继续..."
14+
items={[
15+
{ children: "lezi-wiki 项目创建!", label: "2024/2/29 21:09", color: "green" },
16+
{
17+
children: "NitWikit 项目创建!(此时项目名字叫 Dumb_Service_Guide)",
18+
label: "2024/3/23 13:25",
19+
color: "green"
20+
},
21+
{ children: "第一个有意义提交", label: "2024/3/23 16:24" },
22+
{ children: "LLF 第一个提交", label: "2024/3/28 19:28" },
23+
{ children: "项目名称更改为 NitWikit", label: "2024/4/5 10:22" },
24+
{ children: "NitWikit Banner 诞生!", label: "2024/4/14 12:30" },
25+
{ children: "笨蛋脚本诞生", label: "2024/4/14 14:01", color: "green" },
26+
{ children: "第一个笨蛋脚本!:自动优化", label: "2024/4/20 13:28" },
27+
{ children: "启用文档新的域名 yizhan.wiki", label: "2024/4/26 22:40", color: "red" },
28+
{ children: "NitWikit QQ 群建立(公开?)", label: "2024/5/2 00:02" },
29+
{ children: "主页第一次重构", label: "2024/5/11 20:43" },
30+
{ children: "贡献者达到 20 人", label: "2024/6/8 15:57" },
31+
{ children: "文档目录结构转换为英文", label: "2024/6/22 20:14" },
32+
{ children: "第一/二个友链", label: "2024/7/24 10:50" },
33+
{ children: "视频教程创建", label: "2024/7/27 20:06" },
34+
{ children: "切换到 Cloudflare Page", label: "2024/10/29 22:06" },
35+
{ children: "NitWikit VitePress 项目创建!", label: "2024/11/11 13:39" },
36+
{ children: "主页第二次重构", label: "2024/11/24 8:49" },
37+
{ children: "Cubic-Project 建立!", label: "2024/11/30 19:39", color: "#00CCFF" },
38+
{ children: "Docker-Minecraft 项目创建!", label: "2024/12/20 20:20", color: "green" },
39+
{ children: "PluginsWiki 项目创建!", label: "2024/12/21 22:05", color: "green" },
40+
{ children: "TypeWriter-CN 项目创建!", label: "2025/1/11 11:24", color: "green" },
41+
{ children: "Pumpkin-CN 项目创建!", label: "2025/1/22 13:51", color: "green" },
42+
{ children: "域名更换到 8aka.org", label: "2025/1/26 14:13", color: "red" },
43+
{ children: "PaperDocs-CN 项目创建!", label: "2025/2/11 13:57", color: "green" },
44+
{ children: "PurpurDocs-CN 项目创建!", label: "2025/2/15 15:15", color: "green" },
45+
{ children: "Invero/Docs 项目接手!", label: "2025/3/8 15:22", color: "green" },
46+
{ children: "Talent-Anticheat 项目接手!", label: "2025/3/29 13:21", color: "green" },
47+
{ children: "主页第三次重构", label: "2025/3/31 00:36" },
48+
{ children: "BedrockWiki-CN 项目创建!", label: "2025/4/5 10:19", color: "green" },
49+
{ children: "NitWikit star 破 100", label: "2025/4/30", color: "yellow" },
50+
{ children: "TabooLib-Guide 项目创建!", label: "2025/4/30 20:00", color: "green" },
51+
{ children: "新组织 Cubic-Project 建立", label: "2025/11/16 18:00", color: "red" }
52+
]}
53+
/>

0 commit comments

Comments
 (0)