vue-layout-gitcode 1.8.7 → 1.8.8
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-D6x4tCs_.js → GloabarSearch-8fg0bSuQ.js} +3 -3
- package/{MenuItem-CGSHPKaT.js → MenuItem-Dsabhftc.js} +1 -1
- package/{ProjectMenuList-C39jfxoF.js → ProjectMenuList-BfvIv1As.js} +3 -3
- package/{ProjectMenuListV2-BXsHErIw.js → ProjectMenuListV2-BrEx9s4Q.js} +2 -2
- package/{ProjectSearch-Dflk10Zg.js → ProjectSearch-BjHHKIj9.js} +1 -1
- package/{SearchHistoryList-DrKJjqBc.js → SearchHistoryList-H8gk4eVl.js} +1 -1
- package/{SearchPrefixTag-BM7shZca.js → SearchPrefixTag-DgDiVIap.js} +1 -1
- package/{SearchRecommed--r5WW9UN.js → SearchRecommed-BEfIzltH.js} +2 -2
- package/{SearchScopeList-UH2I4CSA.js → SearchScopeList-sCJvLGwz.js} +1 -1
- package/{UserSearch-D45BHc7U.js → UserSearch-B7z6x4K2.js} +2 -11
- package/{index-fG2saP6z.js → index-B8PV8ZO9.js} +3 -3
- package/{index-DnqIffve.js → index-DCeP8y_a.js} +44 -3
- package/{index-BZSDYSqR.js → index-DY2GOaRC.js} +9 -1
- package/{index-DcvQQTHs.js → index-lBPEdp0C.js} +148 -207
- package/index.js +11 -11
- package/{notice-Bw5A-ypV.js → notice-Cbmusvpw.js} +1 -1
- package/package.json +2 -2
- package/style.css +1 -1
- package/{transWebUrl-DjzQtO0_.js → transWebUrl-DBP2L5dq.js} +1 -1
|
@@ -105,26 +105,12 @@ const _export_sfc = (sfc, props) => {
|
|
|
105
105
|
return target;
|
|
106
106
|
};
|
|
107
107
|
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
108
|
-
const transformUrl$1 = (url) => {
|
|
109
|
-
var _a;
|
|
110
|
-
if (typeof window !== "undefined" && typeof location !== "undefined") {
|
|
111
|
-
const host = (_a = location.host) == null ? void 0 : _a.replace(/^ai\./, "");
|
|
112
|
-
if (host.includes("gitcode.host")) {
|
|
113
|
-
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
114
|
-
}
|
|
115
|
-
if (url == null ? void 0 : url.startsWith("https://cdn-")) {
|
|
116
|
-
return url;
|
|
117
|
-
}
|
|
118
|
-
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
119
|
-
}
|
|
120
|
-
return url;
|
|
121
|
-
};
|
|
122
108
|
const defaultConfig = {
|
|
123
109
|
VITE_ENV: "production",
|
|
124
110
|
VITE_HOST: "https://gitcode.com",
|
|
125
111
|
VITE_HOST_TIANQI: "https://tianqi.gitcode.com",
|
|
126
112
|
VITE_API_HOST: "https://web-api.gitcode.com",
|
|
127
|
-
VITE_AD_LINK: "https://cdn-static.gitcode.
|
|
113
|
+
VITE_AD_LINK: "https://cdn-static.gitcode.com/adList/active.json",
|
|
128
114
|
VITE_NEWS_HOST: "https://news.gitcode.com",
|
|
129
115
|
VITE_AI_HOST: "https://ai.gitcode.com",
|
|
130
116
|
VITE_INCUBATION_TOPIC: "6656c64efd46e722f6299761",
|
|
@@ -134,7 +120,7 @@ const defaultConfig = {
|
|
|
134
120
|
VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
|
|
135
121
|
VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
|
|
136
122
|
};
|
|
137
|
-
|
|
123
|
+
let layoutConfig$5 = reactive({ ...defaultConfig });
|
|
138
124
|
function setLayoutConfig(customConfig) {
|
|
139
125
|
Object.assign(layoutConfig$5, customConfig);
|
|
140
126
|
}
|
|
@@ -265,6 +251,20 @@ const useRequestReport = (request, globalStore) => {
|
|
|
265
251
|
useReport: useReport2
|
|
266
252
|
};
|
|
267
253
|
};
|
|
254
|
+
const handleReportParamsByDomain = (reportString) => {
|
|
255
|
+
var _a;
|
|
256
|
+
const domainMap = {
|
|
257
|
+
blog: "blog_"
|
|
258
|
+
};
|
|
259
|
+
const domain = ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.hostname) || "";
|
|
260
|
+
for (const key in domainMap) {
|
|
261
|
+
if (domain.includes(key)) {
|
|
262
|
+
reportString = domainMap[key] + reportString;
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return reportString;
|
|
267
|
+
};
|
|
268
268
|
const isBrowser$1 = typeof window !== "undefined" && typeof window.localStorage !== "undefined";
|
|
269
269
|
let localStorage$1;
|
|
270
270
|
if (isBrowser$1) {
|
|
@@ -388,7 +388,7 @@ function udeskInit(config = {}, open = false) {
|
|
|
388
388
|
g.src = b;
|
|
389
389
|
c = h2.getElementsByTagName(c)[0];
|
|
390
390
|
c.parentNode.insertBefore(g, c);
|
|
391
|
-
})(window, document, "script", "https://cdn-static.gitcode.
|
|
391
|
+
})(window, document, "script", "https://cdn-static.gitcode.com/static/js/udeskApi.js", "ud");
|
|
392
392
|
ud({
|
|
393
393
|
code: "24581k88",
|
|
394
394
|
link: "https://gitcode.s2.udesk.cn/im_client/?web_plugin_id=57707",
|
|
@@ -491,7 +491,7 @@ const OSS_IMAGES = {
|
|
|
491
491
|
};
|
|
492
492
|
const GOTO_QUICK_LOGIN = "gotoQuickLogin";
|
|
493
493
|
const DEFAULT_COUNTRY = "CN_0086";
|
|
494
|
-
const IMAGE_CDN_PREFIX = "https://cdn-static.gitcode.
|
|
494
|
+
const IMAGE_CDN_PREFIX = "https://cdn-static.gitcode.com";
|
|
495
495
|
const HARMONY_VISITED_DATE = "harmony-visitedDate";
|
|
496
496
|
const HARMONY_SURVEY_DELAY = "harmony-survey-delay";
|
|
497
497
|
const UTM_SOURCE = "utm_source";
|
|
@@ -511,8 +511,7 @@ const TOOLS_FLOAT_COLLAPSE_STATUS = {
|
|
|
511
511
|
const TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO = "asideTool_collapse_status_repo";
|
|
512
512
|
const TOOLS_FLOAT_COLLAPSE_STATUS_KEY = "asideTool_collapse_status";
|
|
513
513
|
const TOOLS_FLOAT_COLLAPSE_DATE_KEY = "asideTool_collapse_date";
|
|
514
|
-
|
|
515
|
-
/*! @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 */
|
|
514
|
+
/*! @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 */
|
|
516
515
|
const {
|
|
517
516
|
entries,
|
|
518
517
|
setPrototypeOf,
|
|
@@ -540,18 +539,12 @@ if (!seal) {
|
|
|
540
539
|
};
|
|
541
540
|
}
|
|
542
541
|
if (!apply$1) {
|
|
543
|
-
apply$1 = function apply2(
|
|
544
|
-
|
|
545
|
-
args[_key - 2] = arguments[_key];
|
|
546
|
-
}
|
|
547
|
-
return func.apply(thisArg, args);
|
|
542
|
+
apply$1 = function apply2(fun, thisValue, args) {
|
|
543
|
+
return fun.apply(thisValue, args);
|
|
548
544
|
};
|
|
549
545
|
}
|
|
550
546
|
if (!construct) {
|
|
551
|
-
construct = function construct2(Func) {
|
|
552
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
553
|
-
args[_key2 - 1] = arguments[_key2];
|
|
554
|
-
}
|
|
547
|
+
construct = function construct2(Func, args) {
|
|
555
548
|
return new Func(...args);
|
|
556
549
|
};
|
|
557
550
|
}
|
|
@@ -574,18 +567,18 @@ function unapply(func) {
|
|
|
574
567
|
if (thisArg instanceof RegExp) {
|
|
575
568
|
thisArg.lastIndex = 0;
|
|
576
569
|
}
|
|
577
|
-
for (var
|
|
578
|
-
args[
|
|
570
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
571
|
+
args[_key - 1] = arguments[_key];
|
|
579
572
|
}
|
|
580
573
|
return apply$1(func, thisArg, args);
|
|
581
574
|
};
|
|
582
575
|
}
|
|
583
|
-
function unconstruct(
|
|
576
|
+
function unconstruct(func) {
|
|
584
577
|
return function() {
|
|
585
|
-
for (var
|
|
586
|
-
args[
|
|
578
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
579
|
+
args[_key2] = arguments[_key2];
|
|
587
580
|
}
|
|
588
|
-
return construct(
|
|
581
|
+
return construct(func, args);
|
|
589
582
|
};
|
|
590
583
|
}
|
|
591
584
|
function addToSet(set, array) {
|
|
@@ -652,15 +645,15 @@ function lookupGetter(object, prop) {
|
|
|
652
645
|
}
|
|
653
646
|
return fallbackValue;
|
|
654
647
|
}
|
|
655
|
-
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", "
|
|
656
|
-
const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "
|
|
648
|
+
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"]);
|
|
649
|
+
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"]);
|
|
657
650
|
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"]);
|
|
658
651
|
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"]);
|
|
659
652
|
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"]);
|
|
660
653
|
const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
|
|
661
654
|
const text = freeze(["#text"]);
|
|
662
|
-
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", "
|
|
663
|
-
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", "
|
|
655
|
+
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"]);
|
|
656
|
+
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"]);
|
|
664
657
|
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"]);
|
|
665
658
|
const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
|
|
666
659
|
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
|
|
@@ -669,7 +662,7 @@ const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
|
|
|
669
662
|
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
|
|
670
663
|
const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
|
|
671
664
|
const IS_ALLOWED_URI = seal(
|
|
672
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp
|
|
665
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
673
666
|
// eslint-disable-line no-useless-escape
|
|
674
667
|
);
|
|
675
668
|
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
@@ -743,7 +736,7 @@ const _createHooksMap = function _createHooksMap2() {
|
|
|
743
736
|
function createDOMPurify() {
|
|
744
737
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
745
738
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
746
|
-
DOMPurify.version = "3.
|
|
739
|
+
DOMPurify.version = "3.2.5";
|
|
747
740
|
DOMPurify.removed = [];
|
|
748
741
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
749
742
|
DOMPurify.isSupported = false;
|
|
@@ -829,20 +822,6 @@ function createDOMPurify() {
|
|
|
829
822
|
}));
|
|
830
823
|
let FORBID_TAGS = null;
|
|
831
824
|
let FORBID_ATTR = null;
|
|
832
|
-
const EXTRA_ELEMENT_HANDLING = Object.seal(create$1(null, {
|
|
833
|
-
tagCheck: {
|
|
834
|
-
writable: true,
|
|
835
|
-
configurable: false,
|
|
836
|
-
enumerable: true,
|
|
837
|
-
value: null
|
|
838
|
-
},
|
|
839
|
-
attributeCheck: {
|
|
840
|
-
writable: true,
|
|
841
|
-
configurable: false,
|
|
842
|
-
enumerable: true,
|
|
843
|
-
value: null
|
|
844
|
-
}
|
|
845
|
-
}));
|
|
846
825
|
let ALLOW_ARIA_ATTR = true;
|
|
847
826
|
let ALLOW_DATA_ATTR = true;
|
|
848
827
|
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
|
@@ -904,8 +883,8 @@ function createDOMPurify() {
|
|
|
904
883
|
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;
|
|
905
884
|
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;
|
|
906
885
|
FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
907
|
-
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) :
|
|
908
|
-
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) :
|
|
886
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
|
|
887
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
|
|
909
888
|
USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
|
|
910
889
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
|
|
911
890
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
|
|
@@ -966,24 +945,16 @@ function createDOMPurify() {
|
|
|
966
945
|
}
|
|
967
946
|
}
|
|
968
947
|
if (cfg.ADD_TAGS) {
|
|
969
|
-
if (
|
|
970
|
-
|
|
971
|
-
} else {
|
|
972
|
-
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
973
|
-
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
974
|
-
}
|
|
975
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
948
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
949
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
976
950
|
}
|
|
951
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
977
952
|
}
|
|
978
953
|
if (cfg.ADD_ATTR) {
|
|
979
|
-
if (
|
|
980
|
-
|
|
981
|
-
} else {
|
|
982
|
-
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
983
|
-
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
984
|
-
}
|
|
985
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
954
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
955
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
986
956
|
}
|
|
957
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
987
958
|
}
|
|
988
959
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
989
960
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -1177,7 +1148,7 @@ function createDOMPurify() {
|
|
|
1177
1148
|
tagName,
|
|
1178
1149
|
allowedTags: ALLOWED_TAGS
|
|
1179
1150
|
});
|
|
1180
|
-
if (
|
|
1151
|
+
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
1181
1152
|
_forceRemove(currentNode);
|
|
1182
1153
|
return true;
|
|
1183
1154
|
}
|
|
@@ -1189,7 +1160,7 @@ function createDOMPurify() {
|
|
|
1189
1160
|
_forceRemove(currentNode);
|
|
1190
1161
|
return true;
|
|
1191
1162
|
}
|
|
1192
|
-
if (!
|
|
1163
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
1193
1164
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
1194
1165
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
1195
1166
|
return false;
|
|
@@ -1242,13 +1213,12 @@ function createDOMPurify() {
|
|
|
1242
1213
|
}
|
|
1243
1214
|
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
|
|
1244
1215
|
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
|
|
1245
|
-
else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ;
|
|
1246
1216
|
else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1247
1217
|
if (
|
|
1248
1218
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1249
1219
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1250
1220
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
1251
|
-
_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
|
|
1221
|
+
_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
|
|
1252
1222
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1253
1223
|
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))
|
|
1254
1224
|
) ;
|
|
@@ -1291,8 +1261,7 @@ function createDOMPurify() {
|
|
|
1291
1261
|
value: attrValue
|
|
1292
1262
|
} = attr;
|
|
1293
1263
|
const lcName = transformCaseFunc(name);
|
|
1294
|
-
|
|
1295
|
-
let value = name === "value" ? initValue : stringTrim(initValue);
|
|
1264
|
+
let value = name === "value" ? attrValue : stringTrim(attrValue);
|
|
1296
1265
|
hookEvent.attrName = lcName;
|
|
1297
1266
|
hookEvent.attrValue = value;
|
|
1298
1267
|
hookEvent.keepAttr = true;
|
|
@@ -1303,19 +1272,15 @@ function createDOMPurify() {
|
|
|
1303
1272
|
_removeAttribute(name, currentNode);
|
|
1304
1273
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
1305
1274
|
}
|
|
1306
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title
|
|
1307
|
-
_removeAttribute(name, currentNode);
|
|
1308
|
-
continue;
|
|
1309
|
-
}
|
|
1310
|
-
if (lcName === "attributename" && stringMatch(value, "href")) {
|
|
1275
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
1311
1276
|
_removeAttribute(name, currentNode);
|
|
1312
1277
|
continue;
|
|
1313
1278
|
}
|
|
1314
1279
|
if (hookEvent.forceKeepAttr) {
|
|
1315
1280
|
continue;
|
|
1316
1281
|
}
|
|
1282
|
+
_removeAttribute(name, currentNode);
|
|
1317
1283
|
if (!hookEvent.keepAttr) {
|
|
1318
|
-
_removeAttribute(name, currentNode);
|
|
1319
1284
|
continue;
|
|
1320
1285
|
}
|
|
1321
1286
|
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
@@ -1329,7 +1294,6 @@ function createDOMPurify() {
|
|
|
1329
1294
|
}
|
|
1330
1295
|
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
1331
1296
|
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
1332
|
-
_removeAttribute(name, currentNode);
|
|
1333
1297
|
continue;
|
|
1334
1298
|
}
|
|
1335
1299
|
if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
|
|
@@ -1347,21 +1311,18 @@ function createDOMPurify() {
|
|
|
1347
1311
|
}
|
|
1348
1312
|
}
|
|
1349
1313
|
}
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
currentNode.setAttribute(name, value);
|
|
1356
|
-
}
|
|
1357
|
-
if (_isClobbered(currentNode)) {
|
|
1358
|
-
_forceRemove(currentNode);
|
|
1359
|
-
} else {
|
|
1360
|
-
arrayPop(DOMPurify.removed);
|
|
1361
|
-
}
|
|
1362
|
-
} catch (_) {
|
|
1363
|
-
_removeAttribute(name, currentNode);
|
|
1314
|
+
try {
|
|
1315
|
+
if (namespaceURI) {
|
|
1316
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
1317
|
+
} else {
|
|
1318
|
+
currentNode.setAttribute(name, value);
|
|
1364
1319
|
}
|
|
1320
|
+
if (_isClobbered(currentNode)) {
|
|
1321
|
+
_forceRemove(currentNode);
|
|
1322
|
+
} else {
|
|
1323
|
+
arrayPop(DOMPurify.removed);
|
|
1324
|
+
}
|
|
1325
|
+
} catch (_) {
|
|
1365
1326
|
}
|
|
1366
1327
|
}
|
|
1367
1328
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
@@ -7614,7 +7575,7 @@ const gitCodeLayout$1 = {
|
|
|
7614
7575
|
informationCenter: "资讯中心",
|
|
7615
7576
|
feedbackCenter: "反馈中心",
|
|
7616
7577
|
companyInformation: "重庆开源共创",
|
|
7617
|
-
recordInformation: "渝ICP备2023009037
|
|
7578
|
+
recordInformation: "渝ICP备2023009037号",
|
|
7618
7579
|
technicalSupport: "技术支持:",
|
|
7619
7580
|
HWCloud: "华为云",
|
|
7620
7581
|
userFeedback01: "在线客服",
|
|
@@ -7938,7 +7899,7 @@ const gitCodeLayout = {
|
|
|
7938
7899
|
slogon: "Co-create GitCode, the Code Home for Developers",
|
|
7939
7900
|
digest: "ChongQingKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
|
|
7940
7901
|
companyInformation: "ChongQingKaiYuanGongChuang",
|
|
7941
|
-
recordInformation: "Yu ICP No. 2023009037
|
|
7902
|
+
recordInformation: "Yu ICP No. 2023009037",
|
|
7942
7903
|
searchPlaceholder2: "Type <kbd>/</kbd> to search",
|
|
7943
7904
|
searchPlaceholder: "Search",
|
|
7944
7905
|
alreadyFollowed: "Followed",
|
|
@@ -11087,7 +11048,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11087
11048
|
const emits = __emit;
|
|
11088
11049
|
const toggleGrowthCenter = () => {
|
|
11089
11050
|
if (!props.isLogin) {
|
|
11090
|
-
|
|
11051
|
+
const reportGrowthCenterString = handleReportParamsByDomain("toolsFloat_growthCenter");
|
|
11052
|
+
emitEvent("login", { loginTriggerSource: reportGrowthCenterString });
|
|
11091
11053
|
return;
|
|
11092
11054
|
}
|
|
11093
11055
|
emits("toggle-growth-center");
|
|
@@ -11288,7 +11250,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11288
11250
|
createElementVNode("div", _hoisted_2$k, [
|
|
11289
11251
|
_cache[5] || (_cache[5] = createElementVNode("img", {
|
|
11290
11252
|
class: "common-icon inline-block h-[20px] w-[20px]",
|
|
11291
|
-
src: "https://cdn-static.gitcode.
|
|
11253
|
+
src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
|
|
11292
11254
|
alt: ""
|
|
11293
11255
|
}, null, -1)),
|
|
11294
11256
|
!_ctx.isLogin || !isSignIn.value ? (openBlock(), createElementBlock("div", _hoisted_3$h, toDisplayString$1(!_ctx.isLogin ? unref(t2)("gitCodeLayout.growthCenter.receive") : unref(t2)("gitCodeLayout.growthCenter.signIn")), 1)) : createCommentVNode("", true)
|
|
@@ -11319,7 +11281,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11319
11281
|
}, _cache[6] || (_cache[6] = [
|
|
11320
11282
|
createElementVNode("img", {
|
|
11321
11283
|
class: "inline-block h-[20px] w-[20px]",
|
|
11322
|
-
src: "https://cdn-static.gitcode.
|
|
11284
|
+
src: "https://cdn-static.gitcode.com/static/images/desk/kefu.png",
|
|
11323
11285
|
alt: ""
|
|
11324
11286
|
}, null, -1),
|
|
11325
11287
|
createElementVNode("div", null, [
|
|
@@ -11340,7 +11302,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11340
11302
|
createElementVNode("div", _hoisted_11$4, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
|
|
11341
11303
|
_cache[7] || (_cache[7] = createElementVNode("img", {
|
|
11342
11304
|
class: "qrcode",
|
|
11343
|
-
src: "https://cdn-static.gitcode.
|
|
11305
|
+
src: "https://cdn-static.gitcode.com/static/images/points/wx_gitcode.png"
|
|
11344
11306
|
}, null, -1))
|
|
11345
11307
|
])
|
|
11346
11308
|
]),
|
|
@@ -11349,12 +11311,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11349
11311
|
createElementVNode("div", { class: "home-nav-item" }, [
|
|
11350
11312
|
createElementVNode("img", {
|
|
11351
11313
|
class: "common-icon inline-block h-[20px] w-[20px]",
|
|
11352
|
-
src: "https://cdn-static.gitcode.
|
|
11314
|
+
src: "https://cdn-static.gitcode.com/static/images/desk/follow-us.svg",
|
|
11353
11315
|
alt: ""
|
|
11354
11316
|
}),
|
|
11355
11317
|
createElementVNode("img", {
|
|
11356
11318
|
class: "active-icon inline-block h-[20px] w-[20px]",
|
|
11357
|
-
src: "https://cdn-static.gitcode.
|
|
11319
|
+
src: "https://cdn-static.gitcode.com/static/images/desk/follow-us-hover.svg",
|
|
11358
11320
|
alt: ""
|
|
11359
11321
|
})
|
|
11360
11322
|
])
|
|
@@ -11467,12 +11429,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11467
11429
|
createElementVNode("div", { class: "home-nav-item" }, [
|
|
11468
11430
|
createElementVNode("img", {
|
|
11469
11431
|
class: "common-icon inline-block h-[20px] w-[20px]",
|
|
11470
|
-
src: "https://cdn-static.gitcode.
|
|
11432
|
+
src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile.png",
|
|
11471
11433
|
alt: ""
|
|
11472
11434
|
}),
|
|
11473
11435
|
createElementVNode("img", {
|
|
11474
11436
|
class: "active-icon inline-block h-[20px] w-[20px]",
|
|
11475
|
-
src: "https://cdn-static.gitcode.
|
|
11437
|
+
src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile-hover.png",
|
|
11476
11438
|
alt: ""
|
|
11477
11439
|
})
|
|
11478
11440
|
], -1)
|
|
@@ -12269,12 +12231,6 @@ if (isBrowser) {
|
|
|
12269
12231
|
}
|
|
12270
12232
|
const sessionStorage$1 = sessionStorage;
|
|
12271
12233
|
const _imports_0 = "data:image/png;base64,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";
|
|
12272
|
-
const transformUrl = (url) => {
|
|
12273
|
-
if (typeof window !== "undefined" && typeof location !== "undefined") {
|
|
12274
|
-
return url == null ? void 0 : url.replace(/gitcode\.com/g, location.host).replace(/ai\./g, "");
|
|
12275
|
-
}
|
|
12276
|
-
return url;
|
|
12277
|
-
};
|
|
12278
12234
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12279
12235
|
...{
|
|
12280
12236
|
name: "GAvatar"
|
|
@@ -12304,7 +12260,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12304
12260
|
});
|
|
12305
12261
|
return (_ctx, _cache) => {
|
|
12306
12262
|
return openBlock(), createBlock(unref(Avatar), {
|
|
12307
|
-
"img-src":
|
|
12263
|
+
"img-src": imgSrc.value,
|
|
12308
12264
|
name: placeholderName.value,
|
|
12309
12265
|
width: _ctx.width,
|
|
12310
12266
|
height: _ctx.height,
|
|
@@ -13187,7 +13143,7 @@ const _hoisted_6$8 = {
|
|
|
13187
13143
|
};
|
|
13188
13144
|
const _hoisted_7$5 = {
|
|
13189
13145
|
key: 1,
|
|
13190
|
-
src: "https://cdn-static.gitcode.
|
|
13146
|
+
src: "https://cdn-static.gitcode.com/static/images/mirrors-avata_20250411.gif",
|
|
13191
13147
|
alt: "mirrors-avatar",
|
|
13192
13148
|
class: "h-[24px]"
|
|
13193
13149
|
};
|
|
@@ -15453,11 +15409,15 @@ function requireCipherCore() {
|
|
|
15453
15409
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
15454
15410
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
15455
15411
|
*/
|
|
15456
|
-
execute: function(password, keySize, ivSize, salt) {
|
|
15412
|
+
execute: function(password, keySize, ivSize, salt, hasher) {
|
|
15457
15413
|
if (!salt) {
|
|
15458
15414
|
salt = WordArray.random(64 / 8);
|
|
15459
15415
|
}
|
|
15460
|
-
|
|
15416
|
+
if (!hasher) {
|
|
15417
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
15418
|
+
} else {
|
|
15419
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
|
|
15420
|
+
}
|
|
15461
15421
|
var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
|
|
15462
15422
|
key.sigBytes = keySize * 4;
|
|
15463
15423
|
return CipherParams.create({ key, iv, salt });
|
|
@@ -15491,7 +15451,7 @@ function requireCipherCore() {
|
|
|
15491
15451
|
*/
|
|
15492
15452
|
encrypt: function(cipher, message, password, cfg) {
|
|
15493
15453
|
cfg = this.cfg.extend(cfg);
|
|
15494
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
|
|
15454
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
|
|
15495
15455
|
cfg.iv = derivedParams.iv;
|
|
15496
15456
|
var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
|
|
15497
15457
|
ciphertext.mixIn(derivedParams);
|
|
@@ -15517,7 +15477,7 @@ function requireCipherCore() {
|
|
|
15517
15477
|
decrypt: function(cipher, ciphertext, password, cfg) {
|
|
15518
15478
|
cfg = this.cfg.extend(cfg);
|
|
15519
15479
|
ciphertext = this._parse(ciphertext, cfg.format);
|
|
15520
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
|
|
15480
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);
|
|
15521
15481
|
cfg.iv = derivedParams.iv;
|
|
15522
15482
|
var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
|
|
15523
15483
|
return plaintext;
|
|
@@ -16272,18 +16232,18 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16272
16232
|
const levelMap = {
|
|
16273
16233
|
v1: {
|
|
16274
16234
|
name: t2("gitCodeLayout.header.openSourceExplorer"),
|
|
16275
|
-
avatar: "https://cdn-static.gitcode.
|
|
16276
|
-
level: "https://cdn-static.gitcode.
|
|
16235
|
+
avatar: "https://cdn-static.gitcode.com/static/images/points/ava-v1.png",
|
|
16236
|
+
level: "https://cdn-static.gitcode.com/static/images/points/l-v1.png"
|
|
16277
16237
|
},
|
|
16278
16238
|
v2: {
|
|
16279
16239
|
name: t2("gitCodeLayout.header.openSourcePioneer"),
|
|
16280
|
-
avatar: "https://cdn-static.gitcode.
|
|
16281
|
-
level: "https://cdn-static.gitcode.
|
|
16240
|
+
avatar: "https://cdn-static.gitcode.com/static/images/points/ava-v2.png",
|
|
16241
|
+
level: "https://cdn-static.gitcode.com/static/images/points/l-v2.png"
|
|
16282
16242
|
},
|
|
16283
16243
|
v3: {
|
|
16284
16244
|
name: t2("gitCodeLayout.header.contributingStar"),
|
|
16285
|
-
avatar: "https://cdn-static.gitcode.
|
|
16286
|
-
level: "https://cdn-static.gitcode.
|
|
16245
|
+
avatar: "https://cdn-static.gitcode.com/static/images/points/ava-v3.png",
|
|
16246
|
+
level: "https://cdn-static.gitcode.com/static/images/points/l-v3.png"
|
|
16287
16247
|
}
|
|
16288
16248
|
};
|
|
16289
16249
|
const useReport2 = inject("useReport");
|
|
@@ -16659,7 +16619,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16659
16619
|
createElementVNode("div", _hoisted_1$m, [
|
|
16660
16620
|
createVNode(_sfc_main$z, {
|
|
16661
16621
|
name: accountInfo.value.nickname,
|
|
16662
|
-
src:
|
|
16622
|
+
src: accountInfo.value.avatar
|
|
16663
16623
|
}, null, 8, ["name", "src"]),
|
|
16664
16624
|
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, _cache[4] || (_cache[4] = [
|
|
16665
16625
|
createElementVNode("div", null, null, -1)
|
|
@@ -16689,7 +16649,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16689
16649
|
createElementVNode("div", _hoisted_3$d, [
|
|
16690
16650
|
createVNode(_sfc_main$z, {
|
|
16691
16651
|
name: accountInfo.value.nickname,
|
|
16692
|
-
src:
|
|
16652
|
+
src: accountInfo.value.avatar
|
|
16693
16653
|
}, null, 8, ["name", "src"]),
|
|
16694
16654
|
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$a, _cache[5] || (_cache[5] = [
|
|
16695
16655
|
createElementVNode("div", null, null, -1)
|
|
@@ -16840,13 +16800,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16840
16800
|
var _a;
|
|
16841
16801
|
const layoutConfig2 = useLayoutConfig();
|
|
16842
16802
|
const { t: $t } = i18n.global;
|
|
16843
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16844
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16845
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16846
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16847
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16848
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
16849
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed
|
|
16803
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BjHHKIj9.js"));
|
|
16804
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-B7z6x4K2.js"));
|
|
16805
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-8fg0bSuQ.js"));
|
|
16806
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-H8gk4eVl.js"));
|
|
16807
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-sCJvLGwz.js"));
|
|
16808
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DgDiVIap.js"));
|
|
16809
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BEfIzltH.js"));
|
|
16850
16810
|
const props = __props;
|
|
16851
16811
|
const repoInfo = inject("repoInfo");
|
|
16852
16812
|
const orgInfo = inject("orgInfo");
|
|
@@ -17084,7 +17044,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17084
17044
|
} else {
|
|
17085
17045
|
hotUrl = `${hotUrl}?source_module=search_box_hot_word`;
|
|
17086
17046
|
}
|
|
17087
|
-
window.open(
|
|
17047
|
+
window.open(hotUrl, "_blank");
|
|
17088
17048
|
return;
|
|
17089
17049
|
}
|
|
17090
17050
|
isSearchHistory.value = false;
|
|
@@ -17500,7 +17460,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17500
17460
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17501
17461
|
}
|
|
17502
17462
|
};
|
|
17503
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17463
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-Cbmusvpw.js"));
|
|
17504
17464
|
function clearNotice() {
|
|
17505
17465
|
if (localStorage$2.getItem("validator_email")) {
|
|
17506
17466
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17679,13 +17639,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17679
17639
|
useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.ASIDEBTNCLICK });
|
|
17680
17640
|
};
|
|
17681
17641
|
const handleLogin = (type) => {
|
|
17642
|
+
const reportLoginString = handleReportParamsByDomain("toolbar_login");
|
|
17682
17643
|
emitEvent("login", {
|
|
17683
17644
|
type,
|
|
17684
17645
|
triggerType: "主动注册",
|
|
17685
|
-
loginTriggerSource: type === "login" ?
|
|
17646
|
+
loginTriggerSource: type === "login" ? reportLoginString : ""
|
|
17686
17647
|
});
|
|
17687
17648
|
if (type === "register") {
|
|
17688
|
-
|
|
17649
|
+
const reportRegisterString = handleReportParamsByDomain("toolbar_register");
|
|
17650
|
+
sessionStorage$1.setItem(REGISTER_SOURCE_TAB, reportRegisterString);
|
|
17689
17651
|
sessionStorage$1.removeItem(LOGIN_MODAL_TRIGGER_SOURCE);
|
|
17690
17652
|
}
|
|
17691
17653
|
localStorage$2.setItem("sign_path", (window == null ? void 0 : window.location.href) || "");
|
|
@@ -17870,13 +17832,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17870
17832
|
emit("resetPwdDirectlySuccess");
|
|
17871
17833
|
});
|
|
17872
17834
|
window.addEventListener("message", (event) => {
|
|
17873
|
-
var _a2, _b
|
|
17835
|
+
var _a2, _b;
|
|
17874
17836
|
const action = HandleParentWindowGetLoginInfo(props.request);
|
|
17875
|
-
if (((_a2 = event
|
|
17876
|
-
|
|
17877
|
-
}
|
|
17878
|
-
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_e = event.data) == null ? void 0 : _e.type)) {
|
|
17879
|
-
action[(_f = event.data) == null ? void 0 : _f.type](event);
|
|
17837
|
+
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_a2 = event.data) == null ? void 0 : _a2.type)) {
|
|
17838
|
+
action[(_b = event.data) == null ? void 0 : _b.type](event);
|
|
17880
17839
|
}
|
|
17881
17840
|
});
|
|
17882
17841
|
});
|
|
@@ -18120,22 +18079,10 @@ const useConfigSide = (request, sceneValue) => {
|
|
|
18120
18079
|
return Object.values(grouped);
|
|
18121
18080
|
};
|
|
18122
18081
|
const fetchArea = async () => {
|
|
18123
|
-
var _a
|
|
18082
|
+
var _a;
|
|
18124
18083
|
sideLoading.value = true;
|
|
18125
18084
|
const res = await API.getAsideConfig();
|
|
18126
|
-
|
|
18127
|
-
return {
|
|
18128
|
-
...item,
|
|
18129
|
-
left_menu_url: transformUrl$1(item.left_menu_url),
|
|
18130
|
-
left_menu_logo: transformUrl$1(item.left_menu_logo),
|
|
18131
|
-
left_menu_logo_black: transformUrl$1(item.left_menu_logo_black),
|
|
18132
|
-
left_menu_logo_hover: transformUrl$1(item.left_menu_logo_hover),
|
|
18133
|
-
left_menu_logo_hover_black: transformUrl$1(item.left_menu_logo_hover_black)
|
|
18134
|
-
};
|
|
18135
|
-
});
|
|
18136
|
-
if (typeof window !== "undefined" && GUI_YANG_GITCODE_HOST && ((_b = window.location) == null ? void 0 : _b.origin.includes(GUI_YANG_GITCODE_HOST))) {
|
|
18137
|
-
asideList = asideList.filter((item) => !(item.left_menu_url && item.left_menu_url.includes("https://competition.gitcode")));
|
|
18138
|
-
}
|
|
18085
|
+
const asideList = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || [];
|
|
18139
18086
|
if (judgeIsShowAssetMenus(asideList)) {
|
|
18140
18087
|
area.value = groupByArea([...assetMenus.value, ...asideList]);
|
|
18141
18088
|
} else {
|
|
@@ -18205,8 +18152,8 @@ const loadUserProjectsInvolved = async (requestFn, params = {}) => {
|
|
|
18205
18152
|
var _a;
|
|
18206
18153
|
return {
|
|
18207
18154
|
key: item.name,
|
|
18208
|
-
web_url:
|
|
18209
|
-
avatar:
|
|
18155
|
+
web_url: item.web_url,
|
|
18156
|
+
avatar: item.avatar,
|
|
18210
18157
|
id: item.id,
|
|
18211
18158
|
label: item.name,
|
|
18212
18159
|
namespace: (_a = item.namespace_info) == null ? void 0 : _a.name
|
|
@@ -18257,9 +18204,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18257
18204
|
const layoutConfig2 = useLayoutConfig();
|
|
18258
18205
|
const { t: t2 } = i18n.global;
|
|
18259
18206
|
const route = useRoute();
|
|
18260
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18261
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18262
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18207
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-Dsabhftc.js"));
|
|
18208
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BrEx9s4Q.js"));
|
|
18209
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BfvIv1As.js"));
|
|
18263
18210
|
const props = __props;
|
|
18264
18211
|
console.log("slotKeys", props.slotKeys);
|
|
18265
18212
|
console.log("props", props);
|
|
@@ -20267,13 +20214,9 @@ async function checkUserRepositoryIssue(API, isRegister = false) {
|
|
|
20267
20214
|
async function successResolve(params, API, isRegister = false) {
|
|
20268
20215
|
var _a;
|
|
20269
20216
|
const { path, userInfo, type, loginMethod } = params;
|
|
20270
|
-
const transformUserInfo = {
|
|
20271
|
-
...userInfo,
|
|
20272
|
-
avatar: transformUrl$1(userInfo == null ? void 0 : userInfo.avatar)
|
|
20273
|
-
};
|
|
20274
20217
|
if (userInfo) {
|
|
20275
|
-
emitEvent("updateUserInfo",
|
|
20276
|
-
const { username, email } =
|
|
20218
|
+
emitEvent("updateUserInfo", userInfo);
|
|
20219
|
+
const { username, email } = userInfo;
|
|
20277
20220
|
setEmailValid(username, email);
|
|
20278
20221
|
}
|
|
20279
20222
|
saveLastLoginType(loginMethod);
|
|
@@ -23738,7 +23681,7 @@ const _hoisted_9$1 = {
|
|
|
23738
23681
|
const _hoisted_10$1 = { class: "my-[32px]" };
|
|
23739
23682
|
const _hoisted_11$1 = { class: "flex items-center justify-between" };
|
|
23740
23683
|
const _hoisted_12$1 = { class: "cursor-pointer" };
|
|
23741
|
-
const GIT_CODE_LOGO_BLACK = "https://cdn-static.gitcode.
|
|
23684
|
+
const GIT_CODE_LOGO_BLACK = "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png";
|
|
23742
23685
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
23743
23686
|
__name: "MFA",
|
|
23744
23687
|
props: {
|
|
@@ -23971,7 +23914,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
23971
23914
|
}
|
|
23972
23915
|
});
|
|
23973
23916
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23974
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23917
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-DCeP8y_a.js"));
|
|
23975
23918
|
const useSlidCaptcha = () => {
|
|
23976
23919
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
23977
23920
|
const open = (config) => {
|
|
@@ -23990,7 +23933,7 @@ const useSlidCaptcha = () => {
|
|
|
23990
23933
|
close: unMount
|
|
23991
23934
|
};
|
|
23992
23935
|
};
|
|
23993
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
23936
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-DY2GOaRC.js"));
|
|
23994
23937
|
const useYunpianCaptcha = () => {
|
|
23995
23938
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
23996
23939
|
const open = (config) => {
|
|
@@ -24024,7 +23967,7 @@ function _sfc_render(_ctx, _cache) {
|
|
|
24024
23967
|
createElementVNode("div", { class: "w-full flex-center" }, [
|
|
24025
23968
|
createElementVNode("img", {
|
|
24026
23969
|
class: "w-[60px] h-[60px]",
|
|
24027
|
-
src: "https://cdn-static.gitcode.
|
|
23970
|
+
src: "https://cdn-static.gitcode.com/static/images/common/loading.gif",
|
|
24028
23971
|
alt: "loading"
|
|
24029
23972
|
})
|
|
24030
23973
|
]),
|
|
@@ -24245,8 +24188,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24245
24188
|
const IconHb = TransAssetsUrl(IconSource, "logo-hb");
|
|
24246
24189
|
const IconHW = TransAssetsUrl(IconSource, "logo-huawei");
|
|
24247
24190
|
const logoType = {
|
|
24248
|
-
black: "https://cdn-static.gitcode.
|
|
24249
|
-
white: "https://cdn-static.gitcode.
|
|
24191
|
+
black: "https://cdn-static.gitcode.com/static/images/gitcode-logo-white.png",
|
|
24192
|
+
white: "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png"
|
|
24250
24193
|
};
|
|
24251
24194
|
const formErrors = reactive({});
|
|
24252
24195
|
const extraErrors = reactive({
|
|
@@ -25645,7 +25588,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25645
25588
|
}, [
|
|
25646
25589
|
createElementVNode("div", _hoisted_42, [
|
|
25647
25590
|
_cache[18] || (_cache[18] = createElementVNode("img", {
|
|
25648
|
-
src: "https://cdn-static.gitcode.
|
|
25591
|
+
src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
|
|
25649
25592
|
alt: "",
|
|
25650
25593
|
class: "w-[32px] h-[32px] inline-block harmony-icon-img"
|
|
25651
25594
|
}, null, -1)),
|
|
@@ -26001,53 +25944,51 @@ const index = {
|
|
|
26001
25944
|
}
|
|
26002
25945
|
};
|
|
26003
25946
|
export {
|
|
26004
|
-
|
|
26005
|
-
|
|
26006
|
-
|
|
26007
|
-
|
|
25947
|
+
emitEvent as A,
|
|
25948
|
+
isHttps as B,
|
|
25949
|
+
_sfc_main$z as C,
|
|
25950
|
+
loadAsideData as D,
|
|
26008
25951
|
EVENT_NAME as E,
|
|
26009
|
-
|
|
25952
|
+
asideRequest as F,
|
|
26010
25953
|
GIcon as G,
|
|
26011
|
-
|
|
26012
|
-
|
|
26013
|
-
|
|
26014
|
-
|
|
25954
|
+
ToolsFloat as H,
|
|
25955
|
+
_sfc_main as I,
|
|
25956
|
+
GitCodeAside as J,
|
|
25957
|
+
GitCodeHeader as K,
|
|
26015
25958
|
LANG_KEY as L,
|
|
26016
|
-
|
|
26017
|
-
|
|
26018
|
-
|
|
26019
|
-
|
|
26020
|
-
|
|
25959
|
+
useLogin as M,
|
|
25960
|
+
setLayoutConfig as N,
|
|
25961
|
+
GitCodeLayoutEmitter as O,
|
|
25962
|
+
setTheme as P,
|
|
25963
|
+
index as Q,
|
|
26021
25964
|
REPO_MODULE as R,
|
|
26022
25965
|
SceneValue as S,
|
|
26023
25966
|
TOPIC_TYPE as T,
|
|
26024
|
-
setTheme as U,
|
|
26025
|
-
index as V,
|
|
26026
25967
|
_export_sfc as _,
|
|
26027
25968
|
i18n as a,
|
|
26028
25969
|
REPO_EVENT as b,
|
|
26029
25970
|
REPO_TYPE as c,
|
|
26030
|
-
|
|
25971
|
+
useRequestReport as d,
|
|
26031
25972
|
extractRepoInfoWithURL as e,
|
|
26032
|
-
|
|
26033
|
-
|
|
25973
|
+
useTimeFormat as f,
|
|
25974
|
+
LANG_ZH as g,
|
|
26034
25975
|
headRequest as h,
|
|
26035
25976
|
isPhone as i,
|
|
26036
|
-
|
|
26037
|
-
|
|
25977
|
+
usePageResize as j,
|
|
25978
|
+
isGstarRepo as k,
|
|
26038
25979
|
localStorage$2 as l,
|
|
26039
|
-
|
|
26040
|
-
|
|
26041
|
-
|
|
26042
|
-
|
|
26043
|
-
|
|
25980
|
+
_sfc_main$y as m,
|
|
25981
|
+
isIncubationRepo as n,
|
|
25982
|
+
highlightWords as o,
|
|
25983
|
+
_frEventTrack as p,
|
|
25984
|
+
getLocaleLang as q,
|
|
26044
25985
|
reqCatch as r,
|
|
26045
25986
|
setLoginTriggerSource as s,
|
|
26046
|
-
|
|
25987
|
+
transferNumber as t,
|
|
26047
25988
|
useModel as u,
|
|
26048
25989
|
vElementExposure as v,
|
|
26049
25990
|
useLayoutConfig as w,
|
|
26050
|
-
|
|
26051
|
-
|
|
26052
|
-
|
|
25991
|
+
ThemeType as x,
|
|
25992
|
+
currentTheme as y,
|
|
25993
|
+
LANG_EN as z
|
|
26053
25994
|
};
|