Browse Source

вооо крутооо 6

master
gsd 6 days ago
parent
commit
e0ac38f511
  1. 2
      src/app/app.component.html
  2. 11
      src/app/app.component.ts
  3. 2
      src/app/pages/banlist-page/banlist-page.component.html
  4. 2
      src/app/services/auth.service.ts

2
src/app/app.component.html

@ -1,5 +1,5 @@
<mat-toolbar>
<div (click)="go2url(['/'])" style="padding-left: calc((100% - 66%)/2); cursor: pointer">
<div (click)="go2url(['/'], true)" style="padding-left: calc((100% - 66%)/2); cursor: pointer">
<span class="f13_color_primary lato" >факты</span><span class="f13_color_extra lato">13</span>
</div>
<span class="spacer"></span>

11
src/app/app.component.ts

@ -11,9 +11,9 @@ import {AuthService} from "./services/auth.service";
export class AppComponent {
baseUtils: BaseUtils = new BaseUtils();
social_media_links: {link: string, name: string}[] = [
{name: "Дискорд", link: "/discord"},
{name: "Дискорд", link: "discord"},
{name: "Телеграм", link: "https://t.me/facti13"},
{name: "Стим", link: "/steam"}
{name: "Стим", link: "steam"}
]
logined: string | null = null;
@ -22,8 +22,11 @@ export class AppComponent {
public auth_service: AuthService) {
}
go2url(urls: string[]) {
this.router.navigate(urls)
go2url(urls: string[], reopen: boolean = false) {
if (reopen)
window.open(urls.join("/"), "_self")
else
this.router.navigate(urls)
}
logout() {

2
src/app/pages/banlist-page/banlist-page.component.html

@ -1,6 +1,6 @@
<div class="content-in-center-header" style="flex-direction: column;">
<h1>Бан лист</h1>
<h3>Скоро и ты сюда попадешь браток{{total==0?'':'как и остальные ' + total + ' карликов'}}</h3>
<h3>Скоро и ты сюда попадешь браток {{total==0?'':'как и остальные ' + total + ' карликов'}}</h3>
</div>
<div class="content-in-center">

2
src/app/services/auth.service.ts

@ -28,7 +28,7 @@ export class AuthService {
logout() {
sessionStorage.removeItem(AuthService.KEY);
window.open("api/auth/logout")
window.open("api/auth/logout", "_self")
}
isAuth() {

Loading…
Cancel
Save