mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
cleanup
This commit is contained in:
parent
ba5a089382
commit
1eb7ff512e
@ -236,29 +236,19 @@ class AIChat extends React.Component<{}, {}> {
|
|||||||
const chitem: OpenAICmdInfoChatMessageType = null;
|
const chitem: OpenAICmdInfoChatMessageType = null;
|
||||||
const renderKeybindings = GlobalModel.inputModel.shouldRenderAuxViewKeybindings(appconst.InputAuxView_AIChat);
|
const renderKeybindings = GlobalModel.inputModel.shouldRenderAuxViewKeybindings(appconst.InputAuxView_AIChat);
|
||||||
return (
|
return (
|
||||||
// <AuxiliaryCmdView
|
|
||||||
// title="Wave AI"
|
|
||||||
// className="cmd-aichat"
|
|
||||||
// onClose={() => GlobalModel.inputModel.closeAuxView()}
|
|
||||||
// iconClass="fa-sharp fa-solid fa-sparkles"
|
|
||||||
// >
|
|
||||||
<div className="sidebar-aichat">
|
<div className="sidebar-aichat">
|
||||||
{/* <If condition={renderKeybindings}> */}
|
|
||||||
<AIChatKeybindings AIChatObject={this}></AIChatKeybindings>
|
<AIChatKeybindings AIChatObject={this}></AIChatKeybindings>
|
||||||
{/* </If> */}
|
|
||||||
<div className="titlebar">
|
<div className="titlebar">
|
||||||
<div className="title-string">Wave AI</div>
|
<div className="title-string">Wave AI</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<OverlayScrollbarsComponent className="content" options={{ scrollbars: { autoHide: "leave" } }}>
|
<OverlayScrollbarsComponent className="content" options={{ scrollbars: { autoHide: "leave" } }}>
|
||||||
{/* <div className="content"> */}
|
|
||||||
<div className="chat-window" ref={this.chatWindowScrollRef}>
|
<div className="chat-window" ref={this.chatWindowScrollRef}>
|
||||||
<div className="filler"></div>
|
<div className="filler"></div>
|
||||||
<For each="chitem" index="idx" of={chatMessageItems}>
|
<For each="chitem" index="idx" of={chatMessageItems}>
|
||||||
{this.renderChatMessage(chitem)}
|
{this.renderChatMessage(chitem)}
|
||||||
</For>
|
</For>
|
||||||
</div>
|
</div>
|
||||||
{/* </div> */}
|
|
||||||
</OverlayScrollbarsComponent>
|
</OverlayScrollbarsComponent>
|
||||||
|
|
||||||
<div className="chat-input">
|
<div className="chat-input">
|
||||||
@ -269,8 +259,6 @@ class AIChat extends React.Component<{}, {}> {
|
|||||||
autoCorrect="off"
|
autoCorrect="off"
|
||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
id="chat-cmd-input"
|
id="chat-cmd-input"
|
||||||
// onFocus={this.onTextAreaFocused.bind(this)}
|
|
||||||
// onBlur={this.onTextAreaBlur.bind(this)}
|
|
||||||
onChange={this.onTextAreaChange.bind(this)}
|
onChange={this.onTextAreaChange.bind(this)}
|
||||||
onKeyDown={this.onKeyDown}
|
onKeyDown={this.onKeyDown}
|
||||||
style={{ fontSize: this.termFontSize }}
|
style={{ fontSize: this.termFontSize }}
|
||||||
@ -279,7 +267,6 @@ class AIChat extends React.Component<{}, {}> {
|
|||||||
></textarea>
|
></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
// </AuxiliaryCmdView>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user