From a9f04e5cc7737221981829f02f027993745735fe Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 3 Jan 2024 10:23:54 -0500 Subject: [PATCH] historynpage --- src/app/app-routing.module.ts | 5 ++++ .../pages/history/history-routing.module.ts | 17 +++++++++++++ src/app/pages/history/history.module.ts | 20 ++++++++++++++++ src/app/pages/history/history.page.html | 14 +++++++++++ src/app/pages/history/history.page.scss | 0 src/app/pages/history/history.page.spec.ts | 24 +++++++++++++++++++ src/app/pages/history/history.page.ts | 21 ++++++++++++++++ src/app/pages/profile/profile.page.ts | 4 +++- 8 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 src/app/pages/history/history-routing.module.ts create mode 100644 src/app/pages/history/history.module.ts create mode 100644 src/app/pages/history/history.page.html create mode 100644 src/app/pages/history/history.page.scss create mode 100644 src/app/pages/history/history.page.spec.ts create mode 100644 src/app/pages/history/history.page.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 6c431e4..83eec0b 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -266,6 +266,11 @@ const routes: Routes = [ path: 'preferences', loadChildren: () => import('./pages/preferences/preferences.module').then(m => m.PreferencesPageModule) }, + { + path: 'history', + loadChildren: () => import('./pages/history/history.module').then(m => m.HistoryPageModule) + }, + diff --git a/src/app/pages/history/history-routing.module.ts b/src/app/pages/history/history-routing.module.ts new file mode 100644 index 0000000..17416de --- /dev/null +++ b/src/app/pages/history/history-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { HistoryPage } from './history.page'; + +const routes: Routes = [ + { + path: '', + component: HistoryPage + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class HistoryPageRoutingModule {} diff --git a/src/app/pages/history/history.module.ts b/src/app/pages/history/history.module.ts new file mode 100644 index 0000000..238e31c --- /dev/null +++ b/src/app/pages/history/history.module.ts @@ -0,0 +1,20 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +import { IonicModule } from '@ionic/angular'; + +import { HistoryPageRoutingModule } from './history-routing.module'; + +import { HistoryPage } from './history.page'; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + HistoryPageRoutingModule + ], + declarations: [HistoryPage] +}) +export class HistoryPageModule {} diff --git a/src/app/pages/history/history.page.html b/src/app/pages/history/history.page.html new file mode 100644 index 0000000..85fe59f --- /dev/null +++ b/src/app/pages/history/history.page.html @@ -0,0 +1,14 @@ + + + + + + + + History + + + + + + diff --git a/src/app/pages/history/history.page.scss b/src/app/pages/history/history.page.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/history/history.page.spec.ts b/src/app/pages/history/history.page.spec.ts new file mode 100644 index 0000000..fab568a --- /dev/null +++ b/src/app/pages/history/history.page.spec.ts @@ -0,0 +1,24 @@ +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; + +import { HistoryPage } from './history.page'; + +describe('HistoryPage', () => { + let component: HistoryPage; + let fixture: ComponentFixture; + + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [ HistoryPage ], + imports: [IonicModule.forRoot()] + }).compileComponents(); + + fixture = TestBed.createComponent(HistoryPage); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/history/history.page.ts b/src/app/pages/history/history.page.ts new file mode 100644 index 0000000..0940ba8 --- /dev/null +++ b/src/app/pages/history/history.page.ts @@ -0,0 +1,21 @@ +import { Component, OnInit } from '@angular/core'; +import {NavController} from "@ionic/angular"; + +@Component({ + selector: 'app-history', + templateUrl: './history.page.html', + styleUrls: ['./history.page.scss'], +}) +export class HistoryPage implements OnInit { + + constructor( + private navctr: NavController + ) { } + + ngOnInit() { + } + + onBack() { + this.navctr.back(); + } +} diff --git a/src/app/pages/profile/profile.page.ts b/src/app/pages/profile/profile.page.ts index afa271a..126912e 100644 --- a/src/app/pages/profile/profile.page.ts +++ b/src/app/pages/profile/profile.page.ts @@ -72,7 +72,9 @@ export class ProfilePage implements OnInit { onPreferences(){ this.router.navigate(['preferences']); } - onHistory(){} + onHistory(){ + this.router.navigate(['history']); + } onInvite() { this.router.navigate(['invite']);