NineAI 2.4.2

This commit is contained in:
vastxie
2024-01-17 09:22:28 +08:00
commit bdc48207fc
636 changed files with 41864 additions and 0 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.7 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

@@ -0,0 +1,56 @@
import{an as t,am as r,aN as o,d as a,av as d,c2 as s,ac as p}from"./index-6bc7e56b.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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{c8 as b,c9 as I,ca as v,d as R,c3 as S,r as V,b as N,e as A,aH as T}from"./index-6bc7e56b.js";var F=1/0,x=17976931348623157e292;function E(t){if(!t)return t===0?t:0;if(t=b(t),t===F||t===-F){var e=t<0?-1:1;return e*x}return t===t?t:0}function _(t){var e=E(t),a=e%1;return e===e?a?e-a:e:0}var p=I.isFinite,B=Math.min;function L(t){var e=Math[t];return function(a,n){if(a=b(a),n=n==null?0:B(_(n),292),n&&p(a)){var r=(v(a)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(v(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(a)}}var O=L("round");const P=O,U=t=>1-Math.pow(1-t,5);function j(t){const{from:e,to:a,duration:n,onUpdate:r,onFinish:i}=t,c=()=>{const u=performance.now(),s=Math.min(u-d,n),f=e+(a-e)*U(s/n);if(s===n){i();return}r(f),requestAnimationFrame(c)},d=performance.now();c()}const k={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},G=R({name:"NumberAnimation",props:k,setup(t){const{localeRef:e}=S("name"),{duration:a}=t,n=V(t.from),r=N(()=>{const{locale:o}=t;return o!==void 0?o:e.value});let i=!1;const c=o=>{n.value=o},d=()=>{var o;n.value=t.to,i=!1,(o=t.onFinish)===null||o===void 0||o.call(t)},u=(o=t.from,m=t.to)=>{i=!0,n.value=t.from,o!==m&&j({from:o,to:m,duration:a,onUpdate:c,onFinish:d})},s=N(()=>{var o;const l=P(n.value,t.precision).toFixed(t.precision).split("."),h=new Intl.NumberFormat(r.value),M=(o=h.formatToParts(.5).find(y=>y.type==="decimal"))===null||o===void 0?void 0:o.value,g=t.showSeparator?h.format(Number(l[0])):l[0],w=l[1];return{integer:g,decimal:w,decimalSeparator:M}});function f(){i||u()}return A(()=>{T(()=>{t.active&&u()})}),Object.assign({formattedValue:s},{play:f})},render(){const{formattedValue:{integer:t,decimal:e,decimalSeparator:a}}=this;return[t,e?a:null,e]}});export{G as N};

View File

@@ -0,0 +1,16 @@
import{aA as O,d as b,c3 as m,av as y,aa as _,b as u,az as S,aQ as h,aD as g,ac as a,b8 as B,cf as w,z as P,aq as R,at as I,an as C,aN as f,am as x,aw as z,r as $,ch as U,cj as F,O as q,ck as E,cU as K,aW as k,aS as V}from"./index-6bc7e56b.js";const N=O("n-popconfirm"),j={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},T=w(j),W=b({name:"NPopconfirmPanel",props:j,setup(e){const{localeRef:t}=m("Popconfirm"),{inlineThemeDisabled:s}=y(),{mergedClsPrefixRef:n,mergedThemeRef:p,props:l}=_(N),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?S("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:h(l,"positiveButtonProps"),negativeButtonProps:h(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=g(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},B(n.default,l=>s||l?a("div",{class:`${t}-popconfirm__body`},s?a("div",{class:`${t}-popconfirm__icon`},g(n.icon,()=>[a(R,{clsPrefix:t},{default:()=>a(I,null)})])):null,l):null),p?a("div",{class:[`${t}-popconfirm__action`]},p):null)}}),D=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;")])])]),L=Object.assign(Object.assign(Object.assign({},z.props),E),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),A=b({name:"Popconfirm",props:L,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=y(),s=z("Popconfirm","-popconfirm",D,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&&k(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&&k(c,!1))})}return V(N,{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(q,F(t,T,{theme:s.peers.Popover,themeOverrides:s.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const n=U(t,T);return a(W,Object.assign(Object.assign({},n),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}});export{A as N};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,102 @@
import{an as A,aN as t,aO as I,am as D,ao as o,b6 as O,d as se,av as de,aw as E,aP as ce,r as K,aQ as ue,aR as he,b as V,az as be,b7 as U,ac as i,b8 as f,b9 as fe,ay as v,ba as j,bb as r,aJ as ve,bc as ge,aW as H}from"./index-6bc7e56b.js";const we=A("switch",`
height: var(--n-height);
min-width: var(--n-width);
vertical-align: middle;
user-select: none;
-webkit-user-select: none;
display: inline-flex;
outline: none;
justify-content: center;
align-items: center;
`,[t("children-placeholder",`
height: var(--n-rail-height);
display: flex;
flex-direction: column;
overflow: hidden;
pointer-events: none;
visibility: hidden;
`),t("rail-placeholder",`
display: flex;
flex-wrap: none;
`),t("button-placeholder",`
width: calc(1.75 * var(--n-rail-height));
height: var(--n-rail-height);
`),A("base-loading",`
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
font-size: calc(var(--n-button-width) - 4px);
color: var(--n-loading-color);
transition: color .3s var(--n-bezier);
`,[I({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),t("checked, unchecked",`
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
box-sizing: border-box;
position: absolute;
white-space: nowrap;
top: 0;
bottom: 0;
display: flex;
align-items: center;
line-height: 1;
`),t("checked",`
right: 0;
padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
`),t("unchecked",`
left: 0;
justify-content: flex-end;
padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
`),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);")])]),O("disabled",[O("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);
border-radius: var(--n-rail-border-radius);
cursor: pointer;
position: relative;
transition:
opacity .3s var(--n-bezier),
background .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
background-color: var(--n-rail-color);
`,[t("button-icon",`
color: var(--n-icon-color);
transition: color .3s var(--n-bezier);
font-size: calc(var(--n-button-height) - 4px);
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
line-height: 1;
`,[I()]),t("button",`
align-items: center;
top: var(--n-offset);
left: var(--n-offset);
height: var(--n-button-height);
width: var(--n-button-width-pressed);
max-width: var(--n-button-width);
border-radius: var(--n-button-border-radius);
background-color: var(--n-button-color);
box-shadow: var(--n-button-box-shadow);
box-sizing: border-box;
cursor: inherit;
content: "";
position: absolute;
transition:
background-color .3s var(--n-bezier),
left .3s var(--n-bezier),
opacity .3s var(--n-bezier),
max-width .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
`)]),o("active",[t("rail","background-color: var(--n-rail-color-active);")]),o("loading",[t("rail",`
cursor: wait;
`)]),o("disabled",[t("rail",`
cursor: not-allowed;
opacity: .5;
`)])]),me=Object.assign(Object.assign({},E.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=E("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),n=K(!1),s=V(()=>{const{railStyle:a}=e;if(a)return a({focused:n.value,checked:y.value})});function d(a){const{"onUpdate:value":R,onChange:B,onUpdateValue:_}=e,{nTriggerFormInput:F,nTriggerFormChange:N}=l;R&&H(R,a),_&&H(_,a),B&&H(B,a),p.value=a,F(),N()}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 J(){n.value=!0,L()}function Q(){n.value=!1,X(),g.value=!1}function q(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 M=V(()=>{const{value:a}=$,{self:{opacityDisabled:R,railColor:B,railColorActive:_,buttonBoxShadow:F,buttonColor:N,boxShadowFocus:Z,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)]:k,[v("railBorderRadius",a)]:oe,[v("buttonBorderRadius",a)]:re},common:{cubicBezierEaseInOut:le}}=z.value;let T,W,P;return x?(T=`calc((${u} - ${c}) / 2)`,W=`max(${u}, ${c})`,P=`max(${k}, calc(${k} + ${c} - ${u}))`):(T=j((r(u)-r(c))/2),W=j(Math.max(r(u),r(c))),P=r(u)>r(c)?k:j(r(k)+r(c)-r(u))),{"--n-bezier":le,"--n-button-border-radius":re,"--n-button-box-shadow":F,"--n-button-color":N,"--n-button-width":ne,"--n-button-width-pressed":ie,"--n-button-height":c,"--n-height":W,"--n-offset":T,"--n-opacity-disabled":R,"--n-rail-border-radius":oe,"--n-rail-color":B,"--n-rail-color-active":_,"--n-rail-height":u,"--n-rail-width":k,"--n-width":P,"--n-box-shadow-focus":Z,"--n-loading-color":ee,"--n-text-color":te,"--n-icon-color":ae}}),w=m?be("switch",V(()=>$.value[0]),M,e):void 0;return{handleClick:Y,handleBlur:Q,handleFocus:J,handleKeyup:q,handleKeydown:G,mergedRailStyle:s,pressed:g,mergedClsPrefix:S,mergedValue:b,checked:y,mergedDisabled:h,cssVars:m?void 0:M,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 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(C,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};

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -0,0 +1 @@
.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

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path fill="#292F33" d="M3.651 29.852L29.926 3.576c.391-.391 2.888 2.107 2.497 2.497L6.148 32.349c-.39.391-2.888-2.107-2.497-2.497z"/><path fill="#66757F" d="M30.442 4.051L4.146 30.347l.883.883L31.325 4.934z"/><path fill="#E1E8ED" d="M34.546 2.537l-.412-.412-.671-.671c-.075-.075-.165-.123-.255-.169-.376-.194-.844-.146-1.159.169l-2.102 2.102.495.495.883.883 1.119 1.119 2.102-2.102c.391-.391.391-1.024 0-1.414zM5.029 31.23l-.883-.883-.495-.495-2.209 2.208c-.315.315-.363.783-.169 1.159.046.09.094.18.169.255l.671.671.412.412c.391.391 1.024.391 1.414 0l2.208-2.208-1.118-1.119z"/><path fill="#F5F8FA" d="M31.325 4.934l2.809-2.809-.671-.671c-.075-.075-.165-.123-.255-.169l-2.767 2.767.884.882zM4.146 30.347L1.273 33.22c.046.09.094.18.169.255l.671.671 2.916-2.916-.883-.883z"/><path d="M28.897 14.913l1.542-.571.6-2.2c.079-.29.343-.491.644-.491.3 0 .564.201.643.491l.6 2.2 1.542.571c.262.096.435.346.435.625s-.173.529-.435.625l-1.534.568-.605 2.415c-.074.296-.341.505-.646.505-.306 0-.573-.209-.647-.505l-.605-2.415-1.534-.568c-.262-.096-.435-.346-.435-.625 0-.278.173-.528.435-.625M11.961 5.285l2.61-.966.966-2.61c.16-.433.573-.72 1.035-.72.461 0 .874.287 1.035.72l.966 2.61 2.609.966c.434.161.721.573.721 1.035 0 .462-.287.874-.721 1.035l-2.609.966-.966 2.61c-.161.433-.574.72-1.035.72-.462 0-.875-.287-1.035-.72l-.966-2.61-2.61-.966c-.433-.161-.72-.573-.72-1.035.001-.462.288-.874.72-1.035M24.13 20.772l1.383-.512.512-1.382c.085-.229.304-.381.548-.381.244 0 .463.152.548.381l.512 1.382 1.382.512c.23.085.382.304.382.548 0 .245-.152.463-.382.548l-1.382.512-.512 1.382c-.085.229-.304.381-.548.381-.245 0-.463-.152-.548-.381l-.512-1.382-1.383-.512c-.229-.085-.381-.304-.381-.548 0-.245.152-.463.381-.548" fill="#FFAC33"/></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 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

@@ -0,0 +1 @@
import{d as f,o as h,c as w,a as e,r as t,b as y,e as b,f as r,u as n,w as L,g as M,N,h as j,i as B}from"./index-6bc7e56b.js";import{_ as I}from"./index.vue_vue_type_style_index_0_lang-7c08790a.js";import"./index-c94da121.js";const $={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},z=e("path",{d:"M315.27 33L96 304h128l-31.51 173.23a2.36 2.36 0 0 0 2.33 2.77h0a2.36 2.36 0 0 0 1.89-.95L416 208H288l31.66-173.25a2.45 2.45 0 0 0-2.44-2.75h0a2.42 2.42 0 0 0-1.95 1z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),C=[z],W=f({name:"FlashOutline",render:function(a,u){return h(),w("svg",$,C)}}),D={class:"bg-[#fff] h-[100vh] overflow-hidden p-4 pr-0 dark:bg-[#18181c] flex flex-col"},F={class:"p-4 flex pr-6 justify-between items-center"},O=e("div",{class:"font-bold text-xl"},"AI绘画广场",-1),R={class:"w-[200px] sm:w-[300px] flex justify-between"},U=e("span",{class:"hidden sm:block"},"尺寸调整",-1),V={class:"flex-1 ml-5"},q={class:"px-4 mb-1 pr-5"},A={class:"market overflow-y-scroll flex-1 min-h-screen p-4 dark:bg-[#18181c] relative"},P=f({__name:"index",setup(m){const a=t([]),u=t(null),i=t(50),l=t(""),c=t(1),p=t(20),v=t(!1),x=t(!0),g=y(()=>l.value?a.value.filter(o=>{const{prompt:s}=o;return s.includes(l.value)}):a.value);async function _(){v.value=!0;const o=await M({page:c.value,size:p.value,rec:1});v.value=!1,x.value=p.value===o.data.rows.length,a.value=[...a.value,...o.data.rows]}b(async()=>{await _()});function k(){c.value=c.value+1,_()}return(o,s)=>(h(),w("div",D,[e("div",F,[O,e("div",R,[U,e("div",V,[r(n(N),{value:i.value,"onUpdate:value":s[0]||(s[0]=d=>i.value=d),step:10},null,8,["value"])])])]),e("div",q,[r(n(B),{value:l.value,"onUpdate:value":s[1]||(s[1]=d=>l.value=d),placeholder:"prompt关键词搜索"},{prefix:L(()=>[r(n(j),{component:n(W)},null,8,["component"])]),_:1},8,["value"])]),e("div",A,[e("div",{id:"wapper",ref_key:"wapperRef",ref:u,class:"wapper"},[r(I,{onLoadMore:k,copyPropmpt:"",isDrawLike:"",dataList:n(g),scaleWidth:i.value},null,8,["dataList","scaleWidth"])],512)])]))}});export{P as default};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
.custom-card{transition:all .3s}.custom-card .join{opacity:1}.custom-card:hover{border:1px solid #5A91FC;box-shadow:0 6px 32px #04343014;transform:scale(1.05)}.custom-card:hover .join{opacity:1}.custom-card .run-icon{opacity:1;transition:all .3s}.custom-card .run-icon:hover{transform:scale(1.5)}.header{box-shadow:0 2px 4px 1px #00000014}.playground{transition:all .5s cubic-bezier(.25,.1,.25,1)}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
@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:90%}}@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}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
.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{d as s,I as a,c as o,a as c,f as r,w as n,u as l,j as d,o as i,A as x,z as u}from"./index-6bc7e56b.js";const p="/assets/404-0d6db85f.svg",_={class:"flex h-full"},f={class:"px-4 m-auto space-y-4 text-center max-[400px]"},m=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),w=s({__name:"index",setup(h){const e=a();function t(){e.push("/")}return(v,k)=>(i(),o("div",_,[c("div",f,[m,r(l(u),{type:"primary",onClick:t},{default:n(()=>[x(" Go to Home ")]),_:1})])]))}});export{w 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

@@ -0,0 +1 @@
canvas[data-v-264952df]{border:1px solid #ddd}

View File

@@ -0,0 +1 @@
@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}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
.market{padding:15px}.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-6cde14f5.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}

View File

@@ -0,0 +1 @@
function n(o){const t={origin:!0,...o};let e;t.origin?e=document.createElement("textarea"):e=document.createElement("input"),e.setAttribute("readonly","readonly"),e.value=t.text,document.body.appendChild(e),e.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(e)}export{n as c};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
*{box-sizing:border-box}.main-container{width:100vw;height:100vh;display:flex;justify-content:center;align-items:center}body{background:#fff}.loading{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999}.loading-text{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;text-align:center;width:100%;height:100px;line-height:100px}.loading-text span{display:inline-block;margin:0 5px;font-family:Quattrocento Sans,sans-serif}.loading-text span:nth-child(1){filter:blur(0px);animation:blur-text 1.5s 0s infinite linear alternate}.loading-text span:nth-child(2){filter:blur(0px);animation:blur-text 1.5s .2s infinite linear alternate}.loading-text span:nth-child(3){filter:blur(0px);animation:blur-text 1.5s .4s infinite linear alternate}.loading-text span:nth-child(4){filter:blur(0px);animation:blur-text 1.5s .6s infinite linear alternate}.loading-text span:nth-child(5){filter:blur(0px);animation:blur-text 1.5s .8s infinite linear alternate}.loading-text span:nth-child(6){filter:blur(0px);animation:blur-text 1.5s 1s infinite linear alternate}.loading-text span:nth-child(7){filter:blur(0px);animation:blur-text 1.5s 1.2s infinite linear alternate}@keyframes blur-text{0%{filter:blur(0px)}to{filter:blur(4px)}}@media (prefers-color-scheme: dark){body{background:#121212}}

View File

@@ -0,0 +1 @@
.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

Some files were not shown because too many files have changed in this diff Show More