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> <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> <span class="f13_color_primary lato" >факты</span><span class="f13_color_extra lato">13</span>
</div> </div>
<span class="spacer"></span> <span class="spacer"></span>

11
src/app/app.component.ts

@ -11,9 +11,9 @@ import {AuthService} from "./services/auth.service";
export class AppComponent { export class AppComponent {
baseUtils: BaseUtils = new BaseUtils(); baseUtils: BaseUtils = new BaseUtils();
social_media_links: {link: string, name: string}[] = [ social_media_links: {link: string, name: string}[] = [
{name: "Дискорд", link: "/discord"}, {name: "Дискорд", link: "discord"},
{name: "Телеграм", link: "https://t.me/facti13"}, {name: "Телеграм", link: "https://t.me/facti13"},
{name: "Стим", link: "/steam"} {name: "Стим", link: "steam"}
] ]
logined: string | null = null; logined: string | null = null;
@ -22,8 +22,11 @@ export class AppComponent {
public auth_service: AuthService) { public auth_service: AuthService) {
} }
go2url(urls: string[]) { go2url(urls: string[], reopen: boolean = false) {
this.router.navigate(urls) if (reopen)
window.open(urls.join("/"), "_self")
else
this.router.navigate(urls)
} }
logout() { 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;"> <div class="content-in-center-header" style="flex-direction: column;">
<h1>Бан лист</h1> <h1>Бан лист</h1>
<h3>Скоро и ты сюда попадешь браток{{total==0?'':'как и остальные ' + total + ' карликов'}}</h3> <h3>Скоро и ты сюда попадешь браток {{total==0?'':'как и остальные ' + total + ' карликов'}}</h3>
</div> </div>
<div class="content-in-center"> <div class="content-in-center">

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

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

Loading…
Cancel
Save