Skip to content

Commit

Permalink
WIP migration fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
webprofusion-chrisc committed Oct 18, 2016
1 parent e575fd9 commit 7cdd2f8
Show file tree
Hide file tree
Showing 16 changed files with 180 additions and 165 deletions.
90 changes: 45 additions & 45 deletions App/Ionic2/ocm-app/config.xml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.webprofusion.openchargemap" version="6.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Open Charge Map</name>
<description>EV Charging Locations</description>
<author email="[email protected]" href="http://webprofusion.com/">Webprofusion</author>
<content src="index.html"/>
<access origin="*"/>
<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
<allow-intent href="tel:*"/>
<allow-intent href="sms:*"/>
<allow-intent href="mailto:*"/>
<allow-intent href="geo:*"/>
<allow-intent href="maps:*"/>
<allow-navigation href="gap:*"/>
<platform name="android">
<allow-intent href="market:*"/>
</platform>
<platform name="ios">
<allow-intent href="itms:*"/>
<allow-intent href="itms-apps:*"/>
</platform>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="android-minSdkVersion" value="16"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="windows-target-version" value="10.0"/>
<preference name="SplashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="3000"/>
<preference name="FadeSplashScreenDuration" value="2000"/>
<preference name="loadUrlTimeoutValue" value="700000"/>
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar"/>
</feature>
<icon src="resources\android\icon\drawable-xhdpi-icon.png"/>
<engine name="android" spec="~5.1.1"/>
<engine name="ios" spec="~4.1.1"/>
<plugin name="cordova-plugin-inappbrowser" spec="~1.4.0"/>
<plugin name="cordova-plugin-whitelist" spec="~1.3.0"/>
<plugin name="cordova-plugin-device" spec="~1.1.3"/>
<plugin name="cordova-plugin-geolocation" spec="~2.2.0"/>
<plugin name="cordova-plugin-statusbar" spec="~2.2.0"/>
<plugin name="ionic-plugin-keyboard" spec="~2.2.1"/>
<plugin name="cordova-plugin-splashscreen" spec="~4.0.0"/>
</widget>
<name>Open Charge Map</name>
<description>EV Charging Locations</description>
<author email="[email protected]" href="http://webprofusion.com/">Webprofusion</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-intent href="maps:*" />
<allow-navigation href="gap:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="16" />
<preference name="BackupWebStorage" value="none" />
<preference name="windows-target-version" value="10.0" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="FadeSplashScreenDuration" value="2000" />
<preference name="loadUrlTimeoutValue" value="700000" />
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" />
</feature>
<icon src="resources\android\icon\drawable-xhdpi-icon.png" />
<engine name="android" spec="~5.1.1" />
<engine name="ios" spec="~4.1.1" />
<plugin name="cordova-plugin-inappbrowser" spec="~1.4.0" />
<plugin name="cordova-plugin-geolocation" spec="~2.2.0" />
<plugin name="cordova-plugin-statusbar" spec="~2.2.0" />
<plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
<plugin name="cordova-plugin-whitelist" spec="~1.3.0" />
<plugin name="cordova-plugin-device" spec="~1.1.3" />
<plugin name="cordova-plugin-splashscreen" spec="~4.0.0" />
</widget>
15 changes: 9 additions & 6 deletions App/Ionic2/ocm-app/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { GoogleMapsDirections } from './../providers/GoogleMapsDirections';
import { ReferenceDataManager } from './../providers/ReferenceDataManager';
import { SubmissionQueue } from './../providers/SubmissionQueue';
import { APIClient } from './../providers/APIClient';
import { Http } from '@angular/http';
import { Http, HttpModule } from '@angular/http';
import { Mapping } from './../providers/mapping/Mapping';
import { POIManager } from './../providers/POIManager';
import { DecimalPipe } from '@angular/common';
Expand All @@ -27,7 +27,8 @@ import { IonicApp, IonicModule, Events } from 'ionic-angular';
import { MyApp } from './app.component';

import { TabsPage } from '../pages/tabs/tabs';
import { TranslateService, TranslateLoader, TranslateStaticLoader, TranslateModule } from 'ng2-translate';
import {TranslateModule } from 'ng2-translate/ng2-translate';
import { TranslateService, TranslateLoader, TranslateStaticLoader } from 'ng2-translate/src/translate.service';

import {NullableTranslatePipe} from '../pipes/NullableTranslatePipe';
export function createTranslateLoader(http: Http) {
Expand All @@ -38,6 +39,7 @@ export function createTranslateLoader(http: Http) {

@NgModule({
declarations: [
MyApp,
//pages
CommentPage,
FavouriteEditorPage,
Expand All @@ -53,15 +55,17 @@ export function createTranslateLoader(http: Http) {
//components
PlaceSearch,
PoiDetails,
RoutePlanner,
RoutePlanner
//pipes
NullableTranslatePipe

],
imports: [
IonicModule.forRoot(MyApp),

HttpModule,
TranslateModule.forRoot({
provide: TranslateLoader,
useFactory: (createTranslateLoader),
useFactory: createTranslateLoader,
deps: [Http]
})
],
Expand All @@ -88,7 +92,6 @@ export function createTranslateLoader(http: Http) {
POIManager,
Mapping,
Events,
TranslateService,
APIClient,
SubmissionQueue,
JourneyManager,
Expand Down
17 changes: 8 additions & 9 deletions App/Ionic2/ocm-app/src/components/place-search/place-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Logging } from './../../providers/Logging';
import { PlaceSearchResult } from './../../model/PlaceSearchResult';
import { Component, Input, Output, ChangeDetectorRef, EventEmitter } from '@angular/core';

declare var google:any;
declare var google: any;
/*
Component to provide geographic place search lookup
*/
Expand All @@ -12,17 +12,15 @@ declare var google:any;
})
export class PlaceSearch {

private placeSearchType: string;
private placeList: Array<PlaceSearchResult>;
private searchInProgress: boolean = false;

@Input()
searchKeyword: string;

placeSearchFocused: boolean;

private placeSearchType: string;

private placeList: Array<PlaceSearchResult>;
private placeSearchActive: boolean = false;

private searchInProgress: boolean = false;
placeSearchActive: boolean = false;

@Output()
selectedPlace: any;
Expand All @@ -31,7 +29,8 @@ export class PlaceSearch {
placeChanged = new EventEmitter();

constructor(public logging: Logging, public changeDetector: ChangeDetectorRef) {

this.searchKeyword = "";
this.searchInProgress = false;
}


Expand Down
6 changes: 4 additions & 2 deletions App/Ionic2/ocm-app/src/components/poi-details/poi-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MediaUploadPage } from './../../pages/mediaupload/mediaupload';
import { CommentPage } from './../../pages/comment/comment';
import { Logging } from './../../providers/Logging';
import { AppManager } from './../../providers/AppManager';
import { Component, Input, OnInit } from '@angular/core';
import { Component, Input, OnInit, SimpleChanges } from '@angular/core';
import { NavController, ViewController, ModalController, ActionSheetController } from 'ionic-angular';
import { TranslateService } from 'ng2-translate/ng2-translate';

Expand All @@ -19,6 +19,8 @@ export class PoiDetails implements OnInit {
selectedTab: string;
json: string;

hasNavBar: boolean = false;

constructor(
public appManager: AppManager,
public nav: NavController,
Expand All @@ -30,7 +32,7 @@ export class PoiDetails implements OnInit {

}

ngOnChanges() {
ngOnChanges(changes: SimpleChanges) {
this.logging.log("In ngOnChanges of POI Details");


Expand Down
16 changes: 10 additions & 6 deletions App/Ionic2/ocm-app/src/components/route-planner/route-planner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,21 @@ import { DecimalPipe } from '@angular/common';
})
export class RoutePlanner {


private routeStartPlace: any;
private routeDestinationPlace: any;
private routeSearchDistance: number = 5;
private journeyRoutes: Array<JourneyRoute>;
private selectedJourneyRoute: JourneyRoute;
selectedJourneyRoute: JourneyRoute;
private routePolyline: string;
private routeCalcInProgress: boolean = false;
private advancedSettingsMode: boolean = false;
private kWhPerKM: number;

routeStartPlace: any;
routeDestinationPlace: any;

routeCalcInProgress: boolean = false;
advancedSettingsMode: boolean = false;

routeStart:string="";
routeDestination:string="";

constructor(
public mapping: Mapping,
public directions: GoogleMapsDirections,
Expand Down
2 changes: 1 addition & 1 deletion App/Ionic2/ocm-app/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<link href="build/main.css" rel="stylesheet">

<link rel="stylesheet" href="lib/leaflet/leaflet.css" />
<link rel="stylesheet" href="assets/lib/leaflet/leaflet.css" />

<style>
.loading {
Expand Down
2 changes: 1 addition & 1 deletion App/Ionic2/ocm-app/src/model/Journey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface ISyncItem {
_sync: SyncItem;
}

class JourneyBaseItem implements ISyncItem {
export class JourneyBaseItem implements ISyncItem {
public Title: string;
public Notes: string;
public _sync: SyncItem;
Expand Down
2 changes: 1 addition & 1 deletion App/Ionic2/ocm-app/src/pages/comment/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>{{poi.AddressInfo.Title}}</h1>

<ion-item>
<ion-label stacked>Did You Successfully Charge?</ion-label>
<ion-select [(ngModel)]="commentModel.CheckStatusTypeID">
<ion-select [(ngModel)]="commentModel.CheckinStatusTypeID">
<ion-option *ngFor="let item of checkinTypes" [value]="item.ID" [selected]="false">{{item.Title}}</ion-option>
</ion-select>

Expand Down
1 change: 1 addition & 0 deletions App/Ionic2/ocm-app/src/pages/comment/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class CommentPage {

commentTypes: any;
checkinTypes: any;

constructor(
public navParams: NavParams,
public appManager: AppManager,
Expand Down
2 changes: 1 addition & 1 deletion App/Ionic2/ocm-app/src/pages/poi-details/poi-details.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ion-header>
<ion-navbar primary>
<ion-navbar color="primary">
<ion-title>
{{ 'ocm.details.sectionTitle' | translate }}
</ion-title>
Expand Down
3 changes: 2 additions & 1 deletion App/Ionic2/ocm-app/src/pages/poi-details/poi-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {NavController, NavParams, ViewController} from 'ionic-angular';

export class POIDetailsPage {

private poi: any;
poi: any;
hasNavbar:boolean=false;

constructor(
public nav: NavController,
Expand Down
9 changes: 5 additions & 4 deletions App/Ionic2/ocm-app/src/pages/route-planner/route-planner.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { NavController, ViewController } from 'ionic-angular';
import { RoutePlanner} from '../../components/route-planner/route-planner';
import { RoutePlanner } from '../../components/route-planner/route-planner';
/*
Generated class for the RoutePlannerPage page.
Expand All @@ -12,13 +12,14 @@ import { RoutePlanner} from '../../components/route-planner/route-planner';
})
export class RoutePlannerPage {

hasNavbar: boolean=false;
constructor(public nav: NavController, public view: ViewController) {

}

close() {
this.view.dismiss();
}
close() {
this.view.dismiss();
}


}
Loading

0 comments on commit 7cdd2f8

Please sign in to comment.