-
Notifications
You must be signed in to change notification settings - Fork 1
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 3e73465
Showing
67 changed files
with
775 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,13 @@ | ||
# Specifies files to intentionally ignore when using Git | ||
# http://git-scm.com/docs/gitignore | ||
|
||
node_modules/ | ||
typings/ | ||
www/build/ | ||
platforms/ | ||
plugins/ | ||
*.swp | ||
.DS_Store | ||
Thumbs.db | ||
.idea | ||
npm-debug.log |
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,22 @@ | ||
The MIT License (MIT) | ||
=============== | ||
|
||
Copyright © 2016 Gerrit Erpenstein <gerrit.erpenstein.dev@gmail.com> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the “Software”), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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 @@ | ||
## Temporary fix for *Ionic 2* beta.10 slides bug | ||
|
||
See: | ||
|
||
- [https://forum.ionicframework.com/t/ion-slide-not-work-correctly-in-beta-10/56026](https://forum.ionicframework.com/t/ion-slide-not-work-correctly-in-beta-10/56026) | ||
- [https://github.com/driftyco/ionic/issues/7089](https://github.com/driftyco/ionic/issues/7089) |
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 @@ | ||
import {Component} from '@angular/core'; | ||
import {Platform, ionicBootstrap} from 'ionic-angular'; | ||
import {StatusBar} from 'ionic-native'; | ||
import {SlidesPage} from './pages/slides/slides.page'; | ||
|
||
|
||
@Component({ | ||
template: '<ion-nav [root]="rootPage"></ion-nav>' | ||
}) | ||
export class MyApp { | ||
|
||
private rootPage:any; | ||
|
||
constructor(private platform:Platform) { | ||
this.rootPage = SlidesPage; | ||
|
||
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. | ||
StatusBar.styleDefault(); | ||
}); | ||
} | ||
} | ||
|
||
ionicBootstrap(MyApp); |
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,19 @@ | ||
<ion-header> | ||
<ion-navbar> | ||
<ion-title>Temporary slides fix</ion-title> | ||
</ion-navbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-slides #mySlider> | ||
<ion-slide> | ||
<h1>Slide 1</h1> | ||
</ion-slide> | ||
<ion-slide> | ||
<h1>Slide 2</h1> | ||
</ion-slide> | ||
<ion-slide> | ||
<h1>Slide 3</h1> | ||
</ion-slide> | ||
</ion-slides> | ||
</ion-content> |
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,24 @@ | ||
import {Component, ViewChild, ElementRef, OnInit} from '@angular/core' | ||
import {Slides} from 'ionic-angular'; | ||
import {waitRendered} from './util'; | ||
|
||
@Component({ | ||
templateUrl: 'build/pages/slides/slides.page.html' | ||
}) | ||
export class SlidesPage implements OnInit { | ||
|
||
@ViewChild('mySlider') | ||
private _slider:Slides; | ||
|
||
constructor(private _elementRef:ElementRef) { | ||
} | ||
|
||
public ngOnInit() { | ||
let swiperContainer = this._elementRef.nativeElement.getElementsByClassName('swiper-container')[0]; | ||
waitRendered(swiperContainer).then(()=>{ | ||
let swiper = this._slider.getSlider(); | ||
swiper.update(); | ||
}); | ||
} | ||
|
||
} |
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,18 @@ | ||
/** | ||
* Waits until the supplied HTML element is rendered by requesting animation frames and checking the element's width. | ||
* @param element The HTML element. | ||
* @returns {Promise<T>} A promise that resolves when the element is rendered. | ||
*/ | ||
export function waitRendered(element:HTMLElement):Promise<HTMLElement> { | ||
return new Promise((resolve) => { | ||
let checkNextFrame = () => { | ||
requestAnimationFrame(() => { | ||
if (element.clientWidth) | ||
resolve(element); | ||
else | ||
checkNextFrame(); | ||
}); | ||
}; | ||
checkNextFrame(); | ||
}); | ||
} |
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 @@ | ||
// http://ionicframework.com/docs/v2/theming/ | ||
|
||
|
||
// App Shared Imports | ||
// -------------------------------------------------- | ||
// These are the imports which make up the design of this app. | ||
// By default each design mode includes these shared imports. | ||
// App Shared Sass variables belong in app.variables.scss. |
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,31 @@ | ||
// http://ionicframework.com/docs/v2/theming/ | ||
|
||
|
||
// App Shared Variables | ||
// -------------------------------------------------- | ||
// Shared Sass variables go in the app.variables.scss file | ||
@import "app.variables"; | ||
|
||
|
||
// App iOS Variables | ||
// -------------------------------------------------- | ||
// iOS only Sass variables can go here | ||
|
||
|
||
// Ionic iOS Sass | ||
// -------------------------------------------------- | ||
// Custom App variables must be declared before importing Ionic. | ||
// Ionic will use its default values when a custom variable isn't provided. | ||
@import "ionic.ios"; | ||
|
||
|
||
// App Shared Sass | ||
// -------------------------------------------------- | ||
// All Sass files that make up this app goes into the app.core.scss file. | ||
// For simpler CSS overrides, custom app CSS must come after Ionic's CSS. | ||
@import "app.core"; | ||
|
||
|
||
// App iOS Only Sass | ||
// -------------------------------------------------- | ||
// CSS that should only apply to the iOS app |
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,31 @@ | ||
// http://ionicframework.com/docs/v2/theming/ | ||
|
||
|
||
// App Shared Variables | ||
// -------------------------------------------------- | ||
// Shared Sass variables go in the app.variables.scss file | ||
@import "app.variables"; | ||
|
||
|
||
// App Material Design Variables | ||
// -------------------------------------------------- | ||
// Material Design only Sass variables can go here | ||
|
||
|
||
// Ionic Material Design Sass | ||
// -------------------------------------------------- | ||
// Custom App variables must be declared before importing Ionic. | ||
// Ionic will use its default values when a custom variable isn't provided. | ||
@import "ionic.md"; | ||
|
||
|
||
// App Shared Sass | ||
// -------------------------------------------------- | ||
// All Sass files that make up this app goes into the app.core.scss file. | ||
// For simpler CSS overrides, custom app CSS must come after Ionic's CSS. | ||
@import "app.core"; | ||
|
||
|
||
// App Material Design Only Sass | ||
// -------------------------------------------------- | ||
// CSS that should only apply to the Material Design app |
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 @@ | ||
// http://ionicframework.com/docs/v2/theming/ | ||
|
||
// Ionic Shared Functions | ||
// -------------------------------------------------- | ||
// Makes Ionic Sass functions available to your App | ||
|
||
@import "globals.core"; | ||
|
||
// App Shared Variables | ||
// -------------------------------------------------- | ||
// To customize the look and feel of this app, you can override | ||
// the Sass variables found in Ionic's source scss files. Setting | ||
// variables before Ionic's Sass will use these variables rather than | ||
// Ionic's default Sass variable values. App Shared Sass imports belong | ||
// in the app.core.scss file and not this file. Sass variables specific | ||
// to the mode belong in either the app.ios.scss or app.md.scss files. | ||
|
||
|
||
// App Shared Color Variables | ||
// -------------------------------------------------- | ||
// It's highly recommended to change the default colors | ||
// to match your app's branding. Ionic uses a Sass map of | ||
// colors so you can add, rename and remove colors as needed. | ||
// The "primary" color is the only required color in the map. | ||
// Both iOS and MD colors can be further customized if colors | ||
// are different per mode. | ||
|
||
$colors: ( | ||
primary: #387ef5, | ||
secondary: #32db64, | ||
danger: #f53d3d, | ||
light: #f4f4f4, | ||
dark: #222, | ||
favorite: #69BB7B | ||
); |
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,31 @@ | ||
// http://ionicframework.com/docs/v2/theming/ | ||
|
||
|
||
// App Shared Variables | ||
// -------------------------------------------------- | ||
// Shared Sass variables go in the app.variables.scss file | ||
@import "app.variables"; | ||
|
||
|
||
// App Windows Variables | ||
// -------------------------------------------------- | ||
// Windows only Sass variables can go here | ||
|
||
|
||
// Ionic Windows Sass | ||
// -------------------------------------------------- | ||
// Custom App variables must be declared before importing Ionic. | ||
// Ionic will use its default values when a custom variable isn't provided. | ||
@import "ionic.wp"; | ||
|
||
|
||
// App Shared Sass | ||
// -------------------------------------------------- | ||
// All Sass files that make up this app goes into the app.core.scss file. | ||
// For simpler CSS overrides, custom app CSS must come after Ionic's CSS. | ||
@import "app.core"; | ||
|
||
|
||
// App Windows Only Sass | ||
// -------------------------------------------------- | ||
// CSS that should only apply to the Windows app |
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.myionic2project491926" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | ||
<name>MyIonic2Project</name> | ||
<description>An Ionic Framework and Cordova project.</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="SplashScreenDelay" value="2000"/> | ||
<preference name="FadeSplashScreenDuration" value="2000"/> | ||
<feature name="StatusBar"> | ||
<param name="ios-package" onload="true" value="CDVStatusBar"/> | ||
</feature> | ||
<plugin name="cordova-plugin-device" spec="~1.1.2"/> | ||
<plugin name="cordova-plugin-console" spec="~1.0.3"/> | ||
<plugin name="cordova-plugin-whitelist" spec="~1.2.2"/> | ||
<plugin name="cordova-plugin-splashscreen" spec="~3.2.2"/> | ||
<plugin name="cordova-plugin-statusbar" spec="~2.1.3"/> | ||
<plugin name="ionic-plugin-keyboard" spec="~2.2.1"/> | ||
</widget> |
Oops, something went wrong.