Initial commit

This commit is contained in:
Kayaya
2020-08-05 15:39:16 +01:00
commit d25ebc0d28
110 changed files with 17161 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { IndexPage } from './index.page';
const routes: Routes = [
{
path: '',
component: IndexPage,
children: [
{
path: '',
loadChildren: ()=> import('../pages/welcome/welcome.module').then(m => m.WelcomePageModule)
},
{
path: 'login',
loadChildren: ()=> import('../pages/login/login.module').then(m => m.LoginPageModule)
},
{
path: 'signup',
loadChildren: ()=> import('../pages/signup/signup.module').then(m => m.SignupPageModule)
},
]
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class IndexPageRoutingModule {}
+20
View File
@@ -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 { IndexPageRoutingModule } from './index-routing.module';
import { IndexPage } from './index.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
IndexPageRoutingModule
],
declarations: [IndexPage]
})
export class IndexPageModule {}
+3
View File
@@ -0,0 +1,3 @@
<ion-content>
<router-outlet></router-outlet>
</ion-content>
View File
+24
View File
@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { IndexPage } from './index.page';
describe('IndexPage', () => {
let component: IndexPage;
let fixture: ComponentFixture<IndexPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ IndexPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(IndexPage);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
+15
View File
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-index',
templateUrl: './index.page.html',
styleUrls: ['./index.page.scss'],
})
export class IndexPage implements OnInit {
constructor() { }
ngOnInit() {
}
}