@ruan-cat/domains 2.3.0 → 2.5.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/dist/index.cjs +89 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -22
- package/dist/index.d.ts +59 -22
- package/dist/index.global.js +89 -17
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +89 -17
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
- package/src/domains.ts +83 -11
- package/src/types.ts +35 -7
- package/tsconfig.json +1 -0
package/src/types.ts
CHANGED
|
@@ -7,6 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export type TopLevelDomain = "ruancat6312.top" | "ruan-cat.com";
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* 部署平台
|
|
12
|
+
* @description
|
|
13
|
+
* 该域名所部署的平台。目前仅支持 cloudflare 和 vercel。
|
|
14
|
+
*/
|
|
15
|
+
export type DeployPlatform = "cloudflare" | "vercel";
|
|
16
|
+
|
|
10
17
|
/**
|
|
11
18
|
* 域名配置信息
|
|
12
19
|
* @description
|
|
@@ -39,6 +46,13 @@ export interface Project {
|
|
|
39
46
|
* 填写简单的描述即可 可以不写
|
|
40
47
|
*/
|
|
41
48
|
description?: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 项目展示顺序
|
|
52
|
+
* @description
|
|
53
|
+
* 数值越小排序越靠前;不填写时会在文档导航中排到最后
|
|
54
|
+
*/
|
|
55
|
+
order?: number;
|
|
42
56
|
}
|
|
43
57
|
|
|
44
58
|
/**
|
|
@@ -47,19 +61,21 @@ export interface Project {
|
|
|
47
61
|
* 项目列表 新建一个项目时 就在这里添加一个项目
|
|
48
62
|
*/
|
|
49
63
|
export const projects = [
|
|
64
|
+
{ name: "utils", description: "工具包项目", order: 1 },
|
|
65
|
+
{ name: "ruan-cat-notes", description: "阮喵喵笔记,个人笔记项目", order: 2 },
|
|
66
|
+
{ name: "gh", description: "github贡献表,个人pr贡献在线查询项目", order: 3 },
|
|
67
|
+
{ name: "vue-element-cui", description: "组件库项目,对业务向常用组件做二次封装的项目", order: 4 },
|
|
68
|
+
{ name: "gzpc", description: "广州普查,广州智能决策智慧城市驾驶舱,高德地图大屏项目", order: 5 },
|
|
69
|
+
{ name: "domain", description: "域名列表,个人全部可对外展示的域名列表站点", order: 6 },
|
|
70
|
+
{ name: "vitepress-preset", description: "vitepress配置预设", order: 7 },
|
|
71
|
+
{ name: "claude-notifier", description: "claude code通知工具", order: 8 },
|
|
72
|
+
{ name: "vercel-deploy-tool", description: "vercel部署工具", order: 9 },
|
|
50
73
|
{ name: "09oa", description: "dfsw 09OA技术验证项目" },
|
|
51
74
|
{ name: "10wms", description: "hgxy 10WMS招标客户演示demo项目" },
|
|
52
75
|
{ name: "10wms-doc", description: "hgxy 10WMS招标demo项目 客户要求开发团队内部文档-前端团队" },
|
|
53
76
|
{ name: "11comm", description: "hgxy 11智慧社区项目(客户违约)" },
|
|
54
77
|
{ name: "11comm-doc", description: "hgxy 11智慧社区项目(客户违约) 前端文档" },
|
|
55
78
|
{ name: "01s-doc", description: "dfsw-01s实习生团队 01s文档" },
|
|
56
|
-
{ name: "utils", description: "工具包项目" },
|
|
57
|
-
{ name: "vitepress-preset", description: "vitepress配置预设" },
|
|
58
|
-
{ name: "claude-notifier", description: "claude code通知工具" },
|
|
59
|
-
{ name: "domain", description: "域名列表" },
|
|
60
|
-
{ name: "vercel-deploy-tool", description: "vercel部署工具" },
|
|
61
|
-
{ name: "ruan-cat-notes", description: "阮喵喵笔记" },
|
|
62
|
-
{ name: "gh", description: "github贡献表" },
|
|
63
79
|
{ name: "rmmv-notes", description: "rmmv笔记项目" },
|
|
64
80
|
{ name: "drill-doc", description: "钻头文档" },
|
|
65
81
|
{ name: "rmmv-api-doc", description: "rmmv api文档" },
|
|
@@ -69,6 +85,11 @@ export const projects = [
|
|
|
69
85
|
/** 项目名称列表 */
|
|
70
86
|
export type ProjectName = (typeof projects)[number]["name"];
|
|
71
87
|
|
|
88
|
+
/** 项目条目 */
|
|
89
|
+
export type ProjectItem = Project & {
|
|
90
|
+
name: ProjectName;
|
|
91
|
+
};
|
|
92
|
+
|
|
72
93
|
/**
|
|
73
94
|
* 项目化的域名配置 项目展示风格的 域名配置类型
|
|
74
95
|
* @description
|
|
@@ -103,6 +124,13 @@ export interface ProjectLikeDomain extends Domain {
|
|
|
103
124
|
* 某些域名很特殊 需要被特殊索引 故需要配置一个别名 来方便索引
|
|
104
125
|
*/
|
|
105
126
|
projectAlias?: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* 部署平台
|
|
130
|
+
* @description
|
|
131
|
+
* 指明该域名部署在哪个平台上,目前可选的平台有 cloudflare 和 vercel。
|
|
132
|
+
*/
|
|
133
|
+
deployPlatform?: DeployPlatform;
|
|
106
134
|
}
|
|
107
135
|
|
|
108
136
|
/** 项目化的域名 不包含项目名称 */
|