@opendesign-plus-test/components 0.0.1-rc.136 → 0.0.1-rc.138
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 +2 -4
- package/dist/components/logo-swiper/OLogoSwiperItems.vue.d.ts +2 -2
- package/dist/components/logo-swiper/index.d.ts +6 -6
- package/dist/components/sig/OSigDetail.vue.d.ts +2 -0
- package/dist/components/sig/components/OSigItem.vue.d.ts +0 -1
- package/dist/components/sig/components/OSigRepo.vue.d.ts +2 -0
- package/dist/components/sig/components/utils.d.ts +38 -3
- package/dist/components/sig/types.d.ts +7 -2
- package/dist/components.cjs.js +38 -38
- package/dist/components.css +1 -1
- package/dist/components.es.js +8766 -8741
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.css +2 -1
- package/dist/treeshaking/components/sig/OSigDetail.css +39 -0
- package/dist/treeshaking/components/sig/OSigDetail.vue.d.ts +2 -0
- package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +31 -17
- package/dist/treeshaking/components/sig/OSigList.css +54 -5
- package/dist/treeshaking/components/sig/OSigList.vue.mjs +61 -57
- package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.css +11 -1
- package/dist/treeshaking/components/sig/components/OSigItem.css +391 -80
- package/dist/treeshaking/components/sig/components/OSigItem.vue.d.ts +0 -1
- package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +24 -41
- package/dist/treeshaking/components/sig/components/OSigMember.css +0 -60
- package/dist/treeshaking/components/sig/components/OSigMember.vue.mjs +12 -17
- package/dist/treeshaking/components/sig/components/OSigRepo.css +12 -0
- package/dist/treeshaking/components/sig/components/OSigRepo.vue.d.ts +2 -0
- package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +15 -15
- 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 +7 -2
- package/dist/treeshaking/i18n/en.mjs +1 -2
- package/dist/treeshaking/i18n/zh.mjs +1 -2
- package/package.json +3 -3
- package/dist/components/sig/components/config-sig.d.ts +0 -1
- package/dist/components/video/OVideoDetail.vue.d.ts +0 -7
- package/dist/components/video/index.d.ts +0 -27
- package/dist/components/video/types.d.ts +0 -24
- package/dist/treeshaking/components/sig/components/config-sig.d.ts +0 -1
- package/dist/treeshaking/components/sig/components/config-sig.mjs +0 -4
|
@@ -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
|
};
|
|
@@ -17,6 +17,7 @@ export interface SigCompleteItemT {
|
|
|
17
17
|
etherpadUrl?: string;
|
|
18
18
|
subscribeUrl?: string;
|
|
19
19
|
discuss_url?: string;
|
|
20
|
+
gitUrl?: string;
|
|
20
21
|
mature_level?: string;
|
|
21
22
|
maintainers: string[];
|
|
22
23
|
committers: string[];
|
|
@@ -25,11 +26,14 @@ export interface SigCompleteItemT {
|
|
|
25
26
|
is_sig_original: number;
|
|
26
27
|
maintainer_info: SigMaintainerT[];
|
|
27
28
|
committer_info: SigMaintainerT[];
|
|
29
|
+
meeting_agenda?: string[];
|
|
30
|
+
meeting_agenda_en?: string[];
|
|
28
31
|
[key: string]: unknown;
|
|
29
32
|
}
|
|
30
33
|
export interface SigMaintainerT {
|
|
31
34
|
gitee_id?: string;
|
|
32
35
|
atomgit_id?: string;
|
|
36
|
+
gitcode_id?: string;
|
|
33
37
|
name: string;
|
|
34
38
|
email: string;
|
|
35
39
|
organization?: string;
|
|
@@ -42,13 +46,14 @@ export interface SigMaintainerT {
|
|
|
42
46
|
export interface SigRepoMemberT {
|
|
43
47
|
gitee_id: string;
|
|
44
48
|
atomgit_id?: string;
|
|
49
|
+
gitcode_id?: string;
|
|
45
50
|
name: string;
|
|
46
51
|
email: string;
|
|
47
52
|
organization?: string;
|
|
48
53
|
role?: string;
|
|
49
|
-
user_login
|
|
54
|
+
user_login?: string;
|
|
50
55
|
id_platform?: string;
|
|
51
|
-
user_homepage_url
|
|
56
|
+
user_homepage_url?: string;
|
|
52
57
|
[key: string]: unknown;
|
|
53
58
|
}
|
|
54
59
|
export interface SigRepoEntryT {
|
|
@@ -324,9 +324,8 @@ const en = {
|
|
|
324
324
|
"sig.noResult": "No result",
|
|
325
325
|
"sig.loading": "Loading...",
|
|
326
326
|
"sig.repositoryName": "Repos name",
|
|
327
|
-
"sig.
|
|
327
|
+
"sig.sigMeetingActive": "Meetings and Events",
|
|
328
328
|
"sig.workMeeting": "Work Meeting",
|
|
329
|
-
"sig.sigMeetingIntro": "SIG version planning work meetings follow open and transparent principles; topic collection, technical discussions, and meeting minutes are all open to the public.",
|
|
330
329
|
"sig.sigMeetingTip": "The meeting system currently only retains meeting records from the last six months.",
|
|
331
330
|
"sig.noMeeting": "No meetings",
|
|
332
331
|
"sig.meetingSummary": "Etherpad Link",
|
|
@@ -307,9 +307,8 @@ const zh = {
|
|
|
307
307
|
"sig.sigCommitter": "Committer({num})",
|
|
308
308
|
"sig.viewAll": "查看所有",
|
|
309
309
|
"sig.sigMeeting": "交流会议",
|
|
310
|
-
"sig.
|
|
310
|
+
"sig.sigMeetingActive": "会议与活动",
|
|
311
311
|
"sig.workMeeting": "工作会议",
|
|
312
|
-
"sig.sigMeetingIntro": "SIG版本规划工作会议遵循开源、开放原则, 议题收集、技术讨论、会议纪要等各讨论过程均对外开放",
|
|
313
312
|
"sig.sigMeetingTip": "会议系统当前仅保留最近半年会议记录",
|
|
314
313
|
"sig.noMeeting": "暂无会议",
|
|
315
314
|
"sig.latestMeeting": "最近会议:{date}",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendesign-plus-test/components",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.138",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"vue-dompurify-html": "^3.1.2",
|
|
46
46
|
"vue": "^3.5.13",
|
|
47
47
|
"element-plus": "2.13.1",
|
|
48
|
-
"@opendesign-plus/
|
|
49
|
-
"@opendesign-plus/
|
|
48
|
+
"@opendesign-plus/composables": "0.0.1-rc.10",
|
|
49
|
+
"@opendesign-plus/styles": "0.0.1-rc.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SIG_ADDRESS = "https://atomgit.com/openeuler/community/tree/master/sig/";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CourseCollectionT } from './types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
data: CourseCollectionT;
|
|
4
|
-
layout?: 'horizontal' | 'vertical';
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import('../../../vue/dist/vue.esm-bundler.js').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { App } from '../../../vue/dist/vue.esm-bundler.js';
|
|
2
|
-
declare const OVideoDetail: {
|
|
3
|
-
new (...args: any[]): import('../../../vue/dist/vue.esm-bundler.js').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
-
data: import('./types').CourseCollectionT;
|
|
5
|
-
layout?: "horizontal" | "vertical";
|
|
6
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, import('../../../vue/dist/vue.esm-bundler.js').PublicProps, {}, false, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').GlobalComponents, import('../../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, {}, any, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, {
|
|
7
|
-
P: {};
|
|
8
|
-
B: {};
|
|
9
|
-
D: {};
|
|
10
|
-
C: {};
|
|
11
|
-
M: {};
|
|
12
|
-
Defaults: {};
|
|
13
|
-
}, Readonly<{
|
|
14
|
-
data: import('./types').CourseCollectionT;
|
|
15
|
-
layout?: "horizontal" | "vertical";
|
|
16
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
17
|
-
__isFragment?: never;
|
|
18
|
-
__isTeleport?: never;
|
|
19
|
-
__isSuspense?: never;
|
|
20
|
-
} & import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsBase<Readonly<{
|
|
21
|
-
data: import('./types').CourseCollectionT;
|
|
22
|
-
layout?: "horizontal" | "vertical";
|
|
23
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('../../../vue/dist/vue.esm-bundler.js').GlobalComponents, import('../../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions> & import('../../../vue/dist/vue.esm-bundler.js').VNodeProps & import('../../../vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('../../../vue/dist/vue.esm-bundler.js').ComponentCustomProps & {
|
|
24
|
-
install(app: App): void;
|
|
25
|
-
};
|
|
26
|
-
export { OVideoDetail };
|
|
27
|
-
export * from './types';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface SpeakerT {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
title: string;
|
|
5
|
-
image?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface CourseItemT {
|
|
8
|
-
id: string;
|
|
9
|
-
title: string;
|
|
10
|
-
link: string;
|
|
11
|
-
description: string;
|
|
12
|
-
material: string;
|
|
13
|
-
materialSize?: string;
|
|
14
|
-
speakers: SpeakerT[];
|
|
15
|
-
}
|
|
16
|
-
export interface CourseCollectionT {
|
|
17
|
-
id: string;
|
|
18
|
-
title: string;
|
|
19
|
-
lastUpdated: string;
|
|
20
|
-
courseList: CourseItemT[];
|
|
21
|
-
banner?: string;
|
|
22
|
-
editorName?: string;
|
|
23
|
-
editorEmail?: string;
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SIG_ADDRESS = "https://atomgit.com/openeuler/community/tree/master/sig/";
|