Skip to content

Commit e904f1f

Browse files
committed
功能优化
1 parent eebed0b commit e904f1f

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

src/renderer/src/components/views/welcome-page/WelcomePage.vue

+22-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { useSystemStore } from '@renderer/store/system'
44
import { useUserStore } from '@renderer/store/user'
55
import { nowTimestamp } from '@renderer/utils/date-util'
66
import { simulateThreadWait } from '@renderer/utils/thread-util'
7-
import { sys } from 'typescript'
87
import { nextTick, onMounted, reactive, toRefs } from 'vue'
98
109
const userStore = useUserStore()
@@ -53,6 +52,10 @@ onMounted(() => {
5352
<template>
5453
<div class="welcome-page z-index-max" @click="systemStore.isWelcomeShow = false">
5554
<div class="provider-list">
55+
<div class="provider-list-title">
56+
<div class="provider-list-title-left">{{ $t('welcomePage.title') }}</div>
57+
<div class="provider-list-title-right">&copy; 2024 Junki</div>
58+
</div>
5659
<AssistantAvatar
5760
v-for="(p, index) in providers"
5861
:key="p"
@@ -74,6 +77,7 @@ onMounted(() => {
7477
top: 0;
7578
left: 0;
7679
display: flex;
80+
flex-direction: column;
7781
align-items: center;
7882
justify-content: center;
7983
@@ -83,6 +87,23 @@ onMounted(() => {
8387
flex-wrap: wrap;
8488
gap: 40px;
8589
90+
.provider-list-title {
91+
width: 100%;
92+
display: flex;
93+
align-items: flex-end;
94+
justify-content: space-between;
95+
96+
.provider-list-title-left {
97+
font-size: var(--font-size-xl);
98+
font-weight: 500;
99+
}
100+
101+
.provider-list-title-right {
102+
color: var(--color-text-2);
103+
font-size: var(--font-size-sm);
104+
}
105+
}
106+
86107
.provider-item {
87108
opacity: 0;
88109
transition: all 500ms linear;

src/renderer/src/i18n/local/en_US.json

+3
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@
170170
}
171171
}
172172
},
173+
"welcomePage": {
174+
"title": "Now supported"
175+
},
173176
"userSetting": {
174177
"name": "User Info",
175178
"selectAvatar": "Select",

src/renderer/src/i18n/local/zh_CN.json

+3
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@
170170
}
171171
}
172172
},
173+
"welcomePage": {
174+
"title": "现已支持"
175+
},
173176
"userSetting": {
174177
"name": "用户信息",
175178
"selectAvatar": "选择",

0 commit comments

Comments
 (0)