Skip to content

Commit c5bbf26

Browse files
committed
fix: 修复部分bug,优化UI
1 parent fd531f5 commit c5bbf26

11 files changed

Lines changed: 192 additions & 50 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
- fix: 修复 `-` 符号与Discourse论坛快捷键冲突的问题
1+
- fix: 修复 `-` 符号与 Discourse 论坛快捷键冲突的问题
2+
- style: 优化基础 UI

entrypoints/App.vue

Lines changed: 29 additions & 2 deletions
Large diffs are not rendered by default.

entrypoints/app.css

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,27 +101,58 @@
101101
}
102102

103103
#linuxdoscripts .setting-btn .el-button {
104-
margin: 0;
105-
margin-top: 15px;
106104
width: 50px;
107105
height: 50px;
108106
border-radius: 50%;
109-
display: flex;
107+
position: relative;
108+
display: inline-flex;
110109
align-items: center;
111110
justify-content: center;
112-
background: var(--tertiary-low);
113-
font-size: 14px;
114-
cursor: pointer;
111+
padding: 0;
112+
margin: 0;
113+
margin-top: 10px;
114+
font-size: 13px;
115+
font-weight: 500;
116+
color: #fff;
117+
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
115118
border: none;
116-
box-shadow: 0px 1px 3px rgb(0 0 0 / 25%);
119+
cursor: pointer;
120+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
121+
box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
122+
overflow: hidden;
123+
}
124+
125+
#linuxdoscripts .setting-btn .el-button::before {
126+
content: "";
127+
position: absolute;
128+
top: 0;
129+
left: 0;
130+
width: 100%;
131+
height: 100%;
132+
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
133+
opacity: 0;
134+
transition: opacity 0.3s ease;
135+
}
136+
137+
#linuxdoscripts .setting-btn .el-button:hover {
138+
box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
139+
}
140+
141+
#linuxdoscripts .setting-btn .el-button:hover::before {
142+
opacity: 1;
143+
}
144+
145+
#linuxdoscripts .setting-btn .el-button:active {
146+
box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.2);
117147
}
118148

119149
#linuxdoscripts .setting-btn .el-button svg {
120150
margin: 0;
121151
}
122152

123-
#linuxdoscripts .setting-btn .el-button:hover {
124-
opacity: 0.9;
153+
#linuxdoscripts .setting-btn .el-button span {
154+
position: relative;
155+
z-index: 1;
125156
}
126157

127158
#linuxdoscripts .hint {

entrypoints/components/AIConfig/GPTconfig.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<div class="config-title">配置信息</div>
3434

3535
<div class="item">
36-
<div class="label">选择服务商:</div>
36+
<div class="label">选择服务商</div>
3737
<div class="info">
3838
<select v-model="localChecked.provider" @change="handleProviderChange">
3939
<option value="openai">OpenAI</option>
@@ -68,7 +68,7 @@
6868
</div>
6969

7070
<div class="item">
71-
<div class="label">模型名称:</div>
71+
<div class="label">模型名称</div>
7272
<div class="info">
7373
<input
7474
type="text"
@@ -191,7 +191,7 @@ export default {
191191
// 手动修改输入框的值
192192
el.value = newValue;
193193
194-
// 触发input事件来更新v-model绑定的数据
194+
// 触发 input 事件来更新 v-model 绑定的数据
195195
el.dispatchEvent(new Event('input', { bubbles: true }));
196196
197197
// 设置光标位置

entrypoints/components/BasicSettings/MenuBookmark.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/>
99
</div>
1010
<div class="item" v-if="modelValue">
11-
<div class="tit">&nbsp;&nbsp;{{ sort }}.1 无感收藏 (不跳转收藏页)</div>
11+
<div class="tit">{{ sort }}.1 无感收藏 (不跳转收藏页)</div>
1212
<input type="checkbox" :checked="silentBookmark" @change="toggleSilentBookmark" />
1313
</div>
1414
</template>

entrypoints/components/Button/LevelDiglog.vue

Lines changed: 104 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<div>
3-
<div class="el-button" @click="togglePopupSize" :class="['linuxDoLevelPopup', isMinimized ? 'minimized' : '']"
4-
title="等级查询">
3+
<div class="el-button" @click="togglePopupSize" title="等级查询">
54
<span>等级</span>
65
</div>
76
<div v-if="!isMinimized" id="linuxDoLevelPopupContent">
@@ -177,22 +176,27 @@ export default {
177176
</script>
178177

179178
<style scoped lang="less">
180-
@keyframes breathAnimation {
181-
182-
0%,
183-
100% {
184-
transform: scale(1);
185-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
179+
@keyframes fadeIn {
180+
from {
181+
opacity: 0;
182+
transform: translateY(10px);
186183
}
187-
188-
50% {
189-
transform: scale(1.1);
190-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
184+
to {
185+
opacity: 1;
186+
transform: translateY(0);
191187
}
192188
}
193189
194-
.breath-animation {
195-
animation: breathAnimation 4s ease-in-out infinite;
190+
@keyframes pulse {
191+
0% {
192+
box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
193+
}
194+
70% {
195+
box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
196+
}
197+
100% {
198+
box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
199+
}
196200
}
197201
198202
.minimized {
@@ -202,43 +206,118 @@ export default {
202206
padding: 0 !important;
203207
overflow: hidden;
204208
cursor: pointer;
209+
animation: pulse 2s infinite;
205210
}
206211
207212
#linuxDoLevelPopupContent {
208213
line-height: 1.6;
209214
position: fixed;
210215
bottom: 20px;
211216
right: 90px;
212-
width: 250px;
217+
width: 300px;
213218
height: auto;
214-
background-color: var(--tertiary-low);
215-
padding: 15px;
219+
background-color: var(--secondary);
220+
padding: 20px;
216221
z-index: 10000;
217222
font-size: 14px;
218-
border-radius: 5px;
223+
border-radius: 12px;
224+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
225+
animation: fadeIn 0.3s ease-out;
226+
border: 1px solid var(--primary-low);
227+
box-sizing: border-box;
228+
229+
*{
230+
box-sizing: border-box;
231+
}
232+
233+
strong {
234+
color: var(--primary);
235+
font-weight: 600;
236+
}
219237
}
220238
221239
#linuxDoUserSearch {
222240
width: 100%;
223-
margin-top: 10px;
241+
margin-top: 15px;
242+
padding: 10px 12px;
243+
border: 2px solid var(--primary-low);
244+
border-radius: 8px;
245+
font-size: 14px;
246+
transition: all 0.3s ease;
247+
248+
&:focus {
249+
outline: none;
250+
border-color: var(--primary);
251+
box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
252+
}
224253
}
225254
226-
.button {
255+
.btn {
256+
width: 100%;
257+
padding: 12px 24px;
258+
font-size: 14px;
259+
font-weight: 500;
260+
color: #fff;
261+
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
262+
border: none;
263+
border-radius: 12px;
264+
cursor: pointer;
265+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
266+
box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
267+
position: relative;
268+
overflow: hidden;
227269
margin-top: 10px;
270+
271+
&::before {
272+
content: '';
273+
position: absolute;
274+
top: 0;
275+
left: 0;
276+
width: 100%;
277+
height: 100%;
278+
background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
279+
opacity: 0;
280+
transition: opacity 0.3s ease;
281+
}
282+
283+
&:hover {
284+
transform: translateY(-2px);
285+
box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
286+
287+
&::before {
288+
opacity: 1;
289+
}
290+
}
291+
292+
&:active {
293+
transform: translateY(0);
294+
box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.2);
295+
}
296+
297+
.d-button-label {
298+
position: relative;
299+
z-index: 1;
300+
}
228301
}
229302
230303
.minimize-button {
231304
position: absolute;
232-
top: 5px;
233-
right: 5px;
305+
top: 8px;
306+
right: 8px;
234307
z-index: 10001;
235308
background: transparent;
236309
border: none;
237310
cursor: pointer;
238311
border-radius: 50%;
239312
text-align: center;
240-
line-height: 40px;
241-
width: 40px;
242-
height: 40px;
313+
line-height: 32px;
314+
width: 32px;
315+
height: 32px;
316+
color: var(--primary);
317+
transition: all 0.3s ease;
318+
319+
&:hover {
320+
background: var(--primary-low);
321+
}
243322
}
244323
</style>

entrypoints/components/CustomText/MenuIconTitle.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
<div class="item">
33
<div class="tit">{{ sort }}. 自定义论坛标签页 icon 和 title</div>
44
</div>
5-
<input type="text" v-model="localChecked.iconurl" @input="handleChange"
6-
placeholder="输入图片链接,如: https://xxx.com/images.png" />
7-
8-
<input type="text" v-model="localChecked.title" @input="handleChange" placeholder="输入文字,如:谷歌文档" />
5+
<input type="text" v-model="localChecked.iconurl" @input="handleChange" style="margin-bottom:5px;"
6+
placeholder="输入icon图链接,如: https://xxx.com/images.png" />
7+
<input type="text" v-model="localChecked.title" @input="handleChange" placeholder="输入标题,如:谷歌文档" />
98
</template>
109

1110
<script>

entrypoints/components/CustomText/MenuLogoUrl.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
type="text"
77
v-model="textarea"
88
@input="handleChange"
9-
placeholder="输入图片链接,如: https://xxx.com/images.png"
9+
placeholder="输入logo图链接,如: https://xxx.com/images.png"
1010
/>
1111
</template>
1212

entrypoints/components/Other/Updates.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<span>
44
<a href="https://github.com/dlzmoe/linuxdo-scripts" target="_blank">
55
<img alt="GitHub Repo stars"
6-
src="https://img.shields.io/github/stars/dlzmoe/linuxdo-scripts?style=flat-square&label=Github%20Stars">
6+
src="https://img.shields.io/github/stars/dlzmoe/linuxdo-scripts?style=flat&logoColor=%237F5801&label=Github&labelColor=%230E0E0F">
77
</a>
88
</span>
99
<span>当前版本:{{ version }}</span>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "linuxdo-scripts",
33
"description": "manifest.json description",
44
"private": true,
5-
"version": "1.1.13",
5+
"version": "1.1.14",
66
"type": "module",
77
"scripts": {
88
"dev": "wxt",

0 commit comments

Comments
 (0)