Ver Fonte

提交

1
mo há 2 anos atrás
pai
commit
eca9601497

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index-729efe88.js


+ 1 - 1
dist/assets/index-34cee88f.js → dist/assets/index-eb5b3f5f.js

@@ -1 +1 @@
-import{d as g,F as w,V as y,bn as i,M as h,U as r,ao as v,j as c,aJ as b,aq as _}from"./index-fa9e72a9.js";import{s as T}from"./instrument-e4336964.js";import"./index-c3cdc6f3.js";import"./vue3-lottie.es-dbd135b9.js";import"./index-69d1a4db.js";import"./index-aa322096.js";const L="_skeleton_vtlsh_1",x="_detail_vtlsh_12",R="_container_vtlsh_20",l={skeleton:L,detail:x,container:R},k=g({name:"music-list",setup(){const u=w(),e=y({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:i.staff,base64:""},{state:!1,name:"首调",type:i.firstTone,base64:""},{state:!1,name:"固定调",type:i.fixedTone,base64:""}]});h(()=>{window.appName="colexiu",r.xmlUrl=u.xmlUrl,r.musicRenderType=i.staff,e.isLoading=!1,v({message:"生成中",duration:0})});const m=async()=>{var o;const s=e.product.find(n=>n.type===r.musicRenderType);if(!s)return;s.state=!0,s.base64=await p();const t=e.product.find(n=>!n.state);if(t){r.musicRenderType=t.type,e.isLoading=!0,setTimeout(()=>e.isLoading=!1,500);return}_(),console.log(e.product),(o=window.parent)==null||o.postMessage({api:"webApi_renderSvg",product:JSON.stringify(e.product)},"*")},p=()=>new Promise(s=>{setTimeout(async()=>{var d;const t=(d=document.getElementById("osmdSvgPage1"))==null?void 0:d.cloneNode(!0);if(!t){s("");return}const o=t.width.animVal.value,n=t.height.animVal.value,a=document.createElementNS("http://www.w3.org/2000/svg","rect");a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("width",`${o*2}`),a.setAttribute("height",`${n*2}`),a.setAttribute("fill","#fff"),t.prepend(a);const f=T(t.outerHTML).toDataURL("image/png",1);s(f)},500)});return()=>c("div",{class:l.detail},[c("div",{id:"scrollContainer",class:[l.container,"hideCursor"]},[!e.isLoading&&c(b,{showSelection:!1,onRendered:m},null)])])}});export{k as default};
+import{d as g,F as w,V as y,bn as i,M as h,U as r,ao as v,j as c,aJ as b,aq as _}from"./index-fa9e72a9.js";import{s as T}from"./instrument-4bf27e66.js";import"./index-c3cdc6f3.js";import"./vue3-lottie.es-dbd135b9.js";import"./index-69d1a4db.js";import"./index-aa322096.js";const L="_skeleton_vtlsh_1",x="_detail_vtlsh_12",R="_container_vtlsh_20",l={skeleton:L,detail:x,container:R},k=g({name:"music-list",setup(){const u=w(),e=y({isLoading:!0,isProductLoading:!1,product:[{state:!1,name:"五线谱",type:i.staff,base64:""},{state:!1,name:"首调",type:i.firstTone,base64:""},{state:!1,name:"固定调",type:i.fixedTone,base64:""}]});h(()=>{window.appName="colexiu",r.xmlUrl=u.xmlUrl,r.musicRenderType=i.staff,e.isLoading=!1,v({message:"生成中",duration:0})});const m=async()=>{var o;const s=e.product.find(n=>n.type===r.musicRenderType);if(!s)return;s.state=!0,s.base64=await p();const t=e.product.find(n=>!n.state);if(t){r.musicRenderType=t.type,e.isLoading=!0,setTimeout(()=>e.isLoading=!1,500);return}_(),console.log(e.product),(o=window.parent)==null||o.postMessage({api:"webApi_renderSvg",product:JSON.stringify(e.product)},"*")},p=()=>new Promise(s=>{setTimeout(async()=>{var d;const t=(d=document.getElementById("osmdSvgPage1"))==null?void 0:d.cloneNode(!0);if(!t){s("");return}const o=t.width.animVal.value,n=t.height.animVal.value,a=document.createElementNS("http://www.w3.org/2000/svg","rect");a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("width",`${o*2}`),a.setAttribute("height",`${n*2}`),a.setAttribute("fill","#fff"),t.prepend(a);const f=T(t.outerHTML).toDataURL("image/png",1);s(f)},500)});return()=>c("div",{class:l.detail},[c("div",{id:"scrollContainer",class:[l.container,"hideCursor"]},[!e.isLoading&&c(b,{showSelection:!1,onRendered:m},null)])])}});export{k as default};

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index-legacy-48f94546.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index-legacy-faed0aa8.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/assets/instrument-392fa85a.css


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/assets/instrument-4bf27e66.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/assets/instrument-legacy-0c472576.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/assets/instrument-legacy-ef4d240b.js


+ 3 - 3
dist/instrument.html

@@ -36,7 +36,7 @@
       },
     })
   </script>
-  <script type="module" crossorigin src="./assets/instrument-e4336964.js"></script>
+  <script type="module" crossorigin src="./assets/instrument-4bf27e66.js"></script>
   <link rel="modulepreload" crossorigin href="./assets/index-fa9e72a9.js">
   <link rel="modulepreload" crossorigin href="./assets/index-c3cdc6f3.js">
   <link rel="modulepreload" crossorigin href="./assets/vue3-lottie.es-dbd135b9.js">
@@ -44,7 +44,7 @@
   <link rel="modulepreload" crossorigin href="./assets/index-aa322096.js">
   <link rel="stylesheet" href="./assets/index-4cfc339c.css">
   <link rel="stylesheet" href="./assets/index-c7a13191.css">
-  <link rel="stylesheet" href="./assets/instrument-8716cbbc.css">
+  <link rel="stylesheet" href="./assets/instrument-392fa85a.css">
   <script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};window.__vite_is_modern_browser=true;</script>
   <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
 </head>
@@ -55,7 +55,7 @@
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
   <script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-baf2005d.js"></script>
-  <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/instrument-legacy-0c472576.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+  <script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/instrument-legacy-ef4d240b.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 
 </html>

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff