forked from EVOgeek/Vmeda.Online
		
	MOBILE-3565 core: Add init page of the app
This commit is contained in:
		
							parent
							
								
									af38737f40
								
							
						
					
					
						commit
						300f017036
					
				| @ -16,6 +16,15 @@ import { NgModule } from '@angular/core'; | ||||
| import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; | ||||
| 
 | ||||
| const routes: Routes = [ | ||||
|     { | ||||
|         path: '', | ||||
|         redirectTo: 'login', | ||||
|         pathMatch: 'full', | ||||
|     }, | ||||
|     { | ||||
|         path: 'login', | ||||
|         loadChildren: () => import('./core/login/login.module').then( m => m.CoreLoginModule), | ||||
|     }, | ||||
| ]; | ||||
| 
 | ||||
| @NgModule({ | ||||
|  | ||||
							
								
								
									
										30
									
								
								src/app/core/login/login-routing.module.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								src/app/core/login/login-routing.module.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| // (C) Copyright 2015 Moodle Pty Ltd.
 | ||||
| //
 | ||||
| // Licensed under the Apache License, Version 2.0 (the "License");
 | ||||
| // you may not use this file except in compliance with the License.
 | ||||
| // You may obtain a copy of the License at
 | ||||
| //
 | ||||
| //     http://www.apache.org/licenses/LICENSE-2.0
 | ||||
| //
 | ||||
| // Unless required by applicable law or agreed to in writing, software
 | ||||
| // distributed under the License is distributed on an "AS IS" BASIS,
 | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | ||||
| // See the License for the specific language governing permissions and
 | ||||
| // limitations under the License.
 | ||||
| 
 | ||||
| import { NgModule } from '@angular/core'; | ||||
| import { RouterModule, Routes } from '@angular/router'; | ||||
| import { CoreLoginInitPage } from './pages/init/init.page'; | ||||
| 
 | ||||
| const routes: Routes = [ | ||||
|     { | ||||
|         path: '', | ||||
|         component: CoreLoginInitPage, | ||||
|     }, | ||||
| ]; | ||||
| 
 | ||||
| @NgModule({ | ||||
|     imports: [RouterModule.forChild(routes)], | ||||
|     exports: [RouterModule], | ||||
| }) | ||||
| export class CoreLoginRoutingModule {} | ||||
							
								
								
									
										34
									
								
								src/app/core/login/login.module.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								src/app/core/login/login.module.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,34 @@ | ||||
| // (C) Copyright 2015 Moodle Pty Ltd.
 | ||||
| //
 | ||||
| // Licensed under the Apache License, Version 2.0 (the "License");
 | ||||
| // you may not use this file except in compliance with the License.
 | ||||
| // You may obtain a copy of the License at
 | ||||
| //
 | ||||
| //     http://www.apache.org/licenses/LICENSE-2.0
 | ||||
| //
 | ||||
| // Unless required by applicable law or agreed to in writing, software
 | ||||
| // distributed under the License is distributed on an "AS IS" BASIS,
 | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | ||||
| // See the License for the specific language governing permissions and
 | ||||
| // limitations under the License.
 | ||||
| 
 | ||||
| import { NgModule } from '@angular/core'; | ||||
| import { CommonModule } from '@angular/common'; | ||||
| 
 | ||||
| import { IonicModule } from '@ionic/angular'; | ||||
| 
 | ||||
| import { CoreLoginRoutingModule } from './login-routing.module'; | ||||
| import { CoreLoginInitPage } from './pages/init/init.page'; | ||||
| 
 | ||||
| 
 | ||||
| @NgModule({ | ||||
|     imports: [ | ||||
|         CommonModule, | ||||
|         IonicModule, | ||||
|         CoreLoginRoutingModule, | ||||
|     ], | ||||
|     declarations: [ | ||||
|         CoreLoginInitPage, | ||||
|     ], | ||||
| }) | ||||
| export class CoreLoginModule {} | ||||
							
								
								
									
										5
									
								
								src/app/core/login/pages/init/init.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								src/app/core/login/pages/init/init.html
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | ||||
| <ion-content> | ||||
|     <div class="core-bglogo"> | ||||
|         <ion-spinner></ion-spinner> | ||||
|     </div> | ||||
| </ion-content> | ||||
							
								
								
									
										25
									
								
								src/app/core/login/pages/init/init.page.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								src/app/core/login/pages/init/init.page.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,25 @@ | ||||
| // (C) Copyright 2015 Moodle Pty Ltd.
 | ||||
| //
 | ||||
| // Licensed under the Apache License, Version 2.0 (the "License");
 | ||||
| // you may not use this file except in compliance with the License.
 | ||||
| // You may obtain a copy of the License at
 | ||||
| //
 | ||||
| //     http://www.apache.org/licenses/LICENSE-2.0
 | ||||
| //
 | ||||
| // Unless required by applicable law or agreed to in writing, software
 | ||||
| // distributed under the License is distributed on an "AS IS" BASIS,
 | ||||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | ||||
| // See the License for the specific language governing permissions and
 | ||||
| // limitations under the License.
 | ||||
| 
 | ||||
| import { Component } from '@angular/core'; | ||||
| 
 | ||||
| /** | ||||
|  * Page that displays a "splash screen" while the app is being initialized. | ||||
|  */ | ||||
| @Component({ | ||||
|     selector: 'page-core-login-init', | ||||
|     templateUrl: 'init.html', | ||||
|     styleUrls: ['init.scss'], | ||||
| }) | ||||
| export class CoreLoginInitPage { } | ||||
							
								
								
									
										2
									
								
								src/app/core/login/pages/init/init.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								src/app/core/login/pages/init/init.scss
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| app-root page-core-login-init { | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user