Compare commits

...

3 commits

Author SHA1 Message Date
16993bfabd 更新依赖
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful
2024-12-30 10:25:16 +08:00
2537d41526 使用better-exceptions打印调用栈 2024-12-30 09:16:40 +08:00
89978844b9 打印异常修复 2024-12-30 09:16:24 +08:00
34 changed files with 1620 additions and 1515 deletions

View file

@ -139,6 +139,8 @@ class Arknights数据处理器:
}
干员头像路径 = f"./ArknightsGameResource/avatar/{干员代码}.png"
目标路径 = f"./ui/public/avatar/{干员数据['name']}.webp"
if os.path.exists(目标路径):
continue
print(f"{干员名}: {干员代码}")
png_image = Image.open(干员头像路径)

View file

@ -40,8 +40,8 @@ class CreditSolver(SceneGraphSolver):
}
try:
requests.post("https://mower-ng.zhaozuohong.vip/stat", json=post_data)
except Exception:
logger.exception()
except Exception as e:
logger.exception(e)
self.info_uploaded = True
def transition(self) -> bool:

BIN
mower/static/CONSUME.pkl (Stored with Git LFS)

Binary file not shown.

BIN
mower/static/MATERIAL.pkl (Stored with Git LFS)

Binary file not shown.

BIN
mower/static/NORMAL.pkl (Stored with Git LFS)

Binary file not shown.

BIN
mower/static/avatar.pkl (Stored with Git LFS)

Binary file not shown.

BIN
mower/static/operator_room.model (Stored with Git LFS)

Binary file not shown.

BIN
mower/static/portrait.pkl (Stored with Git LFS)

Binary file not shown.

BIN
mower/static/recruit.pkl (Stored with Git LFS)

Binary file not shown.

BIN
mower/static/recruit_result.pkl (Stored with Git LFS)

Binary file not shown.

View file

@ -4,13 +4,13 @@ import logging
import shutil
import sys
import time
import traceback
from datetime import datetime, timedelta
from logging.handlers import TimedRotatingFileHandler
from pathlib import Path
from queue import Queue
from threading import Thread
import better_exceptions
import colorlog
from mower.utils import config
@ -25,6 +25,13 @@ basic_formatter = logging.Formatter(BASIC_FORMAT, DATE_FORMAT)
color_formatter = colorlog.ColoredFormatter(COLOR_FORMAT, DATE_FORMAT)
def format_exception(exc_info) -> str:
return "".join(better_exceptions.format_exception(*exc_info))
basic_formatter.formatException = format_exception
color_formatter.formatException = format_exception
_logger = logging.getLogger(__name__)
_logger.setLevel(logging.DEBUG)
@ -87,7 +94,7 @@ class Handler(logging.StreamHandler):
def emit(self, record: logging.LogRecord):
msg = f"{record.asctime} {record.levelname} {record.message}"
if record.exc_info:
msg += "\n" + "".join(traceback.format_exception(*record.exc_info))
msg += "\n" + format_exception(record.exc_info)
config.ws_queue.put({"type": "log", "data": msg})

View file

@ -1,66 +1,67 @@
# 图像处理
opencv-python==4.9.0.80
numpy==1.26.4
scipy==1.13.0
scikit-image==0.23.2
scikit-learn==1.4.2
pillow==10.3.0
opencv-python==4.10.0.84
numpy==2.2.1
scipy==1.14.1
scikit-image==0.25.0
scikit-learn==1.6.0
pillow==11.0.0
# OCR
rapidocr-onnxruntime==1.3.24
rapidocr-onnxruntime==1.4.3
# 二维码
base45==0.4.4
pyzbar==0.1.9
qrcode==7.4.2
qrcode==8.0
# WebUI
Flask==3.0.3
Flask-Cors==4.0.1
Flask==3.1.0
Flask-Cors==5.0.0
flask-sock==0.7.0
pywebview==5.1
pywebview==5.3.2
pystray==0.19.5
# 配置文件
PyYAML==6.0.1
yamlcore==0.0.2
pydantic==2.8.2
PyYAML==6.0.2
yamlcore==0.0.4
pydantic==2.10.4
# CSV
pandas==2.2.2
pandas==2.2.3
# 日志
colorlog==6.8.2
colorlog==6.9.0
better-exceptions==0.3.3
# 场景图
networkx==3.3
networkx==3.4.2
# 副表条件
evalidate==2.0.2
evalidate==2.0.3
# 任务列表
jsonpickle==3.0.4
jsonpickle==4.0.1
# 时区
tzlocal==5.2
pytz==2024.1
pytz==2024.2
# 网络请求、官网公告解析、HTML转Markdown
requests==2.31.0
requests==2.32.3
# beautifulsoup4==4.12.3
# lxml==5.2.2
# 邮件模板
Jinja2==3.1.4
Jinja2==3.1.5
# 启动模拟器后按快捷键
PyAutoGUI==0.9.54
# 森空岛检测
cryptography==43.0.1
cryptography==44.0.0
# 数据库ORM
SQLAlchemy==2.0.35
SQLAlchemy==2.0.36
# ADB
adbutils==2.8.0

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{_ as K,a as U}from"./IosArrowForward.js";import{ay as z,aw as b,aJ as w,ax as m,b6 as J,b7 as Q,aA as H,D as O,az as W,aL as X,E as q,b as G,j as M,aD as Y,I as p,A as Z,c as A,bn as ee,r as C,u as oe,w as re,bR as V,bS as i,bQ as _,bT as s,bV as I,b_ as S,bM as r,F as T,bU as N,bX as L,bW as le,i as te,bm as ne,bo as se,k as ie}from"./_plugin-vue_export-helper.js";import{b3 as ae,b1 as de,S as ce,_ as ue,b4 as ve,D as be}from"./main.js";const me=z([b("list",`
import{I as K,a as U}from"./IosArrowForward.js";import{az as z,ax as b,aJ as w,ay as m,b6 as J,b7 as Q,aB as S,B as A,aA as W,aL as X,D as q,b as G,c as M,aE as Y,H as p,x as Z,d as F,bn as ee,r as C,p as oe,w as re,bR as V,bS as i,bQ as _,bT as s,bV as j,b_ as N,bN as r,F as T,bU as H,bX as L,bW as le,i as ne,bm as te,bo as se,A as ie}from"./_plugin-vue_export-helper.js";import{b3 as ae,b1 as de,z as ce,_ as ue,b4 as ve,D as be}from"./main.js";const me=z([b("list",`
--n-merged-border-color: var(--n-border-color);
--n-merged-color: var(--n-color);
--n-merged-color-hover: var(--n-color-hover);
@ -70,4 +70,4 @@ import{_ as K,a as U}from"./IosArrowForward.js";import{ay as z,aw as b,aJ as w,a
--n-merged-color-hover: var(--n-color-hover-popover);
--n-merged-color: var(--n-color-popover);
--n-merged-border-color: var(--n-border-color-popover);
`))]),pe=Object.assign(Object.assign({},H.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),F=Z("n-list"),_e=O({name:"List",props:pe,setup(e){const{mergedClsPrefixRef:o,inlineThemeDisabled:l,mergedRtlRef:v}=W(e),c=X("List",v,o),t=H("List","-list",me,ae,e,o);q(F,{showDividerRef:G(e,"showDivider"),mergedClsPrefixRef:o});const f=M(()=>{const{common:{cubicBezierEaseInOut:g},self:{fontSize:R,textColor:n,color:d,colorModal:D,colorPopover:B,borderColor:$,borderColorModal:P,borderColorPopover:j,borderRadius:k,colorHover:y,colorHoverModal:E,colorHoverPopover:h}}=t.value;return{"--n-font-size":R,"--n-bezier":g,"--n-text-color":n,"--n-color":d,"--n-border-radius":k,"--n-border-color":$,"--n-border-color-modal":P,"--n-border-color-popover":j,"--n-color-modal":D,"--n-color-popover":B,"--n-color-hover":y,"--n-color-hover-modal":E,"--n-color-hover-popover":h}}),u=l?Y("list",void 0,f,e):void 0;return{mergedClsPrefix:o,rtlEnabled:c,cssVars:l?void 0:f,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;const{$slots:o,mergedClsPrefix:l,onRender:v}=this;return v==null||v(),p("ul",{class:[`${l}-list`,this.rtlEnabled&&`${l}-list--rtl`,this.bordered&&`${l}-list--bordered`,this.showDivider&&`${l}-list--show-divider`,this.hoverable&&`${l}-list--hoverable`,this.clickable&&`${l}-list--clickable`,this.themeClass],style:this.cssVars},o.header?p("div",{class:`${l}-list__header`},o.header()):null,(e=o.default)===null||e===void 0?void 0:e.call(o),o.footer?p("div",{class:`${l}-list__footer`},o.footer()):null)}}),fe=O({name:"ListItem",setup(){const e=A(F,null);return e||ee("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:o}=this;return p("li",{class:`${o}-list-item`},e.prefix?p("div",{class:`${o}-list-item__prefix`},e.prefix()):null,e.default?p("div",{class:`${o}-list-item__main`},e):null,e.suffix?p("div",{class:`${o}-list-item__suffix`},e.suffix()):null,this.showDivider&&p("div",{class:`${o}-list-item__divider`}))}}),ge={style:{"text-align":"center",margin:"0"}},Ce={__name:"DebugConsole",setup(e){const o=A("axios"),l=C([]),v=C(""),c=C([]),t=C(0),f=C(null);oe(()=>{o.get("/debug/log").then(({data:n})=>{l.value=n}),u("runtime.log")});function u(n){v.value=n,o.get(`/debug/log/${n}`).then(({data:d})=>{t.value=0,c.value=d,t.value=c.value.length-1})}const g=M(()=>{var n;return(n=c.value[t.value])==null?void 0:n.screenshot}),R=M(()=>`/debug/screenshot/${g.value}`);return re(t,()=>{var n;(n=f.value)==null||n.scrollTo({top:0})}),(n,d)=>{const D=fe,B=_e,$=ce,P=ue,j=ve,k=ne,y=se,E=be,h=de;return _(),V(h,{style:{width:"100%",height:"100%",gap:"0","overflow-y":"hidden"}},{default:i(()=>[s($,{style:{width:"220px"}},{default:i(()=>[s(B,{hoverable:"",clickable:"",bordered:""},{default:i(()=>[(_(!0),I(T,null,S(r(l),a=>(_(),V(D,{onClick:x=>u(a)},{default:i(()=>[ie(L(a),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),_:1}),s(h,{vertical:"",style:{flex:"1",height:"100%",overflow:"hidden"}},{default:i(()=>[N("h2",ge,L(r(v)),1),r(g)?(_(),V(P,{key:0,src:r(R),alt:r(g),width:"100%",style:{"max-height":"50%"},"object-fit":"scale-down"},null,8,["src","alt"])):le("",!0),s($,{ref_key:"log_scroll",ref:f,style:{width:"100%"},"content-style":"font-size: 16px; user-select: text; padding: 0 12px"},{default:i(()=>{var a;return[(_(!0),I(T,null,S((a=r(c)[r(t)])==null?void 0:a.log,x=>(_(),I("div",null,[N("code",null,L(x),1)]))),256))]}),_:1},512),s(h,{align:"center",style:{padding:"0 12px 6px"}},{default:i(()=>[s(j,{style:{flex:"1"},"show-tooltip":"",value:r(t),"onUpdate:value":d[0]||(d[0]=a=>te(t)?t.value=a:null),min:0,max:r(c).length-1,"format-tooltip":a=>{var x;return(x=r(c)[a])==null?void 0:x.time}},null,8,["value","max","format-tooltip"]),s(E,null,{default:i(()=>[s(y,{disabled:r(t)==0,onClick:d[1]||(d[1]=a=>t.value--)},{icon:i(()=>[s(k,null,{default:i(()=>[s(r(K))]),_:1})]),_:1},8,["disabled"]),s(y,{disabled:r(t)==r(c).length-1,onClick:d[2]||(d[2]=a=>t.value++)},{icon:i(()=>[s(k,null,{default:i(()=>[s(r(U))]),_:1})]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1})]),_:1})}}};export{Ce as default};
`))]),pe=Object.assign(Object.assign({},S.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),O=Z("n-list"),_e=A({name:"List",props:pe,setup(e){const{mergedClsPrefixRef:o,inlineThemeDisabled:l,mergedRtlRef:v}=W(e),c=X("List",v,o),n=S("List","-list",me,ae,e,o);q(O,{showDividerRef:G(e,"showDivider"),mergedClsPrefixRef:o});const g=M(()=>{const{common:{cubicBezierEaseInOut:f},self:{fontSize:R,textColor:t,color:d,colorModal:B,colorPopover:D,borderColor:k,borderColorModal:P,borderColorPopover:I,borderRadius:y,colorHover:$,colorHoverModal:E,colorHoverPopover:h}}=n.value;return{"--n-font-size":R,"--n-bezier":f,"--n-text-color":t,"--n-color":d,"--n-border-radius":y,"--n-border-color":k,"--n-border-color-modal":P,"--n-border-color-popover":I,"--n-color-modal":B,"--n-color-popover":D,"--n-color-hover":$,"--n-color-hover-modal":E,"--n-color-hover-popover":h}}),u=l?Y("list",void 0,g,e):void 0;return{mergedClsPrefix:o,rtlEnabled:c,cssVars:l?void 0:g,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;const{$slots:o,mergedClsPrefix:l,onRender:v}=this;return v==null||v(),p("ul",{class:[`${l}-list`,this.rtlEnabled&&`${l}-list--rtl`,this.bordered&&`${l}-list--bordered`,this.showDivider&&`${l}-list--show-divider`,this.hoverable&&`${l}-list--hoverable`,this.clickable&&`${l}-list--clickable`,this.themeClass],style:this.cssVars},o.header?p("div",{class:`${l}-list__header`},o.header()):null,(e=o.default)===null||e===void 0?void 0:e.call(o),o.footer?p("div",{class:`${l}-list__footer`},o.footer()):null)}}),ge=A({name:"ListItem",setup(){const e=F(O,null);return e||ee("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:o}=this;return p("li",{class:`${o}-list-item`},e.prefix?p("div",{class:`${o}-list-item__prefix`},e.prefix()):null,e.default?p("div",{class:`${o}-list-item__main`},e):null,e.suffix?p("div",{class:`${o}-list-item__suffix`},e.suffix()):null,this.showDivider&&p("div",{class:`${o}-list-item__divider`}))}}),fe={style:{"text-align":"center",margin:"0"}},Ce={__name:"DebugConsole",setup(e){const o=F("axios"),l=C([]),v=C(""),c=C([]),n=C(0),g=C(null);oe(()=>{o.get("/debug/log").then(({data:t})=>{l.value=t}),u("runtime.log")});function u(t){v.value=t,o.get(`/debug/log/${t}`).then(({data:d})=>{n.value=0,c.value=d,n.value=c.value.length-1})}const f=M(()=>{var t;return(t=c.value[n.value])==null?void 0:t.screenshot}),R=M(()=>`/debug/screenshot/${f.value}`);return re(n,()=>{var t;(t=g.value)==null||t.scrollTo({top:0})}),(t,d)=>{const B=ge,D=_e,k=ce,P=ue,I=ve,y=te,$=se,E=be,h=de;return _(),V(h,{style:{width:"100%",height:"100%",gap:"0","overflow-y":"hidden"}},{default:i(()=>[s(k,{style:{width:"220px"}},{default:i(()=>[s(D,{hoverable:"",clickable:"",bordered:""},{default:i(()=>[(_(!0),j(T,null,N(r(l),a=>(_(),V(B,{onClick:x=>u(a)},{default:i(()=>[ie(L(a),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),_:1}),s(h,{vertical:"",style:{flex:"1",height:"100%",overflow:"hidden"}},{default:i(()=>[H("h2",fe,L(r(v)),1),r(f)?(_(),V(P,{key:0,src:r(R),alt:r(f),width:"100%",style:{"max-height":"50%"},"object-fit":"scale-down"},null,8,["src","alt"])):le("",!0),s(k,{ref_key:"log_scroll",ref:g,style:{width:"100%"},"content-style":"font-size: 16px; user-select: text; padding: 0 12px"},{default:i(()=>{var a;return[(_(!0),j(T,null,N((a=r(c)[r(n)])==null?void 0:a.log,x=>(_(),j("div",null,[H("code",null,L(x),1)]))),256))]}),_:1},512),s(h,{align:"center",style:{padding:"0 12px 6px"}},{default:i(()=>[s(I,{style:{flex:"1"},"show-tooltip":"",value:r(n),"onUpdate:value":d[0]||(d[0]=a=>ne(n)?n.value=a:null),min:0,max:r(c).length-1,"format-tooltip":a=>{var x;return(x=r(c)[a])==null?void 0:x.time}},null,8,["value","max","format-tooltip"]),s(E,null,{default:i(()=>[s($,{disabled:r(n)==0,onClick:d[1]||(d[1]=a=>n.value--)},{icon:i(()=>[s(y,null,{default:i(()=>[s(r(K))]),_:1})]),_:1},8,["disabled"]),s($,{disabled:r(n)==r(c).length-1,onClick:d[2]||(d[2]=a=>n.value++)},{icon:i(()=>[s(y,null,{default:i(()=>[s(r(U))]),_:1})]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1})]),_:1})}}};export{Ce as default};

View file

@ -1 +1 @@
import{bP as _,r as d,bR as i,bS as a,bQ as n,bU as s,k as r,bT as p,bX as u,bM as b,bV as f,bW as m,bo as g}from"./_plugin-vue_export-helper.js";import{b1 as h}from"./main.js";const v={key:0,class:"loading"},t="https://hedgedoc.zhaozuohong.vip/s/LfSzK2n0K",x={__name:"Doc",setup(k){const o=d(!0);return(y,e)=>{const c=g,l=h;return n(),i(l,{vertical:"",style:{width:"100%",height:"100%"},align:"center"},{default:a(()=>[s("div",null,[e[1]||(e[1]=r(" 《小刻也能学会的!Mower-NG简明教程!》 ")),p(c,{text:"",tag:"a",href:t,target:"_blank",type:"primary"},{default:a(()=>[r(u(t))]),_:1})]),s("iframe",{onLoad:e[0]||(e[0]=B=>o.value=!1),src:t,style:{width:"100%",height:"100%",border:"none"}},null,32),b(o)?(n(),f("div",v,"页面加载中……")):m("",!0)]),_:1})}}},w=_(x,[["__scopeId","data-v-f9ae5a23"]]);export{w as default};
import{bP as _,r as d,bR as i,bS as a,bQ as n,bU as s,A as r,bT as p,bX as u,bN as b,bV as f,bW as m,bo as g}from"./_plugin-vue_export-helper.js";import{b1 as h}from"./main.js";const v={key:0,class:"loading"},t="https://hedgedoc.zhaozuohong.vip/s/LfSzK2n0K",x={__name:"Doc",setup(y){const o=d(!0);return(N,e)=>{const c=g,l=h;return n(),i(l,{vertical:"",style:{width:"100%",height:"100%"},align:"center"},{default:a(()=>[s("div",null,[e[1]||(e[1]=r(" 《小刻也能学会的!Mower-NG简明教程!》 ")),p(c,{text:"",tag:"a",href:t,target:"_blank",type:"primary"},{default:a(()=>[r(u(t))]),_:1})]),s("iframe",{onLoad:e[0]||(e[0]=k=>o.value=!1),src:t,style:{width:"100%",height:"100%",border:"none"}},null,32),b(o)?(n(),f("div",v,"页面加载中……")):m("",!0)]),_:1})}}},w=_(x,[["__scopeId","data-v-f9ae5a23"]]);export{w as default};

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{D as e,I as r}from"./_plugin-vue_export-helper.js";function t(n){switch(n){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${n} has no smaller size.`)}const l=e({name:"Backward",render(){return r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),s=e({name:"FastBackward",render(){return r("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r("g",{fill:"currentColor","fill-rule":"nonzero"},r("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),a=e({name:"FastForward",render(){return r("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r("g",{fill:"currentColor","fill-rule":"nonzero"},r("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),C=e({name:"Forward",render(){return r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}});export{l as B,s as F,C as a,a as b,t as s};
import{B as e,H as r}from"./_plugin-vue_export-helper.js";function t(n){switch(n){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${n} has no smaller size.`)}const l=e({name:"Backward",render(){return r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),s=e({name:"FastBackward",render(){return r("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r("g",{fill:"currentColor","fill-rule":"nonzero"},r("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),a=e({name:"FastForward",render(){return r("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r("g",{fill:"currentColor","fill-rule":"nonzero"},r("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),C=e({name:"Forward",render(){return r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}});export{l as B,s as F,C as a,a as b,t as s};

View file

@ -1,3 +1,3 @@
import{bK as r}from"./_plugin-vue_export-helper.js";var n={};Object.defineProperty(n,"__esModule",{value:!0});const e=r,l={version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","enable-background":"new 0 0 512 512","xml:space":"preserve"},d=(0,e.createElementVNode)("path",{d:`M217.9,256L345,129c9.4-9.4,9.4-24.6,0-33.9c-9.4-9.4-24.6-9.3-34,0L167,239c-9.1,9.1-9.3,23.7-0.7,33.1L310.9,417
c4.7,4.7,10.9,7,17,7c6.1,0,12.3-2.3,17-7c9.4-9.4,9.4-24.6,0-33.9L217.9,256z`},null,-1),w=[d];var x=n.default=(0,e.defineComponent)({name:"IosArrowBack",render:function(s,a){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",l,w)}}),t={};Object.defineProperty(t,"__esModule",{value:!0});const o=r,_={version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","enable-background":"new 0 0 512 512","xml:space":"preserve"},i=(0,o.createElementVNode)("path",{d:`M294.1,256L167,129c-9.4-9.4-9.4-24.6,0-33.9s24.6-9.3,34,0L345,239c9.1,9.1,9.3,23.7,0.7,33.1L201.1,417
c-4.7,4.7-10.9,7-17,7c-6.1,0-12.3-2.3-17-7c-9.4-9.4-9.4-24.6,0-33.9L294.1,256z`},null,-1),p=[i];var v=t.default=(0,o.defineComponent)({name:"IosArrowForward",render:function(s,a){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",_,p)}});export{x as _,v as a};
import{bK as c,bL as w}from"./_plugin-vue_export-helper.js";var o={},s;function d(){if(s)return o;s=1,Object.defineProperty(o,"__esModule",{value:!0});const r=c(),t={version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","enable-background":"new 0 0 512 512","xml:space":"preserve"};return o.default=(0,r.defineComponent)({name:"IosArrowBack",render:function(u,e){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",t,e[0]||(e[0]=[(0,r.createElementVNode)("path",{d:`M217.9,256L345,129c9.4-9.4,9.4-24.6,0-33.9c-9.4-9.4-24.6-9.3-34,0L167,239c-9.1,9.1-9.3,23.7-0.7,33.1L310.9,417
c4.7,4.7,10.9,7,17,7c6.1,0,12.3-2.3,17-7c9.4-9.4,9.4-24.6,0-33.9L217.9,256z`},null,-1)]))}}),o}var i=d();const m=w(i);var n={},a;function p(){if(a)return n;a=1,Object.defineProperty(n,"__esModule",{value:!0});const r=c(),t={version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512","enable-background":"new 0 0 512 512","xml:space":"preserve"};return n.default=(0,r.defineComponent)({name:"IosArrowForward",render:function(u,e){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",t,e[0]||(e[0]=[(0,r.createElementVNode)("path",{d:`M294.1,256L167,129c-9.4-9.4-9.4-24.6,0-33.9s24.6-9.3,34,0L345,239c9.1,9.1,9.3,23.7,0.7,33.1L201.1,417
c-4.7,4.7-10.9,7-17,7c-6.1,0-12.3-2.3-17-7c-9.4-9.4-9.4-24.6,0-33.9L294.1,256z`},null,-1)]))}}),n}var x=p();const k=w(x);export{m as I,k as a};

36
ui/dist/assets/Log.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{bP as e,bR as n,bS as r,bQ as s,k as c}from"./_plugin-vue_export-helper.js";import{bc as a}from"./main.js";const _={};function f(d,o){const t=a;return s(),n(t,null,{default:r(()=>o[0]||(o[0]=[c("404 Not Found")])),_:1})}const m=e(_,[["render",f]]);export{m as default};
import{bP as e,bR as n,bS as r,bQ as s,A as c}from"./_plugin-vue_export-helper.js";import{bc as a}from"./main.js";const _={};function f(d,o){const t=a;return s(),n(t,null,{default:r(()=>o[0]||(o[0]=[c("404 Not Found")])),_:1})}const m=e(_,[["render",f]]);export{m as default};

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{bK as o}from"./_plugin-vue_export-helper.js";var n={};Object.defineProperty(n,"__esModule",{value:!0});const e=o,c={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},a=(0,e.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 112v288"},null,-1),i=(0,e.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 256H112"},null,-1),u=[a,i];var k=n.default=(0,e.defineComponent)({name:"Add",render:function(d,s){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",c,u)}}),r={};Object.defineProperty(r,"__esModule",{value:!0});const t=o,_={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},w=(0,t.createElementVNode)("path",{d:"M133 440a35.37 35.37 0 0 1-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0 1 35.77.45l247.85 148.36a36 36 0 0 1 0 61l-247.89 148.4A35.5 35.5 0 0 1 133 440z",fill:"currentColor"},null,-1),h=[w];var m=r.default=(0,t.defineComponent)({name:"Play",render:function(d,s){return(0,t.openBlock)(),(0,t.createElementBlock)("svg",_,h)}});export{k as _,m as a};
import{bK as u,bL as a}from"./_plugin-vue_export-helper.js";var n={},l;function c(){if(l)return n;l=1,Object.defineProperty(n,"__esModule",{value:!0});const e=u(),o={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"};return n.default=(0,e.defineComponent)({name:"Add",render:function(s,r){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",o,r[0]||(r[0]=[(0,e.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 112v288"},null,-1),(0,e.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 256H112"},null,-1)]))}}),n}var p=c();const k=a(p);var t={},d;function w(){if(d)return t;d=1,Object.defineProperty(t,"__esModule",{value:!0});const e=u(),o={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"};return t.default=(0,e.defineComponent)({name:"Play",render:function(s,r){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",o,r[0]||(r[0]=[(0,e.createElementVNode)("path",{d:"M133 440a35.37 35.37 0 0 1-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0 1 35.77.45l247.85 148.36a36 36 0 0 1 0 61l-247.89 148.4A35.5 35.5 0 0 1 133 440z",fill:"currentColor"},null,-1)]))}}),t}var f=w();const m=a(f);export{k as A,m as P};

View file

@ -1 +1 @@
import{u as N,C as V,a as j,L,T as D,b as P,P as R,c as O,p as T,d as H,e as F,f as I,A as q,g as K,h as Q}from"./record.js";import{bK as w,bP as U,r as u,u as X,bV as M,bU as p,bT as o,bS as l,bQ as r,F as Z,b_ as G,bM as e,bR as f,c0 as J,bX as W,bC as Y,bm as ee,bo as te}from"./_plugin-vue_export-helper.js";import{b5 as oe,b6 as ne}from"./main.js";var y={};Object.defineProperty(y,"__esModule",{value:!0});const _=w,ae={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},se=(0,_.createStaticVNode)('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 4h4v4"></path><path d="M14 10l6-6"></path><path d="M8 20H4v-4"></path><path d="M4 20l6-6"></path></g>',1),le=[se];var re=y.default=(0,_.defineComponent)({name:"ArrowsDiagonal",render:function(i,c){return(0,_.openBlock)(),(0,_.createElementBlock)("svg",ae,le)}}),C={};Object.defineProperty(C,"__esModule",{value:!0});const h=w,ie={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ce=(0,h.createStaticVNode)('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 10h-4V6"></path><path d="M20 4l-6 6"></path><path d="M6 14h4v4"></path><path d="M10 14l-6 6"></path></g>',1),de=[ce];var ue=C.default=(0,h.defineComponent)({name:"ArrowsDiagonalMinimize2",render:function(i,c){return(0,h.openBlock)(),(0,h.createElementBlock)("svg",ie,de)}}),$={};Object.defineProperty($,"__esModule",{value:!0});const n=w,pe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},_e=(0,n.createElementVNode)("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[(0,n.createElementVNode)("path",{d:"M7 8l-4 4l4 4"}),(0,n.createElementVNode)("path",{d:"M17 8l4 4l-4 4"}),(0,n.createElementVNode)("path",{d:"M3 12h18"})],-1),he=[_e];var me=$.default=(0,n.defineComponent)({name:"ArrowsHorizontal",render:function(i,c){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",pe,he)}});const ge={class:"line-outer-container"},fe={__name:"RecordLine",setup(m){const i=N(),{getMoodRatios:c}=i;V.register(j,L,D,P,R,O,T,H,F,I,q,K);const d=u(-1),t=u([]),g=u([]);X(async()=>{g.value=await c(),t.value=new Array(g.value.length).fill(100)});const B=u({responsive:!0,maintainAspectRatio:!1,scales:{x:{autoSkip:!0,type:"time",time:{unit:"day"}},y:{beginAtZero:!0,ticks:{min:0,max:24,stepSize:4}}},plugins:{datalabels:{display:!1}}});function S(a){t.value[a]==100?t.value[a]=300:t.value[a]==300?t.value[a]=700:t.value[a]=100}return(a,v)=>{const k=ee,b=te,A=ne,E=oe;return r(),M("div",null,[v[0]||(v[0]=p("h1",{class:"page-title"},"干员心情折线表",-1)),o(E,{"x-gap":12,"y-gap":8,collapsed:!1,cols:"1 s:1 m:2 l:3 xl:4 2xl:5",responsive:"screen"},{default:l(()=>[(r(!0),M(Z,null,G(e(g),(x,s)=>(r(),f(A,{key:s,class:J(["report-card",{"report-card-expand":e(d)==s}])},{default:l(()=>[p("h2",null,W(x.groupName),1),p("div",ge,[p("div",{class:"line-inner-container",style:Y({width:e(t)[s]+"%"})},[o(e(Q),{data:x.moodData,options:e(B)},null,8,["data","options"])],4)]),o(b,{class:"toggle toggle-size",size:"small",onClick:z=>d.value=e(d)==-1?s:-1,focusable:!1},{icon:l(()=>[o(k,null,{default:l(()=>[e(d)==s?(r(),f(e(ue),{key:0})):(r(),f(e(re),{key:1}))]),_:2},1024)]),_:2},1032,["onClick"]),o(b,{class:"toggle toggle-width",size:"small",onClick:z=>S(s),focusable:!1},{icon:l(()=>[o(k,null,{default:l(()=>[o(e(me))]),_:1})]),_:2},1032,["onClick"])]),_:2},1032,["class"]))),128))]),_:1})])}}},be=U(fe,[["__scopeId","data-v-1d70fb0d"]]);export{be as default};
import{u as V,C as R,a as j,L,T as q,b as H,P,c as I,p as O,d as T,e as F,f as $,A as K,g as Q,h as U}from"./record.js";import{bK as h,bL as v,bP as W,r as p,p as X,bV as A,bU as d,bT as a,bS as i,bQ as c,F as Z,b_ as G,bN as o,bR as f,c0 as J,bX as Y,bC as ee,bm as te,bo as oe}from"./_plugin-vue_export-helper.js";import{b5 as ne,b6 as re}from"./main.js";var _={},C;function ae(){if(C)return _;C=1,Object.defineProperty(_,"__esModule",{value:!0});const e=h(),n={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"};return _.default=(0,e.defineComponent)({name:"ArrowsDiagonal",render:function(r,t){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",n,t[0]||(t[0]=[(0,e.createStaticVNode)('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 4h4v4"></path><path d="M14 10l6-6"></path><path d="M8 20H4v-4"></path><path d="M4 20l6-6"></path></g>',1)]))}}),_}var se=ae();const le=v(se);var m={},y;function ie(){if(y)return m;y=1,Object.defineProperty(m,"__esModule",{value:!0});const e=h(),n={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"};return m.default=(0,e.defineComponent)({name:"ArrowsDiagonalMinimize2",render:function(r,t){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",n,t[0]||(t[0]=[(0,e.createStaticVNode)('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 10h-4V6"></path><path d="M20 4l-6 6"></path><path d="M6 14h4v4"></path><path d="M10 14l-6 6"></path></g>',1)]))}}),m}var ce=ie();const ue=v(ce);var g={},z;function pe(){if(z)return g;z=1,Object.defineProperty(g,"__esModule",{value:!0});const e=h(),n={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"};return g.default=(0,e.defineComponent)({name:"ArrowsHorizontal",render:function(r,t){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",n,t[0]||(t[0]=[(0,e.createElementVNode)("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[(0,e.createElementVNode)("path",{d:"M7 8l-4 4l4 4"}),(0,e.createElementVNode)("path",{d:"M17 8l4 4l-4 4"}),(0,e.createElementVNode)("path",{d:"M3 12h18"})],-1)]))}}),g}var de=pe();const _e=v(de),me={class:"line-outer-container"},ge={__name:"RecordLine",setup(e){const n=V(),{getMoodRatios:u}=n;R.register(j,L,q,H,P,I,O,T,F,$,K,Q);const r=p(-1),t=p([]),w=p([]);X(async()=>{w.value=await u(),t.value=new Array(w.value.length).fill(100)});const E=p({responsive:!0,maintainAspectRatio:!1,scales:{x:{autoSkip:!0,type:"time",time:{unit:"day"}},y:{beginAtZero:!0,ticks:{min:0,max:24,stepSize:4}}},plugins:{datalabels:{display:!1}}});function B(s){t.value[s]==100?t.value[s]=300:t.value[s]==300?t.value[s]=700:t.value[s]=100}return(s,k)=>{const b=te,x=oe,S=re,D=ne;return c(),A("div",null,[k[0]||(k[0]=d("h1",{class:"page-title"},"干员心情折线表",-1)),a(D,{"x-gap":12,"y-gap":8,collapsed:!1,cols:"1 s:1 m:2 l:3 xl:4 2xl:5",responsive:"screen"},{default:i(()=>[(c(!0),A(Z,null,G(o(w),(M,l)=>(c(),f(S,{key:l,class:J(["report-card",{"report-card-expand":o(r)==l}])},{default:i(()=>[d("h2",null,Y(M.groupName),1),d("div",me,[d("div",{class:"line-inner-container",style:ee({width:o(t)[l]+"%"})},[a(o(U),{data:M.moodData,options:o(E)},null,8,["data","options"])],4)]),a(x,{class:"toggle toggle-size",size:"small",onClick:N=>r.value=o(r)==-1?l:-1,focusable:!1},{icon:i(()=>[a(b,null,{default:i(()=>[o(r)==l?(c(),f(o(ue),{key:0})):(c(),f(o(le),{key:1}))]),_:2},1024)]),_:2},1032,["onClick"]),a(x,{class:"toggle toggle-width",size:"small",onClick:N=>B(l),focusable:!1},{icon:i(()=>[a(b,null,{default:i(()=>[a(o(_e))]),_:1})]),_:2},1032,["onClick"])]),_:2},1032,["class"]))),128))]),_:1})])}}},ve=W(ge,[["__scopeId","data-v-1d70fb0d"]]);export{ve as default};

View file

@ -1 +1 @@
import{u as b,C as S,a as x,L as k,T as y,b as P,P as R,c as h,p as v,d as B,e as C,f as E,A as L,g as M,i as T}from"./record.js";import{bP as w,r as c,u as N,bV as i,bU as p,bT as u,bS as _,bQ as o,F as V,b_ as A,bM as n,bR as D,bX as F}from"./_plugin-vue_export-helper.js";import{b5 as I,b6 as O}from"./main.js";const Q={__name:"RecordPie",setup(U){const d=b(),{getMoodRatios:m}=d;S.register(x,k,y,P,R,h,v,B,C,E,L,M);const r=c([]);N(async()=>{r.value=await m()});const g=c({plugins:{datalabels:{color:"black",formatter:function(l,e){let t=e.dataset.data.reduce((s,a)=>s+a,0);return Math.round(l/t*100)+"%"}},legend:{display:!1}}});return(l,e)=>{const t=O,s=I;return o(),i("div",null,[e[0]||(e[0]=p("h1",{class:"page-title"},"工作休息比例报表",-1)),u(s,{"x-gap":12,"y-gap":8,collapsed:!1,cols:"1 s:1 m:2 l:3 xl:4 2xl:5",responsive:"screen"},{default:_(()=>[(o(!0),i(V,null,A(n(r),(a,f)=>(o(),D(t,{key:f,class:"report-card"},{default:_(()=>[p("h2",null,F(a.groupName),1),u(n(T),{data:a.workRestData,options:n(g)},null,8,["data","options"])]),_:2},1024))),128))]),_:1})])}}},z=w(Q,[["__scopeId","data-v-80502f5e"]]);export{z as default};
import{u as b,C as S,a as x,L as k,T as y,b as P,P as R,c as h,p as v,d as B,e as C,f as E,A as L,g as N,i as T}from"./record.js";import{bP as w,r as c,p as M,bV as i,bU as p,bT as u,bS as _,bQ as o,F as V,b_ as A,bN as n,bR as D,bX as F}from"./_plugin-vue_export-helper.js";import{b5 as I,b6 as O}from"./main.js";const Q={__name:"RecordPie",setup(U){const d=b(),{getMoodRatios:m}=d;S.register(x,k,y,P,R,h,v,B,C,E,L,N);const r=c([]);M(async()=>{r.value=await m()});const g=c({plugins:{datalabels:{color:"black",formatter:function(l,e){let t=e.dataset.data.reduce((s,a)=>s+a,0);return Math.round(l/t*100)+"%"}},legend:{display:!1}}});return(l,e)=>{const t=O,s=I;return o(),i("div",null,[e[0]||(e[0]=p("h1",{class:"page-title"},"工作休息比例报表",-1)),u(s,{"x-gap":12,"y-gap":8,collapsed:!1,cols:"1 s:1 m:2 l:3 xl:4 2xl:5",responsive:"screen"},{default:_(()=>[(o(!0),i(V,null,A(n(r),(a,f)=>(o(),D(t,{key:f,class:"report-card"},{default:_(()=>[p("h2",null,F(a.groupName),1),u(n(T),{data:a.workRestData,options:n(g)},null,8,["data","options"])]),_:2},1024))),128))]),_:1})])}}},z=w(Q,[["__scopeId","data-v-80502f5e"]]);export{z as default};

View file

@ -1 +1 @@
import{bK as t}from"./_plugin-vue_export-helper.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});const e=t,r={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},n=(0,e.createStaticVNode)('<path d="M112 112l20 320c.95 18.49 14.4 32 32 32h184c17.67 0 30.87-13.51 32-32l20-320" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M80 112h352" fill="currentColor"></path><path d="M192 112V72h0a23.93 23.93 0 0 1 24-24h80a23.93 23.93 0 0 1 24 24h0v40" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M256 176v224"></path><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M184 176l8 224"></path><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M328 176l-8 224"></path>',6),l=[n];var h=o.default=(0,e.defineComponent)({name:"TrashOutline",render:function(s,a){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",r,l)}});export{h as _};
import{bK as l,bL as i}from"./_plugin-vue_export-helper.js";var r={},o;function s(){if(o)return r;o=1,Object.defineProperty(r,"__esModule",{value:!0});const e=l(),n={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"};return r.default=(0,e.defineComponent)({name:"TrashOutline",render:function(d,t){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",n,t[0]||(t[0]=[(0,e.createStaticVNode)('<path d="M112 112l20 320c.95 18.49 14.4 32 32 32h184c17.67 0 30.87-13.51 32-32l20-320" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M80 112h352" fill="currentColor"></path><path d="M192 112V72h0a23.93 23.93 0 0 1 24-24h80a23.93 23.93 0 0 1 24 24h0v40" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M256 176v224"></path><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M184 176l8 224"></path><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M328 176l-8 224"></path>',6)]))}}),r}var a=s();const k=i(a);export{k as T};

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{b7 as V,b8 as F,au as P,b5 as L,b9 as N,b6 as H,ba as M,v as A}from"./main.js";import{aw as h,ax as f,ay as b,aA as B,D as Q,az as U,aL as W,j as X,aD as q,I as a,F as E,r as $,u as G,bV as C,bT as o,bS as c,bQ as v,k as g,bX as y,bM as R,bU as J,b_ as T,bo as K,bR as D}from"./_plugin-vue_export-helper.js";const Y=h("thing",`
import{b7 as V,b8 as F,au as N,b5 as P,b9 as H,b6 as L,ba as A,q}from"./main.js";import{ax as h,ay as f,az as b,aB as D,B as M,aA as Q,aL as U,c as W,aE as X,H as a,F as E,r as w,p as G,bV as C,bT as o,bS as c,bQ as v,A as g,bX as y,bN as R,bU as J,b_ as T,bo as K,bR as B}from"./_plugin-vue_export-helper.js";const Y=h("thing",`
display: flex;
transition: color .3s var(--n-bezier);
font-size: var(--n-font-size);
@ -31,4 +31,4 @@ import{b7 as V,b8 as F,au as P,b5 as L,b9 as N,b6 as H,ba as M,v as A}from"./mai
margin-top: 12px;
`)]),f("action",[b("&:not(:first-child)",`
margin-top: 12px;
`)])])]),Z=Object.assign(Object.assign({},B.props),{title:String,titleExtra:String,description:String,descriptionClass:String,descriptionStyle:[String,Object],content:String,contentClass:String,contentStyle:[String,Object],contentIndented:Boolean}),ee=Q({name:"Thing",props:Z,setup(t,{slots:e}){const{mergedClsPrefixRef:_,inlineThemeDisabled:u,mergedRtlRef:s}=U(t),w=B("Thing","-thing",Y,V,t,_),x=W("Thing",s,_),m=X(()=>{const{self:{titleTextColor:r,textColor:n,titleFontWeight:l,fontSize:d},common:{cubicBezierEaseInOut:S}}=w.value;return{"--n-bezier":S,"--n-font-size":d,"--n-text-color":n,"--n-title-font-weight":l,"--n-title-text-color":r}}),i=u?q("thing",void 0,m,t):void 0;return()=>{var r;const{value:n}=_,l=x?x.value:!1;return(r=i==null?void 0:i.onRender)===null||r===void 0||r.call(i),a("div",{class:[`${n}-thing`,i==null?void 0:i.themeClass,l&&`${n}-thing--rtl`],style:u?void 0:m.value},e.avatar&&t.contentIndented?a("div",{class:`${n}-thing-avatar`},e.avatar()):null,a("div",{class:`${n}-thing-main`},!t.contentIndented&&(e.header||t.title||e["header-extra"]||t.titleExtra||e.avatar)?a("div",{class:`${n}-thing-avatar-header-wrapper`},e.avatar?a("div",{class:`${n}-thing-avatar`},e.avatar()):null,e.header||t.title||e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header-wrapper`},a("div",{class:`${n}-thing-header`},e.header||t.title?a("div",{class:`${n}-thing-header__title`},e.header?e.header():t.title):null,e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header__extra`},e["header-extra"]?e["header-extra"]():t.titleExtra):null),e.description||t.description?a("div",{class:[`${n}-thing-main__description`,t.descriptionClass],style:t.descriptionStyle},e.description?e.description():t.description):null):null):a(E,null,e.header||t.title||e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header`},e.header||t.title?a("div",{class:`${n}-thing-header__title`},e.header?e.header():t.title):null,e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header__extra`},e["header-extra"]?e["header-extra"]():t.titleExtra):null):null,e.description||t.description?a("div",{class:[`${n}-thing-main__description`,t.descriptionClass],style:t.descriptionStyle},e.description?e.description():t.description):null),e.default||t.content?a("div",{class:[`${n}-thing-main__content`,t.contentClass],style:t.contentStyle},e.default?e.default():t.content):null,e.footer?a("div",{class:`${n}-thing-main__footer`},e.footer()):null,e.action?a("div",{class:`${n}-thing-main__action`},e.action()):null))}}}),te=F("depot",()=>{async function t(){return(await P.get("/depot/readdepot")).data}return{getDepotinfo:t}}),ie={__name:"depot",setup(t){const e=te(),{getDepotinfo:_}=e,u=$([]);let s=$([]);async function w(){u.value=await _(),x()}function x(){s.value={...u.value[0]};for(const i in s.value)if(s.value.hasOwnProperty(i)){const r=s.value[i],n=Object.entries(r).map(([l,d])=>({key:l,...d})).sort((l,d)=>l.sort-d.sort);s.value[i]=n}}G(w);const m=async()=>{try{await navigator.clipboard.writeText(u.value[1])}catch(i){console.error("Failed to copy text:",i)}};return $(!1),(i,r)=>{const n=K,l=N,d=H,S=M,j=A,O=ee,k=L;return v(),C("div",null,[o(k,{cols:"1",responsive:"screen"},{default:c(()=>[o(d,null,{default:c(()=>[o(n,{onClick:m,tag:"a",href:"https://arkntools.app/#/material",target:"_blank"},{default:c(()=>r[0]||(r[0]=[g(" 明日方舟工具箱代码 点击复制 ")])),_:1}),o(l)]),_:1}),o(d,null,{default:c(()=>[g(" 扫描时间:"+y(R(u)[2])+" ",1),r[1]||(r[1]=J("br",null,null,-1)),r[2]||(r[2]=g(" 注:万以下的数字并不会计入,如“龙门币 245万” “资质凭证 2万” ")),o(l)]),_:1}),(v(!0),C(E,null,T(R(s),(I,z)=>(v(),D(d,{key:z},{default:c(()=>[o(S,null,{default:c(()=>[g(y(z.slice(1)),1)]),_:2},1024),o(k,{"x-gap":"10px","y-gap":"10px",cols:"2 m:6 l:6 ",responsive:"screen"},{default:c(()=>[(v(!0),C(E,null,T(I,p=>(v(),D(d,{key:p},{default:c(()=>[o(O,null,{avatar:c(()=>[o(j,{color:"000",size:"large",src:"/depot/"+p.icon+".webp"},null,8,["src"])]),header:c(()=>[g(y(p.key),1)]),description:c(()=>[g("拥有:"+y(p.number),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),o(l)]),_:2},1024))),128))]),_:1})])}}};export{ie as default};
`)])])]),Z=Object.assign(Object.assign({},D.props),{title:String,titleExtra:String,description:String,descriptionClass:String,descriptionStyle:[String,Object],content:String,contentClass:String,contentStyle:[String,Object],contentIndented:Boolean}),ee=M({name:"Thing",props:Z,setup(t,{slots:e}){const{mergedClsPrefixRef:_,inlineThemeDisabled:u,mergedRtlRef:s}=Q(t),S=D("Thing","-thing",Y,V,t,_),x=U("Thing",s,_),m=W(()=>{const{self:{titleTextColor:r,textColor:n,titleFontWeight:l,fontSize:d},common:{cubicBezierEaseInOut:$}}=S.value;return{"--n-bezier":$,"--n-font-size":d,"--n-text-color":n,"--n-title-font-weight":l,"--n-title-text-color":r}}),i=u?X("thing",void 0,m,t):void 0;return()=>{var r;const{value:n}=_,l=x?x.value:!1;return(r=i==null?void 0:i.onRender)===null||r===void 0||r.call(i),a("div",{class:[`${n}-thing`,i==null?void 0:i.themeClass,l&&`${n}-thing--rtl`],style:u?void 0:m.value},e.avatar&&t.contentIndented?a("div",{class:`${n}-thing-avatar`},e.avatar()):null,a("div",{class:`${n}-thing-main`},!t.contentIndented&&(e.header||t.title||e["header-extra"]||t.titleExtra||e.avatar)?a("div",{class:`${n}-thing-avatar-header-wrapper`},e.avatar?a("div",{class:`${n}-thing-avatar`},e.avatar()):null,e.header||t.title||e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header-wrapper`},a("div",{class:`${n}-thing-header`},e.header||t.title?a("div",{class:`${n}-thing-header__title`},e.header?e.header():t.title):null,e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header__extra`},e["header-extra"]?e["header-extra"]():t.titleExtra):null),e.description||t.description?a("div",{class:[`${n}-thing-main__description`,t.descriptionClass],style:t.descriptionStyle},e.description?e.description():t.description):null):null):a(E,null,e.header||t.title||e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header`},e.header||t.title?a("div",{class:`${n}-thing-header__title`},e.header?e.header():t.title):null,e["header-extra"]||t.titleExtra?a("div",{class:`${n}-thing-header__extra`},e["header-extra"]?e["header-extra"]():t.titleExtra):null):null,e.description||t.description?a("div",{class:[`${n}-thing-main__description`,t.descriptionClass],style:t.descriptionStyle},e.description?e.description():t.description):null),e.default||t.content?a("div",{class:[`${n}-thing-main__content`,t.contentClass],style:t.contentStyle},e.default?e.default():t.content):null,e.footer?a("div",{class:`${n}-thing-main__footer`},e.footer()):null,e.action?a("div",{class:`${n}-thing-main__action`},e.action()):null))}}}),te=F("depot",()=>{async function t(){return(await N.get("/depot/readdepot")).data}return{getDepotinfo:t}}),ie={__name:"depot",setup(t){const e=te(),{getDepotinfo:_}=e,u=w([]);let s=w([]);async function S(){u.value=await _(),x()}function x(){s.value={...u.value[0]};for(const i in s.value)if(s.value.hasOwnProperty(i)){const r=s.value[i],n=Object.entries(r).map(([l,d])=>({key:l,...d})).sort((l,d)=>l.sort-d.sort);s.value[i]=n}}G(S);const m=async()=>{try{await navigator.clipboard.writeText(u.value[1])}catch(i){console.error("Failed to copy text:",i)}};return w(!1),(i,r)=>{const n=K,l=H,d=L,$=A,O=q,j=ee,k=P;return v(),C("div",null,[o(k,{cols:"1",responsive:"screen"},{default:c(()=>[o(d,null,{default:c(()=>[o(n,{onClick:m,tag:"a",href:"https://arkntools.app/#/material",target:"_blank"},{default:c(()=>r[0]||(r[0]=[g(" 明日方舟工具箱代码 点击复制 ")])),_:1}),o(l)]),_:1}),o(d,null,{default:c(()=>[g(" 扫描时间:"+y(R(u)[2])+" ",1),r[1]||(r[1]=J("br",null,null,-1)),r[2]||(r[2]=g(" 注:万以下的数字并不会计入,如“龙门币 245万” “资质凭证 2万” ")),o(l)]),_:1}),(v(!0),C(E,null,T(R(s),(I,z)=>(v(),B(d,{key:z},{default:c(()=>[o($,null,{default:c(()=>[g(y(z.slice(1)),1)]),_:2},1024),o(k,{"x-gap":"10px","y-gap":"10px",cols:"2 m:6 l:6 ",responsive:"screen"},{default:c(()=>[(v(!0),C(E,null,T(I,p=>(v(),B(d,{key:p},{default:c(()=>[o(j,null,{avatar:c(()=>[o(O,{color:"000",size:"large",src:"/depot/"+p.icon+".webp"},null,8,["src"])]),header:c(()=>[g(y(p.key),1)]),description:c(()=>[g("拥有:"+y(p.number),1)]),_:2},1024)]),_:2},1024))),128))]),_:2},1024),o(l)]),_:2},1024))),128))]),_:1})])}}};export{ie as default};

929
ui/dist/assets/main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1251
ui/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -5,51 +5,51 @@
"type": "module",
"scripts": {
"build": "vite build",
"dev": "vite --profile --open",
"check": "prettier --check './**/*.js' './**/*.vue' './**/*.html' './**/*.json'",
"dev": "vite --profile --open",
"format": "npm run check -- --write",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
"preview": "vite preview"
},
"dependencies": {
"@rushstack/eslint-patch": "^1.10.4",
"@vicons/carbon": "^0.12.0",
"@vicons/fa": "^0.12.0",
"@vicons/fluent": "^0.12.0",
"@vicons/ionicons4": "^0.12.0",
"@vicons/ionicons5": "^0.12.0",
"@vicons/material": "^0.12.0",
"@vicons/tabler": "^0.12.0",
"@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue-jsx": "^4.0.1",
"@vicons/carbon": "^0.13.0",
"@vicons/fa": "^0.13.0",
"@vicons/fluent": "^0.13.0",
"@vicons/ionicons4": "^0.13.0",
"@vicons/ionicons5": "^0.13.0",
"@vicons/material": "^0.13.0",
"@vicons/tabler": "^0.13.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue-jsx": "^4.1.1",
"@vue/eslint-config-prettier": "^10.1.0",
"axios": "^1.7.7",
"axios": "^1.7.9",
"bowser": "^2.11.0",
"chart.js": "^4.4.6",
"chart.js": "^4.4.7",
"chartjs-adapter-luxon": "^1.3.1",
"chartjs-plugin-datalabels": "^2.2.0",
"echarts": "^5.5.1",
"eslint": "^9.14.0",
"eslint-plugin-vue": "^9.30.0",
"highlight.js": "^11.10.0",
"echarts": "^5.6.0",
"eslint": "^9.17.0",
"eslint-plugin-vue": "^9.32.0",
"highlight.js": "^11.11.1",
"html-to-image": "^1.11.11",
"luxon": "^3.5.0",
"naive-ui": "^2.40.1",
"pinia": "^2.2.6",
"naive-ui": "^2.40.4",
"pinia": "^2.3.0",
"pinyin-pro": "^3.26.0",
"prettier": "^3.3.3",
"prettier": "^3.4.2",
"reconnecting-websocket": "^4.4.0",
"sass": "^1.80.6",
"typescript": "^5.6.3",
"unplugin-auto-import": "^0.18.3",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.10",
"vite-plugin-inspect": "^0.8.7",
"vue": "^3.5.12",
"sass": "^1.83.0",
"typescript": "^5.7.2",
"unplugin-auto-import": "^0.19.0",
"unplugin-vue-components": "^0.28.0",
"vite": "^6.0.6",
"vite-plugin-inspect": "^0.10.6",
"vue": "^3.5.13",
"vue-axios": "^3.5.2",
"vue-chartjs": "^5.3.2",
"vue-echarts": "^7.0.3",
"vue-router": "^4.4.5",
"vue-router": "^4.5.0",
"vue-slicksort": "^2.0.5"
}
}