This commit is contained in:
毛财君
2023-07-06 17:37:33 +08:00
parent 06f26608af
commit 197b38ca6f
816 changed files with 236883 additions and 989 deletions

View File

@@ -0,0 +1,75 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var compilerDom = require('@vue/compiler-dom');
var runtimeDom = require('@vue/runtime-dom');
var shared = require('@vue/shared');
function _interopNamespaceDefault(e) {
var n = Object.create(null);
if (e) {
for (var k in e) {
n[k] = e[k];
}
}
n.default = e;
return Object.freeze(n);
}
var runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);
const compileCache = /* @__PURE__ */ Object.create(null);
function compileToFunction(template, options) {
if (!shared.isString(template)) {
if (template.nodeType) {
template = template.innerHTML;
} else {
runtimeDom.warn(`invalid template option: `, template);
return shared.NOOP;
}
}
const key = template;
const cached = compileCache[key];
if (cached) {
return cached;
}
if (template[0] === "#") {
const el = document.querySelector(template);
if (!el) {
runtimeDom.warn(`Template element not found or is empty: ${template}`);
}
template = el ? el.innerHTML : ``;
}
const opts = shared.extend(
{
hoistStatic: true,
onError: onError ,
onWarn: (e) => onError(e, true)
},
options
);
if (!opts.isCustomElement && typeof customElements !== "undefined") {
opts.isCustomElement = (tag) => !!customElements.get(tag);
}
const { code } = compilerDom.compile(template, opts);
function onError(err, asWarning = false) {
const message = asWarning ? err.message : `Template compilation error: ${err.message}`;
const codeFrame = err.loc && shared.generateCodeFrame(
template,
err.loc.start.offset,
err.loc.end.offset
);
runtimeDom.warn(codeFrame ? `${message}
${codeFrame}` : message);
}
const render = new Function("Vue", code)(runtimeDom__namespace);
render._rc = true;
return compileCache[key] = render;
}
runtimeDom.registerRuntimeCompiler(compileToFunction);
exports.compile = compileToFunction;
Object.keys(runtimeDom).forEach(function (k) {
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = runtimeDom[k];
});

View File

@@ -0,0 +1,2 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var compilerDom=require("@vue/compiler-dom"),runtimeDom=require("@vue/runtime-dom"),shared=require("@vue/shared");function _interopNamespaceDefault(e){var t=Object.create(null);if(e)for(var o in e)t[o]=e[o];return t.default=e,Object.freeze(t)}var runtimeDom__namespace=_interopNamespaceDefault(runtimeDom);const compileCache=Object.create(null);function compileToFunction(o,e){if(!shared.isString(o)){if(!o.nodeType)return runtimeDom.warn("invalid template option: ",o),shared.NOOP;o=o.innerHTML}var t=o,r=compileCache[t];if(r)return r;"#"===o[0]&&((r=document.querySelector(o))||runtimeDom.warn("Template element not found or is empty: "+o),o=r?r.innerHTML:"");const n=shared.extend({hoistStatic:!0,onError:i,onWarn:e=>i(e,!0)},e);n.isCustomElement||"undefined"==typeof customElements||(n.isCustomElement=e=>!!customElements.get(e));r=compilerDom.compile(o,n).code;function i(e,t=!1){t=t?e.message:"Template compilation error: "+e.message,e=e.loc&&shared.generateCodeFrame(o,e.loc.start.offset,e.loc.end.offset);runtimeDom.warn(e?t+`
`+e:t)}const m=new Function("Vue",r)(runtimeDom__namespace);return m._rc=!0,compileCache[t]=m}runtimeDom.registerRuntimeCompiler(compileToFunction),exports.compile=compileToFunction,Object.keys(runtimeDom).forEach(function(e){"default"===e||exports.hasOwnProperty(e)||(exports[e]=runtimeDom[e])});

View File

@@ -0,0 +1,61 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var compilerDom = require('@vue/compiler-dom');
var runtimeDom = require('@vue/runtime-dom');
var shared = require('@vue/shared');
function _interopNamespaceDefault(e) {
var n = Object.create(null);
if (e) {
for (var k in e) {
n[k] = e[k];
}
}
n.default = e;
return Object.freeze(n);
}
var runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);
const compileCache = /* @__PURE__ */ Object.create(null);
function compileToFunction(template, options) {
if (!shared.isString(template)) {
if (template.nodeType) {
template = template.innerHTML;
} else {
return shared.NOOP;
}
}
const key = template;
const cached = compileCache[key];
if (cached) {
return cached;
}
if (template[0] === "#") {
const el = document.querySelector(template);
template = el ? el.innerHTML : ``;
}
const opts = shared.extend(
{
hoistStatic: true,
onError: void 0,
onWarn: shared.NOOP
},
options
);
if (!opts.isCustomElement && typeof customElements !== "undefined") {
opts.isCustomElement = (tag) => !!customElements.get(tag);
}
const { code } = compilerDom.compile(template, opts);
const render = new Function("Vue", code)(runtimeDom__namespace);
render._rc = true;
return compileCache[key] = render;
}
runtimeDom.registerRuntimeCompiler(compileToFunction);
exports.compile = compileToFunction;
Object.keys(runtimeDom).forEach(function (k) {
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = runtimeDom[k];
});

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var compilerDom=require("@vue/compiler-dom"),runtimeDom=require("@vue/runtime-dom"),shared=require("@vue/shared");function _interopNamespaceDefault(e){var r=Object.create(null);if(e)for(var t in e)r[t]=e[t];return r.default=e,Object.freeze(r)}var runtimeDom__namespace=_interopNamespaceDefault(runtimeDom);const compileCache=Object.create(null);function compileToFunction(e,r){if(!shared.isString(e)){if(!e.nodeType)return shared.NOOP;e=e.innerHTML}var t=e,o=compileCache[t];if(o)return o;"#"===e[0]&&(e=(o=document.querySelector(e))?o.innerHTML:"");const n=shared.extend({hoistStatic:!0,onError:void 0,onWarn:shared.NOOP},r);n.isCustomElement||"undefined"==typeof customElements||(n.isCustomElement=e=>!!customElements.get(e));o=compilerDom.compile(e,n).code;const i=new Function("Vue",o)(runtimeDom__namespace);return i._rc=!0,compileCache[t]=i}runtimeDom.registerRuntimeCompiler(compileToFunction),exports.compile=compileToFunction,Object.keys(runtimeDom).forEach(function(e){"default"===e||exports.hasOwnProperty(e)||(exports[e]=runtimeDom[e])});

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,66 @@
import * as runtimeDom from '@vue/runtime-dom';
import { initCustomFormatter, registerRuntimeCompiler, warn } from '@vue/runtime-dom';
export * from '@vue/runtime-dom';
import { compile } from '@vue/compiler-dom';
import { isString, NOOP, extend, generateCodeFrame } from '@vue/shared';
function initDev() {
{
initCustomFormatter();
}
}
if (!!(process.env.NODE_ENV !== "production")) {
initDev();
}
const compileCache = /* @__PURE__ */ Object.create(null);
function compileToFunction(template, options) {
if (!isString(template)) {
if (template.nodeType) {
template = template.innerHTML;
} else {
!!(process.env.NODE_ENV !== "production") && warn(`invalid template option: `, template);
return NOOP;
}
}
const key = template;
const cached = compileCache[key];
if (cached) {
return cached;
}
if (template[0] === "#") {
const el = document.querySelector(template);
if (!!(process.env.NODE_ENV !== "production") && !el) {
warn(`Template element not found or is empty: ${template}`);
}
template = el ? el.innerHTML : ``;
}
const opts = extend(
{
hoistStatic: true,
onError: !!(process.env.NODE_ENV !== "production") ? onError : void 0,
onWarn: !!(process.env.NODE_ENV !== "production") ? (e) => onError(e, true) : NOOP
},
options
);
if (!opts.isCustomElement && typeof customElements !== "undefined") {
opts.isCustomElement = (tag) => !!customElements.get(tag);
}
const { code } = compile(template, opts);
function onError(err, asWarning = false) {
const message = asWarning ? err.message : `Template compilation error: ${err.message}`;
const codeFrame = err.loc && generateCodeFrame(
template,
err.loc.start.offset,
err.loc.end.offset
);
warn(codeFrame ? `${message}
${codeFrame}` : message);
}
const render = new Function("Vue", code)(runtimeDom);
render._rc = true;
return compileCache[key] = render;
}
registerRuntimeCompiler(compileToFunction);
export { compileToFunction as compile };

View File

@@ -0,0 +1,2 @@
import*as runtimeDom from"@vue/runtime-dom";import{initCustomFormatter,registerRuntimeCompiler,warn}from"@vue/runtime-dom";export*from"@vue/runtime-dom";import{compile}from"@vue/compiler-dom";import{isString,NOOP,extend,generateCodeFrame}from"@vue/shared";function initDev(){initCustomFormatter()}"production"!==process.env.NODE_ENV&&initDev();const compileCache=Object.create(null);function compileToFunction(t,e){if(!isString(t)){if(!t.nodeType)return"production"!==process.env.NODE_ENV&&warn("invalid template option: ",t),NOOP;t=t.innerHTML}var o=t,n=compileCache[o];if(n)return n;"#"===t[0]&&(n=document.querySelector(t),"production"===process.env.NODE_ENV||n||warn("Template element not found or is empty: "+t),t=n?n.innerHTML:"");const r=extend({hoistStatic:!0,onError:"production"!==process.env.NODE_ENV?i:void 0,onWarn:"production"!==process.env.NODE_ENV?e=>i(e,!0):NOOP},e);r.isCustomElement||"undefined"==typeof customElements||(r.isCustomElement=e=>!!customElements.get(e));n=compile(t,r).code;function i(e,o=!1){o=o?e.message:"Template compilation error: "+e.message,e=e.loc&&generateCodeFrame(t,e.loc.start.offset,e.loc.end.offset);warn(e?o+`
`+e:o)}const m=new Function("Vue",n)(runtimeDom);return m._rc=!0,compileCache[o]=m}registerRuntimeCompiler(compileToFunction);export{compileToFunction as compile};

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,22 @@
import { initCustomFormatter, warn } from '@vue/runtime-dom';
export * from '@vue/runtime-dom';
function initDev() {
{
initCustomFormatter();
}
}
if (!!(process.env.NODE_ENV !== "production")) {
initDev();
}
const compile = () => {
if (!!(process.env.NODE_ENV !== "production")) {
warn(
`Runtime compilation is not supported in this build of Vue.` + (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` )
/* should not happen */
);
}
};
export { compile };

View File

@@ -0,0 +1 @@
import{initCustomFormatter,warn}from"@vue/runtime-dom";export*from"@vue/runtime-dom";function initDev(){initCustomFormatter()}"production"!==process.env.NODE_ENV&&initDev();const compile=()=>{"production"!==process.env.NODE_ENV&&warn('Runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".')};export{compile};

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long