hermes-web-ui 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -12
- package/dist/assets/ChannelsView-BWEvTQwM.css +1 -0
- package/dist/assets/ChannelsView-sOGWQqBR.js +1 -0
- package/dist/assets/ChatView-BYMsYkQ1.css +1 -0
- package/dist/assets/ChatView-Ck4IHVIc.js +142 -0
- package/dist/assets/Close-B7KfM3jl.js +45 -0
- package/dist/assets/FormItem-BdZ_3RxK.js +110 -0
- package/dist/assets/Input-C6bxvAIj.js +234 -0
- package/dist/assets/InputNumber-eI175yNc.js +13 -0
- package/dist/assets/JobsView-DkwaDky6.css +1 -0
- package/dist/assets/JobsView-wXKPSc8W.js +2 -0
- package/dist/assets/LogsView-B2TeFIUX.css +1 -0
- package/dist/assets/LogsView-Ck9HLcnc.js +1 -0
- package/dist/assets/MarkdownRenderer-B_Fo6783.js +23 -0
- package/dist/assets/MemoryView-BUR_XL9x.js +5 -0
- package/dist/assets/MemoryView-CHeaa1-C.css +1 -0
- package/dist/assets/Modal-DYN0wyo2.js +232 -0
- package/dist/assets/ModelsView-CLdtVeiJ.css +1 -0
- package/dist/assets/ModelsView-CkEpCpW4.js +1 -0
- package/dist/assets/Popover-BgNi3Q2J.js +117 -0
- package/dist/assets/Select-DevZ62i5.js +340 -0
- package/dist/assets/SettingRow-HrI0c-1s.css +1 -0
- package/dist/assets/SettingRow-bBgfSbZT.js +102 -0
- package/dist/assets/SettingsView-Cl1ts-YY.css +1 -0
- package/dist/assets/SettingsView-D_qQMAqN.js +352 -0
- package/dist/assets/SkillsView-BvNhRbMq.css +1 -0
- package/dist/assets/SkillsView-C68Fr3t5.js +1 -0
- package/dist/assets/Spin-C1dDkPv8.js +43 -0
- package/dist/assets/Suffix-B6bqA1w3.js +101 -0
- package/dist/assets/Tag-BBWtv463.js +71 -0
- package/dist/assets/Tooltip-D-FlJlcu.js +1 -0
- package/dist/assets/_plugin-vue_export-helper-AI_aJZ2_.js +49 -0
- package/dist/assets/app-DYgUa8EE.js +1 -0
- package/dist/assets/app-DZPFLxKB.js +1 -0
- package/dist/assets/chat-C87W9H3D.js +6 -0
- package/dist/assets/{context-DW8F1iIn.js → context-aD0DoQuE.js} +14 -14
- package/dist/assets/{index-DwVgwUIX.css → index-B7NziQ6I.css} +1 -1
- package/dist/assets/index-BxFv1xVi.js +307 -0
- package/dist/assets/jobs-D_98yklp.js +1 -0
- package/dist/assets/pinia-B7LrvQDh.js +1 -0
- package/dist/assets/preload-helper-D4M6sveU.js +1 -0
- package/dist/assets/{skills-CkDtgKB5.js → skills-nROrsAxi.js} +1 -1
- package/dist/assets/use-message-rwmUYd8q.js +1 -0
- package/dist/assets/vue.runtime.esm-bundler-LsUadeZi.js +3 -0
- package/dist/index.html +16 -16
- package/dist/server/index.js +4 -0
- package/dist/server/routes/config.d.ts +2 -0
- package/dist/server/routes/config.js +314 -0
- package/dist/server/routes/filesystem.js +121 -22
- package/dist/server/routes/weixin.d.ts +2 -0
- package/dist/server/routes/weixin.js +131 -0
- package/dist/server/shared/providers.d.ts +13 -0
- package/dist/server/shared/providers.js +210 -0
- package/package.json +6 -1
- package/dist/assets/ChatView-DmXZ5Q3Z.js +0 -18
- package/dist/assets/ChatView-cCVO1N9F.css +0 -1
- package/dist/assets/Dropdown-8pId5Qsj.js +0 -125
- package/dist/assets/Input-BZKSQ403.js +0 -234
- package/dist/assets/JobsView-BhwwXuLt.css +0 -1
- package/dist/assets/JobsView-CQf4Y7Mw.js +0 -123
- package/dist/assets/LogsView-BN_TkDPi.css +0 -1
- package/dist/assets/LogsView-CKyL3UT5.js +0 -1
- package/dist/assets/MarkdownRenderer-DNP-kPA8.js +0 -23
- package/dist/assets/MemoryView-BBwqM3vf.js +0 -5
- package/dist/assets/MemoryView-CK0PemlP.css +0 -1
- package/dist/assets/Modal-BtRuxNI4.js +0 -232
- package/dist/assets/Popover-C2CJscsj.js +0 -161
- package/dist/assets/Select-CithN5ti.js +0 -410
- package/dist/assets/SettingsView-BzBMKaLz.css +0 -1
- package/dist/assets/SettingsView-D1hOGA0Z.js +0 -1005
- package/dist/assets/SkillsView-86Z-HE_X.css +0 -1
- package/dist/assets/SkillsView-BfnrX5TQ.js +0 -1
- package/dist/assets/Spin-7g8GCzi5.js +0 -43
- package/dist/assets/Suffix-DI9irQ4f.js +0 -101
- package/dist/assets/Tooltip-BdrvORgU.js +0 -1
- package/dist/assets/_plugin-vue_export-helper-BrYOyDjU.js +0 -47
- package/dist/assets/app-JRkV5-Ft.js +0 -1
- package/dist/assets/chat-Cgdof9SF.js +0 -6
- package/dist/assets/index-DP1JeABS.js +0 -307
- package/dist/assets/jobs-DJ8ETzok.js +0 -1
- package/dist/assets/keysOf-Dvq9k1rv.js +0 -1
- package/dist/assets/pinia-tE0RcsDr.js +0 -1
- package/dist/assets/runtime-core.esm-bundler-yNW65ghW.js +0 -1
- package/dist/assets/use-message-Btr-O4Ih.js +0 -1
- /package/dist/assets/{client-kwQ0ijpp.js → client-Df_SqoZl.js} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{$ as e,E as t,M as n,S as r,k as i,m as a,n as o,r as s,rt as c,w as l}from"./vue.runtime.esm-bundler-LsUadeZi.js";import{$ as u,B as d,J as f,Q as p,V as m,W as h,d as g,dt as _,f as v,ft as y,i as b,l as x,lt as S,n as C,nt as w,o as T,ot as E,q as D,r as O,rt as k,s as A,st as j,tt as M,u as N,ut as P,z as F}from"./_plugin-vue_export-helper-AI_aJZ2_.js";function I(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}var L=r({name:`FadeInExpandTransition`,props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(t){e.width?t.style.maxWidth=`${t.offsetWidth}px`:t.style.maxHeight=`${t.offsetHeight}px`,t.offsetWidth}function r(t){e.width?t.style.maxWidth=`0`:t.style.maxHeight=`0`,t.offsetWidth;let{onLeave:n}=e;n&&n()}function i(t){e.width?t.style.maxWidth=``:t.style.maxHeight=``;let{onAfterLeave:n}=e;n&&n()}function a(t){if(t.style.transition=`none`,e.width){let e=t.offsetWidth;t.style.maxWidth=`0`,t.offsetWidth,t.style.transition=``,t.style.maxWidth=`${e}px`}else if(e.reverse)t.style.maxHeight=`${t.offsetHeight}px`,t.offsetHeight,t.style.transition=``,t.style.maxHeight=`0`;else{let e=t.offsetHeight;t.style.maxHeight=`0`,t.offsetWidth,t.style.transition=``,t.style.maxHeight=`${e}px`}t.offsetWidth}function c(t){var n;e.width?t.style.maxWidth=``:e.reverse||(t.style.maxHeight=``),(n=e.onAfterEnter)==null||n.call(e)}return()=>{let{group:u,width:d,appear:f,mode:p}=e,m=u?s:o,h={name:d?`fade-in-width-expand-transition`:`fade-in-height-expand-transition`,appear:f,onEnter:a,onAfterEnter:c,onBeforeLeave:n,onLeave:r,onAfterLeave:i};return u||(h.mode=p),l(m,h,t)}}}),{cubicBezierEaseInOut:R}=g;function z({duration:e=`.2s`,delay:t=`.1s`}={}){return[E(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),E(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
|
|
2
2
|
opacity: 0!important;
|
|
3
3
|
margin-left: 0!important;
|
|
4
4
|
margin-right: 0!important;
|
|
5
|
-
`),
|
|
5
|
+
`),E(`&.fade-in-width-expand-transition-leave-active`,`
|
|
6
6
|
overflow: hidden;
|
|
7
7
|
transition:
|
|
8
8
|
opacity ${e} ${R},
|
|
9
9
|
max-width ${e} ${R} ${t},
|
|
10
10
|
margin-left ${e} ${R} ${t},
|
|
11
11
|
margin-right ${e} ${R} ${t};
|
|
12
|
-
`),
|
|
12
|
+
`),E(`&.fade-in-width-expand-transition-enter-active`,`
|
|
13
13
|
overflow: hidden;
|
|
14
14
|
transition:
|
|
15
15
|
opacity ${e} ${R} ${t},
|
|
16
16
|
max-width ${e} ${R},
|
|
17
17
|
margin-left ${e} ${R},
|
|
18
18
|
margin-right ${e} ${R};
|
|
19
|
-
`)]}var B=
|
|
19
|
+
`)]}var B=j(`base-wave`,`
|
|
20
20
|
position: absolute;
|
|
21
21
|
left: 0;
|
|
22
22
|
right: 0;
|
|
23
23
|
top: 0;
|
|
24
24
|
bottom: 0;
|
|
25
25
|
border-radius: inherit;
|
|
26
|
-
`),V=
|
|
26
|
+
`),V=r({name:`BaseWave`,props:{clsPrefix:{type:String,required:!0}},setup(t){N(`-base-wave`,B,c(t,`clsPrefix`));let r=e(null),a=e(!1),o=null;return n(()=>{o!==null&&window.clearTimeout(o)}),{active:a,selfRef:r,play(){o!==null&&(window.clearTimeout(o),a.value=!1,o=null),i(()=>{var e;(e=r.value)==null||e.offsetHeight,a.value=!0,o=window.setTimeout(()=>{a.value=!1,o=null},1e3)})}}},render(){let{clsPrefix:e}=this;return l(`div`,{ref:`selfRef`,"aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}});function H(e){return k(e,[255,255,255,.16])}function U(e){return k(e,[0,0,0,.12])}var W=u(`n-button-group`),G={paddingTiny:`0 6px`,paddingSmall:`0 10px`,paddingMedium:`0 14px`,paddingLarge:`0 18px`,paddingRoundTiny:`0 10px`,paddingRoundSmall:`0 14px`,paddingRoundMedium:`0 18px`,paddingRoundLarge:`0 22px`,iconMarginTiny:`6px`,iconMarginSmall:`6px`,iconMarginMedium:`6px`,iconMarginLarge:`6px`,iconSizeTiny:`14px`,iconSizeSmall:`18px`,iconSizeMedium:`18px`,iconSizeLarge:`20px`,rippleDuration:`.6s`};function K(e){let{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadius:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:p,primaryColorPressed:m,borderColor:h,primaryColor:g,baseColor:_,infoColor:v,infoColorHover:y,infoColorPressed:b,successColor:x,successColorHover:S,successColorPressed:C,warningColor:w,warningColorHover:T,warningColorPressed:E,errorColor:D,errorColorHover:O,errorColorPressed:k,fontWeight:A,buttonColor2:j,buttonColor2Hover:M,buttonColor2Pressed:N,fontWeightStrong:P}=e;return Object.assign(Object.assign({},G),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,colorOpacitySecondary:`0.16`,colorOpacitySecondaryHover:`0.22`,colorOpacitySecondaryPressed:`0.28`,colorSecondary:j,colorSecondaryHover:M,colorSecondaryPressed:N,colorTertiary:j,colorTertiaryHover:M,colorTertiaryPressed:N,colorQuaternary:`#0000`,colorQuaternaryHover:M,colorQuaternaryPressed:N,color:`#0000`,colorHover:`#0000`,colorPressed:`#0000`,colorFocus:`#0000`,colorDisabled:`#0000`,textColor:d,textColorTertiary:f,textColorHover:p,textColorPressed:m,textColorFocus:p,textColorDisabled:d,textColorText:d,textColorTextHover:p,textColorTextPressed:m,textColorTextFocus:p,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:p,textColorGhostPressed:m,textColorGhostFocus:p,textColorGhostDisabled:d,border:`1px solid ${h}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${m}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${h}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:m,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:_,textColorHoverPrimary:_,textColorPressedPrimary:_,textColorFocusPrimary:_,textColorDisabledPrimary:_,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:m,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:d,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:m,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${m}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:v,colorHoverInfo:y,colorPressedInfo:b,colorFocusInfo:y,colorDisabledInfo:v,textColorInfo:_,textColorHoverInfo:_,textColorPressedInfo:_,textColorFocusInfo:_,textColorDisabledInfo:_,textColorTextInfo:v,textColorTextHoverInfo:y,textColorTextPressedInfo:b,textColorTextFocusInfo:y,textColorTextDisabledInfo:d,textColorGhostInfo:v,textColorGhostHoverInfo:y,textColorGhostPressedInfo:b,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:v,borderInfo:`1px solid ${v}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${b}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${v}`,rippleColorInfo:v,colorSuccess:x,colorHoverSuccess:S,colorPressedSuccess:C,colorFocusSuccess:S,colorDisabledSuccess:x,textColorSuccess:_,textColorHoverSuccess:_,textColorPressedSuccess:_,textColorFocusSuccess:_,textColorDisabledSuccess:_,textColorTextSuccess:x,textColorTextHoverSuccess:S,textColorTextPressedSuccess:C,textColorTextFocusSuccess:S,textColorTextDisabledSuccess:d,textColorGhostSuccess:x,textColorGhostHoverSuccess:S,textColorGhostPressedSuccess:C,textColorGhostFocusSuccess:S,textColorGhostDisabledSuccess:x,borderSuccess:`1px solid ${x}`,borderHoverSuccess:`1px solid ${S}`,borderPressedSuccess:`1px solid ${C}`,borderFocusSuccess:`1px solid ${S}`,borderDisabledSuccess:`1px solid ${x}`,rippleColorSuccess:x,colorWarning:w,colorHoverWarning:T,colorPressedWarning:E,colorFocusWarning:T,colorDisabledWarning:w,textColorWarning:_,textColorHoverWarning:_,textColorPressedWarning:_,textColorFocusWarning:_,textColorDisabledWarning:_,textColorTextWarning:w,textColorTextHoverWarning:T,textColorTextPressedWarning:E,textColorTextFocusWarning:T,textColorTextDisabledWarning:d,textColorGhostWarning:w,textColorGhostHoverWarning:T,textColorGhostPressedWarning:E,textColorGhostFocusWarning:T,textColorGhostDisabledWarning:w,borderWarning:`1px solid ${w}`,borderHoverWarning:`1px solid ${T}`,borderPressedWarning:`1px solid ${E}`,borderFocusWarning:`1px solid ${T}`,borderDisabledWarning:`1px solid ${w}`,rippleColorWarning:w,colorError:D,colorHoverError:O,colorPressedError:k,colorFocusError:O,colorDisabledError:D,textColorError:_,textColorHoverError:_,textColorPressedError:_,textColorFocusError:_,textColorDisabledError:_,textColorTextError:D,textColorTextHoverError:O,textColorTextPressedError:k,textColorTextFocusError:O,textColorTextDisabledError:d,textColorGhostError:D,textColorGhostHoverError:O,textColorGhostPressedError:k,textColorGhostFocusError:O,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${O}`,borderPressedError:`1px solid ${k}`,borderFocusError:`1px solid ${O}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:`0.6`,fontWeight:A,fontWeightStrong:P})}var q={name:`Button`,common:O,self:K},J=E([j(`button`,`
|
|
27
27
|
margin: 0;
|
|
28
28
|
font-weight: var(--n-font-weight);
|
|
29
29
|
line-height: 1;
|
|
@@ -55,7 +55,7 @@ import{C as e,E as t,at as n,k as r,l as i,tt as a,v as o,x as s}from"./runtime-
|
|
|
55
55
|
background-color .3s var(--n-bezier),
|
|
56
56
|
opacity .3s var(--n-bezier),
|
|
57
57
|
border-color .3s var(--n-bezier);
|
|
58
|
-
`,[
|
|
58
|
+
`,[P(`color`,[S(`border`,{borderColor:`var(--n-border-color)`}),P(`disabled`,[S(`border`,{borderColor:`var(--n-border-color-disabled)`})]),_(`disabled`,[E(`&:focus`,[S(`state-border`,{borderColor:`var(--n-border-color-focus)`})]),E(`&:hover`,[S(`state-border`,{borderColor:`var(--n-border-color-hover)`})]),E(`&:active`,[S(`state-border`,{borderColor:`var(--n-border-color-pressed)`})]),P(`pressed`,[S(`state-border`,{borderColor:`var(--n-border-color-pressed)`})])])]),P(`disabled`,{backgroundColor:`var(--n-color-disabled)`,color:`var(--n-text-color-disabled)`},[S(`border`,{border:`var(--n-border-disabled)`})]),_(`disabled`,[E(`&:focus`,{backgroundColor:`var(--n-color-focus)`,color:`var(--n-text-color-focus)`},[S(`state-border`,{border:`var(--n-border-focus)`})]),E(`&:hover`,{backgroundColor:`var(--n-color-hover)`,color:`var(--n-text-color-hover)`},[S(`state-border`,{border:`var(--n-border-hover)`})]),E(`&:active`,{backgroundColor:`var(--n-color-pressed)`,color:`var(--n-text-color-pressed)`},[S(`state-border`,{border:`var(--n-border-pressed)`})]),P(`pressed`,{backgroundColor:`var(--n-color-pressed)`,color:`var(--n-text-color-pressed)`},[S(`state-border`,{border:`var(--n-border-pressed)`})])]),P(`loading`,`cursor: wait;`),j(`base-wave`,`
|
|
59
59
|
pointer-events: none;
|
|
60
60
|
top: 0;
|
|
61
61
|
right: 0;
|
|
@@ -64,7 +64,7 @@ import{C as e,E as t,at as n,k as r,l as i,tt as a,v as o,x as s}from"./runtime-
|
|
|
64
64
|
animation-iteration-count: 1;
|
|
65
65
|
animation-duration: var(--n-ripple-duration);
|
|
66
66
|
animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
|
|
67
|
-
`,[
|
|
67
|
+
`,[P(`active`,{zIndex:1,animationName:`button-wave-spread, button-wave-opacity`})]),p&&`MozBoxSizing`in document.createElement(`div`).style?E(`&::moz-focus-inner`,{border:0}):null,S(`border, state-border`,`
|
|
68
68
|
position: absolute;
|
|
69
69
|
left: 0;
|
|
70
70
|
top: 0;
|
|
@@ -73,13 +73,13 @@ import{C as e,E as t,at as n,k as r,l as i,tt as a,v as o,x as s}from"./runtime-
|
|
|
73
73
|
border-radius: inherit;
|
|
74
74
|
transition: border-color .3s var(--n-bezier);
|
|
75
75
|
pointer-events: none;
|
|
76
|
-
`),
|
|
76
|
+
`),S(`border`,`
|
|
77
77
|
border: var(--n-border);
|
|
78
|
-
`),
|
|
78
|
+
`),S(`state-border`,`
|
|
79
79
|
border: var(--n-border);
|
|
80
80
|
border-color: #0000;
|
|
81
81
|
z-index: 1;
|
|
82
|
-
`),
|
|
82
|
+
`),S(`icon`,`
|
|
83
83
|
margin: var(--n-icon-margin);
|
|
84
84
|
margin-left: 0;
|
|
85
85
|
height: var(--n-icon-size);
|
|
@@ -88,7 +88,7 @@ import{C as e,E as t,at as n,k as r,l as i,tt as a,v as o,x as s}from"./runtime-
|
|
|
88
88
|
font-size: var(--n-icon-size);
|
|
89
89
|
position: relative;
|
|
90
90
|
flex-shrink: 0;
|
|
91
|
-
`,[
|
|
91
|
+
`,[j(`icon-slot`,`
|
|
92
92
|
height: var(--n-icon-size);
|
|
93
93
|
width: var(--n-icon-size);
|
|
94
94
|
position: absolute;
|
|
@@ -98,12 +98,12 @@ import{C as e,E as t,at as n,k as r,l as i,tt as a,v as o,x as s}from"./runtime-
|
|
|
98
98
|
display: flex;
|
|
99
99
|
align-items: center;
|
|
100
100
|
justify-content: center;
|
|
101
|
-
`,[
|
|
101
|
+
`,[T({top:`50%`,originalTransform:`translateY(-50%)`})]),z()]),S(`content`,`
|
|
102
102
|
display: flex;
|
|
103
103
|
align-items: center;
|
|
104
104
|
flex-wrap: nowrap;
|
|
105
105
|
min-width: 0;
|
|
106
|
-
`,[
|
|
106
|
+
`,[E(`~`,[S(`icon`,{margin:`var(--n-icon-margin)`,marginRight:0})])]),P(`block`,`
|
|
107
107
|
display: flex;
|
|
108
108
|
width: 100%;
|
|
109
|
-
`),
|
|
109
|
+
`),P(`dashed`,[S(`border, state-border`,{borderStyle:`dashed !important`})]),P(`disabled`,{cursor:`not-allowed`,opacity:`var(--n-opacity-disabled)`})]),E(`@keyframes button-wave-spread`,{from:{boxShadow:`0 0 0.5px 0 var(--n-ripple-color)`},to:{boxShadow:`0 0 0.5px 4.5px var(--n-ripple-color)`}}),E(`@keyframes button-wave-opacity`,{from:{opacity:`var(--n-wave-opacity)`},to:{opacity:0}})]),Y=r({name:`Button`,props:Object.assign(Object.assign({},x.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:`button`},type:{type:String,default:`default`},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:`left`},attrType:{type:String,default:`button`},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!C},spinProps:Object}),slots:Object,setup(n){let r=e(null),i=e(null),o=e(!1),s=M(()=>!n.quaternary&&!n.tertiary&&!n.secondary&&!n.text&&(!n.color||n.ghost||n.dashed)&&n.bordered),c=t(W,{}),{inlineThemeDisabled:l,mergedClsPrefixRef:u,mergedRtlRef:p,mergedComponentPropsRef:h}=m(n),{mergedSizeRef:g}=F({},{defaultSize:`medium`,mergedSize:e=>{let{size:t}=n;if(t)return t;let{size:r}=c;if(r)return r;let{mergedSize:i}=e||{};return i?i.value:h?.value?.Button?.size||`medium`}}),_=a(()=>n.focusable&&!n.disabled),b=e=>{var t;_.value||e.preventDefault(),!n.nativeFocusBehavior&&(e.preventDefault(),!n.disabled&&_.value&&((t=r.value)==null||t.focus({preventScroll:!0})))},S=e=>{var t;if(!n.disabled&&!n.loading){let{onClick:r}=n;r&&f(r,e),n.text||(t=i.value)==null||t.play()}},C=e=>{switch(e.key){case`Enter`:if(!n.keyboard)return;o.value=!1}},T=e=>{switch(e.key){case`Enter`:if(!n.keyboard||n.loading){e.preventDefault();return}o.value=!0}},E=()=>{o.value=!1},D=x(`Button`,`-button`,J,q,n,u),O=v(`Button`,p,u),k=a(()=>{let{common:{cubicBezierEaseInOut:e,cubicBezierEaseOut:t},self:r}=D.value,{rippleDuration:i,opacityDisabled:a,fontWeight:o,fontWeightStrong:s}=r,c=g.value,{dashed:l,type:u,ghost:d,text:f,color:p,round:m,circle:h,textColor:_,secondary:v,tertiary:b,quaternary:x,strong:S}=n,C={"--n-font-weight":S?s:o},T={"--n-color":`initial`,"--n-color-hover":`initial`,"--n-color-pressed":`initial`,"--n-color-focus":`initial`,"--n-color-disabled":`initial`,"--n-ripple-color":`initial`,"--n-text-color":`initial`,"--n-text-color-hover":`initial`,"--n-text-color-pressed":`initial`,"--n-text-color-focus":`initial`,"--n-text-color-disabled":`initial`},E=u===`tertiary`,O=u===`default`,k=E?`default`:u;if(f){let e=_||p;T={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":`#0000`,"--n-text-color":e||r[y(`textColorText`,k)],"--n-text-color-hover":e?H(e):r[y(`textColorTextHover`,k)],"--n-text-color-pressed":e?U(e):r[y(`textColorTextPressed`,k)],"--n-text-color-focus":e?H(e):r[y(`textColorTextHover`,k)],"--n-text-color-disabled":e||r[y(`textColorTextDisabled`,k)]}}else if(d||l){let e=_||p;T={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":p||r[y(`rippleColor`,k)],"--n-text-color":e||r[y(`textColorGhost`,k)],"--n-text-color-hover":e?H(e):r[y(`textColorGhostHover`,k)],"--n-text-color-pressed":e?U(e):r[y(`textColorGhostPressed`,k)],"--n-text-color-focus":e?H(e):r[y(`textColorGhostHover`,k)],"--n-text-color-disabled":e||r[y(`textColorGhostDisabled`,k)]}}else if(v){let e=O?r.textColor:E?r.textColorTertiary:r[y(`color`,k)],t=p||e,n=u!==`default`&&u!==`tertiary`;T={"--n-color":n?w(t,{alpha:Number(r.colorOpacitySecondary)}):r.colorSecondary,"--n-color-hover":n?w(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-pressed":n?w(t,{alpha:Number(r.colorOpacitySecondaryPressed)}):r.colorSecondaryPressed,"--n-color-focus":n?w(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-disabled":r.colorSecondary,"--n-ripple-color":`#0000`,"--n-text-color":t,"--n-text-color-hover":t,"--n-text-color-pressed":t,"--n-text-color-focus":t,"--n-text-color-disabled":t}}else if(b||x){let e=O?r.textColor:E?r.textColorTertiary:r[y(`color`,k)],t=p||e;b?(T[`--n-color`]=r.colorTertiary,T[`--n-color-hover`]=r.colorTertiaryHover,T[`--n-color-pressed`]=r.colorTertiaryPressed,T[`--n-color-focus`]=r.colorSecondaryHover,T[`--n-color-disabled`]=r.colorTertiary):(T[`--n-color`]=r.colorQuaternary,T[`--n-color-hover`]=r.colorQuaternaryHover,T[`--n-color-pressed`]=r.colorQuaternaryPressed,T[`--n-color-focus`]=r.colorQuaternaryHover,T[`--n-color-disabled`]=r.colorQuaternary),T[`--n-ripple-color`]=`#0000`,T[`--n-text-color`]=t,T[`--n-text-color-hover`]=t,T[`--n-text-color-pressed`]=t,T[`--n-text-color-focus`]=t,T[`--n-text-color-disabled`]=t}else T={"--n-color":p||r[y(`color`,k)],"--n-color-hover":p?H(p):r[y(`colorHover`,k)],"--n-color-pressed":p?U(p):r[y(`colorPressed`,k)],"--n-color-focus":p?H(p):r[y(`colorFocus`,k)],"--n-color-disabled":p||r[y(`colorDisabled`,k)],"--n-ripple-color":p||r[y(`rippleColor`,k)],"--n-text-color":_||(p?r.textColorPrimary:E?r.textColorTertiary:r[y(`textColor`,k)]),"--n-text-color-hover":_||(p?r.textColorHoverPrimary:r[y(`textColorHover`,k)]),"--n-text-color-pressed":_||(p?r.textColorPressedPrimary:r[y(`textColorPressed`,k)]),"--n-text-color-focus":_||(p?r.textColorFocusPrimary:r[y(`textColorFocus`,k)]),"--n-text-color-disabled":_||(p?r.textColorDisabledPrimary:r[y(`textColorDisabled`,k)])};let A={"--n-border":`initial`,"--n-border-hover":`initial`,"--n-border-pressed":`initial`,"--n-border-focus":`initial`,"--n-border-disabled":`initial`};A=f?{"--n-border":`none`,"--n-border-hover":`none`,"--n-border-pressed":`none`,"--n-border-focus":`none`,"--n-border-disabled":`none`}:{"--n-border":r[y(`border`,k)],"--n-border-hover":r[y(`borderHover`,k)],"--n-border-pressed":r[y(`borderPressed`,k)],"--n-border-focus":r[y(`borderFocus`,k)],"--n-border-disabled":r[y(`borderDisabled`,k)]};let{[y(`height`,c)]:j,[y(`fontSize`,c)]:M,[y(`padding`,c)]:N,[y(`paddingRound`,c)]:P,[y(`iconSize`,c)]:F,[y(`borderRadius`,c)]:I,[y(`iconMargin`,c)]:L,waveOpacity:R}=r,z={"--n-width":h&&!f?j:`initial`,"--n-height":f?`initial`:j,"--n-font-size":M,"--n-padding":h||f?`initial`:m?P:N,"--n-icon-size":F,"--n-icon-margin":L,"--n-border-radius":f?`initial`:h||m?j:I};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":e,"--n-bezier-ease-out":t,"--n-ripple-duration":i,"--n-opacity-disabled":a,"--n-wave-opacity":R},C),T),A),z)}),A=l?d(`button`,a(()=>{let e=``,{dashed:t,type:r,ghost:i,text:a,color:o,round:s,circle:c,textColor:l,secondary:u,tertiary:d,quaternary:f,strong:p}=n;t&&(e+=`a`),i&&(e+=`b`),a&&(e+=`c`),s&&(e+=`d`),c&&(e+=`e`),u&&(e+=`f`),d&&(e+=`g`),f&&(e+=`h`),p&&(e+=`i`),o&&(e+=`j${I(o)}`),l&&(e+=`k${I(l)}`);let{value:m}=g;return e+=`l${m[0]}`,e+=`m${r[0]}`,e}),k,n):void 0;return{selfElRef:r,waveElRef:i,mergedClsPrefix:u,mergedFocusable:_,mergedSize:g,showBorder:s,enterPressed:o,rtlEnabled:O,handleMousedown:b,handleKeydown:T,handleBlur:E,handleKeyup:C,handleClick:S,customColorCssVars:a(()=>{let{color:e}=n;if(!e)return null;let t=H(e);return{"--n-border-color":e,"--n-border-color-hover":t,"--n-border-color-pressed":U(e),"--n-border-color-focus":t,"--n-border-color-disabled":e}}),cssVars:l?void 0:k,themeClass:A?.themeClass,onRender:A?.onRender}},render(){let{mergedClsPrefix:e,tag:t,onRender:n}=this;n?.();let r=D(this.$slots.default,t=>t&&l(`span`,{class:`${e}-button__content`},t));return l(t,{ref:`selfElRef`,class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement===`right`&&r,l(L,{width:!0},{default:()=>D(this.$slots.icon,t=>(this.loading||this.renderIcon||t)&&l(`span`,{class:`${e}-button__icon`,style:{margin:h(this.$slots.default)?`0`:``}},l(A,null,{default:()=>this.loading?l(b,Object.assign({clsPrefix:e,key:`loading`,class:`${e}-icon-slot`,strokeWidth:20},this.spinProps)):l(`div`,{key:`icon`,class:`${e}-icon-slot`,role:`none`},this.renderIcon?this.renderIcon():t)})))}),this.iconPlacement===`left`&&r,this.text?null:l(V,{ref:`waveElRef`,clsPrefix:e}),this.showBorder?l(`div`,{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?l(`div`,{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),X=Y,Z=u(`n-message-api`),Q=u(`n-message-provider`);export{q as a,X as i,Q as n,L as o,Y as r,I as s,Z as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.model-selector[data-v-00830782]{margin-bottom:8px;padding:0 12px}.model-label[data-v-00830782]{color:#999;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px;font-size:11px;font-weight:600}.sidebar[data-v-
|
|
1
|
+
.model-selector[data-v-00830782]{margin-bottom:8px;padding:0 12px}.model-label[data-v-00830782]{color:#999;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px;font-size:11px;font-weight:600}.sidebar[data-v-d057e9ce]{background-color:#f5f5f5;border-right:1px solid #e0e0e0;flex-direction:column;flex-shrink:0;width:240px;height:100vh;padding:20px 12px;transition:width .25s;display:flex}.logo-img[data-v-d057e9ce]{border-radius:50%;flex-shrink:0;width:28px;height:28px}.sidebar-logo[data-v-d057e9ce]{color:#1a1a1a;cursor:pointer;align-items:center;gap:10px;padding:4px 12px 20px;display:flex}.sidebar-logo .logo-text[data-v-d057e9ce]{letter-spacing:.5px;font-size:18px;font-weight:600}.sidebar-nav[data-v-d057e9ce]{flex-direction:column;flex:1;gap:4px;display:flex}.nav-item[data-v-d057e9ce]{color:#666;cursor:pointer;text-align:left;background:0 0;border:none;border-radius:6px;align-items:center;gap:10px;width:100%;padding:10px 12px;font-size:14px;transition:all .15s;display:flex}.nav-item[data-v-d057e9ce]:hover{color:#1a1a1a;background-color:#3333330f}.nav-item.active[data-v-d057e9ce]{color:#333;background-color:#3333331f}.sidebar-footer[data-v-d057e9ce]{border-top:1px solid #e0e0e0;padding-top:16px}.status-row[data-v-d057e9ce]{justify-content:space-between;align-items:center;padding:8px 12px;display:flex}.status-indicator[data-v-d057e9ce]{align-items:center;gap:8px;font-size:12px;display:flex}.status-indicator .status-dot[data-v-d057e9ce]{border-radius:50%;flex-shrink:0;width:8px;height:8px}.status-indicator.connected .status-dot[data-v-d057e9ce]{background-color:#2e7d32;box-shadow:0 0 6px #2e7d3280}.status-indicator.disconnected .status-dot[data-v-d057e9ce]{background-color:#c62828}.status-indicator .status-text[data-v-d057e9ce]{color:#666}.version-info[data-v-d057e9ce]{color:#999;padding:2px 12px 8px;font-size:11px}.app-layout[data-v-53c52aee]{width:100vw;height:100vh;display:flex;overflow:hidden}.app-main[data-v-53c52aee]{background-color:#fafafa;flex:1;overflow:hidden}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html,body,#app{width:100%;height:100%;overflow:hidden}body{color:#1a1a1a;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fafafa;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.6}code,pre,.mono{font-family:JetBrains Mono,Fira Code,Consolas,monospace}a{color:#333;text-decoration:none}a:hover{color:#1a1a1a}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#e0e0e0;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#999}::selection{background:#3333334d}
|