-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 392ac3a
Showing
98 changed files
with
2,306 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Specifies intentionally untracked files to ignore when using Git | ||
# http://git-scm.com/docs/gitignore | ||
|
||
*~ | ||
*.sw[mnpcod] | ||
*.log | ||
*.tmp | ||
*.tmp.* | ||
log.txt | ||
*.sublime-project | ||
*.sublime-workspace | ||
.vscode/ | ||
npm-debug.log* | ||
|
||
.idea/ | ||
.sass-cache/ | ||
.tmp/ | ||
.versions/ | ||
coverage/ | ||
dist/ | ||
node_modules/ | ||
tmp/ | ||
temp/ | ||
hooks/ | ||
platforms/ | ||
plugins/ | ||
plugins/android.json | ||
plugins/ios.json | ||
www/ | ||
$RECYCLE.BIN/ | ||
|
||
.DS_Store | ||
Thumbs.db | ||
UserInterfaceState.xcuserstate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# delivery-v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<widget id="com.ionicframework.deliveryv3418176" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | ||
<name>delivery-v3</name> | ||
<description>An awesome Ionic/Cordova app.</description> | ||
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</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:*"/> | ||
<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="SplashMaintainAspectRatio" value="true"/> | ||
<preference name="FadeSplashScreenDuration" value="300"/> | ||
<feature name="StatusBar"> | ||
<param name="ios-package" onload="true" value="CDVStatusBar"/> | ||
</feature> | ||
<plugin name="ionic-plugin-keyboard" spec="~2.2.1"/> | ||
<plugin name="cordova-plugin-whitelist" spec="1.3.1"/> | ||
<plugin name="cordova-plugin-console" spec="1.0.5"/> | ||
<plugin name="cordova-plugin-statusbar" spec="2.2.1"/> | ||
<plugin name="cordova-plugin-device" spec="1.1.4"/> | ||
<plugin name="cordova-plugin-splashscreen" spec="~4.0.1"/> | ||
</widget> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "delivery-v3", | ||
"app_id": "", | ||
"v2": true, | ||
"typescript": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name": "ionic-hello-world", | ||
"author": "Ionic Framework", | ||
"homepage": "http://ionicframework.com/", | ||
"private": true, | ||
"scripts": { | ||
"clean": "ionic-app-scripts clean", | ||
"build": "ionic-app-scripts build", | ||
"minify": "ionic-app-scripts minify", | ||
"watch": "ionic-app-scripts watch", | ||
"ionic:build": "ionic-app-scripts build", | ||
"ionic:serve": "ionic-app-scripts serve" | ||
}, | ||
"dependencies": { | ||
"@angular/common": "2.2.1", | ||
"@angular/compiler": "2.2.1", | ||
"@angular/compiler-cli": "2.2.1", | ||
"@angular/core": "2.2.1", | ||
"@angular/forms": "2.2.1", | ||
"@angular/http": "2.2.1", | ||
"@angular/platform-browser": "2.2.1", | ||
"@angular/platform-browser-dynamic": "2.2.1", | ||
"@angular/platform-server": "2.2.1", | ||
"@ionic/storage": "1.1.7", | ||
"ionic-angular": "2.0.0-rc.4", | ||
"ionic-native": "2.2.11", | ||
"ionicons": "3.0.0", | ||
"rxjs": "5.0.0-beta.12", | ||
"sw-toolbox": "^3.4.0", | ||
"zone.js": "0.6.26" | ||
}, | ||
"devDependencies": { | ||
"@ionic/app-scripts": "^1.0.0", | ||
"font-awesome": "^4.7.0", | ||
"typescript": "2.0.9" | ||
}, | ||
"cordovaPlugins": [ | ||
"cordova-plugin-whitelist", | ||
"cordova-plugin-statusbar", | ||
"cordova-plugin-device", | ||
"cordova-plugin-console", | ||
"cordova-plugin-splashscreen", | ||
"ionic-plugin-keyboard" | ||
], | ||
"cordovaPlatforms": [ | ||
{ | ||
"platform": "android", | ||
"version": "", | ||
"locator": "android" | ||
} | ||
], | ||
"description": "delivery-v3: An Ionic project" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import {Component} from '@angular/core'; | ||
import {Platform} from 'ionic-angular'; | ||
import {StatusBar, Splashscreen} from 'ionic-native'; | ||
|
||
import {HomePage} from '../pages/home/home'; | ||
|
||
import {DataService} from '../providers/data-service'; | ||
import {LogService} from '../providers/log-service'; | ||
import {CartService} from '../providers/cart-service'; | ||
import {ProductService} from "../providers/product-service"; | ||
import {CategoriesService} from "../providers/categories-service"; | ||
import {CepService} from "../providers/cep-service"; | ||
|
||
@Component({ | ||
templateUrl: 'app.html', | ||
providers: [DataService, LogService, CepService, CartService, CategoriesService, ProductService] | ||
}) | ||
export class MyApp { | ||
rootPage = HomePage; | ||
|
||
constructor(platform: Platform, log: LogService) { | ||
platform.ready() | ||
.then(() => { | ||
// Okay, so the platform is ready and our plugins are available. | ||
// Here you can do any higher level native things you might need. | ||
if (platform.is('cordova')){ | ||
StatusBar.styleDefault(); | ||
Splashscreen.hide(); | ||
} | ||
}) | ||
.catch((error) => { | ||
log.e('Promise error:', error); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<ion-nav [root]="rootPage"></ion-nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import {NgModule, ErrorHandler} from '@angular/core'; | ||
import {IonicApp, IonicModule, IonicErrorHandler} from 'ionic-angular'; | ||
import {MyApp} from './app.component'; | ||
import {HomePage} from '../pages/home/home'; | ||
import {ProductPage} from "../pages/product/product"; | ||
import {CartPage} from "../pages/cart/cart"; | ||
import {HintPopoverPage} from "../pages/hint-popover/hint-popover"; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
MyApp, | ||
HomePage, | ||
ProductPage, | ||
CartPage, | ||
HintPopoverPage | ||
], | ||
imports: [ | ||
IonicModule.forRoot(MyApp, { | ||
// tabsPlacement: 'top', | ||
backButtonText: '' | ||
}) | ||
], | ||
bootstrap: [IonicApp], | ||
entryComponents: [ | ||
MyApp, | ||
HomePage, | ||
ProductPage, | ||
CartPage, | ||
HintPopoverPage | ||
], | ||
providers: [ | ||
{provide: ErrorHandler, useClass: IonicErrorHandler} | ||
] | ||
}) | ||
export class AppModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// http://ionicframework.com/docs/v2/theming/ | ||
|
||
|
||
// App Global Sass | ||
// -------------------------------------------------- | ||
// Put style rules here that you want to apply globally. These | ||
// styles are for the entire app and not just one component. | ||
// Additionally, this file can be also used as an entry point | ||
// to import other Sass files to be included in the output CSS. | ||
// | ||
// Shared Sass variables, which can be used to adjust Ionic's | ||
// default Sass variables, belong in "theme/variables.scss". | ||
// | ||
// To declare rules for a specific mode, create a child rule | ||
// for the .md, .ios, or .wp mode classes. The mode class is | ||
// automatically applied to the <body> element in the app. | ||
|
||
// Font Awesome | ||
$fa-font-path: '/assets/fonts'; | ||
@import "node_modules/font-awesome/scss/font-awesome"; | ||
|
||
.title-ios{ | ||
padding: 0 12px 1px !important; | ||
position: inherit !important; | ||
> div { | ||
text-align: left !important; | ||
} | ||
} | ||
|
||
.inputError{ | ||
color: red!important; | ||
font-size: small; | ||
font-style: italic; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
|
||
import { AppModule } from './app.module'; | ||
|
||
// import {enableProdMode} from "@angular/core"; | ||
// enableProdMode(); | ||
|
||
platformBrowserDynamic().bootstrapModule(AppModule); |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- | ||
Generated template for the LoadingIndicator component. | ||
See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html | ||
for more info on Angular 2 Components. | ||
--> | ||
|
||
<div [style.visibility]="isLoading ? 'visible': 'hidden'" class="loading-indicator-container"> | ||
<div class="bullet-one"></div> | ||
<div class="bullet-two"></div> | ||
<div class="bullet-three"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
loading-indicator { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import {Component, OnInit, OnDestroy} from '@angular/core'; | ||
import {LoadingService} from "../../providers/loading-service"; | ||
|
||
/* | ||
Generated class for the LoadingIndicator component. | ||
See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html | ||
for more info on Angular 2 Components. | ||
*/ | ||
@Component({ | ||
selector: 'loading-indicator', | ||
templateUrl: 'loading-indicator.html' | ||
}) | ||
export class LoadingIndicatorComponent implements OnInit, OnDestroy { | ||
private isLoading = false; | ||
private subscription: any; | ||
|
||
constructor(public loadingService: LoadingService) { | ||
console.log('Hello LoadingIndicator Component'); | ||
} | ||
|
||
ngOnInit() { | ||
this.subscription = this.loadingService.loading$.subscribe(loading => this.showOrHideLoadingIndicator(loading)); | ||
} | ||
|
||
ngOnDestroy() { | ||
this.subscription.unsubscribe(); | ||
} | ||
|
||
showOrHideLoadingIndicator(loading) { | ||
this.isLoading = loading; | ||
if (this.isLoading) this.playLoadingAnimation(); | ||
//else cancel the animation? | ||
} | ||
|
||
playLoadingAnimation() { | ||
//this will be your implementation to start the loading animation | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
// https://www.npmjs.com/package/clean-css | ||
|
||
module.exports = { | ||
/** | ||
* sourceFileName: the file name of the src css file | ||
*/ | ||
sourceFileName: process.env.IONIC_OUTPUT_CSS_FILE_NAME, | ||
|
||
/** | ||
* destFileName: the file name for the generated minified file | ||
*/ | ||
destFileName: process.env.IONIC_OUTPUT_CSS_FILE_NAME | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
// https://developers.google.com/closure/compiler/docs/gettingstarted_app | ||
|
||
module.exports = { | ||
|
||
/** | ||
* pathToJavaExecutable: The absolute path to the java executable | ||
* Note: if the executable is on the OS's PATH, often times | ||
* `java` will suffice. Verify by running `java --version` | ||
*/ | ||
pathToJavaExecutable: 'java', | ||
pathToClosureJar: process.env.IONIC_CLOSURE_JAR | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// this is a custom dictionary to make it easy to extend/override | ||
// provide a name for an entry, it can be anything such as 'copyAssets' or 'copyFonts' | ||
// then provide an object with a `src` array of globs and a `dest` string | ||
module.exports = { | ||
// copyAssets: { | ||
// src: ['{{SRC}}/assets/**/*'], | ||
// dest: '{{WWW}}/assets' | ||
// }, | ||
// copyIndexContent: { | ||
// src: ['{{SRC}}/index.html', '{{SRC}}/manifest.json', '{{SRC}}/service-worker.js'], | ||
// dest: '{{WWW}}' | ||
// }, | ||
// copyFonts: { | ||
// src: ['{{ROOT}}/node_modules/ionicons/dist/fonts/**/*', '{{ROOT}}/node_modules/ionic-angular/fonts/**/*'], | ||
// dest: '{{WWW}}/assets/fonts' | ||
// }, | ||
// copyPolyfills: { | ||
// src: ['{{ROOT}}/node_modules/ionic-angular/polyfills/polyfills.js'], | ||
// dest: '{{BUILD}}' | ||
// } | ||
copyFontsFontAwesome: { | ||
src: '{{ROOT}}/node_modules/font-awesome/fonts/**/*', | ||
dest: '{{WWW}}/assets/fonts' | ||
} | ||
} |
Oops, something went wrong.