This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial starter project for Ionic2 RC0
- Loading branch information
Showing
74 changed files
with
548 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,39 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<widget id="com.ionicframework.ionic2363755" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | ||
<name>Ionic2</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="SplashScreenDelay" value="0"/> | ||
<preference name="FadeSplashScreen" value="false"/> | ||
<preference name="FadeSplashScreenDuration" value="0"/> | ||
<preference name="SplashScreenBackgroundColor" value="0xFFFFFFFF"/> | ||
<feature name="StatusBar"> | ||
<param name="ios-package" onload="true" value="CDVStatusBar"/> | ||
</feature> | ||
<plugin name="cordova-plugin-device" spec="^1.1.3"/> | ||
<plugin name="cordova-plugin-console" spec="^1.0.4"/> | ||
<plugin name="cordova-plugin-whitelist" spec="^1.3.0"/> | ||
<plugin name="cordova-plugin-splashscreen" spec="^4.0.0"/> | ||
<plugin name="cordova-plugin-statusbar" spec="^2.2.0"/> | ||
<plugin name="ionic-plugin-keyboard" spec="^2.2.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": "Ionic2", | ||
"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,35 @@ | ||
{ | ||
"name": "ionic-hello-world", | ||
"author": "Ionic Framework", | ||
"homepage": "http://ionicframework.com/", | ||
"private": true, | ||
"scripts": { | ||
"build": "ionic-app-scripts build", | ||
"watch": "ionic-app-scripts watch", | ||
"serve:before": "watch", | ||
"emulate:before": "build", | ||
"deploy:before": "build", | ||
"build:before": "build", | ||
"run:before": "build" | ||
}, | ||
"dependencies": { | ||
"ionic-angular": "^2.0.0-rc.0", | ||
"ionicons": "^3.0.0", | ||
"@ionic/storage": "^1.0.3", | ||
"ionic-native": "^2.0.3" | ||
}, | ||
"devDependencies": { | ||
"@ionic/app-scripts": "^0.0.23", | ||
"typescript": "^2.0.3" | ||
}, | ||
"description": "Ionic2: An Ionic project", | ||
"cordovaPlugins": [ | ||
"cordova-plugin-device", | ||
"cordova-plugin-console", | ||
"cordova-plugin-whitelist", | ||
"cordova-plugin-splashscreen", | ||
"cordova-plugin-statusbar", | ||
"ionic-plugin-keyboard" | ||
], | ||
"cordovaPlatforms": [] | ||
} |
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.
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,21 @@ | ||
import { Component } from '@angular/core'; | ||
import { Platform } from 'ionic-angular'; | ||
import { StatusBar } from 'ionic-native'; | ||
|
||
import { TabsPage } from '../pages/tabs/tabs'; | ||
|
||
|
||
@Component({ | ||
template: `<ion-nav [root]="rootPage"></ion-nav>` | ||
}) | ||
export class MyApp { | ||
rootPage = TabsPage; | ||
|
||
constructor(platform: Platform) { | ||
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(); | ||
}); | ||
} | ||
} |
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,30 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { IonicApp, IonicModule } from 'ionic-angular'; | ||
import { MyApp } from './app.component'; | ||
import { AboutPage } from '../pages/about/about'; | ||
import { ContactPage } from '../pages/contact/contact'; | ||
import { HomePage } from '../pages/home/home'; | ||
import { TabsPage } from '../pages/tabs/tabs'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
MyApp, | ||
AboutPage, | ||
ContactPage, | ||
HomePage, | ||
TabsPage | ||
], | ||
imports: [ | ||
IonicModule.forRoot(MyApp) | ||
], | ||
bootstrap: [IonicApp], | ||
entryComponents: [ | ||
MyApp, | ||
AboutPage, | ||
ContactPage, | ||
HomePage, | ||
TabsPage | ||
], | ||
providers: [] | ||
}) | ||
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,5 @@ | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
|
||
import { AppModule } from './app.module'; | ||
|
||
platformBrowserDynamic().bootstrapModule(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,7 @@ | ||
import { platformBrowser } from '@angular/platform-browser'; | ||
import { enableProdMode } from '@angular/core'; | ||
|
||
import { AppModuleNgFactory } from './app.module.ngfactory'; | ||
|
||
enableProdMode(); | ||
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory); |
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,13 @@ | ||
{ | ||
"name": "Ionic", | ||
"short_name": "Ionic", | ||
"start_url": "index.html", | ||
"display": "standalone", | ||
"icons": [{ | ||
"src": "assets/imgs/logo.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
}], | ||
"background_color": "#4e8ef7", | ||
"theme_color": "#4e8ef7" | ||
} |
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,41 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Ionic App</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
<meta name="format-detection" content="telephone=no"> | ||
<meta name="msapplication-tap-highlight" content="no"> | ||
|
||
<link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico"> | ||
<link rel="manifest" href="assets/manifest.json"> | ||
<meta name="theme-color" content="#4e8ef7"> | ||
|
||
<!-- un-comment this code to enable service worker | ||
<script> | ||
if ('serviceWorker' in navigator) { | ||
navigator.serviceWorker.register('service-worker.js') | ||
.then(() => console.log('service worker installed')) | ||
.catch(err => console.log('Error', err)); | ||
} | ||
</script>--> | ||
|
||
<link href="build/main.css" rel="stylesheet"> | ||
|
||
</head> | ||
<body> | ||
|
||
<!-- Ionic's root component and where the app will load --> | ||
<ion-app></ion-app> | ||
|
||
<!-- cordova.js required for cordova apps --> | ||
<script src="cordova.js"></script> | ||
|
||
<!-- The polyfills js is generated during the build process --> | ||
<script src="build/polyfills.js"></script> | ||
|
||
<!-- The bundle js is generated during the build process --> | ||
<script src="build/main.js"></script> | ||
|
||
</body> | ||
</html> |
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,11 @@ | ||
<ion-header> | ||
<ion-navbar> | ||
<ion-title> | ||
About | ||
</ion-title> | ||
</ion-navbar> | ||
</ion-header> | ||
|
||
<ion-content padding> | ||
|
||
</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,3 @@ | ||
page-about { | ||
|
||
} |
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 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { NavController } from 'ionic-angular'; | ||
|
||
@Component({ | ||
selector: 'page-about', | ||
templateUrl: 'about.html' | ||
}) | ||
export class AboutPage { | ||
|
||
constructor(public navCtrl: NavController) { | ||
|
||
} | ||
|
||
} |
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 @@ | ||
<ion-header> | ||
<ion-navbar> | ||
<ion-title> | ||
Contact | ||
</ion-title> | ||
</ion-navbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-list> | ||
<ion-list-header>Follow us on Twitter</ion-list-header> | ||
<ion-item> | ||
<ion-icon name="ionic" item-left></ion-icon> | ||
@ionicframework | ||
</ion-item> | ||
</ion-list> | ||
</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,3 @@ | ||
page-contact { | ||
|
||
} |
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 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { NavController } from 'ionic-angular'; | ||
|
||
@Component({ | ||
selector: 'page-contact', | ||
templateUrl: 'contact.html' | ||
}) | ||
export class ContactPage { | ||
|
||
constructor(public navCtrl: NavController) { | ||
|
||
} | ||
|
||
} |
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 @@ | ||
<ion-header> | ||
<ion-navbar> | ||
<ion-title>Home</ion-title> | ||
</ion-navbar> | ||
</ion-header> | ||
|
||
<ion-content padding> | ||
<h2>Welcome to Ionic!</h2> | ||
<p> | ||
This starter project comes with simple tabs-based layout for apps | ||
that are going to primarily use a Tabbed UI. | ||
</p> | ||
<p> | ||
Take a look at the <code>src/pages/</code> directory to add or change tabs, | ||
update any existing page or create new pages. | ||
</p> | ||
</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,3 @@ | ||
page-home { | ||
|
||
} |
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 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { NavController } from 'ionic-angular'; | ||
|
||
@Component({ | ||
selector: 'page-home', | ||
templateUrl: 'home.html' | ||
}) | ||
export class HomePage { | ||
|
||
constructor(public navCtrl: NavController) { | ||
|
||
} | ||
|
||
} |
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,5 @@ | ||
<ion-tabs> | ||
<ion-tab [root]="tab1Root" tabTitle="Home" tabIcon="home"></ion-tab> | ||
<ion-tab [root]="tab2Root" tabTitle="About" tabIcon="information-circle"></ion-tab> | ||
<ion-tab [root]="tab3Root" tabTitle="Contact" tabIcon="contacts"></ion-tab> | ||
</ion-tabs> |
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,20 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { HomePage } from '../home/home'; | ||
import { AboutPage } from '../about/about'; | ||
import { ContactPage } from '../contact/contact'; | ||
|
||
@Component({ | ||
templateUrl: 'tabs.html' | ||
}) | ||
export class TabsPage { | ||
// this tells the tabs component which Pages | ||
// should be each tab's root Page | ||
tab1Root: any = HomePage; | ||
tab2Root: any = AboutPage; | ||
tab3Root: any = ContactPage; | ||
|
||
constructor() { | ||
|
||
} | ||
} |
Oops, something went wrong.