vue-layout-gitcode 1.5.16 → 1.5.17

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,5 @@
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-CilnhoIm.js";
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-BC7yRqLn.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";
@@ -461,7 +461,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
461
461
  default: withCtx(() => [
462
462
  _cache[0] || (_cache[0] = createElementVNode("div", { class: "new-tag w-[32px] h-[15px] text-[9px] text-[#ffffff] flex items-center justify-center leading-[1]" }, "New", -1))
463
463
  ]),
464
- _: 1
464
+ _: 1,
465
+ __: [0]
465
466
  })) : createCommentVNode("", true);
466
467
  };
467
468
  }
@@ -605,7 +606,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
605
606
  default: withCtx(() => _cache[0] || (_cache[0] = [
606
607
  createTextVNode("G-Star ")
607
608
  ])),
608
- _: 1
609
+ _: 1,
610
+ __: [0]
609
611
  }, 8, ["message"])
610
612
  ])) : createCommentVNode("", true),
611
613
  unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
@@ -618,7 +620,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
618
620
  default: withCtx(() => _cache[1] || (_cache[1] = [
619
621
  createTextVNode(" G-Star ")
620
622
  ])),
621
- _: 1
623
+ _: 1,
624
+ __: [1]
622
625
  }, 8, ["message"])
623
626
  ])) : createCommentVNode("", true),
624
627
  createVNode(NewTag, {
package/index.d.ts CHANGED
@@ -597,10 +597,23 @@ export declare const ToolsFloat: DefineComponent<ExtractPropTypes<{
597
597
  } | undefined) => Promise<AxiosResponse<any, any>>;
598
598
  };
599
599
  globalStore: {
600
- type: PropType<Object>;
600
+ type: PropType<{
601
+ [key: string]: any;
602
+ isSignIn?: boolean | undefined;
603
+ }>;
601
604
  required: true;
602
605
  default: () => {};
603
606
  };
607
+ isRepoPage: {
608
+ type: PropType<boolean | undefined>;
609
+ required: false;
610
+ default: boolean;
611
+ };
612
+ isWhiteListRepo: {
613
+ type: PropType<boolean>;
614
+ required: true;
615
+ default: boolean;
616
+ };
604
617
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "toggle-growth-center"[], "toggle-growth-center", PublicProps, Readonly<ExtractPropTypes<{
605
618
  sceneValue: {
606
619
  type: PropType<SceneValue>;
@@ -623,17 +636,35 @@ export declare const ToolsFloat: DefineComponent<ExtractPropTypes<{
623
636
  } | undefined) => Promise<AxiosResponse<any, any>>;
624
637
  };
625
638
  globalStore: {
626
- type: PropType<Object>;
639
+ type: PropType<{
640
+ [key: string]: any;
641
+ isSignIn?: boolean | undefined;
642
+ }>;
627
643
  required: true;
628
644
  default: () => {};
629
645
  };
646
+ isRepoPage: {
647
+ type: PropType<boolean | undefined>;
648
+ required: false;
649
+ default: boolean;
650
+ };
651
+ isWhiteListRepo: {
652
+ type: PropType<boolean>;
653
+ required: true;
654
+ default: boolean;
655
+ };
630
656
  }>> & Readonly<{
631
657
  "onToggle-growth-center"?: ((...args: any[]) => any) | undefined;
632
658
  }>, {
633
659
  sceneValue: SceneValue;
634
660
  isLogin: boolean;
635
661
  request: Function;
636
- globalStore: Object;
662
+ globalStore: {
663
+ [key: string]: any;
664
+ isSignIn?: boolean | undefined;
665
+ };
666
+ isRepoPage: boolean | undefined;
667
+ isWhiteListRepo: boolean;
637
668
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
638
669
 
639
670
  export declare function useLogin(request: any, globalStore?: any): {
package/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { H, I, M, F, S, D, z, O, K, N, J } from "./index-CilnhoIm.js";
1
+ import { A, B, F, z, S, y, H, J, D, I, C } from "./index-BC7yRqLn.js";
2
2
  export {
3
- H as GitCodeAside,
4
- I as GitCodeHeader,
5
- M as GitCodeLayoutEmitter,
6
- F as Login,
3
+ A as GitCodeAside,
4
+ B as GitCodeHeader,
5
+ F as GitCodeLayoutEmitter,
6
+ z as Login,
7
7
  S as SceneValue,
8
- D as ToolsFloat,
9
- z as currentTheme,
10
- O as default,
11
- K as setLayoutConfig,
12
- N as setTheme,
13
- J as useLogin
8
+ y as ToolsFloat,
9
+ H as currentTheme,
10
+ J as default,
11
+ D as setLayoutConfig,
12
+ I as setTheme,
13
+ C 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-CilnhoIm.js";
2
+ import { i as isPhone, u as useModel } from "./index-BC7yRqLn.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";
@@ -39,7 +39,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
39
  default: withCtx(() => _cache[1] || (_cache[1] = [
40
40
  createTextVNode("忽略")
41
41
  ])),
42
- _: 1
42
+ _: 1,
43
+ __: [1]
43
44
  }, 8, ["size", "onClick"]),
44
45
  createVNode(unref(Button), {
45
46
  variant: "solid",
@@ -50,7 +51,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
51
  default: withCtx(() => _cache[2] || (_cache[2] = [
51
52
  createTextVNode("修改")
52
53
  ])),
53
- _: 1
54
+ _: 1,
55
+ __: [2]
54
56
  }, 8, ["size"])
55
57
  ], 2)
56
58
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.5.16",
3
+ "version": "1.5.17",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",