vue-layout-gitcode 1.12.15-beta.61 → 1.12.15-beta.63
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-CAx0HdoO.js} +2 -2
- package/{MenuItem-Dkx_uTDj.js → MenuItem-cvaZLxcc.js} +1 -1
- package/{ProjectMenuList-CP4-QaX-.js → ProjectMenuList-hZm8cToj.js} +2 -2
- package/{ProjectMenuListV2-CIaKJoPo.js → ProjectMenuListV2-DZr1nvl5.js} +2 -2
- package/{ProjectSearch-B4CGDNjV.js → ProjectSearch-DwzWyuIr.js} +1 -1
- package/{SearchHistoryList-DAWX7oM1.js → SearchHistoryList-CSDVum6K.js} +1 -1
- package/{SearchRecommed-C6GXaNWA.js → SearchRecommed-B1lfZqPP.js} +2 -2
- package/{SearchScopeList-B5d3IluA.js → SearchScopeList-B8xfcBm5.js} +1 -1
- package/{UserSearch-Bnk1WM4z.js → UserSearch-Bl00xOJC.js} +1 -1
- package/{index-DzTQ2iLs.js → index-C085-a7A.js} +378 -579
- package/{index-CUz285eq.js → index-CSOwaWzn.js} +1 -1
- package/{index-BeRIIRfv.js → index-Cd5EwyKa.js} +1 -1
- package/index.js +1 -1
- package/{notice-D08Onnii.js → notice-jW9NbMaw.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-D0hbacwo.js → transWebUrl-iA9rCgkW.js} +1 -1
- package/{useReportRepo-sTMQBVbL.js → useReportRepo-C8TVIQmT.js} +2 -2
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import {
|
|
5
|
-
import { Button } from "vue-devui-lal/button";
|
|
6
|
-
import { Popover } from "vue-devui-lal/popover";
|
|
7
|
-
import { Tooltip } from "vue-devui-lal/tooltip";
|
|
8
|
-
import { Textarea } from "vue-devui-lal/textarea";
|
|
9
|
-
import "vue-devui-lal/button/style.css";
|
|
10
|
-
import "vue-devui-lal/popover/style.css";
|
|
11
|
-
import "vue-devui-lal/tooltip/style.css";
|
|
12
|
-
import "vue-devui-lal/textarea/style.css";
|
|
13
|
-
import { Icon } from "vue-devui-lal/icon";
|
|
14
|
-
import "vue-devui-lal/icon/style.css";
|
|
4
|
+
import { reactive, readonly, inject, effectScope, ref, shallowRef, computed, watch, isRef, defineComponent, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createElementBlock, openBlock, createCommentVNode, Transition, withCtx, unref, normalizeClass, createElementVNode, toDisplayString as toDisplayString$1, createStaticVNode, withModifiers, createBlock, normalizeProps, mergeProps, renderSlot, normalizeStyle, resolveComponent, watchEffect, renderList, createTextVNode, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, useSlots } from "vue";
|
|
15
5
|
import axios from "axios";
|
|
16
6
|
import { useRouter, useRoute, createRouter, createWebHistory, createMemoryHistory } from "vue-router";
|
|
7
|
+
import { Icon } from "vue-devui-lal/icon";
|
|
8
|
+
import "vue-devui-lal/icon/style.css";
|
|
9
|
+
import { Button } from "vue-devui-lal/button";
|
|
17
10
|
import { useWindowSize, useMutationObserver, useResizeObserver, useInfiniteScroll, useEventListener, useElementSize, useStorage, useDebounceFn } from "@vueuse/core";
|
|
18
11
|
import { Avatar } from "vue-devui-lal/avatar";
|
|
19
12
|
import "vue-devui-lal/avatar/style.css";
|
|
13
|
+
import { Tooltip } from "vue-devui-lal/tooltip";
|
|
14
|
+
import "vue-devui-lal/tooltip/style.css";
|
|
20
15
|
import "lodash/last";
|
|
21
16
|
import cloneDeep from "lodash/cloneDeep";
|
|
22
17
|
import dayjs from "dayjs";
|
|
23
18
|
import isDate$1 from "lodash/isDate";
|
|
24
19
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
20
|
+
import "vue-devui-lal/button/style.css";
|
|
25
21
|
import "vue-devui-lal/skeleton/style.css";
|
|
26
22
|
import { Dropdown } from "vue-devui-lal/dropdown";
|
|
27
23
|
import "vue-devui-lal/dropdown/style.css";
|
|
@@ -57,61 +53,6 @@ import { Checkbox } from "vue-devui-lal/checkbox";
|
|
|
57
53
|
import "vue-devui-lal/checkbox/style.css";
|
|
58
54
|
import { Modal } from "vue-devui-lal/modal";
|
|
59
55
|
import "vue-devui-lal/modal/style.css";
|
|
60
|
-
const _hoisted_1$J = ["xlink:href"];
|
|
61
|
-
const _hoisted_2$x = ["xlink:href"];
|
|
62
|
-
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
63
|
-
__name: "index",
|
|
64
|
-
props: {
|
|
65
|
-
name: { default: "gt-run" },
|
|
66
|
-
size: { default: "16px" },
|
|
67
|
-
color: { default: "var(--theme-icon-fill-weak)" },
|
|
68
|
-
rotate: { default: "0deg" },
|
|
69
|
-
operable: { type: Boolean, default: false },
|
|
70
|
-
disabled: { type: Boolean, default: false },
|
|
71
|
-
iconClass: {}
|
|
72
|
-
},
|
|
73
|
-
setup(__props) {
|
|
74
|
-
const props = __props;
|
|
75
|
-
const fontSize = computed(() => {
|
|
76
|
-
return /px$/i.test(props.size) ? props.size : `${props.size}px`;
|
|
77
|
-
});
|
|
78
|
-
return (_ctx, _cache) => {
|
|
79
|
-
return !_ctx.name.includes("gt-") ? (openBlock(), createBlock(unref(Icon), normalizeProps(mergeProps({ key: 0 }, props)), null, 16)) : _ctx.operable ? (openBlock(), createElementBlock("span", {
|
|
80
|
-
key: 1,
|
|
81
|
-
class: normalizeClass(["custom-icon-container", { disabled: _ctx.disabled }])
|
|
82
|
-
}, [
|
|
83
|
-
renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
|
|
84
|
-
(openBlock(), createElementBlock("svg", {
|
|
85
|
-
class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
|
|
86
|
-
"aria-hidden": "true",
|
|
87
|
-
style: normalizeStyle({ color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
|
|
88
|
-
}, [
|
|
89
|
-
createElementVNode("use", {
|
|
90
|
-
"xlink:href": `#${_ctx.name}`
|
|
91
|
-
}, null, 8, _hoisted_1$J)
|
|
92
|
-
], 6)),
|
|
93
|
-
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
94
|
-
], 2)) : (openBlock(), createElementBlock("svg", {
|
|
95
|
-
key: 2,
|
|
96
|
-
class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
|
|
97
|
-
"aria-hidden": "true",
|
|
98
|
-
style: normalizeStyle(_ctx.iconClass ? {} : { color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
|
|
99
|
-
}, [
|
|
100
|
-
createElementVNode("use", {
|
|
101
|
-
"xlink:href": `#${_ctx.name}`
|
|
102
|
-
}, null, 8, _hoisted_2$x)
|
|
103
|
-
], 6));
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
const _export_sfc = (sfc, props) => {
|
|
108
|
-
const target = sfc.__vccOpts || sfc;
|
|
109
|
-
for (const [key, val] of props) {
|
|
110
|
-
target[key] = val;
|
|
111
|
-
}
|
|
112
|
-
return target;
|
|
113
|
-
};
|
|
114
|
-
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
115
56
|
const defaultConfig = {
|
|
116
57
|
VITE_ENV: "production",
|
|
117
58
|
VITE_HOST: "https://gitcode.com",
|
|
@@ -8048,6 +7989,11 @@ const gitCodeLayout$1 = {
|
|
|
8048
7989
|
receive: "领福利",
|
|
8049
7990
|
invite: "邀请"
|
|
8050
7991
|
},
|
|
7992
|
+
toolsFloat: {
|
|
7993
|
+
backToTop: "回到顶部",
|
|
7994
|
+
collapse: "收起",
|
|
7995
|
+
expand: "展开"
|
|
7996
|
+
},
|
|
8051
7997
|
notice: {
|
|
8052
7998
|
msg: {
|
|
8053
7999
|
type: "消息类型",
|
|
@@ -8469,6 +8415,11 @@ const gitCodeLayout = {
|
|
|
8469
8415
|
receive: "Benefits",
|
|
8470
8416
|
invite: "Invite"
|
|
8471
8417
|
},
|
|
8418
|
+
toolsFloat: {
|
|
8419
|
+
backToTop: "Back to Top",
|
|
8420
|
+
collapse: "Collapse",
|
|
8421
|
+
expand: "Expand"
|
|
8422
|
+
},
|
|
8472
8423
|
notice: {
|
|
8473
8424
|
msg: {
|
|
8474
8425
|
type: "Message Type",
|
|
@@ -9112,61 +9063,26 @@ const currentHelpDocsAiCommunityUrl = () => {
|
|
|
9112
9063
|
const baseUrl = isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
|
|
9113
9064
|
return appendLangPathToHelpDocsUrl(baseUrl);
|
|
9114
9065
|
};
|
|
9115
|
-
const _hoisted_1$
|
|
9116
|
-
const _hoisted_2$
|
|
9117
|
-
const _hoisted_3$v = { class: "tooltip-
|
|
9118
|
-
const _hoisted_4$o = {
|
|
9119
|
-
const _hoisted_5$j = { class: "home-nav-text" };
|
|
9120
|
-
const _hoisted_6$g = { class: "home-nav-tooltip-wrapper" };
|
|
9121
|
-
const _hoisted_7$d = { class: "home-nav-text" };
|
|
9122
|
-
const _hoisted_8$c = {
|
|
9123
|
-
key: 2,
|
|
9124
|
-
class: "tools-list"
|
|
9125
|
-
};
|
|
9126
|
-
const _hoisted_9$b = { class: "home-nav-tooltip-wrapper" };
|
|
9127
|
-
const _hoisted_10$a = { class: "home-nav-text" };
|
|
9128
|
-
const _hoisted_11$8 = { class: "tools-float-feedback-sub" };
|
|
9129
|
-
const _hoisted_12$7 = { class: "qrcode-wrapper" };
|
|
9130
|
-
const _hoisted_13$3 = { class: "qrcode-wrapper__title" };
|
|
9131
|
-
const _hoisted_14$3 = { class: "tools-list-item" };
|
|
9132
|
-
const _hoisted_15$3 = { class: "g-card tools-float-nps-card" };
|
|
9133
|
-
const _hoisted_16$3 = {
|
|
9066
|
+
const _hoisted_1$J = { class: "gitcode-tools-float-root home-nav-right" };
|
|
9067
|
+
const _hoisted_2$x = { class: "float-tooltip" };
|
|
9068
|
+
const _hoisted_3$v = { class: "float-tooltip-content" };
|
|
9069
|
+
const _hoisted_4$o = {
|
|
9134
9070
|
key: 0,
|
|
9135
|
-
class: "
|
|
9071
|
+
class: "tools-float-bar"
|
|
9136
9072
|
};
|
|
9137
|
-
const
|
|
9138
|
-
const
|
|
9139
|
-
const
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
};
|
|
9143
|
-
const
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
};
|
|
9147
|
-
const
|
|
9148
|
-
const
|
|
9149
|
-
|
|
9150
|
-
const _hoisted_24$2 = {
|
|
9151
|
-
key: 1,
|
|
9152
|
-
class: "Opinion tools-float-stage"
|
|
9153
|
-
};
|
|
9154
|
-
const _hoisted_25$2 = {
|
|
9155
|
-
key: 0,
|
|
9156
|
-
class: "tools-float-stage__corner"
|
|
9157
|
-
};
|
|
9158
|
-
const _hoisted_26$1 = { class: "tools-float-stage__title" };
|
|
9159
|
-
const _hoisted_27$1 = { class: "tools-float-stage__textarea" };
|
|
9160
|
-
const _hoisted_28$1 = {
|
|
9161
|
-
key: 1,
|
|
9162
|
-
class: "finish tools-float-finish"
|
|
9163
|
-
};
|
|
9164
|
-
const _hoisted_29$1 = { class: "tools-float-finish__icon" };
|
|
9165
|
-
const _hoisted_30$1 = { class: "tools-float-finish__text" };
|
|
9166
|
-
const _hoisted_31$1 = { class: "home-nav-item collapse-tool" };
|
|
9167
|
-
const _hoisted_32$1 = { class: "home-nav-item" };
|
|
9168
|
-
const _hoisted_33$1 = ["src", "alt"];
|
|
9169
|
-
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
9073
|
+
const _hoisted_5$j = { class: "float-tooltip" };
|
|
9074
|
+
const _hoisted_6$g = { class: "float-tooltip-content" };
|
|
9075
|
+
const _hoisted_7$d = { class: "float-tooltip" };
|
|
9076
|
+
const _hoisted_8$c = { class: "float-tooltip-content" };
|
|
9077
|
+
const _hoisted_9$b = { class: "float-tooltip" };
|
|
9078
|
+
const _hoisted_10$a = { class: "float-tooltip-content" };
|
|
9079
|
+
const _hoisted_11$8 = { class: "float-tooltip" };
|
|
9080
|
+
const _hoisted_12$8 = { class: "float-tooltip-content" };
|
|
9081
|
+
const _hoisted_13$4 = { class: "float-tooltip" };
|
|
9082
|
+
const _hoisted_14$3 = { class: "float-tooltip-content" };
|
|
9083
|
+
const _hoisted_15$3 = ["src", "alt"];
|
|
9084
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
9085
|
+
...{ name: "ToolsFloat" },
|
|
9170
9086
|
__name: "index",
|
|
9171
9087
|
props: {
|
|
9172
9088
|
sceneValue: { default: SceneValue.home },
|
|
@@ -9182,7 +9098,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9182
9098
|
const layoutConfig2 = useLayoutConfig();
|
|
9183
9099
|
const { t: t2 } = i18n.global;
|
|
9184
9100
|
const props = __props;
|
|
9185
|
-
provide(
|
|
9101
|
+
provide(
|
|
9102
|
+
"globalStore",
|
|
9103
|
+
computed(() => props.globalStore)
|
|
9104
|
+
);
|
|
9186
9105
|
const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
|
|
9187
9106
|
provide("useReport", useReport2);
|
|
9188
9107
|
const visibleItems = computed(() => {
|
|
@@ -9196,22 +9115,29 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9196
9115
|
case SceneValue.aiRepo:
|
|
9197
9116
|
case SceneValue.blog:
|
|
9198
9117
|
case SceneValue.active:
|
|
9199
|
-
return [
|
|
9118
|
+
return [
|
|
9119
|
+
ToolsFloatDisplayItem.GROWTH_CENTER,
|
|
9120
|
+
ToolsFloatDisplayItem.ELSE,
|
|
9121
|
+
ToolsFloatDisplayItem.AD,
|
|
9122
|
+
ToolsFloatDisplayItem.INVITE
|
|
9123
|
+
];
|
|
9200
9124
|
case SceneValue.enterprise:
|
|
9201
9125
|
return [ToolsFloatDisplayItem.ELSE];
|
|
9202
9126
|
default:
|
|
9203
|
-
return [
|
|
9127
|
+
return [
|
|
9128
|
+
ToolsFloatDisplayItem.GROWTH_CENTER,
|
|
9129
|
+
ToolsFloatDisplayItem.ELSE,
|
|
9130
|
+
ToolsFloatDisplayItem.AD,
|
|
9131
|
+
ToolsFloatDisplayItem.INVITE
|
|
9132
|
+
];
|
|
9204
9133
|
}
|
|
9205
9134
|
});
|
|
9206
|
-
const inviteVisible = computed(() => {
|
|
9207
|
-
return toolsFloatCollapseStatus.value === TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
|
|
9208
|
-
});
|
|
9209
9135
|
const isModuleVisible = (auth) => {
|
|
9210
|
-
|
|
9211
|
-
return visibleItems.value.includes(auth);
|
|
9212
|
-
}
|
|
9213
|
-
return visibleItems.value.includes(auth) && toolsFloatCollapseStatus.value === TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
|
|
9136
|
+
return visibleItems.value.includes(auth);
|
|
9214
9137
|
};
|
|
9138
|
+
const growthCenterTooltip = computed(() => {
|
|
9139
|
+
return props.isCannWhiteList ? t2("gitCodeLayout.userSetting.menu.cannTask") : t2("gitCodeLayout.userSetting.menu.growthCenter");
|
|
9140
|
+
});
|
|
9215
9141
|
const emits = __emit;
|
|
9216
9142
|
const toggleGrowthCenter = () => {
|
|
9217
9143
|
if (!props.isLogin) {
|
|
@@ -9239,59 +9165,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9239
9165
|
}
|
|
9240
9166
|
}
|
|
9241
9167
|
};
|
|
9242
|
-
const npsPopVisible = ref(true);
|
|
9243
|
-
const opinionStepList = [{ index: 0, offset_x: -30 }, { index: 1, offset_x: -80 }];
|
|
9244
|
-
const opinionStep = ref(0);
|
|
9245
|
-
const rateNow = ref(null);
|
|
9246
|
-
const rateActive = ref(null);
|
|
9247
|
-
const process2 = ref(true);
|
|
9248
|
-
const opinionText = ref("");
|
|
9249
|
-
const rateIcon = [
|
|
9250
|
-
{ name: "gt-nps-1", title: t2("gitCodeLayout.home.veryGood"), index: 0 },
|
|
9251
|
-
{ name: "gt-nps-2", title: t2("gitCodeLayout.home.good"), index: 1 },
|
|
9252
|
-
{ name: "gt-nps-3", title: t2("gitCodeLayout.home.generally"), index: 2 },
|
|
9253
|
-
{ name: "gt-nps-4", title: t2("gitCodeLayout.home.bad"), index: 3 },
|
|
9254
|
-
{ name: "gt-nps-5", title: t2("gitCodeLayout.home.veryBad"), index: 4 }
|
|
9255
|
-
];
|
|
9256
|
-
const store = localStorage$2.getItem("spmStatus");
|
|
9257
|
-
const status = store ? JSON.parse(store) : null;
|
|
9258
|
-
if (status !== null) {
|
|
9259
|
-
const { nps_global } = status;
|
|
9260
|
-
npsPopVisible.value = nps_global.expire && nps_global.expire < Date.now();
|
|
9261
|
-
}
|
|
9262
|
-
const swTab = (item) => {
|
|
9263
|
-
if (rateNow.value === null && item.index === 1) return;
|
|
9264
|
-
NPSOffsetOptions.crossAxis = item.offset_x;
|
|
9265
|
-
opinionStep.value = item.index;
|
|
9266
|
-
window.dispatchEvent(new Event("resize"));
|
|
9267
|
-
};
|
|
9268
|
-
const activeOp = (index2) => {
|
|
9269
|
-
rateActive.value = index2;
|
|
9270
|
-
};
|
|
9271
|
-
const selectOpinion = (item) => {
|
|
9272
|
-
rateNow.value = item.index;
|
|
9273
|
-
swTab(opinionStepList[1]);
|
|
9274
|
-
};
|
|
9275
|
-
const NPSOffsetOptions = reactive({ mainAxis: 10, crossAxis: -30 });
|
|
9276
|
-
const handleNpsSubmit = () => {
|
|
9277
|
-
useReport2(ToolsFloatReportEvent.NPS, {
|
|
9278
|
-
nps_score: rateNow.value + 1,
|
|
9279
|
-
nps_comment: opinionText.value
|
|
9280
|
-
});
|
|
9281
|
-
process2.value = false;
|
|
9282
|
-
NPSOffsetOptions.crossAxis = 0;
|
|
9283
|
-
window.dispatchEvent(new Event("resize"));
|
|
9284
|
-
const nextStatus = status || {};
|
|
9285
|
-
nextStatus.nps_global = { expire: Date.now() + 864e5 * 15 };
|
|
9286
|
-
localStorage$2.setItem("spmStatus", JSON.stringify(nextStatus));
|
|
9287
|
-
setTimeout(() => {
|
|
9288
|
-
npsPopVisible.value = false;
|
|
9289
|
-
}, 500);
|
|
9290
|
-
};
|
|
9291
9168
|
const activeAdJson = ref();
|
|
9292
9169
|
const activeAdItem = computed(() => {
|
|
9293
|
-
var _a;
|
|
9294
|
-
if (((_a = activeAdJson.value) == null ? void 0 : _a.adList.length) > 0) {
|
|
9170
|
+
var _a, _b;
|
|
9171
|
+
if (((_b = (_a = activeAdJson.value) == null ? void 0 : _a.adList) == null ? void 0 : _b.length) > 0) {
|
|
9295
9172
|
return activeAdJson.value.adList.filter((item) => item.showThis)[0];
|
|
9296
9173
|
}
|
|
9297
9174
|
return {};
|
|
@@ -9304,8 +9181,11 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9304
9181
|
return false;
|
|
9305
9182
|
}
|
|
9306
9183
|
const adLink = layoutConfig2.VITE_AD_LINK + "?timestamp=" + (/* @__PURE__ */ new Date()).getTime();
|
|
9307
|
-
|
|
9308
|
-
|
|
9184
|
+
try {
|
|
9185
|
+
const response = await fetch(adLink);
|
|
9186
|
+
activeAdJson.value = await response.json();
|
|
9187
|
+
} catch (e) {
|
|
9188
|
+
}
|
|
9309
9189
|
};
|
|
9310
9190
|
fetchAdList();
|
|
9311
9191
|
const handleLogin = (type) => {
|
|
@@ -9342,24 +9222,28 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9342
9222
|
}
|
|
9343
9223
|
};
|
|
9344
9224
|
const toolsFloatCollapseStatus = ref(TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND);
|
|
9345
|
-
const
|
|
9346
|
-
|
|
9225
|
+
const isCollapsed = computed(() => toolsFloatCollapseStatus.value === TOOLS_FLOAT_COLLAPSE_STATUS.COLLAPSE);
|
|
9226
|
+
const handleCollapseTool = (status) => {
|
|
9227
|
+
toolsFloatCollapseStatus.value = status;
|
|
9347
9228
|
if (props.isRepoPage) {
|
|
9348
|
-
localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO,
|
|
9229
|
+
localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO, status);
|
|
9349
9230
|
} else {
|
|
9350
|
-
localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY,
|
|
9231
|
+
localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY, status);
|
|
9351
9232
|
localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_DATE_KEY, (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN"));
|
|
9352
9233
|
}
|
|
9353
9234
|
};
|
|
9354
9235
|
__expose({
|
|
9355
9236
|
handleCollapseTool
|
|
9356
9237
|
});
|
|
9357
|
-
watch(
|
|
9358
|
-
|
|
9359
|
-
|
|
9238
|
+
watch(
|
|
9239
|
+
() => props.isWhiteListRepo,
|
|
9240
|
+
() => {
|
|
9241
|
+
initToolsFloatCollapse();
|
|
9242
|
+
}
|
|
9243
|
+
);
|
|
9360
9244
|
const initToolsFloatCollapse = () => {
|
|
9361
9245
|
const statusForRepo = localStorage$2.getItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO);
|
|
9362
|
-
const
|
|
9246
|
+
const status = localStorage$2.getItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY);
|
|
9363
9247
|
const statusDate = localStorage$2.getItem(TOOLS_FLOAT_COLLAPSE_DATE_KEY);
|
|
9364
9248
|
if (props.isRepoPage) {
|
|
9365
9249
|
if (statusForRepo) {
|
|
@@ -9368,8 +9252,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9368
9252
|
toolsFloatCollapseStatus.value = props.isWhiteListRepo ? TOOLS_FLOAT_COLLAPSE_STATUS.COLLAPSE : TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
|
|
9369
9253
|
}
|
|
9370
9254
|
} else {
|
|
9371
|
-
if (
|
|
9372
|
-
toolsFloatCollapseStatus.value =
|
|
9255
|
+
if (status && statusDate === (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN")) {
|
|
9256
|
+
toolsFloatCollapseStatus.value = status;
|
|
9373
9257
|
} else {
|
|
9374
9258
|
toolsFloatCollapseStatus.value = TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
|
|
9375
9259
|
localStorage$2.removeItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY);
|
|
@@ -9380,11 +9264,14 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9380
9264
|
udeskInit();
|
|
9381
9265
|
}
|
|
9382
9266
|
};
|
|
9383
|
-
watch(
|
|
9384
|
-
|
|
9385
|
-
|
|
9267
|
+
watch(
|
|
9268
|
+
() => toolsFloatCollapseStatus.value,
|
|
9269
|
+
(val) => {
|
|
9270
|
+
if (val === TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND && visibleItems.value.includes(ToolsFloatDisplayItem.ELSE)) {
|
|
9271
|
+
udeskInit();
|
|
9272
|
+
}
|
|
9386
9273
|
}
|
|
9387
|
-
|
|
9274
|
+
);
|
|
9388
9275
|
onMounted(() => {
|
|
9389
9276
|
window.addEventListener("scroll", handleScroll);
|
|
9390
9277
|
initToolsFloatCollapse();
|
|
@@ -9393,323 +9280,167 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9393
9280
|
window.removeEventListener("scroll", handleScroll);
|
|
9394
9281
|
});
|
|
9395
9282
|
return (_ctx, _cache) => {
|
|
9396
|
-
return openBlock(), createElementBlock("div",
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
createElementVNode("div", _hoisted_2$w, [
|
|
9425
|
-
_cache[5] || (_cache[5] = createElementVNode("img", {
|
|
9426
|
-
class: "common-icon tools-float-icon",
|
|
9427
|
-
src: "https://cdn-static.gitcode.com/static/images/homeweb/invite.svg",
|
|
9428
|
-
alt: ""
|
|
9429
|
-
}, null, -1)),
|
|
9430
|
-
createElementVNode("div", _hoisted_3$v, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
|
|
9283
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
9284
|
+
createVNode(Transition, { name: "tools-float-fade" }, {
|
|
9285
|
+
default: withCtx(() => [
|
|
9286
|
+
showScrollToTopBtn.value ? (openBlock(), createElementBlock("div", {
|
|
9287
|
+
key: 0,
|
|
9288
|
+
class: normalizeClass(["tools-float-topping-btn", { "is-collapsed": isCollapsed.value }]),
|
|
9289
|
+
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
9290
|
+
(...args) => unref(scrollToTop) && unref(scrollToTop)(...args))
|
|
9291
|
+
}, [
|
|
9292
|
+
_cache[4] || (_cache[4] = createElementVNode("div", { class: "tools-float-item__icon" }, [
|
|
9293
|
+
createElementVNode("svg", {
|
|
9294
|
+
width: "16",
|
|
9295
|
+
height: "16",
|
|
9296
|
+
viewBox: "0 0 16 16",
|
|
9297
|
+
fill: "currentColor",
|
|
9298
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9299
|
+
}, [
|
|
9300
|
+
createElementVNode("path", {
|
|
9301
|
+
"fill-rule": "evenodd",
|
|
9302
|
+
"clip-rule": "evenodd",
|
|
9303
|
+
d: "M7.5 4.91421L2.35355 10.0607L1.64645 9.35355L8 3L14.3536 9.35355L13.6464 10.0607L8.5 4.91421L8.49999 15H7.49999L7.5 4.91421Z"
|
|
9304
|
+
}),
|
|
9305
|
+
createElementVNode("rect", {
|
|
9306
|
+
x: "2",
|
|
9307
|
+
y: "1",
|
|
9308
|
+
width: "12",
|
|
9309
|
+
height: "1"
|
|
9310
|
+
})
|
|
9431
9311
|
])
|
|
9312
|
+
], -1)),
|
|
9313
|
+
createElementVNode("div", _hoisted_2$x, [
|
|
9314
|
+
createElementVNode("span", _hoisted_3$v, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.backToTop")), 1),
|
|
9315
|
+
_cache[3] || (_cache[3] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9432
9316
|
])
|
|
9433
|
-
]),
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9317
|
+
], 2)) : createCommentVNode("", true)
|
|
9318
|
+
]),
|
|
9319
|
+
_: 1
|
|
9320
|
+
}),
|
|
9321
|
+
!isCollapsed.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
9322
|
+
isModuleVisible(unref(ToolsFloatDisplayItem).GROWTH_CENTER) ? (openBlock(), createElementBlock("div", {
|
|
9323
|
+
key: 0,
|
|
9324
|
+
id: "guide-step4",
|
|
9325
|
+
class: "tools-float-item",
|
|
9326
|
+
onClick: toggleGrowthCenter
|
|
9327
|
+
}, [
|
|
9328
|
+
_cache[6] || (_cache[6] = createStaticVNode('<div class="tools-float-item__icon" data-v-vue-layout-gitcode><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" data-v-vue-layout-gitcode><g transform="translate(1, 0.26)" data-v-vue-layout-gitcode><path d="M6.37369 9.73359H7.67369V12.7336H6.37371L6.37369 9.73359Z" data-v-vue-layout-gitcode></path><path d="M9.8064 4.18587L8.34306 5.28613L8.88219 7.02454C8.88219 7.03555 8.89319 7.05755 8.89319 7.06855C8.89319 7.12357 8.87118 7.16758 8.82717 7.20058C8.79416 7.22259 8.76116 7.23359 8.72815 7.23359C8.69514 7.23359 8.66213 7.22259 8.64013 7.20058L7.12177 6.17734L5.61441 7.22259C5.5594 7.2666 5.48238 7.2666 5.42737 7.22259C5.38336 7.17858 5.36135 7.13457 5.36135 7.07956C5.36135 7.05755 5.36135 7.04655 5.37235 7.02454L5.90048 5.28613L4.43713 4.18587C4.38212 4.14186 4.36011 4.06484 4.38212 3.99883C4.40413 3.93281 4.47014 3.8888 4.53616 3.8888L6.37359 3.85579L6.97873 2.12838C7.00074 2.06237 7.06676 2.01836 7.13277 2.01836C7.19879 2.01836 7.2648 2.06237 7.28681 2.12838L7.89195 3.85579L9.72939 3.8888C10.7954 3.8888 10.8614 3.93281 10.8834 3.99883C10.8834 4.06484 10.8614 4.14186 10.8064 4.18587Z" data-v-vue-layout-gitcode></path><path d="M2.32766 2.22724V3.17963C2.26417 3.16693 2.18798 3.15423 2.11179 3.15423C2.0229 3.15423 1.94671 3.15423 1.87052 3.17963C1.10861 3.3701 0.727662 4.48756 1.01973 5.60502C2.2483 6.50661 1.88322 7.19232 2.53084 7.33201C2.53084 7.30661 2.87369 8.24629 2.87369 8.2209C2.8229 8.23359 2.75941 8.23359 2.70861 8.23359C1.60385 8.23359 0.511789 7.25582 0.130837 5.83359C-0.300909 4.2082 0.372107 2.6082 1.61655 2.27804C1.78163 2.23994 1.94671 2.21455 2.11179 2.21455C2.17528 2.21455 2.25147 2.21455 2.32766 2.22724Z" data-v-vue-layout-gitcode></path><path d="M11.6769 2.24629V3.19867C11.7403 3.18597 11.8165 3.17328 11.8927 3.17328C11.9816 3.17328 12.0578 3.17328 13.134 3.19867C12.8959 3.38915 13.2769 4.50661 12.9848 5.62407C12.7562 6.52566 12.1213 7.21137 12.4737 7.35105C12.4737 7.32566 11.1308 8.26534 11.1308 8.23994C11.1816 8.25264 11.2451 8.25264 11.2959 8.25264C12.4007 8.25264 13.4927 7.27486 14.8737 5.85264C14.3054 4.22724 13.6324 2.62724 12.388 2.29709C12.2229 2.25899 12.0578 2.23359 11.8927 2.23359C11.8292 2.23359 11.753 2.23359 11.6769 2.24629Z" data-v-vue-layout-gitcode></path><path d="M7.00412 10.236C6.20909 10.236 5.41406 10.0373 4.7184 9.73913C3.12834 9.24225 2.23393 7.75155 2.23393 6.06211V0.695656C2.23393 0.298125 2.53206 0 2.92959 0H11.178C11.5755 0 11.8737 0.298125 11.8737 0.695656V6.06211C11.8737 7.65217 10.8799 9.14286 9.38921 9.73914C8.59418 10.1366 7.79915 10.236 7.00412 10.236ZM3.22771 0.993781V6.06211C3.22771 7.25466 3.92337 8.34783 5.11592 8.84472C6.40785 9.34161 7.79915 9.34161 8.9917 8.84472C10.0849 8.34783 10.8799 7.25466 10.8799 6.06211V0.993781H3.22771Z" data-v-vue-layout-gitcode></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.191 13.4781H4.88525L4.71859 14.4781H9.35766L9.191 13.4781ZM4.88525 12.4781H9.191C9.67984 12.4781 10.097 12.8315 10.1774 13.3137L10.3441 14.3137C10.4456 14.9233 9.9756 15.4781 9.35766 15.4781H4.71859C4.10065 15.4781 3.6306 14.9233 3.73219 14.3137L3.89886 13.3137C3.97922 12.8315 4.39641 12.4781 4.88525 12.4781Z" data-v-vue-layout-gitcode></path></g></svg></div>', 1)),
|
|
9329
|
+
createElementVNode("div", _hoisted_5$j, [
|
|
9330
|
+
createElementVNode("span", _hoisted_6$g, toDisplayString$1(growthCenterTooltip.value), 1),
|
|
9331
|
+
_cache[5] || (_cache[5] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9332
|
+
])
|
|
9333
|
+
])) : createCommentVNode("", true),
|
|
9334
|
+
isModuleVisible(unref(ToolsFloatDisplayItem).INVITE) ? (openBlock(), createElementBlock("div", {
|
|
9437
9335
|
key: 1,
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
},
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
|
|
9336
|
+
class: "tools-float-item",
|
|
9337
|
+
onClick: handleInvite
|
|
9338
|
+
}, [
|
|
9339
|
+
_cache[8] || (_cache[8] = createStaticVNode('<div class="tools-float-item__icon" data-v-vue-layout-gitcode><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-vue-layout-gitcode><path d="M5.76106 0.835284V0.836261C6.72931 0.885228 7.49934 1.6864 7.49934 2.66732V4.49935H5.66731L5.56282 4.49642C4.68866 4.44778 3.97761 3.7865 3.85286 2.93489L3.83625 2.76107L3.83333 2.66732C3.83333 1.65629 4.65197 0.835756 5.66243 0.833331L5.76106 0.835284Z" stroke="currentColor" data-v-vue-layout-gitcode></path><path d="M10.2389 0.835284V0.836261C9.27067 0.885228 8.50064 1.6864 8.50064 2.66732V4.49935H10.3327L10.4372 4.49642C11.3113 4.44778 12.0224 3.7865 12.1471 2.93489L12.1637 2.76107L12.1667 2.66732C12.1667 1.65629 11.348 0.835756 10.3375 0.833331L10.2389 0.835284Z" stroke="currentColor" data-v-vue-layout-gitcode></path><path d="M2.50039 7.52441L2.02578 7.50098L1.90957 7.49512C1.49211 7.45034 1.16657 7.09627 1.16641 6.66699V5.33301L1.17031 5.24805C1.21307 4.82811 1.56865 4.5 2.00039 4.5H14.0004C14.4604 4.50019 14.8332 4.87305 14.8334 5.33301V6.66699L14.8295 6.74707C14.7918 7.14014 14.4809 7.4537 14.0893 7.49512L13.975 7.50098L13.5004 7.52441V14.333C13.5004 14.7932 13.1266 15.167 12.6664 15.167H3.3334C2.87364 15.167 2.50039 14.7937 2.50039 14.333V7.52441Z" stroke="currentColor" data-v-vue-layout-gitcode></path><rect x="5.25" y="12.25" width="5.5" height="0.5" rx="0.25" stroke="currentColor" stroke-width="0.5" stroke-linejoin="round" data-v-vue-layout-gitcode></rect><rect x="2.25" y="7.25" width="11.5" height="0.5" stroke="currentColor" stroke-width="0.5" data-v-vue-layout-gitcode></rect></svg></div>', 1)),
|
|
9340
|
+
createElementVNode("div", _hoisted_7$d, [
|
|
9341
|
+
createElementVNode("span", _hoisted_8$c, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1),
|
|
9342
|
+
_cache[7] || (_cache[7] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9343
|
+
])
|
|
9344
|
+
])) : createCommentVNode("", true),
|
|
9345
|
+
isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", {
|
|
9346
|
+
key: 2,
|
|
9347
|
+
id: "gitcode-desk-btn",
|
|
9348
|
+
class: "tools-float-item",
|
|
9349
|
+
onClick: showDesk
|
|
9350
|
+
}, [
|
|
9351
|
+
_cache[10] || (_cache[10] = createElementVNode("div", { class: "tools-float-item__icon" }, [
|
|
9352
|
+
createElementVNode("svg", {
|
|
9353
|
+
width: "16",
|
|
9354
|
+
height: "16",
|
|
9355
|
+
viewBox: "0 0 16 16",
|
|
9356
|
+
fill: "currentColor",
|
|
9357
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9358
|
+
}, [
|
|
9359
|
+
createElementVNode("path", { d: "M14.6182 12.3893H12.2961C12.0184 12.3893 11.7934 12.1643 11.7934 11.8865L11.7881 5.96621C11.7564 3.89551 10.0742 2.31523 8 2.30469C5.92578 2.31523 4.24355 3.89551 4.21016 5.96621L4.20664 11.1025C4.20664 11.1025 4.85527 13.342 6.40039 13.0818C6.51816 12.6898 6.93301 12.5422 7.2002 12.5422H8.82793C9.3834 12.5422 9.8334 12.9922 9.8334 13.5477V13.8623C9.8334 14.4178 9.3834 14.8678 8.82793 14.8678H7.33027C6.90488 14.8678 6.54277 14.6006 6.39512 14.2262C6.37051 14.2121 6.17012 14.2297 5.97324 14.1875C4.44922 13.6426 3.78125 12.3822 3.78125 12.3822C3.75488 12.3875 3.72852 12.391 3.70215 12.391H1.38184C1.1041 12.391 0.879102 12.166 0.879102 11.8883V6.73437C0.879102 6.45664 1.1041 6.23164 1.38184 6.23164H3.04121C3.04121 5.80625 3.03945 5.96445 3.03945 5.96445C3.09922 1.1498 7.91738 1.13398 7.91738 1.13398C7.95605 1.13223 8.0457 1.13223 8.08262 1.13398C8.08262 1.13398 12.9008 1.15156 12.9605 5.96445C12.9605 5.96445 12.9605 5.80449 12.9588 6.23164H14.6182C14.8959 6.23164 15.1209 6.45664 15.1209 6.73437V11.8865C15.1209 12.1643 14.8959 12.3893 14.6182 12.3893ZM3.14492 7.70469C3.14492 7.53418 3.05352 7.39531 2.94102 7.39531H2.0832C1.9707 7.39531 1.8793 7.53418 1.8793 7.70469V10.8775C1.8793 11.0498 1.9707 11.1869 2.0832 11.1869H2.94102C3.05352 11.1869 3.14492 11.048 3.14492 10.8775V7.70469ZM14.1207 7.70469C14.1207 7.53418 14.0293 7.39531 13.9168 7.39531H13.0607C12.9482 7.39531 12.8551 7.53418 12.8551 7.70469V10.8775C12.8551 11.0498 12.9482 11.1869 13.0607 11.1869H13.9168C14.0293 11.1869 14.1207 11.048 14.1207 10.8775V7.70469Z" })
|
|
9444
9360
|
])
|
|
9445
|
-
]),
|
|
9446
|
-
|
|
9447
|
-
createElementVNode("
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
onClick: toggleGrowthCenter
|
|
9451
|
-
}, _cache[6] || (_cache[6] = [
|
|
9452
|
-
createElementVNode("div", { class: "home-nav-item" }, [
|
|
9453
|
-
createElementVNode("img", {
|
|
9454
|
-
class: "common-icon tools-float-icon",
|
|
9455
|
-
src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
|
|
9456
|
-
alt: ""
|
|
9457
|
-
})
|
|
9458
|
-
], -1)
|
|
9459
|
-
]))
|
|
9460
|
-
]),
|
|
9461
|
-
_: 1
|
|
9462
|
-
})) : createCommentVNode("", true),
|
|
9463
|
-
isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_8$c, [
|
|
9464
|
-
createVNode(unref(Tooltip), {
|
|
9465
|
-
position: "left",
|
|
9466
|
-
"overlay-class": "tools-tag-tooltip"
|
|
9467
|
-
}, {
|
|
9468
|
-
content: withCtx(() => [
|
|
9469
|
-
createElementVNode("div", _hoisted_9$b, [
|
|
9470
|
-
createElementVNode("div", _hoisted_10$a, [
|
|
9471
|
-
createElementVNode("p", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
|
|
9472
|
-
createElementVNode("p", _hoisted_11$8, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback02")), 1)
|
|
9473
|
-
])
|
|
9474
|
-
])
|
|
9475
|
-
]),
|
|
9476
|
-
default: withCtx(() => [
|
|
9477
|
-
createElementVNode("div", { class: "tools-list-item tools-list-item--gap" }, [
|
|
9478
|
-
createElementVNode("div", {
|
|
9479
|
-
id: "gitcode-desk-btn",
|
|
9480
|
-
class: "home-nav-item kefu",
|
|
9481
|
-
onClick: showDesk
|
|
9482
|
-
}, _cache[7] || (_cache[7] = [
|
|
9483
|
-
createElementVNode("img", {
|
|
9484
|
-
class: "tools-float-icon",
|
|
9485
|
-
src: "https://cdn-static.gitcode.com/static/images/desk/kefu.png",
|
|
9486
|
-
alt: ""
|
|
9487
|
-
}, null, -1),
|
|
9488
|
-
createElementVNode("div", null, [
|
|
9489
|
-
createElementVNode("div", null, "客"),
|
|
9490
|
-
createElementVNode("div", null, "服")
|
|
9491
|
-
], -1)
|
|
9492
|
-
]))
|
|
9493
|
-
])
|
|
9494
|
-
]),
|
|
9495
|
-
_: 1
|
|
9496
|
-
}),
|
|
9497
|
-
createVNode(unref(Tooltip), {
|
|
9498
|
-
position: "left",
|
|
9499
|
-
"overlay-class": "tools-tag-tooltip"
|
|
9500
|
-
}, {
|
|
9501
|
-
content: withCtx(() => [
|
|
9502
|
-
createElementVNode("div", _hoisted_12$7, [
|
|
9503
|
-
createElementVNode("div", _hoisted_13$3, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
|
|
9504
|
-
_cache[8] || (_cache[8] = createElementVNode("img", {
|
|
9505
|
-
class: "qrcode",
|
|
9506
|
-
src: "https://cdn-static.gitcode.com/static/images/points/wx_gitcode.png"
|
|
9507
|
-
}, null, -1))
|
|
9508
|
-
])
|
|
9509
|
-
]),
|
|
9510
|
-
default: withCtx(() => [
|
|
9511
|
-
_cache[9] || (_cache[9] = createElementVNode("a", { class: "home-nav-link tools-list-item" }, [
|
|
9512
|
-
createElementVNode("div", { class: "home-nav-item" }, [
|
|
9513
|
-
createElementVNode("img", {
|
|
9514
|
-
class: "common-icon tools-float-icon",
|
|
9515
|
-
src: "https://cdn-static.gitcode.com/static/images/desk/follow-us.svg",
|
|
9516
|
-
alt: ""
|
|
9517
|
-
}),
|
|
9518
|
-
createElementVNode("img", {
|
|
9519
|
-
class: "active-icon tools-float-icon",
|
|
9520
|
-
src: "https://cdn-static.gitcode.com/static/images/desk/follow-us-hover.svg",
|
|
9521
|
-
alt: ""
|
|
9522
|
-
})
|
|
9523
|
-
])
|
|
9524
|
-
], -1))
|
|
9525
|
-
]),
|
|
9526
|
-
_: 1,
|
|
9527
|
-
__: [9]
|
|
9528
|
-
}),
|
|
9529
|
-
npsPopVisible.value ? (openBlock(), createBlock(unref(Popover), {
|
|
9530
|
-
key: 0,
|
|
9531
|
-
trigger: "click",
|
|
9532
|
-
offset: NPSOffsetOptions,
|
|
9533
|
-
position: ["left"],
|
|
9534
|
-
class: "no-arrow",
|
|
9535
|
-
"is-open": npsPopVisible.value
|
|
9536
|
-
}, {
|
|
9537
|
-
content: withCtx(() => [
|
|
9538
|
-
createElementVNode("div", _hoisted_15$3, [
|
|
9539
|
-
process2.value ? (openBlock(), createElementBlock("div", _hoisted_16$3, [
|
|
9540
|
-
createElementVNode("div", _hoisted_17$3, [
|
|
9541
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(opinionStepList, (item) => {
|
|
9542
|
-
return createElementVNode("div", {
|
|
9543
|
-
key: item.index,
|
|
9544
|
-
class: normalizeClass(["tab-item", opinionStep.value === item.index ? "tab-item--active" : "tab-item--inactive"]),
|
|
9545
|
-
onClick: ($event) => swTab(item)
|
|
9546
|
-
}, _cache[11] || (_cache[11] = [
|
|
9547
|
-
createElementVNode("span", { class: "tools-float-cursor-pointer" }, null, -1)
|
|
9548
|
-
]), 10, _hoisted_18$3);
|
|
9549
|
-
}), 64))
|
|
9550
|
-
]),
|
|
9551
|
-
createElementVNode("div", null, [
|
|
9552
|
-
opinionStep.value === 0 ? (openBlock(), createElementBlock("div", _hoisted_19$3, [
|
|
9553
|
-
rateActive.value !== null || rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_20$3, [
|
|
9554
|
-
createElementVNode("span", null, toDisplayString$1(rateIcon[rateActive.value === null ? rateNow.value : rateActive.value].title), 1)
|
|
9555
|
-
])) : createCommentVNode("", true),
|
|
9556
|
-
createElementVNode("div", _hoisted_21$3, [
|
|
9557
|
-
createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.rateExperience")), 1)
|
|
9558
|
-
]),
|
|
9559
|
-
createElementVNode("div", _hoisted_22$3, [
|
|
9560
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(rateIcon, (ico) => {
|
|
9561
|
-
return createElementVNode("div", {
|
|
9562
|
-
key: ico.name,
|
|
9563
|
-
class: normalizeClass(["opinion-item", { active: rateNow.value === ico.index }]),
|
|
9564
|
-
onMouseover: ($event) => activeOp(ico.index),
|
|
9565
|
-
onMouseleave: _cache[1] || (_cache[1] = ($event) => activeOp(null)),
|
|
9566
|
-
onClick: ($event) => selectOpinion(ico)
|
|
9567
|
-
}, [
|
|
9568
|
-
createVNode(GIcon, {
|
|
9569
|
-
name: ico.name,
|
|
9570
|
-
size: "24px"
|
|
9571
|
-
}, null, 8, ["name"])
|
|
9572
|
-
], 42, _hoisted_23$2);
|
|
9573
|
-
}), 64))
|
|
9574
|
-
])
|
|
9575
|
-
])) : createCommentVNode("", true),
|
|
9576
|
-
opinionStep.value === 1 ? (openBlock(), createElementBlock("div", _hoisted_24$2, [
|
|
9577
|
-
rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_25$2, [
|
|
9578
|
-
createElementVNode("span", null, toDisplayString$1(rateIcon[rateNow.value].title), 1)
|
|
9579
|
-
])) : createCommentVNode("", true),
|
|
9580
|
-
createElementVNode("div", _hoisted_26$1, [
|
|
9581
|
-
createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.improveQuestion")) + "?", 1)
|
|
9582
|
-
]),
|
|
9583
|
-
createElementVNode("div", _hoisted_27$1, [
|
|
9584
|
-
createVNode(unref(Textarea), {
|
|
9585
|
-
modelValue: opinionText.value,
|
|
9586
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => opinionText.value = $event),
|
|
9587
|
-
rows: 4,
|
|
9588
|
-
placeholder: unref(t2)("gitCodeLayout.home.facebackPlaceholder"),
|
|
9589
|
-
"show-count": "",
|
|
9590
|
-
maxlength: "200"
|
|
9591
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
9592
|
-
]),
|
|
9593
|
-
createElementVNode("div", null, [
|
|
9594
|
-
createVNode(unref(Button), {
|
|
9595
|
-
color: "primary",
|
|
9596
|
-
variant: "solid",
|
|
9597
|
-
onClick: handleNpsSubmit
|
|
9598
|
-
}, {
|
|
9599
|
-
default: withCtx(() => [
|
|
9600
|
-
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.repo.pr.commit")), 1)
|
|
9601
|
-
]),
|
|
9602
|
-
_: 1
|
|
9603
|
-
})
|
|
9604
|
-
])
|
|
9605
|
-
])) : createCommentVNode("", true)
|
|
9606
|
-
])
|
|
9607
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_28$1, [
|
|
9608
|
-
createElementVNode("div", _hoisted_29$1, [
|
|
9609
|
-
createVNode(GIcon, {
|
|
9610
|
-
name: "gt-success",
|
|
9611
|
-
size: "14px",
|
|
9612
|
-
color: "#fff"
|
|
9613
|
-
})
|
|
9614
|
-
]),
|
|
9615
|
-
createElementVNode("div", _hoisted_30$1, [
|
|
9616
|
-
createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.thankFaceback")) + "!", 1)
|
|
9617
|
-
])
|
|
9618
|
-
]))
|
|
9619
|
-
])
|
|
9620
|
-
]),
|
|
9621
|
-
default: withCtx(() => [
|
|
9622
|
-
createElementVNode("div", _hoisted_14$3, [
|
|
9623
|
-
createVNode(unref(Popover), {
|
|
9624
|
-
class: "custom-popover-feedback",
|
|
9625
|
-
position: ["left"],
|
|
9626
|
-
content: unref(t2)("gitCodeLayout.home.userFeedbackProductRecommendations"),
|
|
9627
|
-
trigger: "hover",
|
|
9628
|
-
offset: { mainAxis: 22, crossAxis: 0 }
|
|
9629
|
-
}, {
|
|
9630
|
-
default: withCtx(() => _cache[10] || (_cache[10] = [
|
|
9631
|
-
createElementVNode("div", { class: "home-nav-item" }, [
|
|
9632
|
-
createElementVNode("img", {
|
|
9633
|
-
class: "common-icon tools-float-icon",
|
|
9634
|
-
src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile.png",
|
|
9635
|
-
alt: ""
|
|
9636
|
-
}),
|
|
9637
|
-
createElementVNode("img", {
|
|
9638
|
-
class: "active-icon tools-float-icon",
|
|
9639
|
-
src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile-hover.png",
|
|
9640
|
-
alt: ""
|
|
9641
|
-
})
|
|
9642
|
-
], -1)
|
|
9643
|
-
])),
|
|
9644
|
-
_: 1,
|
|
9645
|
-
__: [10]
|
|
9646
|
-
}, 8, ["content"])
|
|
9647
|
-
])
|
|
9648
|
-
]),
|
|
9649
|
-
_: 1
|
|
9650
|
-
}, 8, ["offset", "is-open"])) : createCommentVNode("", true),
|
|
9651
|
-
_cache[12] || (_cache[12] = createElementVNode("div", { class: "divider" }, null, -1)),
|
|
9652
|
-
createVNode(unref(Popover), {
|
|
9653
|
-
position: ["left"],
|
|
9654
|
-
content: "收起",
|
|
9655
|
-
trigger: "hover",
|
|
9656
|
-
class: "custom-popover-feedback"
|
|
9657
|
-
}, {
|
|
9658
|
-
default: withCtx(() => [
|
|
9659
|
-
createElementVNode("div", {
|
|
9660
|
-
class: "tools-list-item",
|
|
9661
|
-
onClick: _cache[3] || (_cache[3] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).COLLAPSE))
|
|
9662
|
-
}, [
|
|
9663
|
-
createElementVNode("div", _hoisted_31$1, [
|
|
9664
|
-
createVNode(GIcon, {
|
|
9665
|
-
name: "gt-plane-skip",
|
|
9666
|
-
size: "18px"
|
|
9667
|
-
})
|
|
9668
|
-
])
|
|
9669
|
-
])
|
|
9670
|
-
]),
|
|
9671
|
-
_: 1
|
|
9672
|
-
})
|
|
9361
|
+
], -1)),
|
|
9362
|
+
createElementVNode("div", _hoisted_9$b, [
|
|
9363
|
+
createElementVNode("span", _hoisted_10$a, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
|
|
9364
|
+
_cache[9] || (_cache[9] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9365
|
+
])
|
|
9673
9366
|
])) : createCommentVNode("", true),
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9367
|
+
_cache[13] || (_cache[13] = createElementVNode("div", { class: "tools-float-divider" }, null, -1)),
|
|
9368
|
+
createElementVNode("div", {
|
|
9369
|
+
class: "tools-float-item collapse-tool",
|
|
9370
|
+
onClick: _cache[1] || (_cache[1] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).COLLAPSE))
|
|
9371
|
+
}, [
|
|
9372
|
+
_cache[12] || (_cache[12] = createElementVNode("div", { class: "tools-float-item__icon" }, [
|
|
9373
|
+
createElementVNode("svg", {
|
|
9374
|
+
width: "16",
|
|
9375
|
+
height: "16",
|
|
9376
|
+
viewBox: "0 0 16 16",
|
|
9377
|
+
fill: "currentColor",
|
|
9378
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9681
9379
|
}, [
|
|
9682
|
-
createElementVNode("
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9380
|
+
createElementVNode("path", {
|
|
9381
|
+
"fill-rule": "evenodd",
|
|
9382
|
+
"clip-rule": "evenodd",
|
|
9383
|
+
d: "M12.7929 7.5L7.64645 2.35355L8.35355 1.64645L14.7071 8L8.35355 14.3536L7.64645 13.6464L12.7929 8.5H2V7.5H12.7929Z"
|
|
9384
|
+
})
|
|
9385
|
+
])
|
|
9386
|
+
], -1)),
|
|
9387
|
+
createElementVNode("div", _hoisted_11$8, [
|
|
9388
|
+
createElementVNode("span", _hoisted_12$8, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.collapse")), 1),
|
|
9389
|
+
_cache[11] || (_cache[11] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9390
|
+
])
|
|
9391
|
+
])
|
|
9392
|
+
])) : (openBlock(), createElementBlock("div", {
|
|
9393
|
+
key: 1,
|
|
9394
|
+
class: "tools-float-collapsed-tab",
|
|
9395
|
+
onClick: _cache[2] || (_cache[2] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).EXPAND))
|
|
9396
|
+
}, [
|
|
9397
|
+
_cache[15] || (_cache[15] = createElementVNode("div", { class: "tools-float-item__icon" }, [
|
|
9398
|
+
createElementVNode("svg", {
|
|
9399
|
+
width: "16",
|
|
9400
|
+
height: "16",
|
|
9401
|
+
viewBox: "0 0 16 16",
|
|
9402
|
+
fill: "currentColor",
|
|
9403
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9404
|
+
}, [
|
|
9405
|
+
createElementVNode("path", {
|
|
9406
|
+
"fill-rule": "evenodd",
|
|
9407
|
+
"clip-rule": "evenodd",
|
|
9408
|
+
d: "M12.7929 7.5L7.64645 2.35355L8.35355 1.64645L14.7071 8L8.35355 14.3536L7.64645 13.6464L12.7929 8.5H2V7.5H12.7929Z"
|
|
9409
|
+
})
|
|
9410
|
+
])
|
|
9411
|
+
], -1)),
|
|
9412
|
+
createElementVNode("div", _hoisted_13$4, [
|
|
9413
|
+
createElementVNode("span", _hoisted_14$3, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.expand")), 1),
|
|
9414
|
+
_cache[14] || (_cache[14] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9415
|
+
])
|
|
9416
|
+
])),
|
|
9417
|
+
isModuleVisible(unref(ToolsFloatDisplayItem).AD) && activeAdItem.value && activeAdItem.value.imgUrl ? (openBlock(), createElementBlock("div", {
|
|
9418
|
+
key: 2,
|
|
9419
|
+
class: "active-tips",
|
|
9420
|
+
onClick: withModifiers(handleActive, ["stop"])
|
|
9421
|
+
}, [
|
|
9422
|
+
createElementVNode("div", {
|
|
9423
|
+
class: "close-btn",
|
|
9424
|
+
onClick: withModifiers(handleActiveClose, ["stop"])
|
|
9691
9425
|
}),
|
|
9692
|
-
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
},
|
|
9697
|
-
|
|
9698
|
-
class: "close-btn",
|
|
9699
|
-
onClick: handleActiveClose
|
|
9700
|
-
}),
|
|
9701
|
-
createElementVNode("img", {
|
|
9702
|
-
width: "200",
|
|
9703
|
-
src: activeAdItem.value.imgUrl,
|
|
9704
|
-
alt: activeAdItem.value.title
|
|
9705
|
-
}, null, 8, _hoisted_33$1)
|
|
9706
|
-
])) : createCommentVNode("", true)
|
|
9707
|
-
])
|
|
9426
|
+
createElementVNode("img", {
|
|
9427
|
+
width: "200",
|
|
9428
|
+
src: activeAdItem.value.imgUrl,
|
|
9429
|
+
alt: activeAdItem.value.title
|
|
9430
|
+
}, null, 8, _hoisted_15$3)
|
|
9431
|
+
])) : createCommentVNode("", true)
|
|
9708
9432
|
]);
|
|
9709
9433
|
};
|
|
9710
9434
|
}
|
|
9711
9435
|
});
|
|
9712
|
-
const
|
|
9436
|
+
const _export_sfc = (sfc, props) => {
|
|
9437
|
+
const target = sfc.__vccOpts || sfc;
|
|
9438
|
+
for (const [key, val] of props) {
|
|
9439
|
+
target[key] = val;
|
|
9440
|
+
}
|
|
9441
|
+
return target;
|
|
9442
|
+
};
|
|
9443
|
+
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
9713
9444
|
var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
|
|
9714
9445
|
repoTypeEnum2["NORMAL"] = "0";
|
|
9715
9446
|
repoTypeEnum2["MODEL"] = "1";
|
|
@@ -9852,6 +9583,54 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
|
|
|
9852
9583
|
delete reportData["utm_source"];
|
|
9853
9584
|
window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
|
|
9854
9585
|
};
|
|
9586
|
+
const _hoisted_1$I = ["xlink:href"];
|
|
9587
|
+
const _hoisted_2$w = ["xlink:href"];
|
|
9588
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
9589
|
+
__name: "index",
|
|
9590
|
+
props: {
|
|
9591
|
+
name: { default: "gt-run" },
|
|
9592
|
+
size: { default: "16px" },
|
|
9593
|
+
color: { default: "var(--theme-icon-fill-weak)" },
|
|
9594
|
+
rotate: { default: "0deg" },
|
|
9595
|
+
operable: { type: Boolean, default: false },
|
|
9596
|
+
disabled: { type: Boolean, default: false },
|
|
9597
|
+
iconClass: {}
|
|
9598
|
+
},
|
|
9599
|
+
setup(__props) {
|
|
9600
|
+
const props = __props;
|
|
9601
|
+
const fontSize = computed(() => {
|
|
9602
|
+
return /px$/i.test(props.size) ? props.size : `${props.size}px`;
|
|
9603
|
+
});
|
|
9604
|
+
return (_ctx, _cache) => {
|
|
9605
|
+
return !_ctx.name.includes("gt-") ? (openBlock(), createBlock(unref(Icon), normalizeProps(mergeProps({ key: 0 }, props)), null, 16)) : _ctx.operable ? (openBlock(), createElementBlock("span", {
|
|
9606
|
+
key: 1,
|
|
9607
|
+
class: normalizeClass(["custom-icon-container", { disabled: _ctx.disabled }])
|
|
9608
|
+
}, [
|
|
9609
|
+
renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
|
|
9610
|
+
(openBlock(), createElementBlock("svg", {
|
|
9611
|
+
class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
|
|
9612
|
+
"aria-hidden": "true",
|
|
9613
|
+
style: normalizeStyle({ color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
|
|
9614
|
+
}, [
|
|
9615
|
+
createElementVNode("use", {
|
|
9616
|
+
"xlink:href": `#${_ctx.name}`
|
|
9617
|
+
}, null, 8, _hoisted_1$I)
|
|
9618
|
+
], 6)),
|
|
9619
|
+
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
9620
|
+
], 2)) : (openBlock(), createElementBlock("svg", {
|
|
9621
|
+
key: 2,
|
|
9622
|
+
class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
|
|
9623
|
+
"aria-hidden": "true",
|
|
9624
|
+
style: normalizeStyle(_ctx.iconClass ? {} : { color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
|
|
9625
|
+
}, [
|
|
9626
|
+
createElementVNode("use", {
|
|
9627
|
+
"xlink:href": `#${_ctx.name}`
|
|
9628
|
+
}, null, 8, _hoisted_2$w)
|
|
9629
|
+
], 6));
|
|
9630
|
+
};
|
|
9631
|
+
}
|
|
9632
|
+
});
|
|
9633
|
+
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
9855
9634
|
const _hoisted_1$H = ["href", "target", "disabled"];
|
|
9856
9635
|
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9857
9636
|
...{
|
|
@@ -10350,9 +10129,6 @@ watch(currentThemeStorage, (newValue) => {
|
|
|
10350
10129
|
const currentTheme = computed(() => {
|
|
10351
10130
|
return setThemeVal.value || currentThemeStorage.value || ThemeType.WHITE;
|
|
10352
10131
|
});
|
|
10353
|
-
const isWhiteTheme = () => {
|
|
10354
|
-
return currentTheme.value === ThemeType.WHITE;
|
|
10355
|
-
};
|
|
10356
10132
|
const setTheme = (theme2) => {
|
|
10357
10133
|
const themeValue = theme2 || api.get("gitcode_theme") || ThemeType.WHITE;
|
|
10358
10134
|
setThemeVal.value = themeValue;
|
|
@@ -10964,11 +10740,11 @@ const _hoisted_9$a = {
|
|
|
10964
10740
|
};
|
|
10965
10741
|
const _hoisted_10$9 = ["title"];
|
|
10966
10742
|
const _hoisted_11$7 = ["title"];
|
|
10967
|
-
const _hoisted_12$
|
|
10743
|
+
const _hoisted_12$7 = {
|
|
10968
10744
|
key: 0,
|
|
10969
10745
|
class: "header-custom-tag-mb"
|
|
10970
10746
|
};
|
|
10971
|
-
const _hoisted_13$
|
|
10747
|
+
const _hoisted_13$3 = {
|
|
10972
10748
|
key: 1,
|
|
10973
10749
|
class: "header-custom-tag-mb"
|
|
10974
10750
|
};
|
|
@@ -11239,7 +11015,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11239
11015
|
]),
|
|
11240
11016
|
_: 1
|
|
11241
11017
|
}, 8, ["href"]),
|
|
11242
|
-
unref(isGstarRepo)((_e = unref(repoInfo)) == null ? void 0 : _e.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
11018
|
+
unref(isGstarRepo)((_e = unref(repoInfo)) == null ? void 0 : _e.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$7, [
|
|
11243
11019
|
createVNode(_sfc_main$M, {
|
|
11244
11020
|
origin: "repo",
|
|
11245
11021
|
icon: "",
|
|
@@ -11252,7 +11028,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11252
11028
|
_: 1,
|
|
11253
11029
|
__: [2]
|
|
11254
11030
|
}, 8, ["message"])
|
|
11255
|
-
])) : unref(isIncubationRepo)((_f = unref(repoInfo)) == null ? void 0 : _f.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$
|
|
11031
|
+
])) : unref(isIncubationRepo)((_f = unref(repoInfo)) == null ? void 0 : _f.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$3, [
|
|
11256
11032
|
createVNode(_sfc_main$M, {
|
|
11257
11033
|
origin: "repo",
|
|
11258
11034
|
icon: "",
|
|
@@ -14440,7 +14216,7 @@ const _hoisted_11$6 = {
|
|
|
14440
14216
|
key: 4,
|
|
14441
14217
|
class: "no-more"
|
|
14442
14218
|
};
|
|
14443
|
-
const _hoisted_12$
|
|
14219
|
+
const _hoisted_12$6 = { class: "message-footer-nav" };
|
|
14444
14220
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
14445
14221
|
__name: "MessageBox",
|
|
14446
14222
|
setup(__props, { expose: __expose }) {
|
|
@@ -14796,7 +14572,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14796
14572
|
[_directive_loading, loading.value]
|
|
14797
14573
|
])
|
|
14798
14574
|
], 512),
|
|
14799
|
-
createElementVNode("div", _hoisted_12$
|
|
14575
|
+
createElementVNode("div", _hoisted_12$6, [
|
|
14800
14576
|
createElementVNode("div", { onClick: setPageRead }, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.pageRead")), 1),
|
|
14801
14577
|
createElementVNode("div", {
|
|
14802
14578
|
onClick: _cache[4] || (_cache[4] = ($event) => toPage("all"))
|
|
@@ -16161,12 +15937,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
16161
15937
|
setup(__props) {
|
|
16162
15938
|
const layoutConfig2 = useLayoutConfig();
|
|
16163
15939
|
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-
|
|
15940
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DwzWyuIr.js"));
|
|
15941
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-Bl00xOJC.js"));
|
|
15942
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CAx0HdoO.js"));
|
|
15943
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CSDVum6K.js"));
|
|
15944
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B8xfcBm5.js"));
|
|
15945
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-B1lfZqPP.js"));
|
|
16170
15946
|
const props = __props;
|
|
16171
15947
|
const repoInfo = inject("repoInfo", computed(() => void 0));
|
|
16172
15948
|
const orgInfo = inject("orgInfo", computed(() => void 0));
|
|
@@ -17310,7 +17086,7 @@ const _hoisted_8$6 = { class: "atomcode-launch-item__title-row" };
|
|
|
17310
17086
|
const _hoisted_9$6 = { class: "atomcode-launch-item__title" };
|
|
17311
17087
|
const _hoisted_10$6 = ["href"];
|
|
17312
17088
|
const _hoisted_11$5 = { class: "atomcode-launch-item__title-row" };
|
|
17313
|
-
const _hoisted_12$
|
|
17089
|
+
const _hoisted_12$5 = { class: "atomcode-launch-item__title" };
|
|
17314
17090
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
17315
17091
|
...{
|
|
17316
17092
|
name: "AtomCodeLauncher"
|
|
@@ -17447,7 +17223,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17447
17223
|
color: "currentColor",
|
|
17448
17224
|
class: "atomcode-item-icon"
|
|
17449
17225
|
}),
|
|
17450
|
-
createElementVNode("span", _hoisted_12$
|
|
17226
|
+
createElementVNode("span", _hoisted_12$5, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.downloadCli")), 1)
|
|
17451
17227
|
])
|
|
17452
17228
|
], 8, _hoisted_10$6)
|
|
17453
17229
|
])
|
|
@@ -17505,7 +17281,7 @@ const vElementExposure = {
|
|
|
17505
17281
|
beforeUnmount() {
|
|
17506
17282
|
}
|
|
17507
17283
|
};
|
|
17508
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17284
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-jW9NbMaw.js"));
|
|
17509
17285
|
function clearNotice() {
|
|
17510
17286
|
if (localStorage$2.getItem("validator_email")) {
|
|
17511
17287
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18624,8 +18400,8 @@ const _hoisted_8$4 = ["aria-current", "title", "onClick"];
|
|
|
18624
18400
|
const _hoisted_9$4 = ["src", "alt", "onClick"];
|
|
18625
18401
|
const _hoisted_10$4 = { class: "home-channel-side-nav__info" };
|
|
18626
18402
|
const _hoisted_11$4 = { class: "home-channel-side-nav__label-row" };
|
|
18627
|
-
const _hoisted_12$
|
|
18628
|
-
const _hoisted_13$
|
|
18403
|
+
const _hoisted_12$4 = { class: "home-channel-side-nav__label" };
|
|
18404
|
+
const _hoisted_13$2 = ["src"];
|
|
18629
18405
|
const _hoisted_14$1 = ["title"];
|
|
18630
18406
|
const _hoisted_15$1 = {
|
|
18631
18407
|
key: 3,
|
|
@@ -19002,13 +18778,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
19002
18778
|
}, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
|
|
19003
18779
|
createElementVNode("div", _hoisted_10$4, [
|
|
19004
18780
|
createElementVNode("span", _hoisted_11$4, [
|
|
19005
|
-
createElementVNode("span", _hoisted_12$
|
|
18781
|
+
createElementVNode("span", _hoisted_12$4, toDisplayString$1(getItemName(item)), 1),
|
|
19006
18782
|
item.is_new ? (openBlock(), createElementBlock("img", {
|
|
19007
18783
|
key: 0,
|
|
19008
18784
|
src: newTagSrc.value,
|
|
19009
18785
|
alt: "New",
|
|
19010
18786
|
class: "home-channel-side-nav__new-tag"
|
|
19011
|
-
}, null, 8, _hoisted_13$
|
|
18787
|
+
}, null, 8, _hoisted_13$2)) : createCommentVNode("", true)
|
|
19012
18788
|
]),
|
|
19013
18789
|
getItemDesc(item) ? (openBlock(), createElementBlock("span", {
|
|
19014
18790
|
key: 0,
|
|
@@ -19295,18 +19071,29 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
19295
19071
|
const GitCodeAsideV2 = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19296
19072
|
const _hoisted_1$j = { class: "g-toolbar allow-click-stop" };
|
|
19297
19073
|
const _hoisted_2$e = { class: "g-toolbar-left allow-click-stop" };
|
|
19298
|
-
const _hoisted_3$d = {
|
|
19074
|
+
const _hoisted_3$d = {
|
|
19075
|
+
key: 1,
|
|
19076
|
+
class: "g-toolbar-custom"
|
|
19077
|
+
};
|
|
19299
19078
|
const _hoisted_4$a = { class: "enterprise-name" };
|
|
19300
19079
|
const _hoisted_5$5 = { class: "enterprise-flag" };
|
|
19301
19080
|
const _hoisted_6$4 = { class: "search-avatar" };
|
|
19302
19081
|
const _hoisted_7$3 = { class: "g-toolbar-right allow-click-stop" };
|
|
19303
19082
|
const _hoisted_8$3 = {
|
|
19083
|
+
key: 0,
|
|
19084
|
+
class: "g-toolbar-right-divider"
|
|
19085
|
+
};
|
|
19086
|
+
const _hoisted_9$3 = {
|
|
19087
|
+
key: 0,
|
|
19088
|
+
class: "g-toolbar-right-divider"
|
|
19089
|
+
};
|
|
19090
|
+
const _hoisted_10$3 = {
|
|
19304
19091
|
key: 0,
|
|
19305
19092
|
class: "g-header-body"
|
|
19306
19093
|
};
|
|
19307
|
-
const
|
|
19308
|
-
const
|
|
19309
|
-
const
|
|
19094
|
+
const _hoisted_11$3 = { class: "g-header-body-left" };
|
|
19095
|
+
const _hoisted_12$3 = { class: "g-header-body-right" };
|
|
19096
|
+
const _hoisted_13$1 = { key: 1 };
|
|
19310
19097
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
19311
19098
|
...{
|
|
19312
19099
|
name: "EnterpriseHeader"
|
|
@@ -19338,9 +19125,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19338
19125
|
atomcodeLaunchQs: { default: "" },
|
|
19339
19126
|
showAtomCodeLauncher: { type: Boolean, default: false },
|
|
19340
19127
|
launchAtomCode: { type: Function, default: void 0 },
|
|
19341
|
-
defaultGlobalSearchType: { default: "repo" }
|
|
19128
|
+
defaultGlobalSearchType: { default: "repo" },
|
|
19129
|
+
openCreateDropdown: { type: Boolean, default: false },
|
|
19130
|
+
createMenuItems: {},
|
|
19131
|
+
createMenuNavigate: {}
|
|
19342
19132
|
},
|
|
19343
|
-
emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess"],
|
|
19133
|
+
emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess", "update:openCreateDropdown"],
|
|
19344
19134
|
setup(__props, { emit: __emit }) {
|
|
19345
19135
|
var _a;
|
|
19346
19136
|
const route = useRoute();
|
|
@@ -19407,6 +19197,21 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19407
19197
|
}
|
|
19408
19198
|
return "";
|
|
19409
19199
|
});
|
|
19200
|
+
const hasEnterpriseInfo = computed(() => {
|
|
19201
|
+
var _a2, _b;
|
|
19202
|
+
return Boolean(((_a2 = props.enterpriseInfo) == null ? void 0 : _a2.name) || ((_b = props.enterpriseInfo) == null ? void 0 : _b.avatar));
|
|
19203
|
+
});
|
|
19204
|
+
const logoConfig = getCurrentLogoMap();
|
|
19205
|
+
const logoStyle = computed(() => {
|
|
19206
|
+
const isBlackTheme = currentTheme.value === ThemeType.BLACK;
|
|
19207
|
+
const logoUrl = isBlackTheme ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
|
|
19208
|
+
return {
|
|
19209
|
+
backgroundImage: `url(${logoUrl})`,
|
|
19210
|
+
backgroundRepeat: "no-repeat",
|
|
19211
|
+
backgroundPosition: "0 center",
|
|
19212
|
+
backgroundSize: isMobile.value ? "cover" : "contain"
|
|
19213
|
+
};
|
|
19214
|
+
});
|
|
19410
19215
|
if (!((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.hiddenThemeSetting)) {
|
|
19411
19216
|
theme.initAutoTheme();
|
|
19412
19217
|
}
|
|
@@ -19449,13 +19254,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19449
19254
|
emitEvent("toggleAsideMenuByHamburger");
|
|
19450
19255
|
useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.ASIDEBTNCLICK });
|
|
19451
19256
|
};
|
|
19452
|
-
const handleThemeChange = () => {
|
|
19453
|
-
setTheme(currentTheme.value === ThemeType.WHITE ? ThemeType.BLACK : ThemeType.WHITE);
|
|
19454
|
-
};
|
|
19455
19257
|
const layoutConfig2 = useLayoutConfig();
|
|
19456
|
-
const handleNewRepo = () => {
|
|
19457
|
-
window.open(`${layoutConfig2.VITE_HOST}/create?position=nav_top`, "_blank");
|
|
19458
|
-
};
|
|
19459
19258
|
const loginDataFormat = (options) => {
|
|
19460
19259
|
return {
|
|
19461
19260
|
...options || {},
|
|
@@ -19539,7 +19338,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19539
19338
|
class: "g-toolbar-left-asideicon",
|
|
19540
19339
|
color: "var(--theme-aide-text)"
|
|
19541
19340
|
})) : createCommentVNode("", true),
|
|
19542
|
-
|
|
19341
|
+
hasEnterpriseInfo.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
|
|
19543
19342
|
createVNode(_sfc_main$N, {
|
|
19544
19343
|
src: (_a2 = _ctx.enterpriseInfo) == null ? void 0 : _a2.avatar,
|
|
19545
19344
|
name: (_b = _ctx.enterpriseInfo) == null ? void 0 : _b.name,
|
|
@@ -19550,7 +19349,19 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19550
19349
|
}, null, 8, ["src", "name"]),
|
|
19551
19350
|
createElementVNode("span", _hoisted_4$a, toDisplayString$1((_c = _ctx.enterpriseInfo) == null ? void 0 : _c.name), 1),
|
|
19552
19351
|
createElementVNode("span", _hoisted_5$5, toDisplayString$1(unref(t2)("gitCodeLayout.header.enterpriseFlag")), 1)
|
|
19553
|
-
])
|
|
19352
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
19353
|
+
_ctx.independence ? (openBlock(), createBlock(GLink, {
|
|
19354
|
+
key: 0,
|
|
19355
|
+
class: "g-toolbar-left-logo",
|
|
19356
|
+
style: normalizeStyle(logoStyle.value),
|
|
19357
|
+
href: `${unref(layoutConfig2).VITE_HOST}?p=seo`
|
|
19358
|
+
}, null, 8, ["style", "href"])) : (openBlock(), createBlock(GLink, {
|
|
19359
|
+
key: 1,
|
|
19360
|
+
class: "g-toolbar-left-logo",
|
|
19361
|
+
style: normalizeStyle(logoStyle.value),
|
|
19362
|
+
to: { name: "home" }
|
|
19363
|
+
}, null, 8, ["style"]))
|
|
19364
|
+
], 64))
|
|
19554
19365
|
]),
|
|
19555
19366
|
createElementVNode("div", _hoisted_6$4, [
|
|
19556
19367
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
@@ -19579,15 +19390,17 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19579
19390
|
], true) : createCommentVNode("", true)
|
|
19580
19391
|
]),
|
|
19581
19392
|
createElementVNode("div", _hoisted_7$3, [
|
|
19582
|
-
_ctx.showAtomCodeLauncher ? (
|
|
19583
|
-
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
|
|
19393
|
+
_ctx.showAtomCodeLauncher ? renderSlot(_ctx.$slots, "atomCodeLauncher", { key: 0 }, () => [
|
|
19394
|
+
createVNode(AtomCodeLauncher, {
|
|
19395
|
+
atomcodeLaunchQs: _ctx.atomcodeLaunchQs,
|
|
19396
|
+
isLogin: _ctx.isLogin,
|
|
19397
|
+
launchAtomCode: _ctx.launchAtomCode
|
|
19398
|
+
}, null, 8, ["atomcodeLaunchQs", "isLogin", "launchAtomCode"])
|
|
19399
|
+
], true) : createCommentVNode("", true),
|
|
19400
|
+
createVNode(HomeHeaderActions, { isLogin: _ctx.isLogin }, null, 8, ["isLogin"]),
|
|
19589
19401
|
!_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19590
|
-
|
|
19402
|
+
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_8$3)) : createCommentVNode("", true),
|
|
19403
|
+
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19591
19404
|
unref(isMobile) ? (openBlock(), createElementBlock("section", {
|
|
19592
19405
|
key: 0,
|
|
19593
19406
|
class: "app-login-warp login-icon",
|
|
@@ -19621,31 +19434,17 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19621
19434
|
], 64))
|
|
19622
19435
|
], 64)) : createCommentVNode("", true)
|
|
19623
19436
|
], 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"]),
|
|
19437
|
+
!["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_9$3)) : createCommentVNode("", true),
|
|
19438
|
+
!["sm"].includes(unref(widthType)) && isModuleVisible(unref(HeaderDisplayItem).NEW_BUTTON) ? (openBlock(), createBlock(HeaderCreateMenu, {
|
|
19439
|
+
key: 1,
|
|
19440
|
+
dropdownVisible: _ctx.openCreateDropdown,
|
|
19441
|
+
items: _ctx.createMenuItems,
|
|
19442
|
+
onNavigate: _ctx.createMenuNavigate,
|
|
19443
|
+
"onUpdate:dropdownVisible": _cache[3] || (_cache[3] = ($event) => emit("update:openCreateDropdown", $event))
|
|
19444
|
+
}, null, 8, ["dropdownVisible", "items", "onNavigate"])) : createCommentVNode("", true),
|
|
19445
|
+
isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 2 })) : createCommentVNode("", true),
|
|
19647
19446
|
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createBlock(UserAvatar, {
|
|
19648
|
-
key:
|
|
19447
|
+
key: 3,
|
|
19649
19448
|
isChatBot: false,
|
|
19650
19449
|
loginOutFinish: _ctx.loginOutFinish,
|
|
19651
19450
|
inAIHub: false,
|
|
@@ -19658,17 +19457,17 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19658
19457
|
])), [
|
|
19659
19458
|
[unref(vElementExposure), { trigger: (type) => handleToolbarExpo() }]
|
|
19660
19459
|
]),
|
|
19661
|
-
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div",
|
|
19460
|
+
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
|
|
19662
19461
|
renderSlot(_ctx.$slots, "bodyHeader", {}, () => [
|
|
19663
|
-
createElementVNode("div",
|
|
19462
|
+
createElementVNode("div", _hoisted_11$3, [
|
|
19664
19463
|
renderSlot(_ctx.$slots, "info", {}, void 0, true)
|
|
19665
19464
|
]),
|
|
19666
|
-
createElementVNode("div",
|
|
19465
|
+
createElementVNode("div", _hoisted_12$3, [
|
|
19667
19466
|
renderSlot(_ctx.$slots, "menu", {}, void 0, true)
|
|
19668
19467
|
])
|
|
19669
19468
|
], true)
|
|
19670
19469
|
])) : createCommentVNode("", true),
|
|
19671
|
-
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div",
|
|
19470
|
+
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
19672
19471
|
renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
|
|
19673
19472
|
])) : createCommentVNode("", true)
|
|
19674
19473
|
], 2),
|
|
@@ -19908,9 +19707,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19908
19707
|
const layoutConfig2 = useLayoutConfig();
|
|
19909
19708
|
const { t: t2 } = i18n.global;
|
|
19910
19709
|
const route = useRoute();
|
|
19911
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
19912
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
19913
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
19710
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-cvaZLxcc.js"));
|
|
19711
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DZr1nvl5.js"));
|
|
19712
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-hZm8cToj.js"));
|
|
19914
19713
|
const props = __props;
|
|
19915
19714
|
const useReport2 = inject("useReport");
|
|
19916
19715
|
const userInfo = inject("userInfo");
|
|
@@ -26364,7 +26163,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
26364
26163
|
__publicField(_SlidCaptchaManager, "instance");
|
|
26365
26164
|
let SlidCaptchaManager = _SlidCaptchaManager;
|
|
26366
26165
|
const slidCaptchaManager = SlidCaptchaManager.getInstance();
|
|
26367
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
26166
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-Cd5EwyKa.js"));
|
|
26368
26167
|
const useSlidCaptcha = () => {
|
|
26369
26168
|
const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
|
|
26370
26169
|
const open = (config) => {
|
|
@@ -26394,7 +26193,7 @@ const useSlidCaptcha = () => {
|
|
|
26394
26193
|
close
|
|
26395
26194
|
};
|
|
26396
26195
|
};
|
|
26397
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
26196
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-CSOwaWzn.js"));
|
|
26398
26197
|
const useYunpianCaptcha = () => {
|
|
26399
26198
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
26400
26199
|
const open = (config) => {
|