测试截图设置

This commit is contained in:
zhbaor 2024-11-27 14:08:34 +08:00
parent 41b552eca1
commit 517b18efbc
19 changed files with 171 additions and 120 deletions

View file

@ -37,7 +37,6 @@ class Recognizer:
self._gray = None self._gray = None
self._hsv = None self._hsv = None
self._matcher = None self._matcher = None
self._num = None
self.scene = Scene.UNDEFINED self.scene = Scene.UNDEFINED
@property @property

View file

@ -432,31 +432,36 @@ def test_email():
return "邮件发送成功!" return "邮件发送成功!"
@app.route("/test-custom-screenshot") @app.route("/test-screenshot")
@get_require_token @get_require_token
def test_custom_screenshot(): def test_screenshot():
import base64 import base64
import subprocess
import cv2 from mower.utils.device.adb_client.session import Session
import numpy as np from mower.utils.device.device import Device
from mower.utils.image import img2bytes
from mower.utils.recognize import Recognizer
command = config.conf.custom_screenshot.command interval = config.conf.screenshot_interval
config.conf.screenshot_interval = 0
start = time.time() try:
data = subprocess.check_output( config.device = Device()
command, config.device.client.check_server_alive()
shell=True, Session().connect()
creationflags=subprocess.CREATE_NO_WINDOW if __system__ == "windows" else 0, if config.conf.screencap_strategy == "droidcast":
) config.device.start_droidcast()
data = np.frombuffer(data, np.uint8) config.screenshot_avg = None
data = cv2.imdecode(data, cv2.IMREAD_COLOR) config.recog = Recognizer()
elapsed = int((time.time() - start) * 1000) for _ in range(5):
config.recog.update()
_, data = cv2.imencode(".jpg", data, [int(cv2.IMWRITE_JPEG_QUALITY), 75]) img = config.recog.img
data = base64.b64encode(data).decode("ascii") data = base64.b64encode(img2bytes(img)).decode("ascii")
elapsed = round(config.screenshot_avg)
return {"elapsed": elapsed, "screenshot": data} result = {"success": True, "elapsed": elapsed, "screenshot": data}
except Exception:
result = {"success": False}
config.conf.screenshot_interval = interval
return result
@app.route("/check-skland") @app.route("/check-skland")

1
ui/components.d.ts vendored
View file

@ -74,6 +74,7 @@ declare module 'vue' {
NTabs: typeof import('naive-ui')['NTabs'] NTabs: typeof import('naive-ui')['NTabs']
NTag: typeof import('naive-ui')['NTag'] NTag: typeof import('naive-ui')['NTag']
NTd: typeof import('naive-ui')['NTd'] NTd: typeof import('naive-ui')['NTd']
NText: typeof import('naive-ui')['NText']
NThing: typeof import('naive-ui')['NThing'] NThing: typeof import('naive-ui')['NThing']
NTimePicker: typeof import('naive-ui')['NTimePicker'] NTimePicker: typeof import('naive-ui')['NTimePicker']
NTooltip: typeof import('naive-ui')['NTooltip'] NTooltip: typeof import('naive-ui')['NTooltip']

View file

@ -1,4 +1,4 @@
import{an as M,am as u,aM as v,as as I,au as i,av as T,ar as O,ay as $,B as V,ax as N,b0 as K,j as R,aC as D,r as G,H as l,be as Y,b1 as q,aY as c,aF as J,b5 as Q,b4 as U,b2 as X,aG as Z}from"./_plugin-vue_export-helper.js";import{av as oo,K as eo,H as ro,W as no,I as so,S as lo}from"./main.js";function to(r){const{lineHeight:o,borderRadius:d,fontWeightStrong:f,baseColor:t,dividerColor:C,actionColor:y,textColor1:g,textColor2:s,closeColorHover:h,closeColorPressed:b,closeIconColor:m,closeIconColorHover:p,closeIconColorPressed:n,infoColor:e,successColor:x,warningColor:z,errorColor:S,fontSize:P}=r;return Object.assign(Object.assign({},oo),{fontSize:P,lineHeight:o,titleFontWeight:f,borderRadius:d,border:`1px solid ${C}`,color:y,titleTextColor:g,iconColor:s,contentTextColor:s,closeBorderRadius:d,closeColorHover:h,closeColorPressed:b,closeIconColor:m,closeIconColorHover:p,closeIconColorPressed:n,borderInfo:`1px solid ${u(t,v(e,{alpha:.25}))}`,colorInfo:u(t,v(e,{alpha:.08})),titleTextColorInfo:g,iconColorInfo:e,contentTextColorInfo:s,closeColorHoverInfo:h,closeColorPressedInfo:b,closeIconColorInfo:m,closeIconColorHoverInfo:p,closeIconColorPressedInfo:n,borderSuccess:`1px solid ${u(t,v(x,{alpha:.25}))}`,colorSuccess:u(t,v(x,{alpha:.08})),titleTextColorSuccess:g,iconColorSuccess:x,contentTextColorSuccess:s,closeColorHoverSuccess:h,closeColorPressedSuccess:b,closeIconColorSuccess:m,closeIconColorHoverSuccess:p,closeIconColorPressedSuccess:n,borderWarning:`1px solid ${u(t,v(z,{alpha:.33}))}`,colorWarning:u(t,v(z,{alpha:.08})),titleTextColorWarning:g,iconColorWarning:z,contentTextColorWarning:s,closeColorHoverWarning:h,closeColorPressedWarning:b,closeIconColorWarning:m,closeIconColorHoverWarning:p,closeIconColorPressedWarning:n,borderError:`1px solid ${u(t,v(S,{alpha:.25}))}`,colorError:u(t,v(S,{alpha:.08})),titleTextColorError:g,iconColorError:S,contentTextColorError:s,closeColorHoverError:h,closeColorPressedError:b,closeIconColorError:m,closeIconColorHoverError:p,closeIconColorPressedError:n})}const io={name:"Alert",common:M,self:to},ao=I("alert",` import{an as M,am as u,aM as v,as as I,au as i,av as T,ar as O,ay as $,B as V,ax as N,b0 as D,j as R,aC as G,r as J,H as l,be as K,b1 as Y,aY as c,aF as q,b5 as Q,b4 as U,b2 as X,aG as Z}from"./_plugin-vue_export-helper.js";import{av as oo,L as eo,I as ro,W as no,J as so,S as lo}from"./main.js";function to(r){const{lineHeight:o,borderRadius:d,fontWeightStrong:f,baseColor:t,dividerColor:C,actionColor:y,textColor1:g,textColor2:s,closeColorHover:h,closeColorPressed:b,closeIconColor:m,closeIconColorHover:p,closeIconColorPressed:n,infoColor:e,successColor:x,warningColor:z,errorColor:S,fontSize:P}=r;return Object.assign(Object.assign({},oo),{fontSize:P,lineHeight:o,titleFontWeight:f,borderRadius:d,border:`1px solid ${C}`,color:y,titleTextColor:g,iconColor:s,contentTextColor:s,closeBorderRadius:d,closeColorHover:h,closeColorPressed:b,closeIconColor:m,closeIconColorHover:p,closeIconColorPressed:n,borderInfo:`1px solid ${u(t,v(e,{alpha:.25}))}`,colorInfo:u(t,v(e,{alpha:.08})),titleTextColorInfo:g,iconColorInfo:e,contentTextColorInfo:s,closeColorHoverInfo:h,closeColorPressedInfo:b,closeIconColorInfo:m,closeIconColorHoverInfo:p,closeIconColorPressedInfo:n,borderSuccess:`1px solid ${u(t,v(x,{alpha:.25}))}`,colorSuccess:u(t,v(x,{alpha:.08})),titleTextColorSuccess:g,iconColorSuccess:x,contentTextColorSuccess:s,closeColorHoverSuccess:h,closeColorPressedSuccess:b,closeIconColorSuccess:m,closeIconColorHoverSuccess:p,closeIconColorPressedSuccess:n,borderWarning:`1px solid ${u(t,v(z,{alpha:.33}))}`,colorWarning:u(t,v(z,{alpha:.08})),titleTextColorWarning:g,iconColorWarning:z,contentTextColorWarning:s,closeColorHoverWarning:h,closeColorPressedWarning:b,closeIconColorWarning:m,closeIconColorHoverWarning:p,closeIconColorPressedWarning:n,borderError:`1px solid ${u(t,v(S,{alpha:.25}))}`,colorError:u(t,v(S,{alpha:.08})),titleTextColorError:g,iconColorError:S,contentTextColorError:s,closeColorHoverError:h,closeColorPressedError:b,closeIconColorError:m,closeIconColorHoverError:p,closeIconColorPressedError:n})}const io={name:"Alert",common:M,self:to},ao=I("alert",`
line-height: var(--n-line-height); line-height: var(--n-line-height);
border-radius: var(--n-border-radius); border-radius: var(--n-border-radius);
position: relative; position: relative;
@ -45,4 +45,4 @@ import{an as M,am as u,aM as v,as as I,au as i,av as T,ar as O,ay as $,B as V,ax
font-size: 16px; font-size: 16px;
line-height: 19px; line-height: 19px;
font-weight: var(--n-title-font-weight); font-weight: var(--n-title-font-weight);
`,[O("& +",[i("content",{marginTop:"9px"})])]),i("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),i("icon",{transition:"color .3s var(--n-bezier)"})]),co=Object.assign(Object.assign({},$.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),uo=V({name:"Alert",inheritAttrs:!1,props:co,setup(r){const{mergedClsPrefixRef:o,mergedBorderedRef:d,inlineThemeDisabled:f,mergedRtlRef:t}=N(r),C=$("Alert","-alert",ao,io,r,o),y=K("Alert",t,o),g=R(()=>{const{common:{cubicBezierEaseInOut:n},self:e}=C.value,{fontSize:x,borderRadius:z,titleFontWeight:S,lineHeight:P,iconSize:E,iconMargin:H,iconMarginRtl:_,closeIconSize:W,closeBorderRadius:w,closeSize:A,closeMargin:B,closeMarginRtl:j,padding:k}=e,{type:a}=r,{left:L,right:F}=q(H);return{"--n-bezier":n,"--n-color":e[c("color",a)],"--n-close-icon-size":W,"--n-close-border-radius":w,"--n-close-color-hover":e[c("closeColorHover",a)],"--n-close-color-pressed":e[c("closeColorPressed",a)],"--n-close-icon-color":e[c("closeIconColor",a)],"--n-close-icon-color-hover":e[c("closeIconColorHover",a)],"--n-close-icon-color-pressed":e[c("closeIconColorPressed",a)],"--n-icon-color":e[c("iconColor",a)],"--n-border":e[c("border",a)],"--n-title-text-color":e[c("titleTextColor",a)],"--n-content-text-color":e[c("contentTextColor",a)],"--n-line-height":P,"--n-border-radius":z,"--n-font-size":x,"--n-title-font-weight":S,"--n-icon-size":E,"--n-icon-margin":H,"--n-icon-margin-rtl":_,"--n-close-size":A,"--n-close-margin":B,"--n-close-margin-rtl":j,"--n-padding":k,"--n-icon-margin-left":L,"--n-icon-margin-right":F}}),s=f?D("alert",R(()=>r.type[0]),g,r):void 0,h=G(!0),b=()=>{const{onAfterLeave:n,onAfterHide:e}=r;n&&n(),e&&e()};return{rtlEnabled:y,mergedClsPrefix:o,mergedBordered:d,visible:h,handleCloseClick:()=>{var n;Promise.resolve((n=r.onClose)===null||n===void 0?void 0:n.call(r)).then(e=>{e!==!1&&(h.value=!1)})},handleAfterLeave:()=>{b()},mergedTheme:C,cssVars:f?void 0:g,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var r;return(r=this.onRender)===null||r===void 0||r.call(this),l(Y,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:o,$slots:d}=this,f={class:[`${o}-alert`,this.themeClass,this.closable&&`${o}-alert--closable`,this.showIcon&&`${o}-alert--show-icon`,!this.title&&this.closable&&`${o}-alert--right-adjust`,this.rtlEnabled&&`${o}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?l("div",Object.assign({},J(this.$attrs,f)),this.closable&&l(Q,{clsPrefix:o,class:`${o}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&l("div",{class:`${o}-alert__border`}),this.showIcon&&l("div",{class:`${o}-alert__icon`,"aria-hidden":"true"},U(d.icon,()=>[l(X,{clsPrefix:o},{default:()=>{switch(this.type){case"success":return l(lo,null);case"info":return l(so,null);case"warning":return l(no,null);case"error":return l(ro,null);default:return null}}})])),l("div",{class:[`${o}-alert-body`,this.mergedBordered&&`${o}-alert-body--bordered`]},Z(d.header,t=>{const C=t||this.title;return C?l("div",{class:`${o}-alert-body__title`},C):null}),d.default&&l("div",{class:`${o}-alert-body__content`},d))):null}})}});export{uo as _}; `,[O("& +",[i("content",{marginTop:"9px"})])]),i("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),i("icon",{transition:"color .3s var(--n-bezier)"})]),co=Object.assign(Object.assign({},$.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),uo=V({name:"Alert",inheritAttrs:!1,props:co,setup(r){const{mergedClsPrefixRef:o,mergedBorderedRef:d,inlineThemeDisabled:f,mergedRtlRef:t}=N(r),C=$("Alert","-alert",ao,io,r,o),y=D("Alert",t,o),g=R(()=>{const{common:{cubicBezierEaseInOut:n},self:e}=C.value,{fontSize:x,borderRadius:z,titleFontWeight:S,lineHeight:P,iconSize:E,iconMargin:H,iconMarginRtl:_,closeIconSize:W,closeBorderRadius:w,closeSize:A,closeMargin:B,closeMarginRtl:L,padding:j}=e,{type:a}=r,{left:k,right:F}=Y(H);return{"--n-bezier":n,"--n-color":e[c("color",a)],"--n-close-icon-size":W,"--n-close-border-radius":w,"--n-close-color-hover":e[c("closeColorHover",a)],"--n-close-color-pressed":e[c("closeColorPressed",a)],"--n-close-icon-color":e[c("closeIconColor",a)],"--n-close-icon-color-hover":e[c("closeIconColorHover",a)],"--n-close-icon-color-pressed":e[c("closeIconColorPressed",a)],"--n-icon-color":e[c("iconColor",a)],"--n-border":e[c("border",a)],"--n-title-text-color":e[c("titleTextColor",a)],"--n-content-text-color":e[c("contentTextColor",a)],"--n-line-height":P,"--n-border-radius":z,"--n-font-size":x,"--n-title-font-weight":S,"--n-icon-size":E,"--n-icon-margin":H,"--n-icon-margin-rtl":_,"--n-close-size":A,"--n-close-margin":B,"--n-close-margin-rtl":L,"--n-padding":j,"--n-icon-margin-left":k,"--n-icon-margin-right":F}}),s=f?G("alert",R(()=>r.type[0]),g,r):void 0,h=J(!0),b=()=>{const{onAfterLeave:n,onAfterHide:e}=r;n&&n(),e&&e()};return{rtlEnabled:y,mergedClsPrefix:o,mergedBordered:d,visible:h,handleCloseClick:()=>{var n;Promise.resolve((n=r.onClose)===null||n===void 0?void 0:n.call(r)).then(e=>{e!==!1&&(h.value=!1)})},handleAfterLeave:()=>{b()},mergedTheme:C,cssVars:f?void 0:g,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var r;return(r=this.onRender)===null||r===void 0||r.call(this),l(K,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:o,$slots:d}=this,f={class:[`${o}-alert`,this.themeClass,this.closable&&`${o}-alert--closable`,this.showIcon&&`${o}-alert--show-icon`,!this.title&&this.closable&&`${o}-alert--right-adjust`,this.rtlEnabled&&`${o}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?l("div",Object.assign({},q(this.$attrs,f)),this.closable&&l(Q,{clsPrefix:o,class:`${o}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&l("div",{class:`${o}-alert__border`}),this.showIcon&&l("div",{class:`${o}-alert__icon`,"aria-hidden":"true"},U(d.icon,()=>[l(X,{clsPrefix:o},{default:()=>{switch(this.type){case"success":return l(lo,null);case"info":return l(so,null);case"warning":return l(no,null);case"error":return l(ro,null);default:return null}}})])),l("div",{class:[`${o}-alert-body`,this.mergedBordered&&`${o}-alert-body--bordered`]},Z(d.header,t=>{const C=t||this.title;return C?l("div",{class:`${o}-alert-body__title`},C):null}),d.default&&l("div",{class:`${o}-alert-body__content`},d))):null}})}});export{uo as _};

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{br as l,bt as _,bu as a,bv as t,bw as n,by as o,K as p,aX as u,b3 as d}from"./_plugin-vue_export-helper.js";import{a2 as m}from"./main.js";const w={};function f(r,e){const s=u,c=d,i=m;return _(),a(i,{trigger:"hover","content-style":"max-width: 500px"},{trigger:t(()=>[n(c,{tertiary:"",circle:"",class:"help",size:"tiny"},{icon:t(()=>[n(s,null,{default:t(()=>e[0]||(e[0]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},[o("path",{d:"M160 164s1.44-33 33.54-59.46C212.6 88.83 235.49 84.28 256 84c18.73-.23 35.47 2.94 45.48 7.82C318.59 100.2 352 120.6 352 164c0 45.67-29.18 66.37-62.35 89.18S248 298.36 248 324",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"40"}),o("circle",{cx:"248",cy:"399.99",r:"32",fill:"currentColor"})],-1)])),_:1})]),_:1})]),default:t(()=>[p(r.$slots,"default",{},void 0,!0)]),_:3})}const b=l(w,[["render",f],["__scopeId","data-v-e18814d8"]]);export{b as _}; import{br as l,bt as _,bu as a,bv as t,bw as n,by as o,K as p,aX as u,b3 as d}from"./_plugin-vue_export-helper.js";import{a3 as m}from"./main.js";const w={};function f(r,e){const s=u,c=d,i=m;return _(),a(i,{trigger:"hover","content-style":"max-width: 500px"},{trigger:t(()=>[n(c,{tertiary:"",circle:"",class:"help",size:"tiny"},{icon:t(()=>[n(s,null,{default:t(()=>e[0]||(e[0]=[o("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},[o("path",{d:"M160 164s1.44-33 33.54-59.46C212.6 88.83 235.49 84.28 256 84c18.73-.23 35.47 2.94 45.48 7.82C318.59 100.2 352 120.6 352 164c0 45.67-29.18 66.37-62.35 89.18S248 298.36 248 324",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"40"}),o("circle",{cx:"248",cy:"399.99",r:"32",fill:"currentColor"})],-1)])),_:1})]),_:1})]),default:t(()=>[p(r.$slots,"default",{},void 0,!0)]),_:3})}const b=l(w,[["render",f],["__scopeId","data-v-e18814d8"]]);export{b as _};

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,4 +1,4 @@
import{z as ne,c as ae,bF as O,r as F,b as A,aI as N,A as G,ax as H,aL as I,as as _,av as g,au as d,ar as R,at as j,ay as D,B as M,j as $,aY as V,b0 as K,aC as L,H as y,aG as ie,D as de}from"./_plugin-vue_export-helper.js";import{a6 as W,a7 as se}from"./main.js";import{g as le}from"./get-slot.js";const ce={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Y=ne("n-radio-group");function ue(o){const e=ae(Y,null),t=O(o,{mergedSize(r){const{size:s}=o;if(s!==void 0)return s;if(e){const{mergedSizeRef:{value:c}}=e;if(c!==void 0)return c}return r?r.mergedSize.value:"medium"},mergedDisabled(r){return!!(o.disabled||e!=null&&e.disabledRef.value||r!=null&&r.disabled.value)}}),{mergedSizeRef:i,mergedDisabledRef:n}=t,u=F(null),b=F(null),h=F(o.defaultChecked),a=A(o,"checked"),p=N(a,h),m=G(()=>e?e.valueRef.value===o.value:p.value),w=G(()=>{const{name:r}=o;if(r!==void 0)return r;if(e)return e.nameRef.value}),f=F(!1);function C(){if(e){const{doUpdateValue:r}=e,{value:s}=o;I(r,s)}else{const{onUpdateChecked:r,"onUpdate:checked":s}=o,{nTriggerFormInput:c,nTriggerFormChange:l}=t;r&&I(r,!0),s&&I(s,!0),c(),l(),h.value=!0}}function x(){n.value||m.value||C()}function k(){x(),u.value&&(u.value.checked=m.value)}function z(){f.value=!1}function S(){f.value=!0}return{mergedClsPrefix:e?e.mergedClsPrefixRef:H(o).mergedClsPrefixRef,inputRef:u,labelRef:b,mergedName:w,mergedDisabled:n,renderSafeChecked:m,focus:f,mergedSize:i,handleRadioInputChange:k,handleRadioInputBlur:z,handleRadioInputFocus:S}}const be=_("radio",` import{z as ne,c as ae,bF as O,r as F,b as A,aI as N,A as G,ax as H,aL as I,as as _,av as g,au as d,ar as R,at as j,ay as D,B as M,j as $,aY as V,b0 as K,aC as L,H as y,aG as ie,D as de}from"./_plugin-vue_export-helper.js";import{a7 as W,a8 as se}from"./main.js";import{g as le}from"./get-slot.js";const ce={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Y=ne("n-radio-group");function ue(o){const e=ae(Y,null),t=O(o,{mergedSize(r){const{size:s}=o;if(s!==void 0)return s;if(e){const{mergedSizeRef:{value:c}}=e;if(c!==void 0)return c}return r?r.mergedSize.value:"medium"},mergedDisabled(r){return!!(o.disabled||e!=null&&e.disabledRef.value||r!=null&&r.disabled.value)}}),{mergedSizeRef:i,mergedDisabledRef:n}=t,u=F(null),b=F(null),h=F(o.defaultChecked),a=A(o,"checked"),p=N(a,h),m=G(()=>e?e.valueRef.value===o.value:p.value),w=G(()=>{const{name:r}=o;if(r!==void 0)return r;if(e)return e.nameRef.value}),f=F(!1);function C(){if(e){const{doUpdateValue:r}=e,{value:s}=o;I(r,s)}else{const{onUpdateChecked:r,"onUpdate:checked":s}=o,{nTriggerFormInput:c,nTriggerFormChange:l}=t;r&&I(r,!0),s&&I(s,!0),c(),l(),h.value=!0}}function x(){n.value||m.value||C()}function k(){x(),u.value&&(u.value.checked=m.value)}function z(){f.value=!1}function S(){f.value=!0}return{mergedClsPrefix:e?e.mergedClsPrefixRef:H(o).mergedClsPrefixRef,inputRef:u,labelRef:b,mergedName:w,mergedDisabled:n,renderSafeChecked:m,focus:f,mergedSize:i,handleRadioInputChange:k,handleRadioInputBlur:z,handleRadioInputFocus:S}}const be=_("radio",`
line-height: var(--n-label-line-height); line-height: var(--n-label-line-height);
outline: none; outline: none;
position: relative; position: relative;

View file

@ -1,4 +1,4 @@
import{s as tn,bX as dn,u as bn,B as le,H as o,as as p,au as z,ar as H,ax as Fe,ay as fe,j as P,aY as se,aC as Ae,b2 as gn,c as ln,A as He,aD as pn,av as W,at as Qe,b0 as rn,b as q,r as B,w as Se,D as en,aG as nn,bi as Zn,b8 as Yn,b4 as Jn,n as mn,bj as Xn,b1 as Be,az as Qn,F as eo,bY as no,z as oo,bF as an,aI as Ke,aL as E,bg as to,a_ as lo,bS as io,L as ro,bh as ao,v as so,J as co,E as uo,aA as fo,M as ho}from"./_plugin-vue_export-helper.js";import{D as vo,a8 as Re,a9 as sn,f as xn,aa as bo,ab as go,w as $e,ac as po,ad as mo,ae as cn,Z as xo,C as wo,d as on,af as yo,B as Co,V as ko,i as Ro,j as un,ag as So,g as Fo,v as zo}from"./main.js";import{u as wn}from"./use-locale.js";import{_ as Ye}from"./Tag.js";import{N as Oo}from"./Input.js";import{V as To}from"./VirtualList.js";function fn(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Je(e){const t=e.filter(r=>r!==void 0);if(t.length!==0)return t.length===1?t[0]:r=>{e.forEach(s=>{s&&s(r)})}}function yn(e,t){t&&(tn(()=>{const{value:r}=e;r&&dn.registerHandler(r,t)}),bn(()=>{const{value:r}=e;r&&dn.unregisterHandler(r)}))}const tt=le({name:"ArrowDown",render(){return o("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},o("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},o("g",{"fill-rule":"nonzero"},o("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),Mo=le({name:"Checkmark",render(){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},o("g",{fill:"none"},o("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),Po=le({name:"Empty",render(){return o("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),o("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),_o=le({props:{onFocus:Function,onBlur:Function},setup(e){return()=>o("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Io=p("empty",` import{s as tn,bX as dn,u as bn,B as le,H as o,as as p,au as z,ar as H,ax as Fe,ay as fe,j as P,aY as se,aC as Ae,b2 as gn,c as ln,A as He,aD as pn,av as W,at as Qe,b0 as rn,b as q,r as B,w as Se,D as en,aG as nn,bi as Zn,b8 as Yn,b4 as Jn,n as mn,bj as Xn,b1 as Be,az as Qn,F as eo,bY as no,z as oo,bF as an,aI as Ke,aL as E,bg as to,a_ as lo,bS as io,L as ro,bh as ao,v as so,J as co,E as uo,aA as fo,M as ho}from"./_plugin-vue_export-helper.js";import{D as vo,a9 as Re,aa as sn,f as xn,ab as bo,ac as go,w as $e,ad as po,ae as mo,af as cn,$ as xo,C as wo,d as on,F as yo,B as Co,V as ko,i as Ro,j as un,ag as So,g as Fo,v as zo}from"./main.js";import{u as wn}from"./use-locale.js";import{_ as Ye}from"./Tag.js";import{N as Oo}from"./Input.js";import{V as To}from"./VirtualList.js";function fn(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Je(e){const t=e.filter(r=>r!==void 0);if(t.length!==0)return t.length===1?t[0]:r=>{e.forEach(s=>{s&&s(r)})}}function yn(e,t){t&&(tn(()=>{const{value:r}=e;r&&dn.registerHandler(r,t)}),bn(()=>{const{value:r}=e;r&&dn.unregisterHandler(r)}))}const tt=le({name:"ArrowDown",render(){return o("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},o("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},o("g",{"fill-rule":"nonzero"},o("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),Mo=le({name:"Checkmark",render(){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},o("g",{fill:"none"},o("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),Po=le({name:"Empty",render(){return o("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),o("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),_o=le({props:{onFocus:Function,onBlur:Function},setup(e){return()=>o("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Io=p("empty",`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;

View file

@ -1 +1 @@
.sss-container[data-v-2dffb781]{display:flex;width:100%;gap:8px}.wrapper[data-v-2dffb781]{white-space:pre-wrap;-webkit-user-select:text;user-select:text}.title[data-v-2dffb781]{font-size:18px;font-weight:500;margin-bottom:6px}p[data-v-d479d5bf]{margin:0 0 10px}.misc-container[data-v-d479d5bf]{display:flex;align-items:center;gap:12px}.header[data-v-d479d5bf]{margin:12px 0}.tasktable[data-v-d529959c]{margin-top:4px;width:100%;overflow:scroll}.tasktable table[data-v-d529959c]{border-collapse:collapse;width:100%}.btn-clear[data-v-d529959c]{margin:4px}@media screen and (max-width: 1399px){.tasktable[data-v-d529959c]{max-height:300px}.tasktable td[data-v-d529959c]{width:10.2857142857%}.tasktable td[data-v-d529959c]:first-child{width:10%}.tasktable td[data-v-d529959c]:nth-child(2){width:18%}.tasktable thead[data-v-d529959c]{position:sticky;top:0;background-color:#7ea5b4;z-index:1}}@media screen and (min-width: 1400px){.tasktable td[data-v-d529959c]{width:10.2857142857%}.tasktable td[data-v-d529959c]:first-child{width:10%}.tasktable td[data-v-d529959c]:nth-child(2){width:18%}.tasktable thead[data-v-d529959c]{background-color:#7ea5b4}}.class1[data-v-d529959c]{background-color:var(--79d4eb29);text-align:center;vertical-align:middle}.class2[data-v-d529959c]{background-color:var(--df5d9e36);text-align:center;vertical-align:middle}.custom-tag[data-v-d529959c]{width:100%;height:100%;justify-content:space-between}.today[data-v-d529959c]{font-weight:400;font-size:12px}.activity[data-v-d529959c]{align-items:center;gap:4px!important}.card-title[data-v-d529959c]{transition:.3s}.disabled[data-v-d529959c]{color:var(--02ceb894)}p[data-v-748f667d]{margin:2px 0}h4[data-v-748f667d]{margin:12px 0 8px}table[data-v-748f667d]{width:100%}td[data-v-748f667d]:nth-child(1){width:80px}.ignore-blacklist[data-v-748f667d]{margin-bottom:10px;display:flex;gap:12px}.h4[data-v-748f667d]{font-size:16px;font-weight:500}.maa-shop[data-v-748f667d]{margin:8px 0}.item[data-v-748f667d]{font-weight:500;font-size:16px}p[data-v-707c6f48]{margin:0 0 8px}h4[data-v-707c6f48]{margin:12px 0 10px}.big-table[data-v-707c6f48]{margin-top:10px;max-width:320px}.big-table th[data-v-707c6f48]{text-align:center}.big-table tr[data-v-707c6f48]{width:70px}.big-table td[data-v-707c6f48]{height:24px}.big-table td[data-v-707c6f48]:nth-child(1){width:70px;text-align:center}.big-table td[data-v-707c6f48]:nth-child(2){width:420px}.final[data-v-707c6f48]{margin:16px 0 0}.item[data-v-04ac026a]{font-weight:500;font-size:16px}.n-divider[data-v-04ac026a]:not(.n-divider--vertical){margin:6px 0}.subtitle[data-v-4ca1d6ac]{margin:12px 0 6px}.misc-container{margin-top:12px;display:flex;align-items:center;gap:12px}.email-title[data-v-7cbc22ce]{width:100%}.expand[data-v-7cbc22ce]{flex-grow:1}.email-table[data-v-7cbc22ce]{width:100%;margin-bottom:12px}.email-test[data-v-7cbc22ce]{display:flex;align-items:center;gap:16px}.email-mode[data-v-7cbc22ce]{margin-left:20px}.email-label[data-v-7cbc22ce]{width:68px}p[data-v-7cbc22ce]{margin:0 0 10px}.mt-16[data-v-7cbc22ce]{margin-top:16px}.threshold[data-v-ee68048b]{display:flex;align-items:center;gap:14px;width:100%}.mower-basic[data-v-ee68048b]{width:100%}.mower-basic td[data-v-ee68048b]:nth-child(1){width:120px}.mower-basic td[data-v-ee68048b]:nth-child(3){padding-left:6px;width:40px}.riic-conf[data-v-ee68048b]{width:100%}.riic-conf td[data-v-ee68048b]:nth-child(1){width:130px}.riic-conf td[data-v-ee68048b]:nth-child(3){padding-left:12px;width:120px}.coord td[data-v-ee68048b]{width:120px}.coord td[data-v-ee68048b]:nth-child(1),.coord td[data-v-ee68048b]:nth-child(3){width:30px}.coord td[data-v-ee68048b]:nth-child(2){padding-right:30px}.coord-label[data-v-ee68048b]{width:40px;padding-left:8px}p[data-v-ee68048b]{margin:0 0 8px}h4[data-v-ee68048b]{margin:12px 0 10px}.time-table[data-v-ee68048b]{width:100%;margin-bottom:12px}.time-table td[data-v-ee68048b]:nth-child(1){width:40px}.scale[data-v-ee68048b]{width:60px;text-align:right}.scale-apply[data-v-ee68048b]{margin-left:24px}.waiting-table th[data-v-ee68048b],.waiting-table td[data-v-ee68048b]{padding:4px;min-width:70px;width:100px}.waiting-table th[data-v-ee68048b]:first-child,.waiting-table td[data-v-ee68048b]:first-child{width:auto;padding:4px 8px}@media (max-width: 1399px){.grid-two{margin:0 0 -10px;width:100%;max-width:600px}.grid-left{display:grid;row-gap:10px;grid-template-columns:100%}.grid-right{display:grid;row-gap:10px;grid-template-columns:100%;margin-top:10px}}@media (min-width: 1400px){.grid-two{display:grid;grid-template-columns:minmax(0px,1fr) minmax(0px,1fr);align-items:flex-start;gap:5px}.grid-left,.grid-right{display:grid;gap:5px;grid-template-columns:100%;max-width:600px}}.n-divider:not(.n-divider--vertical){margin:14px 0 8px} .sss-container[data-v-2dffb781]{display:flex;width:100%;gap:8px}.wrapper[data-v-2dffb781]{white-space:pre-wrap;-webkit-user-select:text;user-select:text}.title[data-v-2dffb781]{font-size:18px;font-weight:500;margin-bottom:6px}p[data-v-d479d5bf]{margin:0 0 10px}.misc-container[data-v-d479d5bf]{display:flex;align-items:center;gap:12px}.header[data-v-d479d5bf]{margin:12px 0}.tasktable[data-v-d529959c]{margin-top:4px;width:100%;overflow:scroll}.tasktable table[data-v-d529959c]{border-collapse:collapse;width:100%}.btn-clear[data-v-d529959c]{margin:4px}@media screen and (max-width: 1399px){.tasktable[data-v-d529959c]{max-height:300px}.tasktable td[data-v-d529959c]{width:10.2857142857%}.tasktable td[data-v-d529959c]:first-child{width:10%}.tasktable td[data-v-d529959c]:nth-child(2){width:18%}.tasktable thead[data-v-d529959c]{position:sticky;top:0;background-color:#7ea5b4;z-index:1}}@media screen and (min-width: 1400px){.tasktable td[data-v-d529959c]{width:10.2857142857%}.tasktable td[data-v-d529959c]:first-child{width:10%}.tasktable td[data-v-d529959c]:nth-child(2){width:18%}.tasktable thead[data-v-d529959c]{background-color:#7ea5b4}}.class1[data-v-d529959c]{background-color:var(--79d4eb29);text-align:center;vertical-align:middle}.class2[data-v-d529959c]{background-color:var(--df5d9e36);text-align:center;vertical-align:middle}.custom-tag[data-v-d529959c]{width:100%;height:100%;justify-content:space-between}.today[data-v-d529959c]{font-weight:400;font-size:12px}.activity[data-v-d529959c]{align-items:center;gap:4px!important}.card-title[data-v-d529959c]{transition:.3s}.disabled[data-v-d529959c]{color:var(--02ceb894)}p[data-v-748f667d]{margin:2px 0}h4[data-v-748f667d]{margin:12px 0 8px}table[data-v-748f667d]{width:100%}td[data-v-748f667d]:nth-child(1){width:80px}.ignore-blacklist[data-v-748f667d]{margin-bottom:10px;display:flex;gap:12px}.h4[data-v-748f667d]{font-size:16px;font-weight:500}.maa-shop[data-v-748f667d]{margin:8px 0}.item[data-v-748f667d]{font-weight:500;font-size:16px}p[data-v-707c6f48]{margin:0 0 8px}h4[data-v-707c6f48]{margin:12px 0 10px}.big-table[data-v-707c6f48]{margin-top:10px;max-width:320px}.big-table th[data-v-707c6f48]{text-align:center}.big-table tr[data-v-707c6f48]{width:70px}.big-table td[data-v-707c6f48]{height:24px}.big-table td[data-v-707c6f48]:nth-child(1){width:70px;text-align:center}.big-table td[data-v-707c6f48]:nth-child(2){width:420px}.final[data-v-707c6f48]{margin:16px 0 0}.item[data-v-04ac026a]{font-weight:500;font-size:16px}.n-divider[data-v-04ac026a]:not(.n-divider--vertical){margin:6px 0}.subtitle[data-v-4ca1d6ac]{margin:12px 0 6px}.misc-container{margin-top:12px;display:flex;align-items:center;gap:12px}.email-title[data-v-7cbc22ce]{width:100%}.expand[data-v-7cbc22ce]{flex-grow:1}.email-table[data-v-7cbc22ce]{width:100%;margin-bottom:12px}.email-test[data-v-7cbc22ce]{display:flex;align-items:center;gap:16px}.email-mode[data-v-7cbc22ce]{margin-left:20px}.email-label[data-v-7cbc22ce]{width:68px}p[data-v-7cbc22ce]{margin:0 0 10px}.mt-16[data-v-7cbc22ce]{margin-top:16px}.threshold[data-v-fa376a75]{display:flex;align-items:center;gap:14px;width:100%}.mower-basic[data-v-fa376a75]{width:100%}.mower-basic td[data-v-fa376a75]:nth-child(1){width:120px}.mower-basic td[data-v-fa376a75]:nth-child(3){padding-left:6px;width:40px}.riic-conf[data-v-fa376a75]{width:100%}.riic-conf td[data-v-fa376a75]:nth-child(1){width:130px}.riic-conf td[data-v-fa376a75]:nth-child(3){padding-left:12px;width:120px}.coord td[data-v-fa376a75]{width:120px}.coord td[data-v-fa376a75]:nth-child(1),.coord td[data-v-fa376a75]:nth-child(3){width:30px}.coord td[data-v-fa376a75]:nth-child(2){padding-right:30px}.coord-label[data-v-fa376a75]{width:40px;padding-left:8px}p[data-v-fa376a75]{margin:0 0 8px}h4[data-v-fa376a75]{margin:12px 0 10px}.time-table[data-v-fa376a75]{width:100%;margin-bottom:12px}.time-table td[data-v-fa376a75]:nth-child(1){width:40px}.scale[data-v-fa376a75]{width:60px;text-align:right}.scale-apply[data-v-fa376a75]{margin-left:24px}.waiting-table th[data-v-fa376a75],.waiting-table td[data-v-fa376a75]{padding:4px;min-width:70px;width:100px}.waiting-table th[data-v-fa376a75]:first-child,.waiting-table td[data-v-fa376a75]:first-child{width:auto;padding:4px 8px}@media (max-width: 1399px){.grid-two{margin:0 0 -10px;width:100%;max-width:600px}.grid-left{display:grid;row-gap:10px;grid-template-columns:100%}.grid-right{display:grid;row-gap:10px;grid-template-columns:100%;margin-top:10px}}@media (min-width: 1400px){.grid-two{display:grid;grid-template-columns:minmax(0px,1fr) minmax(0px,1fr);align-items:flex-start;gap:5px}.grid-left,.grid-right{display:grid;gap:5px;grid-template-columns:100%;max-width:600px}}.n-divider:not(.n-divider--vertical){margin:14px 0 8px}

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{c as re,q as kt,w as lt,u as Ct,ai as Be,H as c,as as b,av as O,ar as E,z as Ue,ay as le,B as Z,ax as qe,r as K,D as Fe,aZ as Ie,j as _,aB as ne,ak as Pt,au as G,b as A,L as Oe,bN as St,s as $t,aY as te,aC as Ve,aD as _t,aG as Ft,l as Le,b2 as J,bH as Te,N as Ot,bO as We,b4 as Bt,be as st,A as qt,az as Tt,b3 as Ce,bh as zt,bg as It,bF as Lt,aI as jt,T as Dt,F as At,aL as He,n as Et,br as Mt,bP as Nt,bQ as Ut,bt as Vt,bu as Wt,bv as Ht,bw as Gt,bo as Pe}from"./_plugin-vue_export-helper.js";import{F as dt,G as ut,S as ct,H as ft,W as gt,I as ht,J as Xt,A as Yt,K as Ge,L as Kt,s as Zt,k as Jt,M as Qt,N as er}from"./main.js";import{_ as tr,D as rr,N as nr}from"./Image.js";import{E as ir}from"./Input.js";import{d as ar}from"./download.js";import{m as or}from"./index.js";import{r as lr,K as sr}from"./op_select.js";import{_ as dr}from"./Select.js";function ur(t,e,r){var n;const i=re(t,null);if(i===null)return;const a=(n=kt())===null||n===void 0?void 0:n.proxy;lt(r,o),o(r.value),Ct(()=>{o(void 0,r.value)});function o(u,s){if(!i)return;const f=i[e];s!==void 0&&l(f,s),u!==void 0&&d(f,u)}function l(u,s){u[s]||(u[s]=[]),u[s].splice(u[s].findIndex(f=>f===a),1)}function d(u,s){u[s]||(u[s]=[]),~u[s].findIndex(f=>f===a)||u[s].push(a)}}const cr=Be("attach",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),fr=Be("trash",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),gr=Be("cancel",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),hr=Be("retry",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),c("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),pr=b("form",[O("inline",` import{c as re,q as kt,w as lt,u as Ct,ai as Be,H as c,as as b,av as O,ar as E,z as Ue,ay as le,B as Z,ax as qe,r as K,D as Fe,aZ as Ie,j as _,aB as ne,ak as Pt,au as G,b as A,L as Oe,bN as St,s as $t,aY as te,aC as Ve,aD as _t,aG as Ft,l as Le,b2 as J,bH as Te,N as Ot,bO as We,b4 as Bt,be as st,A as qt,az as Tt,b3 as Ce,bh as zt,bg as It,bF as Lt,aI as jt,T as Dt,F as At,aL as He,n as Et,br as Mt,bP as Nt,bQ as Ut,bt as Vt,bu as Wt,bv as Ht,bw as Gt,bo as Pe}from"./_plugin-vue_export-helper.js";import{G as dt,H as ut,S as ct,I as ft,W as gt,J as ht,K as Xt,A as Yt,L as Ge,M as Kt,s as Zt,k as Jt,N as Qt,O as er}from"./main.js";import{_ as tr,D as rr,N as nr}from"./Image.js";import{E as ir}from"./Input.js";import{d as ar}from"./download.js";import{m as or}from"./index.js";import{r as lr,K as sr}from"./op_select.js";import{_ as dr}from"./Select.js";function ur(t,e,r){var n;const i=re(t,null);if(i===null)return;const a=(n=kt())===null||n===void 0?void 0:n.proxy;lt(r,o),o(r.value),Ct(()=>{o(void 0,r.value)});function o(u,s){if(!i)return;const f=i[e];s!==void 0&&l(f,s),u!==void 0&&d(f,u)}function l(u,s){u[s]||(u[s]=[]),u[s].splice(u[s].findIndex(f=>f===a),1)}function d(u,s){u[s]||(u[s]=[]),~u[s].findIndex(f=>f===a)||u[s].push(a)}}const cr=Be("attach",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),fr=Be("trash",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),gr=Be("cancel",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),hr=Be("retry",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),c("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),pr=b("form",[O("inline",`
width: 100%; width: 100%;
display: inline-flex; display: inline-flex;
align-items: flex-start; align-items: flex-start;

View file

@ -1,4 +1,4 @@
import{ay as Y,B as xe,ax as we,b0 as Ze,j as w,H as f,aY as qe,bZ as Qe,bj as fe,an as eo,c0 as oo,ar as M,as as n,av as m,au as O,a_ as to,bS as ao,r as C,bF as no,b as ro,aI as lo,w as ve,n as ee,u as io,aC as me,J as so,b4 as co,aD as uo,aL as U,v as L,y as K}from"./_plugin-vue_export-helper.js";import{al as ho,a7 as fo,am as vo,f as be,d as oe,B as mo,V as bo,i as go}from"./main.js";import{g as po}from"./get-slot.js";function xo(){return ho}const wo={name:"Flex",self:xo},yo=Object.assign(Object.assign({},Y.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrap:{type:Boolean,default:!0}}),Vo=xe({name:"Flex",props:yo,setup(a){const{mergedClsPrefixRef:l,mergedRtlRef:g}=we(a),c=Y("Flex","-flex",void 0,wo,a,l);return{rtlEnabled:Ze("Flex",g,l),mergedClsPrefix:l,margin:w(()=>{const{size:i}=a;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[qe("gap",i)]:y}}=c.value,{row:b,col:z}=Qe(y);return{horizontal:fe(z),vertical:fe(b)}})}},render(){const{vertical:a,reverse:l,align:g,inline:c,justify:d,margin:i,wrap:y,mergedClsPrefix:b,rtlEnabled:z}=this,B=fo(po(this),!1);return B.length?f("div",{role:"none",class:[`${b}-flex`,z&&`${b}-flex--rtl`],style:{display:c?"inline-flex":"flex",flexDirection:a&&!l?"column":a&&l?"column-reverse":!a&&l?"row-reverse":"row",justifyContent:d,flexWrap:!y||a?"nowrap":"wrap",alignItems:g,gap:`${i.vertical}px ${i.horizontal}px`}},B):null}});function Ro(a){const l="rgba(0, 0, 0, .85)",g="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:c,primaryColor:d,baseColor:i,cardColor:y,modalColor:b,popoverColor:z,borderRadius:B,fontSize:$,opacityDisabled:F}=a;return Object.assign(Object.assign({},vo),{fontSize:$,markFontSize:$,railColor:c,railColorHover:c,fillColor:d,fillColorHover:d,opacityDisabled:F,handleColor:"#FFF",dotColor:y,dotColorModal:b,dotColorPopover:z,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:l,indicatorBoxShadow:g,indicatorTextColor:i,indicatorBorderRadius:B,dotBorder:`2px solid ${c}`,dotBorderActive:`2px solid ${d}`,dotBoxShadow:""})}const ko={name:"Slider",common:eo,self:Ro};function ge(a){return window.TouchEvent&&a instanceof window.TouchEvent}function pe(){const a=new Map,l=g=>c=>{a.set(g,c)};return oo(()=>{a.clear()}),[a,l]}const Co=M([n("slider",` import{ay as Y,B as xe,ax as we,b0 as Ze,j as w,H as f,aY as qe,bZ as Qe,bj as fe,an as eo,c0 as oo,ar as M,as as n,av as m,au as O,a_ as to,bS as ao,r as C,bF as no,b as ro,aI as lo,w as ve,n as ee,u as io,aC as me,J as so,b4 as co,aD as uo,aL as U,v as L,y as K}from"./_plugin-vue_export-helper.js";import{al as ho,a8 as fo,am as vo,f as be,d as oe,B as mo,V as bo,i as go}from"./main.js";import{g as po}from"./get-slot.js";function xo(){return ho}const wo={name:"Flex",self:xo},yo=Object.assign(Object.assign({},Y.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrap:{type:Boolean,default:!0}}),Vo=xe({name:"Flex",props:yo,setup(a){const{mergedClsPrefixRef:l,mergedRtlRef:g}=we(a),c=Y("Flex","-flex",void 0,wo,a,l);return{rtlEnabled:Ze("Flex",g,l),mergedClsPrefix:l,margin:w(()=>{const{size:i}=a;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[qe("gap",i)]:y}}=c.value,{row:b,col:z}=Qe(y);return{horizontal:fe(z),vertical:fe(b)}})}},render(){const{vertical:a,reverse:l,align:g,inline:c,justify:d,margin:i,wrap:y,mergedClsPrefix:b,rtlEnabled:z}=this,B=fo(po(this),!1);return B.length?f("div",{role:"none",class:[`${b}-flex`,z&&`${b}-flex--rtl`],style:{display:c?"inline-flex":"flex",flexDirection:a&&!l?"column":a&&l?"column-reverse":!a&&l?"row-reverse":"row",justifyContent:d,flexWrap:!y||a?"nowrap":"wrap",alignItems:g,gap:`${i.vertical}px ${i.horizontal}px`}},B):null}});function Ro(a){const l="rgba(0, 0, 0, .85)",g="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:c,primaryColor:d,baseColor:i,cardColor:y,modalColor:b,popoverColor:z,borderRadius:B,fontSize:$,opacityDisabled:F}=a;return Object.assign(Object.assign({},vo),{fontSize:$,markFontSize:$,railColor:c,railColorHover:c,fillColor:d,fillColorHover:d,opacityDisabled:F,handleColor:"#FFF",dotColor:y,dotColorModal:b,dotColorPopover:z,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:l,indicatorBoxShadow:g,indicatorTextColor:i,indicatorBorderRadius:B,dotBorder:`2px solid ${c}`,dotBorderActive:`2px solid ${d}`,dotBoxShadow:""})}const ko={name:"Slider",common:eo,self:Ro};function ge(a){return window.TouchEvent&&a instanceof window.TouchEvent}function pe(){const a=new Map,l=g=>c=>{a.set(g,c)};return oo(()=>{a.clear()}),[a,l]}const Co=M([n("slider",`
display: block; display: block;
padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
position: relative; position: relative;

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

View file

@ -1,4 +1,4 @@
var Or=Object.defineProperty;var Nr=(t,n,e)=>n in t?Or(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var m=(t,n,e)=>Nr(t,typeof n!="symbol"?n+"":n,e);import{B as de,H as c,ai as _r,bH as Fr,z as Bn,c as gt,j as _,r as ee,b3 as xe,b8 as rt,ar as R,as as Z,av as se,au as Ye,at as Sn,ay as Te,ax as pt,bF as An,w as st,b as Se,aI as jt,n as ut,D as En,aC as lt,J as Rr,b2 as De,aD as Vr,E as Yr,aL as G,M as Hr,ap as $n,an as zn,aO as Un,aV as qn,bN as Br,b0 as Xt,b4 as ct,bM as cn,bR as Ct,t as Ot,L as Sr,A as Pe,aj as Ar,aG as dn,v as fn,bL as mn,a_ as Er,bS as $r,aY as Nt}from"./_plugin-vue_export-helper.js";import{o as k,q as ke,O as Je,P as zr,f as Ur,d as Ut,Q as qr,p as Lr,B as Wr,V as Qr,i as jr,j as Xr,v as hn,w as Gr,R as Zr,A as qt,T as Kr}from"./main.js";import{e as Ln,u as Gt}from"./use-locale.js";import{F as Jr,A as ea}from"./Select.js";import{_ as Ze}from"./Input.js";import{_ as ta}from"./Scrollbar.js";import{m as na}from"./index.js";import{_ as Wn}from"./Avatar.js";import{_ as ra}from"./Tag.js";const aa=de({name:"ArrowUp",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},c("g",{fill:"none"},c("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}}),Qn=de({name:"Remove",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` var Or=Object.defineProperty;var Nr=(t,n,e)=>n in t?Or(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var m=(t,n,e)=>Nr(t,typeof n!="symbol"?n+"":n,e);import{B as de,H as c,ai as _r,bH as Fr,z as Bn,c as gt,j as _,r as ee,b3 as xe,b8 as rt,ar as R,as as Z,av as se,au as Ye,at as Sn,ay as Te,ax as pt,bF as An,w as st,b as Se,aI as jt,n as ut,D as En,aC as lt,J as Rr,b2 as De,aD as Vr,E as Yr,aL as G,M as Hr,ap as $n,an as zn,aO as Un,aV as qn,bN as Br,b0 as Xt,b4 as ct,bM as cn,bR as Ct,t as Ot,L as Sr,A as Pe,aj as Ar,aG as dn,v as fn,bL as mn,a_ as Er,bS as $r,aY as Nt}from"./_plugin-vue_export-helper.js";import{o as k,q as ke,P as Je,Q as zr,f as Ur,d as Ut,R as qr,p as Lr,B as Wr,V as Qr,i as jr,j as Xr,v as hn,w as Gr,T as Zr,A as qt,U as Kr}from"./main.js";import{e as Ln,u as Gt}from"./use-locale.js";import{F as Jr,A as ea}from"./Select.js";import{_ as Ze}from"./Input.js";import{_ as ta}from"./Scrollbar.js";import{m as na}from"./index.js";import{_ as Wn}from"./Avatar.js";import{_ as ra}from"./Tag.js";const aa=de({name:"ArrowUp",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},c("g",{fill:"none"},c("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}}),Qn=de({name:"Remove",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
fill: none; fill: none;
stroke: currentColor; stroke: currentColor;
stroke-linecap: round; stroke-linecap: round;

View file

@ -83,6 +83,7 @@ const screencap_options = computed(() => {
const tested = ref(false) const tested = ref(false)
const image = ref('') const image = ref('')
const elapsed = ref(0) const elapsed = ref(0)
const screenshot_success = ref(true)
const loading = ref(false) const loading = ref(false)
const axios = inject('axios') const axios = inject('axios')
@ -90,9 +91,12 @@ async function test_screenshot() {
loading.value = true loading.value = true
tested.value = false tested.value = false
try { try {
const response = await axios.get(`${import.meta.env.VITE_HTTP_URL}/test-custom-screenshot`) const response = await axios.get(`${import.meta.env.VITE_HTTP_URL}/test-screenshot`)
image.value = response.data.screenshot screenshot_success.value = response.data.success
elapsed.value = response.data.elapsed if (screenshot_success.value) {
image.value = response.data.screenshot
elapsed.value = response.data.elapsed
}
} finally { } finally {
loading.value = false loading.value = false
tested.value = true tested.value = true
@ -108,6 +112,18 @@ const scene_name = {
LOGIN_MAIN_NOENTRY: '登录页面(无按钮入口)', LOGIN_MAIN_NOENTRY: '登录页面(无按钮入口)',
OPERATOR_ONGOING: '代理作战' OPERATOR_ONGOING: '代理作战'
} }
const screenshot_type = computed(() => {
if (elapsed.value <= 50) {
return 'success'
} else if (elapsed.value <= 200) {
return 'default'
} else if (elapsed.value <= 500) {
return 'warning'
} else {
return 'error'
}
})
</script> </script>
<template> <template>
@ -194,6 +210,7 @@ const scene_name = {
</template> </template>
<n-input v-model:value="conf.adb" /> <n-input v-model:value="conf.adb" />
</n-form-item> </n-form-item>
<n-divider />
<n-form-item label="截图方案"> <n-form-item label="截图方案">
<n-select v-model:value="conf.screencap_strategy" :options="screencap_options" /> <n-select v-model:value="conf.screencap_strategy" :options="screencap_options" />
</n-form-item> </n-form-item>
@ -229,14 +246,23 @@ const scene_name = {
type="textarea" type="textarea"
:autosize="true" :autosize="true"
/> />
<n-button class="dialog-btn" @click="test_screenshot" :loading="loading">
测试
</n-button>
</n-form-item> </n-form-item>
<n-form-item v-if="conf.screencap_strategy == 'diy' && tested" :show-label="false"> <n-form-item :show-label="false">
<n-flex vertical> <n-flex vertical style="gap: 12px">
<n-image :src="'data:image/jpeg;base64,' + image" width="100%" /> <n-flex align="center" style="gap: 12px">
<div>截图用时{{ elapsed }}ms</div> <n-button @click="test_screenshot" :loading="loading">测试截图设置</n-button>
<div v-if="tested">
<template v-if="screenshot_success">
截图用时<n-text strong :type="screenshot_type">{{ elapsed }}ms</n-text>
</template>
<n-text type="error" v-else>截图失败</n-text>
</div>
</n-flex>
<n-image
v-if="tested && screenshot_success"
:src="'data:image/jpeg;base64,' + image"
width="100%"
/>
</n-flex> </n-flex>
</n-form-item> </n-form-item>
<n-divider /> <n-divider />