-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathannotation-setting.yaml
More file actions
123 lines (112 loc) · 2.96 KB
/
Copy pathannotation-setting.yaml
File metadata and controls
123 lines (112 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# 装备卡片主题注解配置
# Equipment Card Annotations
# 装备分组图标配置
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
name: theme-sky-weather-equipment-group-icon
spec:
targetRef:
group: equipment.kunkunyu.com
kind: EquipmentGroup
formSchema:
- $formkit: "iconify"
name: "icon"
label: "分组图标"
format: "svg"
value-only: true
help: "选择装备分组的图标"
---
# 装备卡片样式配置 (战术终端版)
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
name: theme-sky-weather-equipment-cardstyle
spec:
targetRef:
group: equipment.kunkunyu.com
kind: Equipment
formSchema:
# 卡片风格选择
- $formkit: "select"
id: cardStyle
name: "cardStyle"
label: "卡片风格"
help: "选择装备卡片的视觉风格"
options:
- label: "白银"
value: "silver"
- label: "黄金"
value: "gold"
- label: "炫彩"
value: "rainbow"
- label: "自定义颜色"
value: "custom"
- label: "主题色"
value: "theme"
value: "gold"
# 自定义颜色 (仅 custom 模式生效)
- $formkit: "color"
if: "$get(cardStyle).value === 'custom'"
name: "customColor"
label: "自定义颜色"
help: "选择一个自定义的强调色"
value: "#8b5cf6"
# 规格参数 (多行文本,支持进度条)
- $formkit: "textarea"
name: "specs"
label: "规格参数"
help: "每行一个参数。基础格式: KEY: VALUE。带进度条: KEY: VALUE | 百分比(0-100),仅限4条数据"
placeholder: "核心架构: Blackwell | 100\n显存容量: 32GB GDDR7 | 80\n热设计功耗: 450W | 65\n发布日期: 2025 Q1"
rows: 4
---
# 菜单图标配置
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
name: theme-sky-weather-menuitem-icon
spec:
targetRef:
group: ""
kind: MenuItem
formSchema:
- $formkit: "iconify"
name: "icon"
label: "菜单图标"
help: "填入完整的 SVG 代码,将显示在导航菜单和悬浮控制栏中"
format: svg
value-only: true
---
# 分类图标配置
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
name: theme-sky-weather-category-icon
spec:
targetRef:
group: content.halo.run
kind: Category
formSchema:
- $formkit: "iconify"
name: "icon"
label: "分类图标"
help: "选择一个图标代表此分类"
format: svg
value-only: true
---
# 标签图标配置
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
name: theme-sky-weather-tag-icon
spec:
targetRef:
group: content.halo.run
kind: Tag
formSchema:
- $formkit: "iconify"
name: "icon"
label: "标签图标"
help: "选择一个图标代表此标签"
format: svg
value-only: true