Use CheerpX via the NPM module

This is a good solution for testing, but we will probably use the latest
CDN build later on
This commit is contained in:
Alessandro Pignotti 2024-10-05 10:56:17 +02:00
parent 4f13791f71
commit 274931dc12
3 changed files with 9 additions and 0 deletions

7
package-lock.json generated
View file

@ -9,6 +9,7 @@
"version": "0.0.1",
"devDependencies": {
"@fortawesome/fontawesome-free": "^6.6.0",
"@leaningtech/cheerpx": "latest",
"@oddbird/popover-polyfill": "^0.4.4",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
@ -529,6 +530,12 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
"node_modules/@leaningtech/cheerpx": {
"version": "0.9.1",
"resolved": "https://registry.npmjs.org/@leaningtech/cheerpx/-/cheerpx-0.9.1.tgz",
"integrity": "sha512-2cFVDZwYexU7xe/Tv6TfTDlh3ccTDMskL+zeiGrOPKva1vug2wQyntWSSGpw25VsfN9n/5cuvGZiaxQeUqZPJA==",
"dev": true
},
"node_modules/@nodelib/fs.scandir": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",

View file

@ -8,6 +8,7 @@
},
"devDependencies": {
"@fortawesome/fontawesome-free": "^6.6.0",
"@leaningtech/cheerpx": "latest",
"@oddbird/popover-polyfill": "^0.4.4",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",

View file

@ -5,6 +5,7 @@
import { WebLinksAddon } from '@xterm/addon-web-links';
import Nav from 'labs/packages/global-navbar/src/Nav.svelte';
import SideBar from './SideBar.svelte';
import * as CheerpX from '@leaningtech/cheerpx';
var term = new Terminal({cursorBlink:true, convertEol:true, fontFamily:"monospace", fontWeight: 400, fontWeightBold: 700});
var fitAddon = new FitAddon();