codexmate 0.1.38 → 0.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.vi.md +1 -1
- package/README.zh.md +1 -1
- package/cli/doctor-core.js +1 -1
- package/cli.js +93 -79
- package/lib/model-test.js +126 -21
- package/lib/shared-knowledge.js +86 -0
- package/package.json +5 -1
- package/plugins/prompt-templates/overview.mjs +1 -7
- package/web-ui/app.js +3 -2
- package/web-ui/index.html +2 -0
- package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
- package/web-ui/modules/app.methods.navigation.mjs +2 -1
- package/web-ui/modules/i18n/locales/en.mjs +1969 -2018
- package/web-ui/modules/i18n/locales/expand.mjs +18 -0
- package/web-ui/modules/i18n/locales/ja.mjs +1970 -2019
- package/web-ui/modules/i18n/locales/keys.mjs +1969 -0
- package/web-ui/modules/i18n/locales/vi.mjs +1969 -1987
- package/web-ui/modules/i18n/locales/zh-tw.mjs +1969 -2016
- package/web-ui/modules/i18n/locales/zh.mjs +1968 -2016
- package/web-ui/modules/model-test.mjs +114 -26
- package/web-ui/modules/shared-knowledge.mjs +139 -0
- package/web-ui/partials/index/layout-header.html +22 -5
- package/web-ui/partials/index/panel-knowledge.html +68 -0
- package/web-ui/partials/index/panel-plugins.html +12 -27
- package/web-ui/partials/index/plugin-file-sharing.html +1 -1
- package/web-ui/partials/index/routing-model-test.html +29 -9
- package/web-ui/res/reicon-knowledge.LICENSE.txt +20 -0
- package/web-ui/res/reicon-knowledge.svg +18 -0
- package/web-ui/res/web-ui-render.precompiled.js +1 -14783
- package/web-ui/styles/base-theme.css +2 -2
- package/web-ui/styles/navigation-panels.css +11 -18
- package/web-ui/styles/plugins-panel.css +16 -91
- package/web-ui/styles/responsive.css +8 -16
- package/web-ui/styles/routing.css +8 -0
- package/web-ui/styles/shared-knowledge.css +227 -0
- package/web-ui/styles/sub-tabs.css +13 -0
- package/web-ui/styles/theme-violet.css +0 -21
- package/web-ui/styles/titles-cards.css +0 -23
- package/web-ui/styles.css +1 -0
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
--color-bg-topbar-clear: rgba(255, 248, 241, 0);
|
|
48
48
|
|
|
49
49
|
/* 字体系统 */
|
|
50
|
-
--font-family-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
51
|
-
--font-family-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
50
|
+
--font-family-body: 'Geist Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
51
|
+
--font-family-display: 'Geist Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
52
52
|
--font-family-mono: 'JetBrainsMono Nerd Font Mono', 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
|
|
53
53
|
--font-family: var(--font-family-body);
|
|
54
54
|
|
|
@@ -39,12 +39,10 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
/* Give the status strip a bit more breathing room under the sticky header. */
|
|
43
42
|
.main-panel-topbar .status-strip {
|
|
44
|
-
margin
|
|
45
|
-
margin-bottom: 8px;
|
|
43
|
+
margin: 0;
|
|
46
44
|
min-height: 36px;
|
|
47
|
-
align-items:
|
|
45
|
+
align-items: flex-start;
|
|
48
46
|
}
|
|
49
47
|
.lang-toggle {
|
|
50
48
|
display: grid;
|
|
@@ -109,7 +107,6 @@
|
|
|
109
107
|
}
|
|
110
108
|
|
|
111
109
|
.provider-fast-switch {
|
|
112
|
-
margin: 0 0 14px;
|
|
113
110
|
padding: 10px 12px;
|
|
114
111
|
border-radius: var(--radius-md);
|
|
115
112
|
border: 1px solid var(--color-border-soft);
|
|
@@ -159,7 +156,7 @@
|
|
|
159
156
|
}
|
|
160
157
|
|
|
161
158
|
.main-panel {
|
|
162
|
-
--panel-top-gap:
|
|
159
|
+
--panel-top-gap: 8px;
|
|
163
160
|
min-width: 0;
|
|
164
161
|
background: transparent;
|
|
165
162
|
border: none;
|
|
@@ -184,9 +181,11 @@
|
|
|
184
181
|
position: sticky;
|
|
185
182
|
top: 0;
|
|
186
183
|
z-index: 12;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
gap: var(--panel-top-gap);
|
|
187
|
+
margin: 0 -16px var(--panel-top-gap);
|
|
188
|
+
padding: 0 16px;
|
|
190
189
|
background: linear-gradient(180deg, var(--color-bg-topbar-strong) 0%, var(--color-bg-topbar-soft) 78%, var(--color-bg-topbar-clear) 100%);
|
|
191
190
|
backdrop-filter: blur(18px) saturate(130%);
|
|
192
191
|
}
|
|
@@ -201,21 +200,15 @@
|
|
|
201
200
|
align-items: center;
|
|
202
201
|
justify-content: space-between;
|
|
203
202
|
gap: 14px;
|
|
204
|
-
margin: 0
|
|
205
|
-
padding: 20px 0
|
|
203
|
+
margin: 0;
|
|
204
|
+
padding: 20px 0 var(--panel-top-gap);
|
|
206
205
|
border-bottom: 1px solid rgba(137, 111, 94, 0.14);
|
|
207
206
|
background: transparent;
|
|
208
207
|
}
|
|
209
208
|
|
|
210
|
-
.panel-header-copy {
|
|
211
|
-
display: flex;
|
|
212
|
-
flex-direction: column;
|
|
213
|
-
gap: 4px;
|
|
214
|
-
max-width: none;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
209
|
.panel-kicker {
|
|
218
210
|
font-size: 10px;
|
|
211
|
+
line-height: 16px;
|
|
219
212
|
letter-spacing: 0.08em;
|
|
220
213
|
text-transform: uppercase;
|
|
221
214
|
color: var(--color-brand-dark);
|
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
.plugins-layout {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
|
|
4
|
-
gap: var(--spacing-sm);
|
|
5
|
-
align-items: start;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.plugins-layout-single {
|
|
9
|
-
grid-template-columns: minmax(0, 1fr);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
1
|
.plugins-sidebar {
|
|
13
|
-
|
|
14
|
-
border-radius: var(--radius-lg);
|
|
15
|
-
background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, rgba(255,248,241,0.72) 100%);
|
|
16
|
-
box-shadow: var(--shadow-subtle);
|
|
17
|
-
padding: var(--spacing-sm);
|
|
2
|
+
display: none;
|
|
18
3
|
min-width: 0;
|
|
19
4
|
}
|
|
20
5
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
@media (max-width: 820px) {
|
|
7
|
+
.plugins-sidebar {
|
|
8
|
+
display: block;
|
|
9
|
+
margin-bottom: var(--spacing-sm);
|
|
10
|
+
}
|
|
25
11
|
}
|
|
26
12
|
|
|
27
13
|
.plugins-panel-note {
|
|
@@ -31,66 +17,6 @@
|
|
|
31
17
|
line-height: 1.5;
|
|
32
18
|
}
|
|
33
19
|
|
|
34
|
-
.plugins-list {
|
|
35
|
-
display: grid;
|
|
36
|
-
gap: 8px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.plugins-item {
|
|
40
|
-
width: 100%;
|
|
41
|
-
text-align: left;
|
|
42
|
-
display: flex;
|
|
43
|
-
justify-content: space-between;
|
|
44
|
-
align-items: center;
|
|
45
|
-
gap: var(--spacing-xs);
|
|
46
|
-
padding: 10px 12px;
|
|
47
|
-
border-radius: var(--radius-sm);
|
|
48
|
-
border: 1px solid transparent;
|
|
49
|
-
background: transparent;
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
position: relative;
|
|
52
|
-
transition: all var(--transition-fast) var(--ease-spring);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.plugins-item:hover {
|
|
56
|
-
background: rgba(255,255,255,0.7);
|
|
57
|
-
transform: translateX(2px);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.plugins-item.active {
|
|
61
|
-
border-color: rgba(208,88,58,0.2);
|
|
62
|
-
background: linear-gradient(to right, rgba(255,243,236,0.96) 0%, rgba(255,255,255,0.86) 100%);
|
|
63
|
-
box-shadow: 0 2px 8px rgba(200,121,99,0.1);
|
|
64
|
-
}
|
|
65
|
-
.plugins-item.active::before {
|
|
66
|
-
content: '';
|
|
67
|
-
position: absolute;
|
|
68
|
-
left: 0;
|
|
69
|
-
top: 8px;
|
|
70
|
-
bottom: 8px;
|
|
71
|
-
width: 3px;
|
|
72
|
-
border-radius: 0 3px 3px 0;
|
|
73
|
-
background: var(--color-brand);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.plugins-item-main {
|
|
77
|
-
min-width: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.plugins-item-title {
|
|
81
|
-
font-size: var(--font-size-body);
|
|
82
|
-
font-weight: var(--font-weight-secondary);
|
|
83
|
-
color: var(--color-text-primary);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.plugins-item-meta {
|
|
87
|
-
margin-top: 3px;
|
|
88
|
-
font-size: var(--font-size-caption);
|
|
89
|
-
color: var(--color-text-tertiary);
|
|
90
|
-
line-height: 1.45;
|
|
91
|
-
overflow-wrap: anywhere;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
20
|
.plugins-main {
|
|
95
21
|
min-width: 0;
|
|
96
22
|
}
|
|
@@ -546,9 +472,6 @@
|
|
|
546
472
|
}
|
|
547
473
|
|
|
548
474
|
@media (max-width: 980px) {
|
|
549
|
-
.plugins-layout {
|
|
550
|
-
grid-template-columns: 1fr;
|
|
551
|
-
}
|
|
552
475
|
.prompt-compose-workspace {
|
|
553
476
|
grid-template-columns: 1fr;
|
|
554
477
|
}
|
|
@@ -564,17 +487,13 @@
|
|
|
564
487
|
}
|
|
565
488
|
|
|
566
489
|
#panel-plugins { container-type: inline-size; }
|
|
567
|
-
#panel-plugins .plugins-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
|
|
568
|
-
#panel-plugins .plugins-sidebar { min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
|
|
569
|
-
#panel-plugins .plugins-sidebar-header { display: none; }
|
|
570
|
-
#panel-plugins .plugins-list { display: flex; }
|
|
571
|
-
#panel-plugins .plugins-item-meta, #panel-plugins .plugins-item > .pill { display: none; }
|
|
572
|
-
#panel-plugins .plugins-item.active::before { display: none; }
|
|
573
490
|
#panel-plugins .plugins-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
|
|
574
491
|
#panel-plugins .plugins-panel-head { align-items: center; gap: 8px 16px; margin-bottom: 12px; }
|
|
492
|
+
/* A screen-reader heading alone must not leave a visual gap before the mode switch. */
|
|
493
|
+
#panel-plugins .plugins-panel-head:has(> .sr-only:only-child) { margin-bottom: 0; }
|
|
575
494
|
#panel-plugins .plugins-panel-title { margin: 0; font-size: var(--font-size-title); line-height: 1.4; letter-spacing: 0; }
|
|
576
495
|
#panel-plugins .plugins-panel-note { line-height: 1.65; overflow-wrap: anywhere; }
|
|
577
|
-
#panel-plugins .prompt-templates-modebar { margin-bottom:
|
|
496
|
+
#panel-plugins .prompt-templates-modebar { display: flex; margin-bottom: var(--spacing-sm); }
|
|
578
497
|
|
|
579
498
|
#panel-plugins .prompt-compose-workspace { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
|
|
580
499
|
#panel-plugins .prompt-compose-main { gap: 24px; align-content: start; }
|
|
@@ -615,7 +534,13 @@
|
|
|
615
534
|
#panel-plugins .prompt-template-item.active .prompt-template-item-title { color: var(--color-text-primary); }
|
|
616
535
|
#panel-plugins .prompt-template-item-main { min-width: 0; overflow-wrap: anywhere; }
|
|
617
536
|
#panel-plugins .prompt-template-item-meta { display: flex; flex-wrap: wrap; gap: 0 4px; margin-top: 4px; }
|
|
618
|
-
#panel-plugins .prompt-template-
|
|
537
|
+
#panel-plugins .prompt-template-origin {
|
|
538
|
+
flex-shrink: 0;
|
|
539
|
+
max-width: 40%;
|
|
540
|
+
color: var(--color-text-secondary);
|
|
541
|
+
font-size: var(--font-size-caption);
|
|
542
|
+
overflow-wrap: anywhere;
|
|
543
|
+
}
|
|
619
544
|
#panel-plugins .prompt-templates-pane-editor { display: grid; align-content: start; gap: 16px; }
|
|
620
545
|
#panel-plugins .prompt-editor-head { margin: 0; padding: 0; border: 0; background: transparent; gap: 8px; }
|
|
621
546
|
#panel-plugins .prompt-editor-name { min-width: min(100%, 208px); font-size: var(--font-size-body); font-weight: 600; }
|
|
@@ -26,7 +26,7 @@ textarea:focus-visible {
|
|
|
26
26
|
|
|
27
27
|
.main-panel-topbar {
|
|
28
28
|
margin: 0 -20px var(--panel-top-gap);
|
|
29
|
-
padding: 0 20px
|
|
29
|
+
padding: 0 20px;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
}
|
|
@@ -49,7 +49,7 @@ textarea:focus-visible {
|
|
|
49
49
|
}
|
|
50
50
|
.main-panel-topbar {
|
|
51
51
|
margin: 0 -16px var(--panel-top-gap);
|
|
52
|
-
padding: 0 16px
|
|
52
|
+
padding: 0 16px;
|
|
53
53
|
}
|
|
54
54
|
.top-tabs {
|
|
55
55
|
display: none !important;
|
|
@@ -154,7 +154,7 @@ textarea:focus-visible {
|
|
|
154
154
|
top: 0;
|
|
155
155
|
z-index: 20;
|
|
156
156
|
margin: 0 0 var(--panel-top-gap);
|
|
157
|
-
padding: 0
|
|
157
|
+
padding: 0;
|
|
158
158
|
background: rgba(255, 248, 241, 0.96);
|
|
159
159
|
backdrop-filter: blur(14px) saturate(130%);
|
|
160
160
|
}
|
|
@@ -162,11 +162,7 @@ textarea:focus-visible {
|
|
|
162
162
|
.panel-header-refined {
|
|
163
163
|
margin-left: 0;
|
|
164
164
|
margin-right: 0;
|
|
165
|
-
padding: 14px
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.main-title {
|
|
169
|
-
font-size: 18px;
|
|
165
|
+
padding-top: 14px;
|
|
170
166
|
}
|
|
171
167
|
|
|
172
168
|
.subtitle {
|
|
@@ -175,10 +171,6 @@ textarea:focus-visible {
|
|
|
175
171
|
line-height: 1.4;
|
|
176
172
|
}
|
|
177
173
|
|
|
178
|
-
.panel-kicker {
|
|
179
|
-
display: none;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
174
|
.top-tabs {
|
|
183
175
|
margin: 8px 0 10px;
|
|
184
176
|
gap: 5px;
|
|
@@ -260,7 +252,6 @@ textarea:focus-visible {
|
|
|
260
252
|
gap: 8px;
|
|
261
253
|
overflow-x: auto;
|
|
262
254
|
overflow-y: hidden;
|
|
263
|
-
padding-bottom: 2px;
|
|
264
255
|
scrollbar-width: none;
|
|
265
256
|
-webkit-overflow-scrolling: touch;
|
|
266
257
|
}
|
|
@@ -691,8 +682,9 @@ textarea:focus-visible {
|
|
|
691
682
|
overflow: hidden;
|
|
692
683
|
}
|
|
693
684
|
|
|
694
|
-
.app-shell
|
|
695
|
-
|
|
685
|
+
.app-shell,
|
|
686
|
+
.app-shell.sidebar-collapsed {
|
|
687
|
+
grid-template-columns: minmax(0, 1fr);
|
|
696
688
|
flex: 1 1 auto;
|
|
697
689
|
min-height: 0;
|
|
698
690
|
height: auto;
|
|
@@ -740,7 +732,7 @@ textarea:focus-visible {
|
|
|
740
732
|
top: 0;
|
|
741
733
|
z-index: 20;
|
|
742
734
|
margin: 0 0 var(--panel-top-gap);
|
|
743
|
-
padding: 0
|
|
735
|
+
padding: 0;
|
|
744
736
|
background: rgba(255, 248, 241, 0.96);
|
|
745
737
|
backdrop-filter: blur(14px) saturate(130%);
|
|
746
738
|
}
|
|
@@ -63,6 +63,14 @@
|
|
|
63
63
|
#panel-routing .routing-test-result-head { color: var(--color-text-primary); overflow-wrap: anywhere; }
|
|
64
64
|
#panel-routing .routing-test-question { margin: 16px 0 24px; color: var(--color-text-tertiary); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
65
65
|
#panel-routing .routing-test-answer { max-width: 72ch; color: var(--color-text-primary); line-height: var(--line-height-normal); overflow-wrap: anywhere; }
|
|
66
|
+
#panel-routing .routing-batch-result summary {
|
|
67
|
+
min-height: 44px;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
padding-block: 12px;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
overflow-wrap: anywhere;
|
|
72
|
+
}
|
|
73
|
+
#panel-routing .routing-batch-result summary:focus-visible { outline: 2px solid var(--color-brand); }
|
|
66
74
|
#panel-routing .routing-test-plain { white-space: pre-wrap; }
|
|
67
75
|
#panel-routing .routing-test-answer :is(h1, h2, h3, h4) { font-size: var(--font-size-body); margin: 24px 0 8px; }
|
|
68
76
|
#panel-routing .routing-test-answer :is(p, ul, ol) { margin: 12px 0; }
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
#panel-knowledge {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: minmax(248px, 320px) minmax(0, 640px);
|
|
4
|
+
align-items: start;
|
|
5
|
+
gap: 48px;
|
|
6
|
+
padding-bottom: 40px;
|
|
7
|
+
font: 400 16px/24px var(--font-family-body);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
#panel-knowledge :is(.knowledge-browser, .knowledge-detail, .knowledge-toolbar, .knowledge-search, .knowledge-editor, .knowledge-entry) {
|
|
11
|
+
min-width: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.knowledge-toolbar, .knowledge-search, .knowledge-new-actions {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: 4px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.knowledge-toolbar {
|
|
21
|
+
gap: 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.knowledge-search {
|
|
25
|
+
flex: 1;
|
|
26
|
+
border-radius: 12px;
|
|
27
|
+
background: var(--color-surface-alt);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#panel-knowledge :is(input, textarea, button) {
|
|
31
|
+
border: 0;
|
|
32
|
+
margin: 0;
|
|
33
|
+
font: inherit;
|
|
34
|
+
color: inherit;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#panel-knowledge :is(input, textarea, button):focus-visible {
|
|
38
|
+
outline: 2px solid var(--color-brand-dark);
|
|
39
|
+
outline-offset: -2px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#knowledge-query {
|
|
43
|
+
appearance: none;
|
|
44
|
+
width: 100%;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
min-height: 44px;
|
|
47
|
+
padding: 8px 0 8px 12px;
|
|
48
|
+
border-radius: 8px;
|
|
49
|
+
background: transparent;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#panel-knowledge .knowledge-action {
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
min-width: 44px;
|
|
57
|
+
min-height: 44px;
|
|
58
|
+
padding: 8px 12px;
|
|
59
|
+
border-radius: 12px;
|
|
60
|
+
background: transparent;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
transition: background-color 160ms ease, opacity 160ms ease;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
#panel-knowledge :is(.knowledge-search-action, .knowledge-new-actions > .knowledge-action) {
|
|
66
|
+
padding: 8px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#panel-knowledge :is(.knowledge-action:disabled, .knowledge-upload--disabled) {
|
|
70
|
+
opacity: .5;
|
|
71
|
+
cursor: default;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#panel-knowledge .knowledge-action:not(:disabled, .knowledge-upload--disabled):active,
|
|
75
|
+
#panel-knowledge .knowledge-entry[aria-current='true'] {
|
|
76
|
+
background: var(--color-surface-alt);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.knowledge-upload {
|
|
80
|
+
position: relative;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
#knowledge-file {
|
|
84
|
+
position: absolute;
|
|
85
|
+
inset: 0;
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
opacity: 0;
|
|
89
|
+
cursor: inherit;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.knowledge-upload:focus-within {
|
|
93
|
+
outline: 2px solid var(--color-brand-dark);
|
|
94
|
+
outline-offset: -2px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
#side-tab-knowledge .knowledge-icon {
|
|
98
|
+
width: 24px;
|
|
99
|
+
height: 24px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (hover: hover) and (pointer: fine) {
|
|
103
|
+
#panel-knowledge .knowledge-action:not(:disabled, .knowledge-upload--disabled):hover {
|
|
104
|
+
background: var(--color-surface-alt);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
#panel-knowledge .knowledge-search:not(:hover, :focus-within) .knowledge-search-action,
|
|
108
|
+
#panel-knowledge .knowledge-entry:not(:hover, :focus-visible) .knowledge-entry-indicator {
|
|
109
|
+
opacity: 0;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.knowledge-icon {
|
|
114
|
+
display: inline-grid;
|
|
115
|
+
place-items: center;
|
|
116
|
+
width: 24px;
|
|
117
|
+
height: 24px;
|
|
118
|
+
flex: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.knowledge-entry-indicator {
|
|
122
|
+
transition: opacity 160ms ease;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.knowledge-icon > svg {
|
|
126
|
+
display: block;
|
|
127
|
+
width: 18px;
|
|
128
|
+
height: 18px;
|
|
129
|
+
fill: currentColor;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.knowledge-entries {
|
|
133
|
+
display: grid;
|
|
134
|
+
gap: 4px;
|
|
135
|
+
margin: 16px 0 0;
|
|
136
|
+
padding: 0;
|
|
137
|
+
list-style: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
#panel-knowledge .knowledge-entry {
|
|
141
|
+
width: 100%;
|
|
142
|
+
justify-content: space-between;
|
|
143
|
+
text-align: start;
|
|
144
|
+
gap: 12px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.knowledge-entry > span:first-child {
|
|
148
|
+
min-width: 0;
|
|
149
|
+
overflow-wrap: anywhere;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.knowledge-detail, .knowledge-editor, .knowledge-compare {
|
|
153
|
+
display: grid;
|
|
154
|
+
gap: 16px;
|
|
155
|
+
justify-items: start;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.knowledge-compare {
|
|
159
|
+
width: 100%;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.knowledge-editor, #panel-knowledge textarea, #knowledge-title {
|
|
163
|
+
width: 100%;
|
|
164
|
+
min-width: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
#panel-knowledge #knowledge-title {
|
|
168
|
+
min-height: 44px;
|
|
169
|
+
padding: 8px 12px;
|
|
170
|
+
border-radius: 8px;
|
|
171
|
+
background: transparent;
|
|
172
|
+
font-size: 18px;
|
|
173
|
+
font-weight: 600;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
#panel-knowledge textarea {
|
|
177
|
+
display: block;
|
|
178
|
+
min-height: 144px;
|
|
179
|
+
padding: 16px;
|
|
180
|
+
border-radius: 16px;
|
|
181
|
+
background: var(--color-surface-alt);
|
|
182
|
+
resize: vertical;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
#panel-knowledge :is(.knowledge-message, .knowledge-compare label) {
|
|
186
|
+
font-size: 14px;
|
|
187
|
+
line-height: 20px;
|
|
188
|
+
color: var(--color-text-secondary);
|
|
189
|
+
overflow-wrap: anywhere;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.knowledge-message {
|
|
193
|
+
margin: 16px 0 0;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.knowledge-detail .knowledge-message {
|
|
197
|
+
margin: 0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
#panel-knowledge [role='alert'] {
|
|
201
|
+
color: var(--color-danger, var(--color-text-primary));
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
#panel-knowledge #knowledge-save {
|
|
205
|
+
padding-inline: 24px;
|
|
206
|
+
color: var(--color-surface);
|
|
207
|
+
background: var(--color-text-primary);
|
|
208
|
+
font-weight: 500;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
#panel-knowledge #knowledge-save:not(:disabled):hover {
|
|
212
|
+
background: var(--color-text-secondary);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@media (max-width: 820px) {
|
|
216
|
+
#panel-knowledge {
|
|
217
|
+
grid-template-columns: minmax(0, 1fr);
|
|
218
|
+
gap: 32px;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@media (prefers-reduced-motion: reduce) {
|
|
223
|
+
#panel-knowledge, #panel-knowledge :is(.knowledge-action, .knowledge-entry-indicator) {
|
|
224
|
+
animation: none;
|
|
225
|
+
transition: none;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
@@ -179,3 +179,16 @@
|
|
|
179
179
|
--sub-tab-transition: none;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
|
|
183
|
+
@media (max-width: 820px) {
|
|
184
|
+
#panel-plugins .plugins-sidebar .plugins-list {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-wrap: wrap;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
#panel-plugins .plugins-sidebar .plugins-item {
|
|
190
|
+
max-width: 100%;
|
|
191
|
+
white-space: normal;
|
|
192
|
+
overflow-wrap: anywhere;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -302,12 +302,6 @@
|
|
|
302
302
|
[data-theme="violet"] .mode-content {
|
|
303
303
|
box-shadow:none;
|
|
304
304
|
}
|
|
305
|
-
[data-theme="violet"] .main-title {
|
|
306
|
-
-webkit-text-fill-color:var(--color-text-primary);
|
|
307
|
-
}
|
|
308
|
-
[data-theme="violet"] .main-title .accent {
|
|
309
|
-
-webkit-text-fill-color:var(--color-text-primary);
|
|
310
|
-
}
|
|
311
305
|
[data-theme="violet"] .segmented-control {
|
|
312
306
|
background-color:color-mix(in oklch, var(--color-surface) 48%, transparent);
|
|
313
307
|
box-shadow:none;
|
|
@@ -1410,18 +1404,6 @@
|
|
|
1410
1404
|
[data-theme="violet"] .btn-link:hover:not(:disabled) {
|
|
1411
1405
|
background-color:color-mix(in oklch, var(--color-brand-dark) 10%, transparent);
|
|
1412
1406
|
}
|
|
1413
|
-
[data-theme="violet"] .plugins-sidebar {
|
|
1414
|
-
background-image:none; background-color:color-mix(in oklch, var(--color-surface) 92%, transparent);
|
|
1415
|
-
box-shadow:none;
|
|
1416
|
-
}
|
|
1417
|
-
[data-theme="violet"] .plugins-item:hover {
|
|
1418
|
-
background-color:color-mix(in oklch, var(--color-surface) 70%, transparent);
|
|
1419
|
-
}
|
|
1420
|
-
[data-theme="violet"] .plugins-item.active {
|
|
1421
|
-
border-color:color-mix(in oklch, var(--color-brand-dark) 20%, transparent);
|
|
1422
|
-
background-image:none; background-color:color-mix(in oklch, var(--color-surface) 96%, transparent);
|
|
1423
|
-
box-shadow:none;
|
|
1424
|
-
}
|
|
1425
1407
|
[data-theme="violet"] .plugins-panel {
|
|
1426
1408
|
background-image:none; background-color:color-mix(in oklch, var(--color-surface) 95%, transparent);
|
|
1427
1409
|
box-shadow:none;
|
|
@@ -1486,9 +1468,6 @@
|
|
|
1486
1468
|
[data-theme="violet"] .prompt-var-input.is-missing {
|
|
1487
1469
|
box-shadow:none;
|
|
1488
1470
|
}
|
|
1489
|
-
[data-theme="violet"] #panel-plugins .plugins-sidebar {
|
|
1490
|
-
box-shadow:none;
|
|
1491
|
-
}
|
|
1492
1471
|
[data-theme="violet"] #panel-plugins .plugins-panel {
|
|
1493
1472
|
box-shadow:none;
|
|
1494
1473
|
}
|
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
/* ============================================
|
|
2
|
-
主标题
|
|
3
|
-
============================================ */
|
|
4
|
-
.main-title {
|
|
5
|
-
font-size: clamp(18px, 1.3vw, 22px);
|
|
6
|
-
font-weight: 700;
|
|
7
|
-
line-height: 1.15;
|
|
8
|
-
letter-spacing: -0.02em;
|
|
9
|
-
margin-bottom: 0;
|
|
10
|
-
color: var(--color-text-primary);
|
|
11
|
-
font-family: var(--font-family-display);
|
|
12
|
-
background: none;
|
|
13
|
-
-webkit-background-clip: border-box;
|
|
14
|
-
-webkit-text-fill-color: currentColor;
|
|
15
|
-
background-clip: border-box;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.main-title .accent {
|
|
19
|
-
color: var(--color-brand);
|
|
20
|
-
-webkit-text-fill-color: var(--color-brand);
|
|
21
|
-
position: relative;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
1
|
.subtitle {
|
|
25
2
|
font-size: 13px;
|
|
26
3
|
color: var(--color-text-secondary);
|