@opendesign-plus-test/components 0.0.1-rc.137 → 0.0.1-rc.139

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.
Files changed (28) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +2 -0
  3. package/dist/components/sig/components/OSigDetailInfoCard.vue.d.ts +3 -1
  4. package/dist/components/sig/components/OSigItem.vue.d.ts +0 -2
  5. package/dist/components/sig/components/utils.d.ts +3 -3
  6. package/dist/components/sig/types.d.ts +6 -6
  7. package/dist/components.cjs.js +38 -38
  8. package/dist/components.css +1 -1
  9. package/dist/components.es.js +5342 -5321
  10. package/dist/treeshaking/components/sig/OSigDetail.css +6 -1
  11. package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +29 -8
  12. package/dist/treeshaking/components/sig/OSigList.css +5 -1
  13. package/dist/treeshaking/components/sig/OSigList.vue.mjs +63 -67
  14. package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.css +74 -1
  15. package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue.d.ts +3 -1
  16. package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue.mjs +36 -10
  17. package/dist/treeshaking/components/sig/components/OSigItem.css +35 -22
  18. package/dist/treeshaking/components/sig/components/OSigItem.vue.d.ts +0 -2
  19. package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +4 -7
  20. package/dist/treeshaking/components/sig/components/OSigMember.vue.mjs +1 -2
  21. package/dist/treeshaking/components/sig/components/OSigRepo.css +3 -0
  22. package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +6 -6
  23. package/dist/treeshaking/components/sig/components/OSigUserContribute.vue.mjs +2 -2
  24. package/dist/treeshaking/components/sig/components/utils.d.ts +3 -3
  25. package/dist/treeshaking/components/sig/types.d.ts +6 -6
  26. package/dist/treeshaking/i18n/en.mjs +1 -0
  27. package/dist/treeshaking/i18n/zh.mjs +1 -0
  28. package/package.json +3 -3
@@ -21,14 +21,11 @@ const _hoisted_11 = { class: "o-sig-popup-content" };
21
21
  const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  __name: "OSigItem",
23
23
  props: {
24
- sig: {},
25
- locale: {},
26
- mobile: { type: Boolean }
24
+ sig: {}
27
25
  },
28
26
  emits: ["to-sig-detail"],
29
27
  setup(__props, { emit: __emit }) {
30
28
  const { t, locale } = useI18n();
31
- console.log(locale);
32
29
  const emit = __emit;
33
30
  const lastSeparator = (i, len) => i === (len ?? 0) - 1 ? "" : locale.value === "zh" ? "、" : ", ";
34
31
  return (_ctx, _cache) => {
@@ -50,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
47
  ]),
51
48
  createElementVNode("div", _hoisted_3, [
52
49
  createVNode(unref(OLink), {
53
- href: __props.sig.atomgitUrl,
50
+ href: __props.sig.git_url,
54
51
  target: "_blank",
55
52
  "hover-underline": false
56
53
  }, {
@@ -81,12 +78,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
81
78
  ]),
82
79
  _: 1
83
80
  }, 8, ["href"]),
84
- __props.sig.subscribeUrl ? (openBlock(), createBlock(unref(OButton), {
81
+ __props.sig.subscribe_url ? (openBlock(), createBlock(unref(OButton), {
85
82
  key: 0,
86
83
  size: "medium",
87
84
  color: "primary",
88
85
  round: "pill",
89
- href: __props.sig.subscribeUrl,
86
+ href: __props.sig.subscribe_url,
90
87
  target: "_blank"
91
88
  }, {
92
89
  default: withCtx(() => [
@@ -52,7 +52,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
52
  const { t } = useI18n();
53
53
  const { isPhone, isPadH, isPadV, leLaptop } = useScreen();
54
54
  const { isDark } = useTheme();
55
- console.log("isDark", isDark.value);
56
55
  const defaultCount = computed(() => {
57
56
  if (isPadH.value) return 18;
58
57
  if (isPadV.value) return 12;
@@ -211,7 +210,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
211
210
  ], 2),
212
211
  createElementVNode("div", _hoisted_16, [
213
212
  createElementVNode("a", {
214
- href: member.user_homepage_url,
213
+ href: unref(getGitUrl)(member),
215
214
  target: "_blank",
216
215
  rel: "noopener noreferrer"
217
216
  }, [
@@ -6,6 +6,9 @@
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
+ .o-sig-detail-repo .o-link-normal {
10
+ --link-color: var(--o-color-primary1);
11
+ }
9
12
  .o-sig-detail-repo .o-sig-detail-repo-table {
10
13
  margin-top: 24px;
11
14
  --table-edge-padding: calc(var(--table-cell-padding) * 2);
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, c
2
2
  import { ODataTable, OLink, OPagination } from "@opensig/opendesign";
3
3
  import { useI18n } from "../../../i18n/index.mjs";
4
4
  import { useScreen } from "@opendesign-plus/composables";
5
- import { getGitUrl, getGitId } from "./utils.mjs";
5
+ import { getGitId, getGitUrl } from "./utils.mjs";
6
6
  const _hoisted_1 = {
7
7
  id: "repositories",
8
8
  class: "o-sig-detail-repo"
@@ -30,8 +30,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  return props.repositories.filter((item) => {
31
31
  var _a, _b, _c, _d, _e;
32
32
  if (((_a = conditions.value.repo) == null ? void 0 : _a.length) && !conditions.value.repo.includes(item.repo)) return false;
33
- if (((_b = conditions.value.maintainers) == null ? void 0 : _b.length) && !((_c = item.maintainers) == null ? void 0 : _c.some((m) => conditions.value.maintainers.includes(m.user_login)))) return false;
34
- if (((_d = conditions.value.committers) == null ? void 0 : _d.length) && !((_e = item.committers) == null ? void 0 : _e.some((c) => conditions.value.committers.includes(c.user_login)))) return false;
33
+ if (((_b = conditions.value.maintainers) == null ? void 0 : _b.length) && !((_c = item.maintainers) == null ? void 0 : _c.some((m) => conditions.value.maintainers.includes(getGitId(m))))) return false;
34
+ if (((_d = conditions.value.committers) == null ? void 0 : _d.length) && !((_e = item.committers) == null ? void 0 : _e.some((c) => conditions.value.committers.includes(getGitId(c))))) return false;
35
35
  return true;
36
36
  });
37
37
  });
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
63
  const uniqueLogins = (rows, field) => {
64
64
  const set = /* @__PURE__ */ new Set();
65
65
  rows.forEach(
66
- (item) => (item[field] || []).forEach((p) => p.user_login && set.add(p.user_login))
66
+ (item) => (item[field] || []).forEach((p) => getGitId(p) && set.add(getGitId(p)))
67
67
  );
68
68
  return [...set].map((v) => ({ label: v, value: v }));
69
69
  };
@@ -103,7 +103,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
103
103
  border: "row-frame",
104
104
  data: repositoryList.value,
105
105
  "row-key": "repo",
106
- "min-table-width": 840,
106
+ "min-table-width": 600,
107
107
  onConditionUpdate
108
108
  }, {
109
109
  td_repo: withCtx(({ row }) => [
@@ -122,7 +122,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
122
122
  (openBlock(true), createElementBlock(Fragment, null, renderList(row.maintainers, (item, index) => {
123
123
  return openBlock(), createBlock(unref(OLink), {
124
124
  target: "_blank",
125
- key: item.user_login,
125
+ key: index,
126
126
  rel: "noopener noreferrer",
127
127
  href: unref(getGitUrl)(item)
128
128
  }, {
@@ -260,9 +260,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
260
260
  createVNode(unref(ODataTable), {
261
261
  data: displayContributionData.value,
262
262
  columns: columns.value,
263
+ size: "small",
263
264
  border: "row-frame",
264
- small: "",
265
- "min-table-width": 840
265
+ "min-table-width": 600
266
266
  }, {
267
267
  td_idx: withCtx(({ index }) => [
268
268
  createElementVNode("span", null, toDisplayString(index + 1), 1)
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 判断链接来自 GITEE / ATOMGIT
3
3
  */
4
- export declare const detectGitPlatform: (url: string) => string;
4
+ export declare const detectGitPlatform: (url: string | undefined) => string;
5
5
  /**
6
6
  * 根据用户标识生成对应的代码托管平台主页地址。
7
7
  *
@@ -17,7 +17,7 @@ export declare const detectGitPlatform: (url: string) => string;
17
17
  * @param params 用户名或用户信息对象
18
18
  * @returns 代码托管平台主页地址,无匹配时为 `undefined`
19
19
  */
20
- export declare const getGitUrl: (params: string | {
20
+ export declare const getGitUrl: (params: undefined | string | {
21
21
  gitee_id?: string;
22
22
  gitcode_id?: string;
23
23
  atomgit_id?: string;
@@ -33,7 +33,7 @@ export declare const getGitUrl: (params: string | {
33
33
  * @param params 用户信息对象
34
34
  * @returns 首个匹配的 git 标识,无匹配时为空字符串
35
35
  */
36
- export declare const getGitId: (params: {
36
+ export declare const getGitId: (params: undefined | {
37
37
  gitee_id?: string;
38
38
  gitcode_id?: string;
39
39
  atomgit_id?: string;
@@ -14,10 +14,11 @@ export interface SigCompleteItemT {
14
14
  description: string;
15
15
  mailing_list: string;
16
16
  meeting_url?: string;
17
- etherpadUrl?: string;
18
- subscribeUrl?: string;
17
+ etherpad_url?: string;
18
+ subscribe_url?: string;
19
19
  discuss_url?: string;
20
- gitUrl?: string;
20
+ git_url?: string;
21
+ archive_url?: string;
21
22
  mature_level?: string;
22
23
  maintainers: string[];
23
24
  committers: string[];
@@ -94,11 +95,11 @@ export interface SigBranchT {
94
95
  }
95
96
  export interface SigListItemT {
96
97
  name: string;
97
- atomgitUrl: string;
98
+ git_url: string;
98
99
  description: string;
99
100
  sig_name?: string;
100
101
  mailing_list?: string | null;
101
- subscribeUrl?: string | null;
102
+ subscribe_url?: string | null;
102
103
  repositories?: string[];
103
104
  maintainer_info?: SigMaintainerT[] | null;
104
105
  committer_info?: SigMaintainerT[] | null;
@@ -171,6 +172,5 @@ export interface SigContributeItemT {
171
172
  user_login: string;
172
173
  usertype: string;
173
174
  contribute: number;
174
- userLink: string;
175
175
  [key: string]: unknown;
176
176
  }
@@ -299,6 +299,7 @@ const en = {
299
299
  "sig.applicationProcessSubTitle": "Propose creation of a SIG to coordinate development efforts within a specific domain.",
300
300
  "sig.sigTip": "Note: Repository Committers, please click on the SIG name to query the repository list.",
301
301
  "sig.subscribe": "Subscribe",
302
+ "sig.viewArchive": "View Archive",
302
303
  "sig.contributor": "{num} maintainers",
303
304
  "sig.sigCore": "Core Members ({num})",
304
305
  "sig.sigMaintainer": "Maintainer ({num})",
@@ -301,6 +301,7 @@ const zh = {
301
301
  "sig.loading": "加载中...",
302
302
  "sig.sigTip": "注:仓库Committer请点击SIG名称,在仓库列表查询",
303
303
  "sig.subscribe": "订阅邮件",
304
+ "sig.viewArchive": "查看归档",
304
305
  "sig.contributor": "{num}位维护者",
305
306
  "sig.sigCore": "核心成员({num})",
306
307
  "sig.sigMaintainer": "Maintainer({num})",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.137",
3
+ "version": "0.0.1-rc.139",
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/styles": "0.0.1-rc.2",
49
- "@opendesign-plus/composables": "0.0.1-rc.10"
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",