From 3da57848f20cc171b51987c0376d83c4c71436fa Mon Sep 17 00:00:00 2001 From: iFwu Date: Tue, 15 Oct 2024 06:35:53 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20iFwu/xia?= =?UTF-8?q?ngqi-analysis@ae065b8e76abad0de1017e1536b88d911e4d2424=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{index-BzaDC1FR.js => index-CFsV2Bwo.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-BzaDC1FR.js => index-CFsV2Bwo.js} (99%) diff --git a/assets/index-BzaDC1FR.js b/assets/index-CFsV2Bwo.js similarity index 99% rename from assets/index-BzaDC1FR.js rename to assets/index-CFsV2Bwo.js index 982d891..dfa56dd 100644 --- a/assets/index-BzaDC1FR.js +++ b/assets/index-CFsV2Bwo.js @@ -39,4 +39,4 @@ ${Pi}`)}function Jc(s,e,n){return(s>=0&&n?` ${xo(s,e-1)}`:xo(s,e)).padEnd(e)}fun
  • 优化黑棋子识别
  • 新增欢迎提示和加载界面
  • -`,yf={class:"changelog"},vf={class:"changelog-arrow"},bf=["innerHTML"],Sf=lt({__name:"Changelog",setup(s){const e=ye(!1),n=()=>{e.value=!e.value},t=Ef;return(o,i)=>(ve(),be("div",yf,[z("h3",{onClick:n,class:"changelog-title"},[z("span",vf,ot(e.value?"▼":"▶"),1),i[0]||(i[0]=Ts(" 更新日志 "))]),e.value?(ve(),be("div",{key:0,class:"changelog-content markdown-content",innerHTML:ht(t)},null,8,bf)):Ut("",!0)]))}}),Uf={key:0,class:"modal-overlay"},Rf={open:"",class:"welcome-modal"},qf={class:"welcome-modal-content"},Ff={class:"button-group"},If=lt({__name:"WelcomeModal",setup(s){const e="78e5165a",n=ye(!1);fs(()=>{const o=localStorage.getItem("lastSeenVersion");(!(localStorage.getItem("skipFutureModals")==="true")||o!==e)&&(n.value=!0)});const t=o=>{n.value=!1,localStorage.setItem("lastSeenVersion",e),o?localStorage.setItem("skipFutureModals","true"):localStorage.removeItem("skipFutureModals")};return(o,i)=>n.value?(ve(),be("div",Uf,[z("dialog",Rf,[z("div",qf,[i[2]||(i[2]=z("h2",null,"欢迎使用",-1)),i[3]||(i[3]=z("p",null,"该应用正在开发完善中",-1)),i[4]||(i[4]=z("p",null,"目前在 JJ象棋 残局截图上进行了测试",-1)),i[5]||(i[5]=z("p",null,"请注意:需要在设置中关闭行棋提示",-1)),Ue(Sf),z("div",Ff,[z("button",{onClick:i[0]||(i[0]=r=>t(!1)),class:"primary-button"}," 我知道了 "),z("button",{onClick:i[1]||(i[1]=r=>t(!0)),class:"secondary-button"}," 不再提示 ")])])])])):Ut("",!0)}}),Vf=(s,e)=>{const n=s.__vccOpts||s;for(const[t,o]of e)n[t]=o;return n},Mf={},xf={class:"spinner"};function _f(s,e){return ve(),be("div",xf)}const Cf=Vf(Mf,[["render",_f]]),Tf={key:0,class:"loading-overlay"},kf={key:1},Nf={class:"app-container"},Kf={class:"content-wrapper"},Af={class:"left-column"},Of={class:"right-column"},Jf=lt({__name:"App",setup(s){const e=ye(""),n=ye(""),t=ye([]),o=ye([]),i=ye(),r=ye(),{templates:l,isLoading:c}=rf(),{bestMove:u,isCalculating:a,error:f,fetchBestMove:g,setBestMove:E,isEngineReady:h}=ff(),{depth:w,setDepth:R}=hf(),d=qe(()=>c.value||!h.value);qt(()=>[n.value,w.value],()=>{n.value&&g(n.value,w.value)});const v=()=>{navigator.clipboard.writeText(n.value)},U=()=>{if(!u.value||u.value==="red_wins"||u.value==="black_wins")return;const C=tr(n.value,u.value);n.value=C,t.value.push(C),o.value.push(u.value),E("")},S=()=>{t.value.length>1&&(t.value.pop(),o.value.pop(),n.value=t.value[t.value.length-1],E(""))},x=C=>{if(c.value||!l.value)return;r.value={width:C.width,height:C.height};const{gridCells:J,chessboardRect:p}=Yu(C),b={x:Math.max(0,p.x),y:Math.max(0,p.y),width:Math.min(p.width,C.width-p.x),height:Math.min(p.height,C.height-p.y)};i.value=b;const M=[];for(let G=0;GArray(9).fill("none"));M.forEach(G=>{const[Y,O]=G.position;G.type!==null&&(te[Y][O]=`${G.color}_${G.type}`)});const ee=of(te,"red");n.value=ee,t.value=[ee]},F=C=>{t.value=[],o.value=[],E(""),x(C)},I=C=>{n.value=C,t.value.push(C),E("")};return(C,J)=>(ve(),be("div",null,[d.value?(ve(),be("div",Tf,[Ue(Cf),J[0]||(J[0]=z("p",null,"正在加载必要组件,请稍候...",-1)),J[1]||(J[1]=z("p",null,"如果加载时间过长,请刷新页面重试。",-1))])):(ve(),be("div",kf,[J[2]||(J[2]=z("header",null,[z("h1",null,"象棋棋盘识别与分析")],-1)),z("main",Nf,[Ue(If),z("div",Kf,[z("div",Af,[Ue(sf,{bestMove:ht(u),isCalculating:ht(a),error:ht(f),onNextMove:U,onPreviousMove:S,moveHistory:o.value,fenCode:n.value,fenHistory:t.value,onFenUpdate:I},null,8,["bestMove","isCalculating","error","moveHistory","fenCode","fenHistory"])]),z("div",Of,[Ue(Ta,{onImageUpload:F}),Ue(Aa,{overlayImageSrc:e.value,chessboardRect:i.value,originalImageSize:r.value},null,8,["overlayImageSrc","chessboardRect","originalImageSize"]),Ue(ja,{fenCode:n.value,onCopy:v},null,8,["fenCode"]),Ue(wf,{depth:ht(w),onDepthChange:ht(R)},null,8,["depth","onDepthChange"])])])]),J[3]||(J[3]=z("footer",null,[z("p",null,[Ts(" © 2024 象棋棋盘识别与分析系统 | Powered by "),z("a",{href:"https://github.com/official-pikafish/Pikafish"},"Pikafish"),Ts(" |  "),z("a",{href:"https://github.com/iFwu/xiangqi-analysis"},"GitHub 源码仓库")])],-1))]))]))}});yc(Jf).mount("#app"); +`,yf={class:"changelog"},vf={class:"changelog-arrow"},bf=["innerHTML"],Sf=lt({__name:"Changelog",setup(s){const e=ye(!1),n=()=>{e.value=!e.value},t=Ef;return(o,i)=>(ve(),be("div",yf,[z("h3",{onClick:n,class:"changelog-title"},[z("span",vf,ot(e.value?"▼":"▶"),1),i[0]||(i[0]=Ts(" 更新日志 "))]),e.value?(ve(),be("div",{key:0,class:"changelog-content markdown-content",innerHTML:ht(t)},null,8,bf)):Ut("",!0)]))}}),Uf={key:0,class:"modal-overlay"},Rf={open:"",class:"welcome-modal"},qf={class:"welcome-modal-content"},Ff={class:"button-group"},If=lt({__name:"WelcomeModal",setup(s){const e="ae065b8e",n=ye(!1);fs(()=>{const o=localStorage.getItem("lastSeenVersion");(!(localStorage.getItem("skipFutureModals")==="true")||o!==e)&&(n.value=!0)});const t=o=>{n.value=!1,localStorage.setItem("lastSeenVersion",e),o?localStorage.setItem("skipFutureModals","true"):localStorage.removeItem("skipFutureModals")};return(o,i)=>n.value?(ve(),be("div",Uf,[z("dialog",Rf,[z("div",qf,[i[2]||(i[2]=z("h2",null,"欢迎使用",-1)),i[3]||(i[3]=z("p",null,"该应用正在开发完善中",-1)),i[4]||(i[4]=z("p",null,"目前在 JJ象棋 残局截图上进行了测试",-1)),i[5]||(i[5]=z("p",null,"请注意:需要在设置中关闭行棋提示",-1)),Ue(Sf),z("div",Ff,[z("button",{onClick:i[0]||(i[0]=r=>t(!1)),class:"primary-button"}," 我知道了 "),z("button",{onClick:i[1]||(i[1]=r=>t(!0)),class:"secondary-button"}," 不再提示 ")])])])])):Ut("",!0)}}),Vf=(s,e)=>{const n=s.__vccOpts||s;for(const[t,o]of e)n[t]=o;return n},Mf={},xf={class:"spinner"};function _f(s,e){return ve(),be("div",xf)}const Cf=Vf(Mf,[["render",_f]]),Tf={key:0,class:"loading-overlay"},kf={key:1},Nf={class:"app-container"},Kf={class:"content-wrapper"},Af={class:"left-column"},Of={class:"right-column"},Jf=lt({__name:"App",setup(s){const e=ye(""),n=ye(""),t=ye([]),o=ye([]),i=ye(),r=ye(),{templates:l,isLoading:c}=rf(),{bestMove:u,isCalculating:a,error:f,fetchBestMove:g,setBestMove:E,isEngineReady:h}=ff(),{depth:w,setDepth:R}=hf(),d=qe(()=>c.value||!h.value);qt(()=>[n.value,w.value],()=>{n.value&&g(n.value,w.value)});const v=()=>{navigator.clipboard.writeText(n.value)},U=()=>{if(!u.value||u.value==="red_wins"||u.value==="black_wins")return;const C=tr(n.value,u.value);n.value=C,t.value.push(C),o.value.push(u.value),E("")},S=()=>{t.value.length>1&&(t.value.pop(),o.value.pop(),n.value=t.value[t.value.length-1],E(""))},x=C=>{if(c.value||!l.value)return;r.value={width:C.width,height:C.height};const{gridCells:J,chessboardRect:p}=Yu(C),b={x:Math.max(0,p.x),y:Math.max(0,p.y),width:Math.min(p.width,C.width-p.x),height:Math.min(p.height,C.height-p.y)};i.value=b;const M=[];for(let G=0;GArray(9).fill("none"));M.forEach(G=>{const[Y,O]=G.position;G.type!==null&&(te[Y][O]=`${G.color}_${G.type}`)});const ee=of(te,"red");n.value=ee,t.value=[ee]},F=C=>{t.value=[],o.value=[],E(""),x(C)},I=C=>{n.value=C,t.value.push(C),E("")};return(C,J)=>(ve(),be("div",null,[d.value?(ve(),be("div",Tf,[Ue(Cf),J[0]||(J[0]=z("p",null,"正在加载必要组件,请稍候...",-1)),J[1]||(J[1]=z("p",null,"如果加载时间过长,请刷新页面重试。",-1))])):(ve(),be("div",kf,[J[2]||(J[2]=z("header",null,[z("h1",null,"象棋棋盘识别与分析")],-1)),z("main",Nf,[Ue(If),z("div",Kf,[z("div",Af,[Ue(sf,{bestMove:ht(u),isCalculating:ht(a),error:ht(f),onNextMove:U,onPreviousMove:S,moveHistory:o.value,fenCode:n.value,fenHistory:t.value,onFenUpdate:I},null,8,["bestMove","isCalculating","error","moveHistory","fenCode","fenHistory"])]),z("div",Of,[Ue(Ta,{onImageUpload:F}),Ue(Aa,{overlayImageSrc:e.value,chessboardRect:i.value,originalImageSize:r.value},null,8,["overlayImageSrc","chessboardRect","originalImageSize"]),Ue(ja,{fenCode:n.value,onCopy:v},null,8,["fenCode"]),Ue(wf,{depth:ht(w),onDepthChange:ht(R)},null,8,["depth","onDepthChange"])])])]),J[3]||(J[3]=z("footer",null,[z("p",null,[Ts(" © 2024 象棋棋盘识别与分析系统 | Powered by "),z("a",{href:"https://github.com/official-pikafish/Pikafish"},"Pikafish"),Ts(" |  "),z("a",{href:"https://github.com/iFwu/xiangqi-analysis"},"GitHub 源码仓库")])],-1))]))]))}});yc(Jf).mount("#app"); diff --git a/index.html b/index.html index fdf8967..1b00def 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ 象棋棋盘识别与分析系统 | 在线象棋分析工具 - +