clean old code

This commit is contained in:
cyber-dream 2023-01-05 09:45:08 +03:00
parent 6c6020ef94
commit 94566bdc6f
7 changed files with 7 additions and 91 deletions

View File

@ -1,9 +1,9 @@
package distribution package distribution
import ( import (
domainModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/domainModels" domainModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/domain"
) )
type Distributiuon struct { type Distributiuon struct { //TODO: Fix mistake
Domains []domainModels.Domain Domains []domainModels.Domain
} }

View File

@ -1,4 +1,4 @@
package distributionModels package domainModels
import ( import (
gamesModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/games" gamesModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/games"

View File

@ -1,29 +0,0 @@
package gamesModels
var garrysmodGame = SteamGame{ //TODO: Move to front
GameId: "garrysmod",
SteamId: "4000",
Args: []Argument{},
Platforms: map[string]bool{
"linux": true,
"windows": true,
},
Assets: GameInterfaceAssets{
Title: "Garry's Mod",
Icon: "icon.png",
Description: "",
},
}
var openarena = SteamGame{
GameId: "half-life-1",
SteamId: "70",
Args: []Argument{},
Assets: GameInterfaceAssets{
Title: "Half Life",
Icon: "icon.png",
Description: "asdadasd",
},
}
var SteamFakeGamesList = []SteamGame{garrysmodGame, openarena}

View File

@ -24,8 +24,9 @@ type GameInterfaceBackground struct {
File string File string
} }
type Games struct { type Games struct { //TODO: to domain
SteamGames []SteamGame SteamGames []SteamGame
LocalGames []LocalGame
} }
type JSGameInterface struct { type JSGameInterface struct {

View File

@ -1,40 +0,0 @@
package sessionsModels
import (
"time"
gamesModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/games"
)
var FakeSessions = Sessions{ //TODO: Move to front
Sessions: []Session{
{
GameId: "garrysmod",
SessionId: "gmod-test",
// Icon: "",
// Title: "Regular Skirda Gmod server",
// Status: "Super fake session",
// Version: "",
Expires: time.Time{},
Arguments: []gamesModels.Argument{
{
Body: "+connect",
Value: "127.0.0.1:27015",
},
},
},
{
// GameId: "half-lide-1",
// Title: "Half-Life 1 МЯСО",
// Status: "Retro shit",
Expires: time.Time{},
},
{
GameId: "minecraft",
// Title: "Test 3",
// Status: "Testing session",
// Version: "1.54.7",
Expires: time.Time{},
},
},
}

View File

@ -14,7 +14,7 @@ type Session struct {
Arguments []gamesModels.Argument Arguments []gamesModels.Argument
} }
type Sessions struct { type Sessions struct { //TODO: to domain
Sessions []Session Sessions []Session
} }

View File

@ -1,19 +1,3 @@
package domainUtils package domainUtils
import ( // sessionsModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/sessions"
domainModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/domainModels"
gamesModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/games"
// sessionsModels "git.gregbrzezinski.com/Skirda/skirdagoutils/models/sessions"
)
var fakeDomains = domainModels.Domains{ //TODO: Move to back
Domains: []domainModels.Domain{defaultDomain},
}
var defaultDomain = domainModels.Domain{
DiscordGroupID: "0",
Games: gamesModels.Games{
SteamGames: gamesModels.SteamFakeGamesList,
},
// Sessions: sessionsModels.FakeSessions,
}