mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Webatrice: Add all ModeratorCommands (#5049)
* Move viewLogHistory to Moderator commands * Add Moderator.banFromServer * Add Moderator.getBanHistory * Add Moderator.getWarnHistory * Add Moderator.warnUser * Add Moderator.getWarnList
This commit is contained in:
parent
ce8092318e
commit
e45c4042fe
14 changed files with 217 additions and 943 deletions
30
webclient/src/websocket/persistence/ModeratorPresistence.ts
Normal file
30
webclient/src/websocket/persistence/ModeratorPresistence.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { ServerDispatch } from 'store';
|
||||
import { Log } from 'types';
|
||||
|
||||
import NormalizeService from '../utils/NormalizeService';
|
||||
|
||||
export class ModeratorPersistence {
|
||||
static banFromServer(userName: any) {
|
||||
console.log(userName);
|
||||
}
|
||||
|
||||
static banHistory(banHistory: any) {
|
||||
console.log(banHistory);
|
||||
}
|
||||
|
||||
static viewLogs(logs: Log[]) {
|
||||
ServerDispatch.viewLogs(NormalizeService.normalizeLogs(logs));
|
||||
}
|
||||
|
||||
static warnHistory(warnList: any) {
|
||||
console.log(warnList);
|
||||
}
|
||||
|
||||
static warnList(warning: any) {
|
||||
console.log(warning);
|
||||
}
|
||||
|
||||
static warnUser(userName: any) {
|
||||
console.log(userName);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue