diff --git a/ionic/components/app/test/native/index.ts b/ionic/components/app/test/native/index.ts deleted file mode 100644 index 83638e4188..0000000000 --- a/ionic/components/app/test/native/index.ts +++ /dev/null @@ -1,44 +0,0 @@ -import {Component} from 'angular2/angular2'; -import {Control, ControlGroup} from 'angular2/forms'; - -import {App, IonicApp, Http} from 'ionic/ionic'; - -import {Camera, Geolocation, Vibration, Battery, Device} from 'ionic/ionic'; - -import {CameraPage} from 'pages/camera'; -import {BatteryPage} from 'pages/battery'; -import {ContactsPage} from 'pages/contacts'; -import {DevicePage} from 'pages/device'; -import {DeviceMotionPage} from 'pages/device-motion'; -import {DeviceOrientationPage} from 'pages/device-orientation'; -import {GeolocationPage} from 'pages/geolocation'; -import {VibrationPage} from 'pages/vibration'; - -@App({ - templateUrl: 'main.html' -}) -class MyApp { - constructor(app: IonicApp) { - this.app = app; - - this.firstPage = CameraPage; - console.log('First page', CameraPage); - this.plugins = [ - {title: 'Camera', page: CameraPage}, - {title: 'Device', page: DevicePage}, - {title: 'Device Motion', page: DeviceMotionPage}, - {title: 'Device Orientation', page: DeviceOrientationPage}, - {title: 'Geolocation', page: GeolocationPage}, - {title: 'Contacts', page: ContactsPage}, - {title: 'Battery', page: BatteryPage}, - {title: 'Vibration', page: VibrationPage}, - ]; - } - - openPage(aside, plugin) { - aside.close(); - - let nav = this.app.getComponent('myNav'); - nav.setItems([plugin.page]); - } -} diff --git a/ionic/components/app/test/native/main.html b/ionic/components/app/test/native/main.html deleted file mode 100644 index f5b1012715..0000000000 --- a/ionic/components/app/test/native/main.html +++ /dev/null @@ -1,12 +0,0 @@ - - Plugins - - - - {{p.title}} - - - - - - diff --git a/ionic/components/app/test/native/pages/device-motion.ts b/ionic/components/app/test/native/pages/device-motion.ts deleted file mode 100644 index a55ecca6bf..0000000000 --- a/ionic/components/app/test/native/pages/device-motion.ts +++ /dev/null @@ -1,47 +0,0 @@ -import {IonicView, DeviceMotion} from 'ionic/ionic'; - - -@IonicView({ - template: ` - - - Device Motion - - - -
- x: {{accel.x}}
- y: {{accel.y}}
- z: {{accel.z}}
-
- -
- x: {{accelTrack.x}}
- y: {{accelTrack.y}}
- z: {{accelTrack.z}}
-
-
- ` -}) -export class DeviceMotionPage { - doDeviceMotion() { - let device = DeviceMotion.getCurrentAcceleration().then((resp) => { - console.log('Device motion', resp); - this.accel = resp.accelerationIncludingGravity; - }, (err) => { - console.log('Device err', err); - }); - console.log('Got device', device); - } - doDeviceMotionWatch() { - let device = DeviceMotion.watchAcceleration().source.subscribe((resp) => { - console.log('Device motion track', resp); - this.accelTrack = resp.accelerationIncludingGravity; - }, (err) => { - console.log('Device err', err); - }); - console.log('Got device', device); - } -} diff --git a/ionic/components/app/test/native/pages/device-orientation.ts b/ionic/components/app/test/native/pages/device-orientation.ts deleted file mode 100644 index 78158798cd..0000000000 --- a/ionic/components/app/test/native/pages/device-orientation.ts +++ /dev/null @@ -1,33 +0,0 @@ -import {IonicView, DeviceOrientation} from 'ionic/ionic'; - -import {CSS} from 'ionic/util/dom'; - -import {NgStyle, forwardRef, Host, Component, View, ElementRef} from 'angular2/angular2'; - -@IonicView({ - template: ` - - - Device Orientation - - -
-
- ` -}) -export class DeviceOrientationPage { - constructor() { - this.imageStyle = { - } - } - onInit() { - let device = DeviceOrientation.watchHeading().source.subscribe((resp) => { - this.orientation = resp; - this.imageStyle['-webkit-transform'] = 'rotate(' + (resp.alpha || 100) + 'deg)'; - }, (err) => { - console.log('Device err', err); - }); - } -} diff --git a/ionic/components/app/test/native/pages/device.ts b/ionic/components/app/test/native/pages/device.ts deleted file mode 100644 index 45f2e2c536..0000000000 --- a/ionic/components/app/test/native/pages/device.ts +++ /dev/null @@ -1,26 +0,0 @@ -import {IonicView, Device} from 'ionic/ionic'; - - -@IonicView({ - template: ` - - - Vibration - - -

Device

- -
-
-
- ` -}) -export class DevicePage { - - doDevice() { - let device = Device.getDevice(); - console.log('Got device', device); - } -} diff --git a/ionic/components/app/test/sink/main.html b/ionic/components/app/test/sink/main.html deleted file mode 100644 index d2382f9380..0000000000 --- a/ionic/components/app/test/sink/main.html +++ /dev/null @@ -1,22 +0,0 @@ - - Ionic 2.0 - - - - {{c.title}} - - - - - - - -