Skip to content

Commit e3c3806

Browse files
committed
fix: delete useless packages
1 parent e592760 commit e3c3806

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
"@fortawesome/free-solid-svg-icons": "^6.4.0",
1818
"@fortawesome/vue-fontawesome": "^3.0.3",
1919
"@pivot-lang/create-monaco": "link:src/hooks/monaco",
20-
"@xterm/addon-canvas": "0.6.0-beta.1",
21-
"@xterm/addon-fit": "0.9.0-beta.1",
22-
"@xterm/addon-unicode11": "0.7.0-beta.1",
23-
"@xterm/addon-webgl": "0.17.0-beta.1",
24-
"ansi-to-html": "^0.7.2",
25-
"ansi_up": "^6.0.2",
2620
"axios": "^1.3.6",
2721
"device-detector-js": "^3.0.3",
2822
"echarts": "^5.4.2",

src/pages/index.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,9 @@ import { memberList } from "@/constant";
1818
import createMonaco, { PlMonaco } from "@pivot-lang/create-monaco";
1919
import CodeBlock from "@/components/codeBlock.vue";
2020
import { cp } from "fs";
21-
import { AnsiUp } from "ansi_up";
22-
import Convert from "ansi-to-html";
2321
import "xterm/css/xterm.css";
2422
import { Terminal } from "xterm";
25-
import { Unicode11Addon } from "@xterm/addon-unicode11";
26-
import { CanvasAddon } from "@xterm/addon-canvas";
27-
import { WebglAddon } from "@xterm/addon-webgl";
2823
29-
import { FitAddon } from "@xterm/addon-fit";
3024
const tabVal = ref("hello world");
3125
const tabList = basicCode.map((item) => item.title);
3226
let monaco: PlMonaco;
@@ -36,8 +30,6 @@ function gotoEmail() {
3630
window.location.href = "mailto:[email protected]";
3731
}
3832
39-
const ansiUp = new AnsiUp();
40-
const convert = new Convert();
4133
const terminal = new Terminal({
4234
convertEol: true,
4335
disableStdin: true, //是否应禁用输入
@@ -63,8 +55,6 @@ onMounted(async () => {
6355
monaco.editor.onDidChangeModelContent(() => {
6456
code.value = monaco.editor.getModel()!.getValue();
6557
});
66-
const canvasAddon = new CanvasAddon();
67-
terminal.loadAddon(canvasAddon);
6858
terminal.open(document.querySelector(".code-block") as HTMLElement);
6959
terminal.resize(44, 17);
7060
});

0 commit comments

Comments
 (0)