Skip to content

Commit 1bb730b

Browse files
committed
feature: setting model
1 parent d6bd964 commit 1bb730b

File tree

6 files changed

+60
-115
lines changed

6 files changed

+60
-115
lines changed

src/components/Check.vue

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
</a>
7272
</a-tooltip>
7373
<a-tooltip :title="t('GITHUB')" placement="bottom">
74-
<a href="https://github.com/your-repo" target="_blank" class="icon-button">
74+
<div @click="openGitHub()" class="icon-button">
7575
<GithubOutlined style="cursor: pointer;"/>
76-
</a>
76+
</div>
7777
</a-tooltip>
7878
</div>
7979
</div>
@@ -540,16 +540,34 @@
540540
</div>
541541
<a-divider style="margin: 16px 0;"></a-divider>
542542
<div style="text-align: left;">
543-
<h3 style="font-size: 18px; margin-bottom: 8px;">{{ t('AUTHORS') }}</h3>
544-
<p style="margin: 4px 0; font-size: 14px;">
545-
<a :href="appInfo.author.url" target="_blank" style="color: #1890ff;">
546-
{{ appInfo.author.name }}
547-
</a>
548-
&
549-
<a :href="appInfo.coauthor.url" target="_blank" style="color: #1890ff;">
550-
{{ appInfo.coauthor.name }}
551-
</a>
552-
</p>
543+
<a-row :gutter="16">
544+
<!-- 左侧:作者信息 -->
545+
<a-col :xs="12" :sm="12">
546+
<h3 style="font-size: 18px; margin-bottom: 8px;">{{ t('AUTHORS') }}</h3>
547+
<p style="margin: 4px 0; font-size: 14px;">
548+
<a :href="appInfo.author.url" target="_blank" style="color: #1890ff;">
549+
{{ appInfo.author.name }}
550+
</a>
551+
</p>
552+
<p>
553+
<a :href="appInfo.coauthor.url" target="_blank" style="color: #1890ff;">
554+
{{ appInfo.coauthor.name }}
555+
</a>
556+
</p>
557+
</a-col>
558+
<!-- 右侧:赞助商信息 -->
559+
<a-col :xs="12" :sm="12">
560+
<h3 style="font-size: 18px; margin-bottom: 8px;">{{ t('SPONSORS') }}</h3>
561+
<ul style="list-style-type: none; padding: 0;">
562+
<li v-for="(sponsor, index) in appInfo.sponsors" :key="index" style="margin-bottom: 4px;">
563+
<a :href="sponsor.url" target="_blank" style="color: #1890ff;">
564+
{{ sponsor.name }}
565+
</a>
566+
:{{ sponsor.desc }}
567+
</li>
568+
</ul>
569+
</a-col>
570+
</a-row>
553571
<a-divider style="margin: 16px 0;"></a-divider>
554572
<div v-if="appInfo.contributors && appInfo.contributors.length">
555573
<h3 style="font-size: 18px; margin: 16px 0 8px 0;">{{ t('CONTRIBUTORS') }}</h3>
@@ -560,11 +578,12 @@
560578
style="margin: 8px; text-align: center;"
561579
>
562580
<a :href="contributor.url" target="_blank">
563-
<img
581+
<a-avatar
564582
:src="contributor.avatar"
565583
:alt="contributor.name"
566-
style="width: 45px; height: 45px; border-radius: 50%;"
567-
/>
584+
shape="circle"
585+
:size="45"
586+
></a-avatar>
568587
</a>
569588
<p style="margin-top: 4px; font-size: 14px;">
570589
<a :href="contributor.url" target="_blank" style="color: #1890ff;">
@@ -1852,11 +1871,12 @@ function openSettingsModal() {
18521871
cloudAuthHeader = `Bearer ${cloudPassword.value}`;
18531872
fetchCloudData();
18541873
}
1855-
18561874
showAppSettingsModal.value = true;
18571875
}
18581876
1859-
1877+
function openGitHub() {
1878+
window.open(appInfo.githubUrl);
1879+
}
18601880
// 关闭设置面板
18611881
function closeSettingsModal() {
18621882
showAppSettingsModal.value = false;
@@ -3244,5 +3264,6 @@ body.light-mode {
32443264
margin-left: auto; /* 将最后一个按钮(关闭按钮)推到最右侧 */
32453265
}
32463266
3267+
32473268
</style>
32483269

src/components/LanguageToggle.vue

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/components/Modals/FunctionCallingModal.vue

Lines changed: 0 additions & 64 deletions
This file was deleted.

src/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,6 @@
140140
"COPIED_MODELS_TO_CLIPBOARD": "Copied {count} {type} to clipboard",
141141
"IDENTICAL_MODELS": "identical models",
142142
"COPY_FAILED": "Copy failed, please copy manually",
143-
"RECORD_ALREADY_EXISTS": "Record already exists"
143+
"RECORD_ALREADY_EXISTS": "Record already exists",
144+
"SPONSORS": "Sponsors"
144145
}

src/locales/zh.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"PLEASE_LOGIN_TO_CLOUD": "请先登录云端",
126126
"UPDATE_LOG": "更新日志",
127127
"VERIFY": "验证",
128-
"CHAT": "去聊天",
128+
"CHAT": "去对话",
129129
"SHARE": "去分享",
130130
"COPY": "复制模型",
131131
"UPDATE_CHECK_FAILED": "无法获取最新的发布版本信息",
@@ -141,5 +141,6 @@
141141
"COPIED_MODELS_TO_CLIPBOARD": "已复制 {count} 个 {type} 到剪贴板",
142142
"IDENTICAL_MODELS": "一致模型",
143143
"COPY_FAILED": "复制失败,请手动复制",
144-
"RECORD_ALREADY_EXISTS": "记录已存在"
144+
"RECORD_ALREADY_EXISTS": "记录已存在",
145+
"SPONSORS": "鸣谢"
145146
}

src/utils/info.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const appInfo = {
22
name: 'API CHECK', // 应用名称
3-
description: {
3+
description: {
44
zh: [
55
'✨ 适用:支持one-api、new-api 等中转 OpenAI 格式的 API 检测',
66
'🔐 安全:纯前端版本,无需担心网关超时,数据安全有保障',
@@ -18,12 +18,24 @@ export const appInfo = {
1818
version: '2.0.0', // 版本号
1919
author: {
2020
name: "RICK",
21-
blog: "https://blog.rick.icu"
21+
url: "https://blog.rick.icu"
2222
},
2323
coauthor: {
2424
name: "MEGASOFT",
25-
blog: "https://linux.do/u/zhong_little"
25+
url: "https://linux.do/u/zhong_little"
2626
},
27+
sponsors: [
28+
{
29+
name: 'VME50',
30+
url: 'mailto:[email protected]',
31+
desc:'虚位以待'
32+
},
33+
{
34+
name: '黄花机场',
35+
url: 'https://www.hunanairport.cn',
36+
desc:'最好的机场'
37+
}
38+
],
2739
updateLogUrl: 'https://github.com/october-coder/api-check/releases',
2840
contributors: [
2941
{
@@ -35,7 +47,7 @@ export const appInfo = {
3547
url: 'https://linux.do/u/zhong_little',
3648
avatar: 'https://linux.do/user_avatar/linux.do/zhong_little/288/104887_2.png',
3749
}, {
38-
name: 'fangyuan99',
50+
name: 'fangyuan',
3951
url: 'https://linux.do/u/fangyuan99',
4052
avatar: 'https://linux.do/letter_avatar_proxy/v4/letter/f/b3f665/144.png',
4153
}, {
@@ -49,7 +61,7 @@ export const appInfo = {
4961
website: 'https://check.crond.dev',
5062
license: 'Apache', // 许可证,
5163
changelogUrl: 'https://github.com/october-coder/api-check/releases',
52-
githubUrl:'https://github.com/october-coder/api-check',
64+
githubUrl: 'https://github.com/october-coder/api-check',
5365
owner: 'october-coder',
5466
repo: 'api-check',
5567
};

0 commit comments

Comments
 (0)