mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 08:15:18 +00:00
update
This commit is contained in:
parent
b8c404d6a9
commit
bd6fc9be7b
124 changed files with 440 additions and 398 deletions
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{d as G_,s as Ia,i as Pa,t as H_,c as Ti,g as W_,w as Ra,a as Jh,o as U_,b as Y_,h as jh,n as $_,e as Z_,u as X_}from"./arco.b087a425.js";/*! *****************************************************************************
|
||||
import{d as G_,s as Ia,i as Pa,t as H_,c as Ti,g as W_,w as Ra,a as Jh,o as U_,b as Y_,h as jh,n as $_,e as Z_,u as X_}from"./arco.9755215d.js";/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
BIN
assets/chart.e5f26fc3.js.gz
Normal file
BIN
assets/chart.e5f26fc3.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/default-layout.264e7a1e.js.gz
Normal file
BIN
assets/default-layout.264e7a1e.js.gz
Normal file
Binary file not shown.
Binary file not shown.
256
assets/dep-71c4f289.42b742c7.js
Normal file
256
assets/dep-71c4f289.42b742c7.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/dep-71c4f289.42b742c7.js.gz
Normal file
BIN
assets/dep-71c4f289.42b742c7.js.gz
Normal file
Binary file not shown.
1
assets/dep-71c4f289.96f5daa4.css
Normal file
1
assets/dep-71c4f289.96f5daa4.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/dep-71c4f289.96f5daa4.css.gz
Normal file
BIN
assets/dep-71c4f289.96f5daa4.css.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{a7 as N,p as _e,a8 as me,a9 as xe,aa as be,Y as le,ab as we,U as ye,f as Fe,a5 as Se,l as te,W as re}from"./index.e566a7c9.js";/**
|
||||
import{a7 as N,p as _e,a8 as me,a9 as xe,aa as be,Y as le,ab as we,U as ye,f as Fe,a5 as Se,l as te,W as re}from"./index.cb3e7091.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/form-model.13b193b5.js.gz
Normal file
BIN
assets/form-model.13b193b5.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{j as h,b as w,k as x,l as p,m,n as z,f as o,i as N,w as C}from"./index.e566a7c9.js";import{d as _,c as y,aI as u,aK as F}from"./arco.b087a425.js";import{u as k}from"./slot.50be8187.js";/**
|
||||
import{j as h,b as w,k as x,l as p,m,n as z,f as o,i as N,w as C}from"./index.cb3e7091.js";import{d as _,c as y,aI as u,aK as F}from"./arco.9755215d.js";import{u as k}from"./slot.c4dbb40e.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.00973063.js.gz
Normal file
BIN
assets/index.00973063.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{w as a,a6 as o}from"./index.e566a7c9.js";import"./arco.b087a425.js";/**
|
||||
import{w as a,a6 as o}from"./index.cb3e7091.js";import"./arco.9755215d.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
Binary file not shown.
Binary file not shown.
41
assets/index.1bbe0f20.js
Normal file
41
assets/index.1bbe0f20.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.1bbe0f20.js.gz
Normal file
BIN
assets/index.1bbe0f20.js.gz
Normal file
Binary file not shown.
1
assets/index.1cd2dce3.js
Normal file
1
assets/index.1cd2dce3.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{v as H,t as M,ad as N,O,_ as U}from"./index.cb3e7091.js";/* empty css *//* empty css *//* empty css */import{d as L,r as y,c as V,bI as j,C as G,D as W,aI as s,aH as r,G as S,aN as f,aM as g,u as h,a6 as Z,b8 as q,bi as F,bK as J,bO as Q}from"./arco.9755215d.js";import{u as X}from"./loading.3855ec1d.js";import{e as v,a as C,u as w,f as Y,h as D,s as ee,b,g as te}from"./serial.c6b76da8.js";import{I as P}from"./index.98ce9939.js";import{M as ae,T as ne}from"./index.342dcbe1.js";import"./chart.e5f26fc3.js";import"./vue.e23f7fca.js";import"./dep-71c4f289.42b742c7.js";import"./index.bfcac842.js";import"./form-model.13b193b5.js";import"./slot.c4dbb40e.js";const oe={class:"container"},re={name:"Radio"},ie=L({...re,setup(se){const{t:m}=H.exports.useI18n(),o=M(),{loading:I,setLoading:u}=X(!1),a=y({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),z=y({showHide:0}),R=e=>{a.renderData=e.newData},A=V(()=>[{colKey:"drag",title:m("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:m("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name?t.name.replace(/[^a-zA-Z0-9_]/g,""):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.mdcid"),colKey:"mdcid",align:"left",width:200,cell:(e,{row:t})=>parseInt(t.mdcid,16)<=65535?parseInt(t.mdcid,16).toString(16):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{e.newRowData.mdcid=e.newRowData.mdcid?e.newRowData.mdcid.toLowerCase():void 0;const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.operate"),colKey:"operate",align:"left",width:150}]),T=async()=>{var d,c;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);let e=new Uint8Array(256);for(let n=7424;n<7680;n+=16){const i=await C(o.connectPort,n,16,(d=o.configuration)==null?void 0:d.uart);e.set(i,n-7424)}const t=[];for(let n=0;n<256;n+=16)w(e.subarray(n,n+2))!="ffff"?t.push({name:Y(e.subarray(n+2,n+16),(c=o.configuration)==null?void 0:c.charset).trim(),mdcid:w(e.subarray(n,n+1))+w(e.subarray(n+1,n+2))}):t.push({});a.renderData=t,u(!1)},$=async()=>{var t,d,c,n;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);for(let i=0;i<256;i+=16)if(a.renderData[i/16].mdcid){const l=new Uint8Array(16).fill(32);l.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(0,2))),l.set(D(a.renderData[i/16].mdcid.padStart(4,"0").substring(2,4)),1),l.set(ee(a.renderData[i/16].name),2),await b(o.connectPort,i+7424,l,16,(t=o.configuration)==null?void 0:t.uart)}else await b(o.connectPort,i+7424,D("ffffffffffffffffffffffffffffffff"),16,(d=o.configuration)==null?void 0:d.uart);const e=await C(o.connectPort,8176,16,(c=o.configuration)==null?void 0:c.uart);e.set([16],16-1),await b(o.connectPort,8176,e,16,(n=o.configuration)==null?void 0:n.uart),await te(o.connectPort),u(!1)},K=async e=>{const t=[...a.renderData];t.splice(e,1,{scanlist:[]}),a.renderData=t};return(e,t)=>{const d=N,c=Z,n=q,i=F,l=J,k=Q,x=O,B=ne,E=j;return G(),W("div",oe,[s(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.mdc")]},null,8,["items"]),s(E,{class:"general-card"},{title:r(()=>[S("span",{onClick:t[0]||(t[0]=()=>{z.showHide+=1})},f(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[s(k,{style:{"margin-bottom":"16px"}},{default:r(()=>[s(l,{span:12},{default:r(()=>[s(i,null,{default:r(()=>[s(n,{type:"primary",onClick:T},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceRead")),1)]),_:1}),s(n,{onClick:$},{icon:r(()=>[s(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(B,{class:"ttable",loading:h(I),size:"medium",columns:A.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:t[1]||(t[1]=p=>{a.pageSize=p.pagination.pageSize,a.nowPage=p.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:R},{drag:r(({row:p,rowIndex:_})=>[S("span",null,[s(h(ae))])]),index:r(({row:p,rowIndex:_})=>[g(f((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:p,rowIndex:_})=>[s(x,{theme:"default",variant:"dashed",onClick:ce=>K((a.nowPage-1)*a.pageSize+_)},{default:r(()=>[g(f(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Ce=U(ie,[["__scopeId","data-v-dfecd3b2"]]);export{Ce as default};
|
BIN
assets/index.1cd2dce3.js.gz
Normal file
BIN
assets/index.1cd2dce3.js.gz
Normal file
Binary file not shown.
Binary file not shown.
1
assets/index.23def302.css
Normal file
1
assets/index.23def302.css
Normal file
|
@ -0,0 +1 @@
|
|||
.t-slider__input-container{display:flex;align-items:center;margin-left:var(--td-comp-margin-xxl)}.t-slider__input-container.is-vertical{padding-top:var(--td-comp-paddingTB-l);margin-left:0}.t-slider__input-container .t-slider__center-line{width:var(--td-size-4);height:1px;background:rgba(0,0,0,.9);margin:0 var(--td-comp-margin-s)}.t-slider{font:var(--td-font-body-medium);color:var(--td-text-color-primary);box-sizing:border-box;margin:0;padding:0;list-style:none;height:calc(var(--td-comp-paddingTB-xs) * 2 + var(--td-size-2));width:100%;position:relative;padding:var(--td-comp-paddingTB-xs) 0}.t-slider__container{width:100%;display:flex;justify-content:center;align-items:center}.t-slider__container.is-vertical{height:100%;flex-direction:column}.t-slider__rail{position:absolute;width:100%;height:var(--td-size-2);background-color:var(--td-bg-color-secondarycomponent);transition:.2s linear;border-radius:var(--td-radius-round)}.t-slider__rail:hover{background-color:var(--td-bg-color-secondarycomponent-hover)}.t-slider__track{position:absolute;height:var(--td-size-2);background-color:var(--td-brand-color);right:auto;border-radius:var(--td-radius-round)}.t-slider__step{position:absolute;width:100%;height:var(--td-size-2);cursor:pointer}.t-slider__button{width:var(--td-comp-size-xxxs);height:var(--td-comp-size-xxxs);border:2px solid var(--td-brand-color);background-color:#fff;border-radius:var(--td-radius-circle);transition:.2s;user-select:none;box-sizing:border-box;box-shadow:var(--td-shadow-1)}.t-slider__button--dragging{box-shadow:0 0 0 2px var(--td-brand-color-focus)}.t-slider__button:hover{background-color:var(--td-gray-color-1)}.t-slider__button-wrapper{position:absolute;z-index:2;top:50%;transform:translate(-50%,-50%);background-color:transparent;text-align:center;user-select:none;line-height:normal;outline:none;cursor:pointer;display:flex;align-items:center}.t-slider__stop{position:absolute;width:1px;height:var(--td-size-2);background-color:var(--td-bg-color-secondarycomponent);top:4px}.t-slider__mark{position:absolute;top:2px;left:0;width:100%}.t-slider__mark-text{position:absolute;display:inline-block;font:var(--td-font-body-small);color:var(--td-text-color-primary);top:calc(var(--td-size-2) + var(--td-comp-paddingTB-xs) + 2px);transform:translate(-50%);cursor:pointer}.t-slider__mark-text:first-child{transform:translate(0)}.t-slider__mark-text:last-child{transform:translate(-100%)}.t-slider--vertical{height:100%;padding:0;display:flex;justify-content:center;position:relative}.t-slider--vertical .t-slider__rail{width:var(--td-size-2);height:100%}.t-slider--vertical .t-slider__track{width:var(--td-size-2);top:auto}.t-slider--vertical .t-slider__step{width:var(--td-size-2);height:100%}.t-slider--vertical .t-slider__handle{margin-top:-6px;margin-left:-5px;top:auto;transform:translateY(50%)}.t-slider--vertical .t-slider__mark{top:0;left:12px;width:18px;height:100%}.t-slider--vertical .t-slider__stop{width:var(--td-size-2);height:1px;left:4px;background-color:var(--td-bg-color-secondarycomponent)}.t-slider--vertical .t-slider__mark-text{transform:translateY(-50%);margin-top:0;margin-left:var(--td-comp-margin-xxs)}.t-slider--vertical .t-slider__button-wrapper,.t-slider__button-wrapper--vertical{top:auto;position:absolute;z-index:2;left:50%;transform:translate(-50%,50%);background-color:transparent;text-align:center;user-select:none;line-height:normal;outline:none;cursor:pointer;display:flex;align-items:center}.t-is-disabled{cursor:not-allowed}.t-is-disabled .t-slider__track{background-color:var(--td-brand-color-disabled)}.t-is-disabled .t-slider__rail{background-color:var(--td-bg-color-component-disabled)}.t-is-disabled .t-slider__handle{border:2px solid var(--td-brand-color-disabled)}.t-is-disabled .t-slider__button{border-color:var(--td-brand-color-disabled);outline:none}.t-is-disabled .t-slider__mark-text{color:var(--td-text-color-disabled);cursor:not-allowed}.t-is-disabled .t-slider__button-wrapper{cursor:not-allowed}.container[data-v-dc47d6dc]{padding:0 20px 20px;padding:0 .781vw .781vw}.container[data-v-dc47d6dc] .arco-list-content{overflow-x:hidden}.container[data-v-dc47d6dc] .arco-card-meta-title{font-size:14px}[data-v-dc47d6dc] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-dc47d6dc] .arco-list-item{width:33%}[data-v-dc47d6dc] .block-title{margin:0 0 12px;font-size:14px}[data-v-dc47d6dc] .list-wrap .list-row{align-items:stretch}[data-v-dc47d6dc] .list-wrap .list-row .list-col{margin-bottom:16px;margin-bottom:.625vw}[data-v-dc47d6dc] .list-wrap :deep(.arco-space){width:100%}[data-v-dc47d6dc] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
BIN
assets/index.23def302.css.gz
Normal file
BIN
assets/index.23def302.css.gz
Normal file
Binary file not shown.
1
assets/index.2d51bf07.js
Normal file
1
assets/index.2d51bf07.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{d as o,D as r,C as a}from"./arco.9755215d.js";import{g as s,f as n}from"./vue.e23f7fca.js";const i=o({__name:"index",setup(c){const e=s(),t=n().params.path;return e.replace({path:t}),(u,m)=>(a(),r("div"))}});export{i as default};
|
1
assets/index.327d4a48.js
Normal file
1
assets/index.327d4a48.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{v as B,t as x,ad as E,O as H,_ as M}from"./index.cb3e7091.js";/* empty css *//* empty css *//* empty css */import{d as N,r as b,c as O,bI as V,C as L,D as j,aI as s,aH as i,G as S,aN as u,aM as h,u as C,a6 as G,b8 as W,bi as q,bK as F,bO as J}from"./arco.9755215d.js";import{u as Q}from"./loading.3855ec1d.js";import{e as v,a as X,u as Y,f as I,s as P,b as Z,g as ee}from"./serial.c6b76da8.js";import{I as z}from"./index.98ce9939.js";import{M as te,T as ae}from"./index.342dcbe1.js";import"./chart.e5f26fc3.js";import"./vue.e23f7fca.js";import"./dep-71c4f289.42b742c7.js";import"./index.bfcac842.js";import"./form-model.13b193b5.js";import"./slot.c4dbb40e.js";const ne={class:"container"},oe={name:"dtmfContact"},re=N({...oe,setup(ie){const{t:f}=B.exports.useI18n(),r=x(),{loading:A,setLoading:_}=Q(!1),n=b({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),R=b({showHide:0}),$=e=>{n.renderData=e.newData},K=O(()=>[{colKey:"drag",title:f("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:f("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name,edit:{component:z,props:{clearable:!0},onEdited:e=>{const t=[...n.renderData];t.splice((n.nowPage-1)*n.pageSize+e.rowIndex,1,e.newRowData),n.renderData=t}}},{title:f("cps.dtmfid"),colKey:"dtmfid",align:"left",width:200,cell:(e,{row:t})=>t.dtmfid,edit:{component:z,props:{clearable:!0},onEdited:e=>{e.newRowData.dtmfid=e.newRowData.dtmfid?e.newRowData.dtmfid.toUpperCase():void 0;const t=[...n.renderData];t.splice((n.nowPage-1)*n.pageSize+e.rowIndex,1,e.newRowData),n.renderData=t}}},{title:f("cps.operate"),colKey:"operate",align:"left",width:150}]),T=async()=>{var d,c,o;if(r.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(r.connectPort),_(!0);let e=new Uint8Array(256);for(let a=7168;a<7424;a+=16){const l=await X(r.connectPort,a,16,(d=r.configuration)==null?void 0:d.uart);e.set(l,a-7168)}const t=[];for(let a=0;a<256;a+=16)Y(e.subarray(a,a+1))!="ff"?t.push({dtmfid:I(e.subarray(a+8,a+16),(c=r.configuration)==null?void 0:c.charset),name:I(e.subarray(a,a+8),(o=r.configuration)==null?void 0:o.charset)}):t.push({});n.renderData=t,_(!1)},k=async()=>{var t,d,c;if(r.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(r.connectPort),_(!0);let e=[];for(let o=0;o<16;o++){let a=n.renderData[o].dtmfid,l=n.renderData[o].name;if(a&&l){a=a.trim(),l=l.trim();let m=new Uint8Array(16),g=new Uint8Array(8),w=new Uint8Array(8),y=P(a,(t=r.configuration)==null?void 0:t.charset).slice(0,8);g.set(y);let p=P(l,(d=r.configuration)==null?void 0:d.charset).slice(0,8);w.set(p),m.set(w),m.set(g,8),e.push(m)}}if(e.length<16)for(let o=e.length;o<16;o++){let a=new Uint8Array(16);a[0]=255,a[8]=255,e[o]=a}for(let o=0;o<e.length;o++)await Z(r.connectPort,o*16+7168,e[o],16,(c=r.configuration)==null?void 0:c.uart);await ee(r.connectPort),_(!1)},U=async e=>{const t=[...n.renderData];t.splice(e,1,{scanlist:[]}),n.renderData=t};return(e,t)=>{const d=E,c=G,o=W,a=q,l=F,m=J,g=H,w=ae,y=V;return L(),j("div",ne,[s(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.dtmf")]},null,8,["items"]),s(y,{class:"general-card"},{title:i(()=>[S("span",{onClick:t[0]||(t[0]=()=>{R.showHide+=1})},u(e.$t("menu.cps.dtmf")+e.$t("global.onStart")),1)]),default:i(()=>[s(m,{style:{"margin-bottom":"16px"}},{default:i(()=>[s(l,{span:12},{default:i(()=>[s(a,null,{default:i(()=>[s(o,{type:"primary",onClick:T},{icon:i(()=>[s(c)]),default:i(()=>[h(" "+u(e.$t("cps.onDeviceRead")),1)]),_:1}),s(o,{onClick:k},{icon:i(()=>[s(c)]),default:i(()=>[h(" "+u(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(w,{class:"ttable",loading:C(A),size:"medium",columns:K.value,data:n.renderData,pagination:{defaultPageSize:n.pageSize,total:n.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:t[1]||(t[1]=p=>{n.pageSize=p.pagination.pageSize,n.nowPage=p.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:$},{drag:i(({row:p,rowIndex:D})=>[S("span",null,[s(C(te))])]),index:i(({row:p,rowIndex:D})=>[h(u((n.nowPage-1)*n.pageSize+D+1),1)]),operate:i(({row:p,rowIndex:D})=>[s(g,{theme:"default",variant:"dashed",onClick:se=>U((n.nowPage-1)*n.pageSize+D)},{default:i(()=>[h(u(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Ce=M(re,[["__scopeId","data-v-72c5810e"]]);export{Ce as default};
|
BIN
assets/index.327d4a48.js.gz
Normal file
BIN
assets/index.327d4a48.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.342dcbe1.js.gz
Normal file
BIN
assets/index.342dcbe1.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.35976868.js.gz
Normal file
BIN
assets/index.35976868.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{_}from"./index.e566a7c9.js";/* empty css */import{d as F,r as f,o as h,bG as g,b8 as m,D as y,a$ as i,b0 as c,G as o,aM as s,aI as a,aN as d,aH as b,bm as v,bn as A,C as D}from"./arco.b087a425.js";import"./chart.836a9fe2.js";import"./vue.23fb8a9a.js";const l=u=>(v("data-v-da2b92fd"),u=u(),A(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=async()=>{await fetch("https://k5.vicicode.cn/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:b(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-da2b92fd"]]);export{U as default};
|
||||
import{_}from"./index.cb3e7091.js";/* empty css */import{d as F,r as f,o as h,bG as g,b8 as m,D as y,a$ as i,b0 as c,G as o,aM as s,aI as a,aN as d,aH as b,bm as v,bn as A,C as D}from"./arco.9755215d.js";import"./chart.e5f26fc3.js";import"./vue.e23f7fca.js";const l=u=>(v("data-v-da2b92fd"),u=u(),A(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=async()=>{await fetch("https://k5.vicicode.cn/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:b(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-da2b92fd"]]);export{U as default};
|
BIN
assets/index.361279cf.js.gz
Normal file
BIN
assets/index.361279cf.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{v as D,ad as E,_ as V}from"./index.e566a7c9.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as B,w as H,o as R,bW as T,bI as I,C as p,D as v,aI as l,aH as i,u as A,G as y,aM as c,aN as h,aK as k,aJ as x,aE as S,bX as J,b8 as F,bh as G,bK as K,bO as Y}from"./arco.b087a425.js";import{g as q}from"./vue.23fb8a9a.js";import{u as W}from"./loading.9d534c38.js";import{L as X}from"./index.d24f0048.js";import{S as z}from"./index.351768f8.js";import"./chart.836a9fe2.js";import"./slot.50be8187.js";const P={class:"container"},Q={name:"DIY"},Z=$({...Q,setup(tt){const L=q(),{t:M}=D.exports.useI18n(),N=()=>{L.push({path:"/tool/flash",query:{url:"https://k5.vicicode.cn/diyapi/LOSEHU"+t.flag.join("")+".bin?v="+new Date().getTime()}})},O=()=>{fetch("https://k5.vicicode.cn/diyapi/LOSEHU"+t.flag.join("")+".bin?v="+new Date().getTime()).then(e=>e.blob()).then(e=>{const o=URL.createObjectURL(e),n=document.createElement("a");n.href=o,n.download="LOSEHU-CUSTOM-"+t.flag.join("")+".bin",document.body.appendChild(n),n.click(),document.body.removeChild(n)})},t=B({versions:[],flag:[],disMatrix:[],disName:[],showSort:[]});H(()=>[...t.flag],()=>{w()});const w=()=>{t.flag.map((e,o)=>{t.disMatrix[o].forEach((n,r)=>{t.versions.indexOf("LOSEHU"+t.flag.join("").substring(0,o)+r+t.flag.join("").substring(o+1)+".bin")==-1?t.disMatrix[o].set(r,!0):t.disMatrix[o].set(r,!1)})})},{loading:C,setLoading:b}=W(!0);return R(async()=>{b(!0);let e=await(await fetch("https://k5.vicicode.cn/diyapi/function.json?v="+new Date().getTime())).text();e=JSON.parse(e);let o=[],n=[];e.map(a=>{o[a[a.length-1]-1]=a,n.push(a[a.length-1]-1)}),e=o;let r=[],_=[];e.map(a=>{let m=new Map,d=new Map;for(let s=a[0]*2+1;s<a[0]*3+1;s++)m.set(a[s],!1),M("idea.diy")!=="LOSEHU DIY"?d.set(a[s],a[s-a[0]-a[0]]):d.set(a[s],a[s-a[0]]);r.push(m),_.push(d)}),t.flag=new Array(e.length).fill("0"),t.disName=_,t.disMatrix=r,t.showSort=n;const g=await(await fetch("https://k5.vicicode.cn/diyapi/version.json?v="+new Date().getTime())).text();t.versions=JSON.parse(g),w(),b(!1)}),(e,o)=>{const n=E,r=X,_=T,g=J,a=F,m=G,d=z,s=I,U=K,j=Y;return p(),v("div",P,[l(n,{items:[e.$t("menu.workshop"),e.$t("idea.diy")]},null,8,["items"]),l(j,{gutter:20,align:"stretch"},{default:i(()=>[l(U,{span:24},{default:i(()=>[l(s,{class:"general-card",title:e.$t("idea.diy"),loading:A(C)},{default:i(()=>[l(d,{direction:"vertical"},{default:i(()=>[y("div",null,[c(h(e.$t("oi")),1),l(r,{theme:"primary",href:"https://github.com/losehu/uv-k5-firmware-custom",target:"_blank"},{default:i(()=>[c("https://github.com/losehu/uv-k5-firmware-custom")]),_:1})]),(p(!0),v(k,null,x(t.showSort,f=>(p(),S(g,{modelValue:t.flag[f],"onUpdate:modelValue":u=>t.flag[f]=u,type:"button"},{default:i(()=>[(p(!0),v(k,null,x(t.disMatrix[f],u=>(p(),S(_,{value:u[0],disabled:u[1]},{default:i(()=>[c(h(t.disName[f].get(u[0])),1)]),_:2},1032,["value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"]))),256)),y("div",null,[l(a,{type:"primary",onClick:N},{default:i(()=>[c(h(e.$t("diy.generate")),1)]),_:1}),c("\xA0\xA0 "),l(m,{onClick:O},{default:i(()=>[c(h(e.$t("global.download")),1)]),_:1})])]),_:1})]),_:1},8,["title","loading"])]),_:1})]),_:1})])}}});const _t=V(Z,[["__scopeId","data-v-820cbf23"]]);export{_t as default};
|
||||
import{v as D,ad as E,_ as V}from"./index.cb3e7091.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as B,w as H,o as R,bW as T,bI as I,C as p,D as v,aI as l,aH as i,u as A,G as y,aM as c,aN as h,aK as k,aJ as x,aE as S,bX as J,b8 as F,bh as G,bK as K,bO as Y}from"./arco.9755215d.js";import{g as q}from"./vue.e23f7fca.js";import{u as W}from"./loading.3855ec1d.js";import{L as X}from"./index.e2eb30eb.js";import{S as z}from"./index.00973063.js";import"./chart.e5f26fc3.js";import"./slot.c4dbb40e.js";const P={class:"container"},Q={name:"DIY"},Z=$({...Q,setup(tt){const L=q(),{t:M}=D.exports.useI18n(),N=()=>{L.push({path:"/tool/flash",query:{url:"https://k5.vicicode.cn/diyapi/LOSEHU"+t.flag.join("")+".bin?v="+new Date().getTime()}})},O=()=>{fetch("https://k5.vicicode.cn/diyapi/LOSEHU"+t.flag.join("")+".bin?v="+new Date().getTime()).then(e=>e.blob()).then(e=>{const o=URL.createObjectURL(e),n=document.createElement("a");n.href=o,n.download="LOSEHU-CUSTOM-"+t.flag.join("")+".bin",document.body.appendChild(n),n.click(),document.body.removeChild(n)})},t=B({versions:[],flag:[],disMatrix:[],disName:[],showSort:[]});H(()=>[...t.flag],()=>{w()});const w=()=>{t.flag.map((e,o)=>{t.disMatrix[o].forEach((n,r)=>{t.versions.indexOf("LOSEHU"+t.flag.join("").substring(0,o)+r+t.flag.join("").substring(o+1)+".bin")==-1?t.disMatrix[o].set(r,!0):t.disMatrix[o].set(r,!1)})})},{loading:C,setLoading:b}=W(!0);return R(async()=>{b(!0);let e=await(await fetch("https://k5.vicicode.cn/diyapi/function.json?v="+new Date().getTime())).text();e=JSON.parse(e);let o=[],n=[];e.map(a=>{o[a[a.length-1]-1]=a,n.push(a[a.length-1]-1)}),e=o;let r=[],_=[];e.map(a=>{let m=new Map,d=new Map;for(let s=a[0]*2+1;s<a[0]*3+1;s++)m.set(a[s],!1),M("idea.diy")!=="LOSEHU DIY"?d.set(a[s],a[s-a[0]-a[0]]):d.set(a[s],a[s-a[0]]);r.push(m),_.push(d)}),t.flag=new Array(e.length).fill("0"),t.disName=_,t.disMatrix=r,t.showSort=n;const g=await(await fetch("https://k5.vicicode.cn/diyapi/version.json?v="+new Date().getTime())).text();t.versions=JSON.parse(g),w(),b(!1)}),(e,o)=>{const n=E,r=X,_=T,g=J,a=F,m=G,d=z,s=I,U=K,j=Y;return p(),v("div",P,[l(n,{items:[e.$t("menu.workshop"),e.$t("idea.diy")]},null,8,["items"]),l(j,{gutter:20,align:"stretch"},{default:i(()=>[l(U,{span:24},{default:i(()=>[l(s,{class:"general-card",title:e.$t("idea.diy"),loading:A(C)},{default:i(()=>[l(d,{direction:"vertical"},{default:i(()=>[y("div",null,[c(h(e.$t("oi")),1),l(r,{theme:"primary",href:"https://github.com/losehu/uv-k5-firmware-custom",target:"_blank"},{default:i(()=>[c("https://github.com/losehu/uv-k5-firmware-custom")]),_:1})]),(p(!0),v(k,null,x(t.showSort,f=>(p(),S(g,{modelValue:t.flag[f],"onUpdate:modelValue":u=>t.flag[f]=u,type:"button"},{default:i(()=>[(p(!0),v(k,null,x(t.disMatrix[f],u=>(p(),S(_,{value:u[0],disabled:u[1]},{default:i(()=>[c(h(t.disName[f].get(u[0])),1)]),_:2},1032,["value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"]))),256)),y("div",null,[l(a,{type:"primary",onClick:N},{default:i(()=>[c(h(e.$t("diy.generate")),1)]),_:1}),c("\xA0\xA0 "),l(m,{onClick:O},{default:i(()=>[c(h(e.$t("global.download")),1)]),_:1})])]),_:1})]),_:1},8,["title","loading"])]),_:1})]),_:1})])}}});const _t=V(Z,[["__scopeId","data-v-820cbf23"]]);export{_t as default};
|
BIN
assets/index.3a3f5b8e.js.gz
Normal file
BIN
assets/index.3a3f5b8e.js.gz
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
.container[data-v-94536801]{padding:0 20px 20px;padding:0 .781vw .781vw}.container[data-v-94536801] .arco-list-content{overflow-x:hidden}.container[data-v-94536801] .arco-card-meta-title{font-size:14px}[data-v-94536801] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-94536801] .arco-list-item{width:33%}[data-v-94536801] .block-title{margin:0 0 12px;font-size:14px}[data-v-94536801] .list-wrap .list-row{align-items:stretch}[data-v-94536801] .list-wrap .list-row .list-col{margin-bottom:16px;margin-bottom:.625vw}[data-v-94536801] .list-wrap :deep(.arco-space){width:100%}[data-v-94536801] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}
|
File diff suppressed because one or more lines are too long
BIN
assets/index.43e24934.js.gz
Normal file
BIN
assets/index.43e24934.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{d as R,c as t,aI as a,aU as V}from"./arco.b087a425.js";import{b as u,c as W,ac as X,i as Z,m as U,w as k}from"./index.e566a7c9.js";/**
|
||||
import{d as R,c as t,aI as a,aU as V}from"./arco.9755215d.js";import{b as u,c as W,ac as X,i as Z,m as U,w as k}from"./index.cb3e7091.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.4af6cc5d.js.gz
Normal file
BIN
assets/index.4af6cc5d.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{_ as n}from"./index.e566a7c9.js";import{d as c,bH as _,b8 as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.b087a425.js";import{g as m}from"./vue.23fb8a9a.js";import"./chart.836a9fe2.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};
|
||||
import{_ as n}from"./index.cb3e7091.js";import{d as c,bH as _,b8 as r,D as u,aI as e,G as p,aH as i,C as d,aM as l}from"./arco.9755215d.js";import{g as m}from"./vue.e23f7fca.js";import"./chart.e5f26fc3.js";const f={class:"content"},x={class:"operation-row"},b=c({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=_,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",x,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const E=n(b,[["__scopeId","data-v-8bef407f"]]);export{E as default};
|
Binary file not shown.
Binary file not shown.
1
assets/index.5dcfbb62.js
Normal file
1
assets/index.5dcfbb62.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.5dcfbb62.js.gz
Normal file
BIN
assets/index.5dcfbb62.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{t as B,ad as E,_ as S}from"./index.e566a7c9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as A,r as F,bW as R,bI as T,C as D,D as V,aI as o,aH as n,G as y,aN as p,aM as _,a$ as k,b0 as C,bX as H,b8 as I,bi as P,bG as U,bK as M,bO as N,n as z}from"./arco.b087a425.js";import{i as G,e as K,b as L,g as O}from"./serial.c6b76da8.js";import{C as W}from"./index.f33e1f10.js";import"./chart.836a9fe2.js";import"./vue.23fb8a9a.js";const X={class:"container"},j=["innerHTML"],q={name:"Chi"},J=A({...q,setup(Q){const u=B(),r=F({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0,lang:"Simplified_Chinese"}),g=async(t=0,e)=>{var m;await K(u.connectPort);for(let s=t;s<e.length+t;s+=128)await L(u.connectPort,s,e.slice(s-t,s-t+128),e.slice(s-t,s-t+128).length,(m=u.configuration)==null?void 0:m.uart),r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((s-t)/e.length*100).toFixed(1)+"%<br/>",z(()=>{const f=document==null?void 0:document.getElementById("statusArea");f&&(f.scrollTop=f==null?void 0:f.scrollHeight)});r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await O(u.connectPort)},v=async(t=1)=>{var m,s,f,b,w,h;if(u.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((m=u.configuration)==null?void 0:m.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}r.status=r.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let e;if(t==4){(s=u.configuration)!=null&&s.newpinyin?e=await fetch("/pinyin_plus.bin"):e=await fetch("/pinyin.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(131072,d);return}if(t==5){const l=await G(u.connectPort,(f=u.configuration)==null?void 0:f.uart);if(l!=262144&&l!=524288){r.status=r.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}e=await fetch("/ssb.bin");const a=e.body.getReader(),d=[];for(;;){const{done:i,value:$}=await a.read();if(i)break;d.push(...$)}const c=new Uint8Array(d);await g(246312,c);return}if(t==1){if(((b=u.configuration)==null?void 0:b.charset)=="losehu"){e=await fetch("/old_font.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(8192,d);return}if(((w=u.configuration)==null?void 0:w.charset)=="gb2312"){e=await fetch("/new_font_k.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}}if(t==6)if(((h=u.configuration)==null?void 0:h.charset)=="gb2312"){e=await fetch("/new_font_k_f.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}else alert("\u4E0D\u652F\u6301\u7684\u7248\u672C")};return(t,e)=>{const m=E,s=R,f=H,b=I,w=W,h=P,l=U,a=T,d=M,c=N;return D(),V("div",X,[o(m,{items:[t.$t("menu.list"),t.$t("menu.font")]},null,8,["items"]),o(c,{gutter:20,align:"stretch"},{default:n(()=>[o(d,{span:24},{default:n(()=>[o(a,{class:"general-card"},{title:n(()=>[y("span",{onClick:e[0]||(e[0]=()=>{r.showHide+=1})},p(t.$t("menu.font")+t.$t("global.onStart")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(w,{bordered:"",style:{width:"420px"}},{header:n(()=>[_(p(t.$t("tool.fontwrite"))+" ",1),y("div",null,[o(f,{type:"button",size:"mini",modelValue:r.lang,"onUpdate:modelValue":e[1]||(e[1]=i=>r.lang=i)},{default:n(()=>[o(s,{value:"Simplified_Chinese"},{default:n(()=>[_(p(t.$t("tool.Simplified_Chinese")),1)]),_:1}),o(s,{value:"Traditional_Chinese"},{default:n(()=>[_(p(t.$t("tool.Traditional_Chinese")),1)]),_:1})]),_:1},8,["modelValue"])])]),default:n(()=>[y("div",null,[k(o(b,{onClick:e[2]||(e[2]=i=>v(1))},{default:n(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Simplified_Chinese"]]),k(o(b,{onClick:e[3]||(e[3]=i=>v(6))},{default:n(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Traditional_Chinese"]])])]),_:1}),o(w,{bordered:""},{header:n(()=>[_(p(t.$t("tool.pinyinwrite")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[4]||(e[4]=i=>v(4))},{default:n(()=>[_(p(t.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),o(w,{bordered:""},{header:n(()=>[_(p(t.$t("tool.ssbpatch")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[5]||(e[5]=i=>v(5))},{default:n(()=>[_(p(t.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),o(l),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:r.status},null,8,j)]),_:1})]),_:1})]),_:1})])}}});const ue=S(J,[["__scopeId","data-v-14271e40"]]);export{ue as default};
|
||||
import{t as B,ad as E,_ as S}from"./index.cb3e7091.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as A,r as F,bW as R,bI as T,C as D,D as V,aI as o,aH as n,G as y,aN as p,aM as _,a$ as k,b0 as C,bX as H,b8 as I,bi as P,bG as U,bK as M,bO as N,n as z}from"./arco.9755215d.js";import{i as G,e as K,b as L,g as O}from"./serial.c6b76da8.js";import{C as W}from"./index.4af6cc5d.js";import"./chart.e5f26fc3.js";import"./vue.e23f7fca.js";const X={class:"container"},j=["innerHTML"],q={name:"Chi"},J=A({...q,setup(Q){const u=B(),r=F({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0,lang:"Simplified_Chinese"}),g=async(t=0,e)=>{var m;await K(u.connectPort);for(let s=t;s<e.length+t;s+=128)await L(u.connectPort,s,e.slice(s-t,s-t+128),e.slice(s-t,s-t+128).length,(m=u.configuration)==null?void 0:m.uart),r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((s-t)/e.length*100).toFixed(1)+"%<br/>",z(()=>{const f=document==null?void 0:document.getElementById("statusArea");f&&(f.scrollTop=f==null?void 0:f.scrollHeight)});r.status=r.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await O(u.connectPort)},v=async(t=1)=>{var m,s,f,b,w,h;if(u.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((m=u.configuration)==null?void 0:m.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}r.status=r.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let e;if(t==4){(s=u.configuration)!=null&&s.newpinyin?e=await fetch("/pinyin_plus.bin"):e=await fetch("/pinyin.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(131072,d);return}if(t==5){const l=await G(u.connectPort,(f=u.configuration)==null?void 0:f.uart);if(l!=262144&&l!=524288){r.status=r.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}e=await fetch("/ssb.bin");const a=e.body.getReader(),d=[];for(;;){const{done:i,value:$}=await a.read();if(i)break;d.push(...$)}const c=new Uint8Array(d);await g(246312,c);return}if(t==1){if(((b=u.configuration)==null?void 0:b.charset)=="losehu"){e=await fetch("/old_font.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(8192,d);return}if(((w=u.configuration)==null?void 0:w.charset)=="gb2312"){e=await fetch("/new_font_k.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}}if(t==6)if(((h=u.configuration)==null?void 0:h.charset)=="gb2312"){e=await fetch("/new_font_k_f.bin");const l=e.body.getReader(),a=[];for(;;){const{done:c,value:i}=await l.read();if(c)break;a.push(...i)}const d=new Uint8Array(a);await g(9344,d);return}else alert("\u4E0D\u652F\u6301\u7684\u7248\u672C")};return(t,e)=>{const m=E,s=R,f=H,b=I,w=W,h=P,l=U,a=T,d=M,c=N;return D(),V("div",X,[o(m,{items:[t.$t("menu.list"),t.$t("menu.font")]},null,8,["items"]),o(c,{gutter:20,align:"stretch"},{default:n(()=>[o(d,{span:24},{default:n(()=>[o(a,{class:"general-card"},{title:n(()=>[y("span",{onClick:e[0]||(e[0]=()=>{r.showHide+=1})},p(t.$t("menu.font")+t.$t("global.onStart")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(w,{bordered:"",style:{width:"420px"}},{header:n(()=>[_(p(t.$t("tool.fontwrite"))+" ",1),y("div",null,[o(f,{type:"button",size:"mini",modelValue:r.lang,"onUpdate:modelValue":e[1]||(e[1]=i=>r.lang=i)},{default:n(()=>[o(s,{value:"Simplified_Chinese"},{default:n(()=>[_(p(t.$t("tool.Simplified_Chinese")),1)]),_:1}),o(s,{value:"Traditional_Chinese"},{default:n(()=>[_(p(t.$t("tool.Traditional_Chinese")),1)]),_:1})]),_:1},8,["modelValue"])])]),default:n(()=>[y("div",null,[k(o(b,{onClick:e[2]||(e[2]=i=>v(1))},{default:n(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Simplified_Chinese"]]),k(o(b,{onClick:e[3]||(e[3]=i=>v(6))},{default:n(()=>[_(p(t.$t("tool.writefontwrite")),1)]),_:1},512),[[C,r.lang=="Traditional_Chinese"]])])]),_:1}),o(w,{bordered:""},{header:n(()=>[_(p(t.$t("tool.pinyinwrite")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[4]||(e[4]=i=>v(4))},{default:n(()=>[_(p(t.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),o(w,{bordered:""},{header:n(()=>[_(p(t.$t("tool.ssbpatch")),1)]),default:n(()=>[o(h,null,{default:n(()=>[o(b,{onClick:e[5]||(e[5]=i=>v(5))},{default:n(()=>[_(p(t.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),o(l),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:r.status},null,8,j)]),_:1})]),_:1})]),_:1})])}}});const ue=S(J,[["__scopeId","data-v-14271e40"]]);export{ue as default};
|
BIN
assets/index.5f6d8624.js.gz
Normal file
BIN
assets/index.5f6d8624.js.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.73f8af30.js.gz
Normal file
BIN
assets/index.73f8af30.js.gz
Normal file
Binary file not shown.
1
assets/index.873f7ad8.css
Normal file
1
assets/index.873f7ad8.css
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.873f7ad8.css.gz
Normal file
BIN
assets/index.873f7ad8.css.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{P as ae,Q as te,S as re,T as Be,U as K,b as F,l as Ee,V as Re,W as fe,n as Oe,X as $e,Y as Ae,e as _e,d as Le,Z as De,c as ze,f as O,i as Ie,w as Pe}from"./index.e566a7c9.js";import{d as $,c as h,j as S,g as Se,w as B,b as xe,i as je,o as Me,t as Ve,n as ne,aI as P,a$ as He,b0 as Ke,aV as ke}from"./arco.b087a425.js";/**
|
||||
import{P as ae,Q as te,S as re,T as Be,U as K,b as F,l as Ee,V as Re,W as fe,n as Oe,X as $e,Y as Ae,e as _e,d as Le,Z as De,c as ze,f as O,i as Ie,w as Pe}from"./index.cb3e7091.js";import{d as $,c as h,j as S,g as Se,w as B,b as xe,i as je,o as Me,t as Ve,n as ne,aI as P,a$ as He,b0 as Ke,aV as ke}from"./arco.9755215d.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
|
@ -62,4 +62,4 @@ import{P as ae,Q as te,S as re,T as Be,U as K,b as F,l as Ee,V as Re,W as fe,n a
|
|||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
||||
*/var Sn=Pe(gn);Pe(wn);export{en as B,tn as C,Pn as F,Sn as I,sn as V,Ue as _,vn as a,rn as b,on as c,cn as d,fn as e,Xe as i,ln as l,In as u};
|
||||
*/var Sn=Pe(gn);Pe(wn);export{en as B,tn as C,Pn as F,Sn as I,sn as V,Ue as _,vn as a,rn as b,cn as c,on as d,fn as e,Xe as i,ln as l,In as u};
|
BIN
assets/index.98ce9939.js.gz
Normal file
BIN
assets/index.98ce9939.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
import{v as B,t as x,ad as E,O as H,_ as M}from"./index.e566a7c9.js";/* empty css *//* empty css *//* empty css */import{d as N,r as b,c as O,bI as V,C as L,D as j,aI as s,aH as i,G as S,aN as u,aM as h,u as C,a6 as G,b8 as W,bi as q,bK as F,bO as J}from"./arco.b087a425.js";import{u as Q}from"./loading.9d534c38.js";import{e as v,a as X,u as Y,f as I,s as P,b as Z,g as ee}from"./serial.c6b76da8.js";import{I as z}from"./index.35293962.js";import{M as te,T as ae}from"./index.9c32b77f.js";import"./chart.836a9fe2.js";import"./vue.23fb8a9a.js";import"./dep-71c4f289.e27baa68.js";import"./form-model.7d3d4fdc.js";import"./slot.50be8187.js";const ne={class:"container"},oe={name:"dtmfContact"},re=N({...oe,setup(ie){const{t:f}=B.exports.useI18n(),r=x(),{loading:A,setLoading:_}=Q(!1),n=b({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),R=b({showHide:0}),$=e=>{n.renderData=e.newData},K=O(()=>[{colKey:"drag",title:f("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:f("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name,edit:{component:z,props:{clearable:!0},onEdited:e=>{const t=[...n.renderData];t.splice((n.nowPage-1)*n.pageSize+e.rowIndex,1,e.newRowData),n.renderData=t}}},{title:f("cps.dtmfid"),colKey:"dtmfid",align:"left",width:200,cell:(e,{row:t})=>t.dtmfid,edit:{component:z,props:{clearable:!0},onEdited:e=>{e.newRowData.dtmfid=e.newRowData.dtmfid?e.newRowData.dtmfid.toUpperCase():void 0;const t=[...n.renderData];t.splice((n.nowPage-1)*n.pageSize+e.rowIndex,1,e.newRowData),n.renderData=t}}},{title:f("cps.operate"),colKey:"operate",align:"left",width:150}]),T=async()=>{var d,c,o;if(r.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(r.connectPort),_(!0);let e=new Uint8Array(256);for(let a=7168;a<7424;a+=16){const l=await X(r.connectPort,a,16,(d=r.configuration)==null?void 0:d.uart);e.set(l,a-7168)}const t=[];for(let a=0;a<256;a+=16)Y(e.subarray(a,a+1))!="ff"?t.push({dtmfid:I(e.subarray(a+8,a+16),(c=r.configuration)==null?void 0:c.charset),name:I(e.subarray(a,a+8),(o=r.configuration)==null?void 0:o.charset)}):t.push({});n.renderData=t,_(!1)},k=async()=>{var t,d,c;if(r.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(r.connectPort),_(!0);let e=[];for(let o=0;o<16;o++){let a=n.renderData[o].dtmfid,l=n.renderData[o].name;if(a&&l){a=a.trim(),l=l.trim();let m=new Uint8Array(16),g=new Uint8Array(8),w=new Uint8Array(8),y=P(a,(t=r.configuration)==null?void 0:t.charset).slice(0,8);g.set(y);let p=P(l,(d=r.configuration)==null?void 0:d.charset).slice(0,8);w.set(p),m.set(w),m.set(g,8),e.push(m)}}if(e.length<16)for(let o=e.length;o<16;o++){let a=new Uint8Array(16);a[0]=255,a[8]=255,e[o]=a}for(let o=0;o<e.length;o++)await Z(r.connectPort,o*16+7168,e[o],16,(c=r.configuration)==null?void 0:c.uart);await ee(r.connectPort),_(!1)},U=async e=>{const t=[...n.renderData];t.splice(e,1,{scanlist:[]}),n.renderData=t};return(e,t)=>{const d=E,c=G,o=W,a=q,l=F,m=J,g=H,w=ae,y=V;return L(),j("div",ne,[s(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.dtmf")]},null,8,["items"]),s(y,{class:"general-card"},{title:i(()=>[S("span",{onClick:t[0]||(t[0]=()=>{R.showHide+=1})},u(e.$t("menu.cps.dtmf")+e.$t("global.onStart")),1)]),default:i(()=>[s(m,{style:{"margin-bottom":"16px"}},{default:i(()=>[s(l,{span:12},{default:i(()=>[s(a,null,{default:i(()=>[s(o,{type:"primary",onClick:T},{icon:i(()=>[s(c)]),default:i(()=>[h(" "+u(e.$t("cps.onDeviceRead")),1)]),_:1}),s(o,{onClick:k},{icon:i(()=>[s(c)]),default:i(()=>[h(" "+u(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(w,{class:"ttable",loading:C(A),size:"medium",columns:K.value,data:n.renderData,pagination:{defaultPageSize:n.pageSize,total:n.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:t[1]||(t[1]=p=>{n.pageSize=p.pagination.pageSize,n.nowPage=p.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:$},{drag:i(({row:p,rowIndex:D})=>[S("span",null,[s(C(te))])]),index:i(({row:p,rowIndex:D})=>[h(u((n.nowPage-1)*n.pageSize+D+1),1)]),operate:i(({row:p,rowIndex:D})=>[s(g,{theme:"default",variant:"dashed",onClick:se=>U((n.nowPage-1)*n.pageSize+D)},{default:i(()=>[h(u(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Se=M(re,[["__scopeId","data-v-72c5810e"]]);export{Se as default};
|
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{t as A,ad as N,_ as O}from"./index.e566a7c9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as V,r as C,o as I,bW as P,bI as $,C as R,D as S,aI as s,aH as l,G as p,aM as m,aN as y,n as b,b8 as T,bi as x,bX as D,bG as H,bK as M,bO as j}from"./arco.b087a425.js";import{f as q}from"./vue.23fb8a9a.js";import{d as h,c as U,r as f,j as G,k as g,l as L,m as z,n as W}from"./serial.c6b76da8.js";import"./chart.836a9fe2.js";const K={class:"container"},X={style:{display:"flex","justify-content":"space-between","align-items":"center"}},J=["innerHTML"],Q={name:"Flash"},Y=V({...Q,setup(Z){const _=A(),e=C({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:"",protocol:"Official"}),d=q();I(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:c,value:u}=await r.read();if(c)break;n.push(...u)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1).split("?")[0]+" "}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},w=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}_.connectPort&&await h(_.connectPort);let t=await U();e.protocol=="Official"&&await f(t,24,1e3);const o=G(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);e.protocol=="Official"&&(await g(t,r),await f(t,24));const n=L(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const c=n.slice(a,a+256),u=z(c,a,n.length);try{await g(t,u),e.protocol=="Official"?await f(t,26):await W(t)}catch(i){return console.log("Flash command rejected. Aborting."),Promise.reject(i)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,b(()=>{const i=document==null?void 0:document.getElementById("statusArea");i&&(i.scrollTop=i==null?void 0:i.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",b(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),h(t),_.updateSettings({connectState:!1})};return(t,o)=>{const r=N,n=T,a=x,c=P,u=D,i=H,B=$,v=M,k=j;return R(),S("div",K,[s(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),s(k,{gutter:20,align:"stretch"},{default:l(()=>[s(v,{span:24},{default:l(()=>[s(B,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:l(()=>[p("div",X,[p("div",null,[s(a,null,{default:l(()=>[s(n,{onClick:F},{default:l(()=>[m(y(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(n,{type:"primary",disabled:!e.binaryFile,onClick:w},{default:l(()=>[m(y(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1})]),p("div",null,[s(u,{type:"button",size:"mini",modelValue:e.protocol,"onUpdate:modelValue":o[0]||(o[0]=E=>e.protocol=E)},{default:l(()=>[s(c,{value:"Official"},{default:l(()=>[m("Official")]),_:1})]),_:1},8,["modelValue"])])]),s(i),p("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,J)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const ut=O(Y,[["__scopeId","data-v-165ad539"]]);export{ut as default};
|
||||
import{t as A,ad as N,_ as O}from"./index.cb3e7091.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as V,r as C,o as I,bW as P,bI as $,C as R,D as S,aI as s,aH as l,G as p,aM as m,aN as y,n as b,b8 as T,bi as x,bX as D,bG as H,bK as M,bO as j}from"./arco.9755215d.js";import{f as q}from"./vue.e23f7fca.js";import{d as h,c as U,r as f,j as G,k as g,l as L,m as z,n as W}from"./serial.c6b76da8.js";import"./chart.e5f26fc3.js";const K={class:"container"},X={style:{display:"flex","justify-content":"space-between","align-items":"center"}},J=["innerHTML"],Q={name:"Flash"},Y=V({...Q,setup(Z){const _=A(),e=C({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907<br/><br/>",binaryFile:void 0,binaryName:"",protocol:"Official"}),d=q();I(async()=>{var t;if(d.query.url){const o=await fetch(d.query.url),r=(t=o==null?void 0:o.body)==null?void 0:t.getReader();if(r){const n=[];for(;;){const{done:c,value:u}=await r.read();if(c)break;n.push(...u)}const a=new Uint8Array(n);e.binaryFile=a,e.binaryName=d.query.url.substring(d.query.url.lastIndexOf("/")+1).split("?")[0]+" "}}});const F=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const o=new Blob([t.files[0]],{type:"application/octet-stream"}),r=new Uint8Array(await o.arrayBuffer());e.binaryFile=r,e.binaryName=t.files[0].name},t.click()},w=async()=>{if(!e.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}_.connectPort&&await h(_.connectPort);let t=await U();e.protocol=="Official"&&await f(t,24,1e3);const o=G(e.binaryFile),r=new Uint8Array([48,5,o.length,0,...o]);e.protocol=="Official"&&(await g(t,r),await f(t,24));const n=L(e.binaryFile);if(n.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let a=0;a<n.length;a+=256){const c=n.slice(a,a+256),u=z(c,a,n.length);try{await g(t,u),e.protocol=="Official"?await f(t,26):await W(t)}catch(i){return console.log("Flash command rejected. Aborting."),Promise.reject(i)}e.status=e.status+`\u66F4\u65B0\u8FDB\u5EA6 ${(a/n.length*100).toFixed(1)}%<br/>`,b(()=>{const i=document==null?void 0:document.getElementById("statusArea");i&&(i.scrollTop=i==null?void 0:i.scrollHeight)})}e.status=e.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%<br/>",e.status=e.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",b(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)}),h(t),_.updateSettings({connectState:!1})};return(t,o)=>{const r=N,n=T,a=x,c=P,u=D,i=H,B=$,v=M,k=j;return R(),S("div",K,[s(r,{items:[t.$t("menu.list"),t.$t("menu.flash")]},null,8,["items"]),s(k,{gutter:20,align:"stretch"},{default:l(()=>[s(v,{span:24},{default:l(()=>[s(B,{class:"general-card",title:t.$t("menu.flash")+t.$t("global.onBoot")},{default:l(()=>[p("div",X,[p("div",null,[s(a,null,{default:l(()=>[s(n,{onClick:F},{default:l(()=>[m(y(e.binaryFile?e.binaryName:t.$t("tool.selectFirmware")),1)]),_:1}),s(n,{type:"primary",disabled:!e.binaryFile,onClick:w},{default:l(()=>[m(y(t.$t("tool.flash")),1)]),_:1},8,["disabled"])]),_:1})]),p("div",null,[s(u,{type:"button",size:"mini",modelValue:e.protocol,"onUpdate:modelValue":o[0]||(o[0]=E=>e.protocol=E)},{default:l(()=>[s(c,{value:"Official"},{default:l(()=>[m("Official")]),_:1})]),_:1},8,["modelValue"])])]),s(i),p("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:e.status},null,8,J)]),_:1},8,["title"])]),_:1})]),_:1})])}}});const ut=O(Y,[["__scopeId","data-v-165ad539"]]);export{ut as default};
|
BIN
assets/index.a6f81cd7.js.gz
Normal file
BIN
assets/index.a6f81cd7.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.a72f368d.js.gz
Normal file
BIN
assets/index.a72f368d.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
import{v as H,t as M,ad as N,O,_ as U}from"./index.e566a7c9.js";/* empty css *//* empty css *//* empty css */import{d as L,r as y,c as V,bI as j,C as G,D as W,aI as i,aH as r,G as S,aN as f,aM as g,u as h,a6 as Z,b8 as q,bi as F,bK as J,bO as Q}from"./arco.b087a425.js";import{u as X}from"./loading.9d534c38.js";import{e as v,a as C,u as w,f as Y,h as D,s as ee,b,g as te}from"./serial.c6b76da8.js";import{I as P}from"./index.35293962.js";import{M as ae,T as ne}from"./index.9c32b77f.js";import"./chart.836a9fe2.js";import"./vue.23fb8a9a.js";import"./dep-71c4f289.e27baa68.js";import"./form-model.7d3d4fdc.js";import"./slot.50be8187.js";const oe={class:"container"},re={name:"Radio"},se=L({...re,setup(ie){const{t:m}=H.exports.useI18n(),o=M(),{loading:I,setLoading:u}=X(!1),a=y({renderData:Array.from({length:16}).map(e=>({})),pageSize:16,nowPage:1}),z=y({showHide:0}),R=e=>{a.renderData=e.newData},A=V(()=>[{colKey:"drag",title:m("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:m("cps.contact"),colKey:"name",width:250,align:"left",cell:(e,{row:t})=>t.name?t.name.replace(/[^a-zA-Z0-9_]/g,""):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.mdcid"),colKey:"mdcid",align:"left",width:200,cell:(e,{row:t})=>parseInt(t.mdcid,16)<=65535?parseInt(t.mdcid,16).toString(16):void 0,edit:{component:P,props:{clearable:!0},onEdited:e=>{e.newRowData.mdcid=e.newRowData.mdcid?e.newRowData.mdcid.toLowerCase():void 0;const t=[...a.renderData];t.splice((a.nowPage-1)*a.pageSize+e.rowIndex,1,e.newRowData),a.renderData=t}}},{title:m("cps.operate"),colKey:"operate",align:"left",width:150}]),T=async()=>{var d,c;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);let e=new Uint8Array(256);for(let n=7424;n<7680;n+=16){const s=await C(o.connectPort,n,16,(d=o.configuration)==null?void 0:d.uart);e.set(s,n-7424)}const t=[];for(let n=0;n<256;n+=16)w(e.subarray(n,n+2))!="ffff"?t.push({name:Y(e.subarray(n+2,n+16),(c=o.configuration)==null?void 0:c.charset).trim(),mdcid:w(e.subarray(n,n+1))+w(e.subarray(n+1,n+2))}):t.push({});a.renderData=t,u(!1)},$=async()=>{var t,d,c,n;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await v(o.connectPort),u(!0);for(let s=0;s<256;s+=16)if(a.renderData[s/16].mdcid){const l=new Uint8Array(16).fill(32);l.set(D(a.renderData[s/16].mdcid.padStart(4,"0").substring(0,2))),l.set(D(a.renderData[s/16].mdcid.padStart(4,"0").substring(2,4)),1),l.set(ee(a.renderData[s/16].name),2),await b(o.connectPort,s+7424,l,16,(t=o.configuration)==null?void 0:t.uart)}else await b(o.connectPort,s+7424,D("ffffffffffffffffffffffffffffffff"),16,(d=o.configuration)==null?void 0:d.uart);const e=await C(o.connectPort,8176,16,(c=o.configuration)==null?void 0:c.uart);e.set([16],16-1),await b(o.connectPort,8176,e,16,(n=o.configuration)==null?void 0:n.uart),await te(o.connectPort),u(!1)},K=async e=>{const t=[...a.renderData];t.splice(e,1,{scanlist:[]}),a.renderData=t};return(e,t)=>{const d=N,c=Z,n=q,s=F,l=J,k=Q,x=O,B=ne,E=j;return G(),W("div",oe,[i(d,{items:[e.$t("menu.dashboard"),e.$t("menu.cps.mdc")]},null,8,["items"]),i(E,{class:"general-card"},{title:r(()=>[S("span",{onClick:t[0]||(t[0]=()=>{z.showHide+=1})},f(e.$t("menu.cps.mdc")+e.$t("global.onStart")),1)]),default:r(()=>[i(k,{style:{"margin-bottom":"16px"}},{default:r(()=>[i(l,{span:12},{default:r(()=>[i(s,null,{default:r(()=>[i(n,{type:"primary",onClick:T},{icon:r(()=>[i(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceRead")),1)]),_:1}),i(n,{onClick:$},{icon:r(()=>[i(c)]),default:r(()=>[g(" "+f(e.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),i(B,{class:"ttable",loading:h(I),size:"medium",columns:A.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:t[1]||(t[1]=p=>{a.pageSize=p.pagination.pageSize,a.nowPage=p.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:R},{drag:r(({row:p,rowIndex:_})=>[S("span",null,[i(h(ae))])]),index:r(({row:p,rowIndex:_})=>[g(f((a.nowPage-1)*a.pageSize+_+1),1)]),operate:r(({row:p,rowIndex:_})=>[i(x,{theme:"default",variant:"dashed",onClick:ce=>K((a.nowPage-1)*a.pageSize+_)},{default:r(()=>[g(f(e.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const ve=U(se,[["__scopeId","data-v-dfecd3b2"]]);export{ve as default};
|
Binary file not shown.
69
assets/index.bfcac842.js
Normal file
69
assets/index.bfcac842.js
Normal file
File diff suppressed because one or more lines are too long
BIN
assets/index.bfcac842.js.gz
Normal file
BIN
assets/index.bfcac842.js.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.cb3e7091.js.gz
Normal file
BIN
assets/index.cb3e7091.js.gz
Normal file
Binary file not shown.
|
@ -1 +1 @@
|
|||
import{_ as u}from"./index.e566a7c9.js";import{d as m,r as p,C as f,aE as d,aH as t,aI as e,aM as n,aN as h,a$ as c,b0 as _,bo as g}from"./arco.b087a425.js";import{L as b}from"./index.d24f0048.js";import{S as k}from"./index.351768f8.js";const v=m({__name:"index",setup(x){const s=p({isLhw711:location.hostname=="k5.lhw711.cn",isCN:location.hostname=="k5.vicicode.cn"}),i=()=>{var a;return(a=document.getElementsByTagName("meta").builtTime)==null?void 0:a.content};return(a,C)=>{const o=b,r=k,l=g;return f(),d(l,{class:"footer"},{default:t(()=>[e(r,null,{default:t(()=>[e(o,{href:"https://github.com/silenty4ng/k5web",target:"_blank"},{default:t(()=>[n("K5Web - V0.1."+h(i()),1)]),_:1}),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u8700ICP\u59072024089755\u53F7-1")]),_:1},512),[[_,s.isCN]]),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u9C81ICP\u59072024058690\u53F7-1")]),_:1},512),[[_,s.isLhw711]])]),_:1})]),_:1})}}});const L=u(v,[["__scopeId","data-v-61069ac8"]]);export{L as F};
|
||||
import{_ as u}from"./index.cb3e7091.js";import{d as m,r as p,C as f,aE as d,aH as t,aI as e,aM as n,aN as h,a$ as c,b0 as _,bo as g}from"./arco.9755215d.js";import{L as b}from"./index.e2eb30eb.js";import{S as k}from"./index.00973063.js";const v=m({__name:"index",setup(x){const s=p({isLhw711:location.hostname=="k5.lhw711.cn",isCN:location.hostname=="k5.vicicode.cn"}),i=()=>{var a;return(a=document.getElementsByTagName("meta").builtTime)==null?void 0:a.content};return(a,C)=>{const o=b,r=k,l=g;return f(),d(l,{class:"footer"},{default:t(()=>[e(r,null,{default:t(()=>[e(o,{href:"https://github.com/silenty4ng/k5web",target:"_blank"},{default:t(()=>[n("K5Web - V0.1."+h(i()),1)]),_:1}),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u8700ICP\u59072024089755\u53F7-1")]),_:1},512),[[_,s.isCN]]),c(e(o,{href:"https://beian.miit.gov.cn/",target:"_blank"},{default:t(()=>[n("\u9C81ICP\u59072024058690\u53F7-1")]),_:1},512),[[_,s.isLhw711]])]),_:1})]),_:1})}}});const L=u(v,[["__scopeId","data-v-61069ac8"]]);export{L as F};
|
BIN
assets/index.cfb057c8.js.gz
Normal file
BIN
assets/index.cfb057c8.js.gz
Normal file
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
1
assets/index.dca83d29.js
Normal file
1
assets/index.dca83d29.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{v as E,t as M,ad as O,O as H,_ as N}from"./index.cb3e7091.js";/* empty css *//* empty css *//* empty css */import{d as F,r as S,c as U,bI as V,C as L,D as j,aI as i,aH as s,G as h,aN as u,aM as _,u as b,a6 as G,b8 as W,bi as q,bK as J,bO as Q}from"./arco.9755215d.js";import{u as X}from"./loading.3855ec1d.js";import{e as x,a as y,u as v,b as g,h as w,g as Y}from"./serial.c6b76da8.js";import{I as Z}from"./index.98ce9939.js";import{M as ee,T as te}from"./index.342dcbe1.js";import"./chart.e5f26fc3.js";import"./vue.e23f7fca.js";import"./dep-71c4f289.42b742c7.js";import"./index.bfcac842.js";import"./form-model.13b193b5.js";import"./slot.c4dbb40e.js";const ae={class:"container"},oe={name:"Radio"},ne=F({...oe,setup(re){const{t:D}=E.exports.useI18n(),o=M(),{loading:P,setLoading:f}=X(!1),a=S({renderData:Array.from({length:20}).map(t=>({})),pageSize:50,nowPage:1}),I=S({showHide:0}),C=t=>{a.renderData=t.newData},R=U(()=>[{colKey:"drag",title:D("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:D("cps.rx"),colKey:"rx",align:"left",width:200,cell:(t,{row:n})=>parseFloat(n.rx)?parseFloat(n.rx).toFixed(2):void 0,edit:{component:Z,props:{clearable:!0},onEdited:t=>{t.newRowData.rx=t.newRowData.rx?t.newRowData.rx:void 0;const n=[...a.renderData];n.splice((a.nowPage-1)*a.pageSize+t.rowIndex,1,t.newRowData),a.renderData=n}}},{title:D("cps.operate"),colKey:"operate",align:"left",width:150}]),z=async()=>{var t,n,p;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await x(o.connectPort),f(!0),(t=o.configuration)!=null&&t.fm30){let c=new Uint8Array(60);for(let e=131008;e<131057;e+=8){const l=await y(o.connectPort,e,8,(n=o.configuration)==null?void 0:n.uart);c.set(l,e-131008)}const r=[];for(let e=0;e<60;e+=2){const l=v(c.subarray(e,e+2));l!="ffff"?r.push({rx:parseInt(l,16)/10}):r.push({})}a.renderData=r}else{let c=new Uint8Array(40);for(let e=3648;e<3681;e+=8){const l=await y(o.connectPort,e,8,(p=o.configuration)==null?void 0:p.uart);c.set(l,e-3648)}const r=[];for(let e=0;e<40;e+=2){const l=v(c.subarray(e,e+2));l!="ffff"?r.push({rx:parseInt(l,16)/10}):r.push({})}a.renderData=r}f(!1)},$=async()=>{var t,n,p,c,r;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await x(o.connectPort),f(!0),(t=o.configuration)!=null&&t.fm30)for(let e=0;e<60;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+131008,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(n=o.configuration)==null?void 0:n.uart):await g(o.connectPort,e+131008,w("0000"),2,(p=o.configuration)==null?void 0:p.uart);else for(let e=0;e<40;e+=2)a.renderData[e/2].rx?await g(o.connectPort,e+3648,w(parseInt(a.renderData[e/2].rx*10).toString(16).padStart(4,"0")),2,(c=o.configuration)==null?void 0:c.uart):await g(o.connectPort,e+3648,w("0000"),2,(r=o.configuration)==null?void 0:r.uart);await Y(o.connectPort),f(!1)},k=async t=>{const n=[...a.renderData];n.splice(t,1,{scanlist:[]}),a.renderData=n};return(t,n)=>{const p=O,c=G,r=W,e=q,l=J,A=Q,K=H,T=te,B=V;return L(),j("div",ae,[i(p,{items:[t.$t("menu.dashboard"),t.$t("menu.cps.radio")]},null,8,["items"]),i(B,{class:"general-card"},{title:s(()=>[h("span",{onClick:n[0]||(n[0]=()=>{I.showHide+=1})},u(t.$t("menu.cps.radio")+t.$t("global.onStart")),1)]),default:s(()=>[i(A,{style:{"margin-bottom":"16px"}},{default:s(()=>[i(l,{span:12},{default:s(()=>[i(e,null,{default:s(()=>[i(r,{type:"primary",onClick:z},{icon:s(()=>[i(c)]),default:s(()=>[_(" "+u(t.$t("cps.onDeviceRead")),1)]),_:1}),i(r,{onClick:$},{icon:s(()=>[i(c)]),default:s(()=>[_(" "+u(t.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),i(T,{class:"ttable",loading:b(P),size:"medium",columns:R.value,data:a.renderData,pagination:{defaultPageSize:a.pageSize,total:a.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:n[1]||(n[1]=d=>{a.pageSize=d.pagination.pageSize,a.nowPage=d.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:C},{drag:s(({row:d,rowIndex:m})=>[h("span",null,[i(b(ee))])]),index:s(({row:d,rowIndex:m})=>[_(u((a.nowPage-1)*a.pageSize+m+1),1)]),operate:s(({row:d,rowIndex:m})=>[i(K,{theme:"default",variant:"dashed",onClick:se=>k((a.nowPage-1)*a.pageSize+m)},{default:s(()=>[_(u(t.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const xe=N(ne,[["__scopeId","data-v-be263a43"]]);export{xe as default};
|
BIN
assets/index.dca83d29.js.gz
Normal file
BIN
assets/index.dca83d29.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.de08f6cf.js.gz
Normal file
BIN
assets/index.de08f6cf.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
assets/index.e14eb46e.js.gz
Normal file
BIN
assets/index.e14eb46e.js.gz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import{b as h,c as C,d as w,e as x,f as i,g as P,h as k,i as j,w as _}from"./index.e566a7c9.js";import{d as I,c as N,aI as c}from"./arco.b087a425.js";/**
|
||||
import{b as h,c as C,d as w,e as x,f as i,g as P,h as k,i as j,w as _}from"./index.cb3e7091.js";import{d as I,c as N,aI as c}from"./arco.9755215d.js";/**
|
||||
* tdesign v1.9.9
|
||||
* (c) 2024 tdesign
|
||||
* @license MIT
|
BIN
assets/index.e2eb30eb.js.gz
Normal file
BIN
assets/index.e2eb30eb.js.gz
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
import{t as L,ad as N,_ as F}from"./index.e566a7c9.js";/* empty css *//* empty css *//* empty css */import{d as U,r as V,o as j,bI as O,bS as A,C as h,D as b,aI as f,aH as g,G as x,aK as $,aJ as k,F as K,aM as y,aN as v,b8 as T,bi as q,bK as z,bO as H,bm as G,bn as J}from"./arco.b087a425.js";import{f as Q}from"./vue.23fb8a9a.js";import{e as W,b as X,g as Y}from"./serial.c6b76da8.js";import"./chart.836a9fe2.js";const E=w=>(G("data-v-94536801"),w=w(),J(),w),Z={class:"container"},tt=E(()=>x("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),et={style:{padding:"0",margin:"0","border-spacing":"0"}},ot=["onMousedown","onMouseover"],nt=E(()=>x("br",null,null,-1)),at={name:"Backup"},it=U({...at,setup(w){const p=L(),s=V({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=Q();j(async()=>{if(I.query.url){const e=await fetch(I.query.url,{responseType:"blob"});M(window.URL.createObjectURL(await e.blob()))}});const D=()=>{const e=s.matrix;e.map((n,t)=>{n.map((a,l)=>{e[t][l]=a=="#fff"?"#000":"#fff"})}),s.matrix=e},S=(e,n)=>{if(s.mousedown){const t=s.matrix;t[n][e]=s.matrix[n][e]=="#fff"?"#000":"#fff",s.matrix=t}},M=e=>{const n=document.createElement("canvas");n.width=128,n.height=64;const t=n.cloneNode(),a=document.getElementById("canvasDiv");a.innerHTML="",a==null||a.append(n,t);const l=new Image;l.src=e,l.onload=()=>{const i=n.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,n.width,n.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},R=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const n=new Blob([e.files[0]],{type:"application/octet-stream"}),t=URL.createObjectURL(n),a=document.createElement("canvas");a.width=128,a.height=64;const l=new Image;l.src=t,l.onload=()=>{const i=a.getContext("2d");i==null||i.drawImage(l,0,0,128,64);const m=i==null?void 0:i.getImageData(0,0,a.width,a.height).data;function _(o,r){const c=(r*128+o)*4;return m[c]+m[c+1]+m[c+2]>128*3?0:1}const d=[];for(let o=0;o<64;o++){d.push([]),d[o]=[];for(let r=0;r<128;r++){const u=!_(r,o);d[o][r]=u?"#fff":"#000"}}s.matrix=d}},e.click()},B=async()=>{const e=s.matrix,n=document.createElement("canvas");n.width=128,n.height=64;const t=n.getContext("2d");t&&(t.fillStyle="#fff",t.fillRect(0,0,n.width,n.height),t.fillStyle="#000");for(let l=0;l<64;l++)for(let i=0;i<128;i++)e[l][i]=="#000"&&(t==null||t.beginPath(),t==null||t.rect(i,l,1,1),t==null||t.fill());const a=document.createElement("a");a.href=n.toDataURL("image/jpeg",1),a.download="image.jpg",a.click()},P=async()=>{var l,i,m,_,d;const e=new Uint8Array(1024);let n=0;for(let o=0;o<64;o+=8)for(let r=0;r<128;r++){let u=0;for(let c=0;c<8;c++)u|=(s.matrix[o+c][r]=="#000"?1:0)<<c;e[n++]=u}if(s.binaryFile=e,p.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((l=p.configuration)==null?void 0:l.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((i=p.configuration)==null?void 0:i.charset)!="losehu"&&((m=p.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}s.loading=!0;let t=123728;((_=p.configuration)==null?void 0:_.charset)=="gb2312"&&(t=8320),await W(p.connectPort);const a=s.binaryFile;for(let o=t;o<a.length+t;o+=128)await X(p.connectPort,o,a.slice(o-t,o-t+128),a.slice(o-t,o-t+128).length,(d=p.configuration)==null?void 0:d.uart);await Y(p.connectPort),s.loading=!1};return(e,n)=>{const t=N,a=T,l=q,i=O,m=A,_=z,d=H;return h(),b("div",Z,[f(t,{items:[e.$t("menu.list"),e.$t("menu.image")]},null,8,["items"]),f(d,{gutter:20,align:"stretch"},{default:g(()=>[f(_,{span:24},{default:g(()=>[f(m,{loading:s.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:g(()=>[f(i,{class:"general-card",title:e.$t("menu.image")+e.$t("global.onStart")},{default:g(()=>[tt,x("div",null,[x("table",et,[(h(!0),b($,null,k(s.matrix,(o,r)=>(h(),b("tr",null,[(h(!0),b($,null,k(o,(u,c)=>(h(),b("td",{onMousedown:C=>{s.mousedown=!0,S(c,r)},onMouseup:n[0]||(n[0]=C=>{s.mousedown=!1}),onMouseover:C=>S(c,r),style:K("background-color: "+u+"; height: 5px; width: 3.5px;")},null,44,ot))),256))]))),256))])]),nt,f(l,null,{default:g(()=>[f(a,{onClick:R},{default:g(()=>[y(v(e.$t("tool.selectImage")),1)]),_:1}),f(a,{disabled:s.matrix.length<64,onClick:D},{default:g(()=>[y(v(e.$t("image.negative")),1)]),_:1},8,["disabled"]),f(a,{disabled:s.matrix.length<64,onClick:B},{default:g(()=>[y(v(e.$t("cps.save")),1)]),_:1},8,["disabled"]),f(a,{type:"primary",disabled:s.matrix.length<64,onClick:P},{default:g(()=>[y(v(e.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=F(it,[["__scopeId","data-v-94536801"]]);export{pt as default};
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue