优化代码

This commit is contained in:
Sun 2024-01-25 10:58:15 +08:00
parent 104543b96f
commit ba7d70f9ca
6 changed files with 10 additions and 20 deletions

View File

@ -1,13 +1,11 @@
{
"name": "sun-panel",
"version": "2.10.9",
"version": "0.0.0",
"private": false,
"description": "ChatGPT Web",
"author": "ChenZhaoYu <chenzhaoyu1994@gmail.com>",
"description": "Sun-Panel Web",
"author": "BraisedHunter <95302870@qq.com>",
"keywords": [
"Sun-Panel",
"chatgpt",
"chatbot",
"vue"
],
"scripts": {

View File

@ -20,6 +20,7 @@ interface Version {
const appStore = useAppStore()
const versionName = ref('')
const qqGroupQRShow = ref(false)
const frontVersion = import.meta.env.VITE_APP_VERSION || '未知版本'
onMounted(() => {
get<Version>().then((res) => {
@ -32,6 +33,7 @@ onMounted(() => {
<template>
<div class="pt-5">
<div class="flex flex-col items-center justify-center">
<div>{{ frontVersion }}</div>
<img :src="srcSvglogo" width="100" height="100" alt="">
<div class="text-3xl font-semibold">
{{ $t('common.appName') }}
@ -46,7 +48,9 @@ onMounted(() => {
</div>
</div>
<NDivider> </NDivider>
<NDivider style="margin:10px 0">
</NDivider>
<div class="flex flex-col items-center justify-center text-base">
<div>
{{ $t('apps.about.author') }}<a href="https://github.com/hslr-s" target="_blank" class="link">红烧猎人</a> | <a href="https://github.com/hslr-s/sun-panel/blob/master/doc/donate.md" target="_blank" class="text-red-600 hover:text-red-900">{{ $t('apps.about.donate') }}</a>

View File

@ -1,8 +0,0 @@
<template>
<div class="text-neutral-400">
<span>Star on</span>
<a href="https://github.com/Chanzhaoyu/chatgpt-bot" target="_blank" class="text-blue-500">
GitHub
</a>
</div>
</template>

View File

@ -1,3 +0,0 @@
import GithubSite from './GithubSite.vue'
export { GithubSite }

View File

@ -225,8 +225,8 @@
"iconGroup": "分组",
"inputIconName": "请输入图标名称",
"inputIconUrlOrUpload": "输入图标地址或上传",
"lanUrl": "局域网地址",
"lanUrlInputPlaceholder": "http(s)://局域网模式,会跳转该地址)",
"lanUrl": "网地址",
"lanUrlInputPlaceholder": "http(s)://网模式,会跳转该地址)",
"newWindowOpen": "新窗口打开",
"onlineIcon": "在线图标",
"onlineIconLibrary": "在线图标库",

View File

@ -17,7 +17,6 @@ export function defaultSetting(): UserState {
userInfo: {
// headImage: userDefaultAvatar,
name: '-- --',
// description: 'Star on <a href="https://github.com/Chanzhaoyu/chatgpt-bot" class="text-blue-500" target="_blank" >GitHub</a>',
},
}
}