Merge branch 'main' into feat/model-config
This commit is contained in:
commit
129f8860c9
@ -141,6 +141,9 @@
|
|||||||
|
|
||||||
--min-width: 400px;
|
--min-width: 400px;
|
||||||
|
|
||||||
|
/* Page Padding - 响应式页面内边距 */
|
||||||
|
--page-padding: 20px;
|
||||||
|
|
||||||
/* Ant Design 兼容变量 */
|
/* Ant Design 兼容变量 */
|
||||||
--color-bg-container: var(--main-0);
|
--color-bg-container: var(--main-0);
|
||||||
--color-bg-elevated: var(--gray-10);
|
--color-bg-elevated: var(--gray-10);
|
||||||
@ -182,3 +185,25 @@
|
|||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
scrollbar-color: var(--gray-200) transparent;
|
scrollbar-color: var(--gray-200) transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Page Padding 响应式断点 */
|
||||||
|
@media (min-width: 1440px) {
|
||||||
|
:root {
|
||||||
|
--page-padding: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1199px) {
|
||||||
|
:root {
|
||||||
|
--page-padding: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
:root {
|
||||||
|
--page-padding: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
.sidebar-toolbar {
|
.sidebar-toolbar {
|
||||||
padding: 8px 12px 0;
|
padding: 8px var(--page-padding) 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
@ -60,7 +60,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.search-box {
|
.search-box {
|
||||||
padding: 8px 12px 0;
|
padding: 8px var(--page-padding) 0;
|
||||||
|
|
||||||
:deep(.ant-input-affix-wrapper) {
|
:deep(.ant-input-affix-wrapper) {
|
||||||
height: 28px;
|
height: 28px;
|
||||||
@ -136,7 +136,7 @@
|
|||||||
.list-container {
|
.list-container {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: 12px;
|
padding: 12px var(--page-padding);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
|||||||
@ -39,7 +39,7 @@ body {
|
|||||||
|
|
||||||
.layout-container {
|
.layout-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0px 30px;
|
padding: 0 var(--page-padding);
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin: 20px 0 10px 0;
|
margin: 20px 0 10px 0;
|
||||||
|
|||||||
@ -4,49 +4,188 @@
|
|||||||
.md-editor {
|
.md-editor {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
.md-editor-preview-wrapper {
|
.md-editor-preview-wrapper .md-editor-preview {
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md-editor-preview {
|
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
line-height: 1.75;
|
line-height: 1.75;
|
||||||
color: var(--gray-1000);
|
color: var(--gray-1000);
|
||||||
|
padding: 0;
|
||||||
|
max-width: 100%;
|
||||||
|
padding: 0;
|
||||||
|
font-family:
|
||||||
|
-apple-system, BlinkMacSystemFont, 'Noto Sans SC', 'PingFang SC', 'Noto Sans SC',
|
||||||
|
'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans CN', 'Courier New', monospace;
|
||||||
|
|
||||||
h1 {
|
table {
|
||||||
font-size: 1.1rem;
|
width: 100%;
|
||||||
margin: 16px 0 12px;
|
border-collapse: collapse;
|
||||||
font-weight: 600;
|
margin: 2em 0;
|
||||||
|
font-size: 15px;
|
||||||
|
display: table;
|
||||||
|
outline: 1px solid var(--gray-100);
|
||||||
|
outline-offset: 12px;
|
||||||
|
border-radius: 8px;
|
||||||
|
|
||||||
|
thead tr th {
|
||||||
|
padding-top: 0;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
thead th,
|
||||||
|
tbody th {
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid var(--gray-200);
|
||||||
|
}
|
||||||
|
|
||||||
|
tbody tr:last-child td {
|
||||||
|
border-bottom: 1px solid var(--gray-200);
|
||||||
|
border: none;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.05rem;
|
font-size: 1.1rem;
|
||||||
margin: 16px 0 12px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
font-size: 1rem;
|
|
||||||
margin: 14px 0 10px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h3,
|
||||||
h4 {
|
h4 {
|
||||||
font-size: 1rem;
|
font-size: 1.05rem;
|
||||||
margin: 14px 0 10px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
h5 {
|
|
||||||
font-size: 0.95rem;
|
|
||||||
margin: 12px 0 8px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h5,
|
||||||
h6 {
|
h6 {
|
||||||
font-size: 0.95rem;
|
font-size: 1rem;
|
||||||
margin: 12px 0 8px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
strong {
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
li > p,
|
||||||
|
ol > p,
|
||||||
|
ul > p {
|
||||||
|
margin: 0.25rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul li::marker,
|
||||||
|
ol li::marker {
|
||||||
|
color: var(--main-bright);
|
||||||
|
}
|
||||||
|
|
||||||
|
ul,
|
||||||
|
ol {
|
||||||
|
padding-left: 1.625rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
cite {
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--gray-800);
|
||||||
|
font-style: normal;
|
||||||
|
background-color: var(--gray-200);
|
||||||
|
border-radius: 4px;
|
||||||
|
outline: 2px solid var(--gray-200);
|
||||||
|
padding: 0rem 0.25rem;
|
||||||
|
margin-left: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&:hover::after {
|
||||||
|
content: attr(source);
|
||||||
|
position: absolute;
|
||||||
|
bottom: calc(100% + 6px);
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
padding: 8px 12px;
|
||||||
|
background-color: #222;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.5;
|
||||||
|
border-radius: 6px;
|
||||||
|
min-width: 100px;
|
||||||
|
max-width: 400px;
|
||||||
|
width: max-content;
|
||||||
|
white-space: normal;
|
||||||
|
word-break: break-word;
|
||||||
|
z-index: 1000;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||||
|
pointer-events: none;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
bottom: 100%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
border: 5px solid transparent;
|
||||||
|
border-top-color: var(--gray-900);
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: var(--main-700);
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-editor-code {
|
||||||
|
border: var(--gray-50);
|
||||||
|
border-radius: 8px;
|
||||||
|
|
||||||
|
.md-editor-code-head {
|
||||||
|
background-color: var(--gray-50);
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
|
.md-editor-collapse-tips {
|
||||||
|
color: var(--gray-400);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-size: 13px;
|
||||||
|
font-family:
|
||||||
|
'Menlo', 'Monaco', 'Consolas', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei',
|
||||||
|
'Hiragino Sans GB', 'Source Han Sans CN', 'Courier New', monospace;
|
||||||
|
line-height: 1.5;
|
||||||
|
letter-spacing: 0.025em;
|
||||||
|
tab-size: 4;
|
||||||
|
-moz-tab-size: 4;
|
||||||
|
background-color: var(--gray-25);
|
||||||
|
}
|
||||||
|
|
||||||
|
p:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
th,
|
||||||
|
td {
|
||||||
|
padding: 0.5rem 0rem;
|
||||||
|
text-align: left;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
border-bottom: 1px solid var(--gray-100);
|
||||||
|
color: var(--gray-800);
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--gray-800);
|
||||||
|
}
|
||||||
|
|
||||||
|
tr {
|
||||||
|
background-color: var(--gray-0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// tbody tr:last-child td {
|
||||||
|
// border-bottom: none;
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -47,7 +47,7 @@
|
|||||||
:showCodeRowNumber="false"
|
:showCodeRowNumber="false"
|
||||||
:modelValue="parsedData.content"
|
:modelValue="parsedData.content"
|
||||||
:key="message.id"
|
:key="message.id"
|
||||||
class="message-md"
|
class="message-md flat-md-preview"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div v-else-if="parsedData.reasoning_content" class="empty-block"></div>
|
<div v-else-if="parsedData.reasoning_content" class="empty-block"></div>
|
||||||
@ -555,224 +555,4 @@ const parsedData = computed(() => {
|
|||||||
:deep(.message-md) {
|
:deep(.message-md) {
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.message-md .md-editor-preview-wrapper) {
|
|
||||||
max-width: 100%;
|
|
||||||
padding: 0;
|
|
||||||
font-family:
|
|
||||||
-apple-system, BlinkMacSystemFont, 'Noto Sans SC', 'PingFang SC', 'Noto Sans SC',
|
|
||||||
'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans CN', 'Courier New', monospace;
|
|
||||||
|
|
||||||
#preview-only-preview {
|
|
||||||
font-size: 0.95rem;
|
|
||||||
line-height: 1.75;
|
|
||||||
color: var(--gray-1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
h1,
|
|
||||||
h2 {
|
|
||||||
font-size: 1.1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3,
|
|
||||||
h4 {
|
|
||||||
font-size: 1.05rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h5,
|
|
||||||
h6 {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
strong {
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
li > p,
|
|
||||||
ol > p,
|
|
||||||
ul > p {
|
|
||||||
margin: 0.25rem 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul li::marker,
|
|
||||||
ol li::marker {
|
|
||||||
color: var(--main-bright);
|
|
||||||
}
|
|
||||||
|
|
||||||
ul,
|
|
||||||
ol {
|
|
||||||
padding-left: 1.625rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
cite {
|
|
||||||
font-size: 12px;
|
|
||||||
color: var(--gray-800);
|
|
||||||
font-style: normal;
|
|
||||||
background-color: var(--gray-200);
|
|
||||||
border-radius: 4px;
|
|
||||||
outline: 2px solid var(--gray-200);
|
|
||||||
padding: 0rem 0.25rem;
|
|
||||||
margin-left: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
user-select: none;
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
&:hover::after {
|
|
||||||
content: attr(source);
|
|
||||||
position: absolute;
|
|
||||||
bottom: calc(100% + 6px);
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
padding: 8px 12px;
|
|
||||||
background-color: #222;
|
|
||||||
color: #fff;
|
|
||||||
font-size: 13px;
|
|
||||||
line-height: 1.5;
|
|
||||||
border-radius: 6px;
|
|
||||||
min-width: 100px;
|
|
||||||
max-width: 400px;
|
|
||||||
width: max-content;
|
|
||||||
white-space: normal;
|
|
||||||
word-break: break-word;
|
|
||||||
z-index: 1000;
|
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
||||||
pointer-events: none;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover::before {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
bottom: 100%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
border: 5px solid transparent;
|
|
||||||
border-top-color: var(--gray-900);
|
|
||||||
z-index: 1000;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: var(--main-700);
|
|
||||||
}
|
|
||||||
|
|
||||||
.md-editor-code {
|
|
||||||
border: var(--gray-50);
|
|
||||||
border-radius: 8px;
|
|
||||||
|
|
||||||
.md-editor-code-head {
|
|
||||||
background-color: var(--gray-50);
|
|
||||||
z-index: 1;
|
|
||||||
|
|
||||||
.md-editor-collapse-tips {
|
|
||||||
color: var(--gray-400);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
|
||||||
font-size: 13px;
|
|
||||||
font-family:
|
|
||||||
'Menlo', 'Monaco', 'Consolas', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei',
|
|
||||||
'Hiragino Sans GB', 'Source Han Sans CN', 'Courier New', monospace;
|
|
||||||
line-height: 1.5;
|
|
||||||
letter-spacing: 0.025em;
|
|
||||||
tab-size: 4;
|
|
||||||
-moz-tab-size: 4;
|
|
||||||
background-color: var(--gray-25);
|
|
||||||
}
|
|
||||||
|
|
||||||
p:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
|
||||||
width: 100%;
|
|
||||||
border-collapse: collapse;
|
|
||||||
margin: 2em 0;
|
|
||||||
font-size: 15px;
|
|
||||||
display: table;
|
|
||||||
outline: 1px solid var(--gray-100);
|
|
||||||
outline-offset: 14px;
|
|
||||||
border-radius: 12px;
|
|
||||||
|
|
||||||
thead tr th {
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
thead th,
|
|
||||||
tbody th {
|
|
||||||
border: none;
|
|
||||||
border-bottom: 1px solid var(--gray-200);
|
|
||||||
}
|
|
||||||
|
|
||||||
tbody tr:last-child td {
|
|
||||||
border-bottom: 1px solid var(--gray-200);
|
|
||||||
border: none;
|
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
th,
|
|
||||||
td {
|
|
||||||
padding: 0.5rem 0rem;
|
|
||||||
text-align: left;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
td {
|
|
||||||
border-bottom: 1px solid var(--gray-100);
|
|
||||||
color: var(--gray-800);
|
|
||||||
}
|
|
||||||
|
|
||||||
th {
|
|
||||||
font-weight: 600;
|
|
||||||
color: var(--gray-800);
|
|
||||||
}
|
|
||||||
|
|
||||||
tr {
|
|
||||||
background-color: var(--gray-0);
|
|
||||||
}
|
|
||||||
|
|
||||||
// tbody tr:last-child td {
|
|
||||||
// border-bottom: none;
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.chat-box.font-smaller #preview-only-preview) {
|
|
||||||
font-size: 14px;
|
|
||||||
|
|
||||||
h1,
|
|
||||||
h2 {
|
|
||||||
font-size: 1.1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3,
|
|
||||||
h4 {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.chat-box.font-larger #preview-only-preview) {
|
|
||||||
font-size: 16px;
|
|
||||||
|
|
||||||
h1,
|
|
||||||
h2 {
|
|
||||||
font-size: 1.3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3,
|
|
||||||
h4 {
|
|
||||||
font-size: 1.2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h5,
|
|
||||||
h6 {
|
|
||||||
font-size: 1.1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1,8 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="conversation-nav-section" :class="{ collapsed }">
|
<section class="conversation-nav-section" :class="{ collapsed }">
|
||||||
<div v-if="showHistory && !collapsed" class="history-panel">
|
<div v-if="showHistory && !collapsed" class="history-panel">
|
||||||
<div class="history-label">对话历史</div>
|
<div class="history-label" @click="listCollapsed = !listCollapsed">
|
||||||
<div class="conversation-list">
|
<span>对话历史</span>
|
||||||
|
<ChevronDown :size="14" class="collapse-icon" :class="{ collapsed: listCollapsed }" />
|
||||||
|
</div>
|
||||||
|
<div v-show="!listCollapsed" class="conversation-list">
|
||||||
<template v-if="sortedChats.length > 0">
|
<template v-if="sortedChats.length > 0">
|
||||||
<div
|
<div
|
||||||
v-for="chat in sortedChats"
|
v-for="chat in sortedChats"
|
||||||
@ -69,9 +72,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, h } from 'vue'
|
import { computed, h, ref } from 'vue'
|
||||||
import { message, Modal } from 'ant-design-vue'
|
import { message, Modal } from 'ant-design-vue'
|
||||||
import { MoreVertical, Pencil, Pin, PinOff, Trash2 } from 'lucide-vue-next'
|
import { ChevronDown, MoreVertical, Pencil, Pin, PinOff, Trash2 } from 'lucide-vue-next'
|
||||||
import { parseToShanghai } from '@/utils/time'
|
import { parseToShanghai } from '@/utils/time'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@ -109,6 +112,8 @@ const emit = defineEmits([
|
|||||||
'load-more-chats'
|
'load-more-chats'
|
||||||
])
|
])
|
||||||
|
|
||||||
|
const listCollapsed = ref(false)
|
||||||
|
|
||||||
const sortedChats = computed(() => {
|
const sortedChats = computed(() => {
|
||||||
return [...props.chatsList].sort((a, b) => {
|
return [...props.chatsList].sort((a, b) => {
|
||||||
if (a.is_pinned !== b.is_pinned) {
|
if (a.is_pinned !== b.is_pinned) {
|
||||||
@ -181,10 +186,32 @@ const renameChat = async (chatId) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.history-label {
|
.history-label {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
color: var(--gray-500);
|
color: var(--gray-500);
|
||||||
|
cursor: pointer;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: background-color 0.2s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: var(--main-20);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background: var(--main-30);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapse-icon {
|
||||||
|
transition: transform 0.2s ease;
|
||||||
|
|
||||||
|
&.collapsed {
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.conversation-list {
|
.conversation-list {
|
||||||
@ -208,7 +235,7 @@ const renameChat = async (chatId) => {
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--gray-700);
|
color: var(--gray-700);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 14px;
|
font-size: 13px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
transition:
|
transition:
|
||||||
background-color 0.2s ease,
|
background-color 0.2s ease,
|
||||||
@ -296,6 +323,10 @@ const renameChat = async (chatId) => {
|
|||||||
color: var(--gray-600);
|
color: var(--gray-600);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pinned-indicator {
|
||||||
|
color: var(--gray-400);
|
||||||
|
}
|
||||||
|
|
||||||
.empty-list {
|
.empty-list {
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
color: var(--gray-500);
|
color: var(--gray-500);
|
||||||
|
|||||||
@ -43,7 +43,7 @@ defineProps({
|
|||||||
.header-container {
|
.header-container {
|
||||||
background-color: var(--bg-sider);
|
background-color: var(--bg-sider);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
padding: 8px 16px;
|
padding: 8px var(--page-padding);
|
||||||
height: 50px;
|
height: 50px;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|||||||
@ -116,12 +116,8 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.status-bar {
|
.status-bar {
|
||||||
// background: var(--gray-0);
|
|
||||||
// backdrop-filter: blur(10px);
|
|
||||||
// height: 60px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
// position: sticky;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
@ -131,8 +127,7 @@ onUnmounted(() => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 16px;
|
padding: 16px var(--page-padding);
|
||||||
// padding-bottom: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-left {
|
.status-left {
|
||||||
|
|||||||
@ -403,8 +403,8 @@ const formatResultData = (data) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tool-content {
|
.tool-content {
|
||||||
margin: 4px 0 8px 12px;
|
margin: 4px 0 8px 8px;
|
||||||
padding-left: 12px;
|
padding-left: 8px;
|
||||||
border-left: 1px solid var(--gray-100);
|
border-left: 1px solid var(--gray-100);
|
||||||
|
|
||||||
.tool-params {
|
.tool-params {
|
||||||
|
|||||||
@ -65,7 +65,7 @@ const extractTableName = (args) => {
|
|||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.mysql-result {
|
.mysql-result {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 12px;
|
padding: 4px;
|
||||||
|
|
||||||
.result-text {
|
.result-text {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@ -47,7 +47,7 @@ const formatResult = (content) => {
|
|||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.mysql-result {
|
.mysql-result {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 12px;
|
padding: 4px;
|
||||||
|
|
||||||
.result-text {
|
.result-text {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@ -90,7 +90,7 @@ const truncateSql = (sql, maxLength = 50) => {
|
|||||||
color: var(--gray-800);
|
color: var(--gray-800);
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
padding: 6px;
|
padding: 4px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
||||||
max-height: 200px;
|
max-height: 200px;
|
||||||
@ -99,9 +99,8 @@ const truncateSql = (sql, maxLength = 50) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mysql-result {
|
.mysql-result {
|
||||||
// background: var(--gray-0);
|
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 12px;
|
padding: 4px;
|
||||||
|
|
||||||
.result-text {
|
.result-text {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@ -151,6 +151,7 @@ const toggleToolCallsExpanded = () => {
|
|||||||
.tool-calls-summary {
|
.tool-calls-summary {
|
||||||
appearance: none;
|
appearance: none;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
max-width: 100%;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
|||||||
@ -116,7 +116,7 @@ const getSatisfactionClass = () => {
|
|||||||
|
|
||||||
.stats-grid {
|
.stats-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
padding: 0 16px;
|
padding: 0 var(--page-padding);
|
||||||
grid-template-columns: repeat(6, 1fr);
|
grid-template-columns: repeat(6, 1fr);
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
|
|
||||||
|
|||||||
@ -159,7 +159,6 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.dashboard-container {
|
.dashboard-container {
|
||||||
// padding: 0 24px 24px 24px;
|
|
||||||
background-color: var(--gray-25);
|
background-color: var(--gray-25);
|
||||||
min-height: calc(100vh - 64px);
|
min-height: calc(100vh - 64px);
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
@ -168,7 +167,7 @@ onUnmounted(() => {
|
|||||||
// Dashboard 特有的网格布局
|
// Dashboard 特有的网格布局
|
||||||
.dashboard-grid {
|
.dashboard-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
padding: 16px;
|
padding: var(--page-padding);
|
||||||
grid-template-columns: 1fr 1fr 1fr;
|
grid-template-columns: 1fr 1fr 1fr;
|
||||||
grid-template-rows: auto auto;
|
grid-template-rows: auto auto;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
|
|||||||
@ -680,14 +680,22 @@ onMounted(() => {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.databases {
|
.databases {
|
||||||
padding: 12px 16px;
|
padding: 12px var(--page-padding);
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.database,
|
.database {
|
||||||
.graphbase {
|
width: 100%;
|
||||||
|
padding: 10px var(--page-padding);
|
||||||
|
border-radius: 8px;
|
||||||
|
height: 144px;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
position: relative; // 为绝对定位的锁定图标提供参考
|
||||||
|
overflow: hidden;
|
||||||
background: linear-gradient(45deg, var(--gray-0) 0%, var(--gray-25) 100%);
|
background: linear-gradient(45deg, var(--gray-0) 0%, var(--gray-25) 100%);
|
||||||
box-shadow: 0px 1px 2px 0px var(--shadow-2);
|
box-shadow: 0px 1px 2px 0px var(--shadow-2);
|
||||||
border: 1px solid var(--gray-50);
|
border: 1px solid var(--gray-50);
|
||||||
@ -698,19 +706,6 @@ onMounted(() => {
|
|||||||
background: linear-gradient(45deg, var(--gray-0) 0%, var(--main-30) 100%);
|
background: linear-gradient(45deg, var(--gray-0) 0%, var(--main-30) 100%);
|
||||||
box-shadow: 0px 1px 5px var(--shadow-3);
|
box-shadow: 0px 1px 5px var(--shadow-3);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.dbcard,
|
|
||||||
.database {
|
|
||||||
width: 100%;
|
|
||||||
padding: 8px 12px;
|
|
||||||
border-radius: 8px;
|
|
||||||
height: 140px;
|
|
||||||
cursor: pointer;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
position: relative; // 为绝对定位的锁定图标提供参考
|
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
.private-lock-icon {
|
.private-lock-icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user