Formatting
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export class DownloadProgress {
|
||||
constructor(
|
||||
constructor (
|
||||
public version: string,
|
||||
public progress: number,
|
||||
public progressBytes: number,
|
||||
@@ -9,5 +9,5 @@ export class DownloadProgress {
|
||||
public finishing: boolean,
|
||||
public speed: number,
|
||||
public etaSecs: number
|
||||
) { }
|
||||
) {}
|
||||
}
|
||||
|
||||
@@ -4,5 +4,4 @@ export interface Game {
|
||||
official: boolean
|
||||
verified: boolean
|
||||
developer: string | null
|
||||
cutOff: number | null
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Game } from "./Game"
|
||||
import { GameVersion } from "./GameVersion"
|
||||
import { Game } from './Game'
|
||||
import { GameVersion } from './GameVersion'
|
||||
|
||||
export interface ServerVersionsResponse {
|
||||
versions: GameVersion[]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export class SettingsType {
|
||||
constructor(
|
||||
constructor (
|
||||
public allowNotifications: boolean = true,
|
||||
public alwaysShowGamesInSidebar: boolean = true,
|
||||
public theme: number = 0
|
||||
) { }
|
||||
) {}
|
||||
}
|
||||
|
||||
@@ -5,13 +5,13 @@ type VersionsConfigData = {
|
||||
}
|
||||
|
||||
export class VersionsConfig {
|
||||
constructor(
|
||||
constructor (
|
||||
public version: string,
|
||||
public list: string[] = [],
|
||||
public timestamps: Record<string, number> = {}
|
||||
) { }
|
||||
) {}
|
||||
|
||||
static import(data: VersionsConfigData) {
|
||||
static import (data: VersionsConfigData) {
|
||||
const cfg = new VersionsConfig(data.version)
|
||||
cfg.list = [...data.list]
|
||||
cfg.timestamps = { ...data.timestamps }
|
||||
|
||||
Reference in New Issue
Block a user