js-dos 7.2.5 → 7.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/js-dos.css +155 -13
- package/dist/js-dos.js +2 -2
- package/dist/js-dos.js.map +1 -1
- package/dist/types/src/backend/jj/jj-config.d.ts +5 -3
- package/dist/types/src/backend/jj/latency.d.ts +8 -1
- package/dist/types/src/backend/v7/v7-config.d.ts +5 -0
- package/dist/types/src/components/sidebar/active-token.d.ts +2 -0
- package/dist/types/src/components/sidebar/create-token.d.ts +2 -0
- package/dist/types/src/components/sidebar/latency-info.d.ts +7 -0
- package/dist/types/src/components/sidebar/main.d.ts +2 -0
- package/dist/types/src/components/sidebar/networking.d.ts +2 -0
- package/dist/types/src/components/tip.d.ts +2 -0
- package/dist/types/src/hardware-transport-layer.d.ts +3 -1
- package/dist/types/src/icons.d.ts +18 -0
- package/dist/types/src/player-app.d.ts +15 -0
- package/dist/types/src/player.d.ts +2 -1
- package/dist/types/src/xhr.d.ts +1 -0
- package/dist/types/{sls → v7-services}/src/personal.d.ts +0 -0
- package/dist/wdosbox.js +1 -1
- package/dist/wdosbox.js.symbols +3132 -3071
- package/dist/wdosbox.wasm +0 -0
- package/examples/digger/index.html +1 -0
- package/package.json +6 -3
- package/v7-services/.env +6 -0
- package/v7-services/ok.yaml +24 -0
- package/v7-services/package.json +17 -0
- package/v7-services/redeploy-ok.sh +25 -0
- package/v7-services/serverless.yml +140 -0
- package/v7-services/src/networking/day.ts +5 -0
- package/v7-services/src/networking/get-free-token.ts +33 -0
- package/v7-services/src/networking/get-token-cost.ts +31 -0
- package/v7-services/src/networking/get-token-info.ts +16 -0
- package/v7-services/src/networking/ipx/put-ipx-ip.ts +20 -0
- package/v7-services/src/networking/ipx/start-ipx.ts +16 -0
- package/v7-services/src/networking/ipx/stop-ipx.ts +19 -0
- package/v7-services/src/networking/limits.ts +3 -0
- package/v7-services/src/networking/token.ts +238 -0
- package/v7-services/src/ok.ts +7 -0
- package/v7-services/src/personal-acl.ts +33 -0
- package/v7-services/src/personal-put.ts +35 -0
- package/v7-services/src/personal.ts +18 -0
- package/v7-services/src/responses.ts +28 -0
- package/v7-services/src/user.ts +3 -0
- package/v7-services/yarn.lock +4400 -0
|
@@ -1 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface LatencyInfo {
|
|
2
|
+
region: string;
|
|
3
|
+
regionLatency: number;
|
|
4
|
+
estimation: {
|
|
5
|
+
[region: string]: number[];
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function getAutoRegion(onLatencyUpdate: (region: string) => void): Promise<LatencyInfo>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
export declare const endpointBase = "https://kdhkdsv558.execute-api.eu-central-1.amazonaws.com/dev";
|
|
2
2
|
export declare const personalPut: string;
|
|
3
3
|
export declare const personalAcl: string;
|
|
4
|
+
export declare const tokenCostGet: string;
|
|
5
|
+
export declare const freeTokenGet: string;
|
|
6
|
+
export declare const tokeInfoGet: string;
|
|
7
|
+
export declare const startIpx: string;
|
|
8
|
+
export declare const stopIox: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Props } from "../../player-app";
|
|
2
|
+
interface LatencyInfoProps extends Props {
|
|
3
|
+
class?: string;
|
|
4
|
+
asButton?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function LatencyInfo(props: LatencyInfoProps): import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
7
|
+
export {};
|
|
@@ -6,7 +6,9 @@ export interface Hardware {
|
|
|
6
6
|
mouseMove(x: number, y: number, relative: boolean, timeMs: number): void;
|
|
7
7
|
mouseButton(button: number, pressed: number, timeMs: number): void;
|
|
8
8
|
getFramePayload(): string;
|
|
9
|
-
|
|
9
|
+
createFile(path: string): string;
|
|
10
|
+
appendFile(blob: string): string;
|
|
11
|
+
closeFile(): string;
|
|
10
12
|
}
|
|
11
13
|
export declare class HardwareTransportLayerFactory {
|
|
12
14
|
private serverMessageHandler;
|
|
@@ -32,6 +32,12 @@ export declare const Icons: {
|
|
|
32
32
|
ArrowsExpand: (props: {
|
|
33
33
|
class: string;
|
|
34
34
|
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
35
|
+
ArrowsCircleLeft: (props: {
|
|
36
|
+
class: string;
|
|
37
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
38
|
+
ArrowsCircleRight: (props: {
|
|
39
|
+
class: string;
|
|
40
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
35
41
|
ChevronLeft: (props: {
|
|
36
42
|
class: string;
|
|
37
43
|
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
@@ -62,4 +68,16 @@ export declare const Icons: {
|
|
|
62
68
|
CurrencyDollar: (props: {
|
|
63
69
|
class: string;
|
|
64
70
|
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
71
|
+
QuestionMarkCircle: (props: {
|
|
72
|
+
class: string;
|
|
73
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
74
|
+
Discord: (props: {
|
|
75
|
+
class: string;
|
|
76
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
77
|
+
Telegram: (props: {
|
|
78
|
+
class: string;
|
|
79
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
80
|
+
Twitter: (props: {
|
|
81
|
+
class: string;
|
|
82
|
+
}) => import("preact").VNode<any> | import("preact").VNode<any>[];
|
|
65
83
|
};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { ClientId, DosPlayer, DosPlayerOptions } from "./player";
|
|
2
|
+
import { LatencyInfo } from "./backend/jj/latency";
|
|
3
|
+
export declare type SidebarPage = "main" | "latency-info" | "networking";
|
|
2
4
|
export interface Props {
|
|
3
5
|
player: () => DosPlayer;
|
|
4
6
|
options: () => DosPlayerOptions;
|
|
5
7
|
clientId: ClientId | null;
|
|
6
8
|
setClientId: (clientId: ClientId | null) => void;
|
|
7
9
|
requestClientId?: (userGesture: boolean) => Promise<ClientId | null>;
|
|
10
|
+
anonymousClientId: ClientId;
|
|
11
|
+
networkToken: string | null;
|
|
12
|
+
setNetworkToken: (token: string | null) => void;
|
|
8
13
|
mobileControls: boolean;
|
|
9
14
|
setMobileControls: (controls: boolean) => Promise<void>;
|
|
10
15
|
mirroredControls: boolean;
|
|
@@ -27,6 +32,16 @@ export interface Props {
|
|
|
27
32
|
region: string | null;
|
|
28
33
|
estimatingRegion: string | null;
|
|
29
34
|
setRegion: (region: string | null) => void;
|
|
35
|
+
latencyInfo: LatencyInfo | null;
|
|
36
|
+
setLatencyInfo: (latencyInfo: LatencyInfo) => void;
|
|
37
|
+
showTips: boolean;
|
|
38
|
+
setShowTips: (showTips: boolean) => void;
|
|
39
|
+
sideBarPage: SidebarPage;
|
|
40
|
+
setSideBarPage: (page: SidebarPage) => void;
|
|
41
|
+
showNewInstance: boolean;
|
|
42
|
+
setShowNewInstance: (showNewInstance: boolean) => void;
|
|
43
|
+
ipxConnected: boolean;
|
|
44
|
+
setIpxConnected: (ipxConnected: boolean) => void;
|
|
30
45
|
}
|
|
31
46
|
export declare function PlayerApp(playerProps: {
|
|
32
47
|
player: () => DosPlayer;
|
|
@@ -15,7 +15,8 @@ export interface DosPlayerOptions extends DosOptions {
|
|
|
15
15
|
onExit?: () => void;
|
|
16
16
|
noSideBar?: boolean;
|
|
17
17
|
noFullscreen?: boolean;
|
|
18
|
-
|
|
18
|
+
noSocialLinks?: boolean;
|
|
19
|
+
withExperimentalApi?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export declare type DosPlayerFactoryType = (root: HTMLDivElement, options?: DosPlayerOptions) => DosPlayer;
|
|
21
22
|
export declare function DosPlayer(root: HTMLDivElement, options?: DosPlayerOptions): DosPlayer;
|
package/dist/types/src/xhr.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export declare function send(method: "get" | "post" | "head" | "put", url: strin
|
|
|
2
2
|
[name: string]: string;
|
|
3
3
|
}): Promise<string | ArrayBuffer>;
|
|
4
4
|
export declare function postObject(url: string, data?: string | ArrayBuffer): Promise<any>;
|
|
5
|
+
export declare function getObject(url: string): Promise<any>;
|
|
5
6
|
export declare function post(url: string, responseType: XMLHttpRequestResponseType, data?: string | ArrayBuffer): Promise<string | ArrayBuffer>;
|
|
File without changes
|