vue-layout-gitcode 1.12.15-beta.46 → 1.12.15-beta.48

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,25 +1,17 @@
1
1
  import { defineComponent, inject, openBlock, createElementBlock, Fragment, renderList, withDirectives, createBlock, unref, ref, watch, createElementVNode, createVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { h as headRequest, R as REPO_MODULE, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL, a as i18n, G as GIcon } from "./index-DUe_D3tb.js";
3
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-DVPLhJis.js";
2
+ import { h as headRequest, R as REPO_MODULE, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL, a as i18n, G as GIcon } from "./index-oglgxmFJ.js";
3
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-NVskwkzo.js";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
6
6
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7
7
  __name: "SearchRepoCardList",
8
8
  props: {
9
- dataList: {
10
- type: Array,
11
- default: () => []
12
- },
13
- searchStr: {
14
- type: String,
15
- default: ""
16
- },
17
- type: {
18
- type: String,
19
- default: ""
20
- }
9
+ dataList: { default: () => [] },
10
+ searchStr: { default: "" },
11
+ type: { default: "" }
21
12
  },
22
13
  setup(__props) {
14
+ const props = __props;
23
15
  const API = headRequest(inject("request"));
24
16
  const { triggerReport } = useReportRepo({ moduleName: REPO_MODULE.SEARCH_SUGGESTION_CARD }, API.viewReport);
25
17
  const useReport = inject("useReport");
@@ -27,19 +19,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
27
19
  useReport(REPO_EVENT.CLICK, { module_name: REPO_MODULE.SEARCH_SUGGESTION_CARD, repo_id: item.id });
28
20
  };
29
21
  return (_ctx, _cache) => {
30
- return openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataList, (item, index) => {
22
+ return openBlock(true), createElementBlock(Fragment, null, renderList(props.dataList, (item, index) => {
31
23
  return withDirectives((openBlock(), createBlock(SearchRepoCard, {
32
- key: item.id,
24
+ key: `${item.searchType || props.type}-${item.id}`,
33
25
  class: "search-repo-list-card",
34
26
  info: { ...item, index },
35
- keyword: __props.searchStr,
27
+ keyword: props.searchStr,
36
28
  hover: "",
29
+ noborder: false,
37
30
  hideTopicTags: "",
38
31
  hideStarBtn: "",
39
32
  hideFooter: "",
40
33
  hideDescription: "",
41
34
  onReport: () => handleReport(item),
42
- cardType: item.searchType || __props.type,
35
+ cardType: item.searchType || props.type,
43
36
  "url-params": { source_module: "search_project" }
44
37
  }, null, 8, ["info", "keyword", "onReport", "cardType"])), [
45
38
  [unref(vElementExposure), { trigger: (type) => unref(triggerReport)(type, item) }]
@@ -50,17 +43,21 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
50
43
  });
51
44
  const SearchRepoCardList = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-vue-layout-gitcode"]]);
52
45
  const normalizeOrigin = (origin) => origin.replace(/\/+$/, "");
53
- const convertDataList = (dataList, searchType, origin) => {
46
+ const getStringValue = (value) => typeof value === "string" ? value : "";
47
+ const convertDataList = ({ dataList, searchType, origin }) => {
54
48
  if (!Array.isArray(dataList)) {
55
- return [];
49
+ return { items: [] };
56
50
  }
57
51
  const baseOrigin = normalizeOrigin(origin);
58
- return dataList.slice(0, 3).filter((item) => Boolean(item) && typeof item === "object").map((item) => {
52
+ const items = dataList.slice(0, 3).filter((item) => Boolean(item) && typeof item === "object" && !Array.isArray(item)).map((item) => {
59
53
  const isGitcodeRepo = REPO_TYPE.GITCODE === item.is_mirrors;
60
- const importedRepoName = item.import_url ? extractRepoInfoWithURL(item.import_url) : "";
61
- const repoName = (isGitcodeRepo ? item.name_with_namespace : importedRepoName) || item.name_with_namespace || item.path_with_namespace || "";
54
+ const importUrl = getStringValue(item.import_url);
55
+ const importedRepoName = importUrl ? extractRepoInfoWithURL(importUrl) : "";
56
+ const nameWithNamespace = getStringValue(item.name_with_namespace);
57
+ const pathWithNamespace = getStringValue(item.path_with_namespace);
58
+ const repoName = (isGitcodeRepo ? nameWithNamespace : importedRepoName) || nameWithNamespace || pathWithNamespace;
62
59
  const displayName = formatNameSpace(repoName).join("/");
63
- const path = `${baseOrigin}/${item.path_with_namespace || ""}`;
60
+ const path = `${baseOrigin}/${pathWithNamespace}`;
64
61
  return {
65
62
  ...item,
66
63
  searchType,
@@ -69,12 +66,15 @@ const convertDataList = (dataList, searchType, origin) => {
69
66
  web_url: path
70
67
  };
71
68
  });
69
+ return { items };
72
70
  };
73
- const mergeSearchSuggestions = (response = {}, origin) => [
74
- ...convertDataList(response.recommend_project, "repo", origin),
75
- ...convertDataList(response.recommend_model, "model", origin),
76
- ...convertDataList(response.recommend_dataset, "dataset", origin)
77
- ];
71
+ const mergeSearchSuggestions = ({ response = {}, origin }) => ({
72
+ items: [
73
+ ...convertDataList({ dataList: response.recommend_project, searchType: "repo", origin }).items,
74
+ ...convertDataList({ dataList: response.recommend_model, searchType: "model", origin }).items,
75
+ ...convertDataList({ dataList: response.recommend_dataset, searchType: "dataset", origin }).items
76
+ ]
77
+ });
78
78
  const _hoisted_1 = {
79
79
  key: 0,
80
80
  class: "history-list-project history-list-project--padded"
@@ -100,9 +100,9 @@ const _sfc_main = {
100
100
  return;
101
101
  }
102
102
  try {
103
- useReport == null ? void 0 : useReport("search-project", {});
103
+ useReport("search-project", {});
104
104
  const res = await API.getGloabarSearchKeyLink({ q: props.searchStr });
105
- searchSuggestionList.value = mergeSearchSuggestions(res.data || {}, origin);
105
+ searchSuggestionList.value = mergeSearchSuggestions({ response: res.data || {}, origin }).items;
106
106
  } catch (error) {
107
107
  console.error("Failed to fetch search results:", error);
108
108
  searchSuggestionList.value = [];
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, computed, ref, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, createTextVNode, toDisplayString, renderSlot } from "vue";
2
- import { a as i18n, z as useLayoutConfig, B as ThemeType, C as currentTheme, L as LANG_ZH, D as LANG_EN, F as getLocaleLang, G as GIcon, H as emitEvent, b as REPO_EVENT, I as ASIDE_MENU_REPO, J as isHttps, K as navigateWithMigrationGuard, _ as _export_sfc } from "./index-DUe_D3tb.js";
2
+ import { a as i18n, z as useLayoutConfig, B as ThemeType, C as currentTheme, L as LANG_ZH, D as LANG_EN, F as getLocaleLang, G as GIcon, H as emitEvent, b as REPO_EVENT, I as ASIDE_MENU_REPO, J as isHttps, K as navigateWithMigrationGuard, _ as _export_sfc } from "./index-oglgxmFJ.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Popover } from "vue-devui-lal/popover";
5
5
  import "vue-devui-lal/popover/style.css";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, watch, computed, openBlock, createElementBlock, Fragment, createElementVNode, toDisplayString, unref, createVNode, withModifiers, normalizeClass, withCtx, renderList, createBlock, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
- import { a as i18n, z as useLayoutConfig, G as GIcon, t as transformUrl, N as _sfc_main$1, O as loadAsideData, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, M as asideRequest, _ as _export_sfc } from "./index-DUe_D3tb.js";
2
+ import { a as i18n, z as useLayoutConfig, G as GIcon, t as transformUrl, N as _sfc_main$1, O as loadAsideData, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, M as asideRequest, _ as _export_sfc } from "./index-oglgxmFJ.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BRQANkzP.js";
4
+ import { t as transWebUrl } from "./transWebUrl-C4rUAe6a.js";
5
5
  import { Select, Option } from "vue-devui-lal/select";
6
6
  import { Input } from "vue-devui-lal/input";
7
7
  import { Skeleton } from "vue-devui-lal/skeleton";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, computed, watch, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, createVNode, withModifiers, normalizeClass, withCtx, createBlock, createCommentVNode, Fragment, renderList, createTextVNode, withDirectives, vShow } from "vue";
2
- import { a as i18n, z as useLayoutConfig, t as transformUrl, G as GIcon, M as asideRequest, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-DUe_D3tb.js";
2
+ import { a as i18n, z as useLayoutConfig, t as transformUrl, G as GIcon, M as asideRequest, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-oglgxmFJ.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BRQANkzP.js";
4
+ import { t as transWebUrl } from "./transWebUrl-C4rUAe6a.js";
5
5
  import { Input } from "vue-devui-lal/input";
6
6
  import { Skeleton } from "vue-devui-lal/skeleton";
7
7
  import { MenuItem } from "vue-devui-lal/menu";
@@ -1,5 +1,5 @@
1
1
  import { ref, inject, computed, withDirectives, openBlock, createElementBlock, 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-DUe_D3tb.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-oglgxmFJ.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, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers, createCommentVNode } from "vue";
2
- import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-DUe_D3tb.js";
2
+ import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-oglgxmFJ.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,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, onMounted, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./useReportRepo-DVPLhJis.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-DUe_D3tb.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./useReportRepo-NVskwkzo.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-oglgxmFJ.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, openBlock, createElementBlock, Fragment, renderList, createElementVNode, createVNode, toDisplayString, createCommentVNode, unref } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DUe_D3tb.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-oglgxmFJ.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, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-DUe_D3tb.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-oglgxmFJ.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-project history-list-project--padded" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, nextTick, onUnmounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { y as slidCaptchaManager, z as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-DUe_D3tb.js";
2
+ import { y as slidCaptchaManager, z as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-oglgxmFJ.js";
3
3
  import { FixedOverlay } from "vue-devui-lal/overlay";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const TARGET_TEXT = "Click in order:";
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
8
8
  import "vue-devui-lal/message/style.css";
9
9
  import { FixedOverlay } from "vue-devui-lal/overlay";
10
10
  import "vue-devui-lal/overlay/style.css";
11
- import { a as i18n, k as usePageResize, A as isZh, _ as _export_sfc } from "./index-DUe_D3tb.js";
11
+ import { a as i18n, k as usePageResize, A as isZh, _ as _export_sfc } from "./index-oglgxmFJ.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {
@@ -578,7 +578,7 @@ const LOGO_MAP = {
578
578
  aiLogoDark: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-dark_atomgit.png"
579
579
  }
580
580
  };
581
- /*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */
581
+ /*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE */
582
582
  function _arrayLikeToArray$4(r, a) {
583
583
  (null == a || a > r.length) && (a = r.length);
584
584
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
@@ -910,7 +910,7 @@ const _resolveObjectOption = function _resolveObjectOption2(cfg, key, makeFallba
910
910
  function createDOMPurify() {
911
911
  let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
912
912
  const DOMPurify = (root) => createDOMPurify(root);
913
- DOMPurify.version = "3.4.14";
913
+ DOMPurify.version = "3.4.15";
914
914
  DOMPurify.removed = [];
915
915
  if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
916
916
  DOMPurify.isSupported = false;
@@ -927,6 +927,7 @@ function createDOMPurify() {
927
927
  const ElementPrototype = Element.prototype;
928
928
  const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
929
929
  const remove = lookupGetter(ElementPrototype, "remove");
930
+ const removeAttributeNode = lookupGetter(ElementPrototype, "removeAttributeNode");
930
931
  const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
931
932
  const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
932
933
  const getParentNode = lookupGetter(ElementPrototype, "parentNode");
@@ -1360,7 +1361,7 @@ function createDOMPurify() {
1360
1361
  };
1361
1362
  const _stripAttributeNode = function _stripAttributeNode2(element, attribute, name) {
1362
1363
  try {
1363
- element.removeAttributeNode(attribute);
1364
+ removeAttributeNode(element, attribute);
1364
1365
  } catch (_) {
1365
1366
  try {
1366
1367
  element.removeAttribute(name);
@@ -1408,7 +1409,7 @@ function createDOMPurify() {
1408
1409
  });
1409
1410
  try {
1410
1411
  if (attr) {
1411
- element.removeAttributeNode(attr);
1412
+ removeAttributeNode(element, attr);
1412
1413
  } else {
1413
1414
  element.removeAttribute(name);
1414
1415
  }
@@ -1596,7 +1597,16 @@ function createDOMPurify() {
1596
1597
  // makes the direct read diverge from the cached read; a clean form
1597
1598
  // (same-realm OR foreign-realm) has both reads pointing at the same
1598
1599
  // canonical NamedNodeMap.
1599
- element.attributes !== getAttributes(element) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
1600
+ element.attributes !== getAttributes(element) || typeof element.removeAttribute !== "function" || // A form descendant named "removeAttributeNode" or "getAttributeNode"
1601
+ // shadows these Attr-node methods via [LegacyOverrideBuiltIns].
1602
+ // _removeAttribute() / _stripAttributeNode() reach for
1603
+ // element.removeAttributeNode(attr) first; when it is shadowed the call
1604
+ // throws and the name-based fallback element.removeAttribute(name)
1605
+ // ASCII-lowercases its lookup key in an HTML document, silently missing
1606
+ // a case-preserved event-handler attribute (e.g. an ONANIMATIONSTART
1607
+ // that reached the sanitizer through an XML/XHTML parse). Flag the form
1608
+ // so it is removed wholesale, exactly as for the other shadowed methods.
1609
+ typeof element.removeAttributeNode !== "function" || typeof element.getAttributeNode !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
1600
1610
  // returns the integer 1 for any Element regardless of realm; direct
1601
1611
  // read on a clobbered form (e.g. <input name="nodeType">) returns
1602
1612
  // the named child element. Cheap addition — nodeType is read from
@@ -1822,11 +1832,12 @@ function createDOMPurify() {
1822
1832
  }
1823
1833
  if (_isClobbered(currentNode)) {
1824
1834
  _forceRemove(currentNode);
1825
- } else {
1826
- arrayPop(DOMPurify.removed);
1835
+ return false;
1827
1836
  }
1837
+ return true;
1828
1838
  } catch (_) {
1829
1839
  _removeAttribute(name, currentNode);
1840
+ return false;
1830
1841
  }
1831
1842
  };
1832
1843
  const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
@@ -1851,6 +1862,7 @@ function createDOMPurify() {
1851
1862
  const lcName = transformCaseFunc(name);
1852
1863
  const initValue = attrValue;
1853
1864
  let value = name === "value" ? initValue : stringTrim(initValue);
1865
+ let recreatedNamedProp = false;
1854
1866
  hookEvent.attrName = lcName;
1855
1867
  hookEvent.attrValue = value;
1856
1868
  hookEvent.keepAttr = true;
@@ -1860,6 +1872,7 @@ function createDOMPurify() {
1860
1872
  if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name") && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
1861
1873
  _removeAttribute(name, currentNode, attr);
1862
1874
  value = SANITIZE_NAMED_PROPS_PREFIX + value;
1875
+ recreatedNamedProp = true;
1863
1876
  }
1864
1877
  if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
1865
1878
  _removeAttribute(name, currentNode, attr);
@@ -1889,7 +1902,10 @@ function createDOMPurify() {
1889
1902
  }
1890
1903
  value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
1891
1904
  if (value !== initValue) {
1892
- _setAttributeValue(currentNode, name, namespaceURI, value);
1905
+ const cleanWrite = _setAttributeValue(currentNode, name, namespaceURI, value);
1906
+ if (cleanWrite && recreatedNamedProp) {
1907
+ arrayPop(DOMPurify.removed);
1908
+ }
1893
1909
  }
1894
1910
  }
1895
1911
  _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
@@ -2027,7 +2043,7 @@ function createDOMPurify() {
2027
2043
  } else {
2028
2044
  body.appendChild(importedNode);
2029
2045
  }
2030
- _sanitizeAttachedShadowRoots(importedNode);
2046
+ _sanitizeAttachedShadowRoots(body);
2031
2047
  } else {
2032
2048
  if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes
2033
2049
  dirty.indexOf("<") === -1) {
@@ -17299,12 +17315,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17299
17315
  setup(__props) {
17300
17316
  const layoutConfig2 = useLayoutConfig();
17301
17317
  const { t: $t } = i18n.global;
17302
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CUo9HKZg.js"));
17303
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-11OKBd5O.js"));
17304
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Da1RZAKG.js"));
17305
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DY1-q7Dm.js"));
17306
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CRD8vYLp.js"));
17307
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-8-eRMRkX.js"));
17318
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CaIZni-C.js"));
17319
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-DBU5DMOj.js"));
17320
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BLFm4iwc.js"));
17321
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-IdXbhtN1.js"));
17322
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Dvh7ngu5.js"));
17323
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DTQt1DB4.js"));
17308
17324
  const props = __props;
17309
17325
  const repoInfo = inject("repoInfo");
17310
17326
  const orgInfo = inject("orgInfo");
@@ -18632,7 +18648,7 @@ const vElementExposure = {
18632
18648
  beforeUnmount() {
18633
18649
  }
18634
18650
  };
18635
- const NoticeModal = defineAsyncComponent(() => import("./notice-F_Rlk1uj.js"));
18651
+ const NoticeModal = defineAsyncComponent(() => import("./notice-srYZBv1G.js"));
18636
18652
  function clearNotice() {
18637
18653
  if (localStorage$2.getItem("validator_email")) {
18638
18654
  localStorage$2.removeItem("validator_email");
@@ -21056,9 +21072,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
21056
21072
  const layoutConfig2 = useLayoutConfig();
21057
21073
  const { t: t2 } = i18n.global;
21058
21074
  const route = useRoute();
21059
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-CIXrRuAs.js"));
21060
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-elZE2Sq_.js"));
21061
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CHBCQxNT.js"));
21075
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-Dp65SK91.js"));
21076
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DQsGq4m0.js"));
21077
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BxRlYnoF.js"));
21062
21078
  const props = __props;
21063
21079
  const useReport2 = inject("useReport");
21064
21080
  const userInfo = inject("userInfo");
@@ -27542,7 +27558,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
27542
27558
  __publicField(_SlidCaptchaManager, "instance");
27543
27559
  let SlidCaptchaManager = _SlidCaptchaManager;
27544
27560
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
27545
- const SlidCaptcha = defineAsyncComponent(() => import("./index-lJ94iEJ8.js"));
27561
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-BhGgHG6v.js"));
27546
27562
  const useSlidCaptcha = () => {
27547
27563
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
27548
27564
  const open = (config) => {
@@ -27572,7 +27588,7 @@ const useSlidCaptcha = () => {
27572
27588
  close
27573
27589
  };
27574
27590
  };
27575
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-CLmiFFtl.js"));
27591
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CNYp05iL.js"));
27576
27592
  const useYunpianCaptcha = () => {
27577
27593
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
27578
27594
  const open = (config) => {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, C, a5, a6, a7, a8 } from "./index-DUe_D3tb.js";
1
+ import { P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, C, a5, a6, a7, a8 } from "./index-oglgxmFJ.js";
2
2
  export {
3
3
  P as AsideFooterTools,
4
4
  Q as AtomCodeLauncher,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-DUe_D3tb.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-oglgxmFJ.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.12.15-beta.46",
3
+ "version": "1.12.15-beta.48",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
- import { z as useLayoutConfig } from "./index-DUe_D3tb.js";
1
+ import { z as useLayoutConfig } from "./index-oglgxmFJ.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, toDisplayString, unref, useModel, ref, watch, openBlock, createElementBlock, createVNode, normalizeClass, withDirectives, createElementVNode, vShow, mergeModels, inject, withModifiers, createBlock, Fragment, computed, normalizeStyle, createCommentVNode, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive, watchEffect } from "vue";
2
- import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, r as reqCatch, f as useRequestReport, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, o as _sfc_main$b, p as isIncubationRepo, q as highlightWords, t as transformUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, x as LANG_KEY } from "./index-DUe_D3tb.js";
3
- import { t as transWebUrl } from "./transWebUrl-BRQANkzP.js";
2
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, r as reqCatch, f as useRequestReport, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, o as _sfc_main$b, p as isIncubationRepo, q as highlightWords, t as transformUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, x as LANG_KEY } from "./index-oglgxmFJ.js";
3
+ import { t as transWebUrl } from "./transWebUrl-C4rUAe6a.js";
4
4
  import { useRouter } from "vue-router";
5
5
  import { Row, Col } from "vue-devui-lal/grid";
6
6
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";