vue-layout-gitcode 1.12.15-beta.62 → 1.12.15-beta.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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 { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, resolveComponent, watchEffect, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, useSlots, createStaticVNode } from "vue";
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$I = { class: "home-nav-right" };
9116
- const _hoisted_2$w = { class: "home-nav-item" };
9117
- const _hoisted_3$v = { class: "tooltip-sign" };
9118
- const _hoisted_4$o = { class: "home-nav-tooltip-wrapper" };
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$8 = { class: "qrcode-wrapper" };
9130
- const _hoisted_13$4 = { 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 = {
9134
- key: 0,
9135
- class: "opinion-box"
9136
- };
9137
- const _hoisted_17$3 = { class: "tab-step" };
9138
- const _hoisted_18$3 = ["onClick"];
9139
- const _hoisted_19$3 = {
9140
- key: 0,
9141
- class: "rate tools-float-stage"
9142
- };
9143
- const _hoisted_20$3 = {
9144
- key: 0,
9145
- class: "tools-float-stage__corner"
9146
- };
9147
- const _hoisted_21$3 = { class: "tools-float-stage__title" };
9148
- const _hoisted_22$3 = { class: "tools-float-stage__rate-row" };
9149
- const _hoisted_23$2 = ["onMouseover", "onClick"];
9150
- const _hoisted_24$2 = {
9151
- key: 1,
9152
- class: "Opinion tools-float-stage"
9153
- };
9154
- const _hoisted_25$2 = {
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 = {
9155
9070
  key: 0,
9156
- class: "tools-float-stage__corner"
9071
+ class: "tools-float-bar"
9157
9072
  };
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("globalStore", computed(() => props.globalStore));
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 [ToolsFloatDisplayItem.GROWTH_CENTER, ToolsFloatDisplayItem.ELSE, ToolsFloatDisplayItem.AD, ToolsFloatDisplayItem.INVITE];
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 [ToolsFloatDisplayItem.GROWTH_CENTER, ToolsFloatDisplayItem.ELSE, ToolsFloatDisplayItem.AD, ToolsFloatDisplayItem.INVITE];
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
- if (auth === ToolsFloatDisplayItem.AD) {
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
- const response = await fetch(adLink);
9308
- activeAdJson.value = await response.json();
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 handleCollapseTool = (status2) => {
9346
- toolsFloatCollapseStatus.value = status2;
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, status2);
9229
+ localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO, status);
9349
9230
  } else {
9350
- localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY, status2);
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(() => props.isWhiteListRepo, () => {
9358
- initToolsFloatCollapse();
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 status2 = localStorage$2.getItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY);
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 (status2 && statusDate === (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN")) {
9372
- toolsFloatCollapseStatus.value = status2;
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(() => toolsFloatCollapseStatus.value, (val) => {
9384
- if (val === TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND && visibleItems.value.includes(ToolsFloatDisplayItem.ELSE)) {
9385
- udeskInit();
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", null, [
9397
- toolsFloatCollapseStatus.value === unref(TOOLS_FLOAT_COLLAPSE_STATUS).COLLAPSE ? (openBlock(), createElementBlock("div", {
9398
- key: 0,
9399
- class: "tools-float-expand-btn",
9400
- onClick: _cache[0] || (_cache[0] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).EXPAND)),
9401
- title: "展开"
9402
- }, [
9403
- createVNode(GIcon, {
9404
- name: "gt-plane-left",
9405
- size: "18px"
9406
- })
9407
- ])) : createCommentVNode("", true),
9408
- createElementVNode("div", _hoisted_1$I, [
9409
- inviteVisible.value && isModuleVisible(unref(ToolsFloatDisplayItem).INVITE) ? (openBlock(), createBlock(unref(Tooltip), {
9410
- key: 0,
9411
- position: "left",
9412
- "overlay-class": "tools-tag-tooltip"
9413
- }, {
9414
- content: withCtx(() => [
9415
- createElementVNode("div", _hoisted_4$o, [
9416
- createElementVNode("div", _hoisted_5$j, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
9417
- ])
9418
- ]),
9419
- default: withCtx(() => [
9420
- createElementVNode("div", {
9421
- class: "home-nav-link computing",
9422
- onClick: handleInvite
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
- _: 1
9435
- })) : createCommentVNode("", true),
9436
- isModuleVisible(unref(ToolsFloatDisplayItem).GROWTH_CENTER) ? (openBlock(), createBlock(unref(Tooltip), {
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
- position: "left",
9439
- "overlay-class": "tools-tag-tooltip"
9440
- }, {
9441
- content: withCtx(() => [
9442
- createElementVNode("div", _hoisted_6$g, [
9443
- createElementVNode("div", _hoisted_7$d, toDisplayString$1(_ctx.isCannWhiteList ? unref(t2)("gitCodeLayout.userSetting.menu.cannTask") : unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
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
- default: withCtx(() => [
9447
- createElementVNode("div", {
9448
- id: "guide-step4",
9449
- class: "home-nav-link tools-questionnaire",
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$8, [
9503
- createElementVNode("div", _hoisted_13$4, 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
- createVNode(Transition, null, {
9675
- default: withCtx(() => [
9676
- showScrollToTopBtn.value ? (openBlock(), createElementBlock("div", {
9677
- key: 0,
9678
- class: "home-nav-link tools-questionnaire tools-float-scroll-top",
9679
- onClick: _cache[4] || (_cache[4] = //@ts-ignore
9680
- (...args) => unref(scrollToTop) && unref(scrollToTop)(...args))
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("div", _hoisted_32$1, [
9683
- createVNode(GIcon, {
9684
- name: "gt-plane-Topping1",
9685
- size: "20px"
9686
- })
9687
- ])
9688
- ])) : createCommentVNode("", true)
9689
- ]),
9690
- _: 1
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
- isModuleVisible(unref(ToolsFloatDisplayItem).AD) && activeAdItem.value && activeAdItem.value.imgUrl ? (openBlock(), createElementBlock("div", {
9693
- key: 3,
9694
- class: "active-tips",
9695
- onClick: withModifiers(handleActive, ["stop"])
9696
- }, [
9697
- createElementVNode("div", {
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 ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-vue-layout-gitcode"]]);
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
  ...{
@@ -16158,12 +15937,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
16158
15937
  setup(__props) {
16159
15938
  const layoutConfig2 = useLayoutConfig();
16160
15939
  const { t: $t } = i18n.global;
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"));
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"));
16167
15946
  const props = __props;
16168
15947
  const repoInfo = inject("repoInfo", computed(() => void 0));
16169
15948
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -17502,7 +17281,7 @@ const vElementExposure = {
17502
17281
  beforeUnmount() {
17503
17282
  }
17504
17283
  };
17505
- const NoticeModal = defineAsyncComponent(() => import("./notice-GZvyDIDM.js"));
17284
+ const NoticeModal = defineAsyncComponent(() => import("./notice-jW9NbMaw.js"));
17506
17285
  function clearNotice() {
17507
17286
  if (localStorage$2.getItem("validator_email")) {
17508
17287
  localStorage$2.removeItem("validator_email");
@@ -19928,9 +19707,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19928
19707
  const layoutConfig2 = useLayoutConfig();
19929
19708
  const { t: t2 } = i18n.global;
19930
19709
  const route = useRoute();
19931
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-C47jaOLf.js"));
19932
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-3KeNRt3P.js"));
19933
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-D2k8WAYb.js"));
19710
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-cvaZLxcc.js"));
19711
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DZr1nvl5.js"));
19712
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-hZm8cToj.js"));
19934
19713
  const props = __props;
19935
19714
  const useReport2 = inject("useReport");
19936
19715
  const userInfo = inject("userInfo");
@@ -26384,7 +26163,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
26384
26163
  __publicField(_SlidCaptchaManager, "instance");
26385
26164
  let SlidCaptchaManager = _SlidCaptchaManager;
26386
26165
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
26387
- const SlidCaptcha = defineAsyncComponent(() => import("./index--QCW8WJR.js"));
26166
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-Cd5EwyKa.js"));
26388
26167
  const useSlidCaptcha = () => {
26389
26168
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
26390
26169
  const open = (config) => {
@@ -26414,7 +26193,7 @@ const useSlidCaptcha = () => {
26414
26193
  close
26415
26194
  };
26416
26195
  };
26417
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-BilxqEeT.js"));
26196
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CSOwaWzn.js"));
26418
26197
  const useYunpianCaptcha = () => {
26419
26198
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
26420
26199
  const open = (config) => {