move binprotocol to submodule (server)
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
|||||||
[submodule "nodejs-rfb"]
|
[submodule "nodejs-rfb"]
|
||||||
path = nodejs-rfb
|
path = nodejs-rfb
|
||||||
url = https://github.com/computernewb/nodejs-rfb
|
url = https://github.com/computernewb/nodejs-rfb
|
||||||
|
[submodule "collab-vm-1.2-binary-protocol"]
|
||||||
|
path = collab-vm-1.2-binary-protocol
|
||||||
|
url = https://github.com/computernewb/collab-vm-1.2-binary-protocol
|
||||||
|
|||||||
1
Justfile
1
Justfile
@@ -3,6 +3,7 @@ all:
|
|||||||
yarn workspace @computernewb/nodejs-rfb run build
|
yarn workspace @computernewb/nodejs-rfb run build
|
||||||
yarn workspace @cvmts/shared run build
|
yarn workspace @cvmts/shared run build
|
||||||
yarn workspace @cvmts/qemu run build
|
yarn workspace @cvmts/qemu run build
|
||||||
|
yarn workspace @cvmts/collab-vm-1.2-binary-protocol run build
|
||||||
yarn workspace @cvmts/cvmts run build
|
yarn workspace @cvmts/cvmts run build
|
||||||
|
|
||||||
pkg:
|
pkg:
|
||||||
|
|||||||
1
collab-vm-1.2-binary-protocol
Submodule
1
collab-vm-1.2-binary-protocol
Submodule
Submodule collab-vm-1.2-binary-protocol added at cfe9acc60b
@@ -16,7 +16,7 @@ import { JPEGEncoder } from './JPEGEncoder.js';
|
|||||||
import VM from './VM.js';
|
import VM from './VM.js';
|
||||||
import { ReaderModel } from '@maxmind/geoip2-node';
|
import { ReaderModel } from '@maxmind/geoip2-node';
|
||||||
import * as msgpack from 'msgpackr';
|
import * as msgpack from 'msgpackr';
|
||||||
import { CollabVMProtocolMessage, CollabVMProtocolMessageType } from './protocol/CollabVMProtocolMessage.js';
|
import { CollabVMProtocolMessage, CollabVMProtocolMessageType } from '@cvmts/collab-vm-1.2-binary-protocol';
|
||||||
|
|
||||||
// Instead of strange hacks we can just use nodejs provided
|
// Instead of strange hacks we can just use nodejs provided
|
||||||
// import.meta properties, which have existed since LTS if not before
|
// import.meta properties, which have existed since LTS if not before
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import RateLimiter from './RateLimiter.js';
|
|||||||
import { execa, execaCommand, ExecaSyncError } from 'execa';
|
import { execa, execaCommand, ExecaSyncError } from 'execa';
|
||||||
import { Logger } from '@cvmts/shared';
|
import { Logger } from '@cvmts/shared';
|
||||||
import NetworkClient from './NetworkClient.js';
|
import NetworkClient from './NetworkClient.js';
|
||||||
import CollabVMCapabilities from './protocol/CollabVMCapabilities.js';
|
import { CollabVMCapabilities } from '@cvmts/collab-vm-1.2-binary-protocol';
|
||||||
|
|
||||||
export class User {
|
export class User {
|
||||||
socket: NetworkClient;
|
socket: NetworkClient;
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
export default class CollabVMCapabilities {
|
|
||||||
// Support for JPEG screen rects in binary msgpack format
|
|
||||||
bin: boolean;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
this.bin = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
import CollabVMRectMessage from "./CollabVMRectMessage.js";
|
|
||||||
|
|
||||||
export interface CollabVMProtocolMessage {
|
|
||||||
type: CollabVMProtocolMessageType;
|
|
||||||
rect?: CollabVMRectMessage | undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum CollabVMProtocolMessageType {
|
|
||||||
// JPEG Dirty Rectangle
|
|
||||||
rect = 0,
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
export default interface CollabVMRectMessage {
|
|
||||||
x: number;
|
|
||||||
y: number;
|
|
||||||
data: Uint8Array;
|
|
||||||
}
|
|
||||||
@@ -5,7 +5,8 @@
|
|||||||
"cvm-rs",
|
"cvm-rs",
|
||||||
"nodejs-rfb",
|
"nodejs-rfb",
|
||||||
"qemu",
|
"qemu",
|
||||||
"cvmts"
|
"cvmts",
|
||||||
|
"collab-vm-1.2-binary-protocol"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@parcel/packager-ts": "2.12.0",
|
"@parcel/packager-ts": "2.12.0",
|
||||||
|
|||||||
11
yarn.lock
11
yarn.lock
@@ -47,6 +47,17 @@ __metadata:
|
|||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
|
"@cvmts/collab-vm-1.2-binary-protocol@workspace:collab-vm-1.2-binary-protocol":
|
||||||
|
version: 0.0.0-use.local
|
||||||
|
resolution: "@cvmts/collab-vm-1.2-binary-protocol@workspace:collab-vm-1.2-binary-protocol"
|
||||||
|
dependencies:
|
||||||
|
"@parcel/packager-ts": "npm:2.12.0"
|
||||||
|
"@parcel/transformer-typescript-types": "npm:2.12.0"
|
||||||
|
parcel: "npm:^2.12.0"
|
||||||
|
typescript: "npm:>=3.0.0"
|
||||||
|
languageName: unknown
|
||||||
|
linkType: soft
|
||||||
|
|
||||||
"@cvmts/cvm-rs@npm:*, @cvmts/cvm-rs@workspace:cvm-rs":
|
"@cvmts/cvm-rs@npm:*, @cvmts/cvm-rs@workspace:cvm-rs":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@cvmts/cvm-rs@workspace:cvm-rs"
|
resolution: "@cvmts/cvm-rs@workspace:cvm-rs"
|
||||||
|
|||||||
Reference in New Issue
Block a user