1
0
Fork 0
mirror of https://github.com/sensebox/blockly-app synced 2025-06-08 01:35:52 +02:00

set up blockly page

This commit is contained in:
Thiemann96 2018-10-23 16:08:55 +02:00
parent 81df276d99
commit 24eb305e5a
7 changed files with 1396 additions and 1326 deletions

2648
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -16,7 +16,8 @@ export class openSenseApp {
pages: Array<{title: string, component: any}> = [ pages: Array<{title: string, component: any}> = [
{ title: 'Home', component: HomePage }, { title: 'Home', component: HomePage },
{ title: 'About', component: 'AboutPage' }, { title: 'About', component: 'AboutPage' },
{ title: 'senseBox', component: 'SenseBoxPage' } { title: 'senseBox', component: 'SenseBoxPage' },
{title:'Blockly', component:'BlocklyPage'}
]; ];
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) { constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {

View file

@ -0,0 +1,25 @@
<!--
Generated template for the SenseBoxPage page.
See http://ionicframework.com/docs/components/#navigation for more info on
Ionic pages and navigation.
-->
<ion-header>
<ion-navbar>
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>Blockly</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<div>
Blockly should be displayed here !
</div>
</ion-content>

View file

@ -0,0 +1,13 @@
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { BlocklyPage } from './blockly';
@NgModule({
declarations: [
BlocklyPage,
],
imports: [
IonicPageModule.forChild(BlocklyPage),
],
})
export class BlocklyPageModule {}

View file

@ -0,0 +1,3 @@
page-blockly {
}

View file

@ -0,0 +1,28 @@
import { ApiProvider } from '../../providers/api/api';
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
/**
* Generated class for the SenseBoxPage page.
*
* See https://ionicframework.com/docs/components/#navigation for more info on
* Ionic pages and navigation.
*/
@IonicPage()
@Component({
selector: 'page-blockly',
templateUrl: 'blockly.html',
})
export class BlocklyPage {
constructor(public navCtrl: NavController, public navParams: NavParams, private api: ApiProvider) {
}
ionViewDidLoad() {
console.log('ionViewDidLoad SenseBoxPage');
}
}