forked from rc/aircox
cfr #121 Co-authored-by: Christophe Siraut <d@tobald.eu.org> Co-authored-by: bkfox <thomas bkfox net> Co-authored-by: Thomas Kairos <thomas@bkfox.net> Reviewed-on: rc/aircox#131 Co-authored-by: Chris Tactic <ctactic@noreply.git.radiocampus.be> Co-committed-by: Chris Tactic <ctactic@noreply.git.radiocampus.be>
This commit is contained in:
89
aircox/static/vue/vue.cjs.js
Normal file
89
aircox/static/vue/vue.cjs.js
Normal file
@ -0,0 +1,89 @@
|
||||
/**
|
||||
* vue v3.4.23
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
'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__ */ new WeakMap();
|
||||
function getCache(options) {
|
||||
let c = compileCache.get(options != null ? options : shared.EMPTY_OBJ);
|
||||
if (!c) {
|
||||
c = /* @__PURE__ */ Object.create(null);
|
||||
compileCache.set(options != null ? options : shared.EMPTY_OBJ, c);
|
||||
}
|
||||
return c;
|
||||
}
|
||||
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 cache = getCache(options);
|
||||
const cached = cache[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 cache[key] = render;
|
||||
}
|
||||
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
||||
|
||||
exports.compile = compileToFunction;
|
||||
Object.keys(runtimeDom).forEach(function (k) {
|
||||
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];
|
||||
});
|
||||
75
aircox/static/vue/vue.cjs.prod.js
Normal file
75
aircox/static/vue/vue.cjs.prod.js
Normal file
@ -0,0 +1,75 @@
|
||||
/**
|
||||
* vue v3.4.23
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
'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__ */ new WeakMap();
|
||||
function getCache(options) {
|
||||
let c = compileCache.get(options != null ? options : shared.EMPTY_OBJ);
|
||||
if (!c) {
|
||||
c = /* @__PURE__ */ Object.create(null);
|
||||
compileCache.set(options != null ? options : shared.EMPTY_OBJ, c);
|
||||
}
|
||||
return c;
|
||||
}
|
||||
function compileToFunction(template, options) {
|
||||
if (!shared.isString(template)) {
|
||||
if (template.nodeType) {
|
||||
template = template.innerHTML;
|
||||
} else {
|
||||
return shared.NOOP;
|
||||
}
|
||||
}
|
||||
const key = template;
|
||||
const cache = getCache(options);
|
||||
const cached = cache[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 cache[key] = render;
|
||||
}
|
||||
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
||||
|
||||
exports.compile = compileToFunction;
|
||||
Object.keys(runtimeDom).forEach(function (k) {
|
||||
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];
|
||||
});
|
||||
7
aircox/static/vue/vue.d.mts
Normal file
7
aircox/static/vue/vue.d.mts
Normal file
@ -0,0 +1,7 @@
|
||||
import { CompilerOptions } from '@vue/compiler-dom';
|
||||
import { RenderFunction } from '@vue/runtime-dom';
|
||||
export * from '@vue/runtime-dom';
|
||||
|
||||
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
||||
|
||||
export { compileToFunction as compile };
|
||||
7
aircox/static/vue/vue.d.ts
vendored
Normal file
7
aircox/static/vue/vue.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
import { CompilerOptions } from '@vue/compiler-dom';
|
||||
import { RenderFunction } from '@vue/runtime-dom';
|
||||
export * from '@vue/runtime-dom';
|
||||
|
||||
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
||||
|
||||
export { compileToFunction as compile };
|
||||
16740
aircox/static/vue/vue.esm-browser.js
Normal file
16740
aircox/static/vue/vue.esm-browser.js
Normal file
File diff suppressed because it is too large
Load Diff
12
aircox/static/vue/vue.esm-browser.prod.js
Normal file
12
aircox/static/vue/vue.esm-browser.prod.js
Normal file
File diff suppressed because one or more lines are too long
80
aircox/static/vue/vue.esm-bundler.js
Normal file
80
aircox/static/vue/vue.esm-bundler.js
Normal file
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* vue v3.4.23
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
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, EMPTY_OBJ } from '@vue/shared';
|
||||
|
||||
function initDev() {
|
||||
{
|
||||
initCustomFormatter();
|
||||
}
|
||||
}
|
||||
|
||||
if (!!(process.env.NODE_ENV !== "production")) {
|
||||
initDev();
|
||||
}
|
||||
const compileCache = /* @__PURE__ */ new WeakMap();
|
||||
function getCache(options) {
|
||||
let c = compileCache.get(options != null ? options : EMPTY_OBJ);
|
||||
if (!c) {
|
||||
c = /* @__PURE__ */ Object.create(null);
|
||||
compileCache.set(options != null ? options : EMPTY_OBJ, c);
|
||||
}
|
||||
return c;
|
||||
}
|
||||
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 cache = getCache(options);
|
||||
const cached = cache[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 cache[key] = render;
|
||||
}
|
||||
registerRuntimeCompiler(compileToFunction);
|
||||
|
||||
export { compileToFunction as compile };
|
||||
16725
aircox/static/vue/vue.global.js
Normal file
16725
aircox/static/vue/vue.global.js
Normal file
File diff suppressed because it is too large
Load Diff
12
aircox/static/vue/vue.global.prod.js
Normal file
12
aircox/static/vue/vue.global.prod.js
Normal file
File diff suppressed because one or more lines are too long
11155
aircox/static/vue/vue.runtime.esm-browser.js
Normal file
11155
aircox/static/vue/vue.runtime.esm-browser.js
Normal file
File diff suppressed because it is too large
Load Diff
12
aircox/static/vue/vue.runtime.esm-browser.prod.js
Normal file
12
aircox/static/vue/vue.runtime.esm-browser.prod.js
Normal file
File diff suppressed because one or more lines are too long
26
aircox/static/vue/vue.runtime.esm-bundler.js
Normal file
26
aircox/static/vue/vue.runtime.esm-bundler.js
Normal file
@ -0,0 +1,26 @@
|
||||
/**
|
||||
* vue v3.4.23
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
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".` )
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export { compile };
|
||||
11302
aircox/static/vue/vue.runtime.global.js
Normal file
11302
aircox/static/vue/vue.runtime.global.js
Normal file
File diff suppressed because it is too large
Load Diff
12
aircox/static/vue/vue.runtime.global.prod.js
Normal file
12
aircox/static/vue/vue.runtime.global.prod.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user