vue-layout-gitcode 1.8.4 → 1.8.6
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-WzURaaE2.js} +3 -3
- package/{MenuItem-CnEto0_6.js → MenuItem-TJQCs21m.js} +1 -1
- package/{ProjectMenuList-BNKIDXuN.js → ProjectMenuList-oOvCZz16.js} +2 -2
- package/{ProjectMenuListV2-BhN-cFKJ.js → ProjectMenuListV2-D6AJ6KIA.js} +2 -2
- package/{ProjectSearch-BiMB183Q.js → ProjectSearch-DrM7ESs7.js} +1 -1
- package/{SearchHistoryList-B1zMGFc4.js → SearchHistoryList-Cf45r42B.js} +1 -1
- package/{SearchPrefixTag-B5tbcAAp.js → SearchPrefixTag-D2SSFww4.js} +1 -1
- package/{SearchRecommed-CNXdv-i8.js → SearchRecommed-ntQqKy39.js} +2 -2
- package/{SearchScopeList-DCRu1K1T.js → SearchScopeList-BxdcoxMf.js} +1 -1
- package/{UserSearch-BwTTe0Yq.js → UserSearch-B-C9MfXy.js} +1 -1
- package/{index-BqmtIp-D.js → index-BvnG97gT.js} +1 -1
- package/{index-5CSrmtoU.js → index-DEuFShUc.js} +2 -2
- package/{index-DQsJJr0k.js → index-UW3pMCjY.js} +1 -1
- package/{index-BzPMdoQA.js → index-ldLvMMoP.js} +102 -62
- package/index.js +1 -1
- package/{notice-D7gNJWrw.js → notice-fO63Oyih.js} +1 -1
- package/package.json +1 -1
- package/{transWebUrl-Blqna9Mh.js → transWebUrl-Citj7t2T.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-ldLvMMoP.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-DEuFShUc.js";
|
|
7
|
+
import "./transWebUrl-Citj7t2T.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-ldLvMMoP.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-ldLvMMoP.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-Citj7t2T.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-ldLvMMoP.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-Citj7t2T.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-ldLvMMoP.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-ldLvMMoP.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-ldLvMMoP.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-DEuFShUc.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-ldLvMMoP.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-ldLvMMoP.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-ldLvMMoP.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-ldLvMMoP.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-ldLvMMoP.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-Citj7t2T.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";
|
|
@@ -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-ldLvMMoP.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -109,6 +109,12 @@ 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("gitcode.host")) {
|
|
113
|
+
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
114
|
+
}
|
|
115
|
+
if (url.startsWith("https://cdn-")) {
|
|
116
|
+
return url;
|
|
117
|
+
}
|
|
112
118
|
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
113
119
|
}
|
|
114
120
|
return url;
|
|
@@ -506,7 +512,7 @@ const TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO = "asideTool_collapse_status_repo
|
|
|
506
512
|
const TOOLS_FLOAT_COLLAPSE_STATUS_KEY = "asideTool_collapse_status";
|
|
507
513
|
const TOOLS_FLOAT_COLLAPSE_DATE_KEY = "asideTool_collapse_date";
|
|
508
514
|
const GUI_YANG_GITCODE_HOST = "gitcode.host";
|
|
509
|
-
/*! @license DOMPurify 3.
|
|
515
|
+
/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
|
|
510
516
|
const {
|
|
511
517
|
entries,
|
|
512
518
|
setPrototypeOf,
|
|
@@ -534,12 +540,18 @@ if (!seal) {
|
|
|
534
540
|
};
|
|
535
541
|
}
|
|
536
542
|
if (!apply$1) {
|
|
537
|
-
apply$1 = function apply2(
|
|
538
|
-
|
|
543
|
+
apply$1 = function apply2(func, thisArg) {
|
|
544
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
545
|
+
args[_key - 2] = arguments[_key];
|
|
546
|
+
}
|
|
547
|
+
return func.apply(thisArg, args);
|
|
539
548
|
};
|
|
540
549
|
}
|
|
541
550
|
if (!construct) {
|
|
542
|
-
construct = function construct2(Func
|
|
551
|
+
construct = function construct2(Func) {
|
|
552
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
553
|
+
args[_key2 - 1] = arguments[_key2];
|
|
554
|
+
}
|
|
543
555
|
return new Func(...args);
|
|
544
556
|
};
|
|
545
557
|
}
|
|
@@ -562,18 +574,18 @@ function unapply(func) {
|
|
|
562
574
|
if (thisArg instanceof RegExp) {
|
|
563
575
|
thisArg.lastIndex = 0;
|
|
564
576
|
}
|
|
565
|
-
for (var
|
|
566
|
-
args[
|
|
577
|
+
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
578
|
+
args[_key3 - 1] = arguments[_key3];
|
|
567
579
|
}
|
|
568
580
|
return apply$1(func, thisArg, args);
|
|
569
581
|
};
|
|
570
582
|
}
|
|
571
|
-
function unconstruct(
|
|
583
|
+
function unconstruct(Func) {
|
|
572
584
|
return function() {
|
|
573
|
-
for (var
|
|
574
|
-
args[
|
|
585
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
586
|
+
args[_key4] = arguments[_key4];
|
|
575
587
|
}
|
|
576
|
-
return construct(
|
|
588
|
+
return construct(Func, args);
|
|
577
589
|
};
|
|
578
590
|
}
|
|
579
591
|
function addToSet(set, array) {
|
|
@@ -640,15 +652,15 @@ function lookupGetter(object, prop) {
|
|
|
640
652
|
}
|
|
641
653
|
return fallbackValue;
|
|
642
654
|
}
|
|
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"]);
|
|
655
|
+
const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "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"]);
|
|
656
|
+
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
657
|
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
658
|
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
659
|
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
660
|
const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
|
|
649
661
|
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"]);
|
|
662
|
+
const html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "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"]);
|
|
663
|
+
const svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "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
664
|
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
665
|
const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
|
|
654
666
|
const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
|
|
@@ -657,7 +669,7 @@ const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
|
|
|
657
669
|
const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
|
|
658
670
|
const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
|
|
659
671
|
const IS_ALLOWED_URI = seal(
|
|
660
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
672
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
661
673
|
// eslint-disable-line no-useless-escape
|
|
662
674
|
);
|
|
663
675
|
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
@@ -731,7 +743,7 @@ const _createHooksMap = function _createHooksMap2() {
|
|
|
731
743
|
function createDOMPurify() {
|
|
732
744
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
733
745
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
734
|
-
DOMPurify.version = "3.
|
|
746
|
+
DOMPurify.version = "3.3.0";
|
|
735
747
|
DOMPurify.removed = [];
|
|
736
748
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
737
749
|
DOMPurify.isSupported = false;
|
|
@@ -817,6 +829,20 @@ function createDOMPurify() {
|
|
|
817
829
|
}));
|
|
818
830
|
let FORBID_TAGS = null;
|
|
819
831
|
let FORBID_ATTR = null;
|
|
832
|
+
const EXTRA_ELEMENT_HANDLING = Object.seal(create$1(null, {
|
|
833
|
+
tagCheck: {
|
|
834
|
+
writable: true,
|
|
835
|
+
configurable: false,
|
|
836
|
+
enumerable: true,
|
|
837
|
+
value: null
|
|
838
|
+
},
|
|
839
|
+
attributeCheck: {
|
|
840
|
+
writable: true,
|
|
841
|
+
configurable: false,
|
|
842
|
+
enumerable: true,
|
|
843
|
+
value: null
|
|
844
|
+
}
|
|
845
|
+
}));
|
|
820
846
|
let ALLOW_ARIA_ATTR = true;
|
|
821
847
|
let ALLOW_DATA_ATTR = true;
|
|
822
848
|
let ALLOW_UNKNOWN_PROTOCOLS = false;
|
|
@@ -878,8 +904,8 @@ function createDOMPurify() {
|
|
|
878
904
|
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
905
|
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
906
|
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) : {};
|
|
907
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
908
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
883
909
|
USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
|
|
884
910
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
|
|
885
911
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
|
|
@@ -940,16 +966,24 @@ function createDOMPurify() {
|
|
|
940
966
|
}
|
|
941
967
|
}
|
|
942
968
|
if (cfg.ADD_TAGS) {
|
|
943
|
-
if (
|
|
944
|
-
|
|
969
|
+
if (typeof cfg.ADD_TAGS === "function") {
|
|
970
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
971
|
+
} else {
|
|
972
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
973
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
974
|
+
}
|
|
975
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
945
976
|
}
|
|
946
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
947
977
|
}
|
|
948
978
|
if (cfg.ADD_ATTR) {
|
|
949
|
-
if (
|
|
950
|
-
|
|
979
|
+
if (typeof cfg.ADD_ATTR === "function") {
|
|
980
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
981
|
+
} else {
|
|
982
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
983
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
984
|
+
}
|
|
985
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
951
986
|
}
|
|
952
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
953
987
|
}
|
|
954
988
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
955
989
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -1143,7 +1177,7 @@ function createDOMPurify() {
|
|
|
1143
1177
|
tagName,
|
|
1144
1178
|
allowedTags: ALLOWED_TAGS
|
|
1145
1179
|
});
|
|
1146
|
-
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
1180
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
|
|
1147
1181
|
_forceRemove(currentNode);
|
|
1148
1182
|
return true;
|
|
1149
1183
|
}
|
|
@@ -1155,7 +1189,7 @@ function createDOMPurify() {
|
|
|
1155
1189
|
_forceRemove(currentNode);
|
|
1156
1190
|
return true;
|
|
1157
1191
|
}
|
|
1158
|
-
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
1192
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
1159
1193
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
1160
1194
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
1161
1195
|
return false;
|
|
@@ -1208,12 +1242,13 @@ function createDOMPurify() {
|
|
|
1208
1242
|
}
|
|
1209
1243
|
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
|
|
1210
1244
|
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
|
|
1245
|
+
else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ;
|
|
1211
1246
|
else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1212
1247
|
if (
|
|
1213
1248
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1214
1249
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1215
1250
|
// 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
|
|
1251
|
+
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
1217
1252
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1218
1253
|
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
1254
|
) ;
|
|
@@ -1256,7 +1291,8 @@ function createDOMPurify() {
|
|
|
1256
1291
|
value: attrValue
|
|
1257
1292
|
} = attr;
|
|
1258
1293
|
const lcName = transformCaseFunc(name);
|
|
1259
|
-
|
|
1294
|
+
const initValue = attrValue;
|
|
1295
|
+
let value = name === "value" ? initValue : stringTrim(initValue);
|
|
1260
1296
|
hookEvent.attrName = lcName;
|
|
1261
1297
|
hookEvent.attrValue = value;
|
|
1262
1298
|
hookEvent.keepAttr = true;
|
|
@@ -1267,15 +1303,19 @@ function createDOMPurify() {
|
|
|
1267
1303
|
_removeAttribute(name, currentNode);
|
|
1268
1304
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
1269
1305
|
}
|
|
1270
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
1306
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
|
|
1307
|
+
_removeAttribute(name, currentNode);
|
|
1308
|
+
continue;
|
|
1309
|
+
}
|
|
1310
|
+
if (lcName === "attributename" && stringMatch(value, "href")) {
|
|
1271
1311
|
_removeAttribute(name, currentNode);
|
|
1272
1312
|
continue;
|
|
1273
1313
|
}
|
|
1274
1314
|
if (hookEvent.forceKeepAttr) {
|
|
1275
1315
|
continue;
|
|
1276
1316
|
}
|
|
1277
|
-
_removeAttribute(name, currentNode);
|
|
1278
1317
|
if (!hookEvent.keepAttr) {
|
|
1318
|
+
_removeAttribute(name, currentNode);
|
|
1279
1319
|
continue;
|
|
1280
1320
|
}
|
|
1281
1321
|
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
|
|
@@ -1289,6 +1329,7 @@ function createDOMPurify() {
|
|
|
1289
1329
|
}
|
|
1290
1330
|
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
1291
1331
|
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
1332
|
+
_removeAttribute(name, currentNode);
|
|
1292
1333
|
continue;
|
|
1293
1334
|
}
|
|
1294
1335
|
if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
|
|
@@ -1306,18 +1347,21 @@ function createDOMPurify() {
|
|
|
1306
1347
|
}
|
|
1307
1348
|
}
|
|
1308
1349
|
}
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1350
|
+
if (value !== initValue) {
|
|
1351
|
+
try {
|
|
1352
|
+
if (namespaceURI) {
|
|
1353
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
1354
|
+
} else {
|
|
1355
|
+
currentNode.setAttribute(name, value);
|
|
1356
|
+
}
|
|
1357
|
+
if (_isClobbered(currentNode)) {
|
|
1358
|
+
_forceRemove(currentNode);
|
|
1359
|
+
} else {
|
|
1360
|
+
arrayPop(DOMPurify.removed);
|
|
1361
|
+
}
|
|
1362
|
+
} catch (_) {
|
|
1363
|
+
_removeAttribute(name, currentNode);
|
|
1319
1364
|
}
|
|
1320
|
-
} catch (_) {
|
|
1321
1365
|
}
|
|
1322
1366
|
}
|
|
1323
1367
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
@@ -15409,15 +15453,11 @@ function requireCipherCore() {
|
|
|
15409
15453
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
15410
15454
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
15411
15455
|
*/
|
|
15412
|
-
execute: function(password, keySize, ivSize, salt
|
|
15456
|
+
execute: function(password, keySize, ivSize, salt) {
|
|
15413
15457
|
if (!salt) {
|
|
15414
15458
|
salt = WordArray.random(64 / 8);
|
|
15415
15459
|
}
|
|
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
|
-
}
|
|
15460
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
15421
15461
|
var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
|
|
15422
15462
|
key.sigBytes = keySize * 4;
|
|
15423
15463
|
return CipherParams.create({ key, iv, salt });
|
|
@@ -15451,7 +15491,7 @@ function requireCipherCore() {
|
|
|
15451
15491
|
*/
|
|
15452
15492
|
encrypt: function(cipher, message, password, cfg) {
|
|
15453
15493
|
cfg = this.cfg.extend(cfg);
|
|
15454
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize
|
|
15494
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
|
|
15455
15495
|
cfg.iv = derivedParams.iv;
|
|
15456
15496
|
var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
|
|
15457
15497
|
ciphertext.mixIn(derivedParams);
|
|
@@ -15477,7 +15517,7 @@ function requireCipherCore() {
|
|
|
15477
15517
|
decrypt: function(cipher, ciphertext, password, cfg) {
|
|
15478
15518
|
cfg = this.cfg.extend(cfg);
|
|
15479
15519
|
ciphertext = this._parse(ciphertext, cfg.format);
|
|
15480
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt
|
|
15520
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
|
|
15481
15521
|
cfg.iv = derivedParams.iv;
|
|
15482
15522
|
var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
|
|
15483
15523
|
return plaintext;
|
|
@@ -16800,13 +16840,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16800
16840
|
var _a;
|
|
16801
16841
|
const layoutConfig2 = useLayoutConfig();
|
|
16802
16842
|
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-
|
|
16843
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DrM7ESs7.js"));
|
|
16844
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-B-C9MfXy.js"));
|
|
16845
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-WzURaaE2.js"));
|
|
16846
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Cf45r42B.js"));
|
|
16847
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BxdcoxMf.js"));
|
|
16848
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-D2SSFww4.js"));
|
|
16849
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-ntQqKy39.js"));
|
|
16810
16850
|
const props = __props;
|
|
16811
16851
|
const repoInfo = inject("repoInfo");
|
|
16812
16852
|
const orgInfo = inject("orgInfo");
|
|
@@ -17460,7 +17500,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17460
17500
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17461
17501
|
}
|
|
17462
17502
|
};
|
|
17463
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17503
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-fO63Oyih.js"));
|
|
17464
17504
|
function clearNotice() {
|
|
17465
17505
|
if (localStorage$2.getItem("validator_email")) {
|
|
17466
17506
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18217,9 +18257,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18217
18257
|
const layoutConfig2 = useLayoutConfig();
|
|
18218
18258
|
const { t: t2 } = i18n.global;
|
|
18219
18259
|
const route = useRoute();
|
|
18220
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18221
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18222
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18260
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-TJQCs21m.js"));
|
|
18261
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-D6AJ6KIA.js"));
|
|
18262
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-oOvCZz16.js"));
|
|
18223
18263
|
const props = __props;
|
|
18224
18264
|
console.log("slotKeys", props.slotKeys);
|
|
18225
18265
|
console.log("props", props);
|
|
@@ -23931,7 +23971,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
23931
23971
|
}
|
|
23932
23972
|
});
|
|
23933
23973
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23934
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23974
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-UW3pMCjY.js"));
|
|
23935
23975
|
const useSlidCaptcha = () => {
|
|
23936
23976
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
23937
23977
|
const open = (config) => {
|
|
@@ -23950,7 +23990,7 @@ const useSlidCaptcha = () => {
|
|
|
23950
23990
|
close: unMount
|
|
23951
23991
|
};
|
|
23952
23992
|
};
|
|
23953
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
23993
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-BvnG97gT.js"));
|
|
23954
23994
|
const useYunpianCaptcha = () => {
|
|
23955
23995
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
23956
23996
|
const open = (config) => {
|
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-ldLvMMoP.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