mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Admin persistence changes (#5086)
This commit is contained in:
parent
090a48515c
commit
b111f0921c
9 changed files with 148 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { LogItem, SortBy, User, UserSortField, WebSocketConnectOptions } from 'types';
|
||||
import { WarnHistoryItem, BanHistoryItem, LogItem, SortBy, User, UserSortField, WebSocketConnectOptions, WarnListItem } from 'types';
|
||||
import { NotifyUserData, ServerShutdownData, UserMessageData } from 'websocket/events/session/interfaces';
|
||||
|
||||
export interface ServerConnectParams {
|
||||
|
|
@ -58,6 +58,15 @@ export interface ServerState {
|
|||
}
|
||||
notifications: NotifyUserData[];
|
||||
serverShutdown: ServerShutdownData;
|
||||
banUser: string;
|
||||
banHistory: {
|
||||
[userName: string]: BanHistoryItem[];
|
||||
};
|
||||
warnHistory: {
|
||||
[userName: string]: WarnHistoryItem[];
|
||||
};
|
||||
warnListOptions: WarnListItem[];
|
||||
warnUser: string;
|
||||
}
|
||||
|
||||
export interface ServerStateStatus {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue