vue-layout-gitcode 1.4.3 → 1.4.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,8 +1,8 @@
1
1
  import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
2
2
  import "vue-devui-lal/icon";
3
3
  import "vue-devui-lal/icon/style.css";
4
- import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-Cu2YsLYo.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CLYvYYeS.js";
4
+ import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CoY318UH.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-B9mF4In1.js";
6
6
  import "vue-devui-lal/tooltip";
7
7
  import "vue-devui-lal/tooltip/style.css";
8
8
  import "vue-router";
@@ -1,5 +1,5 @@
1
1
  import { ref, inject, computed, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-Cu2YsLYo.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CoY318UH.js";
3
3
  import { useRoute, useRouter } from "vue-router";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-Cu2YsLYo.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CoY318UH.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "history-list" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
2
- import { G as GIcon, _ as _export_sfc } from "./index-Cu2YsLYo.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-CoY318UH.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "ellipsis" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-CLYvYYeS.js";
3
- import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-Cu2YsLYo.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-B9mF4In1.js";
3
+ import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-CoY318UH.js";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { SkeletonItem } from "vue-devui-lal/skeleton";
6
6
  import "vue-devui-lal/grid/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-Cu2YsLYo.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CoY318UH.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = ["onClick"];
@@ -1,5 +1,5 @@
1
1
  import { inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon } from "./index-Cu2YsLYo.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-CoY318UH.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
@@ -41,7 +41,16 @@ const _sfc_main = {
41
41
  search: props.searchStr
42
42
  }).then((res) => {
43
43
  const data = res.data || {};
44
- searchFileList.value = data.content || [];
44
+ searchFileList.value = data.content.map((item) => {
45
+ return {
46
+ ...item,
47
+ web_url: transformUrl(item.web_url),
48
+ ssh_url_to_repo: transformUrl(item.ssh_url_to_repo),
49
+ http_url_to_repo: transformUrl(item.http_url_to_repo),
50
+ readme_url: transformUrl(item.readme_url),
51
+ avatar_url: transformUrl(item.avatar_url)
52
+ };
53
+ }) || [];
45
54
  }).finally(() => {
46
55
  loading.value = false;
47
56
  });
@@ -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-Cu2YsLYo.js";
2
+ import { d as debounce, f as transferNumber, G as GIcon, s as setLoginTriggerSource, g as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, j as useTimeFormat, L as LANG_KEY, k as LANG_ZH, m as usePageResize, n as isGstarRepo, o as _sfc_main$9, p as isIncubationRepo, q as highlightWords, w as transWebUrl, t as transformUrl, x as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CoY318UH.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";
@@ -499,7 +499,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
499
499
  const { widthType } = usePageResize();
500
500
  const { t: $t } = i18n.global;
501
501
  const handleClick = () => {
502
- window.open(transWebUrl(props.info.web_url, props.urlParams), "_blank");
502
+ window.open(transWebUrl(transformUrl(props.info.web_url), props.urlParams), "_blank");
503
503
  emits("report");
504
504
  _frEventTrack(EVENT_NAME.CLICK_SEARCH_RESULT);
505
505
  };
@@ -18095,13 +18095,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18095
18095
  var _a;
18096
18096
  const layoutConfig2 = useLayoutConfig();
18097
18097
  const { t: $t } = i18n.global;
18098
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BJKhXW9j.js"));
18099
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BtJbErCu.js"));
18100
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CW0SwbrS.js"));
18101
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DIe_i71A.js"));
18102
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Ll-UO5EK.js"));
18103
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-4xjYgyJb.js"));
18104
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BQxZo-VT.js"));
18098
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DwtBtClX.js"));
18099
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-Bad4Nrv9.js"));
18100
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-D_Dx8s5z.js"));
18101
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-oWHTfhKn.js"));
18102
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BDT2924E.js"));
18103
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BrZevEwH.js"));
18104
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DgpU6ybJ.js"));
18105
18105
  const props = __props;
18106
18106
  const repoInfo = inject("repoInfo");
18107
18107
  const orgInfo = inject("orgInfo");
@@ -18711,7 +18711,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18711
18711
  }
18712
18712
  });
18713
18713
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18714
- const NoticeModal = defineAsyncComponent(() => import("./notice-CgbAOXvX.js"));
18714
+ const NoticeModal = defineAsyncComponent(() => import("./notice-B-qUMjco.js"));
18715
18715
  function clearNotice() {
18716
18716
  if (localStorage$2.getItem("validator_email")) {
18717
18717
  localStorage$2.removeItem("validator_email");
@@ -19351,8 +19351,8 @@ const loadUserProjectsInvolved = async (requestFn, params = {}) => {
19351
19351
  var _a;
19352
19352
  return {
19353
19353
  key: item.name,
19354
- web_url: item.web_url,
19355
- avatar: item.avatar,
19354
+ web_url: transformUrl(item.web_url),
19355
+ avatar: transformUrl(item.avatar),
19356
19356
  id: item.id,
19357
19357
  label: item.name,
19358
19358
  namespace: (_a = item.namespace_info) == null ? void 0 : _a.name
@@ -25537,7 +25537,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25537
25537
  }
25538
25538
  });
25539
25539
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25540
- const SlidCaptcha = defineAsyncComponent(() => import("./index-CwMo1Uk5.js"));
25540
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-wqkmW4mU.js"));
25541
25541
  const useSlidCaptcha = () => {
25542
25542
  const { mount, unMount } = usePopup("slid-captcha-popup");
25543
25543
  const open = (config) => {
@@ -27243,16 +27243,17 @@ const index = {
27243
27243
  }
27244
27244
  };
27245
27245
  export {
27246
- GitCodeAside as A,
27247
- GitCodeHeader as B,
27248
- useLogin as C,
27249
- setLayoutConfig as D,
27246
+ _sfc_main as A,
27247
+ GitCodeAside as B,
27248
+ GitCodeHeader as C,
27249
+ useLogin as D,
27250
27250
  EVENT_NAME as E,
27251
- GitCodeLayoutEmitter as F,
27251
+ setLayoutConfig as F,
27252
27252
  GIcon as G,
27253
- currentTheme as H,
27254
- setTheme as I,
27255
- index as J,
27253
+ GitCodeLayoutEmitter as H,
27254
+ currentTheme as I,
27255
+ setTheme as J,
27256
+ index as K,
27256
27257
  LANG_KEY as L,
27257
27258
  REPO_MODULE as R,
27258
27259
  SceneValue as S,
@@ -27263,25 +27264,25 @@ export {
27263
27264
  REPO_TYPE as c,
27264
27265
  debounce$1 as d,
27265
27266
  extractRepoInfoWithURL as e,
27266
- useRequestReport as f,
27267
- useTimeFormat as g,
27267
+ transferNumber as f,
27268
+ useRequestReport as g,
27268
27269
  headRequest as h,
27269
27270
  isPhone as i,
27270
- LANG_ZH as j,
27271
- usePageResize as k,
27271
+ useTimeFormat as j,
27272
+ LANG_ZH as k,
27272
27273
  localStorage$2 as l,
27273
- isGstarRepo as m,
27274
- _sfc_main$w as n,
27275
- isIncubationRepo as o,
27276
- highlightWords as p,
27277
- transWebUrl as q,
27274
+ usePageResize as m,
27275
+ isGstarRepo as n,
27276
+ _sfc_main$w as o,
27277
+ isIncubationRepo as p,
27278
+ highlightWords as q,
27278
27279
  reqCatch as r,
27279
27280
  setLoginTriggerSource as s,
27280
- transferNumber as t,
27281
+ transformUrl as t,
27281
27282
  useModel as u,
27282
27283
  vElementExposure as v,
27283
- _frEventTrack as w,
27284
- useLayoutConfig as x,
27285
- ToolsFloat as y,
27286
- _sfc_main as z
27284
+ transWebUrl as w,
27285
+ _frEventTrack as x,
27286
+ useLayoutConfig as y,
27287
+ ToolsFloat as z
27287
27288
  };
@@ -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-Cu2YsLYo.js";
3
+ import { y as useLayoutConfig, _ as _export_sfc } from "./index-CoY318UH.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
package/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { A, B, F, z, S, y, H, J, D, I, C } from "./index-Cu2YsLYo.js";
1
+ import { B, C, H, A, S, z, I, K, F, J, D } from "./index-CoY318UH.js";
2
2
  export {
3
- A as GitCodeAside,
4
- B as GitCodeHeader,
5
- F as GitCodeLayoutEmitter,
6
- z as Login,
3
+ B as GitCodeAside,
4
+ C as GitCodeHeader,
5
+ H as GitCodeLayoutEmitter,
6
+ A 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
+ z as ToolsFloat,
9
+ I as currentTheme,
10
+ K as default,
11
+ F as setLayoutConfig,
12
+ J as setTheme,
13
+ D 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-Cu2YsLYo.js";
2
+ import { i as isPhone, u as useModel } from "./index-CoY318UH.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.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",