This commit is contained in:
parent
ccef7fb86f
commit
d0815b5772
@ -1,18 +1,18 @@
|
||||
|
||||
.main-container {
|
||||
height: 100%;
|
||||
border: 2px solid rgba(124, 124, 124, 0.5);
|
||||
}
|
||||
|
||||
.sidenav-content {
|
||||
|
||||
height: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sidenav {
|
||||
padding: 20px;
|
||||
border: 1px solid rgba(25, 116, 211, 0.5);
|
||||
|
||||
}
|
||||
.navToggle-btn {
|
||||
height: 40px;
|
||||
|
@ -1,6 +1,5 @@
|
||||
<div>
|
||||
<h1>Welcome, traveler.</h1>
|
||||
|
||||
<mat-drawer-container class="main-container" [autosize]="true">
|
||||
<mat-drawer #drawer class="sidenav" mode="side" [mode]="'push'">
|
||||
<app-nav-bar></app-nav-bar>
|
||||
@ -9,7 +8,7 @@
|
||||
<button type="button" class = "navToggle-btn btn-14" (click)="drawer.toggle()">
|
||||
Отобразить панель навигации
|
||||
</button>
|
||||
<router-outlet></router-outlet>
|
||||
</div>
|
||||
<router-outlet></router-outlet>
|
||||
</mat-drawer-container>
|
||||
</div>
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
templateUrl: `app.component.html`,
|
||||
|
@ -1,5 +1,5 @@
|
||||
export const api_endpoint: string = 'http://api.vdk2ch.ru:5000/';
|
||||
//export const api_endpoint: string = 'http://localhost:7141/';
|
||||
//export const api_endpoint: string = 'http://api.vdk2ch.ru:5000/';
|
||||
export const api_endpoint: string = 'http://localhost:7141/';
|
||||
|
||||
|
||||
const ALERT_SHOW_TIME = 5000;
|
||||
|
@ -4,7 +4,7 @@
|
||||
<a routerLink = "about">О нас </a>
|
||||
<br>
|
||||
Доски:
|
||||
<div>
|
||||
<a *ngFor="let board of boardsToList" routerLink = "threads" title="{{board.BoardExplainedName}}">{{board.BoardName}}</a>
|
||||
<div *ngFor="let board of boardsToList">
|
||||
<a routerLink = "threads" title="{{board.BoardExplainedName}}">{{board.BoardName}}</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
@ -49,7 +49,14 @@ export class ApiChatService {
|
||||
BoardID: 228,
|
||||
ThreadCount: 4,
|
||||
PostCount: 4445
|
||||
}
|
||||
},
|
||||
{
|
||||
BoardName: 'vdk',
|
||||
BoardExplainedName: 'Здесь живут тигры',
|
||||
BoardID: 223,
|
||||
ThreadCount: 1,
|
||||
PostCount: 245
|
||||
}
|
||||
]
|
||||
|
||||
getBoards(): Board[] {
|
||||
|
Reference in New Issue
Block a user