Skip to content

Commit 220f127

Browse files
committed
chore: 更新文档
1 parent f0216c2 commit 220f127

29 files changed

Lines changed: 221 additions & 201 deletions

File tree

README.md

Lines changed: 170 additions & 172 deletions
Large diffs are not rendered by default.

docs/.vitepress/components/UploadResult.vue

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ const filteredList = computed(() => {
4747
return filtered.slice(start, end);
4848
})
4949
50+
const getFailReason = (data) => {
51+
const logs = (data.upload_logs || '').toLowerCase();
52+
if (logs.includes('invalid ip')) {
53+
return '未关闭IP白名单';
54+
}
55+
return null;
56+
};
57+
5058
const columns = [
5159
{
5260
title: '序号',
@@ -67,6 +75,16 @@ const columns = [
6775
key: 'version',
6876
align: 'center',
6977
width: 150,
78+
render: row => {
79+
if (row.version) return row.version;
80+
const reason = getFailReason(row);
81+
return h(NSpace, { size: 'small', align: 'center', justify: 'center' }, {
82+
default: () => [
83+
h(NTag, { type: 'error', size: 'small' }, { default: () => '上传失败' }),
84+
reason ? h(NText, { type: 'error', depth: 3, style: { fontSize: '12px' } }, { default: () => reason }) : null,
85+
]
86+
});
87+
}
7088
},
7189
{
7290
title: 'Secret',
@@ -134,8 +152,17 @@ const columns = [
134152
: null,
135153
]
136154
})
137-
: h(NTag, { type: 'error', size: 'small' }, {
138-
default: () => '上传失败'
155+
: h(NSpace, { size: 'small', align: 'center' }, {
156+
default: () => [
157+
h(NTag, { type: 'error', size: 'small' }, {
158+
default: () => '上传失败'
159+
}),
160+
getFailReason(data)
161+
? h(NText, { type: 'error', style: { fontSize: '12px' } }, {
162+
default: () => getFailReason(data)
163+
})
164+
: null,
165+
]
139166
})
140167
},
141168
{ label: '手机号', value: data.mobile || '隐藏' },

docs/.vitepress/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default defineConfig({
4040
socialLinks: [
4141
{
4242
icon: 'github',
43-
link: 'https://github.com/Misaka-1314/Chaoxing-MIniProgram'
43+
link: 'https://github.com/Misaka-1314/MisakaStudy-MIniProgram'
4444
}
4545
],
4646
outline: false,
@@ -55,11 +55,11 @@ export default defineConfig({
5555
items: [
5656
{
5757
text: '许可证',
58-
link: 'https://github.com/Misaka-1314/Chaoxing-MiniProgram/blob/main/LICENSE'
58+
link: 'https://github.com/Misaka-1314/MisakaStudy-MIniProgram/blob/main/LICENSE'
5959
},
6060
{
6161
text: '参与贡献',
62-
link: 'https://github.com/Misaka-1314/Chaoxing-MiniProgram/blob/main/CODE_OF_CONDUCT.md'
62+
link: 'https://github.com/Misaka-1314/MisakaStudy-MIniProgram/blob/main/CODE_OF_CONDUCT.md'
6363
}
6464
]
6565
}
@@ -84,7 +84,7 @@ export default defineConfig({
8484
},
8585
editLink: {
8686
text: '在 GitHub 上编辑此页',
87-
pattern: 'https://github.com/Misaka-1314/Chaoxing-MIniProgram/edit/main/docs/:path'
87+
pattern: 'https://github.com/Misaka-1314/MisakaStudy-MIniProgram/edit/main/docs/:path'
8888
},
8989
sidebar: [{
9090
text: '用户签到指南',

docs/advance/open/develop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ https://pan-yz.chaoxing.com
6464
```js
6565
const config = {
6666
baseUrl: "https://example.com/proxy",
67-
repository: "Misaka-1314/Chaoxing-WechatMiniProgram", // 开源仓库地址
67+
repository: "Misaka-1314/MisakaStudy-MiniProgram", // 开源仓库地址
6868

6969
baiduMapKey: '', // 百度地图开发平台
7070
tianMapKey: '', // 天地图开放平台

docs/advance/open/server.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111

1212
> 注意:Worker默认的域名已被墙,请自备域名;已知部分沿海城市阻断了CF的IP。
1313
14-
[![使用 Cloudflare Workers 部署](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/Misaka-1314/Chaoxing-MiniProgram/tree/main/server/cloudflare)
14+
[![使用 Cloudflare Workers 部署](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/Misaka-1314/MisakaStudy-MIniProgram/tree/main/server/cloudflare)
1515

1616
请修改根目录为 `server/cloudflare`
17-
如果部署有问题,请自行复制代码粘贴到 Cloudflare Workers![去复制代码](https://github.com/Misaka-1314/Chaoxing-MiniProgram/blob/main/server/cloudflare/_worker.js)
17+
如果部署有问题,请自行复制代码粘贴到 Cloudflare Workers![去复制代码](https://github.com/Misaka-1314/MisakaStudy-MIniProgram/blob/main/server/cloudflare/_worker.js)
1818
:::
1919

2020
::: details 使用腾讯云 EdgeOne Pages
2121
[![使用 腾讯云 EdgeOne Pages 部署](https://cdnstatic.tencentcs.com/edgeone/pages/deploy.svg)](https://edgeone.ai/pages/new?repository-url=https%3a%2f%2fgithub.com%2fMisaka-1314%2fChaoxing-MiniProgram%2ftree%2fmain%2fserver%2fedgeone&project-name=cx-proxy&repository-name=cx-proxy)
2222
:::
2323

2424
::: details 使用腾讯云 EdgeOne 边缘函数
25-
请自行复制代码粘贴到 EdgeOne 边缘函数![去复制代码](https://github.com/Misaka-1314/Chaoxing-MiniProgram/blob/main/server/edgeone/_worker.js)
25+
请自行复制代码粘贴到 EdgeOne 边缘函数![去复制代码](https://github.com/Misaka-1314/MisakaStudy-MIniProgram/blob/main/server/edgeone/_worker.js)
2626
:::
2727

2828
## 使用 Web 服务器反代

docs/edge-functions/api/github/releases.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export async function onRequestGet({ request, params, env }) {
22
return fetch(
3-
`https://api.github.com/repos/Misaka-1314/Chaoxing-MiniProgram/releases`, {
3+
`https://api.github.com/repos/Misaka-1314/MisakaStudy-MIniProgram/releases`, {
44
"method": "GET",
55
"headers": {
66
"Authorization": `Bearer ${env.token}`,

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ hero:
1616
link: /advance/no-open/develop
1717
- theme: alt
1818
text: GitHub 仓库 🌱
19-
link: https://github.com/Misaka-1314/Chaoxing-MiniProgram
19+
link: https://github.com/Misaka-1314/MisakaStudy-MIniProgram
2020

2121
features:
2222
- title: ⚡️ 极致轻量
882 KB
Loading
1.08 MB
Loading
768 KB
Loading

0 commit comments

Comments
 (0)