vue-layout-gitcode 1.9.56 → 1.9.58
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-xafLwshU.js → GloabarSearch-C_JeIvkC.js} +3 -3
- package/{MenuItem-B7ZmXZ-B.js → MenuItem-GaAvqF_i.js} +1 -1
- package/{ProjectMenuList-D3N5KFjk.js → ProjectMenuList-BxTBTtKp.js} +2 -2
- package/{ProjectMenuListV2-B5OXO_mi.js → ProjectMenuListV2-B6CRc-d4.js} +2 -2
- package/{ProjectSearch-zHoMXDiK.js → ProjectSearch-DdqQAkxq.js} +1 -1
- package/{SearchHistoryList-CCg9uMxD.js → SearchHistoryList-DoaidhU7.js} +1 -1
- package/{SearchPrefixTag-DFtTwc9j.js → SearchPrefixTag-CNa2eQxd.js} +1 -1
- package/{SearchRecommed-B7GDOaKq.js → SearchRecommed-C8deUUSd.js} +2 -2
- package/{SearchScopeList-DLjiUXHq.js → SearchScopeList-sQj1hGVq.js} +1 -1
- package/{UserSearch-CKoIlecq.js → UserSearch-hs-3KGgN.js} +1 -1
- package/{index-D03IkWK4.js → index-BZZwVI0Q.js} +1 -1
- package/{index-Dde0W3tP.js → index-BmoJW_xG.js} +1 -1
- package/{index-DZ6V-gBL.js → index-CazfTHcx.js} +91 -138
- package/{index-BIWX3oG_.js → index-Czd_kZWd.js} +2 -2
- package/index.js +1 -1
- package/{notice-B3aptLSY.js → notice-CXJxZGGs.js} +1 -1
- package/package.json +1 -1
- package/{transWebUrl-CUGP4dVd.js → transWebUrl-UoztbKuK.js} +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
|
|
2
2
|
import "vue-devui-lal/icon";
|
|
3
3
|
import "vue-devui-lal/icon/style.css";
|
|
4
|
-
import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
4
|
+
import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CazfTHcx.js";
|
|
5
5
|
import "lodash/debounce";
|
|
6
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
7
|
-
import "./transWebUrl-
|
|
6
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-Czd_kZWd.js";
|
|
7
|
+
import "./transWebUrl-UoztbKuK.js";
|
|
8
8
|
import "vue-devui-lal/tooltip";
|
|
9
9
|
import "vue-devui-lal/tooltip/style.css";
|
|
10
10
|
import "vue-router";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, z as ThemeType, A as currentTheme, L as LANG_ZH, B as LANG_EN, x as getLocaleLang, G as GIcon, C as emitEvent, D as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, z as ThemeType, A as currentTheme, L as LANG_ZH, B as LANG_EN, x as getLocaleLang, G as GIcon, C as emitEvent, D as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-CazfTHcx.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
import { Popover } from "vue-devui-lal/popover";
|
|
5
5
|
import "vue-devui-lal/popover/style.css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, F as _sfc_main$1, H as loadAsideData, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, F as _sfc_main$1, H as loadAsideData, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-CazfTHcx.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-UoztbKuK.js";
|
|
5
5
|
import { Select, Option } from "vue-devui-lal/select";
|
|
6
6
|
import { Input } from "vue-devui-lal/input";
|
|
7
7
|
import { Skeleton } from "vue-devui-lal/skeleton";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, G as GIcon, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, t as transformUrl, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, G as GIcon, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, t as transformUrl, _ as _export_sfc } from "./index-CazfTHcx.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-UoztbKuK.js";
|
|
5
5
|
import { Input } from "vue-devui-lal/input";
|
|
6
6
|
import { Skeleton } from "vue-devui-lal/skeleton";
|
|
7
7
|
import { MenuItem } from "vue-devui-lal/menu";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, inject, computed, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CazfTHcx.js";
|
|
3
3
|
import { useRoute, useRouter } from "vue-router";
|
|
4
4
|
import "vue-devui-lal/icon";
|
|
5
5
|
import "vue-devui-lal/icon/style.css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
|
|
2
|
-
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CazfTHcx.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "history-list" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
|
|
2
|
-
import { G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { G as GIcon, _ as _export_sfc } from "./index-CazfTHcx.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "ellipsis" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
|
|
2
|
-
import { u as useReportRepo, S as SearchRepoCard } from "./index-
|
|
3
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-Czd_kZWd.js";
|
|
3
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-CazfTHcx.js";
|
|
4
4
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
5
5
|
import { SkeletonItem } from "vue-devui-lal/skeleton";
|
|
6
6
|
import "vue-devui-lal/grid/style.css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref } from "vue";
|
|
2
|
-
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CazfTHcx.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = ["onClick"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-CazfTHcx.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, onMounted, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { x as getLocaleLang, L as LANG_ZH, y as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
2
|
+
import { x as getLocaleLang, L as LANG_ZH, y as useLayoutConfig, _ as _export_sfc } from "./index-CazfTHcx.js";
|
|
3
3
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const TARGET_TEXT = "Click in order:";
|
|
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
|
|
|
8
8
|
import "vue-devui-lal/message/style.css";
|
|
9
9
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
10
10
|
import "vue-devui-lal/overlay/style.css";
|
|
11
|
-
import { a as i18n, k as usePageResize, x as getLocaleLang, L as LANG_ZH, _ as _export_sfc } from "./index-
|
|
11
|
+
import { a as i18n, k as usePageResize, x as getLocaleLang, L as LANG_ZH, _ as _export_sfc } from "./index-CazfTHcx.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
constructor() {
|
|
14
14
|
__publicField(this, "ypRiddlerInstance", null);
|
|
@@ -539,7 +539,7 @@ const LOGO_MAP = {
|
|
|
539
539
|
aiLogoDark: "https://cdn-static.gitcode.com/static/images/gitcode-ai-logo-dark_atomgit.png"
|
|
540
540
|
}
|
|
541
541
|
};
|
|
542
|
-
/*! @license DOMPurify 3.
|
|
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 */
|
|
543
543
|
const {
|
|
544
544
|
entries,
|
|
545
545
|
setPrototypeOf,
|
|
@@ -567,18 +567,12 @@ if (!seal) {
|
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
569
|
if (!apply$1) {
|
|
570
|
-
apply$1 = function apply2(
|
|
571
|
-
|
|
572
|
-
args[_key - 2] = arguments[_key];
|
|
573
|
-
}
|
|
574
|
-
return func.apply(thisArg, args);
|
|
570
|
+
apply$1 = function apply2(fun, thisValue, args) {
|
|
571
|
+
return fun.apply(thisValue, args);
|
|
575
572
|
};
|
|
576
573
|
}
|
|
577
574
|
if (!construct) {
|
|
578
|
-
construct = function construct2(Func) {
|
|
579
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
580
|
-
args[_key2 - 1] = arguments[_key2];
|
|
581
|
-
}
|
|
575
|
+
construct = function construct2(Func, args) {
|
|
582
576
|
return new Func(...args);
|
|
583
577
|
};
|
|
584
578
|
}
|
|
@@ -601,18 +595,18 @@ function unapply(func) {
|
|
|
601
595
|
if (thisArg instanceof RegExp) {
|
|
602
596
|
thisArg.lastIndex = 0;
|
|
603
597
|
}
|
|
604
|
-
for (var
|
|
605
|
-
args[
|
|
598
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
599
|
+
args[_key - 1] = arguments[_key];
|
|
606
600
|
}
|
|
607
601
|
return apply$1(func, thisArg, args);
|
|
608
602
|
};
|
|
609
603
|
}
|
|
610
|
-
function unconstruct(
|
|
604
|
+
function unconstruct(func) {
|
|
611
605
|
return function() {
|
|
612
|
-
for (var
|
|
613
|
-
args[
|
|
606
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
607
|
+
args[_key2] = arguments[_key2];
|
|
614
608
|
}
|
|
615
|
-
return construct(
|
|
609
|
+
return construct(func, args);
|
|
616
610
|
};
|
|
617
611
|
}
|
|
618
612
|
function addToSet(set, array) {
|
|
@@ -679,15 +673,15 @@ function lookupGetter(object, prop) {
|
|
|
679
673
|
}
|
|
680
674
|
return fallbackValue;
|
|
681
675
|
}
|
|
682
|
-
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", "
|
|
683
|
-
const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "
|
|
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"]);
|
|
684
678
|
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"]);
|
|
685
679
|
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"]);
|
|
686
680
|
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"]);
|
|
687
681
|
const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
|
|
688
682
|
const text = freeze(["#text"]);
|
|
689
|
-
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", "
|
|
690
|
-
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", "
|
|
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"]);
|
|
691
685
|
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"]);
|
|
692
686
|
const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
|
|
693
687
|
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
|
|
@@ -696,7 +690,7 @@ const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
|
|
|
696
690
|
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
|
|
697
691
|
const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
|
|
698
692
|
const IS_ALLOWED_URI = seal(
|
|
699
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp
|
|
693
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
700
694
|
// eslint-disable-line no-useless-escape
|
|
701
695
|
);
|
|
702
696
|
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
@@ -770,7 +764,7 @@ const _createHooksMap = function _createHooksMap2() {
|
|
|
770
764
|
function createDOMPurify() {
|
|
771
765
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
772
766
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
773
|
-
DOMPurify.version = "3.
|
|
767
|
+
DOMPurify.version = "3.2.5";
|
|
774
768
|
DOMPurify.removed = [];
|
|
775
769
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
776
770
|
DOMPurify.isSupported = false;
|
|
@@ -856,20 +850,6 @@ function createDOMPurify() {
|
|
|
856
850
|
}));
|
|
857
851
|
let FORBID_TAGS = null;
|
|
858
852
|
let FORBID_ATTR = null;
|
|
859
|
-
const EXTRA_ELEMENT_HANDLING = Object.seal(create$1(null, {
|
|
860
|
-
tagCheck: {
|
|
861
|
-
writable: true,
|
|
862
|
-
configurable: false,
|
|
863
|
-
enumerable: true,
|
|
864
|
-
value: null
|
|
865
|
-
},
|
|
866
|
-
attributeCheck: {
|
|
867
|
-
writable: true,
|
|
868
|
-
configurable: false,
|
|
869
|
-
enumerable: true,
|
|
870
|
-
value: null
|
|
871
|
-
}
|
|
872
|
-
}));
|
|
873
853
|
let ALLOW_ARIA_ATTR = true;
|
|
874
854
|
let ALLOW_DATA_ATTR = true;
|
|
875
855
|
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
|
@@ -931,8 +911,8 @@ function createDOMPurify() {
|
|
|
931
911
|
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;
|
|
932
912
|
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;
|
|
933
913
|
FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
934
|
-
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) :
|
|
935
|
-
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) :
|
|
914
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
|
|
915
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
|
|
936
916
|
USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
|
|
937
917
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
|
|
938
918
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
|
|
@@ -993,24 +973,16 @@ function createDOMPurify() {
|
|
|
993
973
|
}
|
|
994
974
|
}
|
|
995
975
|
if (cfg.ADD_TAGS) {
|
|
996
|
-
if (
|
|
997
|
-
|
|
998
|
-
} else {
|
|
999
|
-
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
1000
|
-
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
1001
|
-
}
|
|
1002
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
976
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
977
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
1003
978
|
}
|
|
979
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
1004
980
|
}
|
|
1005
981
|
if (cfg.ADD_ATTR) {
|
|
1006
|
-
if (
|
|
1007
|
-
|
|
1008
|
-
} else {
|
|
1009
|
-
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
1010
|
-
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
1011
|
-
}
|
|
1012
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
982
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
983
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
1013
984
|
}
|
|
985
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
1014
986
|
}
|
|
1015
987
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
1016
988
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -1204,7 +1176,7 @@ function createDOMPurify() {
|
|
|
1204
1176
|
tagName,
|
|
1205
1177
|
allowedTags: ALLOWED_TAGS
|
|
1206
1178
|
});
|
|
1207
|
-
if (
|
|
1179
|
+
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
1208
1180
|
_forceRemove(currentNode);
|
|
1209
1181
|
return true;
|
|
1210
1182
|
}
|
|
@@ -1216,7 +1188,7 @@ function createDOMPurify() {
|
|
|
1216
1188
|
_forceRemove(currentNode);
|
|
1217
1189
|
return true;
|
|
1218
1190
|
}
|
|
1219
|
-
if (!
|
|
1191
|
+
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
1220
1192
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
1221
1193
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
1222
1194
|
return false;
|
|
@@ -1269,13 +1241,12 @@ function createDOMPurify() {
|
|
|
1269
1241
|
}
|
|
1270
1242
|
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
|
|
1271
1243
|
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
|
|
1272
|
-
else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ;
|
|
1273
1244
|
else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1274
1245
|
if (
|
|
1275
1246
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1276
1247
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1277
1248
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
1278
|
-
_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
|
|
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
|
|
1279
1250
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1280
1251
|
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))
|
|
1281
1252
|
) ;
|
|
@@ -1318,8 +1289,7 @@ function createDOMPurify() {
|
|
|
1318
1289
|
value: attrValue
|
|
1319
1290
|
} = attr;
|
|
1320
1291
|
const lcName = transformCaseFunc(name);
|
|
1321
|
-
|
|
1322
|
-
let value = name === "value" ? initValue : stringTrim(initValue);
|
|
1292
|
+
let value = name === "value" ? attrValue : stringTrim(attrValue);
|
|
1323
1293
|
hookEvent.attrName = lcName;
|
|
1324
1294
|
hookEvent.attrValue = value;
|
|
1325
1295
|
hookEvent.keepAttr = true;
|
|
@@ -1330,19 +1300,15 @@ function createDOMPurify() {
|
|
|
1330
1300
|
_removeAttribute(name, currentNode);
|
|
1331
1301
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
1332
1302
|
}
|
|
1333
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title
|
|
1334
|
-
_removeAttribute(name, currentNode);
|
|
1335
|
-
continue;
|
|
1336
|
-
}
|
|
1337
|
-
if (lcName === "attributename" && stringMatch(value, "href")) {
|
|
1303
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
1338
1304
|
_removeAttribute(name, currentNode);
|
|
1339
1305
|
continue;
|
|
1340
1306
|
}
|
|
1341
1307
|
if (hookEvent.forceKeepAttr) {
|
|
1342
1308
|
continue;
|
|
1343
1309
|
}
|
|
1310
|
+
_removeAttribute(name, currentNode);
|
|
1344
1311
|
if (!hookEvent.keepAttr) {
|
|
1345
|
-
_removeAttribute(name, currentNode);
|
|
1346
1312
|
continue;
|
|
1347
1313
|
}
|
|
1348
1314
|
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
@@ -1356,7 +1322,6 @@ function createDOMPurify() {
|
|
|
1356
1322
|
}
|
|
1357
1323
|
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
1358
1324
|
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
1359
|
-
_removeAttribute(name, currentNode);
|
|
1360
1325
|
continue;
|
|
1361
1326
|
}
|
|
1362
1327
|
if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
|
|
@@ -1374,21 +1339,18 @@ function createDOMPurify() {
|
|
|
1374
1339
|
}
|
|
1375
1340
|
}
|
|
1376
1341
|
}
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
currentNode.setAttribute(name, value);
|
|
1383
|
-
}
|
|
1384
|
-
if (_isClobbered(currentNode)) {
|
|
1385
|
-
_forceRemove(currentNode);
|
|
1386
|
-
} else {
|
|
1387
|
-
arrayPop(DOMPurify.removed);
|
|
1388
|
-
}
|
|
1389
|
-
} catch (_) {
|
|
1390
|
-
_removeAttribute(name, currentNode);
|
|
1342
|
+
try {
|
|
1343
|
+
if (namespaceURI) {
|
|
1344
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
1345
|
+
} else {
|
|
1346
|
+
currentNode.setAttribute(name, value);
|
|
1391
1347
|
}
|
|
1348
|
+
if (_isClobbered(currentNode)) {
|
|
1349
|
+
_forceRemove(currentNode);
|
|
1350
|
+
} else {
|
|
1351
|
+
arrayPop(DOMPurify.removed);
|
|
1352
|
+
}
|
|
1353
|
+
} catch (_) {
|
|
1392
1354
|
}
|
|
1393
1355
|
}
|
|
1394
1356
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
@@ -11084,9 +11046,11 @@ const proxyService = (params, customConfigs) => {
|
|
|
11084
11046
|
return service(params);
|
|
11085
11047
|
};
|
|
11086
11048
|
const transformUrl = (url) => {
|
|
11087
|
-
var _a;
|
|
11088
11049
|
if (!url) return url;
|
|
11089
11050
|
if (url.startsWith("/") && !url.startsWith("//")) return url;
|
|
11051
|
+
if (!url.startsWith("http://") && !url.startsWith("https://")) {
|
|
11052
|
+
return url;
|
|
11053
|
+
}
|
|
11090
11054
|
if (typeof window !== "undefined" && typeof location !== "undefined") {
|
|
11091
11055
|
if (url == null ? void 0 : url.startsWith("https://cdn-")) {
|
|
11092
11056
|
return url;
|
|
@@ -11094,49 +11058,33 @@ const transformUrl = (url) => {
|
|
|
11094
11058
|
if (url == null ? void 0 : url.includes("myhuaweicloud.com")) {
|
|
11095
11059
|
return url;
|
|
11096
11060
|
}
|
|
11097
|
-
const host =
|
|
11061
|
+
const host = location.host;
|
|
11098
11062
|
if (host.includes("gitcode.host")) {
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
if (urlObj.host === host) {
|
|
11107
|
-
return url;
|
|
11063
|
+
try {
|
|
11064
|
+
const urlObj = new URL(url);
|
|
11065
|
+
urlObj.host = urlObj.host.replace(/gitcode\.com/g, "gitcode.host");
|
|
11066
|
+
return urlObj.toString();
|
|
11067
|
+
} catch (error) {
|
|
11068
|
+
console.error("transformUrl: URL 解析失败", error);
|
|
11069
|
+
return url.replace(/gitcode\.com/g, "gitcode.host");
|
|
11108
11070
|
}
|
|
11109
|
-
} catch (error) {
|
|
11110
|
-
console.error("transformUrl: URL 解析失败", error);
|
|
11111
11071
|
}
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
const isPreEnv = /^(pre|loc-pre)\./i.test(host);
|
|
11120
|
-
const isNonProdEnv = isTestEnv || isPreEnv;
|
|
11121
|
-
if (!isNonProdEnv) {
|
|
11122
|
-
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
11123
|
-
}
|
|
11124
|
-
if (specialPrefix.some((prefix) => url == null ? void 0 : url.includes(prefix))) {
|
|
11125
|
-
try {
|
|
11126
|
-
const urlObj = new URL(url);
|
|
11127
|
-
const urlHost = urlObj.host;
|
|
11128
|
-
const specialPrefixMatch = specialPrefix.find((prefix) => urlHost.includes(prefix));
|
|
11129
|
-
if (specialPrefixMatch) {
|
|
11130
|
-
const prefixPart = urlHost.split(".")[0];
|
|
11131
|
-
const mainDomain = host.replace(/^(test|pre|local|loc-pre)\./, "");
|
|
11132
|
-
urlObj.host = `${prefixPart}.${mainDomain}`;
|
|
11072
|
+
if (host.includes("gitcode")) {
|
|
11073
|
+
return url;
|
|
11074
|
+
}
|
|
11075
|
+
if (host.includes("atomgit")) {
|
|
11076
|
+
try {
|
|
11077
|
+
const urlObj = new URL(url);
|
|
11078
|
+
urlObj.host = urlObj.host.replace(/gitcode\.net/g, "atomgit.com").replace(/gitcode\.com/g, "atomgit.com");
|
|
11133
11079
|
return urlObj.toString();
|
|
11080
|
+
} catch (error) {
|
|
11081
|
+
console.error("transformUrl: URL 解析失败", error);
|
|
11082
|
+
return url.replace(/gitcode\.net/g, "atomgit.com").replace(/gitcode\.com/g, "atomgit.com");
|
|
11134
11083
|
}
|
|
11135
|
-
} catch (error) {
|
|
11136
|
-
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
11137
11084
|
}
|
|
11085
|
+
return url;
|
|
11138
11086
|
}
|
|
11139
|
-
return url
|
|
11087
|
+
return url;
|
|
11140
11088
|
};
|
|
11141
11089
|
const transformNewsUrl = (url) => {
|
|
11142
11090
|
if (url.startsWith("/") && !url.startsWith("//")) return url;
|
|
@@ -12576,8 +12524,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12576
12524
|
}
|
|
12577
12525
|
});
|
|
12578
12526
|
return (_ctx, _cache) => {
|
|
12579
|
-
return openBlock(), createBlock(unref(Avatar), {
|
|
12580
|
-
|
|
12527
|
+
return placeholderName.value || imgSrc.value ? (openBlock(), createBlock(unref(Avatar), {
|
|
12528
|
+
key: 0,
|
|
12529
|
+
"img-src": imgSrc.value,
|
|
12581
12530
|
name: placeholderName.value,
|
|
12582
12531
|
width: _ctx.width,
|
|
12583
12532
|
height: _ctx.height,
|
|
@@ -12585,7 +12534,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
12585
12534
|
class: normalizeClass({ "devui-avatar-square": !_ctx.is_round, "gavatar-custom": !imgSrc.value }),
|
|
12586
12535
|
onLoadError,
|
|
12587
12536
|
style: normalizeStyle({ minWidth: _ctx.width + "px" })
|
|
12588
|
-
}, null, 8, ["img-src", "name", "width", "height", "is-round", "class", "style"]);
|
|
12537
|
+
}, null, 8, ["img-src", "name", "width", "height", "is-round", "class", "style"])) : createCommentVNode("", true);
|
|
12589
12538
|
};
|
|
12590
12539
|
}
|
|
12591
12540
|
});
|
|
@@ -15664,11 +15613,15 @@ function requireCipherCore() {
|
|
|
15664
15613
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
15665
15614
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
15666
15615
|
*/
|
|
15667
|
-
execute: function(password, keySize, ivSize, salt) {
|
|
15616
|
+
execute: function(password, keySize, ivSize, salt, hasher) {
|
|
15668
15617
|
if (!salt) {
|
|
15669
15618
|
salt = WordArray.random(64 / 8);
|
|
15670
15619
|
}
|
|
15671
|
-
|
|
15620
|
+
if (!hasher) {
|
|
15621
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
15622
|
+
} else {
|
|
15623
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
|
|
15624
|
+
}
|
|
15672
15625
|
var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
|
|
15673
15626
|
key.sigBytes = keySize * 4;
|
|
15674
15627
|
return CipherParams.create({ key, iv, salt });
|
|
@@ -15702,7 +15655,7 @@ function requireCipherCore() {
|
|
|
15702
15655
|
*/
|
|
15703
15656
|
encrypt: function(cipher, message, password, cfg) {
|
|
15704
15657
|
cfg = this.cfg.extend(cfg);
|
|
15705
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
|
|
15658
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
|
|
15706
15659
|
cfg.iv = derivedParams.iv;
|
|
15707
15660
|
var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
|
|
15708
15661
|
ciphertext.mixIn(derivedParams);
|
|
@@ -15728,7 +15681,7 @@ function requireCipherCore() {
|
|
|
15728
15681
|
decrypt: function(cipher, ciphertext, password, cfg) {
|
|
15729
15682
|
cfg = this.cfg.extend(cfg);
|
|
15730
15683
|
ciphertext = this._parse(ciphertext, cfg.format);
|
|
15731
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
|
|
15684
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);
|
|
15732
15685
|
cfg.iv = derivedParams.iv;
|
|
15733
15686
|
var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
|
|
15734
15687
|
return plaintext;
|
|
@@ -17122,13 +17075,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17122
17075
|
var _a;
|
|
17123
17076
|
const layoutConfig2 = useLayoutConfig();
|
|
17124
17077
|
const { t: $t } = i18n.global;
|
|
17125
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17126
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17127
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17128
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17129
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17130
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17131
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17078
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DdqQAkxq.js"));
|
|
17079
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-hs-3KGgN.js"));
|
|
17080
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C_JeIvkC.js"));
|
|
17081
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DoaidhU7.js"));
|
|
17082
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-sQj1hGVq.js"));
|
|
17083
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CNa2eQxd.js"));
|
|
17084
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-C8deUUSd.js"));
|
|
17132
17085
|
const props = __props;
|
|
17133
17086
|
const repoInfo = inject("repoInfo");
|
|
17134
17087
|
const orgInfo = inject("orgInfo");
|
|
@@ -17877,7 +17830,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17877
17830
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17878
17831
|
}
|
|
17879
17832
|
};
|
|
17880
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17833
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-CXJxZGGs.js"));
|
|
17881
17834
|
function clearNotice() {
|
|
17882
17835
|
if (localStorage$2.getItem("validator_email")) {
|
|
17883
17836
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18679,9 +18632,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18679
18632
|
const layoutConfig2 = useLayoutConfig();
|
|
18680
18633
|
const { t: t2 } = i18n.global;
|
|
18681
18634
|
const route = useRoute();
|
|
18682
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18683
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18684
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18635
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-GaAvqF_i.js"));
|
|
18636
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-B6CRc-d4.js"));
|
|
18637
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BxTBTtKp.js"));
|
|
18685
18638
|
const props = __props;
|
|
18686
18639
|
console.log("slotKeys", props.slotKeys);
|
|
18687
18640
|
console.log("props", props);
|
|
@@ -18699,7 +18652,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18699
18652
|
const isOrganization = (item) => {
|
|
18700
18653
|
return item.jump_type === JumpType.Search && item.search_type === SearchType.Organization;
|
|
18701
18654
|
};
|
|
18702
|
-
const username = computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage.getItem("userInfo") || "{}").username);
|
|
18655
|
+
const username = computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage$2.getItem("userInfo") || "{}").username);
|
|
18703
18656
|
const projectProps = computed(() => {
|
|
18704
18657
|
return {
|
|
18705
18658
|
subShow: subShow.value.project,
|
|
@@ -19323,7 +19276,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19323
19276
|
const isModuleVisible = (auth) => {
|
|
19324
19277
|
return visibleItems.value.includes(auth);
|
|
19325
19278
|
};
|
|
19326
|
-
computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage.getItem("userInfo") || "{}").username);
|
|
19279
|
+
computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage$2.getItem("userInfo") || "{}").username);
|
|
19327
19280
|
const showPreferencesSetting = computed(() => {
|
|
19328
19281
|
if (props.showPreferencesSetting !== void 0) return props.showPreferencesSetting;
|
|
19329
19282
|
return route.name !== AICopilot_ROUTE_NAME && isModuleVisible(AsideDisplayItem.PREFERENCE);
|
|
@@ -24514,7 +24467,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24514
24467
|
}
|
|
24515
24468
|
});
|
|
24516
24469
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24517
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24470
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-BZZwVI0Q.js"));
|
|
24518
24471
|
const useSlidCaptcha = () => {
|
|
24519
24472
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24520
24473
|
const open = (config) => {
|
|
@@ -24533,7 +24486,7 @@ const useSlidCaptcha = () => {
|
|
|
24533
24486
|
close: unMount
|
|
24534
24487
|
};
|
|
24535
24488
|
};
|
|
24536
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
24489
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-BmoJW_xG.js"));
|
|
24537
24490
|
const useYunpianCaptcha = () => {
|
|
24538
24491
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
24539
24492
|
const open = (config) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
|
|
2
2
|
import debounce from "lodash/debounce";
|
|
3
|
-
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
3
|
+
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-CazfTHcx.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-UoztbKuK.js";
|
|
5
5
|
import { useRouter } from "vue-router";
|
|
6
6
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
7
7
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { i as isPhone, u as useModel } from "./index-
|
|
2
|
+
import { i as isPhone, u as useModel } from "./index-CazfTHcx.js";
|
|
3
3
|
import { Notification } from "vue-devui-lal/notification";
|
|
4
4
|
import { Button } from "vue-devui-lal/button";
|
|
5
5
|
import "vue-devui-lal/notification/style.css";
|
package/package.json
CHANGED