From c150286c0ab8c02b32c3233f7bbe482a73b4f97e Mon Sep 17 00:00:00 2001 From: Ruihao Li <98494165+li-ruihao@users.noreply.github.com> Date: Sun, 21 Jul 2024 22:02:47 -0400 Subject: [PATCH] Update noVNC import paths due to package structure changes. (#30) --- client/package.json | 2 +- client/src/actions/vnc.js | 6 +++--- client/src/interface/pages/VNCViewer/VNCSpeedDial.js | 2 +- client/src/interface/pages/VNCViewer/index.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/package.json b/client/package.json index 4dba71d..14e3fc5 100644 --- a/client/package.json +++ b/client/package.json @@ -10,7 +10,7 @@ "@mui/lab": "^5.0.0-alpha.114", "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", - "@novnc/novnc": "^1.4.0", + "@novnc/novnc": "^1.5.0", "axios": "^1.2.1", "react": "^17.0.2", "react-dom": "^17.0.2", diff --git a/client/src/actions/vnc.js b/client/src/actions/vnc.js index 79b7c97..9eba090 100644 --- a/client/src/actions/vnc.js +++ b/client/src/actions/vnc.js @@ -21,9 +21,9 @@ */ import {ICtrlError, ICtrlStep} from './codes'; -import RFB from '@novnc/novnc/core/rfb'; -import KeyTable from '@novnc/novnc/core/input/keysym'; -import keysyms from '@novnc/novnc/core/input/keysymdef'; +import RFB from '@novnc/novnc/lib/rfb'; +import KeyTable from '@novnc/novnc/lib/input/keysym'; +import keysyms from '@novnc/novnc/lib/input/keysymdef'; import { SSHAuthenticationWrong, SSHHostUnreachableRefresh, diff --git a/client/src/interface/pages/VNCViewer/VNCSpeedDial.js b/client/src/interface/pages/VNCViewer/VNCSpeedDial.js index 3109744..639c800 100644 --- a/client/src/interface/pages/VNCViewer/VNCSpeedDial.js +++ b/client/src/interface/pages/VNCViewer/VNCSpeedDial.js @@ -57,7 +57,7 @@ import './index.css'; import {focusOnKeyboard} from '../../../actions/vnc'; import axios from 'axios'; import {launch_audio} from '../../../actions/audio'; -import RFB from '@novnc/novnc/core/rfb'; +import RFB from '@novnc/novnc/lib/rfb'; import {IOSSwitch} from '../../components/IOSSwitch'; import ResetVNCDialog from '../../components/ResetVNCDialog'; diff --git a/client/src/interface/pages/VNCViewer/index.js b/client/src/interface/pages/VNCViewer/index.js index 156831c..402a1a3 100644 --- a/client/src/interface/pages/VNCViewer/index.js +++ b/client/src/interface/pages/VNCViewer/index.js @@ -29,7 +29,7 @@ import {VNCSteps} from '../../components/Loading/steps'; import VNCSpeedDial from './VNCSpeedDial'; import {focusOnKeyboard, vncConnect} from '../../../actions/vnc'; import Toolbar from '../../components/Toolbar'; -import KeyTable from '@novnc/novnc/core/input/keysym'; +import KeyTable from '@novnc/novnc/lib/input/keysym'; import {isIOS} from '../../../actions/utils'; import {updateTitleAndIcon} from '../../../actions/common'; import BackgroundLetterAvatar from '../../components/BackgroundLetterAvatar';