@vuebro/runtime 1.1.8 → 1.1.9
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/dist/.vite/manifest.json +4 -4
- package/dist/assets/{NotFoundView-C1aL2pMf.js → NotFoundView-B-fdP1oR.js} +1 -1
- package/dist/assets/{PageView-CjkeWXVX.js → PageView-sqg6N4nc.js} +1 -1
- package/dist/assets/{RootView-DDEDOchK.js → RootView-BR60zfLu.js} +1 -1
- package/dist/assets/index-Dy6rvr78.js +415 -0
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/index-DViLZQd4.js +0 -422
package/dist/.vite/manifest.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"name": "sucrase"
|
|
9
9
|
},
|
|
10
10
|
"index.html": {
|
|
11
|
-
"file": "assets/index-
|
|
11
|
+
"file": "assets/index-Dy6rvr78.js",
|
|
12
12
|
"name": "index",
|
|
13
13
|
"src": "index.html",
|
|
14
14
|
"isEntry": true,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"src/views/NotFoundView.vue": {
|
|
29
|
-
"file": "assets/NotFoundView-
|
|
29
|
+
"file": "assets/NotFoundView-B-fdP1oR.js",
|
|
30
30
|
"name": "NotFoundView",
|
|
31
31
|
"src": "src/views/NotFoundView.vue",
|
|
32
32
|
"isDynamicEntry": true,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
39
|
"src/views/PageView.vue": {
|
|
40
|
-
"file": "assets/PageView-
|
|
40
|
+
"file": "assets/PageView-sqg6N4nc.js",
|
|
41
41
|
"name": "PageView",
|
|
42
42
|
"src": "src/views/PageView.vue",
|
|
43
43
|
"isDynamicEntry": true,
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
]
|
|
49
49
|
},
|
|
50
50
|
"src/views/RootView.vue": {
|
|
51
|
-
"file": "assets/RootView-
|
|
51
|
+
"file": "assets/RootView-BR60zfLu.js",
|
|
52
52
|
"name": "RootView",
|
|
53
53
|
"src": "src/views/RootView.vue",
|
|
54
54
|
"isDynamicEntry": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as d,ref as c,onBeforeUnmount as a,watchEffect as p,createElementBlock as u,openBlock as f,Fragment as m,createVNode as _,createElementVNode as i,withCtx as y}from"vue";import{f as h,_ as A}from"./index-
|
|
1
|
+
import{defineComponent as d,ref as c,onBeforeUnmount as a,watchEffect as p,createElementBlock as u,openBlock as f,Fragment as m,createVNode as _,createElementVNode as i,withCtx as y}from"vue";import{f as h,_ as A}from"./index-Dy6rvr78.js";import"./sucrase-Cw4LZf8f.js";import"vue-router";import"./compiler-sfc-CHbDt8t7.js";function l(n,e){const t=n.type,r=t==="html"?"htmlAttrs":t==="body"?"bodyAttrs":t;if(typeof r!="string"||!(r in e))return;const o=n.props||{};if(n.children){const s="children";o.children=Array.isArray(n.children)?n.children[0][s]:n[s]}Array.isArray(e[r])?e[r].push(o):r==="title"?e.title=o.children:e[r]=o}function v(n){const e={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const t of n)if(typeof t.type=="symbol"&&Array.isArray(t.children))for(const r of t.children)l(r,e);else l(t,e);return e}const N=d({name:"Head",setup(n,{slots:e}){const t=c({}),r=h(t);return a(()=>{r.dispose()}),()=>(p(()=>{e.default&&r.patch(v(e.default()))}),null)}}),b=d({__name:"NotFoundView",setup(n,{expose:e}){e();const t={get Head(){return N}};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}});function x(n,e,t,r,o,s){return f(),u(m,null,[_(r.Head,null,{default:y(()=>e[0]||(e[0]=[i("title",null,"Page Not Found",-1)])),_:1,__:[0]}),e[1]||(e[1]=i("div",{class:"absolute inset-0 grid place-items-center"},[i("div",{class:"text-center"},[i("div",{class:"text-9xl"},"404"),i("p",null,"Oops. Nothing here...")])],-1))],64)}const O=A(b,[["render",x],["__file","NotFoundView.vue"]]);export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as P,ref as E,computed as i,watch as B,onUnmounted as C,createElementBlock as S,openBlock as g,Fragment as O,renderList as j,normalizeClass as R,createBlock as $,resolveDynamicComponent as z}from"vue";import{t as l,u as V,p as w,m as D,a as F,b as L,r as T,c as U,d as X,s as Y,e as q,_ as A}from"./index-
|
|
1
|
+
import{defineComponent as P,ref as E,computed as i,watch as B,onUnmounted as C,createElementBlock as S,openBlock as g,Fragment as O,renderList as j,normalizeClass as R,createBlock as $,resolveDynamicComponent as z}from"vue";import{t as l,u as V,p as w,m as D,a as F,b as L,r as T,c as U,d as X,s as Y,e as q,_ as A}from"./index-Dy6rvr78.js";import{useRoute as G,useRouter as H}from"vue-router";import"./sucrase-Cw4LZf8f.js";import"./compiler-sfc-CHbDt8t7.js";const I=P({__name:"PageView",setup(x,{expose:b}){b();const d=E([]),t=G(),f=H(),p=i(()=>l.value?.siblings??[]),e=[],m=i(()=>p.value.filter(({enabled:o})=>o)),v=()=>{e.forEach(o=>{o()}),e.length=0},u=i(()=>l.value===void 0||l.value.parent?.flat?m.value:[l.value]),n=i(()=>new Map(u.value.map(({id:o=V()})=>[o,!1]))),_=E(new Map(n.value)),y=i(()=>{const[[o,s]=[]]=w;return w.clear(),o&&s&&w.set(o,s),Object.fromEntries(u.value.map(r=>[r.id,D(r)]))});B(d,o=>{v(),setTimeout(()=>{o.forEach(s=>{const{stop:r}=F(s,([{isIntersecting:a,target:{id:c}={}}={}]=[])=>{_.value=new Map(n.value),c&&a!==void 0&&n.value.set(c,a)},{threshold:.1});e.push(r)})})},{deep:!0}),L(window,{behavior:"smooth",onStop:()=>{if(!U.value){const{scrollX:o,scrollY:s}=window,[r]=u.value,[a]=X.value;if(a&&r){const{$children:[{id:c}={}]=[]}=a,M=!Math.floor(o)&&!Math.floor(s)&&r.id===c?a.id:[...n.value.entries()].find(([,h])=>h)?.[0]??[..._.value.entries()].find(([,h])=>h)?.[0]??r.id;M!==t.name&&(Y.value=!1,f.push({name:M}).catch(q))}}}}),C(v);const k={refs:d,route:t,router:f,siblings:p,stops:e,$siblings:m,clearStops:v,these:u,intersecting:n,$intersecting:_,templates:y,get uid(){return V},get resolve(){return T},get that(){return l}};return Object.defineProperty(k,"__isScriptSetup",{enumerable:!1,value:!0}),k}}),J=["id","role"];function K(x,b,d,t,f,p){return g(!0),S(O,null,j(t.these,e=>(g(),S("div",{id:e.id??t.uid(),key:e.id??t.uid(),ref_for:!0,ref:"refs",class:R(e.class),role:e.id===t.that?.id?"main":"section","un-cloak":""},[(g(),$(z(t.templates[e.id]),{id:e.id,"un-cloak":"",onVnodeMounted:m=>t.resolve(e)},null,8,["id","onVnodeMounted"]))],10,J))),128)}const oe=A(I,[["render",K],["__file","PageView.vue"]]);export{oe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as s,computed as a,createElementBlock as d,createCommentVNode as l,openBlock as n,normalizeClass as c,createBlock as _,resolveDynamicComponent as m}from"vue";import{d as u,m as p,r as f,u as v,_ as h}from"./index-
|
|
1
|
+
import{defineComponent as s,computed as a,createElementBlock as d,createCommentVNode as l,openBlock as n,normalizeClass as c,createBlock as _,resolveDynamicComponent as m}from"vue";import{d as u,m as p,r as f,u as v,_ as h}from"./index-Dy6rvr78.js";import"./sucrase-Cw4LZf8f.js";import"vue-router";import"./compiler-sfc-CHbDt8t7.js";const k=s({__name:"RootView",setup(i,{expose:o}){o();const[t]=u.value,e=a(()=>t&&p(t)),r={the:t,is:e,get uid(){return v},get resolve(){return f}};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),V=["id"];function x(i,o,t,e,r,C){return e.the?.enabled?(n(),d("div",{key:0,id:e.the?.id??e.uid(),class:c(e.the?.class),"un-cloak":""},[(n(),_(m(e.is),{id:e.the?.id,"un-cloak":"",onVnodeMounted:o[0]||(o[0]=b=>e.resolve(e.the))},null,8,["id"]))],10,V)):l("",!0)}const S=h(k,[["render",x],["__file","RootView.vue"]]);export{S as default};
|