@vuebro/runtime 1.4.6 → 1.4.8
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"_katex-B59jf8CD.js":{"file":"assets/katex-B59jf8CD.js","name":"katex"},"_markdown-9kbgniO_.js":{"file":"assets/markdown-9kbgniO_.js","name":"markdown","imports":["_mermaid-BQWZaxT1.js","_katex-B59jf8CD.js"]},"_mermaid-BQWZaxT1.js":{"file":"assets/mermaid-BQWZaxT1.js","name":"mermaid"},"_shared-L1pI3rwf.js":{"file":"assets/shared-L1pI3rwf.js","name":"shared","isDynamicEntry":true,"imports":["_markdown-9kbgniO_.js"]},"index.html":{"file":"assets/index-
|
|
1
|
+
{"_katex-B59jf8CD.js":{"file":"assets/katex-B59jf8CD.js","name":"katex"},"_markdown-9kbgniO_.js":{"file":"assets/markdown-9kbgniO_.js","name":"markdown","imports":["_mermaid-BQWZaxT1.js","_katex-B59jf8CD.js"]},"_mermaid-BQWZaxT1.js":{"file":"assets/mermaid-BQWZaxT1.js","name":"mermaid"},"_shared-L1pI3rwf.js":{"file":"assets/shared-L1pI3rwf.js","name":"shared","isDynamicEntry":true,"imports":["_markdown-9kbgniO_.js"]},"index.html":{"file":"assets/index-NuG_qlbP.js","name":"index","src":"index.html","isEntry":true,"imports":["_shared-L1pI3rwf.js","_markdown-9kbgniO_.js","_mermaid-BQWZaxT1.js","_katex-B59jf8CD.js"],"dynamicImports":["_shared-L1pI3rwf.js","_shared-L1pI3rwf.js"],"css":["assets/index-vGiKZPT9.css"]},"node_modules/vue/dist/vue.esm-browser.prod.js":{"file":"assets/vue.esm-browser.prod-3.5.25.js","isStaticEntry":true,"name":"vue"},"node_modules/vue-router/dist/vue-router.esm-browser.prod.js":{"file":"assets/vue-router.esm-browser.prod-4.6.3.js","isStaticEntry":true,"name":"vue-router"},"node_modules/@vuebro/loader-sfc/dist/loader-sfc.esm-browser.prod.js":{"file":"assets/loader-sfc.esm-browser.prod-2.4.4.js","isStaticEntry":true,"name":"@vuebro/loader-sfc"}}
|
|
@@ -418,4 +418,4 @@ ${e.sfcBlocks?.script?.content??""}
|
|
|
418
418
|
${e.sfcBlocks?.scriptSetup?.content??""}
|
|
419
419
|
${e.sfcBlocks?.styles.map(({content:n})=>n).join(`
|
|
420
420
|
`)??""}
|
|
421
|
-
`,{scriptOptions:{inlineTemplate:!0}})});function Ao(t,e){const n=t.type,r=n==="html"?"htmlAttrs":n==="body"?"bodyAttrs":n;if(typeof r!="string"||!(r in e))return;const o=t.props||{};if(t.children){const i="children";o.children=Array.isArray(t.children)?t.children[0][i]:t[i]}Array.isArray(e[r])?e[r].push(o):r==="title"?e.title=o.children:e[r]=o}function qm(t){const e={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const n of t)if(typeof n.type=="symbol"&&Array.isArray(n.children))for(const r of n.children)Ao(r,e);else Ao(n,e);return e}const Km=Wt({name:"Head",setup(t,{slots:e}){const n=wt({}),r=Un(n);return Po(()=>{r.dispose()}),()=>(We(()=>{e.default&&r.patch(qm(e.default()))}),null)}}),Gm=Wt({__name:"NotFoundView",setup(t){return(e,n)=>(gt(),Oe(Ro,null,[$s(_t(Km),null,{default:Nn(()=>[...n[0]||(n[0]=[qt("title",null,"Page Not Found",-1)])]),_:1}),n[1]||(n[1]=qt("div",{class:"absolute inset-0 grid place-items-center"},[qt("div",{class:"text-center"},[qt("div",{class:"text-9xl"},"404"),qt("p",null,"Oops. Nothing here...")])],-1))],64))}}),Ym={mounted(t,e){if(typeof e.value=="function"){const n=e.value;bt(mo(t),r=>n(r),{immediate:!0})}else{const[n,r]=e.value;bt(mo(t,r),o=>n(o),{immediate:!0})}}};function Xm(){let t=!1;const e=mt(!1);return(n,r)=>{if(e.value=r.value,t)return;t=!0;const o=Dh(n,r.value);bt(e,i=>o.value=i)}}Xm();const Zm=["id"],Qm=Wt({__name:"PageView",setup(t){const e=Q(et,"$these"),n=Q(Dt,"kvNodes"),{intersecting:r,promises:o}=et,i=()=>{[r,o].forEach(a=>{a.clear()})},s=G(()=>new Map(e.value.map(({id:a})=>[a,ls(a)])));return We(()=>{i(),e.value.forEach(({id:a})=>{r.set(a,!1),o.set(a,as())})}),Lo(()=>{i()}),(a,l)=>(gt(!0),Oe(Ro,null,xs(s.value,([c,f])=>Ss((gt(),Oe("div",{id:c,key:c,class:Fo(n.value[c]?.class),"un-cloak":""},[(gt(),ue(Vn(f),{id:c,onVnodeMounted:d=>_t(o).get(c)?.resolve(void 0)},null,8,["id","onVnodeMounted"]))],10,Zm)),[[_t(Ym),[d=>{_t(r).set(c,d)},{threshold:.1}]]])),128))}}),Jm=["id"],t0=Wt({__name:"RootView",setup(t){const e=Q(Dt,"nodes"),{root:n}=et,r=G(()=>e.value[0]&&ls(e.value[0].id));return(o,i)=>(gt(),ue(Cs,null,{default:Nn(()=>[e.value[0]?.enabled?(gt(),Oe("div",{key:0,id:e.value[0].id,class:Fo(e.value[0].class),"un-cloak":""},[(gt(),ue(Vn(r.value),{id:e.value[0].id,onVnodeMounted:i[0]||(i[0]=s=>_t(n).resolve(void 0))},null,8,["id"]))],10,Jm)):Es("",!0)]),_:1}))}});let Oo=Q(et,"routeName");const cs=De(et),e0=Q(cs,"$these"),n0=Q(cs,"that"),us=De(Dt),r0=Q(us,"kvNodes"),Mo=Q(us,"nodes"),[o0,i0]=(await Promise.all(["index","fonts"].map(t=>Wn(`${t}.json`)))).map(t=>t??[]),fs=js(Um),{intersecting:s0,promises:a0,root:l0}=et,{pathname:c0}=new URL(document.baseURI);Io.info("👊 VueBro / https://github.com/vuebro / runtime ver.:","1.4.
|
|
421
|
+
`,{scriptOptions:{inlineTemplate:!0}})});function Ao(t,e){const n=t.type,r=n==="html"?"htmlAttrs":n==="body"?"bodyAttrs":n;if(typeof r!="string"||!(r in e))return;const o=t.props||{};if(t.children){const i="children";o.children=Array.isArray(t.children)?t.children[0][i]:t[i]}Array.isArray(e[r])?e[r].push(o):r==="title"?e.title=o.children:e[r]=o}function qm(t){const e={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const n of t)if(typeof n.type=="symbol"&&Array.isArray(n.children))for(const r of n.children)Ao(r,e);else Ao(n,e);return e}const Km=Wt({name:"Head",setup(t,{slots:e}){const n=wt({}),r=Un(n);return Po(()=>{r.dispose()}),()=>(We(()=>{e.default&&r.patch(qm(e.default()))}),null)}}),Gm=Wt({__name:"NotFoundView",setup(t){return(e,n)=>(gt(),Oe(Ro,null,[$s(_t(Km),null,{default:Nn(()=>[...n[0]||(n[0]=[qt("title",null,"Page Not Found",-1)])]),_:1}),n[1]||(n[1]=qt("div",{class:"absolute inset-0 grid place-items-center"},[qt("div",{class:"text-center"},[qt("div",{class:"text-9xl"},"404"),qt("p",null,"Oops. Nothing here...")])],-1))],64))}}),Ym={mounted(t,e){if(typeof e.value=="function"){const n=e.value;bt(mo(t),r=>n(r),{immediate:!0})}else{const[n,r]=e.value;bt(mo(t,r),o=>n(o),{immediate:!0})}}};function Xm(){let t=!1;const e=mt(!1);return(n,r)=>{if(e.value=r.value,t)return;t=!0;const o=Dh(n,r.value);bt(e,i=>o.value=i)}}Xm();const Zm=["id"],Qm=Wt({__name:"PageView",setup(t){const e=Q(et,"$these"),n=Q(Dt,"kvNodes"),{intersecting:r,promises:o}=et,i=()=>{[r,o].forEach(a=>{a.clear()})},s=G(()=>new Map(e.value.map(({id:a})=>[a,ls(a)])));return We(()=>{i(),e.value.forEach(({id:a})=>{r.set(a,!1),o.set(a,as())})}),Lo(()=>{i()}),(a,l)=>(gt(!0),Oe(Ro,null,xs(s.value,([c,f])=>Ss((gt(),Oe("div",{id:c,key:c,class:Fo(n.value[c]?.class),"un-cloak":""},[(gt(),ue(Vn(f),{id:c,onVnodeMounted:d=>_t(o).get(c)?.resolve(void 0)},null,8,["id","onVnodeMounted"]))],10,Zm)),[[_t(Ym),[d=>{_t(r).set(c,d)},{threshold:.1}]]])),128))}}),Jm=["id"],t0=Wt({__name:"RootView",setup(t){const e=Q(Dt,"nodes"),{root:n}=et,r=G(()=>e.value[0]&&ls(e.value[0].id));return(o,i)=>(gt(),ue(Cs,null,{default:Nn(()=>[e.value[0]?.enabled?(gt(),Oe("div",{key:0,id:e.value[0].id,class:Fo(e.value[0].class),"un-cloak":""},[(gt(),ue(Vn(r.value),{id:e.value[0].id,onVnodeMounted:i[0]||(i[0]=s=>_t(n).resolve(void 0))},null,8,["id"]))],10,Jm)):Es("",!0)]),_:1}))}});let Oo=Q(et,"routeName");const cs=De(et),e0=Q(cs,"$these"),n0=Q(cs,"that"),us=De(Dt),r0=Q(us,"kvNodes"),Mo=Q(us,"nodes"),[o0,i0]=(await Promise.all(["index","fonts"].map(t=>Wn(`${t}.json`)))).map(t=>t??[]),fs=js(Um),{intersecting:s0,promises:a0,root:l0}=et,{pathname:c0}=new URL(document.baseURI);Io.info("👊 VueBro / https://github.com/vuebro / runtime ver.:","1.4.8");Dt.tree=o0;await al({defaults:{presets:xh({webFontsOptions:{customFetch:_s,fonts:Object.fromEntries(i0.map(t=>[t.toLowerCase().replace(/ /g,"_"),t]))}})},ready:({extractAll:t,toggleObserver:e})=>{let n=!1;const r=As({history:Os(c0),routes:[...Mo.value.filter(({path:a})=>a!==void 0).map(a=>{const{id:l,loc:c,path:f}=a,d=c?.replace(/ /g,"_").replace(/^\/?/,"/").replace(/\/?$/,"/");return{...d&&{alias:d},children:[{component:Qm,name:l,path:""}],component:t0,path:f.replace(/^\/?/,"/").replace(/\/?$/,"/")}}),{component:Gm,name:"404",path:"/:pathMatch(.*)*"}],scrollBehavior:async({hash:a,name:l})=>{if(l)if(Oo.value=l,n)n=!1;else{const{index:c,parent:{flat:f}={}}=n0.value??{};return e(!0),await l0.promise,await Promise.all([...a0.values()].map(({promise:d})=>d)),await t(),e(!1),"requestIdleCallback"in window?await new Promise(d=>requestIdleCallback(d)):(await new Promise(d=>requestAnimationFrame(d)),await new Promise(d=>setTimeout(d))),{behavior:"smooth",...a||f&&c?{el:a||`#${String(l)}`}:{left:0,top:0}}}return!1}}),o=Vh(window,{onStop:()=>{const[a]=e0.value,[l]=Mo.value;if(l&&a){const{$children:[{id:c}={}]=[]}=l,f=!Math.floor(i.value)&&!Math.floor(s.value)&&a.id===c?l.id:[...s0.entries()].find(([,d])=>d)?.[0]??a.id;f!==Oo.value&&(n=!0,r.push({name:f}).catch(Io.error))}}}),i=Q(o,"x"),s=Q(o,"y");return r.beforeEach(({path:a})=>a!==decodeURI(a)?decodeURI(a):void 0),fs.use(r),!1},rootElement:()=>document.getElementById("app")??void 0});fs.use(ja()).provide("pages",Oh(r0.value)).mount("#app");
|
package/dist/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<base href="" />
|
|
7
7
|
<link rel="preload" crossorigin href="./index.json" as="fetch" />
|
|
8
8
|
<link rel="preload" crossorigin href="./fonts.json" as="fetch" />
|
|
9
|
-
<script type="module" crossorigin src="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-NuG_qlbP.js"></script>
|
|
10
10
|
<link rel="modulepreload" crossorigin href="./assets/mermaid-BQWZaxT1.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="./assets/katex-B59jf8CD.js">
|
|
12
12
|
<link rel="modulepreload" crossorigin href="./assets/markdown-9kbgniO_.js">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package",
|
|
3
3
|
"name": "@vuebro/runtime",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.8",
|
|
5
5
|
"description": "Vue.js-based runtime for VueBro applications with dynamic loading, SEO optimization, and intersection observer tracking.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vue",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@mdit/plugin-tasklist": "^0.22.2",
|
|
54
54
|
"@unhead/vue": "^2.0.19",
|
|
55
55
|
"@unocss/runtime": "^66.5.10",
|
|
56
|
-
"@vuebro/loader-sfc": "^2.4.
|
|
57
|
-
"@vuebro/shared": "^1.2.
|
|
56
|
+
"@vuebro/loader-sfc": "^2.4.4",
|
|
57
|
+
"@vuebro/shared": "^1.2.15",
|
|
58
58
|
"@vueuse/components": "^14.1.0",
|
|
59
59
|
"@vueuse/core": "^14.1.0",
|
|
60
60
|
"consola": "^3.4.2",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@mdit-vue/types": "^3.0.2",
|
|
70
70
|
"@types/node": "^24.10.1",
|
|
71
|
-
"@vuebro/configs": "^1.2.
|
|
71
|
+
"@vuebro/configs": "^1.2.24",
|
|
72
72
|
"eslint": "^9.39.1",
|
|
73
73
|
"unocss": "^66.5.10",
|
|
74
74
|
"vite": "^7.2.6",
|
/package/dist/assets/{loader-sfc.esm-browser.prod-2.4.3.js → loader-sfc.esm-browser.prod-2.4.4.js}
RENAMED
|
File without changes
|