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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

Before

Width:  |  Height:  |  Size: 732 KiB

After

Width:  |  Height:  |  Size: 732 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 758 KiB

After

Width:  |  Height:  |  Size: 758 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 738 KiB

After

Width:  |  Height:  |  Size: 738 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 760 KiB

After

Width:  |  Height:  |  Size: 760 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 726 KiB

After

Width:  |  Height:  |  Size: 726 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 750 KiB

After

Width:  |  Height:  |  Size: 750 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 736 KiB

After

Width:  |  Height:  |  Size: 736 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 761 KiB

After

Width:  |  Height:  |  Size: 761 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 716 KiB

After

Width:  |  Height:  |  Size: 716 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 743 KiB

After

Width:  |  Height:  |  Size: 743 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 726 KiB

After

Width:  |  Height:  |  Size: 726 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 756 KiB

After

Width:  |  Height:  |  Size: 756 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Before After
Before After

Some files were not shown because too many files have changed in this diff Show more