vue-layout-gitcode 1.8.4 → 1.8.5
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-Bch5XDXF.js → GloabarSearch-CIN_TCW_.js} +3 -3
- package/{MenuItem-CnEto0_6.js → MenuItem-DPWFzVXB.js} +1 -1
- package/{ProjectMenuList-BNKIDXuN.js → ProjectMenuList-BVLJVmI6.js} +2 -2
- package/{ProjectMenuListV2-BhN-cFKJ.js → ProjectMenuListV2-C4RIsV2S.js} +2 -2
- package/{ProjectSearch-BiMB183Q.js → ProjectSearch-WzYt8Y1v.js} +1 -1
- package/{SearchHistoryList-B1zMGFc4.js → SearchHistoryList-DW4CVO6a.js} +1 -1
- package/{SearchPrefixTag-B5tbcAAp.js → SearchPrefixTag-BnWM4uEN.js} +1 -1
- package/{SearchRecommed-CNXdv-i8.js → SearchRecommed-C7qQwESs.js} +2 -2
- package/{SearchScopeList-DCRu1K1T.js → SearchScopeList-Uxugb8GA.js} +1 -1
- package/{UserSearch-BwTTe0Yq.js → UserSearch-CePOVw05.js} +1 -1
- package/{index-BqmtIp-D.js → index-B3WZRJ_L.js} +1 -1
- package/{index-5CSrmtoU.js → index-D3SBGDra.js} +2 -2
- package/{index-BzPMdoQA.js → index-hbY9VgZn.js} +99 -62
- package/{index-DQsJJr0k.js → index-potcxjP4.js} +1 -1
- package/index.js +1 -1
- package/{notice-D7gNJWrw.js → notice-DNM7wJ8P.js} +1 -1
- package/package.json +1 -1
- package/{transWebUrl-Blqna9Mh.js → transWebUrl-vq_bhETc.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-hbY9VgZn.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-D3SBGDra.js";
|
|
7
|
+
import "./transWebUrl-vq_bhETc.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 { w as useLayoutConfig, y as ThemeType, z as currentTheme, j as LANG_ZH, A as LANG_EN, x as getLocaleLang, G as GIcon, B as emitEvent, C as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-
|
|
2
|
+
import { w as useLayoutConfig, y as ThemeType, z as currentTheme, j as LANG_ZH, A as LANG_EN, x as getLocaleLang, G as GIcon, B as emitEvent, C as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-hbY9VgZn.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, w as useLayoutConfig, G as GIcon, D as transformUrl, F as _sfc_main$1, H as loadAsideData, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, w as useLayoutConfig, G as GIcon, D as transformUrl, F as _sfc_main$1, H as loadAsideData, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-hbY9VgZn.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-vq_bhETc.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, w as useLayoutConfig, G as GIcon, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, w as useLayoutConfig, G as GIcon, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-hbY9VgZn.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-vq_bhETc.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-hbY9VgZn.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-hbY9VgZn.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-hbY9VgZn.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-D3SBGDra.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-hbY9VgZn.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-hbY9VgZn.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-hbY9VgZn.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]" };
|
|
@@ -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, j as LANG_ZH, _ as _export_sfc } from "./index-
|
|
11
|
+
import { a as i18n, k as usePageResize, x as getLocaleLang, j as LANG_ZH, _ as _export_sfc } from "./index-hbY9VgZn.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
constructor() {
|
|
14
14
|
__publicField(this, "ypRiddlerInstance", null);
|
|
@@ -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, L as LANG_KEY, j as LANG_ZH, k as usePageResize, 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 } 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, L as LANG_KEY, j as LANG_ZH, k as usePageResize, 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 } from "./index-hbY9VgZn.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-vq_bhETc.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";
|
|
@@ -109,6 +109,9 @@ const transformUrl$1 = (url) => {
|
|
|
109
109
|
var _a;
|
|
110
110
|
if (typeof window !== "undefined" && typeof location !== "undefined") {
|
|
111
111
|
const host = (_a = location.host) == null ? void 0 : _a.replace(/^ai\./, "");
|
|
112
|
+
if (host.includes("local") || host.includes("test") || host.includes("pre")) {
|
|
113
|
+
return url;
|
|
114
|
+
}
|
|
112
115
|
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
113
116
|
}
|
|
114
117
|
return url;
|
|
@@ -506,7 +509,7 @@ const TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO = "asideTool_collapse_status_repo
|
|
|
506
509
|
const TOOLS_FLOAT_COLLAPSE_STATUS_KEY = "asideTool_collapse_status";
|
|
507
510
|
const TOOLS_FLOAT_COLLAPSE_DATE_KEY = "asideTool_collapse_date";
|
|
508
511
|
const GUI_YANG_GITCODE_HOST = "gitcode.host";
|
|
509
|
-
/*! @license DOMPurify 3.
|
|
512
|
+
/*! @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 */
|
|
510
513
|
const {
|
|
511
514
|
entries,
|
|
512
515
|
setPrototypeOf,
|
|
@@ -534,12 +537,18 @@ if (!seal) {
|
|
|
534
537
|
};
|
|
535
538
|
}
|
|
536
539
|
if (!apply$1) {
|
|
537
|
-
apply$1 = function apply2(
|
|
538
|
-
|
|
540
|
+
apply$1 = function apply2(func, thisArg) {
|
|
541
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
542
|
+
args[_key - 2] = arguments[_key];
|
|
543
|
+
}
|
|
544
|
+
return func.apply(thisArg, args);
|
|
539
545
|
};
|
|
540
546
|
}
|
|
541
547
|
if (!construct) {
|
|
542
|
-
construct = function construct2(Func
|
|
548
|
+
construct = function construct2(Func) {
|
|
549
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
550
|
+
args[_key2 - 1] = arguments[_key2];
|
|
551
|
+
}
|
|
543
552
|
return new Func(...args);
|
|
544
553
|
};
|
|
545
554
|
}
|
|
@@ -562,18 +571,18 @@ function unapply(func) {
|
|
|
562
571
|
if (thisArg instanceof RegExp) {
|
|
563
572
|
thisArg.lastIndex = 0;
|
|
564
573
|
}
|
|
565
|
-
for (var
|
|
566
|
-
args[
|
|
574
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
575
|
+
args[_key3 - 1] = arguments[_key3];
|
|
567
576
|
}
|
|
568
577
|
return apply$1(func, thisArg, args);
|
|
569
578
|
};
|
|
570
579
|
}
|
|
571
|
-
function unconstruct(
|
|
580
|
+
function unconstruct(Func) {
|
|
572
581
|
return function() {
|
|
573
|
-
for (var
|
|
574
|
-
args[
|
|
582
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
583
|
+
args[_key4] = arguments[_key4];
|
|
575
584
|
}
|
|
576
|
-
return construct(
|
|
585
|
+
return construct(Func, args);
|
|
577
586
|
};
|
|
578
587
|
}
|
|
579
588
|
function addToSet(set, array) {
|
|
@@ -640,15 +649,15 @@ function lookupGetter(object, prop) {
|
|
|
640
649
|
}
|
|
641
650
|
return fallbackValue;
|
|
642
651
|
}
|
|
643
|
-
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"]);
|
|
644
|
-
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"]);
|
|
652
|
+
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"]);
|
|
653
|
+
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"]);
|
|
645
654
|
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"]);
|
|
646
655
|
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"]);
|
|
647
656
|
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"]);
|
|
648
657
|
const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
|
|
649
658
|
const text = freeze(["#text"]);
|
|
650
|
-
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"]);
|
|
651
|
-
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"]);
|
|
659
|
+
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"]);
|
|
660
|
+
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"]);
|
|
652
661
|
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"]);
|
|
653
662
|
const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
|
|
654
663
|
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
|
|
@@ -657,7 +666,7 @@ const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
|
|
|
657
666
|
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
|
|
658
667
|
const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
|
|
659
668
|
const IS_ALLOWED_URI = seal(
|
|
660
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
669
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
661
670
|
// eslint-disable-line no-useless-escape
|
|
662
671
|
);
|
|
663
672
|
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
@@ -731,7 +740,7 @@ const _createHooksMap = function _createHooksMap2() {
|
|
|
731
740
|
function createDOMPurify() {
|
|
732
741
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
733
742
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
734
|
-
DOMPurify.version = "3.
|
|
743
|
+
DOMPurify.version = "3.3.0";
|
|
735
744
|
DOMPurify.removed = [];
|
|
736
745
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
737
746
|
DOMPurify.isSupported = false;
|
|
@@ -817,6 +826,20 @@ function createDOMPurify() {
|
|
|
817
826
|
}));
|
|
818
827
|
let FORBID_TAGS = null;
|
|
819
828
|
let FORBID_ATTR = null;
|
|
829
|
+
const EXTRA_ELEMENT_HANDLING = Object.seal(create$1(null, {
|
|
830
|
+
tagCheck: {
|
|
831
|
+
writable: true,
|
|
832
|
+
configurable: false,
|
|
833
|
+
enumerable: true,
|
|
834
|
+
value: null
|
|
835
|
+
},
|
|
836
|
+
attributeCheck: {
|
|
837
|
+
writable: true,
|
|
838
|
+
configurable: false,
|
|
839
|
+
enumerable: true,
|
|
840
|
+
value: null
|
|
841
|
+
}
|
|
842
|
+
}));
|
|
820
843
|
let ALLOW_ARIA_ATTR = true;
|
|
821
844
|
let ALLOW_DATA_ATTR = true;
|
|
822
845
|
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
|
@@ -878,8 +901,8 @@ function createDOMPurify() {
|
|
|
878
901
|
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;
|
|
879
902
|
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;
|
|
880
903
|
FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
881
|
-
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
|
|
882
|
-
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
|
|
904
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
905
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
883
906
|
USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
|
|
884
907
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
|
|
885
908
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
|
|
@@ -940,16 +963,24 @@ function createDOMPurify() {
|
|
|
940
963
|
}
|
|
941
964
|
}
|
|
942
965
|
if (cfg.ADD_TAGS) {
|
|
943
|
-
if (
|
|
944
|
-
|
|
966
|
+
if (typeof cfg.ADD_TAGS === "function") {
|
|
967
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
968
|
+
} else {
|
|
969
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
970
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
971
|
+
}
|
|
972
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
945
973
|
}
|
|
946
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
947
974
|
}
|
|
948
975
|
if (cfg.ADD_ATTR) {
|
|
949
|
-
if (
|
|
950
|
-
|
|
976
|
+
if (typeof cfg.ADD_ATTR === "function") {
|
|
977
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
978
|
+
} else {
|
|
979
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
980
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
981
|
+
}
|
|
982
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
951
983
|
}
|
|
952
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
953
984
|
}
|
|
954
985
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
955
986
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -1143,7 +1174,7 @@ function createDOMPurify() {
|
|
|
1143
1174
|
tagName,
|
|
1144
1175
|
allowedTags: ALLOWED_TAGS
|
|
1145
1176
|
});
|
|
1146
|
-
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
1177
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
1147
1178
|
_forceRemove(currentNode);
|
|
1148
1179
|
return true;
|
|
1149
1180
|
}
|
|
@@ -1155,7 +1186,7 @@ function createDOMPurify() {
|
|
|
1155
1186
|
_forceRemove(currentNode);
|
|
1156
1187
|
return true;
|
|
1157
1188
|
}
|
|
1158
|
-
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
1189
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
1159
1190
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
1160
1191
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
1161
1192
|
return false;
|
|
@@ -1208,12 +1239,13 @@ function createDOMPurify() {
|
|
|
1208
1239
|
}
|
|
1209
1240
|
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
|
|
1210
1241
|
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
|
|
1242
|
+
else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ;
|
|
1211
1243
|
else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1212
1244
|
if (
|
|
1213
1245
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1214
1246
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1215
1247
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
1216
|
-
_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
|
|
1248
|
+
_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
|
|
1217
1249
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1218
1250
|
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))
|
|
1219
1251
|
) ;
|
|
@@ -1256,7 +1288,8 @@ function createDOMPurify() {
|
|
|
1256
1288
|
value: attrValue
|
|
1257
1289
|
} = attr;
|
|
1258
1290
|
const lcName = transformCaseFunc(name);
|
|
1259
|
-
|
|
1291
|
+
const initValue = attrValue;
|
|
1292
|
+
let value = name === "value" ? initValue : stringTrim(initValue);
|
|
1260
1293
|
hookEvent.attrName = lcName;
|
|
1261
1294
|
hookEvent.attrValue = value;
|
|
1262
1295
|
hookEvent.keepAttr = true;
|
|
@@ -1267,15 +1300,19 @@ function createDOMPurify() {
|
|
|
1267
1300
|
_removeAttribute(name, currentNode);
|
|
1268
1301
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
1269
1302
|
}
|
|
1270
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
1303
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
|
|
1304
|
+
_removeAttribute(name, currentNode);
|
|
1305
|
+
continue;
|
|
1306
|
+
}
|
|
1307
|
+
if (lcName === "attributename" && stringMatch(value, "href")) {
|
|
1271
1308
|
_removeAttribute(name, currentNode);
|
|
1272
1309
|
continue;
|
|
1273
1310
|
}
|
|
1274
1311
|
if (hookEvent.forceKeepAttr) {
|
|
1275
1312
|
continue;
|
|
1276
1313
|
}
|
|
1277
|
-
_removeAttribute(name, currentNode);
|
|
1278
1314
|
if (!hookEvent.keepAttr) {
|
|
1315
|
+
_removeAttribute(name, currentNode);
|
|
1279
1316
|
continue;
|
|
1280
1317
|
}
|
|
1281
1318
|
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
@@ -1289,6 +1326,7 @@ function createDOMPurify() {
|
|
|
1289
1326
|
}
|
|
1290
1327
|
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
1291
1328
|
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
1329
|
+
_removeAttribute(name, currentNode);
|
|
1292
1330
|
continue;
|
|
1293
1331
|
}
|
|
1294
1332
|
if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
|
|
@@ -1306,18 +1344,21 @@ function createDOMPurify() {
|
|
|
1306
1344
|
}
|
|
1307
1345
|
}
|
|
1308
1346
|
}
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1347
|
+
if (value !== initValue) {
|
|
1348
|
+
try {
|
|
1349
|
+
if (namespaceURI) {
|
|
1350
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
1351
|
+
} else {
|
|
1352
|
+
currentNode.setAttribute(name, value);
|
|
1353
|
+
}
|
|
1354
|
+
if (_isClobbered(currentNode)) {
|
|
1355
|
+
_forceRemove(currentNode);
|
|
1356
|
+
} else {
|
|
1357
|
+
arrayPop(DOMPurify.removed);
|
|
1358
|
+
}
|
|
1359
|
+
} catch (_) {
|
|
1360
|
+
_removeAttribute(name, currentNode);
|
|
1319
1361
|
}
|
|
1320
|
-
} catch (_) {
|
|
1321
1362
|
}
|
|
1322
1363
|
}
|
|
1323
1364
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
@@ -15409,15 +15450,11 @@ function requireCipherCore() {
|
|
|
15409
15450
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
15410
15451
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
15411
15452
|
*/
|
|
15412
|
-
execute: function(password, keySize, ivSize, salt
|
|
15453
|
+
execute: function(password, keySize, ivSize, salt) {
|
|
15413
15454
|
if (!salt) {
|
|
15414
15455
|
salt = WordArray.random(64 / 8);
|
|
15415
15456
|
}
|
|
15416
|
-
|
|
15417
|
-
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
15418
|
-
} else {
|
|
15419
|
-
var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
|
|
15420
|
-
}
|
|
15457
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
15421
15458
|
var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
|
|
15422
15459
|
key.sigBytes = keySize * 4;
|
|
15423
15460
|
return CipherParams.create({ key, iv, salt });
|
|
@@ -15451,7 +15488,7 @@ function requireCipherCore() {
|
|
|
15451
15488
|
*/
|
|
15452
15489
|
encrypt: function(cipher, message, password, cfg) {
|
|
15453
15490
|
cfg = this.cfg.extend(cfg);
|
|
15454
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize
|
|
15491
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
|
|
15455
15492
|
cfg.iv = derivedParams.iv;
|
|
15456
15493
|
var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
|
|
15457
15494
|
ciphertext.mixIn(derivedParams);
|
|
@@ -15477,7 +15514,7 @@ function requireCipherCore() {
|
|
|
15477
15514
|
decrypt: function(cipher, ciphertext, password, cfg) {
|
|
15478
15515
|
cfg = this.cfg.extend(cfg);
|
|
15479
15516
|
ciphertext = this._parse(ciphertext, cfg.format);
|
|
15480
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt
|
|
15517
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
|
|
15481
15518
|
cfg.iv = derivedParams.iv;
|
|
15482
15519
|
var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
|
|
15483
15520
|
return plaintext;
|
|
@@ -16800,13 +16837,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16800
16837
|
var _a;
|
|
16801
16838
|
const layoutConfig2 = useLayoutConfig();
|
|
16802
16839
|
const { t: $t } = i18n.global;
|
|
16803
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16804
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16805
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16806
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16807
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16808
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
16809
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
16840
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-WzYt8Y1v.js"));
|
|
16841
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-CePOVw05.js"));
|
|
16842
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CIN_TCW_.js"));
|
|
16843
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DW4CVO6a.js"));
|
|
16844
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Uxugb8GA.js"));
|
|
16845
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BnWM4uEN.js"));
|
|
16846
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-C7qQwESs.js"));
|
|
16810
16847
|
const props = __props;
|
|
16811
16848
|
const repoInfo = inject("repoInfo");
|
|
16812
16849
|
const orgInfo = inject("orgInfo");
|
|
@@ -17460,7 +17497,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17460
17497
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17461
17498
|
}
|
|
17462
17499
|
};
|
|
17463
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17500
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-DNM7wJ8P.js"));
|
|
17464
17501
|
function clearNotice() {
|
|
17465
17502
|
if (localStorage$2.getItem("validator_email")) {
|
|
17466
17503
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18217,9 +18254,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18217
18254
|
const layoutConfig2 = useLayoutConfig();
|
|
18218
18255
|
const { t: t2 } = i18n.global;
|
|
18219
18256
|
const route = useRoute();
|
|
18220
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18221
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18222
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18257
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-DPWFzVXB.js"));
|
|
18258
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-C4RIsV2S.js"));
|
|
18259
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BVLJVmI6.js"));
|
|
18223
18260
|
const props = __props;
|
|
18224
18261
|
console.log("slotKeys", props.slotKeys);
|
|
18225
18262
|
console.log("props", props);
|
|
@@ -23931,7 +23968,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
23931
23968
|
}
|
|
23932
23969
|
});
|
|
23933
23970
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23934
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23971
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-potcxjP4.js"));
|
|
23935
23972
|
const useSlidCaptcha = () => {
|
|
23936
23973
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
23937
23974
|
const open = (config) => {
|
|
@@ -23950,7 +23987,7 @@ const useSlidCaptcha = () => {
|
|
|
23950
23987
|
close: unMount
|
|
23951
23988
|
};
|
|
23952
23989
|
};
|
|
23953
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
23990
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-B3WZRJ_L.js"));
|
|
23954
23991
|
const useYunpianCaptcha = () => {
|
|
23955
23992
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
23956
23993
|
const open = (config) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
2
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
3
|
-
import { w as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { w as useLayoutConfig, _ as _export_sfc } from "./index-hbY9VgZn.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
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-hbY9VgZn.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