created ranking page
This commit is contained in:
parent
5835ddf567
commit
be9d59344f
@ -19,6 +19,10 @@ const routes: Routes = [
|
||||
path: 'valuesAlign',
|
||||
loadChildren: () => import('./valuesAlign/valuesAlign.module').then( m => m.ValuesAlignPageModule), canActivate: [AuthGuard]
|
||||
},
|
||||
{
|
||||
path: 'valuesRanking',
|
||||
loadChildren: () => import('./valuesRanking/valuesRanking.module').then( m => m.ValuesRankingPageModule), canActivate: [AuthGuard]
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
redirectTo: 'home',
|
||||
|
@ -57,8 +57,8 @@ export class ValuesAlignPage {
|
||||
}
|
||||
|
||||
// set storage and go to the next page
|
||||
await this.game.saveGameStorage("Values", "Insert", this.game.cardset);
|
||||
await this.game.saveGameStorage("Values", "Ranking", this.game.cardset);
|
||||
this.alert.hideLoader();
|
||||
this.router.navigateByUrl(`/home`);
|
||||
this.router.navigateByUrl(`/valuesRanking`);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,16 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { ValuesRankingPage } from './valuesRanking.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: ValuesRankingPage,
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class ValuesRankingPageRoutingModule {}
|
19
AuthentesApp/src/app/valuesRanking/valuesRanking.module.ts
Normal file
19
AuthentesApp/src/app/valuesRanking/valuesRanking.module.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { ValuesRankingPage } from './valuesRanking.page';
|
||||
|
||||
import { ValuesRankingPageRoutingModule } from './valuesRanking-routing.module';
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
ValuesRankingPageRoutingModule
|
||||
],
|
||||
declarations: [ValuesRankingPage]
|
||||
})
|
||||
export class ValuesRankingPageModule {}
|
17
AuthentesApp/src/app/valuesRanking/valuesRanking.page.html
Normal file
17
AuthentesApp/src/app/valuesRanking/valuesRanking.page.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!-- <ion-header [translucent]="true">
|
||||
<ion-toolbar>
|
||||
<ion-title>
|
||||
Blank
|
||||
</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header> -->
|
||||
|
||||
<ion-content [fullscreen]="true">
|
||||
<div class="logo">
|
||||
<img class="logo_dark" src="assets/logo-authentes.png" />
|
||||
<img class="logo_light" src="assets/logo-authentes-white.png" />
|
||||
</div>
|
||||
|
||||
</ion-content>
|
||||
|
||||
|
10
AuthentesApp/src/app/valuesRanking/valuesRanking.page.scss
Normal file
10
AuthentesApp/src/app/valuesRanking/valuesRanking.page.scss
Normal file
@ -0,0 +1,10 @@
|
||||
#container {
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,24 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { ValuesRankingPage } from './valuesRanking.page';
|
||||
|
||||
describe('HomePage', () => {
|
||||
let component: ValuesRankingPage;
|
||||
let fixture: ComponentFixture<ValuesRankingPage>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ ValuesRankingPage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(ValuesRankingPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
15
AuthentesApp/src/app/valuesRanking/valuesRanking.page.ts
Normal file
15
AuthentesApp/src/app/valuesRanking/valuesRanking.page.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { Component, Renderer2 } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { AlertService } from '../services/alert.service';
|
||||
import { GameService } from '../services/game.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
templateUrl: 'valuesRanking.page.html',
|
||||
styleUrls: ['valuesRanking.page.scss'],
|
||||
})
|
||||
export class ValuesRankingPage {
|
||||
|
||||
constructor(private router: Router, private game: GameService, public alert: AlertService) {}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user