-
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
25 changed files
with
118 additions
and
97 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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import {NgModule, Optional, SkipSelf} from '@angular/core'; | ||
|
||
|
||
@NgModule({ | ||
providers: [] | ||
}) | ||
export class CoreModule { | ||
constructor(@Optional() @SkipSelf() parentModule?: CoreModule) { | ||
if (parentModule) { | ||
throw new Error( | ||
'CoreModule is already loaded. Import it in the AppModule only'); | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...app/http-interceptors/auth.interceptor.ts → ...ore/http-interceptors/auth.interceptor.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
2 changes: 1 addition & 1 deletion
2
...-interceptors/handle-error.interceptor.ts → ...-interceptors/handle-error.interceptor.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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../app/http-interceptors/xhr.interceptor.ts → ...core/http-interceptors/xhr.interceptor.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
File renamed without changes.
File renamed without changes.
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,14 +1,20 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {RouterModule, Routes} from '@angular/router'; | ||
import {WelcomeComponent} from './welcome/welcome.component'; | ||
import {PageNotFoundComponent} from "./page-not-found/page-not-found.component"; | ||
|
||
const routes: Routes = [ | ||
{path: '', component: WelcomeComponent}, | ||
{path: 'welcome', loadChildren: () => import('./pages.module').then(m => m.PagesModule)}, | ||
{ | ||
path: 'auth', loadChildren: () => import('./security/security.module').then(m => m.SecurityModule), | ||
title: "系统登录" | ||
}, | ||
{path: '', pathMatch: 'full', redirectTo: '/auth'}, | ||
{path: '**', component: PageNotFoundComponent} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class PagesRoutingModule { | ||
} |
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,28 +1,25 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {NgModule, Optional, SkipSelf} from '@angular/core'; | ||
|
||
import {PagesRoutingModule} from './pages-routing.module'; | ||
|
||
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"; | ||
import {PageNotFoundComponent} from "./page-not-found/page-not-found.component"; | ||
import {SecurityModule} from "./security/security.module"; | ||
import {SharedModule} from "../shared/shared.module"; | ||
|
||
@NgModule({ | ||
imports: [ | ||
PagesRoutingModule, | ||
NzIconModule, | ||
NzLayoutModule, | ||
NzMenuModule, | ||
NzSliderModule, | ||
NzLayoutModule, | ||
NzMenuModule, | ||
NzIconModule, | ||
NzResultModule | ||
SecurityModule, | ||
SharedModule | ||
], | ||
declarations: [WelcomeComponent], | ||
exports: [WelcomeComponent] | ||
declarations: [WelcomeComponent, PageNotFoundComponent] | ||
}) | ||
export class PagesModule { | ||
constructor(@Optional() @SkipSelf() parentModule?: PagesModule) { | ||
if (parentModule) { | ||
throw new Error( | ||
'PagesModule is already loaded. Import it in the AppModule only'); | ||
} | ||
} | ||
} |
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...b/src/app/security/login/login.service.ts → ...app/pages/security/login/login.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
2 changes: 1 addition & 1 deletion
2
...c/app/security/security-routing.module.ts → ...pages/security/security-routing.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
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {NzSpinModule} from "ng-zorro-antd/spin"; | ||
import {NzBackTopModule} from "ng-zorro-antd/back-top"; | ||
import {NzResultModule} from "ng-zorro-antd/result"; | ||
import {MatSnackBarModule} from "@angular/material/snack-bar"; | ||
import {MatProgressBarModule} from "@angular/material/progress-bar"; | ||
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"; | ||
|
||
|
||
@NgModule({ | ||
exports: [ | ||
NzSpinModule, | ||
NzBackTopModule, | ||
NzResultModule, | ||
MatSnackBarModule, | ||
MatProgressBarModule, | ||
NzIconModule, | ||
NzLayoutModule, | ||
NzMenuModule, | ||
NzSliderModule, | ||
NzLayoutModule, | ||
NzMenuModule, | ||
NzIconModule, | ||
NzResultModule | ||
] | ||
}) | ||
export class SharedZorroModule { | ||
} |
Oops, something went wrong.