nx-kv 0.61.0 → 0.62.0
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/CHANGELOG.md +40 -0
- package/package.json +1 -1
- package/src/web/frontend/page/repos/block-tabs.tsx +68 -0
- package/src/web/frontend/page/repos/branch-picker.tsx +138 -0
- package/src/web/frontend/page/repos/doc-block.tsx +244 -0
- package/src/web/frontend/page/repos/icons.tsx +198 -0
- package/src/web/frontend/page/repos/index.tsx +250 -258
- package/src/web/frontend/page/repos/ref-block.tsx +166 -0
- package/src/web/frontend/page/repos/repo-table.tsx +60 -52
- package/src/web/frontend/page/repos/use-repos-derive.ts +234 -0
- package/src/web/frontend/page/settings/prompt-editor.tsx +279 -0
- package/src/web/frontend/page/settings/prompt-rail.tsx +170 -0
- package/src/web/frontend/page/settings/prompt-templates-section.tsx +172 -336
- package/src/web/frontend/page/settings/style.css +166 -73
- package/src/web/frontend/style.css +1 -0
- package/src/web/frontend/styles/repos-branch.css +443 -0
- package/src/web/frontend/styles/repos.css +0 -1
- package/src/web/public/assets/{composer-panel-AXUbIJgb.js → composer-panel-Dou1Xwih.js} +1 -1
- package/src/web/public/assets/{dir-TgJu4iE_.js → dir-Bfn4tG10.js} +1 -1
- package/src/web/public/assets/doc-Nk0fieHx.js +6 -0
- package/src/web/public/assets/{group-CqtNx-o9.js → group-DT_vHiWd.js} +1 -1
- package/src/web/public/assets/index-IzwqMhg-.css +1 -0
- package/src/web/public/assets/{index-BdJwacQ0.js → index-RX7knClE.js} +2 -2
- package/src/web/public/assets/refs-FIEXTEYm.js +2 -0
- package/src/web/public/assets/{repo-form-modal-CF9-xxFD.js → repo-form-modal-CZRdlCn6.js} +1 -1
- package/src/web/public/assets/repos-BCdFev-O.js +16 -0
- package/src/web/public/assets/settings-AwzLRYUu.css +1 -0
- package/src/web/public/assets/settings-Z0Y4UhKP.js +1 -0
- package/src/web/public/assets/{task-h2ezBIz9.js → task-Bk7h0vlJ.js} +1 -1
- package/src/web/public/assets/{templates-D7eg9iE4.js → templates-DxBtkzVI.js} +1 -1
- package/src/web/public/index.html +4 -4
- package/src/web/frontend/page/repos/board-refs.tsx +0 -104
- package/src/web/frontend/page/repos/doc-search-modal.tsx +0 -273
- package/src/web/frontend/page/repos/filters-bar.tsx +0 -54
- package/src/web/frontend/page/settings/prompt-order-card.tsx +0 -113
- package/src/web/public/assets/doc-utk54z7G.js +0 -6
- package/src/web/public/assets/index-BJstNMuV.css +0 -1
- package/src/web/public/assets/refs-CIpytW-v.js +0 -2
- package/src/web/public/assets/repos-C8boX9eg.js +0 -11
- package/src/web/public/assets/settings-BB1PvwRD.css +0 -1
- package/src/web/public/assets/settings-Dzpmh-Ol.js +0 -1
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
// 仓库管理页的图标集(#143):一律内联 SVG,不引图标库。
|
|
2
|
+
//
|
|
3
|
+
// 口径:24×24 viewBox、`stroke="currentColor"`、线宽 1.6、圆角端点——
|
|
4
|
+
// 这样颜色跟着文字走(主题切换不用改 SVG),尺寸靠 CSS 的 width/height 控制。
|
|
5
|
+
// 图标只表达「这是哪一类东西」,不做装饰:分支 ⑂ / 仓库 ◈ / 参考仓库 ⑃ / 文档 ▤。
|
|
6
|
+
import type { SVGProps } from 'react';
|
|
7
|
+
|
|
8
|
+
type IconProps = SVGProps<SVGSVGElement> & { size?: number };
|
|
9
|
+
|
|
10
|
+
function Svg({ size = 15, children, ...rest }: IconProps) {
|
|
11
|
+
return (
|
|
12
|
+
<svg
|
|
13
|
+
width={size}
|
|
14
|
+
height={size}
|
|
15
|
+
viewBox="0 0 24 24"
|
|
16
|
+
fill="none"
|
|
17
|
+
stroke="currentColor"
|
|
18
|
+
strokeWidth={1.6}
|
|
19
|
+
strokeLinecap="round"
|
|
20
|
+
strokeLinejoin="round"
|
|
21
|
+
aria-hidden="true"
|
|
22
|
+
focusable="false"
|
|
23
|
+
{...rest}
|
|
24
|
+
>
|
|
25
|
+
{children}
|
|
26
|
+
</svg>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** 分支(组):一条主干 + 一条分出又并回的分支。 */
|
|
31
|
+
export function IconBranch(p: IconProps) {
|
|
32
|
+
return (
|
|
33
|
+
<Svg {...p}>
|
|
34
|
+
<circle cx="6" cy="5" r="2.2" />
|
|
35
|
+
<circle cx="6" cy="19" r="2.2" />
|
|
36
|
+
<circle cx="18" cy="12" r="2.2" />
|
|
37
|
+
<path d="M6 7.2v9.6" />
|
|
38
|
+
<path d="M6 12h6.6a2 2 0 0 1 2 2v-4a2 2 0 0 1 2-2" />
|
|
39
|
+
</Svg>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** 仓库(开发仓库):一个盒子。 */
|
|
44
|
+
export function IconRepo(p: IconProps) {
|
|
45
|
+
return (
|
|
46
|
+
<Svg {...p}>
|
|
47
|
+
<path d="M4 8.5 12 4l8 4.5v7L12 20l-8-4.5z" />
|
|
48
|
+
<path d="M4 8.5 12 13l8-4.5" />
|
|
49
|
+
<path d="M12 13v7" />
|
|
50
|
+
</Svg>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** 参考仓库:盒子 + 指向它的箭头(「拿来看的」)。 */
|
|
55
|
+
export function IconRefRepo(p: IconProps) {
|
|
56
|
+
return (
|
|
57
|
+
<Svg {...p}>
|
|
58
|
+
<path d="M3.5 9 10 5.4l6.5 3.6v5.6L10 18.2 3.5 14.6z" />
|
|
59
|
+
<path d="M3.5 9 10 12.8 16.5 9" />
|
|
60
|
+
<path d="M10 12.8v5.4" />
|
|
61
|
+
<path d="M15.5 17.5h5" />
|
|
62
|
+
<path d="M18.4 15.4 20.5 17.5l-2.1 2.1" />
|
|
63
|
+
</Svg>
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** 文档:一张带折角的纸。 */
|
|
68
|
+
export function IconDoc(p: IconProps) {
|
|
69
|
+
return (
|
|
70
|
+
<Svg {...p}>
|
|
71
|
+
<path d="M6 3.5h7.2L18 8.3V20.5H6z" />
|
|
72
|
+
<path d="M13 3.5v5h5" />
|
|
73
|
+
<path d="M8.8 12.6h6.4M8.8 16.2h4.4" />
|
|
74
|
+
</Svg>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** 文档集(多篇):一叠纸。 */
|
|
79
|
+
export function IconDocs(p: IconProps) {
|
|
80
|
+
return (
|
|
81
|
+
<Svg {...p}>
|
|
82
|
+
<path d="M8 6.5h9.5V21H8z" />
|
|
83
|
+
<path d="M5.5 17.5V3.5h9" />
|
|
84
|
+
<path d="M10.6 11h4.3M10.6 14.6h3" />
|
|
85
|
+
</Svg>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** 搜索。 */
|
|
90
|
+
export function IconSearch(p: IconProps) {
|
|
91
|
+
return (
|
|
92
|
+
<Svg {...p}>
|
|
93
|
+
<circle cx="10.8" cy="10.8" r="6" />
|
|
94
|
+
<path d="m15.3 15.3 4.2 4.2" />
|
|
95
|
+
</Svg>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** 加号。 */
|
|
100
|
+
export function IconPlus(p: IconProps) {
|
|
101
|
+
return (
|
|
102
|
+
<Svg {...p}>
|
|
103
|
+
<path d="M12 5.5v13M5.5 12h13" />
|
|
104
|
+
</Svg>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** 同步(环形箭头)。 */
|
|
109
|
+
export function IconSync(p: IconProps) {
|
|
110
|
+
return (
|
|
111
|
+
<Svg {...p}>
|
|
112
|
+
<path d="M19.5 12a7.5 7.5 0 1 1-2.6-5.7" />
|
|
113
|
+
<path d="M19.8 4.4v4.4h-4.4" />
|
|
114
|
+
</Svg>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** 在外部打开(文件管理器 / 文档页)。 */
|
|
119
|
+
export function IconOpen(p: IconProps) {
|
|
120
|
+
return (
|
|
121
|
+
<Svg {...p}>
|
|
122
|
+
<path d="M13.5 4.5H20v6.5" />
|
|
123
|
+
<path d="M20 4.5 11.5 13" />
|
|
124
|
+
<path d="M17 14.5V20H4V7h5.5" />
|
|
125
|
+
</Svg>
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** 展开 / 收起(下拉箭头)。 */
|
|
130
|
+
export function IconChevron(p: IconProps) {
|
|
131
|
+
return (
|
|
132
|
+
<Svg {...p}>
|
|
133
|
+
<path d="m7 10 5 5 5-5" />
|
|
134
|
+
</Svg>
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** 勾选(当前分支)。 */
|
|
139
|
+
export function IconCheck(p: IconProps) {
|
|
140
|
+
return (
|
|
141
|
+
<Svg {...p}>
|
|
142
|
+
<path d="m5 12.5 4.6 4.5L19 7" />
|
|
143
|
+
</Svg>
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** 关闭。 */
|
|
148
|
+
export function IconX(p: IconProps) {
|
|
149
|
+
return (
|
|
150
|
+
<Svg {...p}>
|
|
151
|
+
<path d="M6.5 6.5l11 11M17.5 6.5l-11 11" />
|
|
152
|
+
</Svg>
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** 成员(人)。 */
|
|
157
|
+
export function IconUsers(p: IconProps) {
|
|
158
|
+
return (
|
|
159
|
+
<Svg {...p}>
|
|
160
|
+
<circle cx="9.5" cy="8.5" r="3.2" />
|
|
161
|
+
<path d="M3.6 19.6c.6-3 3-4.6 5.9-4.6s5.3 1.6 5.9 4.6" />
|
|
162
|
+
<path d="M16 5.6a3 3 0 0 1 0 5.9" />
|
|
163
|
+
<path d="M17.4 15.3c2 .5 3.3 2 3.7 4.3" />
|
|
164
|
+
</Svg>
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** 文件夹。 */
|
|
169
|
+
export function IconFolder(p: IconProps) {
|
|
170
|
+
return (
|
|
171
|
+
<Svg {...p}>
|
|
172
|
+
<path d="M3.5 6.5h5l1.8 2.2h10.2V19H3.5z" />
|
|
173
|
+
</Svg>
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** 摘除 / 删除(减号放在盒子里:语义是「只摘绑定」)。 */
|
|
178
|
+
export function IconUnlink(p: IconProps) {
|
|
179
|
+
return (
|
|
180
|
+
<Svg {...p}>
|
|
181
|
+
<path d="M9.5 14.5 8 16a3.5 3.5 0 0 1-5-5l2.2-2.2" />
|
|
182
|
+
<path d="M14.5 9.5 16 8a3.5 3.5 0 0 1 5 5l-2.2 2.2" />
|
|
183
|
+
<path d="M9.8 14.2 14.2 9.8" />
|
|
184
|
+
</Svg>
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/** 概览(main 分支):网格。 */
|
|
189
|
+
export function IconGrid(p: IconProps) {
|
|
190
|
+
return (
|
|
191
|
+
<Svg {...p}>
|
|
192
|
+
<rect x="3.6" y="3.6" width="7" height="7" rx="1.4" />
|
|
193
|
+
<rect x="13.4" y="3.6" width="7" height="7" rx="1.4" />
|
|
194
|
+
<rect x="3.6" y="13.4" width="7" height="7" rx="1.4" />
|
|
195
|
+
<rect x="13.4" y="13.4" width="7" height="7" rx="1.4" />
|
|
196
|
+
</Svg>
|
|
197
|
+
);
|
|
198
|
+
}
|