-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
53 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
<div class="layui-layout"> | ||
<router-outlet></router-outlet> | ||
<nz-spin [nzSpinning]="loadingShow"> | ||
<router-outlet></router-outlet> | ||
</nz-spin> | ||
</div> | ||
<nz-back-top [nzTemplate]="tpl" [nzVisibilityHeight]="100"> | ||
<ng-template #tpl> | ||
<div class="ant-back-top-inner">UP</div> | ||
</ng-template> | ||
</nz-back-top> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
import {Component} from '@angular/core'; | ||
import {Component, OnInit} from '@angular/core'; | ||
import {LoadingService} from "./shared/loading.service"; | ||
|
||
@Component({ | ||
// Selector for the component | ||
selector: 'app-root', | ||
// Template URL for the component | ||
templateUrl: './app.component.html', | ||
// Styles URL for the component | ||
styleUrls: ['./app.component.scss'] | ||
}) | ||
export class AppComponent { | ||
export class AppComponent implements OnInit { | ||
|
||
loadingShow: boolean; | ||
|
||
constructor(private loading: LoadingService) { | ||
this.loadingShow = false; | ||
} | ||
|
||
ngOnInit(): void { | ||
this.loading.progress$.subscribe(res => this.loadingShow = res); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 4 additions & 24 deletions
28
ui/web/src/app/pages/page-not-found/page-not-found.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,5 @@ | ||
<div class="page page-center"> | ||
<div class="container-tight py-4"> | ||
<div class="empty"> | ||
<div class="empty-header">404</div> | ||
<p class="empty-title">Oops… You just found an error page</p> | ||
<p class="empty-subtitle text-muted"> | ||
We are sorry but the page you are looking for was not found | ||
</p> | ||
<div class="empty-action"> | ||
<a class="btn btn-primary" routerLink="/" routerLinkActive="active"> | ||
<!-- Download SVG icon from http://tabler-icons.io/i/arrow-left --> | ||
<svg class="icon" fill="none" height="24" stroke="currentColor" stroke-linecap="round" | ||
stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24" | ||
xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M0 0h24v24H0z" fill="none" stroke="none"/> | ||
<path d="M5 12l14 0"/> | ||
<path d="M5 12l6 6"/> | ||
<path d="M5 12l6 -6"/> | ||
</svg> | ||
Take me home | ||
</a> | ||
</div> | ||
</div> | ||
<nz-result nzStatus="403" nzSubTitle="Sorry, you are not authorized to access this page." nzTitle="403"> | ||
<div nz-result-extra> | ||
<button nz-button nzType="primary">Back Home</button> | ||
</div> | ||
</div> | ||
</nz-result> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
...b/src/app/pages/welcome/welcome.module.ts → ui/web/src/app/pages/pages.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
import {NgModule} from '@angular/core'; | ||
|
||
import {WelcomeRoutingModule} from './welcome-routing.module'; | ||
import {PagesRoutingModule} from './pages-routing.module'; | ||
|
||
import {WelcomeComponent} from './welcome.component'; | ||
import {WelcomeComponent} from './welcome/welcome.component'; | ||
import {NzIconModule} from "ng-zorro-antd/icon"; | ||
import {NzLayoutModule} from "ng-zorro-antd/layout"; | ||
import {NzMenuModule} from "ng-zorro-antd/menu"; | ||
import {NzSliderModule} from "ng-zorro-antd/slider"; | ||
import {NzResultModule} from "ng-zorro-antd/result"; | ||
|
||
@NgModule({ | ||
imports: [ | ||
WelcomeRoutingModule, | ||
PagesRoutingModule, | ||
NzIconModule, | ||
NzLayoutModule, | ||
NzMenuModule, | ||
NzSliderModule, | ||
NzLayoutModule, | ||
NzMenuModule, | ||
NzIconModule | ||
NzIconModule, | ||
NzResultModule | ||
], | ||
declarations: [WelcomeComponent], | ||
exports: [WelcomeComponent] | ||
}) | ||
export class WelcomeModule { | ||
export class PagesModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
6 changes: 2 additions & 4 deletions
6
...eb/src/app/shared/progress-bar.service.ts → ui/web/src/app/shared/loading.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters