ソースを参照

Quiz page init

master
kj1352 4年前
コミット
58e1bacf2a
17個のファイルの変更174行の追加0行の削除
  1. +4
    -0
      src/app/app-routing.module.ts
  2. +3
    -0
      src/app/quiz/mcq/mcq.component.html
  3. +0
    -0
      src/app/quiz/mcq/mcq.component.scss
  4. +24
    -0
      src/app/quiz/mcq/mcq.component.spec.ts
  5. +14
    -0
      src/app/quiz/mcq/mcq.component.ts
  6. +17
    -0
      src/app/quiz/quiz-routing.module.ts
  7. +20
    -0
      src/app/quiz/quiz.module.ts
  8. +3
    -0
      src/app/quiz/quiz.page.html
  9. +0
    -0
      src/app/quiz/quiz.page.scss
  10. +24
    -0
      src/app/quiz/quiz.page.spec.ts
  11. +15
    -0
      src/app/quiz/quiz.page.ts
  12. +3
    -0
      src/app/quiz/swipe-cards/swipe-cards.component.html
  13. +0
    -0
      src/app/quiz/swipe-cards/swipe-cards.component.scss
  14. +24
    -0
      src/app/quiz/swipe-cards/swipe-cards.component.spec.ts
  15. +14
    -0
      src/app/quiz/swipe-cards/swipe-cards.component.ts
  16. +4
    -0
      src/app/tabs/tabs-routing.module.ts
  17. +5
    -0
      src/app/tabs/tabs.page.html

+ 4
- 0
src/app/app-routing.module.ts ファイルの表示

@@ -53,6 +53,10 @@ const routes: Routes = [
{
path: 'ar-fan-cam',
loadChildren: () => import('./ar-fan-cam/ar-fan-cam.module').then( m => m.ArFanCamPageModule)
},
{
path: 'quiz',
loadChildren: () => import('./quiz/quiz.module').then( m => m.QuizPageModule)
}
];
@NgModule({


+ 3
- 0
src/app/quiz/mcq/mcq.component.html ファイルの表示

@@ -0,0 +1,3 @@
<p>
mcq works!
</p>

+ 0
- 0
src/app/quiz/mcq/mcq.component.scss ファイルの表示


+ 24
- 0
src/app/quiz/mcq/mcq.component.spec.ts ファイルの表示

@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';

import { McqComponent } from './mcq.component';

describe('McqComponent', () => {
let component: McqComponent;
let fixture: ComponentFixture<McqComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ McqComponent ],
imports: [IonicModule.forRoot()]
}).compileComponents();

fixture = TestBed.createComponent(McqComponent);
component = fixture.componentInstance;
fixture.detectChanges();
}));

it('should create', () => {
expect(component).toBeTruthy();
});
});

+ 14
- 0
src/app/quiz/mcq/mcq.component.ts ファイルの表示

@@ -0,0 +1,14 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-mcq',
templateUrl: './mcq.component.html',
styleUrls: ['./mcq.component.scss'],
})
export class McqComponent implements OnInit {

constructor() { }

ngOnInit() {}

}

+ 17
- 0
src/app/quiz/quiz-routing.module.ts ファイルの表示

@@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { QuizPage } from './quiz.page';

const routes: Routes = [
{
path: '',
component: QuizPage
}
];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class QuizPageRoutingModule {}

+ 20
- 0
src/app/quiz/quiz.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 { QuizPageRoutingModule } from './quiz-routing.module';

import { QuizPage } from './quiz.page';

@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
QuizPageRoutingModule
],
declarations: [QuizPage]
})
export class QuizPageModule {}

+ 3
- 0
src/app/quiz/quiz.page.html ファイルの表示

@@ -0,0 +1,3 @@
<ion-content>
</ion-content>

+ 0
- 0
src/app/quiz/quiz.page.scss ファイルの表示


+ 24
- 0
src/app/quiz/quiz.page.spec.ts ファイルの表示

@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';

import { QuizPage } from './quiz.page';

describe('QuizPage', () => {
let component: QuizPage;
let fixture: ComponentFixture<QuizPage>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ QuizPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();

fixture = TestBed.createComponent(QuizPage);
component = fixture.componentInstance;
fixture.detectChanges();
}));

it('should create', () => {
expect(component).toBeTruthy();
});
});

+ 15
- 0
src/app/quiz/quiz.page.ts ファイルの表示

@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-quiz',
templateUrl: './quiz.page.html',
styleUrls: ['./quiz.page.scss'],
})
export class QuizPage implements OnInit {

constructor() { }

ngOnInit() {
}

}

+ 3
- 0
src/app/quiz/swipe-cards/swipe-cards.component.html ファイルの表示

@@ -0,0 +1,3 @@
<p>
swipe-cards works!
</p>

+ 0
- 0
src/app/quiz/swipe-cards/swipe-cards.component.scss ファイルの表示


+ 24
- 0
src/app/quiz/swipe-cards/swipe-cards.component.spec.ts ファイルの表示

@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';

import { SwipeCardsComponent } from './swipe-cards.component';

describe('SwipeCardsComponent', () => {
let component: SwipeCardsComponent;
let fixture: ComponentFixture<SwipeCardsComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SwipeCardsComponent ],
imports: [IonicModule.forRoot()]
}).compileComponents();

fixture = TestBed.createComponent(SwipeCardsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
}));

it('should create', () => {
expect(component).toBeTruthy();
});
});

+ 14
- 0
src/app/quiz/swipe-cards/swipe-cards.component.ts ファイルの表示

@@ -0,0 +1,14 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-swipe-cards',
templateUrl: './swipe-cards.component.html',
styleUrls: ['./swipe-cards.component.scss'],
})
export class SwipeCardsComponent implements OnInit {

constructor() { }

ngOnInit() {}

}

+ 4
- 0
src/app/tabs/tabs-routing.module.ts ファイルの表示

@@ -30,6 +30,10 @@ const routes: Routes = [
{
path: 'ar',
loadChildren: () => import('../ar-fan-cam/ar-fan-cam.module').then( m => m.ArFanCamPageModule)
},
{
path: 'quiz',
loadChildren: () => import('../quiz/quiz.module').then( m => m.QuizPageModule)
}
]
},


+ 5
- 0
src/app/tabs/tabs.page.html ファイルの表示

@@ -26,5 +26,10 @@
<ion-icon name="trophy"></ion-icon>
</ion-tab-button>

<ion-tab-button tab="quiz">
<ion-icon name="game-controller-outline"></ion-icon>
<ion-icon name="game-controller"></ion-icon>
</ion-tab-button>

</ion-tab-bar>
</ion-tabs>

読み込み中…
キャンセル
保存