Skip to content

Commit 6291f74

Browse files
committed
Initial commit
0 parents  commit 6291f74

File tree

83 files changed

+640
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+640
-0
lines changed

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
2+
# editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
10+
# We recommend you to keep these unchanged
11+
end_of_line = lf
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true
15+
16+
[*.md]
17+
trim_trailing_whitespace = false

.gitignore

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Specifies intentionally untracked files to ignore when using Git
2+
# http://git-scm.com/docs/gitignore
3+
4+
*~
5+
*.sw[mnpcod]
6+
*.log
7+
*.tmp
8+
*.tmp.*
9+
log.txt
10+
*.sublime-project
11+
*.sublime-workspace
12+
.vscode/
13+
npm-debug.log*
14+
15+
.idea/
16+
.sourcemaps/
17+
.sass-cache/
18+
.tmp/
19+
.versions/
20+
coverage/
21+
dist/
22+
node_modules/
23+
tmp/
24+
temp/
25+
hooks/
26+
platforms/
27+
plugins/
28+
plugins/android.json
29+
plugins/ios.json
30+
www/
31+
$RECYCLE.BIN/
32+
33+
.DS_Store
34+
Thumbs.db
35+
UserInterfaceState.xcuserstate

README.md

+26

config.xml

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3+
<name>MyApp</name>
4+
<description>An awesome Ionic/Cordova app.</description>
5+
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
6+
<content src="index.html" />
7+
<access origin="*" />
8+
<allow-intent href="http://*/*" />
9+
<allow-intent href="https://*/*" />
10+
<allow-intent href="tel:*" />
11+
<allow-intent href="sms:*" />
12+
<allow-intent href="mailto:*" />
13+
<allow-intent href="geo:*" />
14+
<preference name="ScrollEnabled" value="false" />
15+
<preference name="android-minSdkVersion" value="16" />
16+
<preference name="BackupWebStorage" value="none" />
17+
<preference name="SplashMaintainAspectRatio" value="true" />
18+
<preference name="FadeSplashScreenDuration" value="300" />
19+
20+
<!--
21+
Change these to configure how the splashscreen displays and fades in/out.
22+
More info here: https://github.com/apache/cordova-plugin-splashscreen
23+
-->
24+
<preference name="SplashShowOnlyFirstTime" value="false" />
25+
<preference name="SplashScreen" value="screen" />
26+
<preference name="SplashScreenDelay" value="3000" />
27+
<platform name="android">
28+
<allow-intent href="market:*" />
29+
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
30+
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
31+
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
32+
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
33+
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
34+
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
35+
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
36+
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
37+
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
38+
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
39+
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
40+
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
41+
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
42+
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
43+
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
44+
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
45+
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
46+
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
47+
</platform>
48+
<platform name="ios">
49+
<allow-intent href="itms:*" />
50+
<allow-intent href="itms-apps:*" />
51+
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
52+
<icon height="114" src="resources/ios/icon/[email protected]" width="114" />
53+
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
54+
<icon height="80" src="resources/ios/icon/[email protected]" width="80" />
55+
<icon height="120" src="resources/ios/icon/[email protected]" width="120" />
56+
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
57+
<icon height="100" src="resources/ios/icon/[email protected]" width="100" />
58+
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
59+
<icon height="120" src="resources/ios/icon/[email protected]" width="120" />
60+
<icon height="180" src="resources/ios/icon/[email protected]" width="180" />
61+
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
62+
<icon height="144" src="resources/ios/icon/[email protected]" width="144" />
63+
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
64+
<icon height="152" src="resources/ios/icon/[email protected]" width="152" />
65+
<icon height="167" src="resources/ios/icon/[email protected]" width="167" />
66+
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
67+
<icon height="58" src="resources/ios/icon/[email protected]" width="58" />
68+
<icon height="87" src="resources/ios/icon/[email protected]" width="87" />
69+
<icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
70+
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
71+
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
72+
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
73+
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
74+
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
75+
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
76+
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
77+
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
78+
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
79+
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
80+
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
81+
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
82+
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
83+
</platform>
84+
<plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
85+
<plugin name="cordova-plugin-whitelist" spec="1.3.1" />
86+
<plugin name="cordova-plugin-device" spec="1.1.4" />
87+
<plugin name="cordova-plugin-splashscreen" spec="~4.0.1" />
88+
<plugin name="cordova-plugin-ionic-webview" spec="^1.1.11" />
89+
</widget>

ionic.config.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "githubApp",
3+
"app_id": "",
4+
"type": "ionic-angular"
5+
}

package.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "githubApp",
3+
"version": "0.0.1",
4+
"author": "Ionic Framework",
5+
"homepage": "http://ionicframework.com/",
6+
"private": true,
7+
"scripts": {
8+
"clean": "ionic-app-scripts clean",
9+
"build": "ionic-app-scripts build",
10+
"lint": "ionic-app-scripts lint",
11+
"ionic:build": "ionic-app-scripts build",
12+
"ionic:serve": "ionic-app-scripts serve"
13+
},
14+
"dependencies": {
15+
"@angular/common": "4.4.3",
16+
"@angular/compiler": "4.4.3",
17+
"@angular/compiler-cli": "4.4.3",
18+
"@angular/core": "4.4.3",
19+
"@angular/forms": "4.4.3",
20+
"@angular/http": "4.4.3",
21+
"@angular/platform-browser": "4.4.3",
22+
"@angular/platform-browser-dynamic": "4.4.3",
23+
"@ionic-native/core": "4.3.0",
24+
"@ionic-native/splash-screen": "4.3.0",
25+
"@ionic-native/status-bar": "4.3.0",
26+
"@ionic/storage": "2.0.1",
27+
"ionic-angular": "3.7.1",
28+
"ionicons": "3.0.0",
29+
"rxjs": "5.4.3",
30+
"sw-toolbox": "3.6.0",
31+
"zone.js": "0.8.18"
32+
},
33+
"devDependencies": {
34+
"@ionic/app-scripts": "3.0.0",
35+
"typescript": "2.3.4"
36+
},
37+
"description": "An Ionic project"
38+
}

resources/README.md

+8
5.24 KB
1.47 KB
2.04 KB
7.94 KB
13.3 KB
18.6 KB

resources/icon.png

59.4 KB

resources/ios/icon/icon-1024.png

59.4 KB

resources/ios/icon/icon-40.png

1.53 KB

resources/ios/icon/[email protected]

6.48 KB

resources/ios/icon/[email protected]

10.5 KB

resources/ios/icon/icon-50.png

2.21 KB

resources/ios/icon/[email protected]

8.53 KB

resources/ios/icon/icon-60.png

4.52 KB

resources/ios/icon/[email protected]

10.5 KB

resources/ios/icon/[email protected]

17.4 KB

resources/ios/icon/icon-72.png

5.24 KB

resources/ios/icon/[email protected]

13.3 KB

resources/ios/icon/icon-76.png

6.03 KB

resources/ios/icon/[email protected]

14.1 KB

resources/ios/icon/[email protected]

16 KB

resources/ios/icon/icon-small.png

1.14 KB

resources/ios/icon/[email protected]

2.55 KB

resources/ios/icon/[email protected]

7.05 KB

resources/ios/icon/icon.png

2.36 KB

resources/ios/icon/[email protected]

10.2 KB
25.8 KB

resources/ios/splash/Default-667h.png

32 KB

resources/ios/splash/Default-736h.png

106 KB
30.5 KB
29.7 KB
25.3 KB
9.84 KB

resources/splash.png

118 KB

src/app/app.component.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Component } from '@angular/core';
2+
import { Platform } from 'ionic-angular';
3+
import { StatusBar } from '@ionic-native/status-bar';
4+
import { SplashScreen } from '@ionic-native/splash-screen';
5+
6+
import { TabsPage } from '../pages/tabs/tabs';
7+
8+
@Component({
9+
templateUrl: 'app.html'
10+
})
11+
export class MyApp {
12+
rootPage:any = TabsPage;
13+
14+
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
15+
platform.ready().then(() => {
16+
// Okay, so the platform is ready and our plugins are available.
17+
// Here you can do any higher level native things you might need.
18+
statusBar.styleDefault();
19+
splashScreen.hide();
20+
});
21+
}
22+
}

src/app/app.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<ion-nav [root]="rootPage"></ion-nav>

src/app/app.module.ts

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import { NgModule, ErrorHandler } from '@angular/core';
2+
import { BrowserModule } from '@angular/platform-browser';
3+
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
4+
import { MyApp } from './app.component';
5+
6+
import { AboutPage } from '../pages/about/about';
7+
import { ContactPage } from '../pages/contact/contact';
8+
import { HomePage } from '../pages/home/home';
9+
import { TabsPage } from '../pages/tabs/tabs';
10+
11+
import { StatusBar } from '@ionic-native/status-bar';
12+
import { SplashScreen } from '@ionic-native/splash-screen';
13+
14+
@NgModule({
15+
declarations: [
16+
MyApp,
17+
AboutPage,
18+
ContactPage,
19+
HomePage,
20+
TabsPage
21+
],
22+
imports: [
23+
BrowserModule,
24+
IonicModule.forRoot(MyApp)
25+
],
26+
bootstrap: [IonicApp],
27+
entryComponents: [
28+
MyApp,
29+
AboutPage,
30+
ContactPage,
31+
HomePage,
32+
TabsPage
33+
],
34+
providers: [
35+
StatusBar,
36+
SplashScreen,
37+
{provide: ErrorHandler, useClass: IonicErrorHandler}
38+
]
39+
})
40+
export class AppModule {}

src/app/app.scss

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// http://ionicframework.com/docs/theming/
2+
3+
4+
// App Global Sass
5+
// --------------------------------------------------
6+
// Put style rules here that you want to apply globally. These
7+
// styles are for the entire app and not just one component.
8+
// Additionally, this file can be also used as an entry point
9+
// to import other Sass files to be included in the output CSS.
10+
//
11+
// Shared Sass variables, which can be used to adjust Ionic's
12+
// default Sass variables, belong in "theme/variables.scss".
13+
//
14+
// To declare rules for a specific mode, create a child rule
15+
// for the .md, .ios, or .wp mode classes. The mode class is
16+
// automatically applied to the <body> element in the app.

src/app/main.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2+
3+
import { AppModule } from './app.module';
4+
5+
platformBrowserDynamic().bootstrapModule(AppModule);

src/assets/icon/favicon.ico

1.93 KB
Binary file not shown.

src/assets/imgs/logo.png

38.8 KB

src/index.html

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!DOCTYPE html>
2+
<html lang="en" dir="ltr">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Ionic App</title>
6+
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
7+
<meta name="format-detection" content="telephone=no">
8+
<meta name="msapplication-tap-highlight" content="no">
9+
10+
<link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico">
11+
<link rel="manifest" href="manifest.json">
12+
<meta name="theme-color" content="#4e8ef7">
13+
14+
<!-- add to homescreen for ios -->
15+
<meta name="apple-mobile-web-app-capable" content="yes">
16+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
17+
18+
<!-- cordova.js required for cordova apps -->
19+
<script src="cordova.js"></script>
20+
21+
<!-- un-comment this code to enable service worker
22+
<script>
23+
if ('serviceWorker' in navigator) {
24+
navigator.serviceWorker.register('service-worker.js')
25+
.then(() => console.log('service worker installed'))
26+
.catch(err => console.error('Error', err));
27+
}
28+
</script>-->
29+
30+
<link href="build/main.css" rel="stylesheet">
31+
32+
</head>
33+
<body>
34+
35+
<!-- Ionic's root component and where the app will load -->
36+
<ion-app></ion-app>
37+
38+
<!-- The polyfills js is generated during the build process -->
39+
<script src="build/polyfills.js"></script>
40+
41+
<!-- The vendor js is generated during the build process
42+
It contains all of the dependencies in node_modules -->
43+
<script src="build/vendor.js"></script>
44+
45+
<!-- The main bundle js is generated during the build process -->
46+
<script src="build/main.js"></script>
47+
48+
</body>
49+
</html>

src/manifest.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "Ionic",
3+
"short_name": "Ionic",
4+
"start_url": "index.html",
5+
"display": "standalone",
6+
"icons": [{
7+
"src": "assets/imgs/logo.png",
8+
"sizes": "512x512",
9+
"type": "image/png"
10+
}],
11+
"background_color": "#4e8ef7",
12+
"theme_color": "#4e8ef7"
13+
}

src/pages/about/about.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<ion-header>
2+
<ion-navbar>
3+
<ion-title>
4+
About
5+
</ion-title>
6+
</ion-navbar>
7+
</ion-header>
8+
9+
<ion-content padding>
10+
11+
</ion-content>

src/pages/about/about.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
page-about {
2+
3+
}

0 commit comments

Comments
 (0)