@colyseus/monitor 0.16.0-preview.4 → 0.16.0
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/build/{static/build/frontend → src}/components/RoomList.d.ts +1 -0
- package/build/src/services.d.ts +3 -0
- package/build/static/bundle.js +24 -24
- package/build/static/bundle.js.map +1 -1
- package/package.json +6 -7
- package/tsconfig.json +3 -2
- package/build/static/build/api.d.ts +0 -2
- package/build/static/build/frontend/services.d.ts +0 -5
- package/build/static/build/index.d.ts +0 -11
- package/build/static/build/src/App.d.ts +0 -2
- package/build/static/build/src/components/CAppBar.d.ts +0 -8
- package/build/static/build/src/components/RoomInspect.d.ts +0 -40
- package/build/static/build/src/components/RoomList.d.ts +0 -29
- package/build/static/build/src/helpers/helpers.d.ts +0 -6
- package/build/static/build/src/index.d.ts +0 -1
- package/build/static/build/src/services.d.ts +0 -5
- package/build/static/build/src-backend/ext/Room.d.ts +0 -1
- /package/build/{static/build/frontend → src}/App.d.ts +0 -0
- /package/build/{static/build/frontend → src}/components/CAppBar.d.ts +0 -0
- /package/build/{static/build/frontend → src}/components/RoomInspect.d.ts +0 -0
- /package/build/{static/build/frontend → src}/helpers/helpers.d.ts +0 -0
- /package/build/{static/build/frontend → src}/index.d.ts +0 -0
- /package/build/{static/build/src-backend → src-backend}/api.d.ts +0 -0
- /package/build/{static/build → src-backend}/ext/Room.d.ts +0 -0
- /package/build/{static/build/src-backend → src-backend}/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colyseus/monitor",
|
|
3
|
-
"version": "0.16.0
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Web Monitoring Panel for Colyseus",
|
|
5
5
|
"input": "./src/index.ts",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/colyseus/colyseus#readme",
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@colyseus/core": "^0.16.0
|
|
34
|
-
"@colyseus/playground": "^0.16.0
|
|
33
|
+
"@colyseus/core": "^0.16.0",
|
|
34
|
+
"@colyseus/playground": "^0.16.0",
|
|
35
35
|
"@emotion/react": "^11.11.1",
|
|
36
36
|
"@emotion/styled": "^11.11.0",
|
|
37
37
|
"@fontsource/roboto": "^5.0.8",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@types/react": "^18.2.38",
|
|
44
44
|
"@types/react-router-dom": "^4.2.6",
|
|
45
45
|
"@types/superagent": "^3.5.8",
|
|
46
|
-
"colyseus": "^0.16.0
|
|
46
|
+
"colyseus": "^0.16.0",
|
|
47
47
|
"css-loader": "^0.28.11",
|
|
48
48
|
"esbuild": "^0.23.0",
|
|
49
49
|
"extract-text-webpack-plugin": "^4.0.0-beta.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-router-dom": "^4.2.2",
|
|
58
58
|
"react18-json-view": "^0.2.6",
|
|
59
59
|
"style-loader": "^0.20.3",
|
|
60
|
-
"ts-loader": "^
|
|
60
|
+
"ts-loader": "^8.3.0",
|
|
61
61
|
"ts-node": "^10.9.2",
|
|
62
62
|
"typescript": "^4.9.5",
|
|
63
63
|
"webpack": "^4.5.0",
|
|
@@ -67,8 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"express": "^4.16.2",
|
|
70
|
-
"node-os-utils": "^1.2.0"
|
|
71
|
-
"superagent": "^3.8.2"
|
|
70
|
+
"node-os-utils": "^1.2.0"
|
|
72
71
|
},
|
|
73
72
|
"gitHead": "320a0325f01eff3cd7afa8fb2efa80077ebdbf4a"
|
|
74
73
|
}
|
package/tsconfig.json
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"outDir": "build",
|
|
4
4
|
"module": "commonjs",
|
|
5
|
-
"lib": ["
|
|
6
|
-
"target": "
|
|
5
|
+
"lib": ["ES2022", "DOM"],
|
|
6
|
+
"target": "ES2022",
|
|
7
7
|
"declaration": true,
|
|
8
8
|
"noImplicitAny": false,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"experimentalDecorators": true,
|
|
11
|
+
"useDefineForClassFields": false,
|
|
11
12
|
"sourceMap": false,
|
|
12
13
|
"skipLibCheck": true,
|
|
13
14
|
"jsx": "react"
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference lib="dom" />
|
|
2
|
-
import http from "superagent";
|
|
3
|
-
export declare function fetchRoomList(): http.SuperAgentRequest;
|
|
4
|
-
export declare function fetchRoomData(roomId: string): http.SuperAgentRequest;
|
|
5
|
-
export declare function remoteRoomCall(roomId: string, method: string, ...args: any[]): http.SuperAgentRequest;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
import './ext/Room';
|
|
3
|
-
export interface MonitorOptions {
|
|
4
|
-
columns: Array<'roomId' | 'name' | 'clients' | 'maxClients' | 'locked' | 'elapsedTime' | {
|
|
5
|
-
metadata: string;
|
|
6
|
-
} | 'processId' | "publicAddress">;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* TODO: expose the `router` instead on next major version.
|
|
10
|
-
*/
|
|
11
|
-
export declare function monitor(opts?: Partial<MonitorOptions>): express.Router;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import 'react18-json-view/src/style.css';
|
|
3
|
-
interface Props {
|
|
4
|
-
}
|
|
5
|
-
interface State {
|
|
6
|
-
roomId?: string;
|
|
7
|
-
state: any;
|
|
8
|
-
clients: Array<{
|
|
9
|
-
sessionId: string;
|
|
10
|
-
elapsedTime: number;
|
|
11
|
-
}>;
|
|
12
|
-
maxClients: number;
|
|
13
|
-
stateSize: number;
|
|
14
|
-
locked: boolean;
|
|
15
|
-
currentTab: string;
|
|
16
|
-
sendDialogTitle: string;
|
|
17
|
-
sendDialogOpen: boolean;
|
|
18
|
-
sendToClient?: any;
|
|
19
|
-
sendType: string;
|
|
20
|
-
sendData: string;
|
|
21
|
-
}
|
|
22
|
-
export declare class RoomInspect extends React.Component<Props, State> {
|
|
23
|
-
state: State;
|
|
24
|
-
updateDataInterval: number;
|
|
25
|
-
componentDidMount(): void;
|
|
26
|
-
fetchRoomData(): void;
|
|
27
|
-
roomCall(method: string, ...args: any[]): Promise<void>;
|
|
28
|
-
componentWillUnmount(): void;
|
|
29
|
-
sendMessage(sessionId?: string): void;
|
|
30
|
-
disconnectClient(sessionId: string): void;
|
|
31
|
-
disposeRoom(): void;
|
|
32
|
-
updateSendType: (e: any) => void;
|
|
33
|
-
updateSendData: (changes: any) => void;
|
|
34
|
-
handleCloseSend: () => void;
|
|
35
|
-
handleSend: () => void;
|
|
36
|
-
goBack(): void;
|
|
37
|
-
handleTabChange: (event: React.SyntheticEvent, newValue: string) => void;
|
|
38
|
-
render(): React.JSX.Element;
|
|
39
|
-
}
|
|
40
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { GridColDef } from '@mui/x-data-grid';
|
|
3
|
-
export declare class RoomList extends React.Component {
|
|
4
|
-
state: {
|
|
5
|
-
selected: number[];
|
|
6
|
-
rooms: any[];
|
|
7
|
-
connections: number;
|
|
8
|
-
cpu: number;
|
|
9
|
-
memory: {
|
|
10
|
-
totalMemMb: number;
|
|
11
|
-
usedMemMb: number;
|
|
12
|
-
};
|
|
13
|
-
columns: any[];
|
|
14
|
-
};
|
|
15
|
-
updateRoomListInterval: number;
|
|
16
|
-
isSelected: (index: any) => boolean;
|
|
17
|
-
componentWillMount(): void;
|
|
18
|
-
fetchRoomList(): Promise<void>;
|
|
19
|
-
handleRowSelection: (selectedRows: any) => void;
|
|
20
|
-
inspectRoom(roomId: any): void;
|
|
21
|
-
disposeRoom(roomId: any): Promise<void>;
|
|
22
|
-
getColumnHeader(column: any): any;
|
|
23
|
-
getRoomColumn(room: any, column: any): any;
|
|
24
|
-
bytesToStr(size: number): string;
|
|
25
|
-
getColumnsNames(columns: any): Array<GridColDef>;
|
|
26
|
-
getRowsData(rooms: any): Array<any>;
|
|
27
|
-
generateRoomListDataGrid(): JSX.Element;
|
|
28
|
-
render(): React.JSX.Element;
|
|
29
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { MonitorOptions } from "../../";
|
|
2
|
-
export type ExtractStringNames<T> = T extends (infer U)[] ? U extends string ? U : never : never;
|
|
3
|
-
export declare const valueFormatter: {
|
|
4
|
-
[key in ExtractStringNames<MonitorOptions['columns']>]?: Function;
|
|
5
|
-
};
|
|
6
|
-
export declare function humanizeElapsedTime(milliseconds: number): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./css/index.css";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference lib="dom" />
|
|
2
|
-
import http from "superagent";
|
|
3
|
-
export declare function fetchRoomList(): http.SuperAgentRequest;
|
|
4
|
-
export declare function fetchRoomData(roomId: string): http.SuperAgentRequest;
|
|
5
|
-
export declare function remoteRoomCall(roomId: string, method: string, ...args: any[]): http.SuperAgentRequest;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|