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