@vuebro/runtime 1.1.3 → 1.1.5
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-D1qja65Y.js → NotFoundView-DZOKjjD_.js} +1 -1
- package/dist/assets/PageView-CBgnvfVO.js +1 -0
- package/dist/assets/RootView-C1rhcatp.js +1 -0
- package/dist/assets/{index-aXkIjkVP.js → index-CGbGvN7z.js} +22 -22
- package/dist/index.html +1 -1
- package/package.json +5 -6
- package/dist/assets/PageView-CLtMgOdO.js +0 -1
- package/dist/assets/RootView-CKop-4UN.js +0 -1
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-CGbGvN7z.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-DZOKjjD_.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-CBgnvfVO.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-C1rhcatp.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{e 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{e as h,_ as A}from"./index-CGbGvN7z.js";import"./sucrase-B167QcXN.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as I,ref as E,computed as l,watch as P,onUnmounted as B,createElementBlock as S,openBlock as h,Fragment as C,renderList as O,normalizeClass as j,createBlock as R,resolveDynamicComponent as $}from"vue";import{t as i,g as V,p as w,m as z,u as D,a as F,r as L,b as T,c as U,s as X,d as Y,_ as q}from"./index-CGbGvN7z.js";import{useRoute as A,useRouter as G}from"vue-router";import"./sucrase-B167QcXN.js";import"./compiler-sfc-CHbDt8t7.js";const H=I({__name:"PageView",setup(x,{expose:b}){b();const d=E([]),o=A(),f=G(),p=l(()=>i.value?.siblings??[]),e=[],m=l(()=>p.value.filter(({enabled:t})=>t)),v=()=>{e.forEach(t=>{t()}),e.length=0},u=l(()=>i.value===void 0||i.value.parent?.flat?m.value:[i.value]),n=l(()=>new Map(u.value.map(({id:t=V()})=>[t,!1]))),_=E(new Map(n.value)),y=l(()=>{const[[t,s]=[]]=w;return w.clear(),t&&s&&w.set(t,s),Object.fromEntries(u.value.map(r=>[r.id,z(r)]))});P(d,t=>{v(),setTimeout(()=>{t.forEach(s=>{const{stop:r}=D(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}),F(window,{behavior:"smooth",onStop:()=>{if(!T.value){const{scrollX:t,scrollY:s}=window,[r]=u.value,[a]=U.value;if(a&&r){const{$children:[{id:c}={}]=[]}=a,M=!Math.floor(t)&&!Math.floor(s)&&r.id===c?a.id:[...n.value.entries()].find(([,g])=>g)?.[0]??[..._.value.entries()].find(([,g])=>g)?.[0]??r.id;M!==o.name&&(X.value=!1,f.push({name:M}).catch(Y))}}}}),B(v);const k={refs:d,route:o,router:f,siblings:p,stops:e,$siblings:m,clearStops:v,these:u,intersecting:n,$intersecting:_,templates:y,get getId(){return V},get resolve(){return L},get that(){return i}};return Object.defineProperty(k,"__isScriptSetup",{enumerable:!1,value:!0}),k}}),J=["id","role"];function K(x,b,d,o,f,p){return h(!0),S(C,null,O(o.these,e=>(h(),S("div",{id:e.id??o.getId(),key:e.id??o.getId(),ref_for:!0,ref:"refs",class:j(e.class),role:e.id===o.that?.id?"main":"section","un-cloak":""},[(h(),R($(o.templates[e.id]),{id:e.id,"un-cloak":"",onVnodeMounted:m=>o.resolve(e)},null,8,["id","onVnodeMounted"]))],10,J))),128)}const te=q(H,[["render",K],["__file","PageView.vue"]]);export{te as default};
|
|
@@ -0,0 +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{c as p,m as u,r as f,g as v,_ as g}from"./index-CGbGvN7z.js";import"./sucrase-B167QcXN.js";import"vue-router";import"./compiler-sfc-CHbDt8t7.js";const h=s({__name:"RootView",setup(i,{expose:o}){o();const[t]=p.value,e=a(()=>t&&u(t)),r={the:t,is:e,get getId(){return v},get resolve(){return f}};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),k=["id"];function V(i,o,t,e,r,x){return e.the?.enabled?(n(),d("div",{key:0,id:e.the?.id??e.getId(),class:c(e.the?.class),"un-cloak":""},[(n(),_(m(e.is),{id:e.the?.id,"un-cloak":"",onVnodeMounted:o[0]||(o[0]=C=>e.resolve(e.the))},null,8,["id"]))],10,k)):l("",!0)}const R=g(h,[["render",V],["__file","RootView.vue"]]);export{R as default};
|