vue-layout-gitcode 1.5.69 → 1.5.71

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,7 +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 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-Bxhc6nCo.js";
4
- import { t as transWebUrl } from "./transWebUrl-DTXUrWYK.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-Ba99LRw5.js";
5
3
  import { useRouter } from "vue-router";
6
4
  import { Row, Col } from "vue-devui-lal/grid";
7
5
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -192,7 +190,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
192
190
  };
193
191
  }
194
192
  });
195
- const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-vue-layout-gitcode"]]);
193
+ const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-gitcode-layout-lib"]]);
196
194
  const _hoisted_1$5 = { class: "fork-tag" };
197
195
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
198
196
  __name: "index",
@@ -217,7 +215,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
217
215
  };
218
216
  }
219
217
  });
220
- const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-vue-layout-gitcode"]]);
218
+ const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-gitcode-layout-lib"]]);
221
219
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
222
220
  __name: "index",
223
221
  props: {
@@ -263,7 +261,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
263
261
  };
264
262
  }
265
263
  });
266
- const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
264
+ const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-gitcode-layout-lib"]]);
267
265
  const _hoisted_1$4 = { class: "star-count-one" };
268
266
  const _hoisted_2$3 = { key: 0 };
269
267
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
@@ -290,7 +288,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
290
288
  };
291
289
  }
292
290
  });
293
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
291
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
294
292
  const _hoisted_1$3 = {
295
293
  key: 0,
296
294
  class: "github-star-num"
@@ -325,7 +323,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
325
323
  };
326
324
  }
327
325
  });
328
- const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
326
+ const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-gitcode-layout-lib"]]);
329
327
  const _hoisted_1$2 = { class: "repo-card-footer mt-[4px]" };
330
328
  const _hoisted_2$1 = {
331
329
  key: 3,
@@ -417,7 +415,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
417
415
  };
418
416
  }
419
417
  });
420
- const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
418
+ const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-gitcode-layout-lib"]]);
421
419
  const _hoisted_1$1 = { class: "new-tag-content" };
422
420
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
423
421
  __name: "index",
@@ -469,7 +467,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
469
467
  };
470
468
  }
471
469
  });
472
- const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-vue-layout-gitcode"]]);
470
+ const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
473
471
  const _hoisted_1 = ["innerHTML"];
474
472
  const _hoisted_2 = {
475
473
  key: 0,
@@ -706,7 +704,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
706
704
  };
707
705
  }
708
706
  });
709
- const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
707
+ const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
710
708
  export {
711
709
  SearchRepoCard as S,
712
710
  formatNameSpace as f,
@@ -309,10 +309,6 @@ 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
- };
316
312
  bgConfig: {
317
313
  type: PropType<{
318
314
  index_head: string;
@@ -422,10 +418,6 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
422
418
  type: PropType<any[] | undefined>;
423
419
  required: false;
424
420
  };
425
- loginChildComponents: {
426
- type: PropType<any>;
427
- required: true;
428
- };
429
421
  bgConfig: {
430
422
  type: PropType<{
431
423
  index_head: string;
@@ -562,10 +554,8 @@ export declare const Login: DefineComponent<ExtractPropTypes<{
562
554
  declare interface LoginOptions {
563
555
  Authorization?: boolean;
564
556
  type?: 'login' | 'register';
565
- triggerType?: string;
566
- loginTriggerSource?: string;
567
- resetPwdSource?: string;
568
557
  [x: string]: any;
558
+ triggerType?: string;
569
559
  }
570
560
 
571
561
  export declare enum SceneValue {
@@ -607,23 +597,10 @@ export declare const ToolsFloat: DefineComponent<ExtractPropTypes<{
607
597
  } | undefined) => Promise<AxiosResponse<any, any>>;
608
598
  };
609
599
  globalStore: {
610
- type: PropType<{
611
- [key: string]: any;
612
- isSignIn?: boolean | undefined;
613
- }>;
600
+ type: PropType<Object>;
614
601
  required: true;
615
602
  default: () => {};
616
603
  };
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
- };
627
604
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "toggle-growth-center"[], "toggle-growth-center", PublicProps, Readonly<ExtractPropTypes<{
628
605
  sceneValue: {
629
606
  type: PropType<SceneValue>;
@@ -646,35 +623,17 @@ export declare const ToolsFloat: DefineComponent<ExtractPropTypes<{
646
623
  } | undefined) => Promise<AxiosResponse<any, any>>;
647
624
  };
648
625
  globalStore: {
649
- type: PropType<{
650
- [key: string]: any;
651
- isSignIn?: boolean | undefined;
652
- }>;
626
+ type: PropType<Object>;
653
627
  required: true;
654
628
  default: () => {};
655
629
  };
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
- };
666
630
  }>> & Readonly<{
667
631
  "onToggle-growth-center"?: ((...args: any[]) => any) | undefined;
668
632
  }>, {
669
633
  sceneValue: SceneValue;
670
634
  isLogin: boolean;
671
635
  request: Function;
672
- globalStore: {
673
- [key: string]: any;
674
- isSignIn?: boolean | undefined;
675
- };
676
- isRepoPage: boolean | undefined;
677
- isWhiteListRepo: boolean;
636
+ globalStore: Object;
678
637
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
679
638
 
680
639
  export declare function useLogin(request: any, globalStore?: any): {
package/index.js ADDED
@@ -0,0 +1,14 @@
1
+ import { A, B, F, z, S, y, H, J, D, I, C } from "./index-Ba99LRw5.js";
2
+ export {
3
+ A as GitCodeAside,
4
+ B as GitCodeHeader,
5
+ F as GitCodeLayoutEmitter,
6
+ z as Login,
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
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-Bxhc6nCo.js";
2
+ import { i as isPhone, u as useModel } from "./index-Ba99LRw5.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,74 +1,13 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.5.69",
4
- "type": "module",
5
- "files": [
6
- "dist"
7
- ],
8
- "main": "./dist/index.js",
9
- "module": "./dist/index.js",
10
- "types": "./dist/index.d.ts",
11
- "exports": {
12
- ".": {
13
- "import": "./dist/index.js",
14
- "types": "./dist/index.d.ts"
15
- },
16
- "./style.css": "./dist/style.css"
17
- },
18
- "scripts": {
19
- "dev": "vite",
20
- "patch": "npm version patch",
21
- "build": "vite build && node scripts/build.js",
22
- "build:test": "vite build && node scripts/build.js --mode test",
23
- "publish": "cd dist && npm publish",
24
- "build:watch": "vite build --watch",
25
- "preview": "vite preview",
26
- "serve": "vite",
27
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
28
- "i18n-check": "vue-i18n-extract report --vueFiles './src/**/*.?(vue|ts|js)' --languageFiles './src/locales/**/*.json'"
29
- },
30
- "devDependencies": {
31
- "@rushstack/eslint-patch": "^1.2.0",
32
- "@types/js-cookie": "^3.0.6",
33
- "@types/node": "^18.17.1",
34
- "@vitejs/plugin-vue": "^5.1.0",
35
- "@vue/eslint-config-prettier": "^7.1.0",
36
- "@vue/eslint-config-typescript": "^11.0.3",
37
- "autoprefixer": "^10.4.21",
38
- "axios": "^1.8.4",
39
- "eslint": "^8.57.0",
40
- "eslint-config-prettier": "^9.1.0",
41
- "eslint-plugin-prettier": "^5.1.3",
42
- "eslint-plugin-vue": "^9.25.0",
43
- "js-cookie": "^3.0.5",
44
- "postcss": "^8.5.3",
45
- "prettier": "^3.2.5",
46
- "sass": "^1.63.6",
47
- "stylelint-prettier": "^5.0.0",
48
- "tailwindcss": "^3.3.3",
49
- "terser": "^5.4.0",
50
- "typescript": "^4.9.5",
51
- "vite": "^5.1.0",
52
- "vite-plugin-dts": "^2.3.0",
53
- "vite-plugin-vue-devtools": "^7.3.8",
54
- "vue-i18n-extract": "^2.0.7"
55
- },
56
- "peerDependencies": {
57
- "@devui-design/icons": "1.3.0",
58
- "@vueuse/core": "^10.2.1",
59
- "dayjs": "^1.11.9",
60
- "devui-theme": "^0.0.7",
61
- "vue": "^3.3.4",
62
- "vue-devui-lal": "^0.0.24",
63
- "vue-router": "^4.3.1",
64
- "lodash": "^4.17.21",
65
- "lodash-es": "^4.17.21"
66
- },
67
- "dependencies": {
68
- "crypto-js": "^4.1.1",
69
- "dompurify": "^3.2.5",
70
- "libphonenumber-js": "^1.11.11",
71
- "mitt": "^3.0.1",
72
- "vue-i18n": "^9.3.0"
73
- }
74
- }
3
+ "version": "1.5.71",
4
+ "description": "用于 gitcode 站点生产环境使用",
5
+ "main": "index.js",
6
+ "types": "./index.d.ts",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "站内导航侧边栏"
10
+ },
11
+ "author": "lal,nevins",
12
+ "license": "ISC"
13
+ }