vue-layout-gitcode 1.5.71 → 1.5.72

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,5 +1,7 @@
1
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, withCtx, reactive } 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$9, o as isIncubationRepo, p as highlightWords, q as transWebUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-Ba99LRw5.js";
2
+ import debounce from "lodash/debounce";
3
+ import { t as transferNumber, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$9, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-B66_WJIL.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CdGkJDeO.js";
3
5
  import { useRouter } from "vue-router";
4
6
  import { Row, Col } from "vue-devui-lal/grid";
5
7
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -190,7 +192,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
190
192
  };
191
193
  }
192
194
  });
193
- const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-gitcode-layout-lib"]]);
195
+ const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-vue-layout-gitcode"]]);
194
196
  const _hoisted_1$5 = { class: "fork-tag" };
195
197
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
196
198
  __name: "index",
@@ -215,7 +217,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
215
217
  };
216
218
  }
217
219
  });
218
- const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-gitcode-layout-lib"]]);
220
+ const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-vue-layout-gitcode"]]);
219
221
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
220
222
  __name: "index",
221
223
  props: {
@@ -261,7 +263,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
261
263
  };
262
264
  }
263
265
  });
264
- const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-gitcode-layout-lib"]]);
266
+ const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
265
267
  const _hoisted_1$4 = { class: "star-count-one" };
266
268
  const _hoisted_2$3 = { key: 0 };
267
269
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
@@ -288,7 +290,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
288
290
  };
289
291
  }
290
292
  });
291
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
293
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
292
294
  const _hoisted_1$3 = {
293
295
  key: 0,
294
296
  class: "github-star-num"
@@ -323,7 +325,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
323
325
  };
324
326
  }
325
327
  });
326
- const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-gitcode-layout-lib"]]);
328
+ const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
327
329
  const _hoisted_1$2 = { class: "repo-card-footer mt-[4px]" };
328
330
  const _hoisted_2$1 = {
329
331
  key: 3,
@@ -415,7 +417,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
415
417
  };
416
418
  }
417
419
  });
418
- const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-gitcode-layout-lib"]]);
420
+ const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
419
421
  const _hoisted_1$1 = { class: "new-tag-content" };
420
422
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
421
423
  __name: "index",
@@ -467,7 +469,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
467
469
  };
468
470
  }
469
471
  });
470
- const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
472
+ const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-vue-layout-gitcode"]]);
471
473
  const _hoisted_1 = ["innerHTML"];
472
474
  const _hoisted_2 = {
473
475
  key: 0,
@@ -704,7 +706,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
704
706
  };
705
707
  }
706
708
  });
707
- const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
709
+ const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
708
710
  export {
709
711
  SearchRepoCard as S,
710
712
  formatNameSpace as f,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
2
  import { FixedOverlay } from "vue-devui-lal/overlay";
3
- import { x as useLayoutConfig, _ as _export_sfc } from "./index-Ba99LRw5.js";
3
+ import { q as useLayoutConfig, _ as _export_sfc } from "./index-B66_WJIL.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  };
56
56
  }
57
57
  });
58
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
58
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
59
59
  export {
60
60
  index as default
61
61
  };
package/index.d.ts CHANGED
@@ -309,6 +309,10 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
309
309
  type: PropType<any[] | undefined>;
310
310
  required: false;
311
311
  };
312
+ loginChildComponents: {
313
+ type: PropType<any>;
314
+ required: true;
315
+ };
312
316
  bgConfig: {
313
317
  type: PropType<{
314
318
  index_head: string;
@@ -418,6 +422,10 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
418
422
  type: PropType<any[] | undefined>;
419
423
  required: false;
420
424
  };
425
+ loginChildComponents: {
426
+ type: PropType<any>;
427
+ required: true;
428
+ };
421
429
  bgConfig: {
422
430
  type: PropType<{
423
431
  index_head: string;
@@ -554,8 +562,10 @@ export declare const Login: DefineComponent<ExtractPropTypes<{
554
562
  declare interface LoginOptions {
555
563
  Authorization?: boolean;
556
564
  type?: 'login' | 'register';
557
- [x: string]: any;
558
565
  triggerType?: string;
566
+ loginTriggerSource?: string;
567
+ resetPwdSource?: string;
568
+ [x: string]: any;
559
569
  }
560
570
 
561
571
  export declare enum SceneValue {
@@ -597,10 +607,23 @@ export declare const ToolsFloat: DefineComponent<ExtractPropTypes<{
597
607
  } | undefined) => Promise<AxiosResponse<any, any>>;
598
608
  };
599
609
  globalStore: {
600
- type: PropType<Object>;
610
+ type: PropType<{
611
+ [key: string]: any;
612
+ isSignIn?: boolean | undefined;
613
+ }>;
601
614
  required: true;
602
615
  default: () => {};
603
616
  };
617
+ isRepoPage: {
618
+ type: PropType<boolean | undefined>;
619
+ required: false;
620
+ default: boolean;
621
+ };
622
+ isWhiteListRepo: {
623
+ type: PropType<boolean>;
624
+ required: true;
625
+ default: boolean;
626
+ };
604
627
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "toggle-growth-center"[], "toggle-growth-center", PublicProps, Readonly<ExtractPropTypes<{
605
628
  sceneValue: {
606
629
  type: PropType<SceneValue>;
@@ -623,17 +646,35 @@ export declare const ToolsFloat: DefineComponent<ExtractPropTypes<{
623
646
  } | undefined) => Promise<AxiosResponse<any, any>>;
624
647
  };
625
648
  globalStore: {
626
- type: PropType<Object>;
649
+ type: PropType<{
650
+ [key: string]: any;
651
+ isSignIn?: boolean | undefined;
652
+ }>;
627
653
  required: true;
628
654
  default: () => {};
629
655
  };
656
+ isRepoPage: {
657
+ type: PropType<boolean | undefined>;
658
+ required: false;
659
+ default: boolean;
660
+ };
661
+ isWhiteListRepo: {
662
+ type: PropType<boolean>;
663
+ required: true;
664
+ default: boolean;
665
+ };
630
666
  }>> & Readonly<{
631
667
  "onToggle-growth-center"?: ((...args: any[]) => any) | undefined;
632
668
  }>, {
633
669
  sceneValue: SceneValue;
634
670
  isLogin: boolean;
635
671
  request: Function;
636
- globalStore: Object;
672
+ globalStore: {
673
+ [key: string]: any;
674
+ isSignIn?: boolean | undefined;
675
+ };
676
+ isRepoPage: boolean | undefined;
677
+ isWhiteListRepo: boolean;
637
678
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
638
679
 
639
680
  export declare function useLogin(request: any, globalStore?: any): {
package/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { A, B, F, z, S, y, H, J, D, I, C } from "./index-Ba99LRw5.js";
1
+ import { J, K, O, I, S, H, x, Q, N, P, M } from "./index-B66_WJIL.js";
2
2
  export {
3
- A as GitCodeAside,
4
- B as GitCodeHeader,
5
- F as GitCodeLayoutEmitter,
6
- z as Login,
3
+ J as GitCodeAside,
4
+ K as GitCodeHeader,
5
+ O as GitCodeLayoutEmitter,
6
+ I as Login,
7
7
  S as SceneValue,
8
- y as ToolsFloat,
9
- H as currentTheme,
10
- J as default,
11
- D as setLayoutConfig,
12
- I as setTheme,
13
- C as useLogin
8
+ H as ToolsFloat,
9
+ x as currentTheme,
10
+ Q as default,
11
+ N as setLayoutConfig,
12
+ P as setTheme,
13
+ M as useLogin
14
14
  };
@@ -1,5 +1,5 @@
1
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-Ba99LRw5.js";
2
+ import { i as isPhone, u as useModel } from "./index-B66_WJIL.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.5.71",
3
+ "version": "1.5.72",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",