Compare commits

..

No commits in common. "0ef39596f2b159f4ac4efdf0ec28b80f4e2ad246" and "5bcc7dba30df66589df1040304cd80b2c9b331bf" have entirely different histories.

5 changed files with 5 additions and 13 deletions

View File

@ -34,7 +34,7 @@ export class MenuGamesComponent implements OnInit {
} }
else{ else{
GoGetGames().then((value) => { GoGetGames().then((value) => {
// console.log(value); console.log(value);
this.games = value; this.games = value;
}); });
} }

View File

@ -4,9 +4,9 @@
<skirda-heading size="6">{{profile.username}}</skirda-heading> <skirda-heading size="6">{{profile.username}}</skirda-heading>
<skirda-text>online</skirda-text> <skirda-text>online</skirda-text>
</div> </div>
<!-- <a [routerLink]="['settings']" *ngIf="!collapsed"> <a [routerLink]="['settings']" *ngIf="!collapsed">
<skirda-icon name="settings" color="var(--sk-primary-accent)"></skirda-icon> <skirda-icon name="settings" color="var(--sk-primary-accent)"></skirda-icon>
</a> --> </a>
</a> </a>
<div class="theme-toggle" *ngIf="!collapsed" (click)="toggleTheme()" [ngClass]="{'active': theme === 'light'}"> <div class="theme-toggle" *ngIf="!collapsed" (click)="toggleTheme()" [ngClass]="{'active': theme === 'light'}">
<skirda-icon name="sun" color="var(--sk-primary-accent)"></skirda-icon> <skirda-icon name="sun" color="var(--sk-primary-accent)"></skirda-icon>

View File

@ -10,7 +10,6 @@ import { GoGetSessions } from 'src/app/services/go';
export class MenuSessionsComponent implements OnInit { export class MenuSessionsComponent implements OnInit {
fakeSessions: Session[] = [ fakeSessions: Session[] = [
{ {
skirdaSessionId: 'a',
gameId: 'minecraft-001', gameId: 'minecraft-001',
icon: '/assets/games/minecraft/icon.png', icon: '/assets/games/minecraft/icon.png',
title: 'Minecraft', title: 'Minecraft',
@ -19,7 +18,6 @@ export class MenuSessionsComponent implements OnInit {
expires: new Date('2022-10-30'), expires: new Date('2022-10-30'),
}, },
{ {
skirdaSessionId: 'b',
gameId: 'minecraft-002', gameId: 'minecraft-002',
icon: '/assets/games/garrysmod/icon.png', icon: '/assets/games/garrysmod/icon.png',
title: 'Minecraft 2', title: 'Minecraft 2',
@ -27,7 +25,6 @@ export class MenuSessionsComponent implements OnInit {
expires: new Date('2022-10-27T20:00:00'), expires: new Date('2022-10-27T20:00:00'),
}, },
{ {
skirdaSessionId: 'c',
gameId: 'minecraft-003', gameId: 'minecraft-003',
icon: '/assets/games/minecraft/icon.png', icon: '/assets/games/minecraft/icon.png',
title: 'Minecraft 3', title: 'Minecraft 3',

View File

@ -1,9 +1,8 @@
export interface Session { export interface Session {
skirdaSessionId: string;
gameId: string; gameId: string;
icon: string; icon: string;
title: string; title: string;
status?: string; status?: string;
version: string; version: string;
expires: Date; expires: Date;
} }

View File

@ -1,7 +1,6 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Game } from '../interfaces/game.interface'; import { Game } from '../interfaces/game.interface';
import { Session } from '../interfaces/session.interface'; import { GoRunGame } from './go';
import { GoRunGame, GoRunSession } from './go';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
}) })
@ -21,7 +20,4 @@ export class LauncherService {
// console.log(game.title) // console.log(game.title)
// console.log(game.gameId) // console.log(game.gameId)
} }
public RunSession(session: Session){
GoRunSession(session.skirdaSessionId)
}
} }