mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
refactored plugin
This commit is contained in:
@@ -81,9 +81,6 @@ svg.icon {
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.is-dev #title-bar {
|
||||
background: @base-background-dev;
|
||||
}
|
||||
|
||||
.content {
|
||||
a:hover {
|
||||
|
||||
@@ -28,9 +28,9 @@ import { ReactComponent as MinusIcon } from "../assets/icons/minus.svg";
|
||||
|
||||
import type { LineContainerModel } from "../../model/model";
|
||||
import { renderCmdText } from "../common/common";
|
||||
import { SimpleBlobRenderer } from "../../plugins/prompt-core/renderer/basicrenderer";
|
||||
import { IncrementalRenderer } from "../../plugins/prompt-core/renderer/incrementalrenderer";
|
||||
import { TerminalRenderer } from "../../plugins/prompt-core/terminal/terminal";
|
||||
import { SimpleBlobRenderer } from "../../plugins/core/basicrenderer";
|
||||
import { IncrementalRenderer } from "../../plugins/core/incrementalrenderer";
|
||||
import { TerminalRenderer } from "../../plugins/terminal/terminal";
|
||||
import { isBlank } from "../../util/util";
|
||||
import { PluginModel } from "../../plugins/plugins";
|
||||
import { Prompt } from "../common/prompt/prompt";
|
||||
|
||||
@@ -254,3 +254,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.is-dev .main-sidebar {
|
||||
background-color: @base-background-dev;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
@base-color: #eceeec;
|
||||
@base-background: rgba(21, 23, 21, 1);
|
||||
@base-background-transparent: rgba(21, 23, 21, 0.7);
|
||||
@base-background-dev: rgba(21, 23, 21, 1);
|
||||
@base-background-dev: rgb(27, 0, 30);
|
||||
@base-border: rgba(241, 246, 243, 0.08);
|
||||
@background-session: rgba(13, 13, 13, 0.85);
|
||||
@background-session-components: rgba(48, 49, 48, 0.6);
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import {
|
||||
boundInt,
|
||||
isModKeyPress,
|
||||
} from "../util/util";
|
||||
import { TermWrap } from "../plugins/prompt-core/terminal/term";
|
||||
import { TermWrap } from "../plugins/terminal/term";
|
||||
import type {
|
||||
SessionDataType,
|
||||
LineType,
|
||||
|
||||
+3
-3
@@ -13,10 +13,10 @@ import type {
|
||||
LineStateType,
|
||||
TermContextUnion,
|
||||
RendererContainerType,
|
||||
} from "../../../types/types";
|
||||
} from "../../types/types";
|
||||
import { debounce, throttle } from "throttle-debounce";
|
||||
import * as util from "../../../util/util";
|
||||
import { GlobalModel } from "../../../model/model";
|
||||
import * as util from "../../util/util";
|
||||
import { GlobalModel } from "../../model/model";
|
||||
|
||||
type OV<V> = mobx.IObservableValue<V>;
|
||||
type CV<V> = mobx.IComputedValue<V>;
|
||||
@@ -4,7 +4,7 @@ import * as mobxReact from "mobx-react";
|
||||
import * as T from "../../types/types";
|
||||
import { debounce } from "throttle-debounce";
|
||||
import { boundMethod } from "autobind-decorator";
|
||||
import { PacketDataBuffer } from "../prompt-core/ptydata";
|
||||
import { PacketDataBuffer } from "../core/ptydata";
|
||||
import { Markdown } from "../../app/common/common";
|
||||
|
||||
import "./openai.less";
|
||||
|
||||
@@ -2,8 +2,8 @@ import * as mobx from "mobx";
|
||||
import { Terminal } from "xterm";
|
||||
import { sprintf } from "sprintf-js";
|
||||
import { boundMethod } from "autobind-decorator";
|
||||
import { windowWidthToCols, windowHeightToRows } from "../../../util/textmeasure";
|
||||
import { boundInt } from "../../../util/util";
|
||||
import { windowWidthToCols, windowHeightToRows } from "../../util/textmeasure";
|
||||
import { boundInt } from "../../util/util";
|
||||
import type {
|
||||
TermContextUnion,
|
||||
TermOptsType,
|
||||
@@ -11,8 +11,8 @@ import type {
|
||||
RendererContext,
|
||||
WindowSize,
|
||||
PtyDataType,
|
||||
} from "../../../types/types";
|
||||
import { getTheme } from "../../../app/common/themes";
|
||||
} from "../../types/types";
|
||||
import { getTheme } from "../../app/common/themes";
|
||||
|
||||
type DataUpdate = {
|
||||
data: Uint8Array;
|
||||
@@ -1,4 +1,4 @@
|
||||
@import "../../../index.less";
|
||||
@import "../../index.less";
|
||||
@import "./xterm.less";
|
||||
|
||||
.terminal-wrapper {
|
||||
@@ -5,11 +5,11 @@ import { boundMethod } from "autobind-decorator";
|
||||
import dayjs from "dayjs";
|
||||
import localizedFormat from "dayjs/plugin/localizedFormat";
|
||||
import { If } from "tsx-control-statements/components";
|
||||
import { GlobalModel, LineContainerModel } from "../../../model/model";
|
||||
import { termHeightFromRows } from "../../../util/textmeasure";
|
||||
import type { LineType } from "../../../types/types";
|
||||
import { GlobalModel, LineContainerModel } from "../../model/model";
|
||||
import { termHeightFromRows } from "../../util/textmeasure";
|
||||
import type { LineType } from "../../types/types";
|
||||
import cn from "classnames";
|
||||
import * as lineutil from "../../../app/line/lineutil";
|
||||
import * as lineutil from "../../app/line/lineutil";
|
||||
|
||||
import "./terminal.less";
|
||||
|
||||
Reference in New Issue
Block a user