prepare to sit spring s09
|
|
@ -7,10 +7,6 @@ export const routes: Routes = [
|
|||
loadChildren: () => import('./pages/pages.module')
|
||||
.then(m => m.PagesModule),
|
||||
},
|
||||
{
|
||||
path: 'auth',
|
||||
loadChildren: () => import('./auth/login.module').then(m => m.AuthModule),
|
||||
},
|
||||
{ path: '', redirectTo: 'pages', pathMatch: 'full' },
|
||||
{ path: '**', redirectTo: 'pages' },
|
||||
];
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*/
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { AnalyticsService } from './@core/utils/analytics.service';
|
||||
import { SeoService } from './@core/utils/seo.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-app',
|
||||
|
|
|
|||
|
|
@ -19,13 +19,8 @@ import {
|
|||
NbSidebarModule,
|
||||
NbToastrModule,
|
||||
NbWindowModule,
|
||||
NbLayoutModule,
|
||||
NbCardModule,
|
||||
NbButtonModule,
|
||||
} from '@nebular/theme';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NbAuthModule, NbDummyAuthStrategy } from '@nebular/auth';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
|
@ -48,24 +43,6 @@ import { NbAuthModule, NbDummyAuthStrategy } from '@nebular/auth';
|
|||
}),
|
||||
CoreModule.forRoot(),
|
||||
ThemeModule.forRoot(),
|
||||
|
||||
CommonModule,
|
||||
HttpClientModule,
|
||||
NbLayoutModule,
|
||||
NbCardModule,
|
||||
NbButtonModule,
|
||||
AppRoutingModule,
|
||||
|
||||
NbAuthModule.forRoot({
|
||||
strategies: [
|
||||
NbDummyAuthStrategy.setup({
|
||||
name: 'email',
|
||||
|
||||
alwaysFail: true,
|
||||
delay: 1000,
|
||||
}),
|
||||
],
|
||||
}),
|
||||
],
|
||||
bootstrap: [AppComponent],
|
||||
})
|
||||
|
|
|
|||
|
|
@ -16,16 +16,11 @@ export const routes: Routes = [
|
|||
component: NbAuthComponent,
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
path: 'login',
|
||||
component: LoginComponent,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'pages',
|
||||
loadChildren: () => import('../pages/pages.module')
|
||||
.then(m => m.PagesModule),
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
|
@ -24,7 +24,6 @@ import { AuthRoutingModule } from './login-routing.module';
|
|||
NbButtonModule,
|
||||
NbCheckboxModule,
|
||||
AuthRoutingModule,
|
||||
|
||||
NbAuthModule,
|
||||
],
|
||||
declarations: [
|
||||
|
|
@ -2,8 +2,8 @@ import { Injectable } from '@angular/core';
|
|||
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
|
||||
import { Observable, throwError } from 'rxjs';
|
||||
import { map, catchError, tap } from 'rxjs/operators';
|
||||
import { UserResponse } from '../@core/data/user-response';
|
||||
import { User } from '../@core/data/user';
|
||||
import { UserResponse } from '../../@core/data/user-response';
|
||||
import { User } from '../../@core/data/user';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
|
|
@ -31,4 +31,10 @@ export const MENU_ITEMS: NbMenuItem[] = [
|
|||
link: '/pages/partner-branch',
|
||||
home: false,
|
||||
},
|
||||
{
|
||||
title: 'Login Page',
|
||||
icon: 'keypad-outline',
|
||||
link: '/pages/auth',
|
||||
home: true,
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import {PagesComponent} from './pages.component';
|
|||
import {NotFoundComponent} from './miscellaneous/not-found/not-found.component';
|
||||
import {PromotionComponent} from './promotion/promotion.component';
|
||||
import { PartnerPriceComponent } from './partner-price/partner-price.component';
|
||||
import { LoginComponent } from './auth/login.component';
|
||||
|
||||
const routes: Routes = [{
|
||||
path: '',
|
||||
|
|
@ -30,6 +31,10 @@ const routes: Routes = [{
|
|||
path: 'billing',
|
||||
component: NotFoundComponent,
|
||||
},
|
||||
{
|
||||
path: 'auth',
|
||||
component: LoginComponent,
|
||||
},
|
||||
],
|
||||
}];
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 732 KiB After Width: | Height: | Size: 732 KiB |
|
Before Width: | Height: | Size: 758 KiB After Width: | Height: | Size: 758 KiB |
|
Before Width: | Height: | Size: 738 KiB After Width: | Height: | Size: 738 KiB |
|
Before Width: | Height: | Size: 760 KiB After Width: | Height: | Size: 760 KiB |
|
Before Width: | Height: | Size: 726 KiB After Width: | Height: | Size: 726 KiB |
|
Before Width: | Height: | Size: 750 KiB After Width: | Height: | Size: 750 KiB |
|
Before Width: | Height: | Size: 736 KiB After Width: | Height: | Size: 736 KiB |
|
Before Width: | Height: | Size: 761 KiB After Width: | Height: | Size: 761 KiB |
|
Before Width: | Height: | Size: 716 KiB After Width: | Height: | Size: 716 KiB |
|
Before Width: | Height: | Size: 743 KiB After Width: | Height: | Size: 743 KiB |
|
Before Width: | Height: | Size: 726 KiB After Width: | Height: | Size: 726 KiB |
|
Before Width: | Height: | Size: 756 KiB After Width: | Height: | Size: 756 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |