prepare to sit spring s09

This commit is contained in:
Zuhdan Ubay 2020-05-26 10:49:33 +07:00
parent 4874862928
commit 7364a4a0e2
214 changed files with 847520 additions and 1881 deletions

View file

@ -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' },
];

View file

@ -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',

View file

@ -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],
})

View file

@ -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({

View file

@ -24,7 +24,6 @@ import { AuthRoutingModule } from './login-routing.module';
NbButtonModule,
NbCheckboxModule,
AuthRoutingModule,
NbAuthModule,
],
declarations: [

View file

@ -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',

View file

@ -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,
},
];

View file

@ -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,
},
],
}];