File tree Expand file tree Collapse file tree 2 files changed +29
-28
lines changed
Expand file tree Collapse file tree 2 files changed +29
-28
lines changed Original file line number Diff line number Diff line change 33 " ai" ,
44 " mcp" ,
55 " agent" ,
6- " rag" ,
7- " permission" ,
8- " sso" ,
9- " rbac" ,
106 " auth" ,
11- " ldap" ,
127 " storage" ,
138 " notification" ,
149 " task" ,
10+ " payment" ,
1511 " other"
1612 ],
13+ "validDatabases" : [
14+ " mysql" ,
15+ " pgsql" ,
16+ " postgresql"
17+ ],
1718 "pluginDataList" : [
1819 {
1920 "plugin" : {
5152 "description" : " 基于 Casbin 实现的 RBAC 访问控制" ,
5253 "author" : " wu-clan" ,
5354 "tags" : [
54- " auth" ,
55- " rbac"
55+ " auth"
5656 ],
5757 "database" : [
5858 " mysql" ,
59- " postgresql "
59+ " pgsql "
6060 ]
6161 },
6262 "git" : {
7373 "description" : " 通过 Casdoor 实现 SSO 单点登录集成" ,
7474 "author" : " wu-clan" ,
7575 "tags" : [
76- " auth" ,
77- " sso"
76+ " auth"
7877 ],
7978 "database" : [
8079 " mysql" ,
81- " postgresql "
80+ " pgsql "
8281 ]
8382 },
8483 "git" : {
127126 ],
128127 "database" : [
129128 " mysql" ,
130- " postgresql "
129+ " pgsql "
131130 ]
132131 },
133132 "git" : {
176175 ],
177176 "database" : [
178177 " mysql" ,
179- " postgresql "
178+ " pgsql "
180179 ]
181180 },
182181 "git" : {
Original file line number Diff line number Diff line change @@ -2,26 +2,30 @@ export const validTags = [
22 "ai" ,
33 "mcp" ,
44 "agent" ,
5- "rag" ,
6- "permission" ,
7- "sso" ,
8- "rbac" ,
95 "auth" ,
10- "ldap" ,
116 "storage" ,
127 "notification" ,
138 "task" ,
9+ "payment" ,
1410 "other"
1511] as const
12+ export const validDatabases = [
13+ "mysql" ,
14+ "pgsql" ,
15+ "postgresql"
16+ ] as const
17+
18+ export type ValidTag = typeof validTags [ number ]
19+ export type ValidDatabase = typeof validDatabases [ number ]
1620
1721export interface PluginTomlPlugin {
1822 icon : string
1923 summary : string
2024 version : string
2125 description : string
2226 author : string
23- tags ?: string [ ]
24- database ?: string [ ]
27+ tags ?: ValidTag [ ]
28+ database ?: ValidDatabase [ ]
2529}
2630
2731export interface GitModule {
@@ -72,12 +76,11 @@ export const pluginDataList: PluginData[] = [
7276 "description" : "基于 Casbin 实现的 RBAC 访问控制" ,
7377 "author" : "wu-clan" ,
7478 "tags" : [
75- "auth" ,
76- "rbac"
79+ "auth"
7780 ] ,
7881 "database" : [
7982 "mysql" ,
80- "postgresql "
83+ "pgsql "
8184 ]
8285 } ,
8386 "git" : {
@@ -94,12 +97,11 @@ export const pluginDataList: PluginData[] = [
9497 "description" : "通过 Casdoor 实现 SSO 单点登录集成" ,
9598 "author" : "wu-clan" ,
9699 "tags" : [
97- "auth" ,
98- "sso"
100+ "auth"
99101 ] ,
100102 "database" : [
101103 "mysql" ,
102- "postgresql "
104+ "pgsql "
103105 ]
104106 } ,
105107 "git" : {
@@ -148,7 +150,7 @@ export const pluginDataList: PluginData[] = [
148150 ] ,
149151 "database" : [
150152 "mysql" ,
151- "postgresql "
153+ "pgsql "
152154 ]
153155 } ,
154156 "git" : {
@@ -197,7 +199,7 @@ export const pluginDataList: PluginData[] = [
197199 ] ,
198200 "database" : [
199201 "mysql" ,
200- "postgresql "
202+ "pgsql "
201203 ]
202204 } ,
203205 "git" : {
You can’t perform that action at this time.
0 commit comments