Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "hermes-4dc8c"
}
}
40 changes: 40 additions & 0 deletions GoogleService-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AD_UNIT_ID_FOR_BANNER_TEST</key>
<string>ca-app-pub-3940256099942544/2934735716</string>
<key>AD_UNIT_ID_FOR_INTERSTITIAL_TEST</key>
<string>ca-app-pub-3940256099942544/4411468910</string>
<key>CLIENT_ID</key>
<string>331854874035-g6d1s5uigm57g28t0v3irdjd43eh3g6h.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.331854874035-g6d1s5uigm57g28t0v3irdjd43eh3g6h</string>
<key>API_KEY</key>
<string>AIzaSyANDnEywArZMX3YzWR6LHVQpFJ6x0sp1U4</string>
<key>GCM_SENDER_ID</key>
<string>331854874035</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>io.ionic.starter</string>
<key>PROJECT_ID</key>
<string>hermes-4dc8c</string>
<key>STORAGE_BUCKET</key>
<string>hermes-4dc8c.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<true></true>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<false></false>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:331854874035:ios:764d2cb7da3280eb</string>
<key>DATABASE_URL</key>
<string>https://hermes-4dc8c.firebaseio.com</string>
</dict>
</plist>
6 changes: 5 additions & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
</platform>
<engine name="ios" spec="4.5.4" />
<engine name="browser" spec="5.0.1" />
<engine name="android" spec="6.3.0" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
Expand All @@ -91,4 +90,9 @@
<variable name="LOCATION_WHEN_IN_USE_DESCRIPTION" value="Show your location on the map" />
<variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="Trace your location on the map" />
</plugin>
<plugin name="cordova-plugin-email-composer" spec="^0.8.11" />
<plugin name="cordova-plugin-fcm" spec="^2.1.2" />
<plugin name="cordova-plugin-geolocation" spec="^3.0.0">
<variable name="GEOLOCATION_USAGE_DESCRIPTION" value="" />
</plugin>
</widget>
1 change: 1 addition & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
30 changes: 30 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"@angular/platform-browser": "5.0.3",
"@angular/platform-browser-dynamic": "5.0.3",
"@ionic-native/core": "4.4.0",
"@ionic-native/email-composer": "^4.5.2",
"@ionic-native/fcm": "^4.5.2",
"@ionic-native/geolocation": "^4.5.2",
"@ionic-native/google-maps": "^4.5.0",
"@ionic-native/splash-screen": "4.4.0",
"@ionic-native/status-bar": "4.4.0",
Expand All @@ -29,8 +32,11 @@
"angularfire2": "^5.0.0-rc.4",
"cordova-android": "6.3.0",
"cordova-browser": "5.0.1",
"cordova-ios": "4.5.4",
"cordova-ios": "^4.5.4",
"cordova-plugin-device": "^1.1.7",
"cordova-plugin-email-composer": "^0.8.11",
"cordova-plugin-fcm": "^2.1.2",
"cordova-plugin-geolocation": "^3.0.0",
"cordova-plugin-googlemaps": "^2.1.1",
"cordova-plugin-googlemaps-sdk": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk.git",
"cordova-plugin-ionic-webview": "^1.1.16",
Expand Down Expand Up @@ -61,12 +67,16 @@
"API_KEY_FOR_IOS": "AIzaSyCRvSDB4wKhvNRd-qGyLCkar6OwlbCxjao",
"LOCATION_WHEN_IN_USE_DESCRIPTION": "Show your location on the map",
"LOCATION_ALWAYS_USAGE_DESCRIPTION": "Trace your location on the map"
},
"cordova-plugin-email-composer": {},
"cordova-plugin-fcm": {},
"cordova-plugin-geolocation": {
"GEOLOCATION_USAGE_DESCRIPTION": ""
}
},
"platforms": [
"ios",
"browser",
"android"
]
}
}
}
Binary file modified resources/android/icon/drawable-hdpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/icon/drawable-ldpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/icon/drawable-mdpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/icon/drawable-xhdpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/icon/drawable-xxhdpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/icon/drawable-xxxhdpi-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-land-hdpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-land-ldpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-land-mdpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-land-xhdpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-land-xxhdpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-land-xxxhdpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-port-hdpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-port-ldpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-port-mdpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-port-xhdpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-port-xxhdpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/android/splash/drawable-port-xxxhdpi-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/splash/Default-568h@2x~iphone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/splash/Default-667h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/splash/Default-736h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/splash/Default-Landscape-736h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/splash/Default-Landscape@2x~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/splash/Default-Landscape@~ipadpro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/splash/Default-Landscape~ipad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/ios/splash/Default-Portrait@2x~ipad.png
Binary file modified resources/ios/splash/Default-Portrait@~ipadpro.png
Binary file modified resources/ios/splash/Default-Portrait~ipad.png
Binary file modified resources/ios/splash/Default@2x~iphone.png
Binary file modified resources/ios/splash/Default@2x~universal~anyany.png
Binary file modified resources/ios/splash/Default~iphone.png
Binary file modified resources/splash.png
2 changes: 1 addition & 1 deletion resources/splash.png.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c7e6ac22a7a198bda7a3cfa8ade32750
7e92f53bf21c5209eba6dde7766dfd95
6 changes: 4 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { SplashScreen } from '@ionic-native/splash-screen';
import { AngularFireAuth } from 'angularfire2/auth';
import { AlertController } from 'ionic-angular';
import { PagamentoPage } from '../pages/pagamento/pagamento';
import { ContatoPage } from '../pages/contato/contato';
import { HomePage } from '../pages/home/home';
import { ListPage } from '../pages/list/list';
import { LoginPage } from '../pages/login/login';
Expand Down Expand Up @@ -33,7 +34,8 @@ export class MyApp {
this.pages = [
{ title: 'Tela Inicial', component: HomePage, icon: 'home' },
{ title: 'Histórico', component: ListPage, icon: 'pin' },
{ title: 'Pagamento', component: PagamentoPage, icon: 'cash' }
{ title: 'Pagamento', component: PagamentoPage, icon: 'cash' },
{ title: 'Contato', component:ContatoPage, icon: 'people' },

];

Expand Down Expand Up @@ -95,7 +97,7 @@ export class MyApp {
doPromptContato() {
let alert = this.Alert.create({
title: '&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbspCONTATO',
subTitle: '<p>TELEFONE:<br>199957962 <br/> <br>E-MAIL: [email protected]</p><br><br> Equipe Smart Security.',
subTitle: '<p>TELEFONE:<br>(71)999957962 <br/> <br>E-MAIL: [email protected]</p><br><br> Equipe Smart Security.',

buttons: [
{
Expand Down
39 changes: 37 additions & 2 deletions src/app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,51 @@
<ion-icon [name]="p.icon" item-left></ion-icon>
{{p.title}}
</button>
<ion-item >
<ion-icon name="ios-radio" item-left></ion-icon>

<ion-label>Ativar Alarme</ion-label>
<ion-toggle [(ngModel)]="o"></ion-toggle>
</ion-item>

<!--<button menuClose ion-item (click)="doPrompt()">Insira seu Smart Code
<ion-icon name="lock" item-left></ion-icon>
</button>
-->
<button menuClose ion-item (click)="doPromptContato()">Fale Conosco
<!-- <button menuClose ion-item (click)="doPromptContato()">Fale Conosco
<ion-icon name="people" item-left></ion-icon>
</button>
-->
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>

<!--<button menuClose ion-item (click)="openPage(ContatoPage)">Contato
<ion-icon name="people" item-left></ion-icon>
</button>

-->
</ion-list>


<div class="footer">
<button menuClose ion-item (click)="logout()">Logout


<button menuClose ion-item (click)="logout()">Sair
<ion-icon name="exit" item-left></ion-icon>
</button>
</div>
Expand Down
7 changes: 6 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { ListPage } from '../pages/list/list';
import { ListDetailPage } from '../pages/list-detail/list-detail';
import { LoginPage } from '../pages/login/login';
import { PagamentoPage } from '../pages/pagamento/pagamento';
import { ContatoPage } from '../pages/contato/contato';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
Expand All @@ -20,6 +21,7 @@ import { environment } from '../environment/environment';
import { GoogleMaps } from '@ionic-native/google-maps';

import { UsersProvider } from '../providers/users/users';
import { EmailProvider } from '../providers/email/email';

@NgModule({
declarations: [
Expand All @@ -28,6 +30,7 @@ import { UsersProvider } from '../providers/users/users';
HomePage,
ListPage,
PagamentoPage,
ContatoPage,
ListDetailPage
],
imports: [
Expand All @@ -43,6 +46,7 @@ import { UsersProvider } from '../providers/users/users';
HomePage,
ListPage,
PagamentoPage,
ContatoPage,
ListDetailPage
],
providers: [
Expand All @@ -51,7 +55,8 @@ import { UsersProvider } from '../providers/users/users';
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler},
UsersProvider
UsersProvider,
EmailProvider
]
})
export class AppModule {}
33 changes: 33 additions & 0 deletions src/pages/contato/contato.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<ion-header>

<ion-navbar>
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>Contato</ion-title>
</ion-navbar>

</ion-header>
<ion-content>
<ion-label>Mensagem</ion-label>
<label class="item item-input text">
<textarea style="width:100%" placeholder="Digite aqui sua mensagem" rows="7" ng-model="email.body" ng-Required="true" name="description"></textarea>
</label>
<button ion-button type="submit" block ng-click="sendEmail()" style="background-color: #00008B; width: 45%; margin: auto;">
ENVIAR
</button>

<br>
<br>
<ion-label>
<ion-icon item-left name="phone-portrait">
</ion-icon> (71)999957962
</ion-label>

<ion-label>
<ion-icon name="mail" item-left>
</ion-icon> [email protected]
</ion-label>
<br>
<ion-label>Equipe Smart Security</ion-label>
</ion-content>
15 changes: 15 additions & 0 deletions src/pages/contato/contato.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
//import { EmailComposer } from '@ionic-native/email-composer';
@Component({
selector: 'page-list',
templateUrl: 'contato.html'
})
export class ContatoPage {
constructor(
public navCtrl: NavController,
//private _EMAIL: EmailComposer,
) {}


}
2 changes: 1 addition & 1 deletion src/pages/home/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</ion-navbar >
</ion-header>
<ion-content>
<div #map id="map" style="width: 100%; max-height: 560px">
<div #map id="map" style="width: 100%; max-height: 620px">
</div>
<ion-footer no-border style="padding-left: 52px;height:68px;">

Expand Down
3 changes: 3 additions & 0 deletions src/pages/pagamento/pagamento.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
</button>
<ion-title>Pagamento</ion-title>
</ion-navbar>
<button>
<input type='image' name='submit' src='https://desenvolvedor.moip.com.br/sandbox/imgs/buttons/bt_pagar_c02_e04.png' alt='Pagar via Moip' border='0' />
</button>

</ion-header>
4 changes: 4 additions & 0 deletions src/pages/pagamento/pagamento.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { Http, Headers, RequestOptions } from '@angular/http';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/toPromise';
@Component({
selector: 'page-list',
templateUrl: 'pagamento.html'
Expand All @@ -8,4 +11,5 @@ export class PagamentoPage {
constructor(
public navCtrl: NavController,
) {}

}
17 changes: 17 additions & 0 deletions src/providers/email/email.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

/*
Generated class for the EmailProvider provider.

See https://angular.io/guide/dependency-injection for more info on providers
and Angular DI.
*/
@Injectable()
export class EmailProvider {

constructor(public http: HttpClient) {
console.log('Hello EmailProvider Provider');
}

}