vue-layout-gitcode 1.9.50 → 1.9.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{GloabarSearch-DLXz75tv.js → GloabarSearch-DoZtNN-H.js} +3 -3
- package/{MenuItem-B8N-fK8r.js → MenuItem-CqVzziHD.js} +1 -1
- package/{ProjectMenuList-jAKF6Apq.js → ProjectMenuList-UfLleVcc.js} +2 -2
- package/{ProjectMenuListV2-CH_6ULI1.js → ProjectMenuListV2-Z99pJkPq.js} +2 -2
- package/{ProjectSearch-pHlcbEao.js → ProjectSearch-dhOXEBLy.js} +1 -1
- package/{SearchHistoryList-DtAuuWfV.js → SearchHistoryList-czyMAOt3.js} +1 -1
- package/{SearchPrefixTag-hf9n6UzK.js → SearchPrefixTag-BTSgbs3N.js} +1 -1
- package/{SearchRecommed-CcghIwvF.js → SearchRecommed-CVN-rtvs.js} +2 -2
- package/{SearchScopeList-CElCoqhe.js → SearchScopeList-BgFyK42o.js} +1 -1
- package/{UserSearch-r6TBNJS4.js → UserSearch-CDMu92u8.js} +1 -1
- package/{index-DcQ4PcPt.js → index-C1KSz5lg.js} +133 -78
- package/{index-H6BnFstW.js → index-CiLHExsI.js} +1 -1
- package/{index-Cv2iLpLB.js → index-DK5G3z6T.js} +2 -2
- package/{index-CfSlVFq8.js → index-DtBF5g8C.js} +1 -1
- package/index.js +1 -1
- package/{notice-qnKWNwCy.js → notice-BejzcUzx.js} +1 -1
- package/package.json +2 -2
- package/{transWebUrl-CFnfTsOu.js → transWebUrl-TRK7iwhH.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-C1KSz5lg.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-DK5G3z6T.js";
|
|
7
|
+
import "./transWebUrl-TRK7iwhH.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-C1KSz5lg.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-C1KSz5lg.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-TRK7iwhH.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-C1KSz5lg.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-TRK7iwhH.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-C1KSz5lg.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-C1KSz5lg.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-C1KSz5lg.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-DK5G3z6T.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-C1KSz5lg.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-C1KSz5lg.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-C1KSz5lg.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]" };
|
|
@@ -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.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
|
|
543
543
|
const {
|
|
544
544
|
entries,
|
|
545
545
|
setPrototypeOf,
|
|
@@ -567,12 +567,18 @@ if (!seal) {
|
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
569
|
if (!apply$1) {
|
|
570
|
-
apply$1 = function apply2(
|
|
571
|
-
|
|
570
|
+
apply$1 = function apply2(func, thisArg) {
|
|
571
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
572
|
+
args[_key - 2] = arguments[_key];
|
|
573
|
+
}
|
|
574
|
+
return func.apply(thisArg, args);
|
|
572
575
|
};
|
|
573
576
|
}
|
|
574
577
|
if (!construct) {
|
|
575
|
-
construct = function construct2(Func
|
|
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
|
+
}
|
|
576
582
|
return new Func(...args);
|
|
577
583
|
};
|
|
578
584
|
}
|
|
@@ -595,18 +601,18 @@ function unapply(func) {
|
|
|
595
601
|
if (thisArg instanceof RegExp) {
|
|
596
602
|
thisArg.lastIndex = 0;
|
|
597
603
|
}
|
|
598
|
-
for (var
|
|
599
|
-
args[
|
|
604
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
605
|
+
args[_key3 - 1] = arguments[_key3];
|
|
600
606
|
}
|
|
601
607
|
return apply$1(func, thisArg, args);
|
|
602
608
|
};
|
|
603
609
|
}
|
|
604
|
-
function unconstruct(
|
|
610
|
+
function unconstruct(Func) {
|
|
605
611
|
return function() {
|
|
606
|
-
for (var
|
|
607
|
-
args[
|
|
612
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
613
|
+
args[_key4] = arguments[_key4];
|
|
608
614
|
}
|
|
609
|
-
return construct(
|
|
615
|
+
return construct(Func, args);
|
|
610
616
|
};
|
|
611
617
|
}
|
|
612
618
|
function addToSet(set, array) {
|
|
@@ -673,15 +679,15 @@ function lookupGetter(object, prop) {
|
|
|
673
679
|
}
|
|
674
680
|
return fallbackValue;
|
|
675
681
|
}
|
|
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"]);
|
|
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", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
|
|
683
|
+
const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
|
|
678
684
|
const svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]);
|
|
679
685
|
const svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]);
|
|
680
686
|
const mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]);
|
|
681
687
|
const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
|
|
682
688
|
const text = freeze(["#text"]);
|
|
683
|
-
const html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
|
|
684
|
-
const svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
|
|
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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
|
|
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", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
|
|
685
691
|
const mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
|
|
686
692
|
const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
|
|
687
693
|
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
|
|
@@ -690,7 +696,7 @@ const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
|
|
|
690
696
|
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
|
|
691
697
|
const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
|
|
692
698
|
const IS_ALLOWED_URI = seal(
|
|
693
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
699
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
694
700
|
// eslint-disable-line no-useless-escape
|
|
695
701
|
);
|
|
696
702
|
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
@@ -764,7 +770,7 @@ const _createHooksMap = function _createHooksMap2() {
|
|
|
764
770
|
function createDOMPurify() {
|
|
765
771
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
766
772
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
767
|
-
DOMPurify.version = "3.
|
|
773
|
+
DOMPurify.version = "3.3.0";
|
|
768
774
|
DOMPurify.removed = [];
|
|
769
775
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
770
776
|
DOMPurify.isSupported = false;
|
|
@@ -850,6 +856,20 @@ function createDOMPurify() {
|
|
|
850
856
|
}));
|
|
851
857
|
let FORBID_TAGS = null;
|
|
852
858
|
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
|
+
}));
|
|
853
873
|
let ALLOW_ARIA_ATTR = true;
|
|
854
874
|
let ALLOW_DATA_ATTR = true;
|
|
855
875
|
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
|
@@ -911,8 +931,8 @@ function createDOMPurify() {
|
|
|
911
931
|
URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
|
912
932
|
DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
|
|
913
933
|
FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
914
|
-
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
|
|
915
|
-
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
|
|
934
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
935
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
916
936
|
USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
|
|
917
937
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
|
|
918
938
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
|
|
@@ -973,16 +993,24 @@ function createDOMPurify() {
|
|
|
973
993
|
}
|
|
974
994
|
}
|
|
975
995
|
if (cfg.ADD_TAGS) {
|
|
976
|
-
if (
|
|
977
|
-
|
|
996
|
+
if (typeof cfg.ADD_TAGS === "function") {
|
|
997
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
998
|
+
} else {
|
|
999
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
1000
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
1001
|
+
}
|
|
1002
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
978
1003
|
}
|
|
979
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
980
1004
|
}
|
|
981
1005
|
if (cfg.ADD_ATTR) {
|
|
982
|
-
if (
|
|
983
|
-
|
|
1006
|
+
if (typeof cfg.ADD_ATTR === "function") {
|
|
1007
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
1008
|
+
} else {
|
|
1009
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
1010
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
1011
|
+
}
|
|
1012
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
984
1013
|
}
|
|
985
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
986
1014
|
}
|
|
987
1015
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
988
1016
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -1176,7 +1204,7 @@ function createDOMPurify() {
|
|
|
1176
1204
|
tagName,
|
|
1177
1205
|
allowedTags: ALLOWED_TAGS
|
|
1178
1206
|
});
|
|
1179
|
-
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
1207
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
1180
1208
|
_forceRemove(currentNode);
|
|
1181
1209
|
return true;
|
|
1182
1210
|
}
|
|
@@ -1188,7 +1216,7 @@ function createDOMPurify() {
|
|
|
1188
1216
|
_forceRemove(currentNode);
|
|
1189
1217
|
return true;
|
|
1190
1218
|
}
|
|
1191
|
-
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
1219
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
1192
1220
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
1193
1221
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
1194
1222
|
return false;
|
|
@@ -1241,12 +1269,13 @@ function createDOMPurify() {
|
|
|
1241
1269
|
}
|
|
1242
1270
|
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
|
|
1243
1271
|
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
|
|
1272
|
+
else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ;
|
|
1244
1273
|
else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1245
1274
|
if (
|
|
1246
1275
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1247
1276
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1248
1277
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
1249
|
-
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
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, lcTag)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
1250
1279
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1251
1280
|
lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))
|
|
1252
1281
|
) ;
|
|
@@ -1289,7 +1318,8 @@ function createDOMPurify() {
|
|
|
1289
1318
|
value: attrValue
|
|
1290
1319
|
} = attr;
|
|
1291
1320
|
const lcName = transformCaseFunc(name);
|
|
1292
|
-
|
|
1321
|
+
const initValue = attrValue;
|
|
1322
|
+
let value = name === "value" ? initValue : stringTrim(initValue);
|
|
1293
1323
|
hookEvent.attrName = lcName;
|
|
1294
1324
|
hookEvent.attrValue = value;
|
|
1295
1325
|
hookEvent.keepAttr = true;
|
|
@@ -1300,15 +1330,19 @@ function createDOMPurify() {
|
|
|
1300
1330
|
_removeAttribute(name, currentNode);
|
|
1301
1331
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
1302
1332
|
}
|
|
1303
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
1333
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
|
|
1334
|
+
_removeAttribute(name, currentNode);
|
|
1335
|
+
continue;
|
|
1336
|
+
}
|
|
1337
|
+
if (lcName === "attributename" && stringMatch(value, "href")) {
|
|
1304
1338
|
_removeAttribute(name, currentNode);
|
|
1305
1339
|
continue;
|
|
1306
1340
|
}
|
|
1307
1341
|
if (hookEvent.forceKeepAttr) {
|
|
1308
1342
|
continue;
|
|
1309
1343
|
}
|
|
1310
|
-
_removeAttribute(name, currentNode);
|
|
1311
1344
|
if (!hookEvent.keepAttr) {
|
|
1345
|
+
_removeAttribute(name, currentNode);
|
|
1312
1346
|
continue;
|
|
1313
1347
|
}
|
|
1314
1348
|
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
@@ -1322,6 +1356,7 @@ function createDOMPurify() {
|
|
|
1322
1356
|
}
|
|
1323
1357
|
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
1324
1358
|
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
1359
|
+
_removeAttribute(name, currentNode);
|
|
1325
1360
|
continue;
|
|
1326
1361
|
}
|
|
1327
1362
|
if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
|
|
@@ -1339,18 +1374,21 @@ function createDOMPurify() {
|
|
|
1339
1374
|
}
|
|
1340
1375
|
}
|
|
1341
1376
|
}
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1377
|
+
if (value !== initValue) {
|
|
1378
|
+
try {
|
|
1379
|
+
if (namespaceURI) {
|
|
1380
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
1381
|
+
} else {
|
|
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);
|
|
1352
1391
|
}
|
|
1353
|
-
} catch (_) {
|
|
1354
1392
|
}
|
|
1355
1393
|
}
|
|
1356
1394
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
@@ -15728,15 +15766,11 @@ function requireCipherCore() {
|
|
|
15728
15766
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
15729
15767
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
15730
15768
|
*/
|
|
15731
|
-
execute: function(password, keySize, ivSize, salt
|
|
15769
|
+
execute: function(password, keySize, ivSize, salt) {
|
|
15732
15770
|
if (!salt) {
|
|
15733
15771
|
salt = WordArray.random(64 / 8);
|
|
15734
15772
|
}
|
|
15735
|
-
|
|
15736
|
-
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
15737
|
-
} else {
|
|
15738
|
-
var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
|
|
15739
|
-
}
|
|
15773
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
15740
15774
|
var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
|
|
15741
15775
|
key.sigBytes = keySize * 4;
|
|
15742
15776
|
return CipherParams.create({ key, iv, salt });
|
|
@@ -15770,7 +15804,7 @@ function requireCipherCore() {
|
|
|
15770
15804
|
*/
|
|
15771
15805
|
encrypt: function(cipher, message, password, cfg) {
|
|
15772
15806
|
cfg = this.cfg.extend(cfg);
|
|
15773
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize
|
|
15807
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
|
|
15774
15808
|
cfg.iv = derivedParams.iv;
|
|
15775
15809
|
var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
|
|
15776
15810
|
ciphertext.mixIn(derivedParams);
|
|
@@ -15796,7 +15830,7 @@ function requireCipherCore() {
|
|
|
15796
15830
|
decrypt: function(cipher, ciphertext, password, cfg) {
|
|
15797
15831
|
cfg = this.cfg.extend(cfg);
|
|
15798
15832
|
ciphertext = this._parse(ciphertext, cfg.format);
|
|
15799
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt
|
|
15833
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
|
|
15800
15834
|
cfg.iv = derivedParams.iv;
|
|
15801
15835
|
var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
|
|
15802
15836
|
return plaintext;
|
|
@@ -17190,13 +17224,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17190
17224
|
var _a;
|
|
17191
17225
|
const layoutConfig2 = useLayoutConfig();
|
|
17192
17226
|
const { t: $t } = i18n.global;
|
|
17193
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17194
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17195
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17196
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17197
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17198
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17199
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17227
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-dhOXEBLy.js"));
|
|
17228
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-CDMu92u8.js"));
|
|
17229
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DoZtNN-H.js"));
|
|
17230
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-czyMAOt3.js"));
|
|
17231
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BgFyK42o.js"));
|
|
17232
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BTSgbs3N.js"));
|
|
17233
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CVN-rtvs.js"));
|
|
17200
17234
|
const props = __props;
|
|
17201
17235
|
const repoInfo = inject("repoInfo");
|
|
17202
17236
|
const orgInfo = inject("orgInfo");
|
|
@@ -17929,7 +17963,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17929
17963
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17930
17964
|
}
|
|
17931
17965
|
};
|
|
17932
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17966
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-BejzcUzx.js"));
|
|
17933
17967
|
function clearNotice() {
|
|
17934
17968
|
if (localStorage$2.getItem("validator_email")) {
|
|
17935
17969
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18731,9 +18765,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18731
18765
|
const layoutConfig2 = useLayoutConfig();
|
|
18732
18766
|
const { t: t2 } = i18n.global;
|
|
18733
18767
|
const route = useRoute();
|
|
18734
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18735
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18736
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18768
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-CqVzziHD.js"));
|
|
18769
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-Z99pJkPq.js"));
|
|
18770
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-UfLleVcc.js"));
|
|
18737
18771
|
const props = __props;
|
|
18738
18772
|
console.log("slotKeys", props.slotKeys);
|
|
18739
18773
|
console.log("props", props);
|
|
@@ -21735,7 +21769,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
21735
21769
|
"onUpdate:modelValue": { type: Function }
|
|
21736
21770
|
},
|
|
21737
21771
|
emits: ["update:modelValue", "declares"],
|
|
21738
|
-
setup(__props, { emit: __emit }) {
|
|
21772
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21739
21773
|
const { t: $t } = i18n.global;
|
|
21740
21774
|
const emits = __emit;
|
|
21741
21775
|
const agreementChecked = ref(false);
|
|
@@ -21757,6 +21791,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
21757
21791
|
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
|
|
21758
21792
|
}
|
|
21759
21793
|
});
|
|
21794
|
+
__expose({
|
|
21795
|
+
dataShareChecked
|
|
21796
|
+
});
|
|
21760
21797
|
return (_ctx, _cache) => {
|
|
21761
21798
|
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
21762
21799
|
createVNode(unref(Checkbox), {
|
|
@@ -21802,7 +21839,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
21802
21839
|
"onUpdate:modelValue": { type: Function }
|
|
21803
21840
|
},
|
|
21804
21841
|
emits: ["update:modelValue", "declares"],
|
|
21805
|
-
setup(__props, { emit: __emit }) {
|
|
21842
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21806
21843
|
const { t: $t } = i18n.global;
|
|
21807
21844
|
const emits = __emit;
|
|
21808
21845
|
const agreementChecked = ref(false);
|
|
@@ -21824,6 +21861,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
21824
21861
|
return $t("gitCodeLayout.LoginModal.link.dataShare", { name: "GitCode" });
|
|
21825
21862
|
}
|
|
21826
21863
|
});
|
|
21864
|
+
__expose({
|
|
21865
|
+
dataShareChecked
|
|
21866
|
+
});
|
|
21827
21867
|
return (_ctx, _cache) => {
|
|
21828
21868
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
21829
21869
|
createVNode(unref(Checkbox), {
|
|
@@ -24228,16 +24268,19 @@ const _hoisted_2$2 = { class: "text-[13px]" };
|
|
|
24228
24268
|
const _hoisted_3$2 = { class: "flex items-center justify-end px-[24px] pb-[24px]" };
|
|
24229
24269
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
24230
24270
|
__name: "loginCheckModal",
|
|
24231
|
-
props: {
|
|
24271
|
+
props: /* @__PURE__ */ mergeModels({
|
|
24272
|
+
dataShareChecked: { type: Boolean }
|
|
24273
|
+
}, {
|
|
24232
24274
|
"visible": { type: Boolean },
|
|
24233
24275
|
"visibleModifiers": {}
|
|
24234
|
-
},
|
|
24276
|
+
}),
|
|
24235
24277
|
emits: /* @__PURE__ */ mergeModels(["declares", "confirm"], ["update:visible"]),
|
|
24236
24278
|
setup(__props, { emit: __emit }) {
|
|
24237
24279
|
const { t: $t } = i18n.global;
|
|
24280
|
+
const props = __props;
|
|
24238
24281
|
const visible = useModel$1(__props, "visible");
|
|
24239
24282
|
const emits = __emit;
|
|
24240
|
-
const dataShareChecked = ref(false);
|
|
24283
|
+
const dataShareChecked = ref(props.dataShareChecked || false);
|
|
24241
24284
|
const handleClick = (type) => {
|
|
24242
24285
|
emits("declares", type);
|
|
24243
24286
|
};
|
|
@@ -24581,7 +24624,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24581
24624
|
}
|
|
24582
24625
|
});
|
|
24583
24626
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24584
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24627
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-CiLHExsI.js"));
|
|
24585
24628
|
const useSlidCaptcha = () => {
|
|
24586
24629
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24587
24630
|
const open = (config) => {
|
|
@@ -24600,7 +24643,7 @@ const useSlidCaptcha = () => {
|
|
|
24600
24643
|
close: unMount
|
|
24601
24644
|
};
|
|
24602
24645
|
};
|
|
24603
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
24646
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-DtBF5g8C.js"));
|
|
24604
24647
|
const useYunpianCaptcha = () => {
|
|
24605
24648
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
24606
24649
|
const open = (config) => {
|
|
@@ -24836,6 +24879,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24836
24879
|
var _a;
|
|
24837
24880
|
return layoutConfig2.VITE_AI_HOST === ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.origin);
|
|
24838
24881
|
});
|
|
24882
|
+
const agreementDomRef = ref(null);
|
|
24883
|
+
const agreementsDomRef = ref(null);
|
|
24884
|
+
const dataShareChecked = computed(() => {
|
|
24885
|
+
var _a, _b;
|
|
24886
|
+
if (formType.value === "register") {
|
|
24887
|
+
return ((_a = agreementsDomRef.value) == null ? void 0 : _a.dataShareChecked) || false;
|
|
24888
|
+
}
|
|
24889
|
+
if (formType.value === "login") {
|
|
24890
|
+
return ((_b = agreementDomRef.value) == null ? void 0 : _b.dataShareChecked) || false;
|
|
24891
|
+
}
|
|
24892
|
+
return false;
|
|
24893
|
+
});
|
|
24839
24894
|
const props = __props;
|
|
24840
24895
|
const request = props.request;
|
|
24841
24896
|
provide("request", request);
|
|
@@ -25146,6 +25201,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25146
25201
|
const formType = ref(props.defaultType);
|
|
25147
25202
|
const showProtoCheck = ref(false);
|
|
25148
25203
|
const agreeAndLogin = () => {
|
|
25204
|
+
showProtoCheck.value = false;
|
|
25149
25205
|
status.value = true;
|
|
25150
25206
|
if (authType.value) {
|
|
25151
25207
|
pcAuthLogin(authType.value);
|
|
@@ -25281,6 +25337,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25281
25337
|
if (!status.value && !agreementFlag) {
|
|
25282
25338
|
extraErrors.agreement = $t("gitCodeLayout.common.tips.agreementTip");
|
|
25283
25339
|
agreementFlag = true;
|
|
25340
|
+
showProtoCheck.value = true;
|
|
25284
25341
|
}
|
|
25285
25342
|
if (agreementFlag) {
|
|
25286
25343
|
AgreementWarn.value = true;
|
|
@@ -25370,14 +25427,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25370
25427
|
var _a, _b;
|
|
25371
25428
|
if (formType.value === "register") {
|
|
25372
25429
|
useReport("signup_submit", {}, API.report);
|
|
25373
|
-
if (!status.value) {
|
|
25374
|
-
extraErrors.agreement = $t("gitCodeLayout.common.tips.agreementTip");
|
|
25375
|
-
AgreementWarn.value = true;
|
|
25376
|
-
setTimeout(() => {
|
|
25377
|
-
AgreementWarn.value = false;
|
|
25378
|
-
}, 500);
|
|
25379
|
-
return false;
|
|
25380
|
-
}
|
|
25381
25430
|
}
|
|
25382
25431
|
const formData = await ((_a = FormRef.value) == null ? void 0 : _a.ValidateForm());
|
|
25383
25432
|
if (!formData || formData.type === "fail") return false;
|
|
@@ -26251,6 +26300,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26251
26300
|
}, [
|
|
26252
26301
|
createElementVNode("div", _hoisted_39, [
|
|
26253
26302
|
createVNode(_sfc_main$8, {
|
|
26303
|
+
ref_key: "agreementDomRef",
|
|
26304
|
+
ref: agreementDomRef,
|
|
26254
26305
|
modelValue: status.value,
|
|
26255
26306
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => status.value = $event),
|
|
26256
26307
|
onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ))
|
|
@@ -26303,6 +26354,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26303
26354
|
class: normalizeClass(["register-agree mt-[16px]", [AgreementWarn.value ? "shaking-box" : ""]])
|
|
26304
26355
|
}, [
|
|
26305
26356
|
createVNode(_sfc_main$7, {
|
|
26357
|
+
ref_key: "agreementsDomRef",
|
|
26358
|
+
ref: agreementsDomRef,
|
|
26306
26359
|
modelValue: status.value,
|
|
26307
26360
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => status.value = $event),
|
|
26308
26361
|
onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ)),
|
|
@@ -26361,12 +26414,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26361
26414
|
key: "0"
|
|
26362
26415
|
} : void 0
|
|
26363
26416
|
]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
|
|
26364
|
-
|
|
26417
|
+
showProtoCheck.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
26418
|
+
key: 0,
|
|
26365
26419
|
visible: showProtoCheck.value,
|
|
26366
26420
|
"onUpdate:visible": _cache[13] || (_cache[13] = ($event) => showProtoCheck.value = $event),
|
|
26367
26421
|
onConfirm: agreeAndLogin,
|
|
26368
|
-
onDeclares: _cache[14] || (_cache[14] = (typ) => handleDisplay(typ))
|
|
26369
|
-
|
|
26422
|
+
onDeclares: _cache[14] || (_cache[14] = (typ) => handleDisplay(typ)),
|
|
26423
|
+
dataShareChecked: dataShareChecked.value
|
|
26424
|
+
}, null, 8, ["visible", "dataShareChecked"])) : createCommentVNode("", true)
|
|
26370
26425
|
], 64);
|
|
26371
26426
|
};
|
|
26372
26427
|
}
|
|
@@ -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-C1KSz5lg.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:";
|
|
@@ -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-C1KSz5lg.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-TRK7iwhH.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";
|
|
@@ -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-C1KSz5lg.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
constructor() {
|
|
14
14
|
__publicField(this, "ypRiddlerInstance", null);
|
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-C1KSz5lg.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