vue-layout-gitcode 1.0.0 → 1.0.1

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,6 +1,6 @@
1
1
  import { inject, ref, watch, onMounted, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, unref, createVNode, createCommentVNode } from "vue";
2
- import { h as headRequest, R as REPO_MODULE, t as transWebUrl, I as Icon, a as useReport, b as REPO_EVENT, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-36595f17.js";
3
- import { u as useReportRepo, f as formatNameSpace } from "./formatNameSpace-d87daa04.js";
2
+ import { h as headRequest, R as REPO_MODULE, t as transWebUrl, I as Icon, a as useReport, b as REPO_EVENT, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-74e529af.js";
3
+ import { u as useReportRepo, f as formatNameSpace } from "./formatNameSpace-24f91ed9.js";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
6
6
  import "vue-devui-lal/button";
@@ -114,7 +114,7 @@ const _sfc_main = {
114
114
  });
115
115
  return (_ctx, _cache) => {
116
116
  return searchFileList.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
117
- createElementVNode("p", _hoisted_2, toDisplayString(_ctx.$t("header.repo")), 1),
117
+ createElementVNode("p", _hoisted_2, toDisplayString(_ctx.$t("gitCodeLayout.header.repo")), 1),
118
118
  (openBlock(true), createElementBlock(Fragment, null, renderList(searchFileList.value, (item) => {
119
119
  return openBlock(), createElementBlock("a", {
120
120
  href: unref(transWebUrl)(item.path, { source_module: "search_project" }),
@@ -1,5 +1,5 @@
1
1
  import { ref, computed, withDirectives, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { h as headRequest, I as Icon, r as reqCatch } from "./index-36595f17.js";
2
+ import { h as headRequest, I as Icon, r as reqCatch } from "./index-74e529af.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";
@@ -105,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ name: "SearchFileList" }, {
105
105
  };
106
106
  return (_ctx, _cache) => {
107
107
  return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
108
- createElementVNode("p", _hoisted_2, toDisplayString(_ctx.$t("header.file")), 1),
108
+ createElementVNode("p", _hoisted_2, toDisplayString(_ctx.$t("gitCodeLayout.header.file")), 1),
109
109
  (openBlock(true), createElementBlock(Fragment, null, renderList(searchFileList.value, (item, index) => {
110
110
  return openBlock(), createElementBlock("a", {
111
111
  key: index,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers, createCommentVNode } from "vue";
2
- import { d as i18n, I as Icon, _ as _export_sfc } from "./index-36595f17.js";
2
+ import { d as i18n, I as Icon, _ as _export_sfc } from "./index-74e529af.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -76,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
76
  var _a;
77
77
  return (_a = props.searchHistoryList) == null ? void 0 : _a.map((item) => {
78
78
  const repoTitle = item.repo ? `${t("header.repo")} ${decodeURIComponent(item.repo)}:` : "";
79
- const namespaceTitle = item.namespace ? `${item.scope === "group" ? t("header.org") : t("header.user")} ${decodeURIComponent(item.namespace)}:` : "";
79
+ const namespaceTitle = item.namespace ? `${item.scope === "group" ? t("gitCodeLayout.header.org") : t("gitCodeLayout.header.user")} ${decodeURIComponent(item.namespace)}:` : "";
80
80
  return { ...item, repoTitle, namespaceTitle };
81
81
  });
82
82
  });
@@ -137,8 +137,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
137
  };
138
138
  }
139
139
  });
140
- const SearchHistoryList_vue_vue_type_style_index_0_scoped_09e45f4e_lang = "";
141
- const SearchHistoryList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-09e45f4e"]]);
140
+ const SearchHistoryList_vue_vue_type_style_index_0_scoped_19923b60_lang = "";
141
+ const SearchHistoryList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-19923b60"]]);
142
142
  export {
143
143
  SearchHistoryList as default
144
144
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, withDirectives, withModifiers, createVNode, vShow } from "vue";
2
- import { I as Icon, _ as _export_sfc } from "./index-36595f17.js";
2
+ import { I as Icon, _ as _export_sfc } from "./index-74e529af.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, toDisplayString, inject, ref, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, unref, normalizeStyle, createCommentVNode, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, resolveComponent, withCtx } from "vue";
2
- import { h as headRequest, I as Icon, r as reqCatch, _ as _export_sfc, T as TOPIC_TYPE, f as useTimeFormat, g as usePageResize, d as i18n, j as highlightWords, t as transWebUrl, k as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, R as REPO_MODULE, a as useReport, b as REPO_EVENT } from "./index-36595f17.js";
3
- import { f as formatNameSpace, u as useReportRepo } from "./formatNameSpace-d87daa04.js";
2
+ import { h as headRequest, I as Icon, r as reqCatch, _ as _export_sfc, T as TOPIC_TYPE, f as useTimeFormat, g as usePageResize, d as i18n, j as highlightWords, t as transWebUrl, k as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, R as REPO_MODULE, a as useReport, b as REPO_EVENT } from "./index-74e529af.js";
3
+ import { f as formatNameSpace, u as useReportRepo } from "./formatNameSpace-24f91ed9.js";
4
4
  import { useRouter } from "vue-router";
5
5
  import "vue-devui-lal/button";
6
6
  import "vue-devui-lal/popover";
@@ -270,7 +270,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
270
270
  color: "var(--theme-home-card-color-placeholder)",
271
271
  size: "14"
272
272
  }),
273
- !_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(_ctx.$t("components.repo.today")), 1)) : createCommentVNode("", true),
273
+ !_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(_ctx.$t("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
274
274
  createVNode(_sfc_main$8, {
275
275
  number: _ctx.starCountOne || 0
276
276
  }, null, 8, ["number"])
@@ -278,8 +278,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
278
278
  };
279
279
  }
280
280
  });
281
- const index_vue_vue_type_style_index_0_scoped_b13b2143_lang = "";
282
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-b13b2143"]]);
281
+ const index_vue_vue_type_style_index_0_scoped_c2253a14_lang = "";
282
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-c2253a14"]]);
283
283
  const _hoisted_1$3 = { class: "github-star-num" };
284
284
  const _hoisted_2$3 = { class: "leading-none" };
285
285
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
@@ -399,8 +399,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
399
399
  };
400
400
  }
401
401
  });
402
- const index_vue_vue_type_style_index_0_scoped_145cdce2_lang = "";
403
- const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-145cdce2"]]);
402
+ const index_vue_vue_type_style_index_0_scoped_e5f7b6fb_lang = "";
403
+ const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-e5f7b6fb"]]);
404
404
  const _hoisted_1$1 = ["innerHTML"];
405
405
  const _hoisted_2$1 = {
406
406
  key: 0,
@@ -519,7 +519,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
519
519
  class: "repo-title",
520
520
  innerHTML: preHandWord()
521
521
  }, null, 8, _hoisted_1$1),
522
- _ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(unref($t)("search.recommendTag")), 1)) : createCommentVNode("", true)
522
+ _ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true)
523
523
  ]),
524
524
  _: 1
525
525
  }),
@@ -591,8 +591,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
591
591
  };
592
592
  }
593
593
  });
594
- const index_vue_vue_type_style_index_0_scoped_d350880d_lang = "";
595
- const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d350880d"]]);
594
+ const index_vue_vue_type_style_index_0_scoped_c871ff75_lang = "";
595
+ const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-c871ff75"]]);
596
596
  const _hoisted_1 = { class: "g-header-search-recommed" };
597
597
  const _hoisted_2 = { key: 0 };
598
598
  const _hoisted_3 = { class: "g-header-search-recommed-title" };
@@ -634,7 +634,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
634
634
  const _component_d_row = resolveComponent("d-row");
635
635
  return openBlock(), createElementBlock("div", _hoisted_1, [
636
636
  recommendRepoList.value.length ? (openBlock(), createElementBlock("div", _hoisted_2, [
637
- createElementVNode("div", _hoisted_3, toDisplayString(_ctx.$t("search.trendingToday")), 1),
637
+ createElementVNode("div", _hoisted_3, toDisplayString(_ctx.$t("gitCodeLayout.search.trendingToday")), 1),
638
638
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendRepoList.value, (item, index) => {
639
639
  return openBlock(), createBlock(SearchRepoCard, {
640
640
  key: item.id,
@@ -717,8 +717,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
717
717
  };
718
718
  }
719
719
  });
720
- const SearchRecommed_vue_vue_type_style_index_0_scoped_b0c9e3bd_lang = "";
721
- const SearchRecommed = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b0c9e3bd"]]);
720
+ const SearchRecommed_vue_vue_type_style_index_0_scoped_d77e29cf_lang = "";
721
+ const SearchRecommed = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d77e29cf"]]);
722
722
  export {
723
723
  SearchRecommed as default
724
724
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createElementBlock, Fragment, renderList, createElementVNode, createVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { I as Icon, _ as _export_sfc } from "./index-36595f17.js";
2
+ import { I as Icon, _ as _export_sfc } from "./index-74e529af.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
87
  createElementVNode("span", _hoisted_6, toDisplayString(_ctx.searchStr), 1)
88
88
  ]),
89
89
  createElementVNode("p", _hoisted_7, [
90
- createElementVNode("span", null, toDisplayString(item.label ? `${item.label}${_ctx.$t("header.underSearch")}` : item.title), 1),
90
+ createElementVNode("span", null, toDisplayString(item.label ? `${item.label}${_ctx.$t("gitCodeLayout.header.underSearch")}` : item.title), 1),
91
91
  createVNode(Icon, { name: "gt-line-right" })
92
92
  ])
93
93
  ]),
@@ -98,8 +98,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
98
98
  };
99
99
  }
100
100
  });
101
- const SearchScopeList_vue_vue_type_style_index_0_scoped_5ade5a9f_lang = "";
102
- const SearchScopeList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5ade5a9f"]]);
101
+ const SearchScopeList_vue_vue_type_style_index_0_scoped_94f2d6dd_lang = "";
102
+ const SearchScopeList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-94f2d6dd"]]);
103
103
  export {
104
104
  SearchScopeList as default
105
105
  };
@@ -1,5 +1,5 @@
1
1
  import { ref, watch, withDirectives, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { h as headRequest, I as Icon } from "./index-36595f17.js";
2
+ import { h as headRequest, I as Icon } from "./index-74e529af.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -103,7 +103,7 @@ const _sfc_main = {
103
103
  });
104
104
  return (_ctx, _cache) => {
105
105
  return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
106
- createElementVNode("p", _hoisted_2, toDisplayString(_ctx.$t("header.repo")), 1),
106
+ createElementVNode("p", _hoisted_2, toDisplayString(_ctx.$t("gitCodeLayout.header.repo")), 1),
107
107
  (openBlock(true), createElementBlock(Fragment, null, renderList(searchFileList.value, (item, index) => {
108
108
  return openBlock(), createElementBlock("a", {
109
109
  key: index,
@@ -1,5 +1,5 @@
1
1
  import { ref, watchEffect } from "vue";
2
- import { l as debounce } from "./index-36595f17.js";
2
+ import { l as debounce } from "./index-74e529af.js";
3
3
  const useReportRepo = (reportParams, viewReport) => {
4
4
  const list = ref([]);
5
5
  const pageRef = ref((window == null ? void 0 : window.page_ref) || "");