Merge pull request #988 from Soulter/NiceAir/master

 feat: Update UI elements and improve layout in various components
This commit is contained in:
Soulter
2025-03-25 23:17:11 +08:00
committed by GitHub
6 changed files with 11 additions and 11 deletions
@@ -12,7 +12,7 @@
<v-card class="item-card hover-elevation" :color="getItemEnabled(item) ? '' : 'grey-lighten-4'">
<div class="item-status-indicator" :class="{'active': getItemEnabled(item)}"></div>
<v-card-title class="d-flex justify-space-between align-center pb-1 pt-3">
<span class="text-h6 text-truncate" :title="getItemTitle(item)">{{ getItemTitle(item) }}</span>
<span class="text-h4 text-truncate" :title="getItemTitle(item)">{{ getItemTitle(item) }}</span>
<v-tooltip location="top">
<template v-slot:activator="{ props }">
<v-switch
@@ -31,7 +31,12 @@ const sidebarItem: menu[] = [
to: '/providers',
},
{
title: '配置',
title: 'MCP',
icon: 'mdi-function-variant',
to: '/tool-use'
},
{
title: '配置文件',
icon: 'mdi-cog',
to: '/config',
},
@@ -45,11 +50,6 @@ const sidebarItem: menu[] = [
icon: 'mdi-storefront',
to: '/extension-marketplace'
},
{
title: '函数调用',
icon: 'mdi-function-variant',
to: '/tool-use'
},
{
title: '聊天',
icon: 'mdi-chat',
+1
View File
@@ -300,5 +300,6 @@ export default {
<style scoped>
.platform-page {
padding: 20px;
padding-top: 8px;
}
</style>
+1
View File
@@ -324,5 +324,6 @@ export default {
<style scoped>
.provider-page {
padding: 20px;
padding-top: 8px;
}
</style>
+1 -4
View File
@@ -5,7 +5,7 @@
<v-list lines="two">
<v-list-subheader>网络</v-list-subheader>
<v-list-item subtitle="设置下载插件或者更新 AstrBot 时所用的 GitHub 加速地址。这在中国大陆的网络环境有效。可以自定义,输入结果实时生效" title="GitHub 加速地址">
<v-list-item subtitle="设置下载插件或者更新 AstrBot 时所用的 GitHub 加速地址。这在中国大陆的网络环境有效。可以自定义,输入结果实时生效。所有地址均不保证稳定性,如果在更新插件/项目时出现报错,请首先检查加速地址是否能正常使用。" title="GitHub 加速地址">
<v-combobox variant="outlined" style="width: 100%; margin-top: 16px;" v-model="selectedGitHubProxy" :items="githubProxies"
label="选择 GitHub 加速地址">
@@ -41,11 +41,8 @@ export default {
data() {
return {
githubProxies: [
"https://ghproxy.cn",
"https://gh.llkk.cc",
"https://ghproxy.net",
"https://gitproxy.click",
"https://github.tbedu.top"
],
selectedGitHubProxy: "",
}
+1
View File
@@ -589,6 +589,7 @@ export default {
<style scoped>
.tools-page {
padding: 20px;
padding-top: 8px;
}
.server-card {