优化代码
This commit is contained in:
parent
104543b96f
commit
ba7d70f9ca
@ -1,13 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "sun-panel",
|
"name": "sun-panel",
|
||||||
"version": "2.10.9",
|
"version": "0.0.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "ChatGPT Web",
|
"description": "Sun-Panel Web",
|
||||||
"author": "ChenZhaoYu <chenzhaoyu1994@gmail.com>",
|
"author": "BraisedHunter <95302870@qq.com>",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Sun-Panel",
|
"Sun-Panel",
|
||||||
"chatgpt",
|
|
||||||
"chatbot",
|
|
||||||
"vue"
|
"vue"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -20,6 +20,7 @@ interface Version {
|
|||||||
const appStore = useAppStore()
|
const appStore = useAppStore()
|
||||||
const versionName = ref('')
|
const versionName = ref('')
|
||||||
const qqGroupQRShow = ref(false)
|
const qqGroupQRShow = ref(false)
|
||||||
|
const frontVersion = import.meta.env.VITE_APP_VERSION || '未知版本'
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
get<Version>().then((res) => {
|
get<Version>().then((res) => {
|
||||||
@ -32,6 +33,7 @@ onMounted(() => {
|
|||||||
<template>
|
<template>
|
||||||
<div class="pt-5">
|
<div class="pt-5">
|
||||||
<div class="flex flex-col items-center justify-center">
|
<div class="flex flex-col items-center justify-center">
|
||||||
|
<div>{{ frontVersion }}</div>
|
||||||
<img :src="srcSvglogo" width="100" height="100" alt="">
|
<img :src="srcSvglogo" width="100" height="100" alt="">
|
||||||
<div class="text-3xl font-semibold">
|
<div class="text-3xl font-semibold">
|
||||||
{{ $t('common.appName') }}
|
{{ $t('common.appName') }}
|
||||||
@ -46,7 +48,9 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<NDivider> • </NDivider>
|
<NDivider style="margin:10px 0">
|
||||||
|
•
|
||||||
|
</NDivider>
|
||||||
<div class="flex flex-col items-center justify-center text-base">
|
<div class="flex flex-col items-center justify-center text-base">
|
||||||
<div>
|
<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>
|
{{ $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>
|
||||||
|
@ -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>
|
|
@ -1,3 +0,0 @@
|
|||||||
import GithubSite from './GithubSite.vue'
|
|
||||||
|
|
||||||
export { GithubSite }
|
|
@ -225,8 +225,8 @@
|
|||||||
"iconGroup": "分组",
|
"iconGroup": "分组",
|
||||||
"inputIconName": "请输入图标名称",
|
"inputIconName": "请输入图标名称",
|
||||||
"inputIconUrlOrUpload": "输入图标地址或上传",
|
"inputIconUrlOrUpload": "输入图标地址或上传",
|
||||||
"lanUrl": "局域网地址",
|
"lanUrl": "内网地址",
|
||||||
"lanUrlInputPlaceholder": "http(s)://(局域网模式,会跳转该地址)",
|
"lanUrlInputPlaceholder": "http(s)://(内网模式,会跳转该地址)",
|
||||||
"newWindowOpen": "新窗口打开",
|
"newWindowOpen": "新窗口打开",
|
||||||
"onlineIcon": "在线图标",
|
"onlineIcon": "在线图标",
|
||||||
"onlineIconLibrary": "在线图标库",
|
"onlineIconLibrary": "在线图标库",
|
||||||
|
@ -17,7 +17,6 @@ export function defaultSetting(): UserState {
|
|||||||
userInfo: {
|
userInfo: {
|
||||||
// headImage: userDefaultAvatar,
|
// headImage: userDefaultAvatar,
|
||||||
name: '-- --',
|
name: '-- --',
|
||||||
// description: 'Star on <a href="https://github.com/Chanzhaoyu/chatgpt-bot" class="text-blue-500" target="_blank" >GitHub</a>',
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user