vue-layout-gitcode 1.5.56 → 1.5.57

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,10 +1,10 @@
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-Vgzpdu_a.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-DRzhhg2U.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BIl35CYq.js";
7
- import "./transWebUrl-DinsVciW.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-ULHcjVz4.js";
7
+ import "./transWebUrl-DzWd7GlG.js";
8
8
  import "vue-devui-lal/tooltip";
9
9
  import "vue-devui-lal/tooltip/style.css";
10
10
  import "vue-router";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
2
- import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-Vgzpdu_a.js";
2
+ import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-DRzhhg2U.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, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-Vgzpdu_a.js";
2
+ import { a as i18n, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-DRzhhg2U.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-DinsVciW.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DzWd7GlG.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";
@@ -210,6 +210,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
210
210
  }
211
211
  }, 200);
212
212
  };
213
+ const handleOpenSearch = () => {
214
+ if (!props.isLogin) {
215
+ emitEvent("login", { loginTriggerSource: "org_search" });
216
+ return;
217
+ }
218
+ showSearch.value = !showSearch.value;
219
+ };
213
220
  const createRepoOrOrg = () => {
214
221
  if (!props.isLogin) {
215
222
  setLoginTriggerSource(props.type === "project" ? "aside_createRepo" : "aside_createOrg");
@@ -226,7 +233,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
226
233
  return openBlock(), createElementBlock("ul", _hoisted_1, [
227
234
  _ctx.type === "project" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
228
235
  createElementVNode("div", _hoisted_2, [
229
- _cache[13] || (_cache[13] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
236
+ _cache[12] || (_cache[12] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
230
237
  createElementVNode("span", _hoisted_3, [
231
238
  createElementVNode("div", {
232
239
  class: "fast-click-button",
@@ -287,7 +294,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
287
294
  ], 64)) : createCommentVNode("", true),
288
295
  _ctx.type === "team" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
289
296
  createElementVNode("div", _hoisted_4, [
290
- _cache[14] || (_cache[14] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
297
+ _cache[13] || (_cache[13] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
291
298
  createElementVNode("span", _hoisted_5, [
292
299
  createElementVNode("div", {
293
300
  class: "fast-click-button",
@@ -298,21 +305,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
298
305
  createVNode(GIcon, {
299
306
  class: "my-work-platform-searchicon",
300
307
  name: "gt-search",
301
- onClick: _cache[8] || (_cache[8] = withModifiers(($event) => showSearch.value = !showSearch.value, ["stop"])),
308
+ onClick: withModifiers(handleOpenSearch, ["stop"]),
302
309
  color: "var(--theme-menu-icon-fill)"
303
310
  }),
304
311
  createElementVNode("div", {
305
312
  class: normalizeClass(["flex flex-col pl-[0] my-work-platform-inputbox", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
306
- onClick: _cache[12] || (_cache[12] = withModifiers(() => {
313
+ onClick: _cache[11] || (_cache[11] = withModifiers(() => {
307
314
  }, ["stop"]))
308
315
  }, [
309
316
  createVNode(unref(Input), {
310
317
  modelValue: searchKey.value,
311
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => searchKey.value = $event),
318
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => searchKey.value = $event),
312
319
  placeholder: unref(t)("gitCodeLayout.common.search"),
313
320
  onInput: valChange,
314
- onCompositionstart: _cache[10] || (_cache[10] = ($event) => inputIng.value = true),
315
- onCompositionend: _cache[11] || (_cache[11] = ($event) => inputIng.value = false)
321
+ onCompositionstart: _cache[9] || (_cache[9] = ($event) => inputIng.value = true),
322
+ onCompositionend: _cache[10] || (_cache[10] = ($event) => inputIng.value = false)
316
323
  }, {
317
324
  prefix: withCtx(() => [
318
325
  createVNode(GIcon, {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, q as useLayoutConfig, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-Vgzpdu_a.js";
2
+ import { a as i18n, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-DRzhhg2U.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-DinsVciW.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DzWd7GlG.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";
@@ -99,6 +99,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
99
  const fastToLink = () => {
100
100
  router.push({ name: "userRepos", params: { namespace: props.username } });
101
101
  };
102
+ const handleOpenSearch = () => {
103
+ if (!props.isLogin) {
104
+ emitEvent("login", { loginTriggerSource: "project_search" });
105
+ return;
106
+ }
107
+ showSearch.value = !showSearch.value;
108
+ };
102
109
  const createRepoOrOrg = () => {
103
110
  if (!props.isLogin) {
104
111
  setLoginTriggerSource("aside_createRepo");
@@ -116,7 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
116
123
  return (_ctx, _cache) => {
117
124
  return openBlock(), createElementBlock("ul", _hoisted_1, [
118
125
  createElementVNode("div", _hoisted_2, [
119
- _cache[6] || (_cache[6] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
126
+ _cache[5] || (_cache[5] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
120
127
  createElementVNode("span", _hoisted_3, [
121
128
  createElementVNode("div", {
122
129
  class: "fast-click-button",
@@ -128,19 +135,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
128
135
  class: "my-work-platform-searchicon",
129
136
  color: "var(--theme-menu-icon-fill)",
130
137
  name: "gt-search",
131
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => showSearch.value = !showSearch.value, ["stop"]))
138
+ onClick: withModifiers(handleOpenSearch, ["stop"])
132
139
  }),
133
140
  createElementVNode("div", {
134
141
  class: normalizeClass(["flex flex-col pl-[0] my-work-platform-inputbox", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
135
- onClick: _cache[5] || (_cache[5] = withModifiers(() => {
142
+ onClick: _cache[4] || (_cache[4] = withModifiers(() => {
136
143
  }, ["stop"]))
137
144
  }, [
138
145
  createVNode(unref(Input), {
139
146
  modelValue: searchKey.value,
140
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchKey.value = $event),
147
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchKey.value = $event),
141
148
  placeholder: unref(t)("gitCodeLayout.common.search"),
142
- onCompositionstart: _cache[3] || (_cache[3] = ($event) => inputIng.value = true),
143
- onCompositionend: _cache[4] || (_cache[4] = ($event) => inputIng.value = false)
149
+ onCompositionstart: _cache[2] || (_cache[2] = ($event) => inputIng.value = true),
150
+ onCompositionend: _cache[3] || (_cache[3] = ($event) => inputIng.value = false)
144
151
  }, {
145
152
  prefix: withCtx(() => [
146
153
  createVNode(GIcon, {
@@ -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-Vgzpdu_a.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-DRzhhg2U.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-Vgzpdu_a.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DRzhhg2U.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-Vgzpdu_a.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-DRzhhg2U.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-BIl35CYq.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-Vgzpdu_a.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-ULHcjVz4.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-DRzhhg2U.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-Vgzpdu_a.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DRzhhg2U.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-Vgzpdu_a.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-DRzhhg2U.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]" };