fix: xterm-addon-fit deprecated (#321)

This commit is contained in:
Meier Lukas
2024-04-09 21:50:35 +02:00
committed by GitHub
parent 669c6c8955
commit e6e6e4e7d6
3 changed files with 14 additions and 20 deletions

View File

@@ -45,6 +45,7 @@
"@trpc/react-query": "next",
"@trpc/server": "next",
"@xterm/addon-canvas": "^0.7.0",
"@xterm/addon-fit": "0.10.0",
"@xterm/xterm": "^5.5.0",
"chroma-js": "^2.4.2",
"dayjs": "^1.11.10",
@@ -56,8 +57,7 @@
"react-dom": "18.2.0",
"sass": "^1.74.1",
"superjson": "2.2.1",
"use-deep-compare-effect": "^1.8.1",
"xterm-addon-fit": "^0.8.0"
"use-deep-compare-effect": "^1.8.1"
},
"devDependencies": {
"@homarr/eslint-config": "workspace:^0.2.0",
@@ -69,7 +69,6 @@
"@types/chroma-js": "2.4.4",
"dotenv-cli": "^7.4.1",
"concurrently": "^8.2.2",
"dotenv-cli": "^7.4.1",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"tsx": "^4.7.2",

View File

@@ -2,8 +2,8 @@
import { useEffect, useRef } from "react";
import { CanvasAddon } from "@xterm/addon-canvas";
import { FitAddon } from "@xterm/addon-fit";
import { Terminal } from "@xterm/xterm";
import { FitAddon } from "xterm-addon-fit";
import { clientApi } from "@homarr/api/client";
import { Box } from "@homarr/ui";