@colyseus/monitor 0.12.0 → 0.12.3

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.
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
8
- <title>Colyseus Stats</title>
9
- <link href="styles.css" rel="stylesheet"></head>
10
- <body>
11
- <div id="app"></div>
12
- <script type="text/javascript" src="bundle.js"></script></body>
13
- </html>
@@ -1,2 +0,0 @@
1
- import { MonitorOptions } from ".";
2
- export declare function getAPI(opts: Partial<MonitorOptions>): import("express-serve-static-core").Router;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function App(): JSX.Element;
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
- export declare class CAppBar extends React.Component {
3
- state: {
4
- open: boolean;
5
- };
6
- handleToggle: () => void;
7
- render(): JSX.Element;
8
- }
@@ -1,28 +0,0 @@
1
- import * as React from "react";
2
- export declare class RoomInspect extends React.Component {
3
- state: {
4
- roomId: any;
5
- state: {};
6
- clients: any[];
7
- maxClients: number;
8
- stateSize: number;
9
- locked: boolean;
10
- sendDialogTitle: string;
11
- sendDialogOpen: boolean;
12
- sendToClient: any;
13
- sendData: any;
14
- };
15
- updateDataInterval: number;
16
- componentDidMount(): void;
17
- fetchRoomData(): void;
18
- roomCall(method: string, ...args: any[]): Promise<void>;
19
- componentWillUnmount(): void;
20
- sendMessage(sessionId?: string): void;
21
- disconnectClient(sessionId: string): void;
22
- disposeRoom(): void;
23
- updateSendData: (changes: any) => void;
24
- handleCloseSend: () => void;
25
- handleSend: () => void;
26
- goBack(): void;
27
- render(): JSX.Element;
28
- }
@@ -1,26 +0,0 @@
1
- import * as React from "react";
2
- export declare class RoomList extends React.Component {
3
- state: {
4
- selected: number[];
5
- rooms: any[];
6
- connections: number;
7
- cpu: number;
8
- memory: {
9
- totalMemMb: number;
10
- usedMemMb: number;
11
- };
12
- columns: any[];
13
- };
14
- updateRoomListInterval: number;
15
- isSelected: (index: any) => boolean;
16
- componentWillMount(): void;
17
- fetchRoomList(): Promise<void>;
18
- handleRowSelection: (selectedRows: any) => void;
19
- inspectRoom(roomId: any): void;
20
- disposeRoom(roomId: any): Promise<void>;
21
- getColumnHeader(column: any): any;
22
- getRoomColumn(room: any, column: any): string;
23
- millisecondsToStr(milliseconds: any): string;
24
- bytesToStr(size: number): string;
25
- render(): JSX.Element;
26
- }
@@ -1 +0,0 @@
1
- import "./css/index.css";
@@ -1,4 +0,0 @@
1
- import http from "superagent";
2
- export declare function fetchRoomList(): http.SuperAgentRequest;
3
- export declare function fetchRoomData(roomId: string): http.SuperAgentRequest;
4
- 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
- }>;
7
- }
8
- /**
9
- * TODO: expose the `router` instead on next major version.
10
- */
11
- export declare function monitor(opts?: Partial<MonitorOptions>): express.Router;
@@ -1,5 +0,0 @@
1
- html, body {
2
- margin: 0;
3
- padding: 0;
4
- }
5
- /*# sourceMappingURL=styles.css.map*/
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.css","sources":[],"mappings":";;;A","sourceRoot":""}