Formatting

This commit is contained in:
2025-12-20 13:56:34 -07:00
parent 2e71aea355
commit ad6efdbbbe
6 changed files with 20 additions and 37 deletions

View File

@@ -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
) { }
) {}
}

View File

@@ -4,5 +4,4 @@ export interface Game {
official: boolean
verified: boolean
developer: string | null
cutOff: number | null
}

View File

@@ -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[]

View File

@@ -1,7 +1,7 @@
export class SettingsType {
constructor(
constructor (
public allowNotifications: boolean = true,
public alwaysShowGamesInSidebar: boolean = true,
public theme: number = 0
) { }
) {}
}

View File

@@ -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 }