From 12cb5168c2774c8e7371e1d5af4abbe4097f5c4f Mon Sep 17 00:00:00 2001 From: HoshinoDesu <1718407219@qq.com> Date: Wed, 11 Feb 2026 21:00:26 +0800 Subject: [PATCH] Use CDN for Vue --- internal/server/web/index.html | 2 +- internal/server/web/vue.global.js | 18466 ---------------------------- 2 files changed, 1 insertion(+), 18467 deletions(-) delete mode 100644 internal/server/web/vue.global.js diff --git a/internal/server/web/index.html b/internal/server/web/index.html index c93d8f2..c550bc8 100644 --- a/internal/server/web/index.html +++ b/internal/server/web/index.html @@ -16,7 +16,7 @@ document.documentElement.setAttribute('data-theme', actualTheme); })(); - + 100) { - let l = -1; - let r = length; - while (l + 1 < r) { - const m = l + r >>> 1; - this.newlines[m] < index ? l = m : r = m; - } - j = l; - } else { - for (let i = length - 1; i >= 0; i--) { - if (index > this.newlines[i]) { - j = i; - break; - } - } - } - if (j >= 0) { - line = j + 2; - column = index - this.newlines[j]; - } - return { - column, - line, - offset: index - }; - } - peek() { - return this.buffer.charCodeAt(this.index + 1); - } - stateText(c) { - if (c === 60) { - if (this.index > this.sectionStart) { - this.cbs.ontext(this.sectionStart, this.index); - } - this.state = 5; - this.sectionStart = this.index; - } else if (!this.inVPre && c === this.delimiterOpen[0]) { - this.state = 2; - this.delimiterIndex = 0; - this.stateInterpolationOpen(c); - } - } - stateInterpolationOpen(c) { - if (c === this.delimiterOpen[this.delimiterIndex]) { - if (this.delimiterIndex === this.delimiterOpen.length - 1) { - const start = this.index + 1 - this.delimiterOpen.length; - if (start > this.sectionStart) { - this.cbs.ontext(this.sectionStart, start); - } - this.state = 3; - this.sectionStart = start; - } else { - this.delimiterIndex++; - } - } else if (this.inRCDATA) { - this.state = 32; - this.stateInRCDATA(c); - } else { - this.state = 1; - this.stateText(c); - } - } - stateInterpolation(c) { - if (c === this.delimiterClose[0]) { - this.state = 4; - this.delimiterIndex = 0; - this.stateInterpolationClose(c); - } - } - stateInterpolationClose(c) { - if (c === this.delimiterClose[this.delimiterIndex]) { - if (this.delimiterIndex === this.delimiterClose.length - 1) { - this.cbs.oninterpolation(this.sectionStart, this.index + 1); - if (this.inRCDATA) { - this.state = 32; - } else { - this.state = 1; - } - this.sectionStart = this.index + 1; - } else { - this.delimiterIndex++; - } - } else { - this.state = 3; - this.stateInterpolation(c); - } - } - stateSpecialStartSequence(c) { - const isEnd = this.sequenceIndex === this.currentSequence.length; - const isMatch = isEnd ? ( - // If we are at the end of the sequence, make sure the tag name has ended - isEndOfTagSection(c) - ) : ( - // Otherwise, do a case-insensitive comparison - (c | 32) === this.currentSequence[this.sequenceIndex] - ); - if (!isMatch) { - this.inRCDATA = false; - } else if (!isEnd) { - this.sequenceIndex++; - return; - } - this.sequenceIndex = 0; - this.state = 6; - this.stateInTagName(c); - } - /** Look for an end tag. For