mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-22 02:41:23 +01:00
stub remote show all
This commit is contained in:
parent
121da87eea
commit
aa0f9d98d1
21
src/main.tsx
21
src/main.tsx
@ -669,7 +669,23 @@ class TextAreaInput extends React.Component<{}, {}> {
|
||||
}
|
||||
|
||||
@mobxReact.observer
|
||||
class InfoShowRemote extends React.Component<{}, {}> {
|
||||
class InfoRemoteShowAll extends React.Component<{}, {}> {
|
||||
render() {
|
||||
let inputModel = GlobalModel.inputModel;
|
||||
let infoMsg = inputModel.infoMsg.get();
|
||||
if (infoMsg == null || !infoMsg.remoteshowall) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<div className="info-remote-showall">
|
||||
showall
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@mobxReact.observer
|
||||
class InfoRemoteShow extends React.Component<{}, {}> {
|
||||
getRemoteTypeStr(remote : RemoteType) : string {
|
||||
let mshellStr = "";
|
||||
if (!isBlank(remote.mshellversion)) {
|
||||
@ -823,7 +839,8 @@ class InfoMsg extends React.Component<{}, {}> {
|
||||
</For>
|
||||
</div>
|
||||
</If>
|
||||
<InfoShowRemote key="infoshow"/>
|
||||
<InfoRemoteShow key="inforemoteshow"/>
|
||||
<InfoRemoteShowAll key="inforemoteshowall"/>
|
||||
<If condition={infoMsg && infoMsg.infocomps != null && infoMsg.infocomps.length > 0}>
|
||||
<div key="infocomps" className="info-comps">
|
||||
<For each="istr" index="idx" of={infoMsg.infocomps}>
|
||||
|
@ -856,6 +856,11 @@ body .xterm .xterm-viewport {
|
||||
}
|
||||
}
|
||||
|
||||
.info-remote-showall {
|
||||
color: #d3d7cf;
|
||||
.mono-font(12px);
|
||||
}
|
||||
|
||||
.text-button {
|
||||
.mono-font(12px, 600);
|
||||
color: @term-white;
|
||||
|
@ -83,6 +83,7 @@ type RemoteType = {
|
||||
errorstr : string,
|
||||
defaultstate : RemoteStateType,
|
||||
connectmode : string,
|
||||
autoinstall : boolean,
|
||||
remoteidx : number,
|
||||
archived : boolean,
|
||||
uname : string,
|
||||
|
Loading…
Reference in New Issue
Block a user