log:简化启动时log
This commit is contained in:
@@ -130,7 +130,7 @@ export function Layout({ children }: LayoutProps) {
|
||||
key="settings-sidebar"
|
||||
className="relative z-40 hidden shrink-0 lg:block"
|
||||
initial={{ width: 0, opacity: 0 }}
|
||||
animate={{ width: sidebarOpen ? 224 : 64, opacity: 1 }}
|
||||
animate={{ width: sidebarOpen ? 208 : 64, opacity: 1 }}
|
||||
exit={{ width: 0, opacity: 0 }}
|
||||
transition={{
|
||||
type: 'spring',
|
||||
|
||||
@@ -32,8 +32,8 @@ export function Sidebar({
|
||||
'fixed inset-y-0 left-0 z-50 isolate flex flex-col border-r transition-all duration-300 lg:relative lg:z-0 lg:h-full',
|
||||
inheritsPageBackground ? 'bg-transparent' : 'bg-card',
|
||||
// 移动端始终显示完整宽度,桌面端根据 sidebarOpen 切换
|
||||
'w-56 lg:w-auto',
|
||||
sidebarOpen ? 'lg:w-56' : 'lg:w-16',
|
||||
'w-52 lg:w-auto',
|
||||
sidebarOpen ? 'lg:w-52' : 'lg:w-16',
|
||||
mobileMenuOpen ? 'translate-x-0' : '-translate-x-full lg:translate-x-0'
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -183,7 +183,7 @@
|
||||
--layout-space-lg: 1.5rem;
|
||||
--layout-space-xl: 2rem;
|
||||
--layout-space-2xl: 3rem;
|
||||
--layout-sidebar-width: 14rem;
|
||||
--layout-sidebar-width: 13rem;
|
||||
--layout-header-height: 3.5rem;
|
||||
--layout-max-content-width: 1280px;
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ export const defaultLightTokens: ThemeTokens = {
|
||||
'space-lg': '1.5rem',
|
||||
'space-xl': '2rem',
|
||||
'space-2xl': '3rem',
|
||||
'sidebar-width': '16rem',
|
||||
'sidebar-width': '13rem',
|
||||
'header-height': '3.5rem',
|
||||
'max-content-width': '1280px',
|
||||
},
|
||||
@@ -320,7 +320,7 @@ export const defaultDarkTokens: ThemeTokens = {
|
||||
'space-lg': '1.5rem',
|
||||
'space-xl': '2rem',
|
||||
'space-2xl': '3rem',
|
||||
'sidebar-width': '16rem',
|
||||
'sidebar-width': '13rem',
|
||||
'header-height': '3.5rem',
|
||||
'max-content-width': '1280px',
|
||||
},
|
||||
|
||||
@@ -113,22 +113,6 @@ export const FeaturesSection = React.memo(function FeaturesSection({
|
||||
记忆检索过程中是否启用黑话识别
|
||||
</p>
|
||||
|
||||
<div className="flex items-center space-x-2">
|
||||
<Switch
|
||||
id="global_memory"
|
||||
checked={memoryConfig.global_memory ?? false}
|
||||
onCheckedChange={(checked) =>
|
||||
onMemoryChange({ ...memoryConfig, global_memory: checked })
|
||||
}
|
||||
/>
|
||||
<Label htmlFor="global_memory" className="cursor-pointer">
|
||||
全局记忆查询
|
||||
</Label>
|
||||
</div>
|
||||
<p className="text-xs text-muted-foreground -mt-2">
|
||||
允许记忆检索在所有聊天记录中进行全局查询(忽略当前聊天流)
|
||||
</p>
|
||||
|
||||
{/* 聊天历史总结配置 */}
|
||||
<div className="border-t pt-4 mt-4">
|
||||
<h4 className="text-sm font-semibold mb-3">聊天历史总结配置</h4>
|
||||
|
||||
@@ -84,7 +84,6 @@ export interface MemoryConfig {
|
||||
max_agent_iterations: number
|
||||
agent_timeout_seconds: number
|
||||
enable_jargon_detection: boolean
|
||||
global_memory: boolean
|
||||
chat_history_topic_check_message_threshold: number
|
||||
chat_history_topic_check_time_hours: number
|
||||
chat_history_topic_check_min_messages: number
|
||||
|
||||
@@ -605,12 +605,12 @@ export function AppearanceTab() {
|
||||
<div className="flex justify-between">
|
||||
<Label>{t('settings.appearance.sidebarWidthLabel')}</Label>
|
||||
<span className="text-sm text-muted-foreground">
|
||||
{getTokenValue(themeConfig.tokenOverrides, 'layout', 'sidebar-width', '16rem')}
|
||||
{getTokenValue(themeConfig.tokenOverrides, 'layout', 'sidebar-width', '13rem')}
|
||||
</span>
|
||||
</div>
|
||||
<Slider
|
||||
defaultValue={[16]}
|
||||
value={[parseFloat(getTokenValue(themeConfig.tokenOverrides, 'layout', 'sidebar-width', '16'))]}
|
||||
value={[parseFloat(getTokenValue(themeConfig.tokenOverrides, 'layout', 'sidebar-width', '13'))]}
|
||||
min={12}
|
||||
max={24}
|
||||
step={0.5}
|
||||
|
||||
Reference in New Issue
Block a user