@opendesign-plus/components 0.0.1-rc.63 → 0.0.1-rc.65
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/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +59 -41
- package/dist/components/activity/OActivityApproval.vue.d.ts +1 -144
- package/dist/components/activity/index.d.ts +1 -6
- package/dist/components/logo-swiper/OLogoSwiper.vue.d.ts +1 -0
- package/dist/components/logo-swiper/index.d.ts +1 -0
- package/dist/components/meeting/OMeetingSigCalendar.vue.d.ts +2 -1
- package/dist/components/meeting/index.d.ts +6 -3
- package/dist/components/sig/components/OSigDetailInfoCard.vue.d.ts +3 -1
- package/dist/components/sig/components/OSigItem.vue.d.ts +0 -3
- package/dist/components/sig/components/utils.d.ts +38 -3
- package/dist/components/sig/types.d.ts +12 -7
- package/dist/components/video/OVideoDetail.vue.d.ts +7 -0
- package/dist/components/video/index.d.ts +27 -0
- package/dist/components/video/types.d.ts +24 -0
- package/dist/components.cjs.js +43 -43
- package/dist/components.css +1 -1
- package/dist/components.es.js +11890 -11742
- package/dist/index.d.ts +1 -0
- package/dist/treeshaking/_virtual/icon-chevron-right.mjs +2 -2
- package/dist/treeshaking/_virtual/icon-material.mjs +21 -0
- package/dist/treeshaking/_virtual/icon-outlink.mjs +1 -1
- package/dist/treeshaking/_virtual/icon-video.mjs +28 -0
- package/dist/treeshaking/components/activity/OActivityApproval.css +114 -407
- package/dist/treeshaking/components/activity/OActivityApproval.vue.d.ts +1 -144
- package/dist/treeshaking/components/activity/OActivityApproval.vue.mjs +198 -244
- package/dist/treeshaking/components/activity/OActivityApproval2.css +0 -288
- package/dist/treeshaking/components/activity/OActivityMyCalendar.css +441 -297
- package/dist/treeshaking/components/activity/OActivityMyCalendar.vue.mjs +110 -107
- package/dist/treeshaking/components/activity/OActivityMyCalendar2.css +10 -3
- package/dist/treeshaking/components/activity/index.d.ts +1 -6
- package/dist/treeshaking/components/common/WordAvatar.css +3 -2
- package/dist/treeshaking/components/common/WordAvatar.vue.mjs +19 -3
- package/dist/treeshaking/components/float-poster/OFloatPoster.css +25 -11
- package/dist/treeshaking/components/float-poster/OFloatPoster.vue.mjs +1 -1
- package/dist/treeshaking/components/logo-swiper/OLogoSwiper.css +18 -6
- package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue.d.ts +1 -0
- package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue.mjs +2 -9
- package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue2.mjs +21 -0
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.css +27 -27
- package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue.mjs +1 -1
- package/dist/treeshaking/components/logo-swiper/index.d.ts +1 -0
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.css +29 -1
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.d.ts +2 -1
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.mjs +20 -6
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.mjs +5 -5
- package/dist/treeshaking/components/meeting/index.d.ts +6 -3
- package/dist/treeshaking/components/section/OSection.vue2.mjs +2 -2
- package/dist/treeshaking/components/sig/OSigDetail.css +82 -23
- package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +54 -17
- package/dist/treeshaking/components/sig/OSigList.css +59 -5
- package/dist/treeshaking/components/sig/OSigList.vue.mjs +61 -59
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.css +80 -1
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue.d.ts +3 -1
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue.mjs +36 -10
- package/dist/treeshaking/components/sig/components/OSigItem.css +387 -58
- package/dist/treeshaking/components/sig/components/OSigItem.vue.d.ts +0 -3
- package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +25 -45
- package/dist/treeshaking/components/sig/components/OSigMember.css +0 -60
- package/dist/treeshaking/components/sig/components/OSigMember.vue.mjs +12 -18
- package/dist/treeshaking/components/sig/components/OSigRepo.css +15 -0
- package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +46 -41
- package/dist/treeshaking/components/sig/components/OSigUserContribute.css +24 -0
- package/dist/treeshaking/components/sig/components/OSigUserContribute.vue.mjs +12 -10
- package/dist/treeshaking/components/sig/components/utils.d.ts +38 -3
- package/dist/treeshaking/components/sig/components/utils.mjs +36 -3
- package/dist/treeshaking/components/sig/types.d.ts +12 -7
- package/dist/treeshaking/components/video/OVideoDetail.css +754 -0
- package/dist/treeshaking/components/video/OVideoDetail.vue.d.ts +7 -0
- package/dist/treeshaking/components/video/OVideoDetail.vue.mjs +318 -0
- package/dist/treeshaking/components/video/OVideoDetail.vue3.mjs +5 -0
- package/dist/treeshaking/components/video/index.d.ts +27 -0
- package/dist/treeshaking/components/video/index.mjs +10 -0
- package/dist/treeshaking/components/video/types.d.ts +24 -0
- package/dist/treeshaking/i18n/en.mjs +12 -3
- package/dist/treeshaking/i18n/zh.mjs +12 -3
- package/dist/treeshaking/index.d.ts +1 -0
- package/dist/treeshaking/index.mjs +2 -0
- package/package.json +1 -1
- package/dist/components/sig/components/config-sig.d.ts +0 -1
- package/dist/treeshaking/_virtual/icon-filter.mjs +0 -21
- package/dist/treeshaking/components/common/ThFilter.css +0 -146
- package/dist/treeshaking/components/common/ThFilter.vue.mjs +0 -270
- package/dist/treeshaking/components/common/ThFilter.vue3.mjs +0 -5
- package/dist/treeshaking/components/sig/components/config-sig.d.ts +0 -1
- package/dist/treeshaking/components/sig/components/config-sig.mjs +0 -4
|
@@ -1,6 +1,41 @@
|
|
|
1
|
-
export type Lang = 'zh' | 'en';
|
|
2
1
|
/**
|
|
3
2
|
* 判断链接来自 GITEE / ATOMGIT
|
|
4
3
|
*/
|
|
5
|
-
export declare const detectGitPlatform: (url: string) => string;
|
|
6
|
-
|
|
4
|
+
export declare const detectGitPlatform: (url: string | undefined) => string;
|
|
5
|
+
/**
|
|
6
|
+
* 根据用户标识生成对应的代码托管平台主页地址。
|
|
7
|
+
*
|
|
8
|
+
* - `params` 为字符串时,视为 atomgit 用户名,返回 `https://atomgit.com/{params}`。
|
|
9
|
+
* - `params` 为对象时,按以下顺序取首个存在的字段返回地址(空值视为不存在):
|
|
10
|
+
* 1. `user_homepage_url` -> 原值直接返回;
|
|
11
|
+
* 2. `gitcode_id` -> `https://atomgit.com/{gitcode_id}`;
|
|
12
|
+
* 3. `atomgit_id` -> `https://atomgit.com/{atomgit_id}`;
|
|
13
|
+
* 4. `gitee_id` -> `https://gitee.com/{gitee_id}`;
|
|
14
|
+
* 5. `user_login` -> `https://atomgit.com/{user_login}`。
|
|
15
|
+
* - 其余类型或均无匹配字段时返回 `undefined`。
|
|
16
|
+
*
|
|
17
|
+
* @param params 用户名或用户信息对象
|
|
18
|
+
* @returns 代码托管平台主页地址,无匹配时为 `undefined`
|
|
19
|
+
*/
|
|
20
|
+
export declare const getGitUrl: (params: undefined | string | {
|
|
21
|
+
gitee_id?: string;
|
|
22
|
+
gitcode_id?: string;
|
|
23
|
+
atomgit_id?: string;
|
|
24
|
+
user_homepage_url?: string;
|
|
25
|
+
user_login?: string;
|
|
26
|
+
}) => string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* 按顺序获取用户对象中的首个有效 git 标识。
|
|
29
|
+
*
|
|
30
|
+
* 依次尝试 `gitcode_id` -> `atomgit_id` -> `gitee_id` -> `user_login`,
|
|
31
|
+
* 返回首个存在的字段值(空值视为不存在)。
|
|
32
|
+
*
|
|
33
|
+
* @param params 用户信息对象
|
|
34
|
+
* @returns 首个匹配的 git 标识,无匹配时为空字符串
|
|
35
|
+
*/
|
|
36
|
+
export declare const getGitId: (params: undefined | {
|
|
37
|
+
gitee_id?: string;
|
|
38
|
+
gitcode_id?: string;
|
|
39
|
+
atomgit_id?: string;
|
|
40
|
+
user_login?: string;
|
|
41
|
+
}) => string;
|
|
@@ -1,10 +1,43 @@
|
|
|
1
|
+
const ATOMGIT_DOMAIN = "atomgit.com";
|
|
2
|
+
const GITEE_DOMAIN = "gitee.com";
|
|
3
|
+
const GITCODE_DOMAIN = "gitcode.com";
|
|
4
|
+
const escapeRegExp = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
5
|
+
const GITEE_PLATFORM_RE = new RegExp(`^(https?://)?(www\\.)?${escapeRegExp(GITEE_DOMAIN)}/`);
|
|
6
|
+
const ATOMGIT_PLATFORM_RE = new RegExp(`^(https?://)?(www\\.)?${escapeRegExp(ATOMGIT_DOMAIN)}/`);
|
|
7
|
+
const GITCODE_PLATFORM_RE = new RegExp(`^(https?://)?(www\\.)?${escapeRegExp(GITCODE_DOMAIN)}/`);
|
|
1
8
|
const detectGitPlatform = (url) => {
|
|
2
9
|
if (!url || typeof url !== "string") return "unknown";
|
|
3
10
|
const normalized = url.trim().toLowerCase();
|
|
4
|
-
if (
|
|
5
|
-
if (
|
|
11
|
+
if (GITEE_PLATFORM_RE.test(normalized)) return "gitee";
|
|
12
|
+
if (ATOMGIT_PLATFORM_RE.test(normalized)) return "atomgit";
|
|
13
|
+
if (GITCODE_PLATFORM_RE.test(normalized)) return "atomgit";
|
|
6
14
|
return "unknown";
|
|
7
15
|
};
|
|
16
|
+
function isPlainObject(v) {
|
|
17
|
+
return typeof v === "object" && v !== null && !Array.isArray(v);
|
|
18
|
+
}
|
|
19
|
+
const getGitUrl = (params) => {
|
|
20
|
+
if (typeof params === "string") return `https://${ATOMGIT_DOMAIN}/${params}`;
|
|
21
|
+
if (isPlainObject(params)) {
|
|
22
|
+
if (params.user_homepage_url) return params.user_homepage_url;
|
|
23
|
+
if (params.gitcode_id) return `https://${ATOMGIT_DOMAIN}/${params.gitcode_id}`;
|
|
24
|
+
if (params.atomgit_id) return `https://${ATOMGIT_DOMAIN}/${params.atomgit_id}`;
|
|
25
|
+
if (params.gitee_id) return `https://${GITEE_DOMAIN}/${params.gitee_id}`;
|
|
26
|
+
if (params.user_login) return `https://${ATOMGIT_DOMAIN}/${params.user_login}`;
|
|
27
|
+
}
|
|
28
|
+
return;
|
|
29
|
+
};
|
|
30
|
+
const getGitId = (params) => {
|
|
31
|
+
if (isPlainObject(params)) {
|
|
32
|
+
if (params.gitcode_id) return params.gitcode_id;
|
|
33
|
+
if (params.atomgit_id) return params.atomgit_id;
|
|
34
|
+
if (params.gitee_id) return params.gitee_id;
|
|
35
|
+
if (params.user_login) return params.user_login;
|
|
36
|
+
}
|
|
37
|
+
return "";
|
|
38
|
+
};
|
|
8
39
|
export {
|
|
9
|
-
detectGitPlatform
|
|
40
|
+
detectGitPlatform,
|
|
41
|
+
getGitId,
|
|
42
|
+
getGitUrl
|
|
10
43
|
};
|
|
@@ -14,9 +14,11 @@ export interface SigCompleteItemT {
|
|
|
14
14
|
description: string;
|
|
15
15
|
mailing_list: string;
|
|
16
16
|
meeting_url?: string;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
etherpad_url?: string;
|
|
18
|
+
subscribe_url?: string;
|
|
19
19
|
discuss_url?: string;
|
|
20
|
+
git_url?: string;
|
|
21
|
+
archive_url?: string;
|
|
20
22
|
mature_level?: string;
|
|
21
23
|
maintainers: string[];
|
|
22
24
|
committers: string[];
|
|
@@ -25,11 +27,14 @@ export interface SigCompleteItemT {
|
|
|
25
27
|
is_sig_original: number;
|
|
26
28
|
maintainer_info: SigMaintainerT[];
|
|
27
29
|
committer_info: SigMaintainerT[];
|
|
30
|
+
meeting_agenda?: string[];
|
|
31
|
+
meeting_agenda_en?: string[];
|
|
28
32
|
[key: string]: unknown;
|
|
29
33
|
}
|
|
30
34
|
export interface SigMaintainerT {
|
|
31
35
|
gitee_id?: string;
|
|
32
36
|
atomgit_id?: string;
|
|
37
|
+
gitcode_id?: string;
|
|
33
38
|
name: string;
|
|
34
39
|
email: string;
|
|
35
40
|
organization?: string;
|
|
@@ -42,13 +47,14 @@ export interface SigMaintainerT {
|
|
|
42
47
|
export interface SigRepoMemberT {
|
|
43
48
|
gitee_id: string;
|
|
44
49
|
atomgit_id?: string;
|
|
50
|
+
gitcode_id?: string;
|
|
45
51
|
name: string;
|
|
46
52
|
email: string;
|
|
47
53
|
organization?: string;
|
|
48
54
|
role?: string;
|
|
49
|
-
user_login
|
|
55
|
+
user_login?: string;
|
|
50
56
|
id_platform?: string;
|
|
51
|
-
user_homepage_url
|
|
57
|
+
user_homepage_url?: string;
|
|
52
58
|
[key: string]: unknown;
|
|
53
59
|
}
|
|
54
60
|
export interface SigRepoEntryT {
|
|
@@ -89,11 +95,11 @@ export interface SigBranchT {
|
|
|
89
95
|
}
|
|
90
96
|
export interface SigListItemT {
|
|
91
97
|
name: string;
|
|
92
|
-
|
|
98
|
+
git_url: string;
|
|
93
99
|
description: string;
|
|
94
100
|
sig_name?: string;
|
|
95
101
|
mailing_list?: string | null;
|
|
96
|
-
|
|
102
|
+
subscribe_url?: string | null;
|
|
97
103
|
repositories?: string[];
|
|
98
104
|
maintainer_info?: SigMaintainerT[] | null;
|
|
99
105
|
committer_info?: SigMaintainerT[] | null;
|
|
@@ -166,6 +172,5 @@ export interface SigContributeItemT {
|
|
|
166
172
|
user_login: string;
|
|
167
173
|
usertype: string;
|
|
168
174
|
contribute: number;
|
|
169
|
-
userLink: string;
|
|
170
175
|
[key: string]: unknown;
|
|
171
176
|
}
|