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