vue-layout-gitcode 1.9.50 → 1.9.52
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-DLXz75tv.js → GloabarSearch-C7IjYtrN.js} +3 -3
- package/{MenuItem-B8N-fK8r.js → MenuItem-CdIzk-aH.js} +1 -1
- package/{ProjectMenuList-jAKF6Apq.js → ProjectMenuList-COSzfHQ6.js} +4 -4
- package/{ProjectMenuListV2-CH_6ULI1.js → ProjectMenuListV2-DltRikIu.js} +3 -3
- package/{ProjectSearch-pHlcbEao.js → ProjectSearch-B9JAWZW4.js} +1 -1
- package/{SearchHistoryList-DtAuuWfV.js → SearchHistoryList-CwOfj3Ns.js} +1 -1
- package/{SearchPrefixTag-hf9n6UzK.js → SearchPrefixTag-DWI_yhce.js} +1 -1
- package/{SearchRecommed-CcghIwvF.js → SearchRecommed-Dotqca5n.js} +2 -2
- package/{SearchScopeList-CElCoqhe.js → SearchScopeList-i9otz0T8.js} +1 -1
- package/{UserSearch-r6TBNJS4.js → UserSearch-7yZiQBUJ.js} +2 -11
- package/{index-Cv2iLpLB.js → index-BKMeZb8M.js} +3 -3
- package/{index-DcQ4PcPt.js → index-CJ87Tg2d.js} +566 -1153
- package/{index-H6BnFstW.js → index-Crr4Pg4x.js} +1 -1
- package/{index-CfSlVFq8.js → index-Cv6MXbO3.js} +1 -1
- package/index.d.ts +0 -2
- package/index.js +11 -12
- package/{notice-qnKWNwCy.js → notice-CjRrZqmT.js} +1 -1
- package/package.json +2 -2
- package/style.css +1 -1
- package/{transWebUrl-CFnfTsOu.js → transWebUrl-BNVsUqSH.js} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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,
|
|
1
|
+
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, guardReactiveProps, onBeforeUnmount, resolveDynamicComponent, nextTick, defineAsyncComponent, withDirectives, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, useSlots } from "vue";
|
|
2
2
|
import { Button } from "vue-devui-lal/button";
|
|
3
3
|
import { Popover } from "vue-devui-lal/popover";
|
|
4
4
|
import { Tooltip } from "vue-devui-lal/tooltip";
|
|
@@ -9,12 +9,12 @@ import "vue-devui-lal/tooltip/style.css";
|
|
|
9
9
|
import "vue-devui-lal/textarea/style.css";
|
|
10
10
|
import { Icon } from "vue-devui-lal/icon";
|
|
11
11
|
import "vue-devui-lal/icon/style.css";
|
|
12
|
-
import cloneDeep from "lodash/cloneDeep";
|
|
13
12
|
import { useRouter, useRoute, createRouter, createWebHistory, createMemoryHistory } from "vue-router";
|
|
14
13
|
import { useWindowSize, useEventListener, useElementSize, useStorage, useDebounceFn } from "@vueuse/core";
|
|
15
14
|
import { Avatar } from "vue-devui-lal/avatar";
|
|
16
15
|
import "vue-devui-lal/avatar/style.css";
|
|
17
16
|
import "lodash/last";
|
|
17
|
+
import cloneDeep from "lodash/cloneDeep";
|
|
18
18
|
import dayjs$1 from "dayjs";
|
|
19
19
|
import isDate$2 from "lodash/isDate";
|
|
20
20
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
@@ -50,9 +50,9 @@ import { Checkbox } from "vue-devui-lal/checkbox";
|
|
|
50
50
|
import "vue-devui-lal/checkbox/style.css";
|
|
51
51
|
import { Modal } from "vue-devui-lal/modal";
|
|
52
52
|
import "vue-devui-lal/modal/style.css";
|
|
53
|
-
const _hoisted_1$
|
|
54
|
-
const _hoisted_2$
|
|
55
|
-
const _sfc_main$
|
|
53
|
+
const _hoisted_1$v = ["xlink:href"];
|
|
54
|
+
const _hoisted_2$l = ["xlink:href"];
|
|
55
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
56
56
|
__name: "index",
|
|
57
57
|
props: {
|
|
58
58
|
name: { default: "gt-run" },
|
|
@@ -81,7 +81,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
}, [
|
|
82
82
|
createElementVNode("use", {
|
|
83
83
|
"xlink:href": `#${_ctx.name}`
|
|
84
|
-
}, null, 8, _hoisted_1$
|
|
84
|
+
}, null, 8, _hoisted_1$v)
|
|
85
85
|
], 6)),
|
|
86
86
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
87
87
|
], 2)) : (openBlock(), createElementBlock("svg", {
|
|
@@ -92,7 +92,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
}, [
|
|
93
93
|
createElementVNode("use", {
|
|
94
94
|
"xlink:href": `#${_ctx.name}`
|
|
95
|
-
}, null, 8, _hoisted_2$
|
|
95
|
+
}, null, 8, _hoisted_2$l)
|
|
96
96
|
], 6));
|
|
97
97
|
};
|
|
98
98
|
}
|
|
@@ -104,7 +104,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
104
104
|
}
|
|
105
105
|
return target;
|
|
106
106
|
};
|
|
107
|
-
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
107
|
+
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
108
108
|
const defaultConfig = {
|
|
109
109
|
VITE_ENV: "production",
|
|
110
110
|
VITE_HOST: "https://gitcode.com",
|
|
@@ -120,12 +120,12 @@ const defaultConfig = {
|
|
|
120
120
|
VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
|
|
121
121
|
VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
|
|
122
122
|
};
|
|
123
|
-
|
|
123
|
+
let layoutConfig$5 = reactive({ ...defaultConfig });
|
|
124
124
|
function setLayoutConfig(customConfig) {
|
|
125
|
-
Object.assign(layoutConfig$
|
|
125
|
+
Object.assign(layoutConfig$5, customConfig);
|
|
126
126
|
}
|
|
127
127
|
function useLayoutConfig() {
|
|
128
|
-
return readonly(layoutConfig$
|
|
128
|
+
return readonly(layoutConfig$5);
|
|
129
129
|
}
|
|
130
130
|
async function reqCatch(req, params) {
|
|
131
131
|
try {
|
|
@@ -474,8 +474,7 @@ var AsideReportEvent = /* @__PURE__ */ ((AsideReportEvent2) => {
|
|
|
474
474
|
return AsideReportEvent2;
|
|
475
475
|
})(AsideReportEvent || {});
|
|
476
476
|
const AICopilot_ROUTE_NAME = "aiCopilot";
|
|
477
|
-
const
|
|
478
|
-
const HELP_DOCS_URL_ATOMGIT = "https://docs.atomgit.com";
|
|
477
|
+
const HELP_DOCS_URL = "https://docs.gitcode.com";
|
|
479
478
|
const INFORMATION_CENTER_URL = "https://news.gitcode.com/news";
|
|
480
479
|
const AVATAR_VISITED_DATE = "avatar-visitedDate";
|
|
481
480
|
const AVATAR_VISITED_USERNAME = "avatar-visited-username";
|
|
@@ -495,12 +494,6 @@ const DEFAULT_COUNTRY = "CN_0086";
|
|
|
495
494
|
const IMAGE_CDN_PREFIX = "https://cdn-static.gitcode.com";
|
|
496
495
|
const HARMONY_VISITED_DATE = "harmony-visitedDate";
|
|
497
496
|
const HARMONY_SURVEY_DELAY = "harmony-survey-delay";
|
|
498
|
-
const SITE_STATUS = {
|
|
499
|
-
DISABLE: true,
|
|
500
|
-
// 是否维护中(true代表全站维护)
|
|
501
|
-
COMMUNITY: false
|
|
502
|
-
// 是否开启社区
|
|
503
|
-
};
|
|
504
497
|
const UTM_SOURCE = "utm_source";
|
|
505
498
|
const PASSPORT_PREFIX = "/uc";
|
|
506
499
|
const AUTH_WINDOW = "auth_window";
|
|
@@ -518,28 +511,7 @@ const TOOLS_FLOAT_COLLAPSE_STATUS = {
|
|
|
518
511
|
const TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO = "asideTool_collapse_status_repo";
|
|
519
512
|
const TOOLS_FLOAT_COLLAPSE_STATUS_KEY = "asideTool_collapse_status";
|
|
520
513
|
const TOOLS_FLOAT_COLLAPSE_DATE_KEY = "asideTool_collapse_date";
|
|
521
|
-
|
|
522
|
-
const LOGO_MAP = {
|
|
523
|
-
gitcode: {
|
|
524
|
-
favicon: "https://cdn-static.gitcode.com/static/images/logo-favicon.png",
|
|
525
|
-
siteLogoDark: "https://cdn-static.gitcode.com/static/images/bind-logo-dark.png",
|
|
526
|
-
siteLogoWhite: "https://cdn-static.gitcode.com/static/images/bind-logo-white.png",
|
|
527
|
-
tianqiLogoLocalWhite: "https://cdn-static.gitcode.com/static/images/tianqi-white-bind.png",
|
|
528
|
-
tianqiLogoLocalDark: "https://cdn-static.gitcode.com/static/images/tianqi-black-bind.png",
|
|
529
|
-
aiLogoWhite: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-white_atomgit.png",
|
|
530
|
-
aiLogoDark: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-dark_atomgit.png"
|
|
531
|
-
},
|
|
532
|
-
atomgit: {
|
|
533
|
-
favicon: "https://cdn-static.gitcode.com/static/images/logo-favicon.png",
|
|
534
|
-
siteLogoDark: "https://cdn-static.gitcode.com/static/images/bind-logo-dark.png",
|
|
535
|
-
siteLogoWhite: "https://cdn-static.gitcode.com/static/images/bind-logo-white.png",
|
|
536
|
-
tianqiLogoLocalWhite: "https://cdn-static.gitcode.com/static/images/tianqi-white-bind.png",
|
|
537
|
-
tianqiLogoLocalDark: "https://cdn-static.gitcode.com/static/images/tianqi-black-bind.png",
|
|
538
|
-
aiLogoWhite: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-white_atomgit.png",
|
|
539
|
-
aiLogoDark: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-dark_atomgit.png"
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
|
|
514
|
+
/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
|
|
543
515
|
const {
|
|
544
516
|
entries,
|
|
545
517
|
setPrototypeOf,
|
|
@@ -567,12 +539,18 @@ if (!seal) {
|
|
|
567
539
|
};
|
|
568
540
|
}
|
|
569
541
|
if (!apply$1) {
|
|
570
|
-
apply$1 = function apply2(
|
|
571
|
-
|
|
542
|
+
apply$1 = function apply2(func, thisArg) {
|
|
543
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
544
|
+
args[_key - 2] = arguments[_key];
|
|
545
|
+
}
|
|
546
|
+
return func.apply(thisArg, args);
|
|
572
547
|
};
|
|
573
548
|
}
|
|
574
549
|
if (!construct) {
|
|
575
|
-
construct = function construct2(Func
|
|
550
|
+
construct = function construct2(Func) {
|
|
551
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
552
|
+
args[_key2 - 1] = arguments[_key2];
|
|
553
|
+
}
|
|
576
554
|
return new Func(...args);
|
|
577
555
|
};
|
|
578
556
|
}
|
|
@@ -595,18 +573,18 @@ function unapply(func) {
|
|
|
595
573
|
if (thisArg instanceof RegExp) {
|
|
596
574
|
thisArg.lastIndex = 0;
|
|
597
575
|
}
|
|
598
|
-
for (var
|
|
599
|
-
args[
|
|
576
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
577
|
+
args[_key3 - 1] = arguments[_key3];
|
|
600
578
|
}
|
|
601
579
|
return apply$1(func, thisArg, args);
|
|
602
580
|
};
|
|
603
581
|
}
|
|
604
|
-
function unconstruct(
|
|
582
|
+
function unconstruct(Func) {
|
|
605
583
|
return function() {
|
|
606
|
-
for (var
|
|
607
|
-
args[
|
|
584
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
585
|
+
args[_key4] = arguments[_key4];
|
|
608
586
|
}
|
|
609
|
-
return construct(
|
|
587
|
+
return construct(Func, args);
|
|
610
588
|
};
|
|
611
589
|
}
|
|
612
590
|
function addToSet(set, array) {
|
|
@@ -673,15 +651,15 @@ function lookupGetter(object, prop) {
|
|
|
673
651
|
}
|
|
674
652
|
return fallbackValue;
|
|
675
653
|
}
|
|
676
|
-
const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
|
|
677
|
-
const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
|
|
654
|
+
const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
|
|
655
|
+
const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
|
|
678
656
|
const svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]);
|
|
679
657
|
const svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]);
|
|
680
658
|
const mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]);
|
|
681
659
|
const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
|
|
682
660
|
const text = freeze(["#text"]);
|
|
683
|
-
const html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
|
|
684
|
-
const svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
|
|
661
|
+
const html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
|
|
662
|
+
const svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
|
|
685
663
|
const mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
|
|
686
664
|
const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
|
|
687
665
|
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
|
|
@@ -690,7 +668,7 @@ const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
|
|
|
690
668
|
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
|
|
691
669
|
const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
|
|
692
670
|
const IS_ALLOWED_URI = seal(
|
|
693
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
671
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
694
672
|
// eslint-disable-line no-useless-escape
|
|
695
673
|
);
|
|
696
674
|
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
@@ -764,7 +742,7 @@ const _createHooksMap = function _createHooksMap2() {
|
|
|
764
742
|
function createDOMPurify() {
|
|
765
743
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
766
744
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
767
|
-
DOMPurify.version = "3.
|
|
745
|
+
DOMPurify.version = "3.3.0";
|
|
768
746
|
DOMPurify.removed = [];
|
|
769
747
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
770
748
|
DOMPurify.isSupported = false;
|
|
@@ -850,6 +828,20 @@ function createDOMPurify() {
|
|
|
850
828
|
}));
|
|
851
829
|
let FORBID_TAGS = null;
|
|
852
830
|
let FORBID_ATTR = null;
|
|
831
|
+
const EXTRA_ELEMENT_HANDLING = Object.seal(create$1(null, {
|
|
832
|
+
tagCheck: {
|
|
833
|
+
writable: true,
|
|
834
|
+
configurable: false,
|
|
835
|
+
enumerable: true,
|
|
836
|
+
value: null
|
|
837
|
+
},
|
|
838
|
+
attributeCheck: {
|
|
839
|
+
writable: true,
|
|
840
|
+
configurable: false,
|
|
841
|
+
enumerable: true,
|
|
842
|
+
value: null
|
|
843
|
+
}
|
|
844
|
+
}));
|
|
853
845
|
let ALLOW_ARIA_ATTR = true;
|
|
854
846
|
let ALLOW_DATA_ATTR = true;
|
|
855
847
|
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
|
@@ -911,8 +903,8 @@ function createDOMPurify() {
|
|
|
911
903
|
URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
|
912
904
|
DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
|
|
913
905
|
FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
914
|
-
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
|
|
915
|
-
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
|
|
906
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
907
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
916
908
|
USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
|
|
917
909
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
|
|
918
910
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
|
|
@@ -973,16 +965,24 @@ function createDOMPurify() {
|
|
|
973
965
|
}
|
|
974
966
|
}
|
|
975
967
|
if (cfg.ADD_TAGS) {
|
|
976
|
-
if (
|
|
977
|
-
|
|
968
|
+
if (typeof cfg.ADD_TAGS === "function") {
|
|
969
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
970
|
+
} else {
|
|
971
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
972
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
973
|
+
}
|
|
974
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
978
975
|
}
|
|
979
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
980
976
|
}
|
|
981
977
|
if (cfg.ADD_ATTR) {
|
|
982
|
-
if (
|
|
983
|
-
|
|
978
|
+
if (typeof cfg.ADD_ATTR === "function") {
|
|
979
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
980
|
+
} else {
|
|
981
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
982
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
983
|
+
}
|
|
984
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
984
985
|
}
|
|
985
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
986
986
|
}
|
|
987
987
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
988
988
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -1176,7 +1176,7 @@ function createDOMPurify() {
|
|
|
1176
1176
|
tagName,
|
|
1177
1177
|
allowedTags: ALLOWED_TAGS
|
|
1178
1178
|
});
|
|
1179
|
-
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
1179
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
1180
1180
|
_forceRemove(currentNode);
|
|
1181
1181
|
return true;
|
|
1182
1182
|
}
|
|
@@ -1188,7 +1188,7 @@ function createDOMPurify() {
|
|
|
1188
1188
|
_forceRemove(currentNode);
|
|
1189
1189
|
return true;
|
|
1190
1190
|
}
|
|
1191
|
-
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
1191
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
1192
1192
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
1193
1193
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
1194
1194
|
return false;
|
|
@@ -1241,12 +1241,13 @@ function createDOMPurify() {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
|
|
1243
1243
|
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
|
|
1244
|
+
else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ;
|
|
1244
1245
|
else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1245
1246
|
if (
|
|
1246
1247
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1247
1248
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1248
1249
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
1249
|
-
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
1250
|
+
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
1250
1251
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1251
1252
|
lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))
|
|
1252
1253
|
) ;
|
|
@@ -1289,7 +1290,8 @@ function createDOMPurify() {
|
|
|
1289
1290
|
value: attrValue
|
|
1290
1291
|
} = attr;
|
|
1291
1292
|
const lcName = transformCaseFunc(name);
|
|
1292
|
-
|
|
1293
|
+
const initValue = attrValue;
|
|
1294
|
+
let value = name === "value" ? initValue : stringTrim(initValue);
|
|
1293
1295
|
hookEvent.attrName = lcName;
|
|
1294
1296
|
hookEvent.attrValue = value;
|
|
1295
1297
|
hookEvent.keepAttr = true;
|
|
@@ -1300,15 +1302,19 @@ function createDOMPurify() {
|
|
|
1300
1302
|
_removeAttribute(name, currentNode);
|
|
1301
1303
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
1302
1304
|
}
|
|
1303
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
1305
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
|
|
1306
|
+
_removeAttribute(name, currentNode);
|
|
1307
|
+
continue;
|
|
1308
|
+
}
|
|
1309
|
+
if (lcName === "attributename" && stringMatch(value, "href")) {
|
|
1304
1310
|
_removeAttribute(name, currentNode);
|
|
1305
1311
|
continue;
|
|
1306
1312
|
}
|
|
1307
1313
|
if (hookEvent.forceKeepAttr) {
|
|
1308
1314
|
continue;
|
|
1309
1315
|
}
|
|
1310
|
-
_removeAttribute(name, currentNode);
|
|
1311
1316
|
if (!hookEvent.keepAttr) {
|
|
1317
|
+
_removeAttribute(name, currentNode);
|
|
1312
1318
|
continue;
|
|
1313
1319
|
}
|
|
1314
1320
|
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
@@ -1322,6 +1328,7 @@ function createDOMPurify() {
|
|
|
1322
1328
|
}
|
|
1323
1329
|
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
1324
1330
|
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
1331
|
+
_removeAttribute(name, currentNode);
|
|
1325
1332
|
continue;
|
|
1326
1333
|
}
|
|
1327
1334
|
if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
|
|
@@ -1339,18 +1346,21 @@ function createDOMPurify() {
|
|
|
1339
1346
|
}
|
|
1340
1347
|
}
|
|
1341
1348
|
}
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1349
|
+
if (value !== initValue) {
|
|
1350
|
+
try {
|
|
1351
|
+
if (namespaceURI) {
|
|
1352
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
1353
|
+
} else {
|
|
1354
|
+
currentNode.setAttribute(name, value);
|
|
1355
|
+
}
|
|
1356
|
+
if (_isClobbered(currentNode)) {
|
|
1357
|
+
_forceRemove(currentNode);
|
|
1358
|
+
} else {
|
|
1359
|
+
arrayPop(DOMPurify.removed);
|
|
1360
|
+
}
|
|
1361
|
+
} catch (_) {
|
|
1362
|
+
_removeAttribute(name, currentNode);
|
|
1352
1363
|
}
|
|
1353
|
-
} catch (_) {
|
|
1354
1364
|
}
|
|
1355
1365
|
}
|
|
1356
1366
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
@@ -7597,20 +7607,13 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
|
7597
7607
|
if (process.env.NODE_ENV !== "production") ;
|
|
7598
7608
|
const gitCodeLayout$1 = {
|
|
7599
7609
|
home: {
|
|
7600
|
-
migrationAnnounce: {
|
|
7601
|
-
preContent: "亲爱的 {siteName} 开发者:平台正在进行系统化融合与升级,预计将于10月28日12:00完成。之后,您将体验更强大、更稳定的平台。",
|
|
7602
|
-
content: "亲爱的开发者:GitCode 与 AtomGit 已完成深度整合升级,您将体验更稳定、更精彩的开源社区服务!",
|
|
7603
|
-
viewDetail: "【查看详情】",
|
|
7604
|
-
closePermanently: "不再提醒",
|
|
7605
|
-
close: "关闭"
|
|
7606
|
-
},
|
|
7607
7610
|
alreadyFollowed: "已关注",
|
|
7608
7611
|
focusOn: "关注",
|
|
7609
7612
|
star: "星标",
|
|
7610
7613
|
informationCenter: "资讯中心",
|
|
7611
7614
|
feedbackCenter: "反馈中心",
|
|
7612
7615
|
companyInformation: "重庆开源共创",
|
|
7613
|
-
recordInformation: "渝ICP备2023009037
|
|
7616
|
+
recordInformation: "渝ICP备2023009037号",
|
|
7614
7617
|
technicalSupport: "技术支持:",
|
|
7615
7618
|
HWCloud: "华为云",
|
|
7616
7619
|
userFeedback01: "在线客服",
|
|
@@ -7640,14 +7643,7 @@ const gitCodeLayout$1 = {
|
|
|
7640
7643
|
channel: {},
|
|
7641
7644
|
TianqiAI: "天启 AI",
|
|
7642
7645
|
Tianqi: "天启",
|
|
7643
|
-
topic: "热门主题"
|
|
7644
|
-
copyright_atomgit: {
|
|
7645
|
-
slogon: "共创GitCode,开发者的代码家园",
|
|
7646
|
-
digest: "重庆开源共创科技有限公司版权所有",
|
|
7647
|
-
companyInformation: "重庆开源共创",
|
|
7648
|
-
recordInformation: "渝ICP备2023009037号-12",
|
|
7649
|
-
publicSecurity: "xxxx"
|
|
7650
|
-
}
|
|
7646
|
+
topic: "热门主题"
|
|
7651
7647
|
},
|
|
7652
7648
|
header: {
|
|
7653
7649
|
create: "新建",
|
|
@@ -7745,12 +7741,11 @@ const gitCodeLayout$1 = {
|
|
|
7745
7741
|
attention: "关注"
|
|
7746
7742
|
},
|
|
7747
7743
|
tips: {
|
|
7748
|
-
notcieTitle: "
|
|
7744
|
+
notcieTitle: "Gitcode 提示",
|
|
7749
7745
|
notcie1: "你的登录信息已过期,请重新登录!",
|
|
7750
7746
|
notcie2: "登录之后才能开启全新体验哦",
|
|
7751
7747
|
readPrivacyPolicy: "请阅读并同意用户协议以及其隐私政策",
|
|
7752
|
-
welcome: "欢迎来到
|
|
7753
|
-
agreementTip: "请阅读并同意用户协议、隐私政策和数据共享"
|
|
7748
|
+
welcome: "欢迎来到Gitcode"
|
|
7754
7749
|
},
|
|
7755
7750
|
foldup: "收起",
|
|
7756
7751
|
iCreated: "我创建的",
|
|
@@ -7797,7 +7792,7 @@ const gitCodeLayout$1 = {
|
|
|
7797
7792
|
},
|
|
7798
7793
|
LoginModal: {
|
|
7799
7794
|
title: {
|
|
7800
|
-
login: "欢迎登录你的
|
|
7795
|
+
login: "欢迎登录你的GitCode账号",
|
|
7801
7796
|
register: "欢迎注册"
|
|
7802
7797
|
},
|
|
7803
7798
|
subtitle: {
|
|
@@ -7846,7 +7841,7 @@ const gitCodeLayout$1 = {
|
|
|
7846
7841
|
SMSVerificationCode: "请输入{count}位有效的短信验证码",
|
|
7847
7842
|
fillNecessaryInfo: "请输入有效的手机号码",
|
|
7848
7843
|
youNeeToAgr: "您需要同意",
|
|
7849
|
-
toUseGit: "
|
|
7844
|
+
toUseGit: "才能使用GitCode。",
|
|
7850
7845
|
ifYouDoNotAgrWe: "如果您不同意,很遗憾我们无法为您提供服务。",
|
|
7851
7846
|
disAndQui: "不同意并退出",
|
|
7852
7847
|
agrAndSigIn: "同意并登录",
|
|
@@ -7858,13 +7853,7 @@ const gitCodeLayout$1 = {
|
|
|
7858
7853
|
agreement: "用户协议",
|
|
7859
7854
|
privacyPolicy: "隐私政策",
|
|
7860
7855
|
huaweiCloudAgreement: "华为云用户协议",
|
|
7861
|
-
agreementPrivacy: "华为云隐私政策声明"
|
|
7862
|
-
gitCodeProtocol: "GitCode用户协议",
|
|
7863
|
-
gitCodePrivacy: "GitCode隐私政策",
|
|
7864
|
-
dataShare: "我同意将账号、组织、仓库等信息提供给{name}进行数据共享",
|
|
7865
|
-
chiCloDevSerAgr: "华为云开发者服务协议",
|
|
7866
|
-
chiCloDevPriPolSta: "华为云开发者隐私政策声明",
|
|
7867
|
-
dataShareTip: "数据共享"
|
|
7856
|
+
agreementPrivacy: "华为云隐私政策声明"
|
|
7868
7857
|
},
|
|
7869
7858
|
registerDesc: "GitCode 与华为云共同为用户提供代码托管服务,在使用代码托管相关服务时,将同步授权并开通华为云服务,并与重庆开源共创科技有限公司(GitCode的运营主体)关联及共享。",
|
|
7870
7859
|
rule: {
|
|
@@ -7922,13 +7911,6 @@ const zh = {
|
|
|
7922
7911
|
};
|
|
7923
7912
|
const gitCodeLayout = {
|
|
7924
7913
|
home: {
|
|
7925
|
-
migrationAnnounce: {
|
|
7926
|
-
preContent: "Dear {siteName} developer, the platform is undergoing integration, expected to be completed on October 28, 12:00. You will experience a more powerful platform.",
|
|
7927
|
-
content: "GitCode and AtomGit are now fully integrated. Enjoy a more stable and vibrant open source community!",
|
|
7928
|
-
viewDetail: "[View detail]",
|
|
7929
|
-
closePermanently: "Don't remind again",
|
|
7930
|
-
close: "Close"
|
|
7931
|
-
},
|
|
7932
7914
|
veryGood: "Excellent",
|
|
7933
7915
|
good: "Good",
|
|
7934
7916
|
generally: "Average",
|
|
@@ -7957,7 +7939,7 @@ const gitCodeLayout = {
|
|
|
7957
7939
|
slogon: "Co-create GitCode, the Code Home for Developers",
|
|
7958
7940
|
digest: "ChongQingKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
|
|
7959
7941
|
companyInformation: "ChongQingKaiYuanGongChuang",
|
|
7960
|
-
recordInformation: "Yu ICP No. 2023009037
|
|
7942
|
+
recordInformation: "Yu ICP No. 2023009037",
|
|
7961
7943
|
searchPlaceholder2: "Type <kbd>/</kbd> to search",
|
|
7962
7944
|
searchPlaceholder: "Search",
|
|
7963
7945
|
alreadyFollowed: "Followed",
|
|
@@ -7965,14 +7947,7 @@ const gitCodeLayout = {
|
|
|
7965
7947
|
org: {},
|
|
7966
7948
|
TianqiAI: "Tianqi AI",
|
|
7967
7949
|
Tianqi: "Tianqi",
|
|
7968
|
-
topic: "Hot topics"
|
|
7969
|
-
copyright_atomgit: {
|
|
7970
|
-
slogon: "Co-create GitCode, the Code Home for Developers",
|
|
7971
|
-
digest: "ChongQingKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
|
|
7972
|
-
companyInformation: "ChongQingKaiYuanGongChuang",
|
|
7973
|
-
recordInformation: "Yu ICP No. 2023009037-12",
|
|
7974
|
-
publicSecurity: "xxxx"
|
|
7975
|
-
}
|
|
7950
|
+
topic: "Hot topics"
|
|
7976
7951
|
},
|
|
7977
7952
|
header: {
|
|
7978
7953
|
create: "New",
|
|
@@ -8074,8 +8049,7 @@ const gitCodeLayout = {
|
|
|
8074
8049
|
notcie1: "Login has expired, please log in again!",
|
|
8075
8050
|
notcie2: "Log in to unlock a brand new experience!",
|
|
8076
8051
|
readPrivacyPolicy: "Please Read and Agree to the User Agreement and Privacy Policy",
|
|
8077
|
-
welcome: "Welcome to GitCode"
|
|
8078
|
-
agreementTip: "Please read and agree to the user agreement, privacy policy and data sharing"
|
|
8052
|
+
welcome: "Welcome to GitCode"
|
|
8079
8053
|
},
|
|
8080
8054
|
foldup: "Collapse",
|
|
8081
8055
|
iCreated: "Yours",
|
|
@@ -8183,13 +8157,7 @@ const gitCodeLayout = {
|
|
|
8183
8157
|
agreement: "User Agreement",
|
|
8184
8158
|
privacyPolicy: "Privacy Policy",
|
|
8185
8159
|
huaweiCloudAgreement: "Huawei Cloud User Agreement",
|
|
8186
|
-
agreementPrivacy: "Huawei Cloud Privacy Policy Statement"
|
|
8187
|
-
gitCodeProtocol: "GitCode User Agreement",
|
|
8188
|
-
gitCodePrivacy: "GitCode Privacy Policy",
|
|
8189
|
-
dataShare: "I agree to share my account, organization, repository information with {name} for data sharing",
|
|
8190
|
-
chiCloDevSerAgr: "Huawei Cloud Developer Service Agreement",
|
|
8191
|
-
chiCloDevPriPolSta: "Huawei Cloud Developer Privacy Policy Statement",
|
|
8192
|
-
dataShareTip: "Data Sharing"
|
|
8160
|
+
agreementPrivacy: "Huawei Cloud Privacy Policy Statement"
|
|
8193
8161
|
},
|
|
8194
8162
|
registerDesc: "GitCode and Huawei Cloud jointly provide code hosting services for users. When using code hosting services, you will synchronize authorization and activate Huawei Cloud services, and share information with Chongqing Open Source Co-Creation Technology Co., Ltd. (the operator of GitCode).",
|
|
8195
8163
|
rule: {
|
|
@@ -8254,24 +8222,9 @@ const LANGUAGE = [
|
|
|
8254
8222
|
{ label: "English", value: LANG_EN, language: LANGUAGE_EN, icon: "gt-line-English1" }
|
|
8255
8223
|
];
|
|
8256
8224
|
const LANG_KEY = "gitcode_lang";
|
|
8257
|
-
const COOKIE_DOMAIN = () => {
|
|
8258
|
-
if (typeof window !== "undefined" && window.location.hostname.includes("atomgit.com")) {
|
|
8259
|
-
return ".atomgit.com";
|
|
8260
|
-
} else if (typeof window !== "undefined" && window.location.hostname.includes("gitcode.com")) {
|
|
8261
|
-
return ".gitcode.com";
|
|
8262
|
-
}
|
|
8263
|
-
return ".gitcode.com";
|
|
8264
|
-
};
|
|
8265
|
-
const COOKIE_OPTIONS = {
|
|
8266
|
-
expires: 365,
|
|
8267
|
-
path: "/",
|
|
8268
|
-
secure: typeof window !== "undefined" && window.location.protocol === "https:",
|
|
8269
|
-
sameSite: "Lax",
|
|
8270
|
-
domain: COOKIE_DOMAIN()
|
|
8271
|
-
};
|
|
8272
8225
|
const SUPPORT_LOCALES = [LANG_EN, LANG_ZH];
|
|
8273
8226
|
const currentDomainCookie = api.get(LANG_KEY);
|
|
8274
|
-
if (currentDomainCookie && "." + window.location.hostname !==
|
|
8227
|
+
if (currentDomainCookie && "." + window.location.hostname !== ".gitcode.com" || !SUPPORT_LOCALES.includes(currentDomainCookie)) {
|
|
8275
8228
|
api.remove(LANG_KEY);
|
|
8276
8229
|
}
|
|
8277
8230
|
function isComposer(instance, mode) {
|
|
@@ -8288,7 +8241,7 @@ function setupI18n(options = { locale: LANG_EN }) {
|
|
|
8288
8241
|
if (typeof document !== "undefined" && document.documentElement) {
|
|
8289
8242
|
document.documentElement.lang = options.locale;
|
|
8290
8243
|
}
|
|
8291
|
-
const i18n2 = createI18n(
|
|
8244
|
+
const i18n2 = createI18n(options);
|
|
8292
8245
|
setI18nLanguage(i18n2, options.locale);
|
|
8293
8246
|
return i18n2;
|
|
8294
8247
|
}
|
|
@@ -8296,9 +8249,9 @@ function setI18nLanguage(i18n2, locale2) {
|
|
|
8296
8249
|
setLocale(i18n2, locale2);
|
|
8297
8250
|
}
|
|
8298
8251
|
const getLocaleLang = () => {
|
|
8299
|
-
const allCookies = api.get()
|
|
8252
|
+
const allCookies = api.get();
|
|
8300
8253
|
const cookieLang = allCookies[LANG_KEY];
|
|
8301
|
-
const localStorageLang = localStorage
|
|
8254
|
+
const localStorageLang = localStorage.getItem(LANG_KEY);
|
|
8302
8255
|
const storedLang = [LANG_EN, LANG_ZH].includes(cookieLang) ? cookieLang : localStorageLang;
|
|
8303
8256
|
let localLang = storedLang || LANG_ZH;
|
|
8304
8257
|
if (typeof window !== "undefined" && window.location.pathname.startsWith("/ai-copilot")) {
|
|
@@ -8322,7 +8275,7 @@ const $i18n = setupI18n({
|
|
|
8322
8275
|
}
|
|
8323
8276
|
});
|
|
8324
8277
|
const i18n = $i18n;
|
|
8325
|
-
const layoutConfig$
|
|
8278
|
+
const layoutConfig$4 = useLayoutConfig();
|
|
8326
8279
|
function scrollToTop() {
|
|
8327
8280
|
if (typeof window !== "undefined" && window.pageYOffset) {
|
|
8328
8281
|
const c = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
|
|
@@ -8351,7 +8304,7 @@ function extractRepoInfoWithURL(repoUrl) {
|
|
|
8351
8304
|
return parts.join("/");
|
|
8352
8305
|
}
|
|
8353
8306
|
const isGstarRepo = (topics) => {
|
|
8354
|
-
const gstarTopicIds = layoutConfig$
|
|
8307
|
+
const gstarTopicIds = layoutConfig$4.VITE_GSTAR_TOPIC.split(",");
|
|
8355
8308
|
let isGstar = false;
|
|
8356
8309
|
topics && topics.forEach((item) => {
|
|
8357
8310
|
if (gstarTopicIds.includes(item.topic_id || item.id)) {
|
|
@@ -8361,7 +8314,7 @@ const isGstarRepo = (topics) => {
|
|
|
8361
8314
|
return isGstar;
|
|
8362
8315
|
};
|
|
8363
8316
|
const isTrustedRepo = (topics) => {
|
|
8364
|
-
const trustedTopicIds = layoutConfig$
|
|
8317
|
+
const trustedTopicIds = layoutConfig$4.VITE_TRUSTED_TOPIC.split(",");
|
|
8365
8318
|
let isTrusted = false;
|
|
8366
8319
|
topics && topics.forEach((item) => {
|
|
8367
8320
|
if (trustedTopicIds.includes(item.topic_id || item.id)) {
|
|
@@ -8370,7 +8323,7 @@ const isTrustedRepo = (topics) => {
|
|
|
8370
8323
|
});
|
|
8371
8324
|
return isTrusted;
|
|
8372
8325
|
};
|
|
8373
|
-
const INCUBATION_TOPICS = layoutConfig$
|
|
8326
|
+
const INCUBATION_TOPICS = layoutConfig$4.VITE_INCUBATION_TOPIC || "";
|
|
8374
8327
|
const isIncubationRepo = (topics = []) => {
|
|
8375
8328
|
if (!topics) return false;
|
|
8376
8329
|
const incubationIds = INCUBATION_TOPICS.split(",");
|
|
@@ -8413,7 +8366,7 @@ const getLastTimeRepoId = () => {
|
|
|
8413
8366
|
};
|
|
8414
8367
|
const setUtmSourceSign = (utm_source) => {
|
|
8415
8368
|
const time = new Date((/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3);
|
|
8416
|
-
return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$
|
|
8369
|
+
return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$4.VITE_COOKIE_DOMAIN });
|
|
8417
8370
|
};
|
|
8418
8371
|
const getUtmSourceSign = () => {
|
|
8419
8372
|
return api.get("utm_source_sign") || "";
|
|
@@ -10973,7 +10926,7 @@ const getCommonHeadInfo = (isAiHub) => {
|
|
|
10973
10926
|
"X-Device-ID": "unknown"
|
|
10974
10927
|
};
|
|
10975
10928
|
};
|
|
10976
|
-
const layoutConfig$
|
|
10929
|
+
const layoutConfig$3 = useLayoutConfig();
|
|
10977
10930
|
const setPassportPrefix = (url, method) => {
|
|
10978
10931
|
const prefix = "/uc";
|
|
10979
10932
|
{
|
|
@@ -10997,7 +10950,7 @@ const setPassportPrefix = (url, method) => {
|
|
|
10997
10950
|
};
|
|
10998
10951
|
const proxyService = (params, customConfigs) => {
|
|
10999
10952
|
const service = axios.create({
|
|
11000
|
-
baseURL: layoutConfig$
|
|
10953
|
+
baseURL: layoutConfig$3.VITE_API_HOST,
|
|
11001
10954
|
timeout: (customConfigs == null ? void 0 : customConfigs.customTimeout) || 3e4,
|
|
11002
10955
|
withCredentials: true
|
|
11003
10956
|
});
|
|
@@ -11045,136 +10998,10 @@ const proxyService = (params, customConfigs) => {
|
|
|
11045
10998
|
);
|
|
11046
10999
|
return service(params);
|
|
11047
11000
|
};
|
|
11048
|
-
const
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
if (typeof window !== "undefined" && typeof location !== "undefined") {
|
|
11053
|
-
if (url == null ? void 0 : url.startsWith("https://cdn-")) {
|
|
11054
|
-
return url;
|
|
11055
|
-
}
|
|
11056
|
-
if (url == null ? void 0 : url.includes("myhuaweicloud.com")) {
|
|
11057
|
-
return url;
|
|
11058
|
-
}
|
|
11059
|
-
const host = (_a = location.host) == null ? void 0 : _a.replace(/^ai\./, "");
|
|
11060
|
-
if (host.includes("gitcode.host")) {
|
|
11061
|
-
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
11062
|
-
}
|
|
11063
|
-
if (url == null ? void 0 : url.includes("test.gitcode.net")) {
|
|
11064
|
-
return url == null ? void 0 : url.replace(/test\.gitcode\.net/g, host);
|
|
11065
|
-
}
|
|
11066
|
-
try {
|
|
11067
|
-
const urlObj = new URL(url);
|
|
11068
|
-
if (urlObj.host === host) {
|
|
11069
|
-
return url;
|
|
11070
|
-
}
|
|
11071
|
-
} catch (error) {
|
|
11072
|
-
console.error("transformUrl: URL 解析失败", error);
|
|
11073
|
-
}
|
|
11074
|
-
return transformUrlWithSpecialPrefix({ url, host });
|
|
11075
|
-
}
|
|
11076
|
-
return url;
|
|
11077
|
-
};
|
|
11078
|
-
const transformUrlWithSpecialPrefix = ({ url, host }) => {
|
|
11079
|
-
const specialPrefix = ["-tianqi", "-ai", "-news", "-competition"];
|
|
11080
|
-
const isTestEnv = /^(test|local)\./i.test(host);
|
|
11081
|
-
const isPreEnv = /^(pre|loc-pre)\./i.test(host);
|
|
11082
|
-
const isNonProdEnv = isTestEnv || isPreEnv;
|
|
11083
|
-
if (!isNonProdEnv) {
|
|
11084
|
-
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
11085
|
-
}
|
|
11086
|
-
if (specialPrefix.some((prefix) => url == null ? void 0 : url.includes(prefix))) {
|
|
11087
|
-
try {
|
|
11088
|
-
const urlObj = new URL(url);
|
|
11089
|
-
const urlHost = urlObj.host;
|
|
11090
|
-
const specialPrefixMatch = specialPrefix.find((prefix) => urlHost.includes(prefix));
|
|
11091
|
-
if (specialPrefixMatch) {
|
|
11092
|
-
const prefixPart = urlHost.split(".")[0];
|
|
11093
|
-
const mainDomain = host.replace(/^(test|pre|local|loc-pre)\./, "");
|
|
11094
|
-
urlObj.host = `${prefixPart}.${mainDomain}`;
|
|
11095
|
-
return urlObj.toString();
|
|
11096
|
-
}
|
|
11097
|
-
} catch (error) {
|
|
11098
|
-
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
11099
|
-
}
|
|
11100
|
-
}
|
|
11101
|
-
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
11102
|
-
};
|
|
11103
|
-
const transformNewsUrl = (url) => {
|
|
11104
|
-
if (url.startsWith("/") && !url.startsWith("//")) return url;
|
|
11105
|
-
if (url.includes("-news.")) return url;
|
|
11106
|
-
let transformedUrl = transformUrl(url);
|
|
11107
|
-
if (typeof window !== "undefined" && typeof location !== "undefined") {
|
|
11108
|
-
const host = location.host;
|
|
11109
|
-
const isGitcodeHost = host.includes("gitcode");
|
|
11110
|
-
if (host.includes("gitcode.host")) {
|
|
11111
|
-
try {
|
|
11112
|
-
const urlObj = new URL(url);
|
|
11113
|
-
const pathAndQuery = urlObj.pathname + urlObj.search + urlObj.hash;
|
|
11114
|
-
return `https://news.${host}${pathAndQuery}`;
|
|
11115
|
-
} catch (error) {
|
|
11116
|
-
return transformedUrl;
|
|
11117
|
-
}
|
|
11118
|
-
}
|
|
11119
|
-
let needAppendPath = false;
|
|
11120
|
-
if (host === "local.atomgit.com" || host === "local.gitcode.net" || transformedUrl.includes("news.local")) {
|
|
11121
|
-
transformedUrl = isGitcodeHost ? "https://test-news.gitcode.net" : "https://test-news.atomgit.com";
|
|
11122
|
-
needAppendPath = true;
|
|
11123
|
-
} else if (transformedUrl.includes("news.test")) {
|
|
11124
|
-
transformedUrl = isGitcodeHost ? "https://test-news.gitcode.net" : "https://test-news.atomgit.com";
|
|
11125
|
-
needAppendPath = true;
|
|
11126
|
-
} else if (transformedUrl.includes("news.pre")) {
|
|
11127
|
-
transformedUrl = isGitcodeHost ? "https://pre-news.gitcode.com" : "https://pre-news.atomgit.com";
|
|
11128
|
-
needAppendPath = true;
|
|
11129
|
-
}
|
|
11130
|
-
if (needAppendPath) {
|
|
11131
|
-
try {
|
|
11132
|
-
const originalUrlObj = new URL(url);
|
|
11133
|
-
const pathAndQuery = originalUrlObj.pathname + originalUrlObj.search + originalUrlObj.hash;
|
|
11134
|
-
if (pathAndQuery && pathAndQuery !== "/") {
|
|
11135
|
-
transformedUrl = transformedUrl + pathAndQuery;
|
|
11136
|
-
}
|
|
11137
|
-
} catch (error) {
|
|
11138
|
-
console.error("transformNewsUrl: URL 解析失败", error);
|
|
11139
|
-
}
|
|
11140
|
-
}
|
|
11141
|
-
}
|
|
11142
|
-
return transformedUrl;
|
|
11143
|
-
};
|
|
11144
|
-
const replaceHost = ({ url, customHost }) => {
|
|
11145
|
-
if (!url || !customHost) return url;
|
|
11146
|
-
try {
|
|
11147
|
-
const urlObj = new URL(url);
|
|
11148
|
-
let pureHost = customHost;
|
|
11149
|
-
if (customHost.includes("://")) {
|
|
11150
|
-
const customUrlObj = new URL(customHost);
|
|
11151
|
-
pureHost = customUrlObj.host;
|
|
11152
|
-
}
|
|
11153
|
-
urlObj.host = pureHost;
|
|
11154
|
-
return urlObj.toString();
|
|
11155
|
-
} catch (error) {
|
|
11156
|
-
return url;
|
|
11157
|
-
}
|
|
11158
|
-
};
|
|
11159
|
-
const getCurrentLogoMap = () => {
|
|
11160
|
-
if (typeof window === "undefined" || typeof location === "undefined") {
|
|
11161
|
-
console.warn("[getCurrentLogoMap] 在 SSR 环境中被调用,返回默认配置");
|
|
11162
|
-
return LOGO_MAP.gitcode;
|
|
11163
|
-
}
|
|
11164
|
-
const siteType = location.host.includes("atomgit") ? "atomgit" : "gitcode";
|
|
11165
|
-
return LOGO_MAP[siteType];
|
|
11166
|
-
};
|
|
11167
|
-
const isGitCodeHost = () => {
|
|
11168
|
-
if (typeof window === "undefined" || typeof location === "undefined") return false;
|
|
11169
|
-
return location.hostname.includes("gitcode");
|
|
11170
|
-
};
|
|
11171
|
-
const currentHelpDocsUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE : HELP_DOCS_URL_ATOMGIT;
|
|
11172
|
-
const currentHelpDocsAboutUsUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/aboutus/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/aboutus/";
|
|
11173
|
-
const currentHelpDocsAiCommunityUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
|
|
11174
|
-
const _hoisted_1$w = { class: "home-nav-right" };
|
|
11175
|
-
const _hoisted_2$m = { class: "home-nav-item" };
|
|
11176
|
-
const _hoisted_3$l = { class: "tooltip-sign" };
|
|
11177
|
-
const _hoisted_4$g = { class: "home-nav-tooltip-wrapper" };
|
|
11001
|
+
const _hoisted_1$u = { class: "home-nav-right" };
|
|
11002
|
+
const _hoisted_2$k = { class: "home-nav-item" };
|
|
11003
|
+
const _hoisted_3$h = { class: "tooltip-sign" };
|
|
11004
|
+
const _hoisted_4$e = { class: "home-nav-tooltip-wrapper" };
|
|
11178
11005
|
const _hoisted_5$a = { class: "home-nav-text" };
|
|
11179
11006
|
const _hoisted_6$9 = { class: "home-nav-tooltip-wrapper" };
|
|
11180
11007
|
const _hoisted_7$6 = { class: "home-nav-text" };
|
|
@@ -11225,7 +11052,7 @@ const _hoisted_30$1 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] te
|
|
|
11225
11052
|
const _hoisted_31$1 = { class: "home-nav-item collapse-tool" };
|
|
11226
11053
|
const _hoisted_32$1 = { class: "home-nav-item" };
|
|
11227
11054
|
const _hoisted_33$1 = ["src", "alt"];
|
|
11228
|
-
const _sfc_main$
|
|
11055
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
11229
11056
|
__name: "index",
|
|
11230
11057
|
props: {
|
|
11231
11058
|
sceneValue: { default: SceneValue.home },
|
|
@@ -11278,8 +11105,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
11278
11105
|
emits("toggle-growth-center");
|
|
11279
11106
|
};
|
|
11280
11107
|
const handleInvite = () => {
|
|
11281
|
-
|
|
11282
|
-
window.open(link, "_blank");
|
|
11108
|
+
window.open("https://gitcode.com/setting/points?type=invite", "_blank");
|
|
11283
11109
|
};
|
|
11284
11110
|
const showDesk = () => {
|
|
11285
11111
|
if (window.ud) {
|
|
@@ -11458,13 +11284,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
11458
11284
|
size: "18px"
|
|
11459
11285
|
})
|
|
11460
11286
|
])) : createCommentVNode("", true),
|
|
11461
|
-
createElementVNode("div", _hoisted_1$
|
|
11287
|
+
createElementVNode("div", _hoisted_1$u, [
|
|
11462
11288
|
createVNode(unref(Tooltip), {
|
|
11463
11289
|
position: "left",
|
|
11464
11290
|
"overlay-class": "tools-tag-tooltip"
|
|
11465
11291
|
}, {
|
|
11466
11292
|
content: withCtx(() => [
|
|
11467
|
-
createElementVNode("div", _hoisted_4$
|
|
11293
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
11468
11294
|
createElementVNode("div", _hoisted_5$a, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
|
|
11469
11295
|
])
|
|
11470
11296
|
]),
|
|
@@ -11473,13 +11299,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
11473
11299
|
class: "home-nav-link computing",
|
|
11474
11300
|
onClick: handleInvite
|
|
11475
11301
|
}, [
|
|
11476
|
-
createElementVNode("div", _hoisted_2$
|
|
11302
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
11477
11303
|
_cache[5] || (_cache[5] = createElementVNode("img", {
|
|
11478
11304
|
class: "common-icon inline-block h-[20px] w-[20px]",
|
|
11479
11305
|
src: "https://cdn-static.gitcode.com/static/images/homeweb/invite.svg",
|
|
11480
11306
|
alt: ""
|
|
11481
11307
|
}, null, -1)),
|
|
11482
|
-
createElementVNode("div", _hoisted_3$
|
|
11308
|
+
createElementVNode("div", _hoisted_3$h, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
|
|
11483
11309
|
])
|
|
11484
11310
|
])
|
|
11485
11311
|
]),
|
|
@@ -11758,7 +11584,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
11758
11584
|
};
|
|
11759
11585
|
}
|
|
11760
11586
|
});
|
|
11761
|
-
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11587
|
+
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11762
11588
|
var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
|
|
11763
11589
|
repoTypeEnum2["NORMAL"] = "0";
|
|
11764
11590
|
repoTypeEnum2["MODEL"] = "1";
|
|
@@ -11855,7 +11681,7 @@ var REPO_TYPE = /* @__PURE__ */ ((REPO_TYPE2) => {
|
|
|
11855
11681
|
REPO_TYPE2[REPO_TYPE2["HUGGINGFACE_MIRRORS"] = 2] = "HUGGINGFACE_MIRRORS";
|
|
11856
11682
|
return REPO_TYPE2;
|
|
11857
11683
|
})(REPO_TYPE || {});
|
|
11858
|
-
const layoutConfig$
|
|
11684
|
+
const layoutConfig$2 = useLayoutConfig();
|
|
11859
11685
|
const registerLoginMethodMap = {
|
|
11860
11686
|
[LoginMethodEnum.PHONE]: "短信",
|
|
11861
11687
|
[LoginMethodEnum.PASSWORD]: "密码",
|
|
@@ -11888,8 +11714,8 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
|
|
|
11888
11714
|
article_id: searchParams["from_id"] || "",
|
|
11889
11715
|
userid_fast_application: searchParams["uuid_tt_dd"] || "",
|
|
11890
11716
|
gitcode_utm_source: searchParams["utm_source"] || "",
|
|
11891
|
-
page_url:
|
|
11892
|
-
env: layoutConfig$
|
|
11717
|
+
page_url: location.href || "",
|
|
11718
|
+
env: layoutConfig$2.VITE_ENV,
|
|
11893
11719
|
namespace: extraData.namespace || "",
|
|
11894
11720
|
...extraData,
|
|
11895
11721
|
...searchParams
|
|
@@ -11899,8 +11725,8 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
|
|
|
11899
11725
|
delete reportData["utm_source"];
|
|
11900
11726
|
window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
|
|
11901
11727
|
};
|
|
11902
|
-
const _hoisted_1$
|
|
11903
|
-
const _sfc_main$
|
|
11728
|
+
const _hoisted_1$t = ["href", "target", "disabled"];
|
|
11729
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
11904
11730
|
...{
|
|
11905
11731
|
name: "GLink"
|
|
11906
11732
|
},
|
|
@@ -11944,25 +11770,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
11944
11770
|
disabled: _ctx.disabled || _ctx.noPointer
|
|
11945
11771
|
}, [
|
|
11946
11772
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
11947
|
-
], 10, _hoisted_1$
|
|
11773
|
+
], 10, _hoisted_1$t));
|
|
11948
11774
|
};
|
|
11949
11775
|
}
|
|
11950
11776
|
});
|
|
11951
|
-
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11952
|
-
const headerHeight = ref(56);
|
|
11953
|
-
const useHeaderHeight = () => {
|
|
11954
|
-
const setHeaderHeight = (height) => {
|
|
11955
|
-
headerHeight.value = height;
|
|
11956
|
-
};
|
|
11957
|
-
const getHeaderHeight = () => {
|
|
11958
|
-
return headerHeight;
|
|
11959
|
-
};
|
|
11960
|
-
return {
|
|
11961
|
-
setHeaderHeight,
|
|
11962
|
-
getHeaderHeight,
|
|
11963
|
-
headerHeight
|
|
11964
|
-
};
|
|
11965
|
-
};
|
|
11777
|
+
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11966
11778
|
const black = {
|
|
11967
11779
|
"theme-stress-text": "#f0f6fc",
|
|
11968
11780
|
"theme-text": "#D2D8E4",
|
|
@@ -12377,6 +12189,14 @@ var ThemeType = /* @__PURE__ */ ((ThemeType2) => {
|
|
|
12377
12189
|
return ThemeType2;
|
|
12378
12190
|
})(ThemeType || {});
|
|
12379
12191
|
const THEME_KEY = "gitcode_theme";
|
|
12192
|
+
const COOKIE_DOMAIN = ".gitcode.com";
|
|
12193
|
+
const COOKIE_OPTIONS = {
|
|
12194
|
+
expires: 365,
|
|
12195
|
+
path: "/",
|
|
12196
|
+
secure: typeof window !== "undefined" && window.location.protocol === "https:",
|
|
12197
|
+
sameSite: "Lax",
|
|
12198
|
+
domain: COOKIE_DOMAIN
|
|
12199
|
+
};
|
|
12380
12200
|
const currentThemeStorage = ref(api.get(THEME_KEY) || "");
|
|
12381
12201
|
const themeColorMap = {
|
|
12382
12202
|
[ThemeType.BLACK]: black,
|
|
@@ -12390,7 +12210,7 @@ watch(currentThemeStorage, (newValue) => {
|
|
|
12390
12210
|
if (newValue) {
|
|
12391
12211
|
api.set(THEME_KEY, newValue, COOKIE_OPTIONS);
|
|
12392
12212
|
} else {
|
|
12393
|
-
api.remove(THEME_KEY, { domain: COOKIE_DOMAIN
|
|
12213
|
+
api.remove(THEME_KEY, { domain: COOKIE_DOMAIN });
|
|
12394
12214
|
}
|
|
12395
12215
|
});
|
|
12396
12216
|
const currentTheme = computed(() => {
|
|
@@ -12444,7 +12264,7 @@ class Theme {
|
|
|
12444
12264
|
}
|
|
12445
12265
|
stopAutoTheme(isInit = false) {
|
|
12446
12266
|
if (!isInit) {
|
|
12447
|
-
api.remove("AutoTheme", { domain: COOKIE_DOMAIN
|
|
12267
|
+
api.remove("AutoTheme", { domain: COOKIE_DOMAIN });
|
|
12448
12268
|
}
|
|
12449
12269
|
this.darkModeMediaQuery.onchange = null;
|
|
12450
12270
|
}
|
|
@@ -12506,7 +12326,7 @@ if (isBrowser) {
|
|
|
12506
12326
|
}
|
|
12507
12327
|
const sessionStorage$1 = sessionStorage;
|
|
12508
12328
|
const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7VpdbxxnFT7nfccmRam6/gXZXIBy1y3qRe8YR6kUoUpdbhACJNtShFJUSCyBBFd2I1ClAoklVAE32BYXRAJqIwEyUOrNL4h70dtm+wvq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sfc_main$
|
|
12329
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12510
12330
|
...{
|
|
12511
12331
|
name: "GAvatar"
|
|
12512
12332
|
},
|
|
@@ -12535,7 +12355,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12535
12355
|
});
|
|
12536
12356
|
return (_ctx, _cache) => {
|
|
12537
12357
|
return openBlock(), createBlock(unref(Avatar), {
|
|
12538
|
-
"img-src":
|
|
12358
|
+
"img-src": imgSrc.value,
|
|
12539
12359
|
name: placeholderName.value,
|
|
12540
12360
|
width: _ctx.width,
|
|
12541
12361
|
height: _ctx.height,
|
|
@@ -12547,8 +12367,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12547
12367
|
};
|
|
12548
12368
|
}
|
|
12549
12369
|
});
|
|
12550
|
-
const _hoisted_1$
|
|
12551
|
-
const _sfc_main$
|
|
12370
|
+
const _hoisted_1$s = ["src"];
|
|
12371
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12552
12372
|
...{ name: "FlashTag" },
|
|
12553
12373
|
__name: "FlashTag",
|
|
12554
12374
|
props: {
|
|
@@ -12593,7 +12413,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12593
12413
|
key: 0,
|
|
12594
12414
|
class: "w-[16px] h-[16px]",
|
|
12595
12415
|
src: iconUrl.value
|
|
12596
|
-
}, null, 8, _hoisted_1$
|
|
12416
|
+
}, null, 8, _hoisted_1$s)) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
12597
12417
|
], 16)
|
|
12598
12418
|
]),
|
|
12599
12419
|
_: 3
|
|
@@ -13399,13 +13219,13 @@ const useTimeFormat = () => {
|
|
|
13399
13219
|
formatTime
|
|
13400
13220
|
};
|
|
13401
13221
|
};
|
|
13402
|
-
const _hoisted_1$
|
|
13222
|
+
const _hoisted_1$r = {
|
|
13403
13223
|
key: 0,
|
|
13404
13224
|
class: "org-layout-toolbar"
|
|
13405
13225
|
};
|
|
13406
|
-
const _hoisted_2$
|
|
13407
|
-
const _hoisted_3$
|
|
13408
|
-
const _hoisted_4$
|
|
13226
|
+
const _hoisted_2$j = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
|
|
13227
|
+
const _hoisted_3$g = { class: "text-xs" };
|
|
13228
|
+
const _hoisted_4$d = { class: "flex items-center w-full g-repo-breadcrumb-custom" };
|
|
13409
13229
|
const _hoisted_5$9 = {
|
|
13410
13230
|
key: 1,
|
|
13411
13231
|
class: "flex items-center min-w-[30px]"
|
|
@@ -13458,7 +13278,7 @@ const _hoisted_20$1 = {
|
|
|
13458
13278
|
};
|
|
13459
13279
|
const _hoisted_21$1 = { class: "user-layout-toolbar-title flex-1 ellipsis-two-line" };
|
|
13460
13280
|
const _hoisted_22$1 = { class: "text-xs" };
|
|
13461
|
-
const _sfc_main$
|
|
13281
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
13462
13282
|
__name: "HeaderCustom",
|
|
13463
13283
|
props: {
|
|
13464
13284
|
scene: { default: SceneValue.home },
|
|
@@ -13578,7 +13398,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13578
13398
|
});
|
|
13579
13399
|
return (_ctx, _cache) => {
|
|
13580
13400
|
var _a, _b;
|
|
13581
|
-
return _ctx.scene === unref(SceneValue).org && !_ctx.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13401
|
+
return _ctx.scene === unref(SceneValue).org && !_ctx.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
13582
13402
|
createVNode(GLink, {
|
|
13583
13403
|
to: { name: "homepage" },
|
|
13584
13404
|
class: "flex flex-1 items-center gap-[8px]"
|
|
@@ -13586,7 +13406,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13586
13406
|
default: withCtx(() => {
|
|
13587
13407
|
var _a2, _b2, _c;
|
|
13588
13408
|
return [
|
|
13589
|
-
createVNode(_sfc_main$
|
|
13409
|
+
createVNode(_sfc_main$z, {
|
|
13590
13410
|
class: "g-border",
|
|
13591
13411
|
src: (_a2 = unref(orgInfo)) == null ? void 0 : _a2.avatar,
|
|
13592
13412
|
name: (_b2 = unref(orgInfo)) == null ? void 0 : _b2.name,
|
|
@@ -13594,7 +13414,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13594
13414
|
height: 28,
|
|
13595
13415
|
is_round: false
|
|
13596
13416
|
}, null, 8, ["src", "name"]),
|
|
13597
|
-
createElementVNode("div", _hoisted_2$
|
|
13417
|
+
createElementVNode("div", _hoisted_2$j, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
|
|
13598
13418
|
];
|
|
13599
13419
|
}),
|
|
13600
13420
|
_: 1
|
|
@@ -13609,7 +13429,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13609
13429
|
default: withCtx(() => {
|
|
13610
13430
|
var _a2;
|
|
13611
13431
|
return [
|
|
13612
|
-
createElementVNode("span", _hoisted_3$
|
|
13432
|
+
createElementVNode("span", _hoisted_3$g, toDisplayString$1(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
|
|
13613
13433
|
];
|
|
13614
13434
|
}),
|
|
13615
13435
|
_: 1
|
|
@@ -13631,7 +13451,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13631
13451
|
default: withCtx(() => {
|
|
13632
13452
|
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
13633
13453
|
return [
|
|
13634
|
-
createElementVNode("h2", _hoisted_4$
|
|
13454
|
+
createElementVNode("h2", _hoisted_4$d, [
|
|
13635
13455
|
createVNode(GLink, {
|
|
13636
13456
|
href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
|
|
13637
13457
|
class: "pr-[12px]"
|
|
@@ -13639,7 +13459,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13639
13459
|
default: withCtx(() => {
|
|
13640
13460
|
var _a3, _b3, _c2, _d2;
|
|
13641
13461
|
return [
|
|
13642
|
-
!((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$
|
|
13462
|
+
!((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$z, {
|
|
13643
13463
|
key: 0,
|
|
13644
13464
|
class: normalizeClass({ "g-border": isOrg.value }),
|
|
13645
13465
|
src: (_c2 = (_b3 = unref(repoInfo)) == null ? void 0 : _b3.namespace) == null ? void 0 : _c2.avatar_url,
|
|
@@ -13707,7 +13527,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13707
13527
|
_: 1
|
|
13708
13528
|
}, 8, ["to"]),
|
|
13709
13529
|
unref(isGstarRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
|
|
13710
|
-
createVNode(_sfc_main$
|
|
13530
|
+
createVNode(_sfc_main$y, {
|
|
13711
13531
|
origin: "repo",
|
|
13712
13532
|
icon: "",
|
|
13713
13533
|
type: "gstar",
|
|
@@ -13719,7 +13539,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13719
13539
|
_: 1
|
|
13720
13540
|
}, 8, ["message"])
|
|
13721
13541
|
])) : unref(isIncubationRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
13722
|
-
createVNode(_sfc_main$
|
|
13542
|
+
createVNode(_sfc_main$y, {
|
|
13723
13543
|
origin: "repo",
|
|
13724
13544
|
icon: "",
|
|
13725
13545
|
type: "incubation",
|
|
@@ -13732,7 +13552,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13732
13552
|
}, 8, ["message"])
|
|
13733
13553
|
])) : createCommentVNode("", true),
|
|
13734
13554
|
unref(isTrustedRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
13735
|
-
createVNode(_sfc_main$
|
|
13555
|
+
createVNode(_sfc_main$y, {
|
|
13736
13556
|
trusted: "",
|
|
13737
13557
|
message: unref(t2)("gitCodeLayout.trusted.title"),
|
|
13738
13558
|
icon: "",
|
|
@@ -13781,7 +13601,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13781
13601
|
default: withCtx(() => {
|
|
13782
13602
|
var _a2, _b2, _c, _d, _e;
|
|
13783
13603
|
return [
|
|
13784
|
-
createVNode(_sfc_main$
|
|
13604
|
+
createVNode(_sfc_main$z, {
|
|
13785
13605
|
src: (_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.avatarUrl,
|
|
13786
13606
|
name: ((_b2 = unref(otherUserInfo)) == null ? void 0 : _b2.name) || ((_c = unref(otherUserInfo)) == null ? void 0 : _c.nickname),
|
|
13787
13607
|
width: 28,
|
|
@@ -13808,115 +13628,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13808
13628
|
};
|
|
13809
13629
|
}
|
|
13810
13630
|
});
|
|
13811
|
-
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13812
|
-
const
|
|
13813
|
-
|
|
13814
|
-
let observer = new IntersectionObserver(function(entries2, observer2) {
|
|
13815
|
-
entries2.forEach(function(entry) {
|
|
13816
|
-
var _a;
|
|
13817
|
-
if (entry.isIntersecting) {
|
|
13818
|
-
(_a = binding.value) == null ? void 0 : _a.trigger("expo");
|
|
13819
|
-
observer2.unobserve(entry.target);
|
|
13820
|
-
}
|
|
13821
|
-
});
|
|
13822
|
-
}, { threshold: 0 });
|
|
13823
|
-
observer.observe(el);
|
|
13824
|
-
},
|
|
13825
|
-
beforeUnmount() {
|
|
13826
|
-
}
|
|
13827
|
-
};
|
|
13828
|
-
const _hoisted_1$s = ["src"];
|
|
13829
|
-
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13830
|
-
...{
|
|
13831
|
-
name: "ChatBot"
|
|
13832
|
-
},
|
|
13833
|
-
__name: "ChatBot",
|
|
13834
|
-
setup(__props) {
|
|
13835
|
-
const layoutConfig2 = useLayoutConfig();
|
|
13836
|
-
const tianqiButtonConfig = ref({
|
|
13837
|
-
img: "",
|
|
13838
|
-
img_black: "",
|
|
13839
|
-
url: ""
|
|
13840
|
-
});
|
|
13841
|
-
const request = inject("request");
|
|
13842
|
-
const useReport2 = inject("useReport");
|
|
13843
|
-
const API = asideRequest(request);
|
|
13844
|
-
const loaded = ref(false);
|
|
13845
|
-
const handleChatBotExpo = (type) => {
|
|
13846
|
-
useReport2(REPO_EVENT.SHOW, { module_name: ASIDE_MENU_REPO.CHATBOTEXPO });
|
|
13847
|
-
};
|
|
13848
|
-
const getTianqiRouteConfig = async () => {
|
|
13849
|
-
var _a;
|
|
13850
|
-
try {
|
|
13851
|
-
const res = await API.getTianqiRouteConfig();
|
|
13852
|
-
const data = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || {};
|
|
13853
|
-
const { top_button: topButton } = data;
|
|
13854
|
-
if (topButton) {
|
|
13855
|
-
tianqiButtonConfig.value = {
|
|
13856
|
-
img: topButton.img,
|
|
13857
|
-
img_black: topButton.img_black,
|
|
13858
|
-
url: topButton.url
|
|
13859
|
-
};
|
|
13860
|
-
}
|
|
13861
|
-
loaded.value = true;
|
|
13862
|
-
} catch (error) {
|
|
13863
|
-
console.error(error);
|
|
13864
|
-
loaded.value = true;
|
|
13865
|
-
}
|
|
13866
|
-
};
|
|
13867
|
-
getTianqiRouteConfig();
|
|
13868
|
-
const logoConfig = getCurrentLogoMap();
|
|
13869
|
-
const TIANQI_LOGO_WHITE = logoConfig.tianqiLogoLocalWhite;
|
|
13870
|
-
const TIANQI_LOGO_BLACK = logoConfig.tianqiLogoLocalDark;
|
|
13871
|
-
const logo = computed(() => {
|
|
13872
|
-
var _a, _b;
|
|
13873
|
-
if (tianqiButtonConfig.value.img && ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode"))) {
|
|
13874
|
-
return currentTheme.value === ThemeType.BLACK ? tianqiButtonConfig.value.img_black : tianqiButtonConfig.value.img;
|
|
13875
|
-
}
|
|
13876
|
-
return currentTheme.value === ThemeType.BLACK ? TIANQI_LOGO_BLACK : TIANQI_LOGO_WHITE;
|
|
13877
|
-
});
|
|
13878
|
-
const customClass = computed(() => {
|
|
13879
|
-
return {
|
|
13880
|
-
"custom": tianqiButtonConfig.value.img
|
|
13881
|
-
};
|
|
13882
|
-
});
|
|
13883
|
-
function goPage() {
|
|
13884
|
-
var _a, _b;
|
|
13885
|
-
let url = "";
|
|
13886
|
-
if (!tianqiButtonConfig.value.url) {
|
|
13887
|
-
url = transformUrlWithSpecialPrefix({ url: layoutConfig2.VITE_HOST_TIANQI, host: layoutConfig2.VITE_HOST }) + "?utm_source=toolbar";
|
|
13888
|
-
} else {
|
|
13889
|
-
url = transformUrl(tianqiButtonConfig.value.url) + "?utm_source=toolbar";
|
|
13890
|
-
}
|
|
13891
|
-
const isGitcodeHost = (_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode");
|
|
13892
|
-
if (url.includes("tianqi.pre")) {
|
|
13893
|
-
url = isGitcodeHost ? "https://pre-tianqi.gitcode.com" : "https://pre-tianqi.atomgit.com";
|
|
13894
|
-
} else if (url.includes("tianqi.test")) {
|
|
13895
|
-
url = isGitcodeHost ? "https://test-tianqi.gitcode.net" : "https://test-tianqi.atomgit.com";
|
|
13896
|
-
}
|
|
13897
|
-
useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.CHATBOTCLICK });
|
|
13898
|
-
window.open(url);
|
|
13899
|
-
}
|
|
13900
|
-
return (_ctx, _cache) => {
|
|
13901
|
-
return withDirectives((openBlock(), createElementBlock("div", {
|
|
13902
|
-
class: normalizeClass(["agent-tips", customClass.value]),
|
|
13903
|
-
onClick: withModifiers(goPage, ["stop"])
|
|
13904
|
-
}, [
|
|
13905
|
-
loaded.value ? (openBlock(), createElementBlock("img", {
|
|
13906
|
-
key: 0,
|
|
13907
|
-
src: logo.value,
|
|
13908
|
-
alt: "logo",
|
|
13909
|
-
class: "w-[108px] cursor-pointer"
|
|
13910
|
-
}, null, 8, _hoisted_1$s)) : createCommentVNode("", true)
|
|
13911
|
-
], 2)), [
|
|
13912
|
-
[unref(vElementExposure), { trigger: (type) => handleChatBotExpo() }]
|
|
13913
|
-
]);
|
|
13914
|
-
};
|
|
13915
|
-
}
|
|
13916
|
-
});
|
|
13917
|
-
const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
13918
|
-
const _hoisted_1$r = ["src"];
|
|
13919
|
-
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
13631
|
+
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
13632
|
+
const _hoisted_1$q = ["src"];
|
|
13633
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
13920
13634
|
__name: "ClaimPower",
|
|
13921
13635
|
props: {
|
|
13922
13636
|
config: {}
|
|
@@ -13939,14 +13653,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13939
13653
|
createElementVNode("img", {
|
|
13940
13654
|
src: _ctx.config.logo_url,
|
|
13941
13655
|
alt: "claim power"
|
|
13942
|
-
}, null, 8, _hoisted_1$
|
|
13656
|
+
}, null, 8, _hoisted_1$q)
|
|
13943
13657
|
])) : createCommentVNode("", true);
|
|
13944
13658
|
};
|
|
13945
13659
|
}
|
|
13946
13660
|
});
|
|
13947
|
-
const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13948
|
-
const _hoisted_1$
|
|
13949
|
-
const _sfc_main$
|
|
13661
|
+
const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
13662
|
+
const _hoisted_1$p = { class: "devui-select__item g-option-link" };
|
|
13663
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
13950
13664
|
...{
|
|
13951
13665
|
name: "OptionLink"
|
|
13952
13666
|
},
|
|
@@ -13964,7 +13678,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
13964
13678
|
},
|
|
13965
13679
|
setup(__props) {
|
|
13966
13680
|
return (_ctx, _cache) => {
|
|
13967
|
-
return openBlock(), createElementBlock("li", _hoisted_1$
|
|
13681
|
+
return openBlock(), createElementBlock("li", _hoisted_1$p, [
|
|
13968
13682
|
createVNode(GLink, normalizeProps(guardReactiveProps(_ctx.$props)), {
|
|
13969
13683
|
default: withCtx(() => [
|
|
13970
13684
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -13975,7 +13689,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
13975
13689
|
};
|
|
13976
13690
|
}
|
|
13977
13691
|
});
|
|
13978
|
-
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13692
|
+
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
13979
13693
|
var aes = { exports: {} };
|
|
13980
13694
|
function commonjsRequire(path) {
|
|
13981
13695
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -15728,15 +15442,11 @@ function requireCipherCore() {
|
|
|
15728
15442
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
15729
15443
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
15730
15444
|
*/
|
|
15731
|
-
execute: function(password, keySize, ivSize, salt
|
|
15445
|
+
execute: function(password, keySize, ivSize, salt) {
|
|
15732
15446
|
if (!salt) {
|
|
15733
15447
|
salt = WordArray.random(64 / 8);
|
|
15734
15448
|
}
|
|
15735
|
-
|
|
15736
|
-
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
15737
|
-
} else {
|
|
15738
|
-
var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
|
|
15739
|
-
}
|
|
15449
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
15740
15450
|
var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
|
|
15741
15451
|
key.sigBytes = keySize * 4;
|
|
15742
15452
|
return CipherParams.create({ key, iv, salt });
|
|
@@ -15770,7 +15480,7 @@ function requireCipherCore() {
|
|
|
15770
15480
|
*/
|
|
15771
15481
|
encrypt: function(cipher, message, password, cfg) {
|
|
15772
15482
|
cfg = this.cfg.extend(cfg);
|
|
15773
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize
|
|
15483
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
|
|
15774
15484
|
cfg.iv = derivedParams.iv;
|
|
15775
15485
|
var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
|
|
15776
15486
|
ciphertext.mixIn(derivedParams);
|
|
@@ -15796,7 +15506,7 @@ function requireCipherCore() {
|
|
|
15796
15506
|
decrypt: function(cipher, ciphertext, password, cfg) {
|
|
15797
15507
|
cfg = this.cfg.extend(cfg);
|
|
15798
15508
|
ciphertext = this._parse(ciphertext, cfg.format);
|
|
15799
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt
|
|
15509
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
|
|
15800
15510
|
cfg.iv = derivedParams.iv;
|
|
15801
15511
|
var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
|
|
15802
15512
|
return plaintext;
|
|
@@ -15979,7 +15689,7 @@ var encUtf8 = { exports: {} };
|
|
|
15979
15689
|
})(encUtf8);
|
|
15980
15690
|
var encUtf8Exports = encUtf8.exports;
|
|
15981
15691
|
const Utf8 = /* @__PURE__ */ getDefaultExportFromCjs(encUtf8Exports);
|
|
15982
|
-
const layoutConfig$
|
|
15692
|
+
const layoutConfig$1 = useLayoutConfig();
|
|
15983
15693
|
function headRequest(request) {
|
|
15984
15694
|
return {
|
|
15985
15695
|
getSearchHot() {
|
|
@@ -16219,8 +15929,8 @@ function headRequest(request) {
|
|
|
16219
15929
|
},
|
|
16220
15930
|
// 密码登录
|
|
16221
15931
|
toLogin(data) {
|
|
16222
|
-
const key = Utf8.parse(layoutConfig$
|
|
16223
|
-
const iv = Utf8.parse(layoutConfig$
|
|
15932
|
+
const key = Utf8.parse(layoutConfig$1.VITE_SECRET_KEY);
|
|
15933
|
+
const iv = Utf8.parse(layoutConfig$1.VITE_SECRET_IV);
|
|
16224
15934
|
const cryptoCode = AES.encrypt(data.password, key, {
|
|
16225
15935
|
iv,
|
|
16226
15936
|
padding: Pkcs7
|
|
@@ -16349,7 +16059,7 @@ function headRequest(request) {
|
|
|
16349
16059
|
}
|
|
16350
16060
|
};
|
|
16351
16061
|
}
|
|
16352
|
-
const _sfc_main$
|
|
16062
|
+
const _sfc_main$u = /* @__PURE__ */ Object.assign({
|
|
16353
16063
|
name: "Create"
|
|
16354
16064
|
}, {
|
|
16355
16065
|
__name: "index",
|
|
@@ -16440,8 +16150,8 @@ const _sfc_main$v = /* @__PURE__ */ Object.assign({
|
|
|
16440
16150
|
};
|
|
16441
16151
|
}
|
|
16442
16152
|
});
|
|
16443
|
-
const Create = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16444
|
-
const _sfc_main$
|
|
16153
|
+
const Create = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16154
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
16445
16155
|
...{
|
|
16446
16156
|
name: "DocumentCenter"
|
|
16447
16157
|
},
|
|
@@ -16455,19 +16165,19 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16455
16165
|
return openBlock(), createBlock(GLink, {
|
|
16456
16166
|
variant: "text",
|
|
16457
16167
|
class: normalizeClass(["g-toolbar-docs", _ctx.whiteColor ? "white" : "black"]),
|
|
16458
|
-
href:
|
|
16168
|
+
href: "https://docs.gitcode.com/docs/help/home/ai-community/",
|
|
16459
16169
|
target: "_blank"
|
|
16460
16170
|
}, {
|
|
16461
16171
|
default: withCtx(() => [
|
|
16462
16172
|
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.aihub.documentCenter")), 1)
|
|
16463
16173
|
]),
|
|
16464
16174
|
_: 1
|
|
16465
|
-
}, 8, ["class"
|
|
16175
|
+
}, 8, ["class"]);
|
|
16466
16176
|
};
|
|
16467
16177
|
}
|
|
16468
16178
|
});
|
|
16469
|
-
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16470
|
-
const _sfc_main$
|
|
16179
|
+
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16180
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
16471
16181
|
...{
|
|
16472
16182
|
name: "Notice"
|
|
16473
16183
|
},
|
|
@@ -16502,7 +16212,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
16502
16212
|
});
|
|
16503
16213
|
return (_ctx, _cache) => {
|
|
16504
16214
|
return openBlock(), createBlock(GLink, {
|
|
16505
|
-
href: `${unref(
|
|
16215
|
+
href: `${unref(layoutConfig2).VITE_HOST}/notice?message_sate=countNotRead`
|
|
16506
16216
|
}, {
|
|
16507
16217
|
default: withCtx(() => [
|
|
16508
16218
|
createVNode(unref(Badge), {
|
|
@@ -16527,20 +16237,20 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
16527
16237
|
};
|
|
16528
16238
|
}
|
|
16529
16239
|
});
|
|
16530
|
-
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16531
|
-
const _hoisted_1$
|
|
16240
|
+
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16241
|
+
const _hoisted_1$o = {
|
|
16532
16242
|
key: 0,
|
|
16533
16243
|
class: "user-level-avatar-badge"
|
|
16534
16244
|
};
|
|
16535
|
-
const _hoisted_2$
|
|
16536
|
-
const _hoisted_3$
|
|
16537
|
-
const _hoisted_4$
|
|
16245
|
+
const _hoisted_2$i = { class: "flex items-center font-medium gap-[4px]" };
|
|
16246
|
+
const _hoisted_3$f = ["src"];
|
|
16247
|
+
const _hoisted_4$c = { class: "level-name" };
|
|
16538
16248
|
const _hoisted_5$8 = { class: "level-icon" };
|
|
16539
16249
|
const _hoisted_6$7 = ["src"];
|
|
16540
16250
|
const _hoisted_7$4 = { class: "custom-btn" };
|
|
16541
16251
|
const _hoisted_8$4 = { class: "flex items-center justify-center" };
|
|
16542
16252
|
const maxLevel = 3;
|
|
16543
|
-
const _sfc_main$
|
|
16253
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
16544
16254
|
...{ name: "UserLevel" },
|
|
16545
16255
|
__name: "UserLevel",
|
|
16546
16256
|
props: ["accountInfo"],
|
|
@@ -16576,7 +16286,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
16576
16286
|
if (router2.hasRoute("settingPoints")) {
|
|
16577
16287
|
router2.push("/setting/points");
|
|
16578
16288
|
} else {
|
|
16579
|
-
location.href = `${
|
|
16289
|
+
location.href = `${layoutConfig2.VITE_HOST}/setting/points`;
|
|
16580
16290
|
}
|
|
16581
16291
|
};
|
|
16582
16292
|
const levelInfo = computed(() => {
|
|
@@ -16591,14 +16301,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
16591
16301
|
class: normalizeClass(["user-level cursor-pointer", { [unref(ThemeType).BLACK]: unref(currentTheme) === unref(ThemeType).BLACK }]),
|
|
16592
16302
|
onClick: handleUpgrade
|
|
16593
16303
|
}, [
|
|
16594
|
-
__props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
16595
|
-
createElementVNode("div", _hoisted_2$
|
|
16304
|
+
__props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$o)) : createCommentVNode("", true),
|
|
16305
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
16596
16306
|
createElementVNode("img", {
|
|
16597
16307
|
class: "level-avatar",
|
|
16598
16308
|
src: levelInfo.value.avatar,
|
|
16599
16309
|
alt: ""
|
|
16600
|
-
}, null, 8, _hoisted_3$
|
|
16601
|
-
createElementVNode("div", _hoisted_4$
|
|
16310
|
+
}, null, 8, _hoisted_3$f),
|
|
16311
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
16602
16312
|
createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
|
|
16603
16313
|
createElementVNode("div", _hoisted_5$8, [
|
|
16604
16314
|
createElementVNode("img", {
|
|
@@ -16615,23 +16325,15 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
16615
16325
|
};
|
|
16616
16326
|
}
|
|
16617
16327
|
});
|
|
16618
|
-
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16619
|
-
const _hoisted_1$
|
|
16620
|
-
const _hoisted_2$
|
|
16621
|
-
const _hoisted_3$
|
|
16622
|
-
const _hoisted_4$
|
|
16623
|
-
const _sfc_main$
|
|
16328
|
+
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16329
|
+
const _hoisted_1$n = { class: "g-user-drawer-info-list pl-[16px]" };
|
|
16330
|
+
const _hoisted_2$h = { class: "max-w-[200px]" };
|
|
16331
|
+
const _hoisted_3$e = ["title"];
|
|
16332
|
+
const _hoisted_4$b = ["title"];
|
|
16333
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
16624
16334
|
__name: "UserAvatarMenu",
|
|
16625
|
-
props:
|
|
16626
|
-
|
|
16627
|
-
accountInfo: {},
|
|
16628
|
-
loginOutFinish: { type: Function },
|
|
16629
|
-
inAIHub: { type: Boolean },
|
|
16630
|
-
independence: { type: Boolean },
|
|
16631
|
-
userMenus: {}
|
|
16632
|
-
},
|
|
16633
|
-
emits: ["link-click"],
|
|
16634
|
-
setup(__props, { emit: __emit }) {
|
|
16335
|
+
props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub", "independence", "userMenus"],
|
|
16336
|
+
setup(__props) {
|
|
16635
16337
|
const layoutConfig2 = useLayoutConfig();
|
|
16636
16338
|
const API = headRequest(inject("request"));
|
|
16637
16339
|
const repoInfo = inject("repoInfo");
|
|
@@ -16639,11 +16341,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16639
16341
|
const userInfo = inject("userInfo");
|
|
16640
16342
|
const { t: t2, locale: locale2 } = i18n.global;
|
|
16641
16343
|
const props = __props;
|
|
16642
|
-
const emit = __emit;
|
|
16643
16344
|
const router2 = useRouter();
|
|
16644
16345
|
const route = useRoute();
|
|
16645
16346
|
const haveVisited = ref(false);
|
|
16646
|
-
const menuContainerRef = ref(null);
|
|
16647
16347
|
const clearSurveyDelayStatus = () => {
|
|
16648
16348
|
const surveyDelay = localStorage$2.getItem(HARMONY_VISITED_DATE);
|
|
16649
16349
|
if (surveyDelay === "true") {
|
|
@@ -16651,7 +16351,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16651
16351
|
}
|
|
16652
16352
|
localStorage$2.removeItem(HARMONY_SURVEY_DELAY);
|
|
16653
16353
|
};
|
|
16654
|
-
const
|
|
16354
|
+
const logout = async () => {
|
|
16655
16355
|
var _a, _b;
|
|
16656
16356
|
const res = await API.toLogout();
|
|
16657
16357
|
clearSurveyDelayStatus();
|
|
@@ -16689,7 +16389,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16689
16389
|
...params
|
|
16690
16390
|
};
|
|
16691
16391
|
};
|
|
16692
|
-
const
|
|
16392
|
+
const blockList = computed(() => {
|
|
16393
|
+
if (props.independence) {
|
|
16394
|
+
return hrefList.value;
|
|
16395
|
+
}
|
|
16396
|
+
return routerHref.value;
|
|
16397
|
+
});
|
|
16398
|
+
const menueDataFormat = (data) => {
|
|
16693
16399
|
data.forEach((item) => {
|
|
16694
16400
|
if (Array.isArray(item)) {
|
|
16695
16401
|
item.forEach((item2) => {
|
|
@@ -16701,13 +16407,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16701
16407
|
});
|
|
16702
16408
|
return data;
|
|
16703
16409
|
};
|
|
16704
|
-
const
|
|
16410
|
+
const userMenusFormat = computed(() => {
|
|
16705
16411
|
if (props.userMenus) {
|
|
16706
|
-
return
|
|
16412
|
+
return menueDataFormat(props.userMenus);
|
|
16707
16413
|
}
|
|
16708
16414
|
return [];
|
|
16709
16415
|
});
|
|
16710
|
-
const
|
|
16416
|
+
const baseRouterMeus = [
|
|
16711
16417
|
[
|
|
16712
16418
|
{ id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", to: getRouterLink("dashboard") },
|
|
16713
16419
|
{ id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", to: getRouterLink({ name: "settingOrganization" }) },
|
|
@@ -16718,20 +16424,20 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16718
16424
|
],
|
|
16719
16425
|
[
|
|
16720
16426
|
{ id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", to: getRouterLink("setting") },
|
|
16721
|
-
{ id: "news", label: t2("gitCodeLayout.home.informationCenter"), icon: "gt-plane-consulting", target: "_blank", href: `${
|
|
16722
|
-
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href:
|
|
16427
|
+
{ id: "news", label: t2("gitCodeLayout.home.informationCenter"), icon: "gt-plane-consulting", target: "_blank", href: `${INFORMATION_CENTER_URL}?lang=${(locale2 == null ? void 0 : locale2.value) || "zh"}` },
|
|
16428
|
+
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: HELP_DOCS_URL }
|
|
16723
16429
|
]
|
|
16724
16430
|
];
|
|
16725
|
-
const
|
|
16431
|
+
const routerHref = computed(() => {
|
|
16726
16432
|
var _a;
|
|
16727
16433
|
return [
|
|
16728
|
-
...((_a =
|
|
16434
|
+
...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseRouterMeus,
|
|
16729
16435
|
[
|
|
16730
|
-
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action:
|
|
16436
|
+
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
|
|
16731
16437
|
]
|
|
16732
16438
|
];
|
|
16733
16439
|
});
|
|
16734
|
-
const
|
|
16440
|
+
const baseHrefMeus = [
|
|
16735
16441
|
[
|
|
16736
16442
|
{ id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", link: "/dashboard" },
|
|
16737
16443
|
{ id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", link: "/setting/organization" },
|
|
@@ -16742,61 +16448,28 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16742
16448
|
],
|
|
16743
16449
|
[
|
|
16744
16450
|
{ id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", link: "/setting" },
|
|
16745
|
-
{ id: "news", label: t2("gitCodeLayout.home.informationCenter"), icon: "gt-plane-consulting", target: "_blank", href: `${
|
|
16746
|
-
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href:
|
|
16451
|
+
{ id: "news", label: t2("gitCodeLayout.home.informationCenter"), icon: "gt-plane-consulting", target: "_blank", href: `${INFORMATION_CENTER_URL}?lang=${(locale2 == null ? void 0 : locale2.value) || "zh"}` },
|
|
16452
|
+
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href: HELP_DOCS_URL }
|
|
16747
16453
|
]
|
|
16748
16454
|
];
|
|
16749
16455
|
const hrefList = computed(() => {
|
|
16750
16456
|
var _a;
|
|
16751
16457
|
return [
|
|
16752
|
-
...((_a =
|
|
16458
|
+
...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseHrefMeus,
|
|
16753
16459
|
[
|
|
16754
|
-
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action:
|
|
16460
|
+
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
|
|
16755
16461
|
]
|
|
16756
16462
|
];
|
|
16757
16463
|
});
|
|
16758
|
-
const userMenuList = computed(() => {
|
|
16759
|
-
if (props.independence) {
|
|
16760
|
-
return hrefList.value;
|
|
16761
|
-
}
|
|
16762
|
-
return routerMenuList.value;
|
|
16763
|
-
});
|
|
16764
16464
|
function handleClick(item) {
|
|
16765
16465
|
if (item == null ? void 0 : item.action) {
|
|
16766
16466
|
item.action();
|
|
16767
16467
|
}
|
|
16768
16468
|
if (item == null ? void 0 : item.link) {
|
|
16769
16469
|
const link = `${layoutConfig2.VITE_HOST}${item.link}`;
|
|
16770
|
-
|
|
16771
|
-
setTimeout(() => {
|
|
16772
|
-
window.open(link, "_self");
|
|
16773
|
-
}, 100);
|
|
16470
|
+
window.open(link, "_self");
|
|
16774
16471
|
}
|
|
16775
16472
|
}
|
|
16776
|
-
const handleLinkClick = (e) => {
|
|
16777
|
-
const target = e.target;
|
|
16778
|
-
const linkElement = target.closest("a.g-link, .g-link");
|
|
16779
|
-
if (!linkElement) return;
|
|
16780
|
-
const isDisabled = linkElement.hasAttribute("disabled") || linkElement.getAttribute("disabled") === "true" || linkElement.classList.contains("noPointer");
|
|
16781
|
-
if (isDisabled) return;
|
|
16782
|
-
const href = linkElement.getAttribute("href");
|
|
16783
|
-
const to = linkElement.getAttribute("to");
|
|
16784
|
-
const isValidHref = href && href !== "javascript:void(0)" && href !== "#" && href !== "";
|
|
16785
|
-
const isValidTo = to && to !== "";
|
|
16786
|
-
if (isValidHref || isValidTo) {
|
|
16787
|
-
emit("link-click");
|
|
16788
|
-
}
|
|
16789
|
-
};
|
|
16790
|
-
onMounted(() => {
|
|
16791
|
-
if (menuContainerRef.value) {
|
|
16792
|
-
menuContainerRef.value.addEventListener("click", handleLinkClick, true);
|
|
16793
|
-
}
|
|
16794
|
-
});
|
|
16795
|
-
onBeforeUnmount(() => {
|
|
16796
|
-
if (menuContainerRef.value) {
|
|
16797
|
-
menuContainerRef.value.removeEventListener("click", handleLinkClick, true);
|
|
16798
|
-
}
|
|
16799
|
-
});
|
|
16800
16473
|
const getVisit = async (value) => {
|
|
16801
16474
|
const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
|
|
16802
16475
|
const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
|
|
@@ -16807,33 +16480,30 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16807
16480
|
};
|
|
16808
16481
|
getVisit();
|
|
16809
16482
|
return (_ctx, _cache) => {
|
|
16810
|
-
return openBlock(), createElementBlock("div",
|
|
16811
|
-
ref_key: "menuContainerRef",
|
|
16812
|
-
ref: menuContainerRef
|
|
16813
|
-
}, [
|
|
16483
|
+
return openBlock(), createElementBlock("div", null, [
|
|
16814
16484
|
createVNode(GLink, {
|
|
16815
16485
|
class: "g-user-drawer-info pl-[32px] pr-[16px] cursor-pointer",
|
|
16816
|
-
href: `${unref(layoutConfig2).VITE_HOST}/${
|
|
16486
|
+
href: `${unref(layoutConfig2).VITE_HOST}/${__props.accountInfo.username}`,
|
|
16817
16487
|
key: "myPage",
|
|
16818
|
-
target:
|
|
16488
|
+
target: __props.isChatBot ? "_blank" : ""
|
|
16819
16489
|
}, {
|
|
16820
16490
|
default: withCtx(() => [
|
|
16821
|
-
createVNode(_sfc_main$
|
|
16822
|
-
name:
|
|
16823
|
-
src:
|
|
16491
|
+
createVNode(_sfc_main$z, {
|
|
16492
|
+
name: __props.accountInfo.nickname,
|
|
16493
|
+
src: __props.accountInfo.avatar,
|
|
16824
16494
|
width: 52,
|
|
16825
16495
|
height: 52
|
|
16826
16496
|
}, null, 8, ["name", "src"]),
|
|
16827
|
-
createElementVNode("div", _hoisted_1$
|
|
16828
|
-
createElementVNode("div", _hoisted_2$
|
|
16497
|
+
createElementVNode("div", _hoisted_1$n, [
|
|
16498
|
+
createElementVNode("div", _hoisted_2$h, [
|
|
16829
16499
|
createElementVNode("p", {
|
|
16830
16500
|
class: "g-user-drawer-info-list-name ellipsis",
|
|
16831
|
-
title:
|
|
16832
|
-
}, toDisplayString$1(
|
|
16501
|
+
title: __props.accountInfo.nickname
|
|
16502
|
+
}, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$e),
|
|
16833
16503
|
createElementVNode("p", {
|
|
16834
16504
|
class: "g-user-drawer-info-list-id ellipsis",
|
|
16835
|
-
title:
|
|
16836
|
-
}, "@" + toDisplayString$1(
|
|
16505
|
+
title: __props.accountInfo.username
|
|
16506
|
+
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$b)
|
|
16837
16507
|
]),
|
|
16838
16508
|
createVNode(GIcon, {
|
|
16839
16509
|
name: "gt-line-right",
|
|
@@ -16843,13 +16513,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16843
16513
|
]),
|
|
16844
16514
|
_: 1
|
|
16845
16515
|
}, 8, ["href", "target"]),
|
|
16846
|
-
!
|
|
16516
|
+
!__props.inAIHub ? (openBlock(), createBlock(UserLevel, {
|
|
16847
16517
|
key: 0,
|
|
16848
|
-
accountInfo:
|
|
16518
|
+
accountInfo: __props.accountInfo
|
|
16849
16519
|
}, null, 8, ["accountInfo"])) : createCommentVNode("", true),
|
|
16850
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
16520
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(blockList.value, (block, index2) => {
|
|
16851
16521
|
return openBlock(), createElementBlock("div", {
|
|
16852
|
-
class: normalizeClass(["g-user-drawer-block", { "!pt-[0px]": index2 === 0 &&
|
|
16522
|
+
class: normalizeClass(["g-user-drawer-block", { "!pt-[0px]": index2 === 0 && __props.inAIHub }]),
|
|
16853
16523
|
key: index2
|
|
16854
16524
|
}, [
|
|
16855
16525
|
block.component ? (openBlock(), createBlock(resolveDynamicComponent(block.component), {
|
|
@@ -16860,7 +16530,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16860
16530
|
ref_for: true
|
|
16861
16531
|
}, item, {
|
|
16862
16532
|
onClick: ($event) => handleClick(item),
|
|
16863
|
-
target:
|
|
16533
|
+
target: __props.isChatBot && !item.action ? "_blank" : item.target || ""
|
|
16864
16534
|
}), {
|
|
16865
16535
|
default: withCtx(() => [
|
|
16866
16536
|
item.icon ? (openBlock(), createBlock(GIcon, {
|
|
@@ -16875,24 +16545,24 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16875
16545
|
}), 128))
|
|
16876
16546
|
], 2);
|
|
16877
16547
|
}), 128))
|
|
16878
|
-
]
|
|
16548
|
+
]);
|
|
16879
16549
|
};
|
|
16880
16550
|
}
|
|
16881
16551
|
});
|
|
16882
|
-
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16883
|
-
const _hoisted_1$
|
|
16884
|
-
const _hoisted_2$
|
|
16552
|
+
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16553
|
+
const _hoisted_1$m = { class: "g-user-avatar flex-center ml-1" };
|
|
16554
|
+
const _hoisted_2$g = {
|
|
16885
16555
|
key: 0,
|
|
16886
16556
|
class: "g-user-avatar__badge"
|
|
16887
16557
|
};
|
|
16888
|
-
const _hoisted_3$
|
|
16889
|
-
const _hoisted_4$
|
|
16558
|
+
const _hoisted_3$d = { class: "g-user-avatar flex-center ml-1" };
|
|
16559
|
+
const _hoisted_4$a = {
|
|
16890
16560
|
key: 0,
|
|
16891
16561
|
class: "g-user-avatar__badge"
|
|
16892
16562
|
};
|
|
16893
16563
|
const _hoisted_5$7 = { class: "g-user-drawer" };
|
|
16894
16564
|
const _hoisted_6$6 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
|
|
16895
|
-
const _sfc_main$
|
|
16565
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
16896
16566
|
...{
|
|
16897
16567
|
name: "UserAvatar"
|
|
16898
16568
|
},
|
|
@@ -16902,27 +16572,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16902
16572
|
const { isMobile } = usePageResize();
|
|
16903
16573
|
const drawerVisible = ref(false);
|
|
16904
16574
|
const userInfo = inject("userInfo");
|
|
16905
|
-
const
|
|
16906
|
-
|
|
16907
|
-
|
|
16908
|
-
} catch {
|
|
16909
|
-
return {};
|
|
16910
|
-
}
|
|
16911
|
-
};
|
|
16912
|
-
const accountInfo = ref(userInfo.value || getLocalStorageUserInfo());
|
|
16575
|
+
const accountInfo = computed(() => {
|
|
16576
|
+
return userInfo.value || JSON.parse(localStorage$2.getItem("userInfo") || "{}");
|
|
16577
|
+
});
|
|
16913
16578
|
const haveVisited = ref(false);
|
|
16914
16579
|
const useReport2 = inject("useReport");
|
|
16915
|
-
watch(
|
|
16916
|
-
() => userInfo.value,
|
|
16917
|
-
(newValue) => {
|
|
16918
|
-
if (newValue) {
|
|
16919
|
-
accountInfo.value = newValue;
|
|
16920
|
-
} else {
|
|
16921
|
-
accountInfo.value = getLocalStorageUserInfo();
|
|
16922
|
-
}
|
|
16923
|
-
},
|
|
16924
|
-
{ immediate: true }
|
|
16925
|
-
);
|
|
16926
16580
|
const handleToggle = (status) => {
|
|
16927
16581
|
visitedClick();
|
|
16928
16582
|
const params = { need_tips: accountInfo.value.need_tips, prompt_style: accountInfo.value.style_tips };
|
|
@@ -16974,21 +16628,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16974
16628
|
const appDom = getScrollDom();
|
|
16975
16629
|
appDom && (appDom.style.overflow = status ? "hidden" : "unset");
|
|
16976
16630
|
};
|
|
16977
|
-
const resetOverflow = () => {
|
|
16978
|
-
const appDom = getScrollDom();
|
|
16979
|
-
if (appDom && appDom.style.overflow === "hidden") {
|
|
16980
|
-
appDom.style.overflow = "unset";
|
|
16981
|
-
}
|
|
16982
|
-
};
|
|
16983
16631
|
const handleStorageChange = (e) => {
|
|
16984
16632
|
if (e.key === "userInfo") {
|
|
16985
|
-
|
|
16986
|
-
try {
|
|
16987
|
-
accountInfo.value = JSON.parse(e.newValue || "{}");
|
|
16988
|
-
} catch {
|
|
16989
|
-
accountInfo.value = {};
|
|
16990
|
-
}
|
|
16991
|
-
}
|
|
16633
|
+
accountInfo.value = JSON.parse(e.newValue || "{}");
|
|
16992
16634
|
}
|
|
16993
16635
|
};
|
|
16994
16636
|
onMounted(() => {
|
|
@@ -16996,7 +16638,6 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16996
16638
|
});
|
|
16997
16639
|
onBeforeUnmount(() => {
|
|
16998
16640
|
window.removeEventListener("storage", handleStorageChange);
|
|
16999
|
-
resetOverflow();
|
|
17000
16641
|
});
|
|
17001
16642
|
return (_ctx, _cache) => {
|
|
17002
16643
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -17004,12 +16645,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17004
16645
|
key: 0,
|
|
17005
16646
|
onClick: _cache[0] || (_cache[0] = ($event) => drawerVisible.value = true)
|
|
17006
16647
|
}, [
|
|
17007
|
-
createElementVNode("div", _hoisted_1$
|
|
17008
|
-
createVNode(_sfc_main$
|
|
16648
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
16649
|
+
createVNode(_sfc_main$z, {
|
|
17009
16650
|
name: accountInfo.value.nickname,
|
|
17010
|
-
src:
|
|
16651
|
+
src: accountInfo.value.avatar
|
|
17011
16652
|
}, null, 8, ["name", "src"]),
|
|
17012
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
16653
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, _cache[4] || (_cache[4] = [
|
|
17013
16654
|
createElementVNode("div", null, null, -1)
|
|
17014
16655
|
]))) : createCommentVNode("", true)
|
|
17015
16656
|
])
|
|
@@ -17029,18 +16670,17 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17029
16670
|
accountInfo: accountInfo.value,
|
|
17030
16671
|
isChatBot: __props.isChatBot,
|
|
17031
16672
|
inAIHub: __props.inAIHub,
|
|
17032
|
-
userMenus: __props.userMenus
|
|
17033
|
-
onLinkClick: resetOverflow
|
|
16673
|
+
userMenus: __props.userMenus
|
|
17034
16674
|
}, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus"])
|
|
17035
16675
|
])
|
|
17036
16676
|
]),
|
|
17037
16677
|
default: withCtx(() => [
|
|
17038
|
-
createElementVNode("div", _hoisted_3$
|
|
17039
|
-
createVNode(_sfc_main$
|
|
16678
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
16679
|
+
createVNode(_sfc_main$z, {
|
|
17040
16680
|
name: accountInfo.value.nickname,
|
|
17041
|
-
src:
|
|
16681
|
+
src: accountInfo.value.avatar
|
|
17042
16682
|
}, null, 8, ["name", "src"]),
|
|
17043
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
16683
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$a, _cache[5] || (_cache[5] = [
|
|
17044
16684
|
createElementVNode("div", null, null, -1)
|
|
17045
16685
|
]))) : createCommentVNode("", true)
|
|
17046
16686
|
])
|
|
@@ -17071,8 +16711,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17071
16711
|
isChatBot: __props.isChatBot,
|
|
17072
16712
|
inAIHub: __props.inAIHub,
|
|
17073
16713
|
userMenus: __props.userMenus,
|
|
17074
|
-
onClick: _cache[2] || (_cache[2] = ($event) => drawerVisible.value = false)
|
|
17075
|
-
onLinkClick: resetOverflow
|
|
16714
|
+
onClick: _cache[2] || (_cache[2] = ($event) => drawerVisible.value = false)
|
|
17076
16715
|
}, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus"])
|
|
17077
16716
|
])
|
|
17078
16717
|
]),
|
|
@@ -17082,7 +16721,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17082
16721
|
};
|
|
17083
16722
|
}
|
|
17084
16723
|
});
|
|
17085
|
-
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16724
|
+
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17086
16725
|
var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
|
|
17087
16726
|
EVENT_NAME2["START_SEARCH"] = "开始搜索";
|
|
17088
16727
|
EVENT_NAME2["SEARCH"] = "搜索";
|
|
@@ -17170,16 +16809,16 @@ const setlocalVistHistory = (data, localType) => {
|
|
|
17170
16809
|
localStorage$2.setItem(storeName, JSON.stringify(cur));
|
|
17171
16810
|
return cur;
|
|
17172
16811
|
};
|
|
17173
|
-
const _hoisted_1$
|
|
17174
|
-
const _hoisted_2$
|
|
17175
|
-
const _hoisted_3$
|
|
17176
|
-
const _hoisted_4$
|
|
16812
|
+
const _hoisted_1$l = { class: "g-header-search-prefix" };
|
|
16813
|
+
const _hoisted_2$f = ["innerHTML"];
|
|
16814
|
+
const _hoisted_3$c = { class: "g-header-search-suffix-splitline" };
|
|
16815
|
+
const _hoisted_4$9 = { class: "g-header-search-suffix-suffixIcon" };
|
|
17177
16816
|
const _hoisted_5$6 = { class: "history-list" };
|
|
17178
16817
|
const _hoisted_6$5 = {
|
|
17179
16818
|
key: 1,
|
|
17180
16819
|
class: "aireposearch flex-1"
|
|
17181
16820
|
};
|
|
17182
|
-
const _sfc_main$
|
|
16821
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
17183
16822
|
__name: "index",
|
|
17184
16823
|
props: {
|
|
17185
16824
|
inAIHub: { type: Boolean },
|
|
@@ -17190,13 +16829,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17190
16829
|
var _a;
|
|
17191
16830
|
const layoutConfig2 = useLayoutConfig();
|
|
17192
16831
|
const { t: $t } = i18n.global;
|
|
17193
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17194
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17195
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17196
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17197
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17198
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17199
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
16832
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-B9JAWZW4.js"));
|
|
16833
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-7yZiQBUJ.js"));
|
|
16834
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C7IjYtrN.js"));
|
|
16835
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CwOfj3Ns.js"));
|
|
16836
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-i9otz0T8.js"));
|
|
16837
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DWI_yhce.js"));
|
|
16838
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Dotqca5n.js"));
|
|
17200
16839
|
const props = __props;
|
|
17201
16840
|
const repoInfo = inject("repoInfo");
|
|
17202
16841
|
const orgInfo = inject("orgInfo");
|
|
@@ -17434,7 +17073,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17434
17073
|
} else {
|
|
17435
17074
|
hotUrl = `${hotUrl}?source_module=search_box_hot_word`;
|
|
17436
17075
|
}
|
|
17437
|
-
window.open(
|
|
17076
|
+
window.open(hotUrl, "_blank");
|
|
17438
17077
|
return;
|
|
17439
17078
|
}
|
|
17440
17079
|
isSearchHistory.value = false;
|
|
@@ -17745,7 +17384,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17745
17384
|
ref: inputRef
|
|
17746
17385
|
}, {
|
|
17747
17386
|
prefix: withCtx(() => [
|
|
17748
|
-
createElementVNode("div", _hoisted_1$
|
|
17387
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
17749
17388
|
createVNode(GIcon, {
|
|
17750
17389
|
name: "gt-search",
|
|
17751
17390
|
class: "g-header-search-icon",
|
|
@@ -17768,7 +17407,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17768
17407
|
class: "quick-tips",
|
|
17769
17408
|
innerHTML: unref(quickTips),
|
|
17770
17409
|
onClick: onInputClick
|
|
17771
|
-
}, null, 8, _hoisted_2$
|
|
17410
|
+
}, null, 8, _hoisted_2$f)), [
|
|
17772
17411
|
[vShow, placeholderVisible.value]
|
|
17773
17412
|
]),
|
|
17774
17413
|
withDirectives(createVNode(unref(SearchPrefixTag), {
|
|
@@ -17801,10 +17440,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17801
17440
|
}, null, 512), [
|
|
17802
17441
|
[vShow, searchStr.value]
|
|
17803
17442
|
]),
|
|
17804
|
-
withDirectives(createElementVNode("span", _hoisted_3$
|
|
17443
|
+
withDirectives(createElementVNode("span", _hoisted_3$c, "|", 512), [
|
|
17805
17444
|
[vShow, searchStr.value]
|
|
17806
17445
|
]),
|
|
17807
|
-
createElementVNode("div", _hoisted_4$
|
|
17446
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
17808
17447
|
createVNode(GIcon, {
|
|
17809
17448
|
name: "search",
|
|
17810
17449
|
class: "g-header-search-icon",
|
|
@@ -17842,86 +17481,23 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17842
17481
|
};
|
|
17843
17482
|
}
|
|
17844
17483
|
});
|
|
17845
|
-
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17846
|
-
const
|
|
17847
|
-
|
|
17848
|
-
|
|
17849
|
-
|
|
17850
|
-
|
|
17851
|
-
|
|
17852
|
-
|
|
17853
|
-
|
|
17854
|
-
...{ name: "SiteAnnouncement" },
|
|
17855
|
-
__name: "SiteAnnouncement",
|
|
17856
|
-
setup(__props) {
|
|
17857
|
-
const { t: t2 } = i18n.global;
|
|
17858
|
-
const isShow = ref(SITE_STATUS.DISABLE);
|
|
17859
|
-
const handleClose = (type) => {
|
|
17860
|
-
isShow.value = false;
|
|
17861
|
-
{
|
|
17862
|
-
const now2 = /* @__PURE__ */ new Date();
|
|
17863
|
-
const today = `${now2.getFullYear()}-${String(now2.getMonth() + 1).padStart(2, "0")}-${String(now2.getDate()).padStart(2, "0")}`;
|
|
17864
|
-
localStorage$2.setItem(ANNOUNCE_STATUS_KEY, today);
|
|
17865
|
-
}
|
|
17866
|
-
};
|
|
17867
|
-
const migrationAnnounceUrl = computed(() => {
|
|
17868
|
-
var _a, _b;
|
|
17869
|
-
return ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.hostname) == null ? void 0 : _b.includes("gitcode")) ? "https://gitcode.com/gitcode" : "https://atomgit.com/gitcode";
|
|
17870
|
-
});
|
|
17871
|
-
const initShowStatus = () => {
|
|
17872
|
-
if (!SITE_STATUS.DISABLE) {
|
|
17873
|
-
isShow.value = false;
|
|
17874
|
-
return;
|
|
17875
|
-
}
|
|
17876
|
-
const now2 = /* @__PURE__ */ new Date();
|
|
17877
|
-
const deadline = /* @__PURE__ */ new Date("2025-12-31");
|
|
17878
|
-
if (now2 >= deadline) {
|
|
17879
|
-
isShow.value = false;
|
|
17880
|
-
localStorage$2.removeItem(ANNOUNCE_STATUS_KEY);
|
|
17881
|
-
return;
|
|
17882
|
-
}
|
|
17883
|
-
const announceStatus = localStorage$2.getItem(ANNOUNCE_STATUS_KEY);
|
|
17884
|
-
if (announceStatus) {
|
|
17885
|
-
const today = `${now2.getFullYear()}-${String(now2.getMonth() + 1).padStart(2, "0")}-${String(now2.getDate()).padStart(2, "0")}`;
|
|
17886
|
-
if (announceStatus === today) {
|
|
17887
|
-
isShow.value = false;
|
|
17484
|
+
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17485
|
+
const vElementExposure = {
|
|
17486
|
+
mounted(el, binding) {
|
|
17487
|
+
let observer = new IntersectionObserver(function(entries2, observer2) {
|
|
17488
|
+
entries2.forEach(function(entry) {
|
|
17489
|
+
var _a;
|
|
17490
|
+
if (entry.isIntersecting) {
|
|
17491
|
+
(_a = binding.value) == null ? void 0 : _a.trigger("expo");
|
|
17492
|
+
observer2.unobserve(entry.target);
|
|
17888
17493
|
}
|
|
17889
|
-
}
|
|
17890
|
-
};
|
|
17891
|
-
|
|
17892
|
-
|
|
17893
|
-
|
|
17894
|
-
return (_ctx, _cache) => {
|
|
17895
|
-
return isShow.value ? (openBlock(), createElementBlock("div", {
|
|
17896
|
-
key: 0,
|
|
17897
|
-
class: "announce-wrapper",
|
|
17898
|
-
style: normalizeStyle(`width: ${announcementWidth};margin-left: ${announcementLeft}`)
|
|
17899
|
-
}, [
|
|
17900
|
-
createElementVNode("div", _hoisted_1$l, [
|
|
17901
|
-
createElementVNode("div", _hoisted_2$g, [
|
|
17902
|
-
createVNode(GIcon, {
|
|
17903
|
-
name: "gt-plane-warningCircular-blue",
|
|
17904
|
-
size: "16",
|
|
17905
|
-
class: "mr-2"
|
|
17906
|
-
}),
|
|
17907
|
-
createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.content")), 1),
|
|
17908
|
-
createElementVNode("a", {
|
|
17909
|
-
class: "announce-detail",
|
|
17910
|
-
href: migrationAnnounceUrl.value
|
|
17911
|
-
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_3$f)
|
|
17912
|
-
])
|
|
17913
|
-
]),
|
|
17914
|
-
createElementVNode("div", _hoisted_4$a, [
|
|
17915
|
-
createElementVNode("span", {
|
|
17916
|
-
class: "announce-handle",
|
|
17917
|
-
onClick: _cache[0] || (_cache[0] = ($event) => handleClose())
|
|
17918
|
-
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.close")), 1)
|
|
17919
|
-
])
|
|
17920
|
-
], 4)) : createCommentVNode("", true);
|
|
17921
|
-
};
|
|
17494
|
+
});
|
|
17495
|
+
}, { threshold: 0 });
|
|
17496
|
+
observer.observe(el);
|
|
17497
|
+
},
|
|
17498
|
+
beforeUnmount() {
|
|
17922
17499
|
}
|
|
17923
|
-
}
|
|
17924
|
-
const SiteAnnouncement = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17500
|
+
};
|
|
17925
17501
|
const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, loginFuncOpts }) => {
|
|
17926
17502
|
const urlParams = new URLSearchParams(window.location.search);
|
|
17927
17503
|
const hasLoginParam = urlParams.get("isLogin") === "9";
|
|
@@ -17929,7 +17505,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17929
17505
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17930
17506
|
}
|
|
17931
17507
|
};
|
|
17932
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17508
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-CjRrZqmT.js"));
|
|
17933
17509
|
function clearNotice() {
|
|
17934
17510
|
if (localStorage$2.getItem("validator_email")) {
|
|
17935
17511
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17957,12 +17533,12 @@ function useNotification() {
|
|
|
17957
17533
|
};
|
|
17958
17534
|
}
|
|
17959
17535
|
const _hoisted_1$k = { class: "g-toolbar-left items-center allow-click-stop flex-[1] min-w-0" };
|
|
17960
|
-
const _hoisted_2$
|
|
17961
|
-
const _hoisted_3$
|
|
17536
|
+
const _hoisted_2$e = { key: 0 };
|
|
17537
|
+
const _hoisted_3$b = {
|
|
17962
17538
|
key: 1,
|
|
17963
17539
|
class: "search-avatar flex-1 flex items-center justify-center"
|
|
17964
17540
|
};
|
|
17965
|
-
const _hoisted_4$
|
|
17541
|
+
const _hoisted_4$8 = { class: "flex items-center gap-[8px]" };
|
|
17966
17542
|
const _hoisted_5$5 = {
|
|
17967
17543
|
key: 1,
|
|
17968
17544
|
class: "g-header-body"
|
|
@@ -18061,13 +17637,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18061
17637
|
const { isMobile } = usePageResize();
|
|
18062
17638
|
const { widthType } = usePageResize();
|
|
18063
17639
|
const headerRef = ref(null);
|
|
18064
|
-
const { height } = useElementSize(headerRef);
|
|
18065
|
-
const { setHeaderHeight } = useHeaderHeight();
|
|
18066
|
-
watch(height, (newHeight) => {
|
|
18067
|
-
if (newHeight) {
|
|
18068
|
-
setHeaderHeight(newHeight);
|
|
18069
|
-
}
|
|
18070
|
-
}, { immediate: true });
|
|
17640
|
+
const { height = 56 } = useElementSize(headerRef);
|
|
18071
17641
|
const GrayBgSceneValue = [SceneValue.repo, SceneValue.org, SceneValue.user];
|
|
18072
17642
|
const headerClassName = computed(() => {
|
|
18073
17643
|
var _a2, _b;
|
|
@@ -18314,13 +17884,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18314
17884
|
emit("resetPwdDirectlySuccess");
|
|
18315
17885
|
});
|
|
18316
17886
|
window.addEventListener("message", (event) => {
|
|
18317
|
-
var _a2, _b
|
|
17887
|
+
var _a2, _b;
|
|
18318
17888
|
const action = HandleParentWindowGetLoginInfo(props.request);
|
|
18319
|
-
if (((_a2 = event
|
|
18320
|
-
|
|
18321
|
-
}
|
|
18322
|
-
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_e = event.data) == null ? void 0 : _e.type)) {
|
|
18323
|
-
action[(_f = event.data) == null ? void 0 : _f.type](event);
|
|
17889
|
+
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_a2 = event.data) == null ? void 0 : _a2.type)) {
|
|
17890
|
+
action[(_b = event.data) == null ? void 0 : _b.type](event);
|
|
18324
17891
|
}
|
|
18325
17892
|
});
|
|
18326
17893
|
});
|
|
@@ -18334,21 +17901,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18334
17901
|
const handleCloseStickyNotice = () => {
|
|
18335
17902
|
closeStickyNotice.value = true;
|
|
18336
17903
|
};
|
|
18337
|
-
const logoConfig = getCurrentLogoMap();
|
|
18338
|
-
const logoStyle = computed(() => {
|
|
18339
|
-
const isBlackTheme = currentTheme.value === "black";
|
|
18340
|
-
let logoUrl = isBlackTheme ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
|
|
18341
|
-
if (inAIHub.value) {
|
|
18342
|
-
logoUrl = isBlackTheme ? logoConfig.aiLogoWhite : logoConfig.aiLogoDark;
|
|
18343
|
-
}
|
|
18344
|
-
const backgroundSize = isMobile.value ? "cover" : "contain";
|
|
18345
|
-
return {
|
|
18346
|
-
backgroundImage: `url(${logoUrl})`,
|
|
18347
|
-
backgroundRepeat: "no-repeat",
|
|
18348
|
-
backgroundPosition: "0 center",
|
|
18349
|
-
backgroundSize
|
|
18350
|
-
};
|
|
18351
|
-
});
|
|
18352
17904
|
return (_ctx, _cache) => {
|
|
18353
17905
|
var _a2, _b, _c, _d;
|
|
18354
17906
|
return openBlock(), createElementBlock("div", {
|
|
@@ -18376,7 +17928,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18376
17928
|
], 4)), [
|
|
18377
17929
|
[unref(vElementExposure), { trigger: (type) => handleStickyNoticeExpo() }]
|
|
18378
17930
|
]) : createCommentVNode("", true),
|
|
18379
|
-
createVNode(SiteAnnouncement),
|
|
18380
17931
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
18381
17932
|
class: "g-toolbar w-full overflow-hidden allow-click-stop",
|
|
18382
17933
|
onClick: withModifiers(handleToolbarClick, ["stop"])
|
|
@@ -18397,16 +17948,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18397
17948
|
})) : createCommentVNode("", true),
|
|
18398
17949
|
showNameAndIcon.value && _ctx.independence || inAIHub.value ? (openBlock(), createBlock(GLink, {
|
|
18399
17950
|
key: 1,
|
|
18400
|
-
class: normalizeClass(["g-toolbar-left-logo", [inAIHub.value ? "ai-logo" : ""]]),
|
|
18401
|
-
style: normalizeStyle(logoStyle.value),
|
|
17951
|
+
class: normalizeClass(["g-toolbar-left-logo", [unref(currentTheme), inAIHub.value ? "ai-logo" : ""]]),
|
|
18402
17952
|
href: inAIHub.value ? `${unref(layoutConfig2).VITE_AI_HOST}` : `${unref(layoutConfig2).VITE_HOST}?p=seo`
|
|
18403
|
-
}, null, 8, ["class", "
|
|
17953
|
+
}, null, 8, ["class", "href"])) : createCommentVNode("", true),
|
|
18404
17954
|
showNameAndIcon.value && !_ctx.independence ? (openBlock(), createBlock(GLink, {
|
|
18405
17955
|
key: 2,
|
|
18406
|
-
class: normalizeClass(["g-toolbar-left-logo", [inAIHub.value ? "ai-logo" : ""]]),
|
|
18407
|
-
style: normalizeStyle(logoStyle.value),
|
|
17956
|
+
class: normalizeClass(["g-toolbar-left-logo", [unref(currentTheme), inAIHub.value ? "ai-logo" : ""]]),
|
|
18408
17957
|
to: { name: "home" }
|
|
18409
|
-
}, null, 8, ["class"
|
|
17958
|
+
}, null, 8, ["class"])) : createCommentVNode("", true)
|
|
18410
17959
|
]),
|
|
18411
17960
|
isModuleVisible(unref(HeaderDisplayItem).CUSTOM_CONTENT) ? (openBlock(), createElementBlock("div", {
|
|
18412
17961
|
key: 0,
|
|
@@ -18430,10 +17979,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18430
17979
|
}, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
|
|
18431
17980
|
], 2)) : createCommentVNode("", true)
|
|
18432
17981
|
]),
|
|
18433
|
-
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
17982
|
+
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
|
|
18434
17983
|
renderSlot(_ctx.$slots, "headerMiddleRight", {}, void 0, true)
|
|
18435
17984
|
])) : createCommentVNode("", true),
|
|
18436
|
-
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
17985
|
+
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
18437
17986
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
18438
17987
|
(openBlock(), createBlock(Search, {
|
|
18439
17988
|
inAIHub: inAIHub.value,
|
|
@@ -18454,9 +18003,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18454
18003
|
createElementVNode("div", {
|
|
18455
18004
|
class: normalizeClass(["g-toolbar-right gap-[16px] flex-[1] justify-end max-md:gap-[12px] allow-click-stop", inAIHub.value ? "flex-none" : ""])
|
|
18456
18005
|
}, [
|
|
18457
|
-
createElementVNode("div", _hoisted_4$
|
|
18458
|
-
createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"])
|
|
18459
|
-
isModuleVisible(unref(HeaderDisplayItem).DEEPSEEK_BUTTON) ? (openBlock(), createBlock(ChatBot, { key: 0 })) : createCommentVNode("", true)
|
|
18006
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
18007
|
+
createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"])
|
|
18460
18008
|
]),
|
|
18461
18009
|
!_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
18462
18010
|
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -18529,7 +18077,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18529
18077
|
}
|
|
18530
18078
|
});
|
|
18531
18079
|
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18532
|
-
const layoutConfig$1 = useLayoutConfig();
|
|
18533
18080
|
const useConfigSide = (request, sceneValue) => {
|
|
18534
18081
|
const API = asideRequest(request);
|
|
18535
18082
|
const route = useRoute();
|
|
@@ -18586,30 +18133,10 @@ const useConfigSide = (request, sceneValue) => {
|
|
|
18586
18133
|
return Object.values(grouped);
|
|
18587
18134
|
};
|
|
18588
18135
|
const fetchArea = async () => {
|
|
18589
|
-
var _a
|
|
18136
|
+
var _a;
|
|
18590
18137
|
sideLoading.value = true;
|
|
18591
18138
|
const res = await API.getAsideConfig();
|
|
18592
|
-
|
|
18593
|
-
let processedUrl = item.left_menu_url;
|
|
18594
|
-
if (processedUrl == null ? void 0 : processedUrl.startsWith("https://competition.")) {
|
|
18595
|
-
processedUrl = replaceHost({ url: processedUrl, customHost: transformUrl(layoutConfig$1.VITE_COMPETITION_HOST) });
|
|
18596
|
-
} else if (processedUrl == null ? void 0 : processedUrl.startsWith("https://ai.")) {
|
|
18597
|
-
processedUrl = replaceHost({ url: processedUrl, customHost: transformUrl(layoutConfig$1.VITE_AI_HOST) });
|
|
18598
|
-
} else {
|
|
18599
|
-
processedUrl = transformUrl(processedUrl);
|
|
18600
|
-
}
|
|
18601
|
-
return {
|
|
18602
|
-
...item,
|
|
18603
|
-
left_menu_url: processedUrl,
|
|
18604
|
-
left_menu_logo: transformUrl(item.left_menu_logo),
|
|
18605
|
-
left_menu_logo_black: transformUrl(item.left_menu_logo_black),
|
|
18606
|
-
left_menu_logo_hover: transformUrl(item.left_menu_logo_hover),
|
|
18607
|
-
left_menu_logo_hover_black: transformUrl(item.left_menu_logo_hover_black)
|
|
18608
|
-
};
|
|
18609
|
-
});
|
|
18610
|
-
if (typeof window !== "undefined" && GUI_YANG_GITCODE_HOST && ((_b = window.location) == null ? void 0 : _b.origin.includes(GUI_YANG_GITCODE_HOST))) {
|
|
18611
|
-
asideList = asideList.filter((item) => !(item.left_menu_url && item.left_menu_url.includes("https://competition.gitcode")));
|
|
18612
|
-
}
|
|
18139
|
+
const asideList = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || [];
|
|
18613
18140
|
if (judgeIsShowAssetMenus(asideList)) {
|
|
18614
18141
|
area.value = groupByArea([...assetMenus.value, ...asideList]);
|
|
18615
18142
|
} else {
|
|
@@ -18679,8 +18206,8 @@ const loadUserProjectsInvolved = async (requestFn, params = {}) => {
|
|
|
18679
18206
|
var _a;
|
|
18680
18207
|
return {
|
|
18681
18208
|
key: item.name,
|
|
18682
|
-
web_url:
|
|
18683
|
-
avatar:
|
|
18209
|
+
web_url: item.web_url,
|
|
18210
|
+
avatar: item.avatar,
|
|
18684
18211
|
id: item.id,
|
|
18685
18212
|
label: item.name,
|
|
18686
18213
|
namespace: (_a = item.namespace_info) == null ? void 0 : _a.name
|
|
@@ -18717,7 +18244,7 @@ var SearchType = /* @__PURE__ */ ((SearchType2) => {
|
|
|
18717
18244
|
return SearchType2;
|
|
18718
18245
|
})(SearchType || {});
|
|
18719
18246
|
const _hoisted_1$j = { class: "area" };
|
|
18720
|
-
const _hoisted_2$
|
|
18247
|
+
const _hoisted_2$d = { class: "w-[208px] max-h-[240px]" };
|
|
18721
18248
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
18722
18249
|
__name: "Area",
|
|
18723
18250
|
props: {
|
|
@@ -18731,9 +18258,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18731
18258
|
const layoutConfig2 = useLayoutConfig();
|
|
18732
18259
|
const { t: t2 } = i18n.global;
|
|
18733
18260
|
const route = useRoute();
|
|
18734
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18735
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18736
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18261
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-CdIzk-aH.js"));
|
|
18262
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DltRikIu.js"));
|
|
18263
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-COSzfHQ6.js"));
|
|
18737
18264
|
const props = __props;
|
|
18738
18265
|
console.log("slotKeys", props.slotKeys);
|
|
18739
18266
|
console.log("props", props);
|
|
@@ -18917,7 +18444,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18917
18444
|
return {
|
|
18918
18445
|
name: key,
|
|
18919
18446
|
fn: withCtx(() => [
|
|
18920
|
-
createElementVNode("div", _hoisted_2$
|
|
18447
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
18921
18448
|
createVNode(unref(Menu), {
|
|
18922
18449
|
class: "menu",
|
|
18923
18450
|
onSelect: onMenuClick,
|
|
@@ -18947,8 +18474,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18947
18474
|
});
|
|
18948
18475
|
const Area = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18949
18476
|
function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
18950
|
-
const allCookies = api.get()
|
|
18951
|
-
const storedValue = allCookies[key] || localStorage
|
|
18477
|
+
const allCookies = api.get();
|
|
18478
|
+
const storedValue = allCookies[key] || localStorage.getItem(key);
|
|
18952
18479
|
const initialValue = storedValue || defaultValue;
|
|
18953
18480
|
const value = ref(initialValue);
|
|
18954
18481
|
if (!storedValue) {
|
|
@@ -18959,9 +18486,9 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
|
18959
18486
|
(newValue) => {
|
|
18960
18487
|
if (newValue) {
|
|
18961
18488
|
api.set(key, newValue, options);
|
|
18962
|
-
localStorage
|
|
18489
|
+
localStorage.setItem(key, newValue);
|
|
18963
18490
|
} else {
|
|
18964
|
-
api.remove(key, { domain: COOKIE_DOMAIN
|
|
18491
|
+
api.remove(key, { domain: COOKIE_DOMAIN });
|
|
18965
18492
|
}
|
|
18966
18493
|
},
|
|
18967
18494
|
{ flush: "sync" }
|
|
@@ -18970,8 +18497,8 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
|
18970
18497
|
return value;
|
|
18971
18498
|
}
|
|
18972
18499
|
const _hoisted_1$i = { class: "tools-item-wrapper" };
|
|
18973
|
-
const _hoisted_2$
|
|
18974
|
-
const _hoisted_3$
|
|
18500
|
+
const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
|
|
18501
|
+
const _hoisted_3$a = ["onClick", "title"];
|
|
18975
18502
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
18976
18503
|
__name: "Lang",
|
|
18977
18504
|
setup(__props) {
|
|
@@ -18991,7 +18518,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18991
18518
|
return (_ctx, _cache) => {
|
|
18992
18519
|
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
18993
18520
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.lang")), 1),
|
|
18994
|
-
createElementVNode("div", _hoisted_2$
|
|
18521
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
18995
18522
|
(openBlock(true), createElementBlock(Fragment, null, renderList(linkList.value, (item) => {
|
|
18996
18523
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18997
18524
|
key: item.label,
|
|
@@ -19007,7 +18534,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19007
18534
|
color: "var(--theme-icon-fill-weak)",
|
|
19008
18535
|
class: "checkbox-item-icon"
|
|
19009
18536
|
}, null, 8, ["name"])
|
|
19010
|
-
], 16, _hoisted_3$
|
|
18537
|
+
], 16, _hoisted_3$a);
|
|
19011
18538
|
}), 128))
|
|
19012
18539
|
])
|
|
19013
18540
|
]);
|
|
@@ -19015,8 +18542,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19015
18542
|
}
|
|
19016
18543
|
});
|
|
19017
18544
|
const _hoisted_1$h = { class: "tools-item-wrapper" };
|
|
19018
|
-
const _hoisted_2$
|
|
19019
|
-
const _hoisted_3$
|
|
18545
|
+
const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
|
|
18546
|
+
const _hoisted_3$9 = ["onClick", "title"];
|
|
19020
18547
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
19021
18548
|
__name: "Theme",
|
|
19022
18549
|
setup(__props) {
|
|
@@ -19044,7 +18571,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19044
18571
|
return (_ctx, _cache) => {
|
|
19045
18572
|
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
19046
18573
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.theme")), 1),
|
|
19047
|
-
createElementVNode("div", _hoisted_2$
|
|
18574
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
19048
18575
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeList.value, (item) => {
|
|
19049
18576
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
19050
18577
|
key: item.value,
|
|
@@ -19060,7 +18587,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19060
18587
|
color: "var(--theme-icon-fill-weak)",
|
|
19061
18588
|
class: "checkbox-item-icon"
|
|
19062
18589
|
}, null, 8, ["name"])
|
|
19063
|
-
], 16, _hoisted_3$
|
|
18590
|
+
], 16, _hoisted_3$9);
|
|
19064
18591
|
}), 128))
|
|
19065
18592
|
])
|
|
19066
18593
|
]);
|
|
@@ -19068,8 +18595,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19068
18595
|
}
|
|
19069
18596
|
});
|
|
19070
18597
|
const _hoisted_1$g = { class: "leading-[16px]" };
|
|
19071
|
-
const _hoisted_2$
|
|
19072
|
-
const _hoisted_3$
|
|
18598
|
+
const _hoisted_2$a = { class: "aside-footer-tools-item-dropdown-item" };
|
|
18599
|
+
const _hoisted_3$8 = { class: "aside-footer-tools-item-dropdown-item" };
|
|
19073
18600
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
19074
18601
|
__name: "Settings",
|
|
19075
18602
|
props: {
|
|
@@ -19086,12 +18613,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
19086
18613
|
"overlay-class": "footer-tools-setting-dropdown"
|
|
19087
18614
|
}, {
|
|
19088
18615
|
menu: withCtx(() => [
|
|
19089
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
18616
|
+
withDirectives(createElementVNode("div", _hoisted_2$a, [
|
|
19090
18617
|
createVNode(_sfc_main$k)
|
|
19091
18618
|
], 512), [
|
|
19092
18619
|
[vShow, _ctx.showThemeSetting]
|
|
19093
18620
|
]),
|
|
19094
|
-
withDirectives(createElementVNode("div", _hoisted_3$
|
|
18621
|
+
withDirectives(createElementVNode("div", _hoisted_3$8, [
|
|
19095
18622
|
createVNode(_sfc_main$l)
|
|
19096
18623
|
], 512), [
|
|
19097
18624
|
[vShow, _ctx.showLangSetting]
|
|
@@ -19123,7 +18650,6 @@ const FEEDBACK_CENTER_URL = "https://gitcode.com/Gitcode-offical-team/GitCode-Do
|
|
|
19123
18650
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
19124
18651
|
__name: "SubMenuList",
|
|
19125
18652
|
setup(__props) {
|
|
19126
|
-
const layoutConfig2 = useLayoutConfig();
|
|
19127
18653
|
const { t: t2 } = i18n.global;
|
|
19128
18654
|
const isEn = computed(() => {
|
|
19129
18655
|
return getLocaleLang() === LANG_EN;
|
|
@@ -19133,13 +18659,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
19133
18659
|
{
|
|
19134
18660
|
name: t2("gitCodeLayout.header.helpDocument"),
|
|
19135
18661
|
icon: "gt-line-file",
|
|
19136
|
-
url:
|
|
18662
|
+
url: HELP_DOCS_URL,
|
|
19137
18663
|
target: "_blank"
|
|
19138
18664
|
},
|
|
19139
18665
|
{
|
|
19140
18666
|
name: t2("gitCodeLayout.home.feedbackCenter"),
|
|
19141
18667
|
icon: "gt-line-Checks",
|
|
19142
|
-
url:
|
|
18668
|
+
url: FEEDBACK_CENTER_URL,
|
|
19143
18669
|
target: "_self"
|
|
19144
18670
|
}
|
|
19145
18671
|
];
|
|
@@ -19172,7 +18698,6 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
19172
18698
|
const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19173
18699
|
const createSetting = () => {
|
|
19174
18700
|
const { t: t2 } = i18n.global;
|
|
19175
|
-
const isGitCodeHost2 = typeof window !== "undefined" && window.location.hostname.includes("gitcode");
|
|
19176
18701
|
const settings = {
|
|
19177
18702
|
slogan: t2("gitCodeLayout.home.slogon"),
|
|
19178
18703
|
copyright: {
|
|
@@ -19183,45 +18708,26 @@ const createSetting = () => {
|
|
|
19183
18708
|
phone: "400-6868-951",
|
|
19184
18709
|
serviceTime: "9:00-18:00",
|
|
19185
18710
|
publicSecurity: t2("gitCodeLayout.common.publicSecurity"),
|
|
19186
|
-
publicSecurity_url: "https://beian.mps.gov.cn/#/query/webSearch?code=11010502055713",
|
|
19187
18711
|
aboutUs: t2("gitCodeLayout.common.aboutUs"),
|
|
19188
18712
|
recruitment: t2("gitCodeLayout.common.recruitment"),
|
|
19189
|
-
price: t2("gitCodeLayout.common.prices")
|
|
19190
|
-
beian_url: "https://www.zhipin.com/gongsi/job/b1eccc6dba1cc0d41Hd60tW0GVc~.html?ka=company-jobs"
|
|
18713
|
+
price: t2("gitCodeLayout.common.prices")
|
|
19191
18714
|
}
|
|
19192
18715
|
};
|
|
19193
|
-
if (!isGitCodeHost2) {
|
|
19194
|
-
settings.slogan = "";
|
|
19195
|
-
settings.copyright = {
|
|
19196
|
-
digest: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("gitCodeLayout.home.copyright_atomgit.digest"),
|
|
19197
|
-
digestAbbr: (/* @__PURE__ */ new Date()).getFullYear() + " " + t2("gitCodeLayout.home.copyright_atomgit.companyInformation"),
|
|
19198
|
-
icp: t2("gitCodeLayout.home.copyright_atomgit.recordInformation"),
|
|
19199
|
-
beian: "11010502030143",
|
|
19200
|
-
phone: "400-6868-951",
|
|
19201
|
-
serviceTime: "9:00-18:00",
|
|
19202
|
-
publicSecurity: t2("gitCodeLayout.home.copyright_atomgit.publicSecurity"),
|
|
19203
|
-
publicSecurity_url: "",
|
|
19204
|
-
aboutUs: t2("gitCodeLayout.common.aboutUs"),
|
|
19205
|
-
recruitment: t2("gitCodeLayout.common.recruitment"),
|
|
19206
|
-
price: t2("gitCodeLayout.common.prices"),
|
|
19207
|
-
beian_url: "https://www.zhipin.com/gongsi/job/b1eccc6dba1cc0d41Hd60tW0GVc~.html?ka=company-jobs"
|
|
19208
|
-
};
|
|
19209
|
-
}
|
|
19210
18716
|
return settings;
|
|
19211
18717
|
};
|
|
19212
18718
|
const _hoisted_1$f = { class: "aside-footer" };
|
|
19213
|
-
const _hoisted_2$
|
|
19214
|
-
const _hoisted_3$
|
|
19215
|
-
const _hoisted_4$
|
|
18719
|
+
const _hoisted_2$9 = { class: "remake-message mt-[16px]" };
|
|
18720
|
+
const _hoisted_3$7 = ["title"];
|
|
18721
|
+
const _hoisted_4$7 = { class: "whitespace-nowrap" };
|
|
19216
18722
|
const _hoisted_5$4 = {
|
|
19217
18723
|
href: "https://beian.miit.gov.cn/#/Integrated/index",
|
|
19218
18724
|
target: "_blank"
|
|
19219
18725
|
};
|
|
19220
|
-
const _hoisted_6$3 = {
|
|
19221
|
-
|
|
19222
|
-
|
|
18726
|
+
const _hoisted_6$3 = { class: "whitespace-nowrap public-security" };
|
|
18727
|
+
const _hoisted_7$2 = {
|
|
18728
|
+
href: "https://beian.mps.gov.cn/#/query/webSearch?code=11010502055713",
|
|
18729
|
+
target: "_blank"
|
|
19223
18730
|
};
|
|
19224
|
-
const _hoisted_7$2 = ["href"];
|
|
19225
18731
|
const _hoisted_8$2 = {
|
|
19226
18732
|
href: "https://www.huaweicloud.com/",
|
|
19227
18733
|
target: "_blank",
|
|
@@ -19242,21 +18748,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19242
18748
|
});
|
|
19243
18749
|
return (_ctx, _cache) => {
|
|
19244
18750
|
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
19245
|
-
createElementVNode("div", _hoisted_2$
|
|
18751
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
19246
18752
|
createElementVNode("p", {
|
|
19247
18753
|
class: "break-all whitespace-normal",
|
|
19248
18754
|
title: unref(copyright).digestAbbr
|
|
19249
|
-
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$
|
|
19250
|
-
createElementVNode("p", _hoisted_4$
|
|
18755
|
+
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$7),
|
|
18756
|
+
createElementVNode("p", _hoisted_4$7, [
|
|
19251
18757
|
createElementVNode("a", _hoisted_5$4, toDisplayString$1(unref(copyright).icp), 1)
|
|
19252
18758
|
]),
|
|
19253
|
-
|
|
18759
|
+
createElementVNode("p", _hoisted_6$3, [
|
|
19254
18760
|
_cache[0] || (_cache[0] = createElementVNode("img", { src: "//g.csdnimg.cn/common/csdn-footer/images/badge.png" }, null, -1)),
|
|
19255
|
-
createElementVNode("a",
|
|
19256
|
-
|
|
19257
|
-
target: "_blank"
|
|
19258
|
-
}, toDisplayString$1(unref(copyright).publicSecurity), 9, _hoisted_7$2)
|
|
19259
|
-
])) : createCommentVNode("", true)
|
|
18761
|
+
createElementVNode("a", _hoisted_7$2, toDisplayString$1(unref(copyright).publicSecurity), 1)
|
|
18762
|
+
])
|
|
19260
18763
|
]),
|
|
19261
18764
|
createElementVNode("p", {
|
|
19262
18765
|
class: normalizeClass(["whitespace-nowrap mt-[16px] support", { en: isEn.value }])
|
|
@@ -19273,23 +18776,23 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19273
18776
|
createElementVNode("p", _hoisted_9$2, [
|
|
19274
18777
|
createVNode(GLink, {
|
|
19275
18778
|
target: "_blank",
|
|
19276
|
-
href:
|
|
18779
|
+
href: "https://docs.gitcode.com/docs/help/home/aboutus/"
|
|
19277
18780
|
}, {
|
|
19278
18781
|
default: withCtx(() => [
|
|
19279
18782
|
createTextVNode(toDisplayString$1(unref(copyright).aboutUs), 1)
|
|
19280
18783
|
]),
|
|
19281
18784
|
_: 1
|
|
19282
|
-
}
|
|
18785
|
+
}),
|
|
19283
18786
|
_cache[3] || (_cache[3] = createTextVNode(" | ")),
|
|
19284
18787
|
createVNode(GLink, {
|
|
19285
18788
|
target: "_blank",
|
|
19286
|
-
href:
|
|
18789
|
+
href: "https://www.zhipin.com/gongsi/job/b1eccc6dba1cc0d41Hd60tW0GVc~.html?ka=company-jobs"
|
|
19287
18790
|
}, {
|
|
19288
18791
|
default: withCtx(() => [
|
|
19289
18792
|
createTextVNode(toDisplayString$1(unref(copyright).recruitment), 1)
|
|
19290
18793
|
]),
|
|
19291
18794
|
_: 1
|
|
19292
|
-
}
|
|
18795
|
+
})
|
|
19293
18796
|
]),
|
|
19294
18797
|
createElementVNode("ul", _hoisted_10$2, [
|
|
19295
18798
|
_cache[4] || (_cache[4] = createElementVNode("li", { class: "flex items-center" }, [
|
|
@@ -19305,12 +18808,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19305
18808
|
});
|
|
19306
18809
|
const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19307
18810
|
const _hoisted_1$e = { class: "flex-[1] flex flex-col justify-between min-h-0" };
|
|
19308
|
-
const _hoisted_2$
|
|
19309
|
-
const _hoisted_3$
|
|
18811
|
+
const _hoisted_2$8 = { key: 0 };
|
|
18812
|
+
const _hoisted_3$6 = {
|
|
19310
18813
|
key: 1,
|
|
19311
18814
|
class: "aside-menus"
|
|
19312
18815
|
};
|
|
19313
|
-
const _hoisted_4$
|
|
18816
|
+
const _hoisted_4$6 = {
|
|
19314
18817
|
key: 0,
|
|
19315
18818
|
class: "line mt-[16px] mb-[6px]"
|
|
19316
18819
|
};
|
|
@@ -19434,12 +18937,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19434
18937
|
onScroll: handleScroll,
|
|
19435
18938
|
onMouseleave: handleMouseLeave
|
|
19436
18939
|
}, [
|
|
19437
|
-
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
18940
|
+
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
19438
18941
|
createVNode(unref(Skeleton), {
|
|
19439
18942
|
loading: unref(sideLoading),
|
|
19440
18943
|
row: 4
|
|
19441
18944
|
}, null, 8, ["loading"])
|
|
19442
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
18945
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
19443
18946
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayArea.value, (item, index2) => {
|
|
19444
18947
|
return openBlock(), createElementBlock(Fragment, {
|
|
19445
18948
|
key: item.id
|
|
@@ -19460,7 +18963,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19460
18963
|
};
|
|
19461
18964
|
})
|
|
19462
18965
|
]), 1032, ["list", "isLogin", "slotKeys", "sceneValue", "asideSetShowLittle"]),
|
|
19463
|
-
!_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$
|
|
18966
|
+
!_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$6)) : createCommentVNode("", true)
|
|
19464
18967
|
], 64);
|
|
19465
18968
|
}), 128)),
|
|
19466
18969
|
!_ctx.asideSetShowLittle && isModuleVisible(unref(AsideDisplayItem).LINK) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -19513,7 +19016,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19513
19016
|
setup(__props) {
|
|
19514
19017
|
const route = useRoute();
|
|
19515
19018
|
const layoutConfig2 = useLayoutConfig();
|
|
19516
|
-
const { headerHeight: headerHeight2 } = useHeaderHeight();
|
|
19517
19019
|
const props = __props;
|
|
19518
19020
|
const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
|
|
19519
19021
|
provide(
|
|
@@ -19530,17 +19032,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19530
19032
|
if (route.meta.showBgColor) return true;
|
|
19531
19033
|
return false;
|
|
19532
19034
|
});
|
|
19533
|
-
const logoConfig = getCurrentLogoMap();
|
|
19534
|
-
const logoStyle = computed(() => {
|
|
19535
|
-
const isBlackTheme = currentTheme.value === "black";
|
|
19536
|
-
const logoUrl = isBlackTheme ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
|
|
19537
|
-
return {
|
|
19538
|
-
backgroundImage: `url(${logoUrl})`,
|
|
19539
|
-
backgroundRepeat: "no-repeat",
|
|
19540
|
-
backgroundPosition: "0 center",
|
|
19541
|
-
backgroundSize: "contain"
|
|
19542
|
-
};
|
|
19543
|
-
});
|
|
19544
19035
|
const sizeStore = usePageResize();
|
|
19545
19036
|
const asideSetShow = computed(() => {
|
|
19546
19037
|
return (props.sceneValue === SceneValue.home && !sizeStore.isMobile.value || props.collapseMode) && !props.disableFlatMode;
|
|
@@ -19550,6 +19041,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19550
19041
|
const isHome = computed(() => {
|
|
19551
19042
|
return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge", "dashboard"].includes(route.name);
|
|
19552
19043
|
});
|
|
19044
|
+
usePageResize();
|
|
19553
19045
|
const asideSize = computed(() => {
|
|
19554
19046
|
if (props.collapseMode) {
|
|
19555
19047
|
return ASIDE_MENU_MODE.collapse;
|
|
@@ -19618,8 +19110,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19618
19110
|
return (_ctx, _cache) => {
|
|
19619
19111
|
return asideSetShow.value ? (openBlock(), createBlock(ConfigAideContent, {
|
|
19620
19112
|
key: 0,
|
|
19621
|
-
class: normalizeClass(["left-side-bar", { oldWhite: asideSetShowLittleMode.value
|
|
19622
|
-
style: normalizeStyle({ width: mainMarginLeftWidth.value + "px"
|
|
19113
|
+
class: normalizeClass(["left-side-bar", { oldWhite: asideSetShowLittleMode.value }]),
|
|
19114
|
+
style: normalizeStyle({ width: mainMarginLeftWidth.value + "px" }),
|
|
19623
19115
|
sceneValue: _ctx.sceneValue,
|
|
19624
19116
|
asideDefaultWidth: mainMarginLeftWidth.value,
|
|
19625
19117
|
asideSetShowLittle: asideSetShowLittleMode.value,
|
|
@@ -19652,11 +19144,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19652
19144
|
default: withCtx(() => [
|
|
19653
19145
|
createElementVNode("div", _hoisted_1$d, [
|
|
19654
19146
|
createVNode(GLink, {
|
|
19655
|
-
class: "g-toolbar-left-logo",
|
|
19656
|
-
style: normalizeStyle(logoStyle.value),
|
|
19147
|
+
class: normalizeClass(["g-toolbar-left-logo", unref(currentTheme)]),
|
|
19657
19148
|
to: _ctx.independence ? "" : { name: "home" },
|
|
19658
|
-
href: _ctx.independence ? unref(
|
|
19659
|
-
}, null, 8, ["
|
|
19149
|
+
href: _ctx.independence ? unref(layoutConfig2).VITE_HOST : ""
|
|
19150
|
+
}, null, 8, ["class", "to", "href"]),
|
|
19660
19151
|
createVNode(unref(Button), {
|
|
19661
19152
|
class: "cursor-pointer draw-side-bar-close",
|
|
19662
19153
|
icon: "close",
|
|
@@ -20188,9 +19679,9 @@ const headerCustomPropsData = {
|
|
|
20188
19679
|
}
|
|
20189
19680
|
};
|
|
20190
19681
|
const _hoisted_1$c = { class: "home-wrapper" };
|
|
20191
|
-
const _hoisted_2$
|
|
20192
|
-
const _hoisted_3$
|
|
20193
|
-
const _hoisted_4$
|
|
19682
|
+
const _hoisted_2$7 = { class: "home-content" };
|
|
19683
|
+
const _hoisted_3$5 = { class: "home-left-side" };
|
|
19684
|
+
const _hoisted_4$5 = { class: "home-main" };
|
|
20194
19685
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
20195
19686
|
__name: "home",
|
|
20196
19687
|
setup(__props) {
|
|
@@ -20280,8 +19771,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
20280
19771
|
onFollowDevCommunity: followDevCommunity,
|
|
20281
19772
|
onFollowUser: followUser
|
|
20282
19773
|
}, null, 8, ["sceneValue", "independence", "isLogin", "request", "globalStore", "userInfo", "repoInfo", "orgInfo", "otherUserInfo", "headerCustomProps"]),
|
|
20283
|
-
createElementVNode("div", _hoisted_2$
|
|
20284
|
-
createElementVNode("div", _hoisted_3$
|
|
19774
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
19775
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
20285
19776
|
createVNode(GitCodeAside, {
|
|
20286
19777
|
sceneValue: sceneSelected.value,
|
|
20287
19778
|
userInfo: userInfo.value,
|
|
@@ -20290,9 +19781,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
20290
19781
|
globalStore: globalStore.value,
|
|
20291
19782
|
independence: independence.value,
|
|
20292
19783
|
slotKeys: ["home", "issues"],
|
|
20293
|
-
collapseMode: sceneSelected.value == unref(SceneValue).repo
|
|
20294
|
-
showLangSetting: "",
|
|
20295
|
-
showThemeSetting: ""
|
|
19784
|
+
collapseMode: sceneSelected.value == unref(SceneValue).repo
|
|
20296
19785
|
}, {
|
|
20297
19786
|
home: withCtx(() => _cache[2] || (_cache[2] = [
|
|
20298
19787
|
createElementVNode("div", null, "首页hover-插槽", -1)
|
|
@@ -20303,7 +19792,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
20303
19792
|
_: 1
|
|
20304
19793
|
}, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"])
|
|
20305
19794
|
]),
|
|
20306
|
-
createElementVNode("div", _hoisted_4$
|
|
19795
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
20307
19796
|
_cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
|
|
20308
19797
|
_cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
|
|
20309
19798
|
createVNode(unref(RadioGroup), {
|
|
@@ -20801,13 +20290,9 @@ async function checkUserRepositoryIssue(API, isRegister = false) {
|
|
|
20801
20290
|
async function successResolve(params, API, isRegister = false) {
|
|
20802
20291
|
var _a;
|
|
20803
20292
|
const { path, userInfo, type, loginMethod } = params;
|
|
20804
|
-
const transformUserInfo = {
|
|
20805
|
-
...userInfo,
|
|
20806
|
-
avatar: transformUrl(userInfo == null ? void 0 : userInfo.avatar)
|
|
20807
|
-
};
|
|
20808
20293
|
if (userInfo) {
|
|
20809
|
-
emitEvent("updateUserInfo",
|
|
20810
|
-
const { username, email } =
|
|
20294
|
+
emitEvent("updateUserInfo", userInfo);
|
|
20295
|
+
const { username, email } = userInfo;
|
|
20811
20296
|
setEmailValid(username, email);
|
|
20812
20297
|
}
|
|
20813
20298
|
saveLastLoginType(loginMethod);
|
|
@@ -21188,9 +20673,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
21188
20673
|
}
|
|
21189
20674
|
});
|
|
21190
20675
|
const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
|
|
21191
|
-
const _hoisted_2$
|
|
21192
|
-
const _hoisted_3$
|
|
21193
|
-
const _hoisted_4$
|
|
20676
|
+
const _hoisted_2$6 = { class: "login-phone" };
|
|
20677
|
+
const _hoisted_3$4 = { class: "flex justify-between gap-[8px] flex-wrap" };
|
|
20678
|
+
const _hoisted_4$4 = { class: "flex items-center justify-between" };
|
|
21194
20679
|
const _hoisted_5$3 = { class: "flex justify-between gap-[8px] flex-wrap" };
|
|
21195
20680
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
21196
20681
|
__name: "inputSelect",
|
|
@@ -21266,7 +20751,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
21266
20751
|
});
|
|
21267
20752
|
return (_ctx, _cache) => {
|
|
21268
20753
|
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
21269
|
-
createElementVNode("div", _hoisted_2$
|
|
20754
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
21270
20755
|
(props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
21271
20756
|
createVNode(unref(Select), {
|
|
21272
20757
|
class: "login-country-select",
|
|
@@ -21283,7 +20768,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
21283
20768
|
value: item.value
|
|
21284
20769
|
}, {
|
|
21285
20770
|
default: withCtx(() => [
|
|
21286
|
-
createElementVNode("div", _hoisted_3$
|
|
20771
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
21287
20772
|
createElementVNode("span", null, toDisplayString$1(item.name), 1),
|
|
21288
20773
|
createElementVNode("span", null, toDisplayString$1(item.label), 1)
|
|
21289
20774
|
])
|
|
@@ -21307,7 +20792,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
21307
20792
|
class: "login-phone-select"
|
|
21308
20793
|
}), {
|
|
21309
20794
|
item: withCtx((slotProps) => [
|
|
21310
|
-
createElementVNode("div", _hoisted_4$
|
|
20795
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
21311
20796
|
createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
|
|
21312
20797
|
createVNode(GIcon, {
|
|
21313
20798
|
name: "gt-line-delete",
|
|
@@ -21660,9 +21145,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21660
21145
|
});
|
|
21661
21146
|
const recentLoginImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAoCAYAAAAIeF9DAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfgSURBVHgB7ZtLbFRlFMfPnU4LhbaMgAJCdJpYImwoK7vgMSwkGDckQgwrARduJNREE4nykhhJMKGNblxIuzOEElcGAptiWeCKuoFIMYykCEoLpQ9eZWY8v9v52tvbOzP33mlLDPefTDtzn993/uf8z/nO3LGkDNxIphJPRVIxyW7MipXUTY0xySVyIgl5gWCJDOTESuu80yK532MS62xId3ZKCFg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iIdZj/1rXkhuB9dw+YdQgELFePGtFSEW8yRiV6OAZdN14GUUiGs/EHMAQTp/vrLCs9J6LX78uvNTivssxOAo5gKiRDutMxcKIl3+4b316somIs/qLZal+ZvmDr3LQREiE00hmJbVqVf+43dFKPMF3IHV7leAg7IuT5otX98HVEyHOD1b0y/Wuze2tEyHOB/UOeTV57Qq/UI4SGytSF5kI7owiZJfA7RJ7j9ZIpJ6IImR20xiV2qMHj9yBuRITMEMYiQlqrJNZS74MIg4iQacCY8a0B1X9tZ2e1R1PRHfZn0f8BoszztTsf3m0AAAAASUVORK5CYII=";
|
|
21662
21147
|
const _hoisted_1$8 = { class: "auth-container" };
|
|
21663
|
-
const _hoisted_2$
|
|
21664
|
-
const _hoisted_3$
|
|
21665
|
-
const _hoisted_4$
|
|
21148
|
+
const _hoisted_2$5 = { class: "tips text-[var(--devui-disabled-text)]" };
|
|
21149
|
+
const _hoisted_3$3 = { class: "icons" };
|
|
21150
|
+
const _hoisted_4$3 = ["src", "alt", "onClick"];
|
|
21666
21151
|
const _hoisted_5$2 = { class: "w-[50px] h-[20px] recent-login-img" };
|
|
21667
21152
|
const _hoisted_6$2 = ["src"];
|
|
21668
21153
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
@@ -21687,8 +21172,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
21687
21172
|
};
|
|
21688
21173
|
return (_ctx, _cache) => {
|
|
21689
21174
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
21690
|
-
createElementVNode("div", _hoisted_2$
|
|
21691
|
-
createElementVNode("div", _hoisted_3$
|
|
21175
|
+
createElementVNode("div", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
|
|
21176
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
21692
21177
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
|
|
21693
21178
|
return openBlock(), createElementBlock("div", {
|
|
21694
21179
|
key: icon.alt,
|
|
@@ -21705,7 +21190,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
21705
21190
|
src: icon.src,
|
|
21706
21191
|
alt: icon.alt,
|
|
21707
21192
|
onClick: withModifiers(($event) => handleClick(icon), ["stop"])
|
|
21708
|
-
}, null, 8, _hoisted_4$
|
|
21193
|
+
}, null, 8, _hoisted_4$3)
|
|
21709
21194
|
]),
|
|
21710
21195
|
_: 2
|
|
21711
21196
|
}, 1032, ["content", "disabled"]),
|
|
@@ -21724,10 +21209,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
21724
21209
|
}
|
|
21725
21210
|
});
|
|
21726
21211
|
const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
21727
|
-
const _hoisted_1$7 = { class: "
|
|
21728
|
-
const _hoisted_2$
|
|
21729
|
-
const _hoisted_3$5 = { class: "text-[var(--theme-placeholder)]" };
|
|
21730
|
-
const _hoisted_4$3 = { class: "text-[var(--theme-placeholder)]" };
|
|
21212
|
+
const _hoisted_1$7 = { class: "text-[var(--theme-placeholder)]" };
|
|
21213
|
+
const _hoisted_2$4 = { class: "text-[var(--theme-placeholder)]" };
|
|
21731
21214
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
21732
21215
|
__name: "agreement",
|
|
21733
21216
|
props: {
|
|
@@ -21737,134 +21220,80 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
21737
21220
|
emits: ["update:modelValue", "declares"],
|
|
21738
21221
|
setup(__props, { emit: __emit }) {
|
|
21739
21222
|
const { t: $t } = i18n.global;
|
|
21223
|
+
const props = __props;
|
|
21740
21224
|
const emits = __emit;
|
|
21741
|
-
const
|
|
21742
|
-
const dataShareChecked = ref(false);
|
|
21743
|
-
const allAgreed = computed(() => {
|
|
21744
|
-
return agreementChecked.value && dataShareChecked.value;
|
|
21745
|
-
});
|
|
21746
|
-
watch(allAgreed, (newVal) => {
|
|
21747
|
-
emits("update:modelValue", newVal);
|
|
21748
|
-
});
|
|
21225
|
+
const { vModels } = useModel(props, emits);
|
|
21749
21226
|
const handleClick = (type) => {
|
|
21750
21227
|
emits("declares", type);
|
|
21751
21228
|
};
|
|
21752
|
-
const dataShareName = computed(() => {
|
|
21753
|
-
var _a, _b;
|
|
21754
|
-
if ((_b = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) == null ? void 0 : _b.includes("gitcode")) {
|
|
21755
|
-
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
|
|
21756
|
-
} else {
|
|
21757
|
-
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
|
|
21758
|
-
}
|
|
21759
|
-
});
|
|
21760
21229
|
return (_ctx, _cache) => {
|
|
21761
|
-
return openBlock(),
|
|
21762
|
-
|
|
21763
|
-
|
|
21764
|
-
|
|
21765
|
-
|
|
21766
|
-
|
|
21767
|
-
|
|
21768
|
-
|
|
21769
|
-
|
|
21770
|
-
|
|
21771
|
-
|
|
21772
|
-
|
|
21773
|
-
|
|
21774
|
-
|
|
21775
|
-
|
|
21776
|
-
|
|
21777
|
-
|
|
21778
|
-
|
|
21779
|
-
|
|
21780
|
-
}, 8, ["modelValue"]),
|
|
21781
|
-
createVNode(unref(Checkbox), {
|
|
21782
|
-
modelValue: dataShareChecked.value,
|
|
21783
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dataShareChecked.value = $event),
|
|
21784
|
-
size: "sm"
|
|
21785
|
-
}, {
|
|
21786
|
-
default: withCtx(() => [
|
|
21787
|
-
createElementVNode("span", _hoisted_4$3, toDisplayString$1(dataShareName.value), 1)
|
|
21788
|
-
]),
|
|
21789
|
-
_: 1
|
|
21790
|
-
}, 8, ["modelValue"])
|
|
21791
|
-
]);
|
|
21230
|
+
return openBlock(), createBlock(unref(Checkbox), {
|
|
21231
|
+
modelValue: unref(vModels),
|
|
21232
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(vModels) ? vModels.value = $event : null),
|
|
21233
|
+
size: "sm"
|
|
21234
|
+
}, {
|
|
21235
|
+
default: withCtx(() => [
|
|
21236
|
+
createElementVNode("span", _hoisted_1$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
|
|
21237
|
+
createElementVNode("span", {
|
|
21238
|
+
class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
|
|
21239
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
21240
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
|
|
21241
|
+
createElementVNode("span", _hoisted_2$4, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
21242
|
+
createElementVNode("span", {
|
|
21243
|
+
class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
|
|
21244
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
21245
|
+
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1)
|
|
21246
|
+
]),
|
|
21247
|
+
_: 1
|
|
21248
|
+
}, 8, ["modelValue"]);
|
|
21792
21249
|
};
|
|
21793
21250
|
}
|
|
21794
21251
|
});
|
|
21795
21252
|
const _hoisted_1$6 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
|
|
21796
|
-
const _hoisted_2$4 = { class: "text-[var(--devui-aide-text)]" };
|
|
21797
|
-
const _hoisted_3$4 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
|
|
21798
21253
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
21799
21254
|
__name: "agreements",
|
|
21800
21255
|
props: {
|
|
21801
21256
|
modelValue: { type: Boolean },
|
|
21257
|
+
agreementText: {},
|
|
21258
|
+
privacyText: {},
|
|
21802
21259
|
"onUpdate:modelValue": { type: Function }
|
|
21803
21260
|
},
|
|
21804
21261
|
emits: ["update:modelValue", "declares"],
|
|
21805
21262
|
setup(__props, { emit: __emit }) {
|
|
21806
21263
|
const { t: $t } = i18n.global;
|
|
21264
|
+
const props = __props;
|
|
21807
21265
|
const emits = __emit;
|
|
21808
|
-
const
|
|
21809
|
-
const dataShareChecked = ref(false);
|
|
21810
|
-
const allAgreed = computed(() => {
|
|
21811
|
-
return agreementChecked.value && dataShareChecked.value;
|
|
21812
|
-
});
|
|
21813
|
-
watch(allAgreed, (newVal) => {
|
|
21814
|
-
emits("update:modelValue", newVal);
|
|
21815
|
-
});
|
|
21266
|
+
const { vModels } = useModel(props, emits);
|
|
21816
21267
|
const handleClick = (type) => {
|
|
21817
21268
|
emits("declares", type);
|
|
21818
21269
|
};
|
|
21819
|
-
const dataShareName = computed(() => {
|
|
21820
|
-
var _a;
|
|
21821
|
-
if ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host.includes("gitcode")) {
|
|
21822
|
-
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
|
|
21823
|
-
} else {
|
|
21824
|
-
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
|
|
21825
|
-
}
|
|
21826
|
-
});
|
|
21827
21270
|
return (_ctx, _cache) => {
|
|
21828
|
-
return openBlock(),
|
|
21829
|
-
|
|
21830
|
-
|
|
21831
|
-
|
|
21832
|
-
|
|
21833
|
-
|
|
21834
|
-
|
|
21835
|
-
|
|
21836
|
-
|
|
21837
|
-
|
|
21838
|
-
|
|
21839
|
-
|
|
21840
|
-
|
|
21841
|
-
|
|
21842
|
-
|
|
21843
|
-
|
|
21844
|
-
|
|
21845
|
-
|
|
21846
|
-
|
|
21847
|
-
|
|
21848
|
-
_: 3
|
|
21849
|
-
}, 8, ["modelValue"]),
|
|
21850
|
-
createVNode(unref(Checkbox), {
|
|
21851
|
-
modelValue: dataShareChecked.value,
|
|
21852
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dataShareChecked.value = $event),
|
|
21853
|
-
size: "sm",
|
|
21854
|
-
class: "mb-[12px]"
|
|
21855
|
-
}, {
|
|
21856
|
-
default: withCtx(() => [
|
|
21857
|
-
createElementVNode("span", _hoisted_3$4, toDisplayString$1(dataShareName.value), 1)
|
|
21858
|
-
]),
|
|
21859
|
-
_: 1
|
|
21860
|
-
}, 8, ["modelValue"])
|
|
21861
|
-
], 64);
|
|
21271
|
+
return openBlock(), createBlock(unref(Checkbox), {
|
|
21272
|
+
modelValue: unref(vModels),
|
|
21273
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(vModels) ? vModels.value = $event : null),
|
|
21274
|
+
size: "sm",
|
|
21275
|
+
class: "mb-[8px] agree-module flex items-center"
|
|
21276
|
+
}, {
|
|
21277
|
+
default: withCtx(() => [
|
|
21278
|
+
createElementVNode("span", _hoisted_1$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
|
|
21279
|
+
createElementVNode("a", {
|
|
21280
|
+
class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
|
|
21281
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
21282
|
+
}, toDisplayString$1(_ctx.agreementText || unref($t)("gitCodeLayout.LoginModal.link.agreement")), 1),
|
|
21283
|
+
createElementVNode("a", {
|
|
21284
|
+
class: "text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]",
|
|
21285
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
21286
|
+
}, toDisplayString$1(_ctx.privacyText || unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1),
|
|
21287
|
+
renderSlot(_ctx.$slots, "default")
|
|
21288
|
+
]),
|
|
21289
|
+
_: 3
|
|
21290
|
+
}, 8, ["modelValue"]);
|
|
21862
21291
|
};
|
|
21863
21292
|
}
|
|
21864
21293
|
});
|
|
21865
21294
|
const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
|
|
21866
21295
|
const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
|
|
21867
|
-
const _hoisted_3$
|
|
21296
|
+
const _hoisted_3$2 = ["src"];
|
|
21868
21297
|
const _hoisted_4$2 = {
|
|
21869
21298
|
key: 0,
|
|
21870
21299
|
class: "tracking-[.5px]"
|
|
@@ -21891,7 +21320,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
21891
21320
|
src: _ctx.icon,
|
|
21892
21321
|
class: "w-[24px] cursor-pointer",
|
|
21893
21322
|
onClick: withModifiers(handleClick, ["stop"])
|
|
21894
|
-
}, null, 8, _hoisted_3$
|
|
21323
|
+
}, null, 8, _hoisted_3$2)) : createCommentVNode("", true)
|
|
21895
21324
|
]),
|
|
21896
21325
|
_ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true)
|
|
21897
21326
|
]);
|
|
@@ -24224,8 +23653,7 @@ const isMobileEmail = (val) => {
|
|
|
24224
23653
|
return t$1("gitCodeLayout.common.phone") + "/" + t$1("gitCodeLayout.common.email");
|
|
24225
23654
|
};
|
|
24226
23655
|
const _hoisted_1$4 = { class: "modal-body" };
|
|
24227
|
-
const _hoisted_2$2 = { class: "
|
|
24228
|
-
const _hoisted_3$2 = { class: "flex items-center justify-end px-[24px] pb-[24px]" };
|
|
23656
|
+
const _hoisted_2$2 = { class: "flex items-center justify-end px-[24px] pb-[24px]" };
|
|
24229
23657
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
24230
23658
|
__name: "loginCheckModal",
|
|
24231
23659
|
props: {
|
|
@@ -24237,35 +23665,26 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
24237
23665
|
const { t: $t } = i18n.global;
|
|
24238
23666
|
const visible = useModel$1(__props, "visible");
|
|
24239
23667
|
const emits = __emit;
|
|
24240
|
-
const dataShareChecked = ref(false);
|
|
24241
23668
|
const handleClick = (type) => {
|
|
24242
23669
|
emits("declares", type);
|
|
24243
23670
|
};
|
|
24244
23671
|
const handleConfirm = () => {
|
|
24245
23672
|
emits("confirm");
|
|
24246
23673
|
};
|
|
24247
|
-
const dataShareName = computed(() => {
|
|
24248
|
-
var _a;
|
|
24249
|
-
if ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host.includes("gitcode")) {
|
|
24250
|
-
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "AtomGit" });
|
|
24251
|
-
} else {
|
|
24252
|
-
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
|
|
24253
|
-
}
|
|
24254
|
-
});
|
|
24255
23674
|
const close = () => {
|
|
24256
23675
|
visible.value = false;
|
|
24257
23676
|
};
|
|
24258
23677
|
return (_ctx, _cache) => {
|
|
24259
23678
|
return openBlock(), createBlock(unref(Modal), {
|
|
24260
23679
|
modelValue: visible.value,
|
|
24261
|
-
"onUpdate:modelValue": _cache[
|
|
23680
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
|
|
24262
23681
|
"close-on-click-overlay": false,
|
|
24263
23682
|
"show-overlay": true,
|
|
24264
23683
|
class: "second-sure-proto",
|
|
24265
23684
|
title: unref($t)("gitCodeLayout.LoginModal.subtitle.useAgrAndPriPolTip")
|
|
24266
23685
|
}, {
|
|
24267
23686
|
footer: withCtx(() => [
|
|
24268
|
-
createElementVNode("div",
|
|
23687
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
24269
23688
|
createVNode(unref(Button), {
|
|
24270
23689
|
class: "mr-2",
|
|
24271
23690
|
onClick: close
|
|
@@ -24278,14 +23697,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
24278
23697
|
createVNode(unref(Button), {
|
|
24279
23698
|
variant: "solid",
|
|
24280
23699
|
class: "w-[126px]",
|
|
24281
|
-
disabled: !dataShareChecked.value,
|
|
24282
23700
|
onClick: handleConfirm
|
|
24283
23701
|
}, {
|
|
24284
23702
|
default: withCtx(() => [
|
|
24285
23703
|
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agrAndSigIn")), 1)
|
|
24286
23704
|
]),
|
|
24287
23705
|
_: 1
|
|
24288
|
-
}
|
|
23706
|
+
})
|
|
24289
23707
|
])
|
|
24290
23708
|
]),
|
|
24291
23709
|
default: withCtx(() => [
|
|
@@ -24301,22 +23719,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
24301
23719
|
class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
|
|
24302
23720
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
24303
23721
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 1),
|
|
24304
|
-
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.toUseGit")), 1)
|
|
23722
|
+
createTextVNode(" " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.toUseGit")), 1)
|
|
24305
23723
|
]),
|
|
24306
|
-
createElementVNode("div", null,
|
|
24307
|
-
createElementVNode("span", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.ifYouDoNotAgrWe")), 1)
|
|
24308
|
-
]),
|
|
24309
|
-
createVNode(unref(Checkbox), {
|
|
24310
|
-
modelValue: dataShareChecked.value,
|
|
24311
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dataShareChecked.value = $event),
|
|
24312
|
-
size: "sm",
|
|
24313
|
-
class: "mt-[12px]"
|
|
24314
|
-
}, {
|
|
24315
|
-
default: withCtx(() => [
|
|
24316
|
-
createElementVNode("span", _hoisted_2$2, toDisplayString$1(dataShareName.value), 1)
|
|
24317
|
-
]),
|
|
24318
|
-
_: 1
|
|
24319
|
-
}, 8, ["modelValue"])
|
|
23724
|
+
createElementVNode("div", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.ifYouDoNotAgrWe")), 1)
|
|
24320
23725
|
])
|
|
24321
23726
|
]),
|
|
24322
23727
|
_: 1
|
|
@@ -24324,6 +23729,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
24324
23729
|
};
|
|
24325
23730
|
}
|
|
24326
23731
|
});
|
|
23732
|
+
const GIT_CODE_LOGO_WHITE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPMAAAA4CAYAAAAo2c5IAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0wSURBVHgB7Z1fctQ6FsY/d26m5u3mruAqDzB1n2gWcMFZAWEFNCsgrCCdFRBWkGYFhBXEwAIIT1MTaipiBeS+zQykNee0ZHC7bUm2ZXeH6FelSrr9V2590tHRkQxEIpGfggQDcSlS8RXYoQvuKEDQX8nf0/9X2/T/rsyuEIlEWtOLmEm4O/8D0hHmDxWSNIESJNod+1HJOe0jE8zfbGMrI3FLRCIRb4KK+ZNIUwV1SOIdu8XrIsmA+au78v0MkUjESWcxcyv8DfNn9O9BdwFXIskYP4qijkTsdBLzhUgnZBa/6EnEZWQUdSRSTysxa2eWOiFxpRicZLaN5Cj2qSORZRqLmfvF1Jd9PVBrXIcERo/vyuwckUhkwajJzv8WD54pzM/WLGRGUIVyxhYCIpHIAm8xfxIPDq+BY2wOO2TqHyISiSzwMrO5Rd4wIedcbWO0e5sCTpRa+CmE+ZglSSIRicCjZSaP9XhYISeZov6w5847/1m/yT8IJGJB6ZL+PaN0YtIlfXdC6VY8g4idX2wbjdf6NYZBJhg9vSOzjD9ciAdeB/2dWmf85LCQoUUsKjZPzPd7iPQO/RZj+vPMsstHspbWYsVaxaz7pIuCVAs5w45GUFfUmj5yDVUpJDIpnE9/JlMRyatcxD9g89F+bdyemO4U1UL+vp0FH03uQWAraGLZnmFNXdJaMX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1mIunKPutbBV7CaOBQc65ruy4qq5RtM1yjNKTxPPBRMaPpvFfVP6UrPdKubC9dgpmKIZEjpfWdVGp5gZEjQPV7UtqEMgrzHaW/ca3uZH4kKXLwdrgwsxjxqcJo75xIXCVod0FaDCeabQ4ZfCsitXuj7znJuel/O8svyw5zVS6FGAfcu5+b6PkjZL0+K7lVVcDrhIVjy30m8zqeqO8DLFXu9BM3mawL64Qh5U8sqVLy8xMxfi4YfAy/0EZHS/y4IJfWF+rB0s/1CLQpcEXGanDWp5be2chSe1SwCDMVvzc+cEy3PN+Tvfd+ka5WeT9f17VVyz8TPzFrP2KNNYGFQTc2cA+h2GikRuCt5izrkQD44xbNBDJTpKbfR4U18qF4kMTWMxM/zmC3JWDR79VWAj+siRyCbRZtkg3JHvj0lM5D31f1dQQF6y1zoKORJZplXLXMSsg33YcDy4BTzElRxFszoSqaazmHOMqJ/4rtHlTxRxJOJDMDHn8CSNX3C9rzB61CYAxESQnfO8ap6OuQEviotEbgTBxVyGQzOpYy6uMR8XVtksoP4i0UuFrcW42iaOF0cikUgkEolEIs34P3h7TBmol5dNAAAAAElFTkSuQmCC";
|
|
24327
23733
|
const _hoisted_1$3 = { class: "mfa" };
|
|
24328
23734
|
const _hoisted_2$1 = ["src"];
|
|
24329
23735
|
const _hoisted_3$1 = { class: "text-[20px] font-[600] mb-[8px]" };
|
|
@@ -24351,6 +23757,7 @@ const _hoisted_9$1 = {
|
|
|
24351
23757
|
const _hoisted_10$1 = { class: "my-[32px]" };
|
|
24352
23758
|
const _hoisted_11$1 = { class: "flex items-center justify-between" };
|
|
24353
23759
|
const _hoisted_12$1 = { class: "cursor-pointer" };
|
|
23760
|
+
const GIT_CODE_LOGO_BLACK = "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png";
|
|
24354
23761
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
24355
23762
|
__name: "MFA",
|
|
24356
23763
|
props: {
|
|
@@ -24360,9 +23767,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24360
23767
|
},
|
|
24361
23768
|
emits: ["success", "back", "fail"],
|
|
24362
23769
|
setup(__props, { emit: __emit }) {
|
|
24363
|
-
const logoConfig = getCurrentLogoMap();
|
|
24364
23770
|
const currentLogo = computed(() => {
|
|
24365
|
-
|
|
23771
|
+
if (currentTheme.value === ThemeType.BLACK) {
|
|
23772
|
+
return GIT_CODE_LOGO_WHITE;
|
|
23773
|
+
}
|
|
23774
|
+
return GIT_CODE_LOGO_BLACK;
|
|
24366
23775
|
});
|
|
24367
23776
|
const { t: t2 } = i18n.global;
|
|
24368
23777
|
const emits = __emit;
|
|
@@ -24581,7 +23990,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24581
23990
|
}
|
|
24582
23991
|
});
|
|
24583
23992
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24584
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23993
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-Crr4Pg4x.js"));
|
|
24585
23994
|
const useSlidCaptcha = () => {
|
|
24586
23995
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24587
23996
|
const open = (config) => {
|
|
@@ -24600,7 +24009,7 @@ const useSlidCaptcha = () => {
|
|
|
24600
24009
|
close: unMount
|
|
24601
24010
|
};
|
|
24602
24011
|
};
|
|
24603
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
24012
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-Cv6MXbO3.js"));
|
|
24604
24013
|
const useYunpianCaptcha = () => {
|
|
24605
24014
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
24606
24015
|
const open = (config) => {
|
|
@@ -24675,6 +24084,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
24675
24084
|
}
|
|
24676
24085
|
});
|
|
24677
24086
|
const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24087
|
+
const AiLogoDark = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQgAAAAwCAYAAADtqOSLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA98SURBVHgB7V1dcttGEu4ZUIqlpMrkCQJX7Sa7TysfYB3qBJZOIPkEUk5g6gS2TmDqBJJPIMo5gOmn1Ca1ZeQEpLZiySsS0+kegDRJYAYAAZCyar4qJrQADAaYmZ7ur38I4ODg4GCAgIrx0W/7dwA71HATQfmzxyTgEMDrNwD6T4LeEBwcHO41SgsIEgjNMQkEBDxAgLYA9HNeGtDtewLE2d+DXg8cHBzuHZYWEKwpjEEd0ddDEgxNKIcAAE9+CH7pgoODw71BYQERaQzqJQmFY6gegRMUDg73B4UExH/9Z0cKoFOBxpAB0d0AcUI8RQAODg5rQ24B8bv/7FVNWoMJAdGa+z8EvT44ODisBZkCgk2KEeAlqf47sHoMN0A+cR4PB4f1QNoOrlk4MJp3oFaptTg4OMzAKiDGgG/qFA7k4rzIcc5zeCAY3I7aw5vx5fAm/Eif99efxm8Gt7ndwg4OK0fDdIA4B/JU4B7UAh3/cMLxD3SfQQbp+SDMi8Gn8Z5AOI/+hdF/BewIVO0B4tOWEM6MKojBn3e0ecn0Dczzeq0tEYBDKaQKiN/89g6C6pguoul9JvTC5d093w6IIAK6JhEYRX8nEhLblksDeAAQEo5iubAAen+3o0P68hocikGIPSHgZdohDMMX9L8ufCXgDYTmx/xGKWDY+raRqWUn2iJNFULhJ4+ofuu7zUKkv0GDwHPbRSwcfgjeMTdwzMJEQNhWIJrLhFKTlnJF7bVNx0PSNGCN4JctUT6ntU0DiE16+JlBFH0WeqoRnrU2M148Ch/SJQRIIf8FK8TMM7XpmfzpMyEJfQF9VHDmduDVQgjxCkRys6Wx2m1tbfSgCBQeCikOFv+MqNdS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OAIEibmGBJgiLm7jTKTpmplYp+h+MmEonY9BIQNSQo7uNyTxkR9/0OTtYM0A7SU9oHkgRDInG7GCQgmmgbBS2f0Q7M1eEy00zZK5p+FBKZqI6Zm2dYfqIzKJJQSCQSiUQikUgk7hL/B8KPBQaviqFDAAAAAElFTkSuQmCC";
|
|
24678
24089
|
function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
|
|
24679
24090
|
const { interval = 1e4, immediate = true } = options;
|
|
24680
24091
|
const timer = ref(null);
|
|
@@ -24766,45 +24177,46 @@ const _hoisted_21 = { key: 2 };
|
|
|
24766
24177
|
const _hoisted_22 = { class: "flex items-center justify-between" };
|
|
24767
24178
|
const _hoisted_23 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
|
|
24768
24179
|
const _hoisted_24 = { class: "text-[12px] leading-[32px]" };
|
|
24769
|
-
const _hoisted_25 = { class: "
|
|
24770
|
-
const _hoisted_26 = { class: "flex flex-col items-center justify-center
|
|
24771
|
-
const _hoisted_27 = ["
|
|
24772
|
-
const _hoisted_28 =
|
|
24180
|
+
const _hoisted_25 = { class: "text-[12px] leading-[20px] mt-[16px] text-[var(--devui-placeholder)] font-normal" };
|
|
24181
|
+
const _hoisted_26 = { class: "qrcode-container flex flex-col items-center justify-center" };
|
|
24182
|
+
const _hoisted_27 = { class: "flex flex-col items-center justify-center w-[180px] h-[180px] relative" };
|
|
24183
|
+
const _hoisted_28 = ["src"];
|
|
24184
|
+
const _hoisted_29 = {
|
|
24773
24185
|
key: 0,
|
|
24774
24186
|
class: "mask"
|
|
24775
24187
|
};
|
|
24776
|
-
const
|
|
24777
|
-
const
|
|
24778
|
-
const
|
|
24779
|
-
const
|
|
24188
|
+
const _hoisted_30 = { class: "flex gap-1 items-center justify-center text-[16px] flex-wrap font-medium" };
|
|
24189
|
+
const _hoisted_31 = { class: "text-[#252B3A]" };
|
|
24190
|
+
const _hoisted_32 = { class: "text-[var(--theme-link)]" };
|
|
24191
|
+
const _hoisted_33 = {
|
|
24780
24192
|
key: 1,
|
|
24781
24193
|
class: "flex flex-col gap-3 items-center justify-center"
|
|
24782
24194
|
};
|
|
24783
|
-
const
|
|
24784
|
-
const
|
|
24785
|
-
const
|
|
24195
|
+
const _hoisted_34 = { class: "text-[var(--color-success)]" };
|
|
24196
|
+
const _hoisted_35 = { class: "text-center" };
|
|
24197
|
+
const _hoisted_36 = {
|
|
24786
24198
|
key: 0,
|
|
24787
24199
|
class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
|
|
24788
24200
|
};
|
|
24789
|
-
const
|
|
24201
|
+
const _hoisted_37 = {
|
|
24790
24202
|
key: 0,
|
|
24791
24203
|
class: "login-modal-info h-[20px]"
|
|
24792
24204
|
};
|
|
24793
|
-
const
|
|
24794
|
-
const
|
|
24205
|
+
const _hoisted_38 = { class: "login-modal-info-left" };
|
|
24206
|
+
const _hoisted_39 = {
|
|
24795
24207
|
key: 0,
|
|
24796
24208
|
class: "mt-[18px]"
|
|
24797
24209
|
};
|
|
24798
|
-
const
|
|
24799
|
-
const
|
|
24800
|
-
const
|
|
24801
|
-
const
|
|
24802
|
-
const
|
|
24803
|
-
const
|
|
24804
|
-
const
|
|
24805
|
-
const
|
|
24806
|
-
const
|
|
24807
|
-
const
|
|
24210
|
+
const _hoisted_40 = { class: "flex justify-center" };
|
|
24211
|
+
const _hoisted_41 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
|
|
24212
|
+
const _hoisted_42 = { class: "harmony-icon" };
|
|
24213
|
+
const _hoisted_43 = { class: "w-[50px] h-[20px] last-login-img" };
|
|
24214
|
+
const _hoisted_44 = ["src"];
|
|
24215
|
+
const _hoisted_45 = { class: "ml-[8px] text-[12px]" };
|
|
24216
|
+
const _hoisted_46 = { class: "login-modal-footer flex items-center justify-center" };
|
|
24217
|
+
const _hoisted_47 = { key: 2 };
|
|
24218
|
+
const _hoisted_48 = { class: "line-clamp-2" };
|
|
24219
|
+
const _hoisted_49 = { class: "absolute-btn" };
|
|
24808
24220
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
24809
24221
|
...{
|
|
24810
24222
|
name: "GLoginModal"
|
|
@@ -24853,14 +24265,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24853
24265
|
const IconW = TransAssetsUrl(IconSource, "logo-wechat");
|
|
24854
24266
|
const IconHb = TransAssetsUrl(IconSource, "logo-hb");
|
|
24855
24267
|
const IconHW = TransAssetsUrl(IconSource, "logo-huawei");
|
|
24856
|
-
const logoConfig = getCurrentLogoMap();
|
|
24857
24268
|
const logoType = {
|
|
24858
|
-
black:
|
|
24859
|
-
white:
|
|
24269
|
+
black: "https://cdn-static.gitcode.com/static/images/gitcode-logo-white.png",
|
|
24270
|
+
white: "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png"
|
|
24860
24271
|
};
|
|
24861
24272
|
const AiLogoType = {
|
|
24862
|
-
black:
|
|
24863
|
-
white:
|
|
24273
|
+
black: AiLogoDark,
|
|
24274
|
+
white: AiLogoWhite
|
|
24864
24275
|
};
|
|
24865
24276
|
const formErrors = reactive({});
|
|
24866
24277
|
const extraErrors = reactive({
|
|
@@ -25140,12 +24551,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25140
24551
|
...VerifyPassword
|
|
25141
24552
|
]);
|
|
25142
24553
|
const status = ref(false);
|
|
25143
|
-
const hwStatus = ref(
|
|
24554
|
+
const hwStatus = ref(false);
|
|
25144
24555
|
const FormRef = shallowRef(null);
|
|
25145
24556
|
const tabPanel = ref("miniProgram");
|
|
25146
24557
|
const formType = ref(props.defaultType);
|
|
25147
24558
|
const showProtoCheck = ref(false);
|
|
25148
24559
|
const agreeAndLogin = () => {
|
|
24560
|
+
showProtoCheck.value = false;
|
|
25149
24561
|
status.value = true;
|
|
25150
24562
|
if (authType.value) {
|
|
25151
24563
|
pcAuthLogin(authType.value);
|
|
@@ -25273,14 +24685,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25273
24685
|
const slidCaptcha = useSlidCaptcha();
|
|
25274
24686
|
const yunpianCaptcha = useYunpianCaptcha();
|
|
25275
24687
|
const LoginCheck = async () => {
|
|
24688
|
+
const formData = await FormRef.value.ValidateForm();
|
|
25276
24689
|
let agreementFlag = false;
|
|
25277
24690
|
if (formType.value === "register" && !hwStatus.value) {
|
|
25278
24691
|
extraErrors.agreement = $t("gitCodeLayout.LoginModal.tips.pleaseReadHuaweiAgreement");
|
|
25279
24692
|
agreementFlag = true;
|
|
25280
24693
|
}
|
|
25281
24694
|
if (!status.value && !agreementFlag) {
|
|
25282
|
-
extraErrors.agreement = $t("gitCodeLayout.common.tips.agreementTip");
|
|
25283
24695
|
agreementFlag = true;
|
|
24696
|
+
showProtoCheck.value = true;
|
|
25284
24697
|
}
|
|
25285
24698
|
if (agreementFlag) {
|
|
25286
24699
|
AgreementWarn.value = true;
|
|
@@ -25289,7 +24702,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25289
24702
|
}, 500);
|
|
25290
24703
|
return false;
|
|
25291
24704
|
}
|
|
25292
|
-
const formData = await FormRef.value.ValidateForm();
|
|
25293
24705
|
extraErrors.agreement = "";
|
|
25294
24706
|
if (formData.type === "success") {
|
|
25295
24707
|
clearFormError();
|
|
@@ -25370,14 +24782,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25370
24782
|
var _a, _b;
|
|
25371
24783
|
if (formType.value === "register") {
|
|
25372
24784
|
useReport("signup_submit", {}, API.report);
|
|
25373
|
-
if (!status.value) {
|
|
25374
|
-
extraErrors.agreement = $t("gitCodeLayout.common.tips.agreementTip");
|
|
25375
|
-
AgreementWarn.value = true;
|
|
25376
|
-
setTimeout(() => {
|
|
25377
|
-
AgreementWarn.value = false;
|
|
25378
|
-
}, 500);
|
|
25379
|
-
return false;
|
|
25380
|
-
}
|
|
25381
24785
|
}
|
|
25382
24786
|
const formData = await ((_a = FormRef.value) == null ? void 0 : _a.ValidateForm());
|
|
25383
24787
|
if (!formData || formData.type === "fail") return false;
|
|
@@ -25431,8 +24835,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25431
24835
|
}
|
|
25432
24836
|
};
|
|
25433
24837
|
const links = {
|
|
25434
|
-
agreement:
|
|
25435
|
-
privacy:
|
|
24838
|
+
agreement: "https://docs.gitcode.com/docs/help/home/protocol/terms-of-service",
|
|
24839
|
+
privacy: "https://docs.gitcode.com/docs/help/home/protocol/privacy-policy"
|
|
25436
24840
|
};
|
|
25437
24841
|
const links_hw = {
|
|
25438
24842
|
agreement: "https://www.huaweicloud.com/declaration/sa_cua.html",
|
|
@@ -25806,7 +25210,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25806
25210
|
);
|
|
25807
25211
|
function checkAgree() {
|
|
25808
25212
|
if (!status.value) {
|
|
25809
|
-
extraErrors.agreement = $t("gitCodeLayout.common.tips.
|
|
25213
|
+
extraErrors.agreement = $t("gitCodeLayout.common.tips.readPrivacyPolicy");
|
|
25810
25214
|
AgreementWarn.value = true;
|
|
25811
25215
|
showProtoCheck.value = true;
|
|
25812
25216
|
setTimeout(() => {
|
|
@@ -26017,7 +25421,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26017
25421
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
26018
25422
|
createVNode(unref(Modal), {
|
|
26019
25423
|
modelValue: unref(vModels),
|
|
26020
|
-
"onUpdate:modelValue": _cache[
|
|
25424
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => isRef(vModels) ? vModels.value = $event : null),
|
|
26021
25425
|
"show-close": false,
|
|
26022
25426
|
"lock-scroll": _ctx.lockScroll,
|
|
26023
25427
|
draggable: _ctx.draggable,
|
|
@@ -26135,7 +25539,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26135
25539
|
class: "text-[var(--theme-link)] cursor-pointer hover:underline"
|
|
26136
25540
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
|
|
26137
25541
|
])
|
|
26138
|
-
])
|
|
25542
|
+
]),
|
|
25543
|
+
createElementVNode("div", _hoisted_25, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)
|
|
26139
25544
|
])) : createCommentVNode("", true),
|
|
26140
25545
|
formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
|
|
26141
25546
|
key: 3,
|
|
@@ -26151,14 +25556,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26151
25556
|
})
|
|
26152
25557
|
}, {
|
|
26153
25558
|
default: withCtx(() => [
|
|
26154
|
-
createElementVNode("div",
|
|
26155
|
-
createElementVNode("div",
|
|
25559
|
+
createElementVNode("div", _hoisted_26, [
|
|
25560
|
+
createElementVNode("div", _hoisted_27, [
|
|
26156
25561
|
createElementVNode("img", {
|
|
26157
25562
|
src: miniProgramInfo.value.qrcode,
|
|
26158
25563
|
alt: "小程序二维码",
|
|
26159
25564
|
class: "w-[180px] h-[180px]"
|
|
26160
|
-
}, null, 8,
|
|
26161
|
-
miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div",
|
|
25565
|
+
}, null, 8, _hoisted_28),
|
|
25566
|
+
miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_29, [
|
|
26162
25567
|
miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", {
|
|
26163
25568
|
key: 0,
|
|
26164
25569
|
onClick: getMiniProgramQrCode,
|
|
@@ -26169,18 +25574,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26169
25574
|
size: "18",
|
|
26170
25575
|
color: "#3B3E55"
|
|
26171
25576
|
}),
|
|
26172
|
-
createElementVNode("div",
|
|
26173
|
-
createElementVNode("div",
|
|
26174
|
-
createElementVNode("button",
|
|
25577
|
+
createElementVNode("div", _hoisted_30, [
|
|
25578
|
+
createElementVNode("div", _hoisted_31, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
|
|
25579
|
+
createElementVNode("button", _hoisted_32, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
|
|
26175
25580
|
])
|
|
26176
25581
|
])) : createCommentVNode("", true),
|
|
26177
|
-
["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div",
|
|
26178
|
-
createElementVNode("div",
|
|
26179
|
-
createElementVNode("div",
|
|
25582
|
+
["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_33, [
|
|
25583
|
+
createElementVNode("div", _hoisted_34, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
|
|
25584
|
+
createElementVNode("div", _hoisted_35, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
|
|
26180
25585
|
])) : createCommentVNode("", true)
|
|
26181
25586
|
])) : createCommentVNode("", true)
|
|
26182
25587
|
]),
|
|
26183
|
-
!["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p",
|
|
25588
|
+
!["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_36, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
|
|
26184
25589
|
key: 1,
|
|
26185
25590
|
onClick: getMiniProgramQrCode,
|
|
26186
25591
|
class: "mt-2"
|
|
@@ -26212,8 +25617,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26212
25617
|
submit: withCtx(() => {
|
|
26213
25618
|
var _a2;
|
|
26214
25619
|
return [
|
|
26215
|
-
formType.value === "login" && tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div",
|
|
26216
|
-
createElementVNode("div",
|
|
25620
|
+
formType.value === "login" && tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_37, [
|
|
25621
|
+
createElementVNode("div", _hoisted_38, [
|
|
26217
25622
|
createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
|
|
26218
25623
|
errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
26219
25624
|
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
|
|
@@ -26231,7 +25636,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26231
25636
|
])
|
|
26232
25637
|
])) : createCommentVNode("", true),
|
|
26233
25638
|
formType.value === "login" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
26234
|
-
tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div",
|
|
25639
|
+
tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_39, [
|
|
26235
25640
|
createVNode(unref(Button), {
|
|
26236
25641
|
color: "primary",
|
|
26237
25642
|
variant: "solid",
|
|
@@ -26249,7 +25654,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26249
25654
|
createElementVNode("div", {
|
|
26250
25655
|
class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
|
|
26251
25656
|
}, [
|
|
26252
|
-
createElementVNode("div",
|
|
25657
|
+
createElementVNode("div", _hoisted_40, [
|
|
26253
25658
|
createVNode(_sfc_main$8, {
|
|
26254
25659
|
modelValue: status.value,
|
|
26255
25660
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => status.value = $event),
|
|
@@ -26257,31 +25662,31 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26257
25662
|
}, null, 8, ["modelValue"])
|
|
26258
25663
|
])
|
|
26259
25664
|
], 2),
|
|
26260
|
-
createElementVNode("div",
|
|
25665
|
+
createElementVNode("div", _hoisted_41, [
|
|
26261
25666
|
_ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
|
|
26262
25667
|
key: 0,
|
|
26263
25668
|
class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer",
|
|
26264
25669
|
onClick: withModifiers(handleRegisterHarmony, ["stop"])
|
|
26265
25670
|
}, [
|
|
26266
|
-
createElementVNode("div",
|
|
26267
|
-
_cache[
|
|
25671
|
+
createElementVNode("div", _hoisted_42, [
|
|
25672
|
+
_cache[18] || (_cache[18] = createElementVNode("img", {
|
|
26268
25673
|
src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
|
|
26269
25674
|
alt: "",
|
|
26270
25675
|
class: "w-[32px] h-[32px] inline-block harmony-icon-img"
|
|
26271
25676
|
}, null, -1)),
|
|
26272
|
-
createElementVNode("div",
|
|
25677
|
+
createElementVNode("div", _hoisted_43, [
|
|
26273
25678
|
recentLoginType.value === unref(LoginMethodEnum).HARMONY ? (openBlock(), createElementBlock("img", {
|
|
26274
25679
|
key: 0,
|
|
26275
25680
|
src: unref(recentLoginImg),
|
|
26276
25681
|
class: "w-[50px] h-[20px]"
|
|
26277
|
-
}, null, 8,
|
|
25682
|
+
}, null, 8, _hoisted_44)) : createCommentVNode("", true)
|
|
26278
25683
|
])
|
|
26279
25684
|
]),
|
|
26280
|
-
createElementVNode("span",
|
|
25685
|
+
createElementVNode("span", _hoisted_45, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
|
|
26281
25686
|
])) : createCommentVNode("", true)
|
|
26282
25687
|
])
|
|
26283
25688
|
])) : createCommentVNode("", true),
|
|
26284
|
-
createElementVNode("div",
|
|
25689
|
+
createElementVNode("div", _hoisted_46, [
|
|
26285
25690
|
createVNode(GAuth, {
|
|
26286
25691
|
logos,
|
|
26287
25692
|
onAuth: pcAuthLogin,
|
|
@@ -26290,26 +25695,36 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26290
25695
|
}, null, 8, ["logos", "recentLoginType"])
|
|
26291
25696
|
])
|
|
26292
25697
|
], 64)) : createCommentVNode("", true),
|
|
26293
|
-
formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div",
|
|
25698
|
+
formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_47, [
|
|
26294
25699
|
createElementVNode("div", {
|
|
26295
25700
|
class: normalizeClass([
|
|
26296
25701
|
"text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]",
|
|
26297
25702
|
formType.value === "register" ? "mt-[-8px]" : ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "cursor-pointer" : ""
|
|
26298
25703
|
])
|
|
26299
25704
|
}, [
|
|
26300
|
-
createElementVNode("span",
|
|
25705
|
+
createElementVNode("span", _hoisted_48, toDisplayString$1(errorMsg.value), 1)
|
|
26301
25706
|
], 2),
|
|
26302
25707
|
createElementVNode("div", {
|
|
26303
25708
|
class: normalizeClass(["register-agree mt-[16px]", [AgreementWarn.value ? "shaking-box" : ""]])
|
|
26304
25709
|
}, [
|
|
25710
|
+
createVNode(_sfc_main$7, {
|
|
25711
|
+
modelValue: hwStatus.value,
|
|
25712
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => hwStatus.value = $event),
|
|
25713
|
+
onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ, "huawei")),
|
|
25714
|
+
"agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
|
|
25715
|
+
"privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
|
|
25716
|
+
onClick: _cache[11] || (_cache[11] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
|
|
25717
|
+
}, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
|
|
26305
25718
|
createVNode(_sfc_main$7, {
|
|
26306
25719
|
modelValue: status.value,
|
|
26307
|
-
"onUpdate:modelValue": _cache[
|
|
26308
|
-
onDeclares: _cache[
|
|
26309
|
-
|
|
26310
|
-
|
|
25720
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => status.value = $event),
|
|
25721
|
+
onDeclares: _cache[13] || (_cache[13] = (typ) => handleDisplay(typ)),
|
|
25722
|
+
"agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
|
|
25723
|
+
"privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
|
|
25724
|
+
onClick: _cache[14] || (_cache[14] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
|
|
25725
|
+
}, null, 8, ["modelValue", "agreement-text", "privacy-text"])
|
|
26311
25726
|
], 2),
|
|
26312
|
-
createElementVNode("div",
|
|
25727
|
+
createElementVNode("div", _hoisted_49, [
|
|
26313
25728
|
createVNode(unref(Button), {
|
|
26314
25729
|
color: "primary",
|
|
26315
25730
|
variant: "solid",
|
|
@@ -26363,9 +25778,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26363
25778
|
]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
|
|
26364
25779
|
createVNode(_sfc_main$5, {
|
|
26365
25780
|
visible: showProtoCheck.value,
|
|
26366
|
-
"onUpdate:visible": _cache[
|
|
25781
|
+
"onUpdate:visible": _cache[16] || (_cache[16] = ($event) => showProtoCheck.value = $event),
|
|
26367
25782
|
onConfirm: agreeAndLogin,
|
|
26368
|
-
onDeclares: _cache[
|
|
25783
|
+
onDeclares: _cache[17] || (_cache[17] = (typ) => handleDisplay(typ))
|
|
26369
25784
|
}, null, 8, ["visible"])
|
|
26370
25785
|
], 64);
|
|
26371
25786
|
};
|
|
@@ -26613,54 +26028,52 @@ const index = {
|
|
|
26613
26028
|
}
|
|
26614
26029
|
};
|
|
26615
26030
|
export {
|
|
26616
|
-
|
|
26617
|
-
|
|
26618
|
-
|
|
26619
|
-
|
|
26031
|
+
LANG_EN as A,
|
|
26032
|
+
emitEvent as B,
|
|
26033
|
+
isHttps as C,
|
|
26034
|
+
_sfc_main$z as D,
|
|
26620
26035
|
EVENT_NAME as E,
|
|
26621
|
-
|
|
26036
|
+
loadAsideData as F,
|
|
26622
26037
|
GIcon as G,
|
|
26623
|
-
|
|
26624
|
-
|
|
26625
|
-
|
|
26626
|
-
|
|
26038
|
+
asideRequest as H,
|
|
26039
|
+
ToolsFloat as I,
|
|
26040
|
+
_sfc_main as J,
|
|
26041
|
+
GitCodeAside as K,
|
|
26627
26042
|
LANG_ZH as L,
|
|
26628
|
-
|
|
26629
|
-
|
|
26630
|
-
|
|
26631
|
-
|
|
26632
|
-
|
|
26043
|
+
GitCodeHeader as M,
|
|
26044
|
+
useLogin as N,
|
|
26045
|
+
setLayoutConfig as O,
|
|
26046
|
+
GitCodeLayoutEmitter as P,
|
|
26047
|
+
setTheme as Q,
|
|
26633
26048
|
REPO_MODULE as R,
|
|
26634
26049
|
SceneValue as S,
|
|
26635
26050
|
TOPIC_TYPE as T,
|
|
26636
|
-
|
|
26637
|
-
setTheme as V,
|
|
26638
|
-
index as W,
|
|
26051
|
+
index as U,
|
|
26639
26052
|
_export_sfc as _,
|
|
26640
26053
|
i18n as a,
|
|
26641
26054
|
REPO_EVENT as b,
|
|
26642
26055
|
REPO_TYPE as c,
|
|
26643
|
-
|
|
26056
|
+
useRequestReport as d,
|
|
26644
26057
|
extractRepoInfoWithURL as e,
|
|
26645
|
-
|
|
26646
|
-
|
|
26058
|
+
useTimeFormat as f,
|
|
26059
|
+
useCookie as g,
|
|
26647
26060
|
headRequest as h,
|
|
26648
26061
|
isPhone as i,
|
|
26649
|
-
|
|
26650
|
-
|
|
26062
|
+
usePageResize as j,
|
|
26063
|
+
isGstarRepo as k,
|
|
26651
26064
|
localStorage$2 as l,
|
|
26652
|
-
|
|
26653
|
-
|
|
26654
|
-
|
|
26655
|
-
|
|
26656
|
-
|
|
26065
|
+
_sfc_main$y as m,
|
|
26066
|
+
isIncubationRepo as n,
|
|
26067
|
+
highlightWords as o,
|
|
26068
|
+
_frEventTrack as p,
|
|
26069
|
+
LANG_KEY as q,
|
|
26657
26070
|
reqCatch as r,
|
|
26658
26071
|
setLoginTriggerSource as s,
|
|
26659
|
-
|
|
26072
|
+
transferNumber as t,
|
|
26660
26073
|
useModel as u,
|
|
26661
26074
|
vElementExposure as v,
|
|
26662
|
-
|
|
26663
|
-
|
|
26664
|
-
|
|
26665
|
-
|
|
26075
|
+
getLocaleLang as w,
|
|
26076
|
+
useLayoutConfig as x,
|
|
26077
|
+
ThemeType as y,
|
|
26078
|
+
currentTheme as z
|
|
26666
26079
|
};
|