This commit is contained in:
vastxie
2024-03-15 17:40:19 +08:00
parent 4de54d8fec
commit 19254a8176
305 changed files with 8751 additions and 9416 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

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,56 +0,0 @@
import{ap as t,ao as r,aQ as o,d as a,ax as d,ca as s,aa as p}from"./index-ff703318.js";const n=t("input-group",`
display: inline-flex;
width: 100%;
flex-wrap: nowrap;
vertical-align: bottom;
`,[r(">",[t("input",[r("&:not(:last-child)",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),r("&:not(:first-child)",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
margin-left: -1px!important;
`)]),t("button",[r("&:not(:last-child)",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`,[o("state-border, border",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`)]),r("&:not(:first-child)",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`,[o("state-border, border",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`)])]),r("*",[r("&:not(:last-child)",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`,[r(">",[t("input",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),t("base-selection",[t("base-selection-label",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),t("base-selection-tags",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),o("box-shadow, border, state-border",`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`)])])]),r("&:not(:first-child)",`
margin-left: -1px!important;
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`,[r(">",[t("input",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),t("base-selection",[t("base-selection-label",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),t("base-selection-tags",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),o("box-shadow, border, state-border",`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`)])])])])])]),b={},u=a({name:"InputGroup",props:b,setup(i){const{mergedClsPrefixRef:e}=d(i);return s("-input-group",n,e),{mergedClsPrefix:e}},render(){const{mergedClsPrefix:i}=this;return p("div",{class:`${i}-input-group`},this.$slots)}});export{u as N};

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

View File

@@ -0,0 +1 @@
.loading[data-v-bb93d450]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:100;-webkit-user-select:none;-moz-user-select:none;user-select:none}.progress[data-v-bb93d450]{position:absolute;bottom:0;left:50%;transform:translate(-50%)}.loading-text[data-v-bb93d450]{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;text-align:center;width:100%;height:110px;line-height:100px;z-index:1000}.loading-text span[data-v-bb93d450]{display:inline-block;margin:0 5px;color:#fff;font-family:Quattrocento Sans,sans-serif}.loading-text span[data-v-bb93d450]:nth-child(1){filter:blur(0px);animation:blur-text-bb93d450 1.5s 0s infinite linear alternate}.loading-text span[data-v-bb93d450]:nth-child(2){filter:blur(0px);animation:blur-text-bb93d450 1.5s .2s infinite linear alternate}.loading-text span[data-v-bb93d450]:nth-child(3){filter:blur(0px);animation:blur-text-bb93d450 1.5s .4s infinite linear alternate}.loading-text span[data-v-bb93d450]:nth-child(4){filter:blur(0px);animation:blur-text-bb93d450 1.5s .6s infinite linear alternate}.loading-text span[data-v-bb93d450]:nth-child(5){filter:blur(0px);animation:blur-text-bb93d450 1.5s .8s infinite linear alternate}.loading-text span[data-v-bb93d450]:nth-child(6){filter:blur(0px);animation:blur-text-bb93d450 1.5s 1s infinite linear alternate}.loading-text span[data-v-bb93d450]:nth-child(7){filter:blur(0px);animation:blur-text-bb93d450 1.5s 1.2s infinite linear alternate}@keyframes blur-text-bb93d450{0%{filter:blur(0px)}to{filter:blur(4px)}}

View File

@@ -0,0 +1 @@
import{g,aa as u,k as n,F as s,G as m,O as f,P as v,S as t,Z as d,N as p,E as o,an as y}from"./index-d574bfe0.js";const k={class:"loading-text"},b={key:0,class:"progress"},h={key:1,class:"progress"},x=g({__name:"Loading",props:{gap:{default:10},progress:{default:0},tips:{default:""},bgColor:{},words:{default:["L","O","A","D","I","N","G"]}},setup(l){const e=l,c=u(),i=n(()=>c.theme),_=n(()=>i.value==="dark"?"#fff":"#000");return(a,L)=>(o(),s("div",{class:"loading",style:p({background:e.bgColor})},[m("div",k,[(o(!0),s(f,null,v(e.words,r=>(o(),s("span",{key:r,style:p({margin:`0 ${e.gap}px`,color:_.value}),class:"loading-text-words"},t(r),5))),128))]),!a.tips&&e.progress?(o(),s("div",b," 绘制进度: "+t(e.progress)+"% ",1)):d("",!0),a.tips?(o(),s("div",h,t(e.tips),1)):d("",!0)],4))}});const S=y(x,[["__scopeId","data-v-bb93d450"]]);export{S as L};

View File

@@ -0,0 +1,16 @@
import{aV as O,g as b,ci as h,u as _,az as j,k as f,n as w,t as m,x as P,s as a,bn as B,cs as R,ae as C,aO as I,aR as $,a as x,d as g,c as k,h as z,r as F,aH as U,ct as V,cu as E,Y as K,cv as q,cR as H,A as T}from"./index-d574bfe0.js";const N=O("n-popconfirm"),S={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},y=R(S),L=b({name:"NPopconfirmPanel",props:S,setup(e){const{localeRef:n}=h("Popconfirm"),{inlineThemeDisabled:s}=_(),{mergedClsPrefixRef:t,mergedThemeRef:v,props:r}=j(N),u=f(()=>{const{common:{cubicBezierEaseInOut:o},self:{fontSize:l,iconSize:c,iconColor:d}}=v.value;return{"--n-bezier":o,"--n-font-size":l,"--n-icon-size":c,"--n-icon-color":d}}),i=s?w("popconfirm-panel",void 0,u,r):void 0;return Object.assign(Object.assign({},h("Popconfirm")),{mergedClsPrefix:t,cssVars:s?void 0:u,localizedPositiveText:f(()=>e.positiveText||n.value.positiveText),localizedNegativeText:f(()=>e.negativeText||n.value.negativeText),positiveButtonProps:m(r,"positiveButtonProps"),negativeButtonProps:m(r,"negativeButtonProps"),handlePositiveClick(o){e.onPositiveClick(o)},handleNegativeClick(o){e.onNegativeClick(o)},themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender})},render(){var e;const{mergedClsPrefix:n,showIcon:s,$slots:t}=this,v=P(t.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&a(C,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&a(C,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{class:[`${n}-popconfirm__panel`,this.themeClass],style:this.cssVars},B(t.default,r=>s||r?a("div",{class:`${n}-popconfirm__body`},s?a("div",{class:`${n}-popconfirm__icon`},P(t.icon,()=>[a(I,{clsPrefix:n},{default:()=>a($,null)})])):null,r):null),v?a("div",{class:[`${n}-popconfirm__action`]},v):null)}}),M=x("popconfirm",[g("body",`
font-size: var(--n-font-size);
display: flex;
align-items: center;
flex-wrap: nowrap;
position: relative;
`,[g("icon",`
display: flex;
font-size: var(--n-icon-size);
color: var(--n-icon-color);
transition: color .3s var(--n-bezier);
margin: 0 8px 0 0;
`)]),g("action",`
display: flex;
justify-content: flex-end;
`,[k("&:not(:first-child)","margin-top: 8px"),x("button",[k("&:not(:last-child)","margin-right: 8px;")])])]),W=Object.assign(Object.assign(Object.assign({},z.props),q),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),D=b({name:"Popconfirm",props:W,__popover__:!0,setup(e){const{mergedClsPrefixRef:n}=_(),s=z("Popconfirm","-popconfirm",M,H,e,n),t=F(null);function v(i){var o;if(!(!((o=t.value)===null||o===void 0)&&o.getMergedShow()))return;const{onPositiveClick:l,"onUpdate:show":c}=e;Promise.resolve(l?l(i):!0).then(d=>{var p;d!==!1&&((p=t.value)===null||p===void 0||p.setShow(!1),c&&T(c,!1))})}function r(i){var o;if(!(!((o=t.value)===null||o===void 0)&&o.getMergedShow()))return;const{onNegativeClick:l,"onUpdate:show":c}=e;Promise.resolve(l?l(i):!0).then(d=>{var p;d!==!1&&((p=t.value)===null||p===void 0||p.setShow(!1),c&&T(c,!1))})}return U(N,{mergedThemeRef:s,mergedClsPrefixRef:n,props:e}),{setShow(i){var o;(o=t.value)===null||o===void 0||o.setShow(i)},syncPosition(){var i;(i=t.value)===null||i===void 0||i.syncPosition()},mergedTheme:s,popoverInstRef:t,handlePositiveClick:v,handleNegativeClick:r}},render(){const{$slots:e,$props:n,mergedTheme:s}=this;return a(K,E(n,y,{theme:s.peers.Popover,themeOverrides:s.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const t=V(n,y);return a(L,Object.assign(Object.assign({},t),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}});export{D as N};

View File

@@ -1,16 +0,0 @@
import{aC as O,d as y,c6 as m,ax as b,aD as _,e as u,aB as B,aT as g,aG as h,aa as a,ba as S,cn as w,I as P,as as R,av as I,ap as C,aQ as f,ao as x,ay as N,r as $,cp as F,cr as U,N as V,cs as E,cY as K,aZ as T,aV as q}from"./index-ff703318.js";const j=O("n-popconfirm"),z={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},k=w(z),D=y({name:"NPopconfirmPanel",props:z,setup(e){const{localeRef:t}=m("Popconfirm"),{inlineThemeDisabled:s}=b(),{mergedClsPrefixRef:n,mergedThemeRef:p,props:l}=_(j),d=u(()=>{const{common:{cubicBezierEaseInOut:i},self:{fontSize:c,iconSize:v,iconColor:r}}=p.value;return{"--n-bezier":i,"--n-font-size":c,"--n-icon-size":v,"--n-icon-color":r}}),o=s?B("popconfirm-panel",void 0,d,l):void 0;return Object.assign(Object.assign({},m("Popconfirm")),{mergedClsPrefix:n,cssVars:s?void 0:d,localizedPositiveText:u(()=>e.positiveText||t.value.positiveText),localizedNegativeText:u(()=>e.negativeText||t.value.negativeText),positiveButtonProps:g(l,"positiveButtonProps"),negativeButtonProps:g(l,"negativeButtonProps"),handlePositiveClick(i){e.onPositiveClick(i)},handleNegativeClick(i){e.onNegativeClick(i)},themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:s,$slots:n}=this,p=h(n.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&a(P,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&a(P,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),a("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},S(n.default,l=>s||l?a("div",{class:`${t}-popconfirm__body`},s?a("div",{class:`${t}-popconfirm__icon`},h(n.icon,()=>[a(R,{clsPrefix:t},{default:()=>a(I,null)})])):null,l):null),p?a("div",{class:[`${t}-popconfirm__action`]},p):null)}}),L=C("popconfirm",[f("body",`
font-size: var(--n-font-size);
display: flex;
align-items: center;
flex-wrap: nowrap;
position: relative;
`,[f("icon",`
display: flex;
font-size: var(--n-icon-size);
color: var(--n-icon-color);
transition: color .3s var(--n-bezier);
margin: 0 8px 0 0;
`)]),f("action",`
display: flex;
justify-content: flex-end;
`,[x("&:not(:first-child)","margin-top: 8px"),C("button",[x("&:not(:last-child)","margin-right: 8px;")])])]),M=Object.assign(Object.assign(Object.assign({},N.props),E),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),G=y({name:"Popconfirm",props:M,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=b(),s=N("Popconfirm","-popconfirm",L,K,e,t),n=$(null);function p(o){const{onPositiveClick:i,"onUpdate:show":c}=e;Promise.resolve(i?i(o):!0).then(v=>{var r;v!==!1&&((r=n.value)===null||r===void 0||r.setShow(!1),c&&T(c,!1))})}function l(o){const{onNegativeClick:i,"onUpdate:show":c}=e;Promise.resolve(i?i(o):!0).then(v=>{var r;v!==!1&&((r=n.value)===null||r===void 0||r.setShow(!1),c&&T(c,!1))})}return q(j,{mergedThemeRef:s,mergedClsPrefixRef:t,props:e}),Object.assign(Object.assign({},{setShow(o){var i;(i=n.value)===null||i===void 0||i.setShow(o)},syncPosition(){var o;(o=n.value)===null||o===void 0||o.syncPosition()}}),{mergedTheme:s,popoverInstRef:n,handlePositiveClick:p,handleNegativeClick:l})},render(){const{$slots:e,$props:t,mergedTheme:s}=this;return a(V,U(t,k,{theme:s.peers.Popover,themeOverrides:s.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const n=F(t,k);return a(D,Object.assign(Object.assign({},n),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}});export{G as N};

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{ap as H,aQ as t,aR as I,ao as K,aq as o,b8 as E,d as se,ax as de,ay as O,aS as ce,r as P,aT as ue,aU as he,e as V,aB as be,b9 as U,aa as i,ba as f,bb as fe,aA as v,bc as M,bd as r,aM as ve,be as ge,aZ as j}from"./index-ff703318.js";const we=H("switch",`
import{a as M,d as t,b6 as I,c as D,b as o,bj as E,g as se,u as de,h as O,j as ce,r as K,t as ue,l as he,k as V,aU as f,bk as P,bl as r,n as be,bm as U,s as a,bn as v,bo as fe,b1 as ve,bp as ge,A}from"./index-d574bfe0.js";const we=M("switch",`
height: var(--n-height);
min-width: var(--n-width);
vertical-align: middle;
@@ -21,7 +21,7 @@ import{ap as H,aQ as t,aR as I,ao as K,aq as o,b8 as E,d as se,ax as de,ay as O,
`),t("button-placeholder",`
width: calc(1.75 * var(--n-rail-height));
height: var(--n-rail-height);
`),H("base-loading",`
`),M("base-loading",`
position: absolute;
top: 50%;
left: 50%;
@@ -47,9 +47,9 @@ import{ap as H,aQ as t,aR as I,ao as K,aq as o,b8 as E,d as se,ax as de,ay as O,
left: 0;
justify-content: flex-end;
padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
`),K("&:focus",[t("rail",`
`),D("&:focus",[t("rail",`
box-shadow: var(--n-box-shadow-focus);
`)]),o("round",[t("rail","border-radius: calc(var(--n-rail-height) / 2);",[t("button","border-radius: calc(var(--n-button-height) / 2);")])]),E("disabled",[E("icon",[o("rubber-band",[o("pressed",[t("rail",[t("button","max-width: var(--n-button-width-pressed);")])]),t("rail",[K("&:active",[t("button","max-width: var(--n-button-width-pressed);")])]),o("active",[o("pressed",[t("rail",[t("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),t("rail",[K("&:active",[t("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),o("active",[t("rail",[t("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),t("rail",`
`)]),o("round",[t("rail","border-radius: calc(var(--n-rail-height) / 2);",[t("button","border-radius: calc(var(--n-button-height) / 2);")])]),E("disabled",[E("icon",[o("rubber-band",[o("pressed",[t("rail",[t("button","max-width: var(--n-button-width-pressed);")])]),t("rail",[D("&:active",[t("button","max-width: var(--n-button-width-pressed);")])]),o("active",[o("pressed",[t("rail",[t("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),t("rail",[D("&:active",[t("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),o("active",[t("rail",[t("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),t("rail",`
overflow: hidden;
height: var(--n-rail-height);
min-width: var(--n-rail-width);
@@ -99,4 +99,4 @@ import{ap as H,aQ as t,aR as I,ao as K,aq as o,b8 as E,d as se,ax as de,ay as O,
`)]),o("disabled",[t("rail",`
cursor: not-allowed;
opacity: .5;
`)])]),me=Object.assign(Object.assign({},O.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let k;const ye=se({name:"Switch",props:me,setup(e){k===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?k=CSS.supports("width","max(1px)"):k=!1:k=!0);const{mergedClsPrefixRef:S,inlineThemeDisabled:m}=de(e),z=O("Switch","-switch",we,fe,e,S),l=ce(e),{mergedSizeRef:$,mergedDisabledRef:h}=l,p=P(e.defaultValue),B=ue(e,"value"),b=he(B,p),y=V(()=>b.value===e.checkedValue),g=P(!1),n=P(!1),s=V(()=>{const{railStyle:a}=e;if(a)return a({focused:n.value,checked:y.value})});function d(a){const{"onUpdate:value":C,onChange:R,onUpdateValue:_}=e,{nTriggerFormInput:F,nTriggerFormChange:T}=l;C&&j(C,a),_&&j(_,a),R&&j(R,a),p.value=a,F(),T()}function L(){const{nTriggerFormFocus:a}=l;a()}function X(){const{nTriggerFormBlur:a}=l;a()}function Y(){e.loading||h.value||(b.value!==e.checkedValue?d(e.checkedValue):d(e.uncheckedValue))}function q(){n.value=!0,L()}function Q(){n.value=!1,X(),g.value=!1}function Z(a){e.loading||h.value||a.key===" "&&(b.value!==e.checkedValue?d(e.checkedValue):d(e.uncheckedValue),g.value=!1)}function G(a){e.loading||h.value||a.key===" "&&(a.preventDefault(),g.value=!0)}const A=V(()=>{const{value:a}=$,{self:{opacityDisabled:C,railColor:R,railColorActive:_,buttonBoxShadow:F,buttonColor:T,boxShadowFocus:J,loadingColor:ee,textColor:te,iconColor:ae,[v("buttonHeight",a)]:c,[v("buttonWidth",a)]:ne,[v("buttonWidthPressed",a)]:ie,[v("railHeight",a)]:u,[v("railWidth",a)]:x,[v("railBorderRadius",a)]:oe,[v("buttonBorderRadius",a)]:re},common:{cubicBezierEaseInOut:le}}=z.value;let N,W,D;return k?(N=`calc((${u} - ${c}) / 2)`,W=`max(${u}, ${c})`,D=`max(${x}, calc(${x} + ${c} - ${u}))`):(N=M((r(u)-r(c))/2),W=M(Math.max(r(u),r(c))),D=r(u)>r(c)?x:M(r(x)+r(c)-r(u))),{"--n-bezier":le,"--n-button-border-radius":re,"--n-button-box-shadow":F,"--n-button-color":T,"--n-button-width":ne,"--n-button-width-pressed":ie,"--n-button-height":c,"--n-height":W,"--n-offset":N,"--n-opacity-disabled":C,"--n-rail-border-radius":oe,"--n-rail-color":R,"--n-rail-color-active":_,"--n-rail-height":u,"--n-rail-width":x,"--n-width":D,"--n-box-shadow-focus":J,"--n-loading-color":ee,"--n-text-color":te,"--n-icon-color":ae}}),w=m?be("switch",V(()=>$.value[0]),A,e):void 0;return{handleClick:Y,handleBlur:Q,handleFocus:q,handleKeyup:Z,handleKeydown:G,mergedRailStyle:s,pressed:g,mergedClsPrefix:S,mergedValue:b,checked:y,mergedDisabled:h,cssVars:m?void 0:A,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:S,checked:m,mergedRailStyle:z,onRender:l,$slots:$}=this;l==null||l();const{checked:h,unchecked:p,icon:B,"checked-icon":b,"unchecked-icon":y}=$,g=!(U(B)&&U(b)&&U(y));return i("div",{role:"switch","aria-checked":m,class:[`${e}-switch`,this.themeClass,g&&`${e}-switch--icon`,m&&`${e}-switch--active`,S&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},i("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:z},f(h,n=>f(p,s=>n||s?i("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},i("div",{class:`${e}-switch__rail-placeholder`},i("div",{class:`${e}-switch__button-placeholder`}),n),i("div",{class:`${e}-switch__rail-placeholder`},i("div",{class:`${e}-switch__button-placeholder`}),s)):null)),i("div",{class:`${e}-switch__button`},f(B,n=>f(b,s=>f(y,d=>i(ve,null,{default:()=>this.loading?i(ge,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(s||n)?i("div",{class:`${e}-switch__button-icon`,key:s?"checked-icon":"icon"},s||n):!this.checked&&(d||n)?i("div",{class:`${e}-switch__button-icon`,key:d?"unchecked-icon":"icon"},d||n):null})))),f(h,n=>n&&i("div",{key:"checked",class:`${e}-switch__checked`},n)),f(p,n=>n&&i("div",{key:"unchecked",class:`${e}-switch__unchecked`},n)))))}});export{ye as N};
`)])]),me=Object.assign(Object.assign({},O.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let x;const ye=se({name:"Switch",props:me,setup(e){x===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?x=CSS.supports("width","max(1px)"):x=!1:x=!0);const{mergedClsPrefixRef:S,inlineThemeDisabled:m}=de(e),z=O("Switch","-switch",we,fe,e,S),l=ce(e),{mergedSizeRef:$,mergedDisabledRef:h}=l,p=K(e.defaultValue),C=ue(e,"value"),b=he(C,p),y=V(()=>b.value===e.checkedValue),g=K(!1),i=K(!1),s=V(()=>{const{railStyle:n}=e;if(n)return n({focused:i.value,checked:y.value})});function d(n){const{"onUpdate:value":B,onChange:R,onUpdateValue:_}=e,{nTriggerFormInput:F,nTriggerFormChange:T}=l;B&&A(B,n),_&&A(_,n),R&&A(R,n),p.value=n,F(),T()}function L(){const{nTriggerFormFocus:n}=l;n()}function X(){const{nTriggerFormBlur:n}=l;n()}function Y(){e.loading||h.value||(b.value!==e.checkedValue?d(e.checkedValue):d(e.uncheckedValue))}function q(){i.value=!0,L()}function G(){i.value=!1,X(),g.value=!1}function J(n){e.loading||h.value||n.key===" "&&(b.value!==e.checkedValue?d(e.checkedValue):d(e.uncheckedValue),g.value=!1)}function Q(n){e.loading||h.value||n.key===" "&&(n.preventDefault(),g.value=!0)}const H=V(()=>{const{value:n}=$,{self:{opacityDisabled:B,railColor:R,railColorActive:_,buttonBoxShadow:F,buttonColor:T,boxShadowFocus:Z,loadingColor:ee,textColor:te,iconColor:ne,[f("buttonHeight",n)]:c,[f("buttonWidth",n)]:ie,[f("buttonWidthPressed",n)]:ae,[f("railHeight",n)]:u,[f("railWidth",n)]:k,[f("railBorderRadius",n)]:oe,[f("buttonBorderRadius",n)]:re},common:{cubicBezierEaseInOut:le}}=z.value;let N,W,j;return x?(N=`calc((${u} - ${c}) / 2)`,W=`max(${u}, ${c})`,j=`max(${k}, calc(${k} + ${c} - ${u}))`):(N=P((r(u)-r(c))/2),W=P(Math.max(r(u),r(c))),j=r(u)>r(c)?k:P(r(k)+r(c)-r(u))),{"--n-bezier":le,"--n-button-border-radius":re,"--n-button-box-shadow":F,"--n-button-color":T,"--n-button-width":ie,"--n-button-width-pressed":ae,"--n-button-height":c,"--n-height":W,"--n-offset":N,"--n-opacity-disabled":B,"--n-rail-border-radius":oe,"--n-rail-color":R,"--n-rail-color-active":_,"--n-rail-height":u,"--n-rail-width":k,"--n-width":j,"--n-box-shadow-focus":Z,"--n-loading-color":ee,"--n-text-color":te,"--n-icon-color":ne}}),w=m?be("switch",V(()=>$.value[0]),H,e):void 0;return{handleClick:Y,handleBlur:G,handleFocus:q,handleKeyup:J,handleKeydown:Q,mergedRailStyle:s,pressed:g,mergedClsPrefix:S,mergedValue:b,checked:y,mergedDisabled:h,cssVars:m?void 0:H,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:S,checked:m,mergedRailStyle:z,onRender:l,$slots:$}=this;l==null||l();const{checked:h,unchecked:p,icon:C,"checked-icon":b,"unchecked-icon":y}=$,g=!(U(C)&&U(b)&&U(y));return a("div",{role:"switch","aria-checked":m,class:[`${e}-switch`,this.themeClass,g&&`${e}-switch--icon`,m&&`${e}-switch--active`,S&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},a("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:z},v(h,i=>v(p,s=>i||s?a("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},a("div",{class:`${e}-switch__rail-placeholder`},a("div",{class:`${e}-switch__button-placeholder`}),i),a("div",{class:`${e}-switch__rail-placeholder`},a("div",{class:`${e}-switch__button-placeholder`}),s)):null)),a("div",{class:`${e}-switch__button`},v(C,i=>v(b,s=>v(y,d=>a(ve,null,{default:()=>this.loading?a(ge,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(s||i)?a("div",{class:`${e}-switch__button-icon`,key:s?"checked-icon":"icon"},s||i):!this.checked&&(d||i)?a("div",{class:`${e}-switch__button-icon`,key:d?"unchecked-icon":"icon"},d||i):null})))),v(h,i=>i&&a("div",{key:"checked",class:`${e}-switch__checked`},i)),v(p,i=>i&&a("div",{key:"unchecked",class:`${e}-switch__unchecked`},i)))))}});export{ye as N};

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
@keyframes rotateAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rotate-icon{animation:rotateAnimation 3s linear infinite;transform-origin:center}.markdown-body{background-color:transparent;font-size:1rem}.markdown-body p{white-space:pre-wrap;margin-right:1rem}.markdown-body ol{list-style-type:decimal}.markdown-body ul{list-style-type:disc}.markdown-body pre code,.markdown-body pre tt{line-height:1.65}.markdown-body .highlight pre,.markdown-body pre{background-color:#1f2937}.markdown-body code.hljs{padding:0}.markdown-body .code-block-wrapper{position:relative;padding-top:2rem;margin-right:1rem}.markdown-body .code-block-header{position:absolute;top:5px;right:0;width:100%;padding:0 1rem;display:flex;justify-content:space-between;align-items:center;color:#b3b3b3}.markdown-body .code-block-header__copy{cursor:pointer;margin-left:.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.markdown-body .code-block-header__copy:hover{color:#65a665}.whitespace-pre-wrap{background-color:transparent;font-size:1rem}

View File

@@ -1 +0,0 @@
.markdown-body{background-color:transparent;font-size:14px}.markdown-body p{white-space:pre-wrap}.markdown-body ol{list-style-type:decimal}.markdown-body ul{list-style-type:disc}.markdown-body pre code,.markdown-body pre tt{line-height:1.65}.markdown-body .highlight pre,.markdown-body pre{background-color:#fff}.markdown-body code.hljs{padding:0}.markdown-body .code-block-wrapper{position:relative;padding-top:24px}.markdown-body .code-block-header{position:absolute;top:5px;right:0;width:100%;padding:0 1rem;display:flex;justify-content:flex-end;align-items:center;color:#b3b3b3}.markdown-body .code-block-header__copy{cursor:pointer;margin-left:.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.markdown-body .code-block-header__copy:hover{color:#65a665}html.dark .message-reply .whitespace-pre-wrap{white-space:pre-wrap;color:var(--n-text-color)}html.dark .highlight pre,html.dark pre{background-color:#282c34}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

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 +0,0 @@
import{d as E,f as b,ac as B,r as I,e as c,D as S,w as C,h as D,cT as L,Z as F,c as h,E as g,m as r,a as i,s as M,cU as T,B as U,o as _}from"./index-ff703318.js";const W={class:"w-full h-full relative"},A={class:"loading"},N=U('<span class="loading-text-words">内</span><span class="loading-text-words">容</span><span class="loading-text-words">正</span><span class="loading-text-words">在</span><span class="loading-text-words">加</span><span class="loading-text-words">载</span><span class="loading-text-words">中</span>',7),V=[N],G=["src"],O=E({__name:"index",setup(j){const v=b(),l=B(),n=I(!1),u=c(()=>l.iframeUrl),o=S(),m=c(()=>o.theme==="dark");function w(){const e=document.getElementById("iframe");e!=null&&e.addEventListener||e==null||e.attachEvent("onload",d),e==null||e.addEventListener("load",d,!0)}const p=c(()=>o.theme);C(p,e=>{s({type:"theme",data:e})}),D(()=>{if(!u.value)return v.push("/");n.value=!0,w(),window.addEventListener("message",f)});async function f(e){const{type:t,data:a}=e.data;t==="theme"&&o.setTheme(a==="dark"?"dark":"light"),t==="chat"&&x(a)}function x(e){L({prompt:e}).then(t=>{const{code:a,data:k}=t;a===200&&s({type:"chat",data:y(k)})})}function y(e){const t=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return e.replace(t,"")}function s(e){document.getElementById("iframe").contentWindow.postMessage(e,"*")}function d(){s({type:"theme",data:p.value});const e=T();e&&s({type:"token",data:e}),n.value=!1}return F(()=>{l.updateIframeUrl("");const e=document.getElementById("iframe");e==null||e.removeEventListener("load",d),window.removeEventListener("message",f)}),(e,t)=>(_(),h("div",W,[n.value?(_(),h("div",{key:0,class:g(["main-container absolute left-0 right-0 bottom-0 top-0 backdrop-blur",[r(m)?"dark:bg-black/20":"bg-white/80"]])},[i("div",A,[i("div",{class:g(["loading-text ",r(m)?"text-[#fff]":"text-[#000]"]),id:"loading-text"},V,2)])],2)):M("",!0),i("iframe",{id:"iframe",src:r(u),style:{width:"100%",height:"100%",border:"none"}},null,8,G)]))}});export{O as default};

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

View File

@@ -1 +0,0 @@
.wapper{width:100%;position:relative;height:100%;padding-bottom:20px}.wapper-item{z-index:10;overflow:hidden;position:absolute;transition:all .5s;cursor:pointer}.wapper-item:hover .menu{transition:transform .3s ease-in-out;transform:translateY(-10px)}.wapper-item:hover img{transform:scale(1.1)}.wapper-item .menu{position:absolute;bottom:0;width:94%;left:3%;max-height:70%;height:100px;transform:translateY(100%);background-color:#090b15;opacity:.8;transition:all .1s cubic-bezier(.68,-.55,.265,1.55);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.wapper-item .menu .prompt{height:50px;overflow:hidden}.wapper-item img{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;transition:all .6s cubic-bezier(.19,1,.22,1);border-radius:6px}.wapper-item .item-loading{background:url(../../assets/img-bg.png) no-repeat center center;filter:blur(20px);position:absolute;top:0}.img-enter-active,.img-leave-active{transition:transform .3s}.img-enter,.img-leave-to{transform:scale(.6);opacity:0}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{g as k,K as E,aC as b,r as B,k as c,aa as C,w as I,L,cN as S,m as F,F as h,aq as f,G as r,Z as D,cO as M,E as g,cP as N}from"./index-d574bfe0.js";const W={class:"w-full h-full relative"},A={class:"loading"},G=N('<span class="loading-text-words">内</span><span class="loading-text-words">容</span><span class="loading-text-words">正</span><span class="loading-text-words">在</span><span class="loading-text-words">加</span><span class="loading-text-words">载</span><span class="loading-text-words">中</span>',7),T=[G],U=["src"],j=k({__name:"index",setup(V){const _=E(),l=b(),n=B(!1),i=c(()=>l.iframeUrl),o=C(),u=c(()=>o.theme==="dark");function v(){const e=document.getElementById("iframe");e!=null&&e.addEventListener||e==null||e.attachEvent("onload",d),e==null||e.addEventListener("load",d,!0)}const m=c(()=>o.theme);I(m,e=>{s({type:"theme",data:e})}),L(()=>{if(!i.value)return _.push("/");n.value=!0,v(),window.addEventListener("message",p)});async function p(e){const{type:t,data:a}=e.data;t==="theme"&&o.setTheme(a==="dark"?"dark":"light"),t==="chat"&&w(a)}function w(e){S({prompt:e}).then(t=>{const{code:a,data:y}=t;a===200&&s({type:"chat",data:x(y)})})}function x(e){const t=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return e.replace(t,"")}function s(e){document.getElementById("iframe").contentWindow.postMessage(e,"*")}function d(){s({type:"theme",data:m.value});const e=M();e&&s({type:"token",data:e}),n.value=!1}return F(()=>{l.updateIframeUrl("");const e=document.getElementById("iframe");e==null||e.removeEventListener("load",d),window.removeEventListener("message",p)}),(e,t)=>(g(),h("div",W,[n.value?(g(),h("div",{key:0,class:f(["main-container absolute left-0 right-0 bottom-0 top-0 backdrop-blur",[u.value?"dark:bg-black/20":"bg-white/80"]])},[r("div",A,[r("div",{class:f(["loading-text ",u.value?"text-[#fff]":"text-[#000]"]),id:"loading-text"},T,2)])],2)):D("",!0),r("iframe",{id:"iframe",src:i.value,style:{width:"100%",height:"100%",border:"none"}},null,8,U)]))}});export{j as default};

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 +0,0 @@
canvas[data-v-264952df]{border:1px solid #ddd}

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
@import"https://fonts.googleapis.com/css?family=Fredoka+One";.welcome{display:flex;justify-content:center;align-items:center;height:100vh;background-size:100% 100%}.store-container{line-height:0;margin:50px auto;width:50%}@media only screen and (max-width: 768px){.store-container{width:100%}}@media only screen and (min-width: 769px) and (max-width: 1200px){.store-container{width:80%}}@media only screen and (min-width: 1201px){.store-container{width:50%}}.stroke{stroke:#0170bb;stroke-width:5;stroke-linejoin:round;stroke-miterlimit:10}.round-end{stroke-linecap:round}#store{animation:fadeIn .8s ease-in}.border-animation{background-color:#fff;border-radius:10px;position:relative}.border-animation:after{content:"";background:linear-gradient(45deg,#ccc 48.9%,#0170bb 49%);background-size:300% 300%;border-radius:10px;position:absolute;top:-5px;left:-5px;height:calc(100% + 10px);width:calc(100% + 10px);z-index:-1;animation:borderGradient 8s linear both infinite}@keyframes borderGradient{0%,to{background-position:0% 100%}50%{background-position:100% 0%}}@keyframes fadeIn{to{opacity:1}}#browser{transform:translateY(-100%);animation:moveDown 1.5s cubic-bezier(.77,-.5,.3,1.5) forwards}@keyframes moveDown{0%{transform:translateY(-100%)}to{transform:translate(0)}}#toldo{animation:fadeIn 1s 1.4s ease-in forwards}.grass{animation:fadeIn .5s 1.6s ease-in forwards}#window{animation:fadeIn .5s 1.8s ease-in forwards}#door{animation:fadeIn .5s 2s ease-in forwards}#sign{transform-origin:837px 597px;animation:pendulum 1.5s 2s ease-in-out alternate}.trees{animation:fadeIn .5s 2.2s ease-in forwards}#toldo,.grass,#window,#door,.trees,.cat,.cat-shadow,.box,.parachute,.tshirt,.cap,.ball,#text,#button,.sky-circle,.sky-circle2,.sky-circle3{opacity:0}@keyframes pendulum{20%{transform:rotate(60deg)}40%{transform:rotate(-40deg)}60%{transform:rotate(20deg)}80%{transform:rotate(-5deg)}}.cat{transform-origin:1145px 620px}.cat-shadow{transform-origin:1115px 625px}#store:hover .cat{animation:catHi 3s 3s cubic-bezier(.7,-.5,.3,1.4)}#store:hover .cat-shadow{animation:catShadow 4s 2s cubic-bezier(.7,-.5,.3,1.4) alternate}@keyframes catHi{0%,to{opacity:0;transform:scale(.8)}10%,60%{transform:scale(1);opacity:1}}@keyframes catShadow{0%,to{transform:translate(40px,-35px) scale(.3)}10%,60%{opacity:1;transform:translate(-5px,10px) scale(.5)}60%{opacity:0}}.box,.parachute{transform-origin:430px 100px;animation:moveBox 14s 4s linear forwards infinite}.parachute{animation:parachute 14s 4s linear forwards infinite}@keyframes moveBox{0%{opacity:0;transform:translateY(-150px) rotate(20deg)}15%{opacity:1;transform:translateY(100px) rotate(-15deg)}25%{transform:translateY(250px) rotate(10deg)}30%{transform:translateY(350px) rotate(-5deg)}35%{opacity:1;transform:translateY(570px) rotate(0)}45%,to{opacity:0;transform:translateY(570px)}}@keyframes parachute{0%{transform:translateY(-150px) rotate(20deg) scale(.8);opacity:0}15%{transform:translateY(100px) rotate(-15deg) scale(1);opacity:1}25%{transform:translateY(250px) rotate(10deg)}30%{transform:translateY(350px) rotate(-5deg)}33%{transform:translateY(460px) rotate(0) scale(.9);opacity:1}45%,to{transform:translateY(480px);opacity:0}}.tshirt{animation:fadeInOut 42s 10s ease-in forwards infinite}.cap{animation:fadeInOut 42s 24s ease-in forwards infinite}.ball{animation:fadeInOut 42s 38s ease-in forwards infinite}#text,#button{animation:fadeIn 1s 5s ease-in forwards}@keyframes fadeInOut{5%,12%{opacity:1}20%{opacity:0}}.cloud{animation:clouds 25s linear backwards infinite}.cloud2{animation:clouds 20s 25s linear backwards infinite}.plane{animation:clouds 20s linear backwards infinite;will-change:transform}@keyframes clouds{0%{transform:translate(-150%)}to{transform:translate(150%)}}.sky-circle{animation:fadeInOut 10s 5s ease-in infinite}.sky-circle2{animation:fadeInOut 12s 30s ease-in infinite}.sky-circle3{animation:fadeInOut 8s 40s ease-in infinite}.btn{cursor:pointer}

View File

@@ -0,0 +1 @@
import{g as s,K as a,F as c,G as o,Q as r,R as n,X as l,cP as i,E as d,ac as x,ae as u}from"./index-d574bfe0.js";const p="/assets/404-0d6db85f.svg",_={class:"flex h-full"},m={class:"px-4 m-auto space-y-4 text-center max-[400px]"},f=i('<h1 class="text-4xl text-slate-800 dark:text-neutral-200"> 404 - 页面迷路了! </h1><p class="text-base text-slate-500 dark:text-neutral-400"> 哎呀!页面好像迷路了,找不到了。 </p><div class="flex items-center justify-center text-center"><div class="w-[300px]"><img class="w-full" src="'+p+'" alt="404"></div></div>',3),g=s({__name:"index",setup(h){const e=a();function t(){e.push("/")}return(v,k)=>(d(),c("div",_,[o("div",m,[f,r(l(u),{type:"primary",onClick:t},{default:n(()=>[x(" Go to Home ")]),_:1})])]))}});export{g as default};

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 +0,0 @@
import{d as s,f as a,c as o,a as c,k as r,l as n,m as l,B as d,o as i,J as x,I as u}from"./index-ff703318.js";const p="/assets/404-0d6db85f.svg",_={class:"flex h-full"},m={class:"px-4 m-auto space-y-4 text-center max-[400px]"},f=d('<h1 class="text-4xl text-slate-800 dark:text-neutral-200"> 404 - 页面迷路了! </h1><p class="text-base text-slate-500 dark:text-neutral-400"> 哎呀!页面好像迷路了,找不到了。 </p><div class="flex items-center justify-center text-center"><div class="w-[300px]"><img class="w-full" src="'+p+'" alt="404"></div></div>',3),N=s({__name:"index",setup(h){const e=a();function t(){e.push("/")}return(v,k)=>(i(),o("div",_,[c("div",m,[f,r(l(u),{type:"primary",onClick:t},{default:n(()=>[x(" Go to Home ")]),_:1})])]))}});export{N as default};

View File

@@ -1 +0,0 @@
.aspect-active{border:2px solid #3074f8ff;color:#3074f8}.model-active{border:3px solid #3074f8ff}.upload{border:1px dashed #424242;font-size:12px;border-radius:8px;padding:14px}.upload:hover{border:1px dashed #3074f8ff}

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

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
@charset "UTF-8";.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:black;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-handler{display:block;background:white;height:10px;width:10px}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.cropper-container[data-v-fd0c8c4c]{width:50vw;height:50vh;display:flex;justify-content:center;align-items:center;overflow:hidden}.cropper[data-v-fd0c8c4c]{max-width:50vw;max-height:50vh}@media (max-width: 600px){.cropper-container[data-v-fd0c8c4c]{width:90vw;height:50vh}.cropper[data-v-fd0c8c4c]{max-width:90vw;max-height:50vh}}.aspect-active{border:2px solid #3074f8ff;color:#3074f8}.model-active{border:3px solid #3074f8ff}.upload{border:1px dashed #424242;font-size:12px;border-radius:8px;padding:14px}.upload:hover{border:1px dashed #3074f8ff}

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

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

View File

@@ -1 +0,0 @@
import{c7 as e,c8 as a}from"./index-ff703318.js";function u(r){return e({url:"/fanyi/translate",data:r})}function n(r){return a({url:"/queue/addMjDrawQueue",data:r})}function s(r){return e({url:"/midjourney/proxy",data:r,headers:{responseType:"arraybuffer"}})}export{u as a,s as b,n as f};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -1 +0,0 @@
function r(l,o){let t,e;return function(...i){e=i,t||(t=setTimeout(()=>{l.apply(this,e),t=null},o))}}export{r as t};

View File

@@ -0,0 +1 @@
import{g as i,E as p,F as f,G as t,aa as x,k as _,K as m,Q as c,R as v,X as a,a0 as k,aq as s,S as d}from"./index-d574bfe0.js";const w={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},h=t("path",{d:"M30.71 229.47l188.87-113a30.54 30.54 0 0 1 31.09-.39a33.74 33.74 0 0 1 16.76 29.47v79.05l180.72-108.16a30.54 30.54 0 0 1 31.09-.39A33.74 33.74 0 0 1 496 145.52v221A33.73 33.73 0 0 1 479.24 396a30.54 30.54 0 0 1-31.09-.39L267.43 287.4v79.08A33.73 33.73 0 0 1 250.67 396a30.54 30.54 0 0 1-31.09-.39l-188.87-113a31.27 31.27 0 0 1 0-53z",fill:"currentColor"},null,-1),g=[h],b=i({name:"PlayBack",render:function(e,o){return p(),f("svg",w,g)}}),B={class:"pt-1 mr-2 cursor-pointer"},S=i({__name:"titleBar",props:{title:{default:""},des:{default:""},padding:{default:4}},setup(r){const e=r,o=x(),n=_(()=>o.theme==="dark"),u=m();return(y,l)=>(p(),f("div",{class:s(["flex border-b border-[#ebebeb] dark:border-[#ffffff17] py-4 w-full",[`px-${e.padding}`]])},[t("div",B,[c(a(k),{size:"16",class:"text-primary",onClick:l[0]||(l[0]=C=>a(u).push("/"))},{default:v(()=>[c(a(b))]),_:1})]),t("div",null,[t("b",{class:s([[n.value?"text-[#fff]":"text-[#555]"],"text-lg"])},d(e.title),3),t("div",{class:s([[n.value?"text-[#fff]":"text-[#626569]"],"text-truncate text-[#626569] mt-1"])},d(e.des),3)])],2))}});export{S as _};

View File

@@ -1 +0,0 @@
import{d as i,o as p,c as f,a as e,D as x,e as m,f as _,k as c,l as k,m as t,z as v,E as a,t as d}from"./index-ff703318.js";const w={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},h=e("path",{d:"M30.71 229.47l188.87-113a30.54 30.54 0 0 1 31.09-.39a33.74 33.74 0 0 1 16.76 29.47v79.05l180.72-108.16a30.54 30.54 0 0 1 31.09-.39A33.74 33.74 0 0 1 496 145.52v221A33.73 33.73 0 0 1 479.24 396a30.54 30.54 0 0 1-31.09-.39L267.43 287.4v79.08A33.73 33.73 0 0 1 250.67 396a30.54 30.54 0 0 1-31.09-.39l-188.87-113a31.27 31.27 0 0 1 0-53z",fill:"currentColor"},null,-1),b=[h],g=i({name:"PlayBack",render:function(s,r){return p(),f("svg",w,b)}}),B={class:"pt-1 mr-2 cursor-pointer"},A=i({__name:"titleBar",props:{title:{default:""},des:{default:""},padding:{default:4}},setup(o){const s=o,r=x(),n=m(()=>r.theme==="dark"),u=_();return(y,l)=>(p(),f("div",{class:a(["flex border-b border-[#ebebeb] dark:border-[#ffffff17] py-4 w-full",[`px-${s.padding}`]])},[e("div",B,[c(t(v),{size:"16",class:"text-primary",onClick:l[0]||(l[0]=C=>t(u).push("/"))},{default:k(()=>[c(t(g))]),_:1})]),e("div",null,[e("b",{class:a([[t(n)?"text-[#fff]":"text-[#555]"],"text-lg"])},d(s.title),3),e("div",{class:a([[t(n)?"text-[#fff]":"text-[#626569]"],"text-truncate text-[#626569] mt-1"])},d(s.des),3)])],2))}});export{A as _};