vue-layout-gitcode 1.12.15-beta.60 → 1.12.15-beta.62
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.
- package/{GloabarSearch-uyAWrX7X.js → GloabarSearch-DUFafkwn.js} +2 -2
- package/{MenuItem-Dkx_uTDj.js → MenuItem-C47jaOLf.js} +1 -1
- package/{ProjectMenuList-CP4-QaX-.js → ProjectMenuList-D2k8WAYb.js} +2 -2
- package/{ProjectMenuListV2-CIaKJoPo.js → ProjectMenuListV2-3KeNRt3P.js} +2 -2
- package/{ProjectSearch-B4CGDNjV.js → ProjectSearch-D4KtN1Xa.js} +1 -1
- package/{SearchHistoryList-DAWX7oM1.js → SearchHistoryList-CRmUE-uF.js} +1 -1
- package/{SearchRecommed-C6GXaNWA.js → SearchRecommed-DJsL1pcF.js} +2 -2
- package/{SearchScopeList-B5d3IluA.js → SearchScopeList-DniRSU34.js} +1 -1
- package/{UserSearch-Bnk1WM4z.js → UserSearch-CuvViFTl.js} +1 -1
- package/{index-BeRIIRfv.js → index--QCW8WJR.js} +1 -1
- package/{index-DzTQ2iLs.js → index-BAEyQd1l.js} +101 -81
- package/{index-CUz285eq.js → index-BilxqEeT.js} +1 -1
- package/index.js +1 -1
- package/{notice-D08Onnii.js → notice-GZvyDIDM.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-D0hbacwo.js → transWebUrl-wZlWmjbD.js} +1 -1
- package/{useReportRepo-sTMQBVbL.js → useReportRepo-DsY50bIr.js} +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, createElementBlock, openBlock, Fragment, renderList, withDirectives, createBlock, unref, ref, watch, createElementVNode, createCommentVNode, createVNode, toDisplayString } 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-
|
|
3
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-
|
|
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-BAEyQd1l.js";
|
|
3
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-DsY50bIr.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({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, useSlots, computed, ref, createBlock, openBlock, 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-
|
|
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-BAEyQd1l.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, 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-
|
|
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-BAEyQd1l.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-wZlWmjbD.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, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, z as useLayoutConfig, t as transformUrl, M as asideRequest, G as GIcon, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, z as useLayoutConfig, t as transformUrl, M as asideRequest, G as GIcon, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-BAEyQd1l.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-wZlWmjbD.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 { defineComponent, ref, inject, watch, 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-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BAEyQd1l.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, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-BAEyQd1l.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, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
|
|
2
|
-
import { u as useReportRepo, S as SearchRepoCard } from "./useReportRepo-
|
|
3
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./useReportRepo-DsY50bIr.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-BAEyQd1l.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-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BAEyQd1l.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 { defineComponent, 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, t as transformUrl } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-BAEyQd1l.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, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { y as slidCaptchaManager, z as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-
|
|
2
|
+
import { y as slidCaptchaManager, z as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-BAEyQd1l.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:";
|
|
@@ -9126,8 +9126,8 @@ const _hoisted_8$c = {
|
|
|
9126
9126
|
const _hoisted_9$b = { class: "home-nav-tooltip-wrapper" };
|
|
9127
9127
|
const _hoisted_10$a = { class: "home-nav-text" };
|
|
9128
9128
|
const _hoisted_11$8 = { class: "tools-float-feedback-sub" };
|
|
9129
|
-
const _hoisted_12$
|
|
9130
|
-
const _hoisted_13$
|
|
9129
|
+
const _hoisted_12$8 = { class: "qrcode-wrapper" };
|
|
9130
|
+
const _hoisted_13$4 = { class: "qrcode-wrapper__title" };
|
|
9131
9131
|
const _hoisted_14$3 = { class: "tools-list-item" };
|
|
9132
9132
|
const _hoisted_15$3 = { class: "g-card tools-float-nps-card" };
|
|
9133
9133
|
const _hoisted_16$3 = {
|
|
@@ -9499,8 +9499,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9499
9499
|
"overlay-class": "tools-tag-tooltip"
|
|
9500
9500
|
}, {
|
|
9501
9501
|
content: withCtx(() => [
|
|
9502
|
-
createElementVNode("div", _hoisted_12$
|
|
9503
|
-
createElementVNode("div", _hoisted_13$
|
|
9502
|
+
createElementVNode("div", _hoisted_12$8, [
|
|
9503
|
+
createElementVNode("div", _hoisted_13$4, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
|
|
9504
9504
|
_cache[8] || (_cache[8] = createElementVNode("img", {
|
|
9505
9505
|
class: "qrcode",
|
|
9506
9506
|
src: "https://cdn-static.gitcode.com/static/images/points/wx_gitcode.png"
|
|
@@ -10350,9 +10350,6 @@ watch(currentThemeStorage, (newValue) => {
|
|
|
10350
10350
|
const currentTheme = computed(() => {
|
|
10351
10351
|
return setThemeVal.value || currentThemeStorage.value || ThemeType.WHITE;
|
|
10352
10352
|
});
|
|
10353
|
-
const isWhiteTheme = () => {
|
|
10354
|
-
return currentTheme.value === ThemeType.WHITE;
|
|
10355
|
-
};
|
|
10356
10353
|
const setTheme = (theme2) => {
|
|
10357
10354
|
const themeValue = theme2 || api.get("gitcode_theme") || ThemeType.WHITE;
|
|
10358
10355
|
setThemeVal.value = themeValue;
|
|
@@ -10964,11 +10961,11 @@ const _hoisted_9$a = {
|
|
|
10964
10961
|
};
|
|
10965
10962
|
const _hoisted_10$9 = ["title"];
|
|
10966
10963
|
const _hoisted_11$7 = ["title"];
|
|
10967
|
-
const _hoisted_12$
|
|
10964
|
+
const _hoisted_12$7 = {
|
|
10968
10965
|
key: 0,
|
|
10969
10966
|
class: "header-custom-tag-mb"
|
|
10970
10967
|
};
|
|
10971
|
-
const _hoisted_13$
|
|
10968
|
+
const _hoisted_13$3 = {
|
|
10972
10969
|
key: 1,
|
|
10973
10970
|
class: "header-custom-tag-mb"
|
|
10974
10971
|
};
|
|
@@ -11239,7 +11236,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11239
11236
|
]),
|
|
11240
11237
|
_: 1
|
|
11241
11238
|
}, 8, ["href"]),
|
|
11242
|
-
unref(isGstarRepo)((_e = unref(repoInfo)) == null ? void 0 : _e.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
11239
|
+
unref(isGstarRepo)((_e = unref(repoInfo)) == null ? void 0 : _e.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$7, [
|
|
11243
11240
|
createVNode(_sfc_main$M, {
|
|
11244
11241
|
origin: "repo",
|
|
11245
11242
|
icon: "",
|
|
@@ -11252,7 +11249,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11252
11249
|
_: 1,
|
|
11253
11250
|
__: [2]
|
|
11254
11251
|
}, 8, ["message"])
|
|
11255
|
-
])) : unref(isIncubationRepo)((_f = unref(repoInfo)) == null ? void 0 : _f.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$
|
|
11252
|
+
])) : unref(isIncubationRepo)((_f = unref(repoInfo)) == null ? void 0 : _f.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$3, [
|
|
11256
11253
|
createVNode(_sfc_main$M, {
|
|
11257
11254
|
origin: "repo",
|
|
11258
11255
|
icon: "",
|
|
@@ -14440,7 +14437,7 @@ const _hoisted_11$6 = {
|
|
|
14440
14437
|
key: 4,
|
|
14441
14438
|
class: "no-more"
|
|
14442
14439
|
};
|
|
14443
|
-
const _hoisted_12$
|
|
14440
|
+
const _hoisted_12$6 = { class: "message-footer-nav" };
|
|
14444
14441
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
14445
14442
|
__name: "MessageBox",
|
|
14446
14443
|
setup(__props, { expose: __expose }) {
|
|
@@ -14796,7 +14793,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14796
14793
|
[_directive_loading, loading.value]
|
|
14797
14794
|
])
|
|
14798
14795
|
], 512),
|
|
14799
|
-
createElementVNode("div", _hoisted_12$
|
|
14796
|
+
createElementVNode("div", _hoisted_12$6, [
|
|
14800
14797
|
createElementVNode("div", { onClick: setPageRead }, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.pageRead")), 1),
|
|
14801
14798
|
createElementVNode("div", {
|
|
14802
14799
|
onClick: _cache[4] || (_cache[4] = ($event) => toPage("all"))
|
|
@@ -16161,12 +16158,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
16161
16158
|
setup(__props) {
|
|
16162
16159
|
const layoutConfig2 = useLayoutConfig();
|
|
16163
16160
|
const { t: $t } = i18n.global;
|
|
16164
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16165
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16166
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16167
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16168
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16169
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
16161
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-D4KtN1Xa.js"));
|
|
16162
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-CuvViFTl.js"));
|
|
16163
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DUFafkwn.js"));
|
|
16164
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CRmUE-uF.js"));
|
|
16165
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DniRSU34.js"));
|
|
16166
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DJsL1pcF.js"));
|
|
16170
16167
|
const props = __props;
|
|
16171
16168
|
const repoInfo = inject("repoInfo", computed(() => void 0));
|
|
16172
16169
|
const orgInfo = inject("orgInfo", computed(() => void 0));
|
|
@@ -17310,7 +17307,7 @@ const _hoisted_8$6 = { class: "atomcode-launch-item__title-row" };
|
|
|
17310
17307
|
const _hoisted_9$6 = { class: "atomcode-launch-item__title" };
|
|
17311
17308
|
const _hoisted_10$6 = ["href"];
|
|
17312
17309
|
const _hoisted_11$5 = { class: "atomcode-launch-item__title-row" };
|
|
17313
|
-
const _hoisted_12$
|
|
17310
|
+
const _hoisted_12$5 = { class: "atomcode-launch-item__title" };
|
|
17314
17311
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
17315
17312
|
...{
|
|
17316
17313
|
name: "AtomCodeLauncher"
|
|
@@ -17447,7 +17444,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17447
17444
|
color: "currentColor",
|
|
17448
17445
|
class: "atomcode-item-icon"
|
|
17449
17446
|
}),
|
|
17450
|
-
createElementVNode("span", _hoisted_12$
|
|
17447
|
+
createElementVNode("span", _hoisted_12$5, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.downloadCli")), 1)
|
|
17451
17448
|
])
|
|
17452
17449
|
], 8, _hoisted_10$6)
|
|
17453
17450
|
])
|
|
@@ -17505,7 +17502,7 @@ const vElementExposure = {
|
|
|
17505
17502
|
beforeUnmount() {
|
|
17506
17503
|
}
|
|
17507
17504
|
};
|
|
17508
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17505
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-GZvyDIDM.js"));
|
|
17509
17506
|
function clearNotice() {
|
|
17510
17507
|
if (localStorage$2.getItem("validator_email")) {
|
|
17511
17508
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18624,8 +18621,8 @@ const _hoisted_8$4 = ["aria-current", "title", "onClick"];
|
|
|
18624
18621
|
const _hoisted_9$4 = ["src", "alt", "onClick"];
|
|
18625
18622
|
const _hoisted_10$4 = { class: "home-channel-side-nav__info" };
|
|
18626
18623
|
const _hoisted_11$4 = { class: "home-channel-side-nav__label-row" };
|
|
18627
|
-
const _hoisted_12$
|
|
18628
|
-
const _hoisted_13$
|
|
18624
|
+
const _hoisted_12$4 = { class: "home-channel-side-nav__label" };
|
|
18625
|
+
const _hoisted_13$2 = ["src"];
|
|
18629
18626
|
const _hoisted_14$1 = ["title"];
|
|
18630
18627
|
const _hoisted_15$1 = {
|
|
18631
18628
|
key: 3,
|
|
@@ -19002,13 +18999,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
19002
18999
|
}, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
|
|
19003
19000
|
createElementVNode("div", _hoisted_10$4, [
|
|
19004
19001
|
createElementVNode("span", _hoisted_11$4, [
|
|
19005
|
-
createElementVNode("span", _hoisted_12$
|
|
19002
|
+
createElementVNode("span", _hoisted_12$4, toDisplayString$1(getItemName(item)), 1),
|
|
19006
19003
|
item.is_new ? (openBlock(), createElementBlock("img", {
|
|
19007
19004
|
key: 0,
|
|
19008
19005
|
src: newTagSrc.value,
|
|
19009
19006
|
alt: "New",
|
|
19010
19007
|
class: "home-channel-side-nav__new-tag"
|
|
19011
|
-
}, null, 8, _hoisted_13$
|
|
19008
|
+
}, null, 8, _hoisted_13$2)) : createCommentVNode("", true)
|
|
19012
19009
|
]),
|
|
19013
19010
|
getItemDesc(item) ? (openBlock(), createElementBlock("span", {
|
|
19014
19011
|
key: 0,
|
|
@@ -19295,18 +19292,29 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
19295
19292
|
const GitCodeAsideV2 = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19296
19293
|
const _hoisted_1$j = { class: "g-toolbar allow-click-stop" };
|
|
19297
19294
|
const _hoisted_2$e = { class: "g-toolbar-left allow-click-stop" };
|
|
19298
|
-
const _hoisted_3$d = {
|
|
19295
|
+
const _hoisted_3$d = {
|
|
19296
|
+
key: 1,
|
|
19297
|
+
class: "g-toolbar-custom"
|
|
19298
|
+
};
|
|
19299
19299
|
const _hoisted_4$a = { class: "enterprise-name" };
|
|
19300
19300
|
const _hoisted_5$5 = { class: "enterprise-flag" };
|
|
19301
19301
|
const _hoisted_6$4 = { class: "search-avatar" };
|
|
19302
19302
|
const _hoisted_7$3 = { class: "g-toolbar-right allow-click-stop" };
|
|
19303
19303
|
const _hoisted_8$3 = {
|
|
19304
|
+
key: 0,
|
|
19305
|
+
class: "g-toolbar-right-divider"
|
|
19306
|
+
};
|
|
19307
|
+
const _hoisted_9$3 = {
|
|
19308
|
+
key: 0,
|
|
19309
|
+
class: "g-toolbar-right-divider"
|
|
19310
|
+
};
|
|
19311
|
+
const _hoisted_10$3 = {
|
|
19304
19312
|
key: 0,
|
|
19305
19313
|
class: "g-header-body"
|
|
19306
19314
|
};
|
|
19307
|
-
const
|
|
19308
|
-
const
|
|
19309
|
-
const
|
|
19315
|
+
const _hoisted_11$3 = { class: "g-header-body-left" };
|
|
19316
|
+
const _hoisted_12$3 = { class: "g-header-body-right" };
|
|
19317
|
+
const _hoisted_13$1 = { key: 1 };
|
|
19310
19318
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
19311
19319
|
...{
|
|
19312
19320
|
name: "EnterpriseHeader"
|
|
@@ -19338,9 +19346,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19338
19346
|
atomcodeLaunchQs: { default: "" },
|
|
19339
19347
|
showAtomCodeLauncher: { type: Boolean, default: false },
|
|
19340
19348
|
launchAtomCode: { type: Function, default: void 0 },
|
|
19341
|
-
defaultGlobalSearchType: { default: "repo" }
|
|
19349
|
+
defaultGlobalSearchType: { default: "repo" },
|
|
19350
|
+
openCreateDropdown: { type: Boolean, default: false },
|
|
19351
|
+
createMenuItems: {},
|
|
19352
|
+
createMenuNavigate: {}
|
|
19342
19353
|
},
|
|
19343
|
-
emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess"],
|
|
19354
|
+
emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess", "update:openCreateDropdown"],
|
|
19344
19355
|
setup(__props, { emit: __emit }) {
|
|
19345
19356
|
var _a;
|
|
19346
19357
|
const route = useRoute();
|
|
@@ -19407,6 +19418,21 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19407
19418
|
}
|
|
19408
19419
|
return "";
|
|
19409
19420
|
});
|
|
19421
|
+
const hasEnterpriseInfo = computed(() => {
|
|
19422
|
+
var _a2, _b;
|
|
19423
|
+
return Boolean(((_a2 = props.enterpriseInfo) == null ? void 0 : _a2.name) || ((_b = props.enterpriseInfo) == null ? void 0 : _b.avatar));
|
|
19424
|
+
});
|
|
19425
|
+
const logoConfig = getCurrentLogoMap();
|
|
19426
|
+
const logoStyle = computed(() => {
|
|
19427
|
+
const isBlackTheme = currentTheme.value === ThemeType.BLACK;
|
|
19428
|
+
const logoUrl = isBlackTheme ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
|
|
19429
|
+
return {
|
|
19430
|
+
backgroundImage: `url(${logoUrl})`,
|
|
19431
|
+
backgroundRepeat: "no-repeat",
|
|
19432
|
+
backgroundPosition: "0 center",
|
|
19433
|
+
backgroundSize: isMobile.value ? "cover" : "contain"
|
|
19434
|
+
};
|
|
19435
|
+
});
|
|
19410
19436
|
if (!((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.hiddenThemeSetting)) {
|
|
19411
19437
|
theme.initAutoTheme();
|
|
19412
19438
|
}
|
|
@@ -19449,13 +19475,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19449
19475
|
emitEvent("toggleAsideMenuByHamburger");
|
|
19450
19476
|
useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.ASIDEBTNCLICK });
|
|
19451
19477
|
};
|
|
19452
|
-
const handleThemeChange = () => {
|
|
19453
|
-
setTheme(currentTheme.value === ThemeType.WHITE ? ThemeType.BLACK : ThemeType.WHITE);
|
|
19454
|
-
};
|
|
19455
19478
|
const layoutConfig2 = useLayoutConfig();
|
|
19456
|
-
const handleNewRepo = () => {
|
|
19457
|
-
window.open(`${layoutConfig2.VITE_HOST}/create?position=nav_top`, "_blank");
|
|
19458
|
-
};
|
|
19459
19479
|
const loginDataFormat = (options) => {
|
|
19460
19480
|
return {
|
|
19461
19481
|
...options || {},
|
|
@@ -19539,7 +19559,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19539
19559
|
class: "g-toolbar-left-asideicon",
|
|
19540
19560
|
color: "var(--theme-aide-text)"
|
|
19541
19561
|
})) : createCommentVNode("", true),
|
|
19542
|
-
|
|
19562
|
+
hasEnterpriseInfo.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
|
|
19543
19563
|
createVNode(_sfc_main$N, {
|
|
19544
19564
|
src: (_a2 = _ctx.enterpriseInfo) == null ? void 0 : _a2.avatar,
|
|
19545
19565
|
name: (_b = _ctx.enterpriseInfo) == null ? void 0 : _b.name,
|
|
@@ -19550,7 +19570,19 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19550
19570
|
}, null, 8, ["src", "name"]),
|
|
19551
19571
|
createElementVNode("span", _hoisted_4$a, toDisplayString$1((_c = _ctx.enterpriseInfo) == null ? void 0 : _c.name), 1),
|
|
19552
19572
|
createElementVNode("span", _hoisted_5$5, toDisplayString$1(unref(t2)("gitCodeLayout.header.enterpriseFlag")), 1)
|
|
19553
|
-
])
|
|
19573
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
19574
|
+
_ctx.independence ? (openBlock(), createBlock(GLink, {
|
|
19575
|
+
key: 0,
|
|
19576
|
+
class: "g-toolbar-left-logo",
|
|
19577
|
+
style: normalizeStyle(logoStyle.value),
|
|
19578
|
+
href: `${unref(layoutConfig2).VITE_HOST}?p=seo`
|
|
19579
|
+
}, null, 8, ["style", "href"])) : (openBlock(), createBlock(GLink, {
|
|
19580
|
+
key: 1,
|
|
19581
|
+
class: "g-toolbar-left-logo",
|
|
19582
|
+
style: normalizeStyle(logoStyle.value),
|
|
19583
|
+
to: { name: "home" }
|
|
19584
|
+
}, null, 8, ["style"]))
|
|
19585
|
+
], 64))
|
|
19554
19586
|
]),
|
|
19555
19587
|
createElementVNode("div", _hoisted_6$4, [
|
|
19556
19588
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
@@ -19579,15 +19611,17 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19579
19611
|
], true) : createCommentVNode("", true)
|
|
19580
19612
|
]),
|
|
19581
19613
|
createElementVNode("div", _hoisted_7$3, [
|
|
19582
|
-
_ctx.showAtomCodeLauncher ? (
|
|
19583
|
-
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
|
|
19614
|
+
_ctx.showAtomCodeLauncher ? renderSlot(_ctx.$slots, "atomCodeLauncher", { key: 0 }, () => [
|
|
19615
|
+
createVNode(AtomCodeLauncher, {
|
|
19616
|
+
atomcodeLaunchQs: _ctx.atomcodeLaunchQs,
|
|
19617
|
+
isLogin: _ctx.isLogin,
|
|
19618
|
+
launchAtomCode: _ctx.launchAtomCode
|
|
19619
|
+
}, null, 8, ["atomcodeLaunchQs", "isLogin", "launchAtomCode"])
|
|
19620
|
+
], true) : createCommentVNode("", true),
|
|
19621
|
+
createVNode(HomeHeaderActions, { isLogin: _ctx.isLogin }, null, 8, ["isLogin"]),
|
|
19589
19622
|
!_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19590
|
-
|
|
19623
|
+
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_8$3)) : createCommentVNode("", true),
|
|
19624
|
+
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19591
19625
|
unref(isMobile) ? (openBlock(), createElementBlock("section", {
|
|
19592
19626
|
key: 0,
|
|
19593
19627
|
class: "app-login-warp login-icon",
|
|
@@ -19621,31 +19655,17 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19621
19655
|
], 64))
|
|
19622
19656
|
], 64)) : createCommentVNode("", true)
|
|
19623
19657
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
19624
|
-
!["sm"].includes(unref(widthType))
|
|
19625
|
-
|
|
19626
|
-
|
|
19627
|
-
|
|
19628
|
-
|
|
19629
|
-
|
|
19630
|
-
|
|
19631
|
-
|
|
19632
|
-
|
|
19633
|
-
color: "var(--theme-light-text)",
|
|
19634
|
-
class: "btn-add-icon"
|
|
19635
|
-
}),
|
|
19636
|
-
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.create")), 1)
|
|
19637
|
-
]),
|
|
19638
|
-
_: 1
|
|
19639
|
-
})) : createCommentVNode("", true),
|
|
19640
|
-
isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 1 })) : createCommentVNode("", true),
|
|
19641
|
-
createVNode(GIcon, {
|
|
19642
|
-
name: unref(isWhiteTheme)() ? "gt-line-light" : "gt-line-dark",
|
|
19643
|
-
size: "16px",
|
|
19644
|
-
onClick: handleThemeChange,
|
|
19645
|
-
class: "theme-toggle-icon"
|
|
19646
|
-
}, null, 8, ["name"]),
|
|
19658
|
+
!["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_9$3)) : createCommentVNode("", true),
|
|
19659
|
+
!["sm"].includes(unref(widthType)) && isModuleVisible(unref(HeaderDisplayItem).NEW_BUTTON) ? (openBlock(), createBlock(HeaderCreateMenu, {
|
|
19660
|
+
key: 1,
|
|
19661
|
+
dropdownVisible: _ctx.openCreateDropdown,
|
|
19662
|
+
items: _ctx.createMenuItems,
|
|
19663
|
+
onNavigate: _ctx.createMenuNavigate,
|
|
19664
|
+
"onUpdate:dropdownVisible": _cache[3] || (_cache[3] = ($event) => emit("update:openCreateDropdown", $event))
|
|
19665
|
+
}, null, 8, ["dropdownVisible", "items", "onNavigate"])) : createCommentVNode("", true),
|
|
19666
|
+
isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 2 })) : createCommentVNode("", true),
|
|
19647
19667
|
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createBlock(UserAvatar, {
|
|
19648
|
-
key:
|
|
19668
|
+
key: 3,
|
|
19649
19669
|
isChatBot: false,
|
|
19650
19670
|
loginOutFinish: _ctx.loginOutFinish,
|
|
19651
19671
|
inAIHub: false,
|
|
@@ -19658,17 +19678,17 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19658
19678
|
])), [
|
|
19659
19679
|
[unref(vElementExposure), { trigger: (type) => handleToolbarExpo() }]
|
|
19660
19680
|
]),
|
|
19661
|
-
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div",
|
|
19681
|
+
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
|
|
19662
19682
|
renderSlot(_ctx.$slots, "bodyHeader", {}, () => [
|
|
19663
|
-
createElementVNode("div",
|
|
19683
|
+
createElementVNode("div", _hoisted_11$3, [
|
|
19664
19684
|
renderSlot(_ctx.$slots, "info", {}, void 0, true)
|
|
19665
19685
|
]),
|
|
19666
|
-
createElementVNode("div",
|
|
19686
|
+
createElementVNode("div", _hoisted_12$3, [
|
|
19667
19687
|
renderSlot(_ctx.$slots, "menu", {}, void 0, true)
|
|
19668
19688
|
])
|
|
19669
19689
|
], true)
|
|
19670
19690
|
])) : createCommentVNode("", true),
|
|
19671
|
-
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div",
|
|
19691
|
+
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
19672
19692
|
renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
|
|
19673
19693
|
])) : createCommentVNode("", true)
|
|
19674
19694
|
], 2),
|
|
@@ -19908,9 +19928,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19908
19928
|
const layoutConfig2 = useLayoutConfig();
|
|
19909
19929
|
const { t: t2 } = i18n.global;
|
|
19910
19930
|
const route = useRoute();
|
|
19911
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
19912
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
19913
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
19931
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-C47jaOLf.js"));
|
|
19932
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-3KeNRt3P.js"));
|
|
19933
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-D2k8WAYb.js"));
|
|
19914
19934
|
const props = __props;
|
|
19915
19935
|
const useReport2 = inject("useReport");
|
|
19916
19936
|
const userInfo = inject("userInfo");
|
|
@@ -26364,7 +26384,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
26364
26384
|
__publicField(_SlidCaptchaManager, "instance");
|
|
26365
26385
|
let SlidCaptchaManager = _SlidCaptchaManager;
|
|
26366
26386
|
const slidCaptchaManager = SlidCaptchaManager.getInstance();
|
|
26367
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index
|
|
26387
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index--QCW8WJR.js"));
|
|
26368
26388
|
const useSlidCaptcha = () => {
|
|
26369
26389
|
const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
|
|
26370
26390
|
const open = (config) => {
|
|
@@ -26394,7 +26414,7 @@ const useSlidCaptcha = () => {
|
|
|
26394
26414
|
close
|
|
26395
26415
|
};
|
|
26396
26416
|
};
|
|
26397
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
26417
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-BilxqEeT.js"));
|
|
26398
26418
|
const useYunpianCaptcha = () => {
|
|
26399
26419
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
26400
26420
|
const open = (config) => {
|
|
@@ -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-
|
|
11
|
+
import { a as i18n, k as usePageResize, A as isZh, _ as _export_sfc } from "./index-BAEyQd1l.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a3, $, a1, U, V, X, a6, a8, a0, Y, Z, Q, S, W, a2, P, C, a9, a5, a7, a4 } from "./index-
|
|
1
|
+
import { a3, $, a1, U, V, X, a6, a8, a0, Y, Z, Q, S, W, a2, P, C, a9, a5, a7, a4 } from "./index-BAEyQd1l.js";
|
|
2
2
|
export {
|
|
3
3
|
a3 as AsideFooterTools,
|
|
4
4
|
$ as AtomCodeLauncher,
|
|
@@ -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, _ as _export_sfc } from "./index-
|
|
2
|
+
import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-BAEyQd1l.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";
|