Админка
This commit is contained in:
1 parent
6d3adbb54c
commit
0e64eede38
301 files changed
+296588
-14
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018-present, Yuxi (Evan) You
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
# vue
|
||||
|
||||
## Which dist file to use?
|
||||
|
||||
### From CDN or without a Bundler
|
||||
|
||||
- **`vue(.runtime).global(.prod).js`**:
|
||||
- For direct use via `<script src="...">` in the browser. Exposes the `Vue` global.
|
||||
- Note that global builds are not [UMD](https://github.com/umdjs/umd) builds. They are built as [IIFEs](https://developer.mozilla.org/en-US/docs/Glossary/IIFE) and is only meant for direct use via `<script src="...">`.
|
||||
- In-browser template compilation:
|
||||
- **`vue.global.js`** is the "full" build that includes both the compiler and the runtime so it supports compiling templates on the fly.
|
||||
- **`vue.runtime.global.js`** contains only the runtime and requires templates to be pre-compiled during a build step.
|
||||
- Inlines all Vue core internal packages - i.e. it's a single file with no dependencies on other files. This means you **must** import everything from this file and this file only to ensure you are getting the same instance of code.
|
||||
- Contains hard-coded prod/dev branches, and the prod build is pre-minified. Use the `*.prod.js` files for production.
|
||||
|
||||
- **`vue(.runtime).esm-browser(.prod).js`**:
|
||||
- For usage via native ES modules imports (in browser via `<script type="module">`.
|
||||
- Shares the same runtime compilation, dependency inlining and hard-coded prod/dev behavior with the global build.
|
||||
|
||||
### With a Bundler
|
||||
|
||||
- **`vue(.runtime).esm-bundler.js`**:
|
||||
|
||||
- For use with bundlers like `webpack`, `rollup` and `parcel`.
|
||||
- Leaves prod/dev branches with `process.env.NODE_ENV` guards (must be replaced by bundler)
|
||||
- Does not ship minified builds (to be done together with the rest of the code after bundling)
|
||||
- Imports dependencies (e.g. `@vue/runtime-core`, `@vue/runtime-compiler`)
|
||||
- Imported dependencies are also `esm-bundler` builds and will in turn import their dependencies (e.g. `@vue/runtime-core` imports `@vue/reactivity`)
|
||||
- This means you **can** install/import these deps individually without ending up with different instances of these dependencies, but you must make sure they all resolve to the same version.
|
||||
- In-browser template compilation:
|
||||
- **`vue.runtime.esm-bundler.js` (default)** is runtime only, and requires all templates to be pre-compiled. This is the default entry for bundlers (via `module` field in `package.json`) because when using a bundler templates are typically pre-compiled (e.g. in `*.vue` files).
|
||||
- **`vue.esm-bundler.js`**: includes the runtime compiler. Use this if you are using a bundler but still want runtime template compilation (e.g. in-DOM templates or templates via inline JavaScript strings). You will need to configure your bundler to alias `vue` to this file.
|
||||
|
||||
#### Bundler Build Feature Flags
|
||||
|
||||
Starting with 3.0.0-rc.3, `esm-bundler` builds now exposes global feature flags that can be overwritten at compile time:
|
||||
|
||||
- `__VUE_OPTIONS_API__` (enable/disable Options API support, default: `true`)
|
||||
- `__VUE_PROD_DEVTOOLS__` (enable/disable devtools support in production, default: `false`)
|
||||
|
||||
The build will work without configuring these flags, however it is **strongly recommended** to properly configure them in order to get proper tree-shaking in the final bundle. To configure these flags:
|
||||
|
||||
- webpack: use [DefinePlugin](https://webpack.js.org/plugins/define-plugin/)
|
||||
- Rollup: use [@rollup/plugin-replace](https://github.com/rollup/plugins/tree/master/packages/replace)
|
||||
- Vite: configured by default, but can be overwritten using the [`define` option](https://github.com/vitejs/vite/blob/a4133c073e640b17276b2de6e91a6857bdf382e1/src/node/config.ts#L72-L76)
|
||||
|
||||
Note: the replacement value **must be boolean literals** and cannot be strings, otherwise the bundler/minifier will not be able to properly evaluate the conditions.
|
||||
|
||||
### For Server-Side Rendering
|
||||
|
||||
- **`vue.cjs(.prod).js`**:
|
||||
- For use in Node.js server-side rendering via `require()`.
|
||||
- If you bundle your app with webpack with `target: 'node'` and properly externalize `vue`, this is the build that will be loaded.
|
||||
- The dev/prod files are pre-built, but the appropriate file is automatically required based on `process.env.NODE_ENV`.
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from '@vue/compiler-sfc'
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from '@vue/compiler-sfc'
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
module.exports = require('@vue/compiler-sfc')
|
||||
|
||||
require('./register-ts.js')
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
export * from '@vue/compiler-sfc'
|
||||
|
||||
import './register-ts.js'
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"main": "index.js",
|
||||
"module": "index.mjs"
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
if (typeof require !== 'undefined') {
|
||||
try {
|
||||
require('@vue/compiler-sfc').registerTS(require('typescript'))
|
||||
} catch (e) {}
|
||||
}
|
||||
+75
@@ -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];
|
||||
});
|
||||
+61
@@ -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];
|
||||
});
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
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 };
|
||||
// this is appended to the end of ../dist/vue.d.ts during build.
|
||||
// imports the global JSX namespace registration for compat.
|
||||
// TODO: remove in 3.4
|
||||
import '../jsx'
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
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 };
|
||||
// this is appended to the end of ../dist/vue.d.ts during build.
|
||||
// imports the global JSX namespace registration for compat.
|
||||
// TODO: remove in 3.4
|
||||
import '../jsx'
|
||||
+15377
File diff suppressed because it is too large.
Load diff
+1
@@ -0,0 +1 @@
|
||||
function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const t={},n=[],o=()=>{},r=()=>!1,s=/^on[^a-z]/,i=e=>s.test(e),l=e=>e.startsWith("onUpdate:"),c=Object.assign,a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,p=(e,t)=>u.call(e,t),f=Array.isArray,d=e=>"[object Map]"===x(e),h=e=>"[object Set]"===x(e),m=e=>"[object Date]"===x(e),g=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,_=e=>null!==e&&"object"==typeof e,b=e=>_(e)&&g(e.then)&&g(e.catch),S=Object.prototype.toString,x=e=>S.call(e),C=e=>"[object Object]"===x(e),k=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,w=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=e("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),E=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},N=/-(\w)/g,O=E((e=>e.replace(N,((e,t)=>t?t.toUpperCase():"")))),$=/\B([A-Z])/g,P=E((e=>e.replace($,"-$1").toLowerCase())),A=E((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=E((e=>e?`on${A(e)}`:"")),R=(e,t)=>!Object.is(e,t),M=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},V=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},I=e=>{const t=parseFloat(e);return isNaN(t)?e:t},B=e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t};let L;const j=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");function U(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=v(o)?z(o):U(o);if(r)for(const e in r)t[e]=r[e]}return t}return v(e)||_(e)?e:void 0}const D=/;(?![^(]*\))/g,H=/:([^]+)/,W=/\/\*[^]*?\*\//g;function z(e){const t={};return e.replace(W,"").split(D).forEach((e=>{if(e){const n=e.split(H);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function K(e){let t="";if(v(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const o=K(e[n]);o&&(t+=o+" ")}else if(_(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function G(e){if(!e)return null;let{class:t,style:n}=e;return t&&!v(t)&&(e.class=K(t)),n&&(e.style=U(n)),e}const q=e("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),J=e("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,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,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),Z=e("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),Y=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Q(e){return!!e||""===e}function X(e,t){if(e===t)return!0;let n=m(e),o=m(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=y(e),o=y(t),n||o)return e===t;if(n=f(e),o=f(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=X(e[o],t[o]);return n}(e,t);if(n=_(e),o=_(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!X(e[n],t[n]))return!1}}return String(e)===String(t)}function ee(e,t){return e.findIndex((e=>X(e,t)))}const te=e=>v(e)?e:null==e?"":f(e)||_(e)&&(e.toString===S||!g(e.toString))?JSON.stringify(e,ne,2):String(e),ne=(e,t)=>t&&t.__v_isRef?ne(e,t.value):d(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()]}:!_(t)||f(t)||C(t)?t:String(t);let oe;class re{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=oe,!e&&oe&&(this.index=(oe.scopes||(oe.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=oe;try{return oe=this,e()}finally{oe=t}}}on(){oe=this}off(){oe=this.parent}stop(e){if(this._active){letLine truncated
|
||||
+66
@@ -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 };
|
||||
+15361
File diff suppressed because it is too large.
Load diff
+1
@@ -0,0 +1 @@
|
||||
var Vue=function(e){"use strict";function t(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const n={},o=[],r=()=>{},s=()=>!1,i=/^on[^a-z]/,l=e=>i.test(e),c=e=>e.startsWith("onUpdate:"),a=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,f=(e,t)=>p.call(e,t),d=Array.isArray,h=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,_=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,S=e=>b(e)&&v(e.then)&&v(e.catch),x=Object.prototype.toString,C=e=>x.call(e),k=e=>"[object Object]"===C(e),w=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),E=t("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),N=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},O=/-(\w)/g,$=N((e=>e.replace(O,((e,t)=>t?t.toUpperCase():"")))),P=/\B([A-Z])/g,A=N((e=>e.replace(P,"-$1").toLowerCase())),F=N((e=>e.charAt(0).toUpperCase()+e.slice(1))),R=N((e=>e?`on${F(e)}`:"")),M=(e,t)=>!Object.is(e,t),V=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},I=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},B=e=>{const t=parseFloat(e);return isNaN(t)?e:t},L=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let j;const U=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");function D(e){if(d(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=y(o)?K(o):D(o);if(r)for(const e in r)t[e]=r[e]}return t}return y(e)||b(e)?e:void 0}const H=/;(?![^(]*\))/g,W=/:([^]+)/,z=/\/\*[^]*?\*\//g;function K(e){const t={};return e.replace(z,"").split(H).forEach((e=>{if(e){const n=e.split(W);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function G(e){let t="";if(y(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){const o=G(e[n]);o&&(t+=o+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const q=t("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),J=t("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,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,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),Z=t("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),Y=t("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Q(e){return!!e||""===e}function X(e,t){if(e===t)return!0;let n=g(e),o=g(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=_(e),o=_(t),n||o)return e===t;if(n=d(e),o=d(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=X(e[o],t[o]);return n}(e,t);if(n=b(e),o=b(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!X(e[n],t[n]))return!1}}return String(e)===String(t)}function ee(e,t){return e.findIndex((e=>X(e,t)))}const te=(e,t)=>t&&t.__v_isRef?te(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()]}:!b(t)||d(t)||k(t)?t:String(t);let ne;class oe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ne,!e&&ne&&(this.index=(ne.scopes||(ne.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ne;try{return ne=this,e()}finally{ne=t}}}on(){ne=this}off(){ne=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)Line truncated
|
||||
+10523
File diff suppressed because it is too large.
Load diff
+1
@@ -0,0 +1 @@
|
||||
function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const t={},n=[],o=()=>{},r=()=>!1,s=/^on[^a-z]/,l=e=>s.test(e),i=e=>e.startsWith("onUpdate:"),c=Object.assign,a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,f=(e,t)=>u.call(e,t),p=Array.isArray,d=e=>"[object Map]"===x(e),h=e=>"[object Set]"===x(e),v=e=>"[object Date]"===x(e),g=e=>"function"==typeof e,m=e=>"string"==typeof e,_=e=>"symbol"==typeof e,y=e=>null!==e&&"object"==typeof e,b=e=>y(e)&&g(e.then)&&g(e.catch),C=Object.prototype.toString,x=e=>C.call(e),w=e=>"[object Object]"===x(e),S=e=>m(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,k=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),E=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,F=E((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),T=/\B([A-Z])/g,O=E((e=>e.replace(T,"-$1").toLowerCase())),P=E((e=>e.charAt(0).toUpperCase()+e.slice(1))),L=E((e=>e?`on${P(e)}`:"")),R=(e,t)=>!Object.is(e,t),B=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},I=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},N=e=>{const t=parseFloat(e);return isNaN(t)?e:t},M=e=>{const t=m(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const $=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");function j(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=m(o)?W(o):j(o);if(r)for(const e in r)t[e]=r[e]}return t}return m(e)||y(e)?e:void 0}const U=/;(?![^(]*\))/g,D=/:([^]+)/,H=/\/\*[^]*?\*\//g;function W(e){const t={};return e.replace(H,"").split(U).forEach((e=>{if(e){const n=e.split(D);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function z(e){let t="";if(m(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const o=z(e[n]);o&&(t+=o+" ")}else if(y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function K(e){if(!e)return null;let{class:t,style:n}=e;return t&&!m(t)&&(e.class=z(t)),n&&(e.style=j(n)),e}const q=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function G(e){return!!e||""===e}function Y(e,t){if(e===t)return!0;let n=v(e),o=v(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=_(e),o=_(t),n||o)return e===t;if(n=p(e),o=p(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=Y(e[o],t[o]);return n}(e,t);if(n=y(e),o=y(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!Y(e[n],t[n]))return!1}}return String(e)===String(t)}function J(e,t){return e.findIndex((e=>Y(e,t)))}const X=e=>m(e)?e:null==e?"":p(e)||y(e)&&(e.toString===C||!g(e.toString))?JSON.stringify(e,Z,2):String(e),Z=(e,t)=>t&&t.__v_isRef?Z(e,t.value):d(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()]}:!y(t)||p(t)||w(t)?t:String(t);let Q;class ee{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Q,!e&&Q&&(this.index=(Q.scopes||(Q.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Q;try{return Q=this,e()}finally{Q=t}}}on(){Q=this}off(){Q=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function te(e){return new ee(e)}function ne(e,t=Q){t&&t.active&&t.effects.push(e)}function oe(){return Q}function re(e){Q&&Q.cleanups.push(e)}const se=e=>{const t=new Set(e);return t.w=0,t.n=0,t},le=e=>(e.w&ue)>0,ie=e=>(e.n&ue)>0,ce=new WeakMap;let ae=0,ue=1;let fe;const pe=Symbol(""),de=Symbol("");class he{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,ne(this,n)}run(){if(!this.active)return this.fn();let e=fe,t=_e;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=fe,fe=this,_e=!0,ue=1<<++ae,ae<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ue})(this):ve(this),this.fn()}finally{ae<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];le(r)&&!ie(r)?r.delete(e):t[n++]=r,r.w&=~ue,r.n&=~ue}t.length=n}})(this),ue=1<<--ae,fe=this.parent,_e=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){fe===this?this.deferStop=!0:this.active&&(ve(this),this.onStop&&this.onStop(),this.active=!1)}}function ve(e){const{deps:t}=e;if(t.length){for(leLine truncated
|
||||
+22
@@ -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 };
|
||||
+10664
File diff suppressed because it is too large.
Load diff
+1
@@ -0,0 +1 @@
|
||||
var Vue=function(e){"use strict";function t(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const n={},o=[],r=()=>{},s=()=>!1,i=/^on[^a-z]/,l=e=>i.test(e),c=e=>e.startsWith("onUpdate:"),a=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,p=(e,t)=>f.call(e,t),d=Array.isArray,h=e=>"[object Map]"===S(e),v=e=>"[object Set]"===S(e),g=e=>"[object Date]"===S(e),m=e=>"function"==typeof e,_=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,C=e=>b(e)&&m(e.then)&&m(e.catch),x=Object.prototype.toString,S=e=>x.call(e),w=e=>"[object Object]"===S(e),k=e=>_(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},T=/-(\w)/g,F=A((e=>e.replace(T,((e,t)=>t?t.toUpperCase():"")))),R=/\B([A-Z])/g,O=A((e=>e.replace(R,"-$1").toLowerCase())),P=A((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=A((e=>e?`on${P(e)}`:"")),B=(e,t)=>!Object.is(e,t),V=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},N=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},L=e=>{const t=parseFloat(e);return isNaN(t)?e:t},I=e=>{const t=_(e)?Number(e):NaN;return isNaN(t)?e:t};let U;const $=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");function j(e){if(d(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=_(o)?W(o):j(o);if(r)for(const e in r)t[e]=r[e]}return t}return _(e)||b(e)?e:void 0}const D=/;(?![^(]*\))/g,H=/:([^]+)/,z=/\/\*[^]*?\*\//g;function W(e){const t={};return e.replace(z,"").split(D).forEach((e=>{if(e){const n=e.split(H);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function K(e){let t="";if(_(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){const o=K(e[n]);o&&(t+=o+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const q=t("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function G(e){return!!e||""===e}function Y(e,t){if(e===t)return!0;let n=g(e),o=g(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=y(e),o=y(t),n||o)return e===t;if(n=d(e),o=d(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=Y(e[o],t[o]);return n}(e,t);if(n=b(e),o=b(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!Y(e[n],t[n]))return!1}}return String(e)===String(t)}function J(e,t){return e.findIndex((e=>Y(e,t)))}const X=(e,t)=>t&&t.__v_isRef?X(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()]}:!b(t)||d(t)||w(t)?t:String(t);let Z;class Q{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Z,!e&&Z&&(this.index=(Z.scopes||(Z.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Z;try{return Z=this,e()}finally{Z=t}}}on(){Z=this}off(){Z=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function ee(e,t=Z){t&&t.active&&t.effects.push(e)}function te(){return Z}const ne=e=>{const t=new Set(e);return t.w=0,t.n=0,t},oe=e=>(e.w&le)>0,re=e=>(e.n&le)>0,se=new WeakMap;let ie=0,le=1;let ce;const ae=Symbol(""),ue=Symbol("");class fe{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,ee(this,n)}run(){if(!this.active)return this.fn();let e=ce,t=de;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ce,ce=this,de=!0,le=1<<++ie,ie<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=le})(this):pe(this),this.fn()}finally{ie<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];oe(r)&&!re(r)?r.delete(e):t[n++]=r,r.w&=~le,r.n&=~le}t.length=n}})(this),le=1<<--ie,ce=this.parent,de=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ce===this?this.deferStop=!0:this.active&&(pe(this),this.onStop&&this.onStop(),this.active=!1)}}function pe(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let de=!0;const he=[];function ve(){he.push(de),de=!1}function ge(){const e=he.pop();de=void 0===e||e}function me(e,t,n){if(de&&ce){let t=se.get(e);t||se.set(e,t=new Map);let o=t.get(n);o||t.set(nLine truncated
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
'use strict'
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./dist/vue.cjs.prod.js')
|
||||
} else {
|
||||
module.exports = require('./dist/vue.cjs.js')
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from './index.js'
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
import type {
|
||||
VNode,
|
||||
IntrinsicElementAttributes,
|
||||
ReservedProps,
|
||||
NativeElements
|
||||
} from '@vue/runtime-dom'
|
||||
|
||||
/**
|
||||
* JSX namespace for usage with @jsxImportsSource directive
|
||||
* when ts compilerOptions.jsx is 'react-jsx' or 'react-jsxdev'
|
||||
* https://www.typescriptlang.org/tsconfig#jsxImportSource
|
||||
*/
|
||||
export { h as jsx, h as jsxDEV, Fragment } from '@vue/runtime-dom'
|
||||
|
||||
export namespace JSX {
|
||||
export interface Element extends VNode {}
|
||||
export interface ElementClass {
|
||||
$props: {}
|
||||
}
|
||||
export interface ElementAttributesProperty {
|
||||
$props: {}
|
||||
}
|
||||
export interface IntrinsicElements extends NativeElements {
|
||||
// allow arbitrary elements
|
||||
// @ts-ignore suppress ts:2374 = Duplicate string index signature.
|
||||
[name: string]: any
|
||||
}
|
||||
export interface IntrinsicAttributes extends ReservedProps {}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
const { h, Fragment } = require('vue')
|
||||
|
||||
function jsx(type, props, key) {
|
||||
const { children } = props
|
||||
delete props.children
|
||||
if (arguments.length > 2) {
|
||||
props.key = key
|
||||
}
|
||||
return h(type, props, children)
|
||||
}
|
||||
|
||||
exports.jsx = jsx
|
||||
exports.jsxs = jsx
|
||||
exports.jsxDEV = jsx
|
||||
exports.Fragment = Fragment
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
import { h, Fragment } from 'vue'
|
||||
|
||||
function jsx(type, props, key) {
|
||||
const { children } = props
|
||||
delete props.children
|
||||
if (arguments.length > 2) {
|
||||
props.key = key
|
||||
}
|
||||
return h(type, props, children)
|
||||
}
|
||||
|
||||
export {
|
||||
Fragment,
|
||||
jsx,
|
||||
jsx as jsxs,
|
||||
jsx as jsxDEV
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
"types": "index.d.ts"
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
// global JSX namespace registration
|
||||
// somehow we have to copy=pase the jsx-runtime types here to make TypeScript happy
|
||||
import type {
|
||||
VNode,
|
||||
IntrinsicElementAttributes,
|
||||
ReservedProps,
|
||||
NativeElements
|
||||
} from '@vue/runtime-dom'
|
||||
|
||||
declare global {
|
||||
namespace JSX {
|
||||
export interface Element extends VNode {}
|
||||
export interface ElementClass {
|
||||
$props: {}
|
||||
}
|
||||
export interface ElementAttributesProperty {
|
||||
$props: {}
|
||||
}
|
||||
export interface IntrinsicElements extends NativeElements {
|
||||
// allow arbitrary elements
|
||||
// @ts-ignore suppress ts:2374 = Duplicate string index signature.
|
||||
[name: string]: any
|
||||
}
|
||||
export interface IntrinsicAttributes extends ReservedProps {}
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import {
|
||||
$ as _$,
|
||||
$$ as _$$,
|
||||
$ref as _$ref,
|
||||
$shallowRef as _$shallowRef,
|
||||
$computed as _$computed,
|
||||
$customRef as _$customRef,
|
||||
$toRef as _$toRef
|
||||
} from './macros'
|
||||
|
||||
declare global {
|
||||
const $: typeof _$
|
||||
const $$: typeof _$$
|
||||
const $ref: typeof _$ref
|
||||
const $shallowRef: typeof _$shallowRef
|
||||
const $computed: typeof _$computed
|
||||
const $customRef: typeof _$customRef
|
||||
const $toRef: typeof _$toRef
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
import {
|
||||
Ref,
|
||||
UnwrapRef,
|
||||
ComputedRef,
|
||||
WritableComputedOptions,
|
||||
DebuggerOptions,
|
||||
WritableComputedRef,
|
||||
CustomRefFactory
|
||||
} from '@vue/runtime-dom'
|
||||
|
||||
export declare const RefType: unique symbol
|
||||
|
||||
export declare const enum RefTypes {
|
||||
Ref = 1,
|
||||
ComputedRef = 2,
|
||||
WritableComputedRef = 3
|
||||
}
|
||||
|
||||
type RefValue<T> = T extends null | undefined ? T : ReactiveVariable<T>
|
||||
|
||||
type ReactiveVariable<T> = T & { [RefType]?: RefTypes.Ref }
|
||||
|
||||
type ComputedRefValue<T> = T extends null | undefined ? T : ComputedVariable<T>
|
||||
|
||||
type ComputedVariable<T> = T & { [RefType]?: RefTypes.ComputedRef }
|
||||
|
||||
type WritableComputedRefValue<T> = T extends null | undefined
|
||||
? T
|
||||
: WritableComputedVariable<T>
|
||||
|
||||
type WritableComputedVariable<T> = T & {
|
||||
[RefType]?: RefTypes.WritableComputedRef
|
||||
}
|
||||
|
||||
type NormalObject<T extends object> = T & { [RefType]?: never }
|
||||
|
||||
/**
|
||||
* Vue ref transform macro for binding refs as reactive variables.
|
||||
*/
|
||||
export declare function $<T>(arg: ComputedRef<T>): ComputedRefValue<T>
|
||||
export declare function $<T>(
|
||||
arg: WritableComputedRef<T>
|
||||
): WritableComputedRefValue<T>
|
||||
export declare function $<T>(arg: Ref<T>): RefValue<T>
|
||||
export declare function $<T extends object>(arg?: T): DestructureRefs<T>
|
||||
|
||||
type DestructureRefs<T extends object> = {
|
||||
[K in keyof T]: T[K] extends ComputedRef<infer V>
|
||||
? ComputedRefValue<V>
|
||||
: T[K] extends WritableComputedRef<infer V>
|
||||
? WritableComputedRefValue<V>
|
||||
: T[K] extends Ref<infer V>
|
||||
? RefValue<V>
|
||||
: T[K]
|
||||
}
|
||||
|
||||
/**
|
||||
* Vue ref transform macro for accessing underlying refs of reactive variables.
|
||||
*/
|
||||
export declare function $$<T extends object>(arg: NormalObject<T>): ToRawRefs<T>
|
||||
export declare function $$<T>(value: RefValue<T>): Ref<T>
|
||||
export declare function $$<T>(value: ComputedRefValue<T>): ComputedRef<T>
|
||||
export declare function $$<T>(
|
||||
value: WritableComputedRefValue<T>
|
||||
): WritableComputedRef<T>
|
||||
|
||||
type ToRawRefs<T extends object> = {
|
||||
[K in keyof T]: T[K] extends RefValue<infer V>
|
||||
? Ref<V>
|
||||
: T[K] extends ComputedRefValue<infer V>
|
||||
? ComputedRef<V>
|
||||
: T[K] extends WritableComputedRefValue<infer V>
|
||||
? WritableComputedRef<V>
|
||||
: T[K] extends object
|
||||
? T[K] extends
|
||||
| Function
|
||||
| Map<any, any>
|
||||
| Set<any>
|
||||
| WeakMap<any, any>
|
||||
| WeakSet<any>
|
||||
? T[K]
|
||||
: ToRawRefs<T[K]>
|
||||
: T[K]
|
||||
}
|
||||
|
||||
export declare function $ref<T>(): RefValue<T | undefined>
|
||||
export declare function $ref<T>(arg: T | Ref<T>): RefValue<UnwrapRef<T>>
|
||||
|
||||
export declare function $shallowRef<T>(): RefValue<T | undefined>
|
||||
export declare function $shallowRef<T>(arg: T): RefValue<T>
|
||||
|
||||
export declare function $toRef<T extends object, K extends keyof T>(
|
||||
object: T,
|
||||
key: K
|
||||
): RefValue<T[K]>
|
||||
|
||||
export declare function $toRef<T extends object, K extends keyof T>(
|
||||
object: T,
|
||||
key: K,
|
||||
defaultValue: T[K]
|
||||
): RefValue<Exclude<T[K], undefined>>
|
||||
|
||||
export declare function $customRef<T>(factory: CustomRefFactory<T>): RefValue<T>
|
||||
|
||||
export declare function $computed<T>(
|
||||
getter: () => T,
|
||||
debuggerOptions?: DebuggerOptions
|
||||
): ComputedRefValue<T>
|
||||
export declare function $computed<T>(
|
||||
options: WritableComputedOptions<T>,
|
||||
debuggerOptions?: DebuggerOptions
|
||||
): WritableComputedRefValue<T>
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"name": "vue",
|
||||
"version": "3.3.4",
|
||||
"description": "The progressive JavaScript framework for building modern web UI.",
|
||||
"main": "index.js",
|
||||
"module": "dist/vue.runtime.esm-bundler.js",
|
||||
"types": "dist/vue.d.ts",
|
||||
"unpkg": "dist/vue.global.js",
|
||||
"jsdelivr": "dist/vue.global.js",
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.mjs",
|
||||
"dist",
|
||||
"compiler-sfc",
|
||||
"server-renderer",
|
||||
"jsx-runtime",
|
||||
"jsx.d.ts",
|
||||
"macros.d.ts",
|
||||
"macros-global.d.ts",
|
||||
"ref-macros.d.ts"
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/vue.d.mts",
|
||||
"node": "./index.mjs",
|
||||
"default": "./dist/vue.runtime.esm-bundler.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/vue.d.ts",
|
||||
"default": "./index.js"
|
||||
}
|
||||
},
|
||||
"./server-renderer": {
|
||||
"import": {
|
||||
"types": "./server-renderer/index.d.mts",
|
||||
"default": "./server-renderer/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./server-renderer/index.d.ts",
|
||||
"default": "./server-renderer/index.js"
|
||||
}
|
||||
},
|
||||
"./compiler-sfc": {
|
||||
"import": {
|
||||
"types": "./compiler-sfc/index.d.mts",
|
||||
"default": "./compiler-sfc/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./compiler-sfc/index.d.ts",
|
||||
"default": "./compiler-sfc/index.js"
|
||||
}
|
||||
},
|
||||
"./jsx-runtime": {
|
||||
"types": "./jsx-runtime/index.d.ts",
|
||||
"import": "./jsx-runtime/index.mjs",
|
||||
"require": "./jsx-runtime/index.js"
|
||||
},
|
||||
"./jsx-dev-runtime": {
|
||||
"types": "./jsx-runtime/index.d.ts",
|
||||
"import": "./jsx-runtime/index.mjs",
|
||||
"require": "./jsx-runtime/index.js"
|
||||
},
|
||||
"./jsx": "./jsx.d.ts",
|
||||
"./dist/*": "./dist/*",
|
||||
"./package.json": "./package.json",
|
||||
"./macros": "./macros.d.ts",
|
||||
"./macros-global": "./macros-global.d.ts",
|
||||
"./ref-macros": "./ref-macros.d.ts"
|
||||
},
|
||||
"buildOptions": {
|
||||
"name": "Vue",
|
||||
"formats": [
|
||||
"esm-bundler",
|
||||
"esm-bundler-runtime",
|
||||
"cjs",
|
||||
"global",
|
||||
"global-runtime",
|
||||
"esm-browser",
|
||||
"esm-browser-runtime"
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/core.git"
|
||||
},
|
||||
"keywords": [
|
||||
"vue"
|
||||
],
|
||||
"author": "Evan You",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/core/tree/main/packages/vue#readme",
|
||||
"dependencies": {
|
||||
"@vue/shared": "3.3.4",
|
||||
"@vue/compiler-dom": "3.3.4",
|
||||
"@vue/runtime-dom": "3.3.4",
|
||||
"@vue/compiler-sfc": "3.3.4",
|
||||
"@vue/server-renderer": "3.3.4"
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
// TODO remove in 3.4
|
||||
import './macros-global'
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from '@vue/server-renderer'
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from '@vue/server-renderer'
|
||||
+1
@@ -0,0 +1 @@
|
||||
module.exports = require('@vue/server-renderer')
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from '@vue/server-renderer'
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"main": "index.js",
|
||||
"module": "index.mjs"
|
||||
}
|
||||
Reference in new issue
Block a user