mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 13:33:55 -07:00
refactor redux data model
This commit is contained in:
parent
ae1bc3da38
commit
0ff391491d
243 changed files with 5212 additions and 5963 deletions
20
webclient/src/api/request/AdminRequestImpl.ts
Normal file
20
webclient/src/api/request/AdminRequestImpl.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import type { IAdminRequest } from '@app/websocket';
|
||||
import { AdminCommands } from '@app/websocket';
|
||||
|
||||
export class AdminRequestImpl implements IAdminRequest {
|
||||
adjustMod(userName: string, shouldBeMod?: boolean, shouldBeJudge?: boolean): void {
|
||||
AdminCommands.adjustMod(userName, shouldBeMod, shouldBeJudge);
|
||||
}
|
||||
|
||||
reloadConfig(): void {
|
||||
AdminCommands.reloadConfig();
|
||||
}
|
||||
|
||||
shutdownServer(reason: string, minutes: number): void {
|
||||
AdminCommands.shutdownServer(reason, minutes);
|
||||
}
|
||||
|
||||
updateServerMessage(): void {
|
||||
AdminCommands.updateServerMessage();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue