MCPcopy Create free account
hub / github.com/experdot/pointer / Settings

Function Settings

src/renderer/src/components/settings/Settings.tsx:18–141  ·  view source on GitHub ↗
({
  open,
  onClose,
  defaultActiveTab = 'appearance'
}: SettingsProps)

Source from the content-addressed store, hash-verified

16}
17
18export default function Settings({
19 open,
20 onClose,
21 defaultActiveTab = 'appearance'
22}: SettingsProps) {
23 const { settings } = useSettingsStore()
24 const [form] = Form.useForm()
25
26 const tabItems = [
27 {
28 key: 'appearance',
29 label: '外观',
30 children: <AppearanceSettings form={form} />
31 },
32 {
33 key: 'llm',
34 label: 'LLM配置',
35 children: <LLMSettings />
36 },
37 {
38 key: 'model-config',
39 label: '模型配置',
40 children: <ModelConfigSettings />
41 },
42 {
43 key: 'prompt-lists',
44 label: '提示词列表',
45 children: <PromptListSettings />
46 },
47 {
48 key: 'data',
49 label: '数据管理',
50 children: <DataManagement />
51 },
52 {
53 key: 'update',
54 label: '应用更新',
55 children: <UpdateSettings />
56 },
57 {
58 key: 'debug',
59 label: '持久化状态',
60 children: <SettingsDemo />
61 }
62 ]
63
64 if (!open) return null
65
66 return (
67 <div
68 className="settings-embedded"
69 style={{
70 height: '100%',
71 overflow: 'hidden',
72 display: 'flex',
73 flexDirection: 'column'
74 }}
75 >

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected