Compare commits
5 Commits
5bcc7dba30
...
0ef39596f2
Author | SHA1 | Date | |
---|---|---|---|
0ef39596f2 | |||
0292021437 | |||
4f0ebb1d48 | |||
bdd65e163e | |||
56cd3971a0 |
@ -34,7 +34,7 @@ export class MenuGamesComponent implements OnInit {
|
||||
}
|
||||
else{
|
||||
GoGetGames().then((value) => {
|
||||
console.log(value);
|
||||
// console.log(value);
|
||||
this.games = value;
|
||||
});
|
||||
}
|
||||
|
@ -4,9 +4,9 @@
|
||||
<skirda-heading size="6">{{profile.username}}</skirda-heading>
|
||||
<skirda-text>online</skirda-text>
|
||||
</div>
|
||||
<a [routerLink]="['settings']" *ngIf="!collapsed">
|
||||
<!-- <a [routerLink]="['settings']" *ngIf="!collapsed">
|
||||
<skirda-icon name="settings" color="var(--sk-primary-accent)"></skirda-icon>
|
||||
</a>
|
||||
</a> -->
|
||||
</a>
|
||||
<div class="theme-toggle" *ngIf="!collapsed" (click)="toggleTheme()" [ngClass]="{'active': theme === 'light'}">
|
||||
<skirda-icon name="sun" color="var(--sk-primary-accent)"></skirda-icon>
|
||||
|
@ -10,6 +10,7 @@ import { GoGetSessions } from 'src/app/services/go';
|
||||
export class MenuSessionsComponent implements OnInit {
|
||||
fakeSessions: Session[] = [
|
||||
{
|
||||
skirdaSessionId: 'a',
|
||||
gameId: 'minecraft-001',
|
||||
icon: '/assets/games/minecraft/icon.png',
|
||||
title: 'Minecraft',
|
||||
@ -18,6 +19,7 @@ export class MenuSessionsComponent implements OnInit {
|
||||
expires: new Date('2022-10-30'),
|
||||
},
|
||||
{
|
||||
skirdaSessionId: 'b',
|
||||
gameId: 'minecraft-002',
|
||||
icon: '/assets/games/garrysmod/icon.png',
|
||||
title: 'Minecraft 2',
|
||||
@ -25,6 +27,7 @@ export class MenuSessionsComponent implements OnInit {
|
||||
expires: new Date('2022-10-27T20:00:00'),
|
||||
},
|
||||
{
|
||||
skirdaSessionId: 'c',
|
||||
gameId: 'minecraft-003',
|
||||
icon: '/assets/games/minecraft/icon.png',
|
||||
title: 'Minecraft 3',
|
||||
|
@ -1,4 +1,5 @@
|
||||
export interface Session {
|
||||
skirdaSessionId: string;
|
||||
gameId: string;
|
||||
icon: string;
|
||||
title: string;
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Game } from '../interfaces/game.interface';
|
||||
import { GoRunGame } from './go';
|
||||
import { Session } from '../interfaces/session.interface';
|
||||
import { GoRunGame, GoRunSession } from './go';
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
@ -20,4 +21,7 @@ export class LauncherService {
|
||||
// console.log(game.title)
|
||||
// console.log(game.gameId)
|
||||
}
|
||||
public RunSession(session: Session){
|
||||
GoRunSession(session.skirdaSessionId)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user