vue-layout-gitcode 1.3.3 → 1.3.4

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.
@@ -1,52 +1,7 @@
1
- import { defineComponent, onMounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
1
+ import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
2
  import { FixedOverlay } from "vue-devui-lal/overlay";
3
- import { w as useLayoutConfig, _ as _export_sfc } from "./index-eb00e338.js";
3
+ import { w as useLayoutConfig, _ as _export_sfc } from "./index-C37aHH8x.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
- import "vue-devui-lal/button";
6
- import "vue-devui-lal/popover";
7
- import "vue-devui-lal/tooltip";
8
- import "vue-devui-lal/textarea";
9
- import "vue-devui-lal/button/style.css";
10
- import "vue-devui-lal/popover/style.css";
11
- import "vue-devui-lal/tooltip/style.css";
12
- import "vue-devui-lal/textarea/style.css";
13
- import "vue-devui-lal/icon";
14
- import "vue-devui-lal/icon/style.css";
15
- import "vue-router";
16
- import "@vueuse/core";
17
- import "vue-devui-lal/avatar";
18
- import "vue-devui-lal/avatar/style.css";
19
- import "vue-devui-lal/dropdown";
20
- import "vue-devui-lal/dropdown/style.css";
21
- import "dayjs";
22
- import "vue-devui-lal/skeleton";
23
- import "vue-devui-lal/skeleton/style.css";
24
- import "vue-devui-lal/message";
25
- import "vue-devui-lal/message/style.css";
26
- import "vue-devui-lal/badge";
27
- import "vue-devui-lal/badge/style.css";
28
- import "vue-devui-lal/tabs/style.css";
29
- import "vue-devui-lal/input";
30
- import "vue-devui-lal/form";
31
- import "vue-devui-lal/input/style.css";
32
- import "vue-devui-lal/form/style.css";
33
- import "vue-devui-lal/notification";
34
- import "vue-devui-lal/notification/style.css";
35
- import "vue-devui-lal/select";
36
- import "vue-devui-lal/menu";
37
- import "vue-devui-lal/select/style.css";
38
- import "vue-devui-lal/menu/style.css";
39
- import "vue-devui-lal/drawer";
40
- import "vue-devui-lal/layout";
41
- import "vue-devui-lal/drawer/style.css";
42
- import "vue-devui-lal/layout/style.css";
43
- import "vue-devui-lal/radio";
44
- import "@devui-design/icons/icomoon/devui-icon.css";
45
- import "vue-devui-lal/radio/style.css";
46
- import "vue-devui-lal/checkbox";
47
- import "vue-devui-lal/checkbox/style.css";
48
- import "vue-devui-lal/modal";
49
- import "vue-devui-lal/modal/style.css";
50
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
51
6
  __name: "index",
52
7
  emits: ["close", "success"],
@@ -94,13 +49,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
94
49
  default: withCtx(() => _cache[0] || (_cache[0] = [
95
50
  createElementVNode("div", { id: "captcha-box" }, null, -1)
96
51
  ])),
97
- _: 1
52
+ _: 1,
53
+ __: [0]
98
54
  });
99
55
  };
100
56
  }
101
57
  });
102
- const index_vue_vue_type_style_index_0_scoped_325ac2b0_lang = "";
103
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-325ac2b0"]]);
58
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
104
59
  export {
105
60
  index as default
106
61
  };
@@ -1,5 +1,5 @@
1
- import { ref, watchEffect, defineComponent, toDisplayString, unref, inject, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, normalizeStyle, createCommentVNode, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, withCtx } from "vue";
2
- import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, r as reqCatch, h as headRequest, f as useRequestReport, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, q as transWebUrl, v as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-eb00e338.js";
1
+ import { ref, watchEffect, defineComponent, toDisplayString, unref, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, withCtx } from "vue";
2
+ import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, q as transWebUrl, v as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-C37aHH8x.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -28,10 +28,8 @@ const useReportRepo = (reportParams, viewReport) => {
28
28
  };
29
29
  const formatItem = (data) => {
30
30
  const channelNames = [];
31
- if (data.channelName)
32
- channelNames.push(data.channelName);
33
- if (data.subChannelName)
34
- channelNames.push(data.subChannelName);
31
+ if (data.channelName) channelNames.push(data.channelName);
32
+ if (data.subChannelName) channelNames.push(data.subChannelName);
35
33
  const repoId = isNaN(Number(data.id)) ? data.id : Number(data.id);
36
34
  return {
37
35
  type: "gitcode",
@@ -124,8 +122,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
124
122
  useReport("login_exposure", { source: props.loginTriggerSource || "search_star_repo_recommend" });
125
123
  }
126
124
  try {
127
- if (starLoading.value)
128
- return;
125
+ if (starLoading.value) return;
129
126
  starLoading.value = true;
130
127
  const params = { repoId: props.starInfo.id };
131
128
  let res;
@@ -191,8 +188,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
191
188
  };
192
189
  }
193
190
  });
194
- const index_vue_vue_type_style_index_0_scoped_9f26f456_lang = "";
195
- const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-9f26f456"]]);
191
+ const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-gitcode-layout-lib"]]);
196
192
  const _hoisted_1$4 = { class: "fork-tag" };
197
193
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
198
194
  __name: "index",
@@ -217,8 +213,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
217
213
  };
218
214
  }
219
215
  });
220
- const index_vue_vue_type_style_index_0_scoped_cb84d9d8_lang = "";
221
- const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-cb84d9d8"]]);
216
+ const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-gitcode-layout-lib"]]);
222
217
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
223
218
  __name: "index",
224
219
  props: {
@@ -264,8 +259,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
264
259
  };
265
260
  }
266
261
  });
267
- const index_vue_vue_type_style_index_0_scoped_f41c9ade_lang = "";
268
- const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f41c9ade"]]);
262
+ const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
269
263
  const _hoisted_1$3 = { class: "star-count-one" };
270
264
  const _hoisted_2$3 = { key: 0 };
271
265
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
@@ -292,8 +286,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
292
286
  };
293
287
  }
294
288
  });
295
- const index_vue_vue_type_style_index_0_scoped_33d28127_lang = "";
296
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-33d28127"]]);
289
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-gitcode-layout-lib"]]);
297
290
  const _hoisted_1$2 = {
298
291
  key: 0,
299
292
  class: "github-star-num"
@@ -328,8 +321,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
328
321
  };
329
322
  }
330
323
  });
331
- const index_vue_vue_type_style_index_0_scoped_04cad993_lang = "";
332
- const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-04cad993"]]);
324
+ const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-gitcode-layout-lib"]]);
333
325
  const _hoisted_1$1 = { class: "repo-card-footer mt-[4px]" };
334
326
  const _hoisted_2$1 = {
335
327
  key: 3,
@@ -421,8 +413,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
421
413
  };
422
414
  }
423
415
  });
424
- const index_vue_vue_type_style_index_0_scoped_094a8d14_lang = "";
425
- const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-094a8d14"]]);
416
+ const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
426
417
  const _hoisted_1 = ["innerHTML"];
427
418
  const _hoisted_2 = {
428
419
  key: 0,
@@ -524,8 +515,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
524
515
  return highlightWords(keyword, contentArr.join("/"), true);
525
516
  };
526
517
  onMounted(() => {
527
- if (props.info.is_recommend && props.info.index === 0)
528
- handleQueryGraph();
518
+ if (props.info.is_recommend && props.info.index === 0) handleQueryGraph();
529
519
  });
530
520
  return (_ctx, _cache) => {
531
521
  return openBlock(), createElementBlock("a", {
@@ -559,7 +549,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
559
549
  default: withCtx(() => _cache[0] || (_cache[0] = [
560
550
  createTextVNode("G-Star ")
561
551
  ])),
562
- _: 1
552
+ _: 1,
553
+ __: [0]
563
554
  }, 8, ["message"])
564
555
  ])) : createCommentVNode("", true),
565
556
  unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
@@ -572,7 +563,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
572
563
  default: withCtx(() => _cache[1] || (_cache[1] = [
573
564
  createTextVNode(" G-Star ")
574
565
  ])),
575
- _: 1
566
+ _: 1,
567
+ __: [1]
576
568
  }, 8, ["message"])
577
569
  ])) : createCommentVNode("", true)
578
570
  ]),
@@ -649,8 +641,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
649
641
  };
650
642
  }
651
643
  });
652
- const index_vue_vue_type_style_index_0_scoped_39fd44ed_lang = "";
653
- const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-39fd44ed"]]);
644
+ const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
654
645
  export {
655
646
  SearchRepoCard as S,
656
647
  formatNameSpace as f,
package/index.d.ts CHANGED
@@ -96,7 +96,7 @@ export declare const GitCodeAside: DefineComponent<ExtractPropTypes<{
96
96
  customError?: boolean | undefined;
97
97
  customTimeout?: number | undefined;
98
98
  ignoreError?: boolean | undefined;
99
- customErrorCodes?: number[] | undefined;
99
+ customErrorCodes?: number[] | undefined; /** 场景值 核心参数之一 */
100
100
  } | undefined) => Promise<AxiosResponse<any, any>>;
101
101
  };
102
102
  globalStore: {
@@ -129,6 +129,16 @@ export declare const GitCodeAside: DefineComponent<ExtractPropTypes<{
129
129
  skipCheck: boolean;
130
130
  default: undefined;
131
131
  };
132
+ collapseMode: {
133
+ type: PropType<boolean | undefined>;
134
+ required: false;
135
+ default: boolean;
136
+ };
137
+ slotKeys: {
138
+ type: PropType<string[] | undefined>;
139
+ required: false;
140
+ default: () => never[];
141
+ };
132
142
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
133
143
  sceneValue: {
134
144
  type: PropType<SceneValue>;
@@ -156,7 +166,7 @@ export declare const GitCodeAside: DefineComponent<ExtractPropTypes<{
156
166
  customError?: boolean | undefined;
157
167
  customTimeout?: number | undefined;
158
168
  ignoreError?: boolean | undefined;
159
- customErrorCodes?: number[] | undefined;
169
+ customErrorCodes?: number[] | undefined; /** 场景值 核心参数之一 */
160
170
  } | undefined) => Promise<AxiosResponse<any, any>>;
161
171
  };
162
172
  globalStore: {
@@ -189,6 +199,16 @@ export declare const GitCodeAside: DefineComponent<ExtractPropTypes<{
189
199
  skipCheck: boolean;
190
200
  default: undefined;
191
201
  };
202
+ collapseMode: {
203
+ type: PropType<boolean | undefined>;
204
+ required: false;
205
+ default: boolean;
206
+ };
207
+ slotKeys: {
208
+ type: PropType<string[] | undefined>;
209
+ required: false;
210
+ default: () => never[];
211
+ };
192
212
  }>> & Readonly<{}>, {
193
213
  sceneValue: SceneValue;
194
214
  request: Function;
@@ -199,6 +219,8 @@ export declare const GitCodeAside: DefineComponent<ExtractPropTypes<{
199
219
  showPreferencesSetting: boolean | undefined;
200
220
  showThemeSetting: boolean | undefined;
201
221
  showLangSetting: boolean | undefined;
222
+ collapseMode: boolean | undefined;
223
+ slotKeys: string[] | undefined;
202
224
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
203
225
 
204
226
  export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
package/index.js CHANGED
@@ -1,50 +1,4 @@
1
- import { z, A, D, y, S, x, F, I, C, H, B } from "./index-eb00e338.js";
2
- import "vue";
3
- import "vue-devui-lal/button";
4
- import "vue-devui-lal/popover";
5
- import "vue-devui-lal/tooltip";
6
- import "vue-devui-lal/textarea";
7
- import "vue-devui-lal/button/style.css";
8
- import "vue-devui-lal/popover/style.css";
9
- import "vue-devui-lal/tooltip/style.css";
10
- import "vue-devui-lal/textarea/style.css";
11
- import "vue-devui-lal/icon";
12
- import "vue-devui-lal/icon/style.css";
13
- import "vue-router";
14
- import "@vueuse/core";
15
- import "vue-devui-lal/avatar";
16
- import "vue-devui-lal/avatar/style.css";
17
- import "vue-devui-lal/dropdown";
18
- import "vue-devui-lal/dropdown/style.css";
19
- import "dayjs";
20
- import "vue-devui-lal/skeleton";
21
- import "vue-devui-lal/skeleton/style.css";
22
- import "vue-devui-lal/message";
23
- import "vue-devui-lal/message/style.css";
24
- import "vue-devui-lal/badge";
25
- import "vue-devui-lal/badge/style.css";
26
- import "vue-devui-lal/tabs/style.css";
27
- import "vue-devui-lal/input";
28
- import "vue-devui-lal/form";
29
- import "vue-devui-lal/input/style.css";
30
- import "vue-devui-lal/form/style.css";
31
- import "vue-devui-lal/notification";
32
- import "vue-devui-lal/notification/style.css";
33
- import "vue-devui-lal/select";
34
- import "vue-devui-lal/menu";
35
- import "vue-devui-lal/select/style.css";
36
- import "vue-devui-lal/menu/style.css";
37
- import "vue-devui-lal/drawer";
38
- import "vue-devui-lal/layout";
39
- import "vue-devui-lal/drawer/style.css";
40
- import "vue-devui-lal/layout/style.css";
41
- import "vue-devui-lal/radio";
42
- import "@devui-design/icons/icomoon/devui-icon.css";
43
- import "vue-devui-lal/radio/style.css";
44
- import "vue-devui-lal/checkbox";
45
- import "vue-devui-lal/checkbox/style.css";
46
- import "vue-devui-lal/modal";
47
- import "vue-devui-lal/modal/style.css";
1
+ import { z, A, D, y, S, x, F, I, C, H, B } from "./index-C37aHH8x.js";
48
2
  export {
49
3
  z as GitCodeAside,
50
4
  A as GitCodeHeader,
@@ -1,50 +1,9 @@
1
- import { defineComponent, computed, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel } from "./index-eb00e338.js";
1
+ import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
+ import { i as isPhone, u as useModel } from "./index-C37aHH8x.js";
3
3
  import { Notification } from "vue-devui-lal/notification";
4
4
  import { Button } from "vue-devui-lal/button";
5
5
  import "vue-devui-lal/notification/style.css";
6
6
  import "vue-devui-lal/button/style.css";
7
- import "vue-devui-lal/popover";
8
- import "vue-devui-lal/tooltip";
9
- import "vue-devui-lal/textarea";
10
- import "vue-devui-lal/popover/style.css";
11
- import "vue-devui-lal/tooltip/style.css";
12
- import "vue-devui-lal/textarea/style.css";
13
- import "vue-devui-lal/icon";
14
- import "vue-devui-lal/icon/style.css";
15
- import "vue-router";
16
- import "@vueuse/core";
17
- import "vue-devui-lal/avatar";
18
- import "vue-devui-lal/avatar/style.css";
19
- import "vue-devui-lal/dropdown";
20
- import "vue-devui-lal/dropdown/style.css";
21
- import "dayjs";
22
- import "vue-devui-lal/skeleton";
23
- import "vue-devui-lal/skeleton/style.css";
24
- import "vue-devui-lal/message";
25
- import "vue-devui-lal/message/style.css";
26
- import "vue-devui-lal/badge";
27
- import "vue-devui-lal/badge/style.css";
28
- import "vue-devui-lal/tabs/style.css";
29
- import "vue-devui-lal/input";
30
- import "vue-devui-lal/form";
31
- import "vue-devui-lal/input/style.css";
32
- import "vue-devui-lal/form/style.css";
33
- import "vue-devui-lal/select";
34
- import "vue-devui-lal/menu";
35
- import "vue-devui-lal/select/style.css";
36
- import "vue-devui-lal/menu/style.css";
37
- import "vue-devui-lal/drawer";
38
- import "vue-devui-lal/layout";
39
- import "vue-devui-lal/drawer/style.css";
40
- import "vue-devui-lal/layout/style.css";
41
- import "vue-devui-lal/radio";
42
- import "@devui-design/icons/icomoon/devui-icon.css";
43
- import "vue-devui-lal/radio/style.css";
44
- import "vue-devui-lal/checkbox";
45
- import "vue-devui-lal/checkbox/style.css";
46
- import "vue-devui-lal/modal";
47
- import "vue-devui-lal/modal/style.css";
48
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
49
8
  __name: "notice",
50
9
  props: {
@@ -80,7 +39,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
39
  default: withCtx(() => _cache[1] || (_cache[1] = [
81
40
  createTextVNode("忽略")
82
41
  ])),
83
- _: 1
42
+ _: 1,
43
+ __: [1]
84
44
  }, 8, ["size", "onClick"]),
85
45
  createVNode(unref(Button), {
86
46
  variant: "solid",
@@ -91,7 +51,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
51
  default: withCtx(() => _cache[2] || (_cache[2] = [
92
52
  createTextVNode("修改")
93
53
  ])),
94
- _: 1
54
+ _: 1,
55
+ __: [2]
95
56
  }, 8, ["size"])
96
57
  ], 2)
97
58
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",