You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
869 B
38 lines
869 B
import { Component } from '@angular/core';
|
|
import {BaseUtils} from "./utils/BaseUtils";
|
|
import {Router} from "@angular/router";
|
|
import {AuthService} from "./services/auth.service";
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.scss']
|
|
})
|
|
export class AppComponent {
|
|
baseUtils: BaseUtils = new BaseUtils();
|
|
social_media_links: {link: string, name: string}[] = [
|
|
{name: "Дискорд", link: "/discord"},
|
|
{name: "Телеграм", link: "https://t.me/facti13"},
|
|
{name: "Стим", link: "/steam"}
|
|
]
|
|
|
|
logined: string | null = null;
|
|
|
|
constructor(private router: Router,
|
|
public auth_service: AuthService) {
|
|
}
|
|
|
|
go2url(urls: string[]) {
|
|
this.router.navigate(urls)
|
|
}
|
|
|
|
logout() {
|
|
this.auth_service.logout()
|
|
}
|
|
|
|
login() {
|
|
this.auth_service.login()
|
|
}
|
|
|
|
|
|
}
|
|
|