Skip to content

Commit

Permalink
automatic-commit-alias
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianobapo committed Feb 10, 2017
0 parents commit 392ac3a
Show file tree
Hide file tree
Showing 98 changed files with 2,306 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
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
34 changes: 34 additions & 0 deletions .gitignore
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# delivery-v3
37 changes: 37 additions & 0 deletions config.xml
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>
6 changes: 6 additions & 0 deletions ionic.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "delivery-v3",
"app_id": "",
"v2": true,
"typescript": true
}
53 changes: 53 additions & 0 deletions package.json
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"
}
Binary file added 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 added 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 added 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 added 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 added 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 added 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.
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.
Binary file added resources/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 added resources/ios/icon/icon-40.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 added resources/ios/icon/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/ios/icon/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/ios/icon/icon-50.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 added resources/ios/icon/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/ios/icon/icon-60.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 added resources/ios/icon/[email protected]
Binary file added resources/ios/icon/[email protected]
Binary file added resources/ios/icon/icon-72.png
Binary file added resources/ios/icon/[email protected]
Binary file added resources/ios/icon/icon-76.png
Binary file added resources/ios/icon/[email protected]
Binary file added resources/ios/icon/[email protected]
Binary file added resources/ios/icon/icon-small.png
Binary file added resources/ios/icon/[email protected]
Binary file added resources/ios/icon/[email protected]
Binary file added resources/ios/icon/icon.png
Binary file added resources/ios/icon/[email protected]
Binary file added resources/ios/splash/Default-568h@2x~iphone.png
Binary file added resources/ios/splash/Default-667h.png
Binary file added resources/ios/splash/Default-736h.png
Binary file added resources/ios/splash/Default-Landscape-736h.png
Binary file added resources/ios/splash/Default-Landscape~ipad.png
Binary file added resources/ios/splash/Default-Portrait@2x~ipad.png
Binary file added resources/ios/splash/Default-Portrait~ipad.png
Binary file added resources/ios/splash/Default@2x~iphone.png
Binary file added resources/ios/splash/Default~iphone.png
Binary file added resources/splash.png
35 changes: 35 additions & 0 deletions src/app/app.component.ts
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);
});
}
}
1 change: 1 addition & 0 deletions src/app/app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<ion-nav [root]="rootPage"></ion-nav>
36 changes: 36 additions & 0 deletions src/app/app.module.ts
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 {
}
34 changes: 34 additions & 0 deletions src/app/app.scss
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;
}
8 changes: 8 additions & 0 deletions src/app/main.ts
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 added src/assets/icon/favicon.ico
Binary file not shown.
12 changes: 12 additions & 0 deletions src/components/loading-indicator/loading-indicator.html
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>
3 changes: 3 additions & 0 deletions src/components/loading-indicator/loading-indicator.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
loading-indicator {

}
40 changes: 40 additions & 0 deletions src/components/loading-indicator/loading-indicator.ts
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
}

}
15 changes: 15 additions & 0 deletions src/config/cleancss.config.js
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

};
13 changes: 13 additions & 0 deletions src/config/closure.config.js
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
};
25 changes: 25 additions & 0 deletions src/config/copy.config.js
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'
}
}
Loading

0 comments on commit 392ac3a

Please sign in to comment.