generated from halo-dev/theme-modern-starter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
annotation-setting.yaml
140 lines (131 loc) · 2.86 KB
/
annotation-setting.yaml
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
generateName: annotation-setting-
spec:
targetRef:
group: content.halo.run
kind: Post
formSchema:
- $formkit: "radio"
name: "resource"
label: "显示文章资源"
value: "false"
options:
- label: "是"
value: "true"
- label: "否"
value: "false"
- $formkit: "text"
name: "resource_download"
label: "文章资源:下载地址"
- $formkit: "text"
name: "resource_name"
label: "文章资源:资源名称"
- $formkit: "text"
name: "resource_method"
label: "文章资源:下载渠道"
- $formkit: "text"
name: "resource_version"
label: "文章资源:版本"
---
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
generateName: annotation-setting-
spec:
targetRef:
group: content.halo.run
kind: Post
formSchema:
- $formkit: "radio"
name: "app"
label: "显示APP信息"
value: "false"
options:
- label: "是"
value: "true"
- label: "否"
value: "false"
- $formkit: "text"
name: "app_name"
label: "APP名称"
- $formkit: "text"
name: "app_version"
label: "APP版本"
- $formkit: attachment
name: app_icon
label: APP图标
value: ""
---
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
generateName: annotation-setting-
spec:
targetRef:
group: content.halo.run
kind: Post
formSchema:
- $formkit: "radio"
name: "book"
label: "显示书籍信息"
value: "false"
options:
- label: "是"
value: "true"
- label: "否"
value: "false"
- $formkit: "text"
name: "book_name"
label: "书籍名称"
- $formkit: "text"
name: "book_author"
label: "书籍作者"
- $formkit: attachment
name: book_cover
label: 书籍封面
accepts:
- "image/png"
- "image/jpg"
- "image/jpge"
value: ""
---
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
generateName: annotation-setting-
spec:
targetRef:
group: content.halo.run
kind: Post
formSchema:
- $formkit: "radio"
name: "login_before_read"
label: "登录可见"
value: "false"
options:
- label: "是"
value: "true"
- label: "否"
value: "false"
- $formkit: "code"
name: "login_before_read_summary"
label: "登录可见预览内容"
value: ""
---
apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
generateName: annotation-setting-
spec:
targetRef:
group: content.halo.run
kind: SinglePage
formSchema:
- $formkit: "text"
name: "github_username"
label: "Github用户名"
- $formkit: "text"
name: "github_token"
label: "Github Token"