Skip to content

Commit eb3a8e4

Browse files
author
alex
committed
init
0 parents  commit eb3a8e4

File tree

141 files changed

+9277
-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.

141 files changed

+9277
-0
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
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

Lines changed: 35 additions & 0 deletions
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+
.sourcemaps/*
16+
.idea/
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

LICENSE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Copyright 2015-present Drifty Co.
2+
http://ionicframework.com/
3+
4+
MIT License
5+
6+
Permission is hereby granted, free of charge, to any person obtaining
7+
a copy of this software and associated documentation files (the
8+
"Software"), to deal in the Software without restriction, including
9+
without limitation the rights to use, copy, modify, merge, publish,
10+
distribute, sublicense, and/or sell copies of the Software, and to
11+
permit persons to whom the Software is furnished to do so, subject to
12+
the following conditions:
13+
14+
The above copyright notice and this permission notice shall be
15+
included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# The mobileapp
2+
3+
## Table of Contents
4+
5+
1. [Getting Started](#getting-started)
6+
2. [Pages](#pages)
7+
3. [Providers](#providers)
8+
4. [i18n](#i18n) (adding languages)
9+
10+
## <a name="getting-started"></a>Getting Started
11+
12+
open the app in the broswer:
13+
14+
```bash
15+
cd MobileAssistant
16+
npm install
17+
ionic serve
18+
```
19+
20+
## Pages
21+
22+
the pages of the app.
23+
24+
## Providers
25+
26+
The common providers.
27+
28+
### User
29+
30+
The `User` provider is used to authenticate users through its `login(accountInfo)` and `signup(accountInfo)` methods, which perform `POST` requests to an API endpoint that you will need to configure.
31+
32+
### Api
33+
34+
The `Api` provider is a simple CRUD frontend to an API. Simply put the root of your API url in the Api class and call get/post/put/patch/delete
35+
36+
## i18n
37+
38+
Ionic Super Starter comes with internationalization (i18n) out of the box with [ngx-translate](https://github.com/ngx-translate/core). This makes it easy to change the text used in the app by modifying only one file.
39+
40+
### Adding Languages
41+
42+
To add new languages, add new files to the `src/assets/i18n` directory, following the pattern of LANGCODE.json where LANGCODE is the language/locale code (ex: en/gb/de/es/etc.).
43+
44+
### Changing the Language
45+
46+
To change the language of the app, edit `src/app/app.component.ts` and modify `translate.use('en')` to use the LANGCODE from `src/assets/i18n/`

config.xml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="com.phoenix.assistant" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3+
<name>随身办</name>
4+
<description>An awesome Ionic/Cordova app for phoenix Patrol inspection.</description>
5+
<author email="hi@ionicframework" href="http://ionicframework.com/">phoenix Team</author>
6+
<content src="index.html" />
7+
<access origin="*" />
8+
<allow-navigation href="http://ionic.local/*" />
9+
<allow-intent href="http://*/*" />
10+
<allow-intent href="https://*/*" />
11+
<allow-intent href="tel:*" />
12+
<allow-intent href="sms:*" />
13+
<allow-intent href="mailto:*" />
14+
<allow-intent href="geo:*" />
15+
<preference name="webviewbounce" value="false" />
16+
<preference name="UIWebViewBounce" value="false" />
17+
<preference name="DisallowOverscroll" value="true" />
18+
<preference name="android-minSdkVersion" value="16" />
19+
<preference name="BackupWebStorage" value="none" />
20+
<preference name="SplashMaintainAspectRatio" value="true" />
21+
<preference name="FadeSplashScreenDuration" value="300" />
22+
<preference name="SplashShowOnlyFirstTime" value="false" />
23+
<preference name="SplashScreen" value="screen" />
24+
<preference name="SplashScreenDelay" value="3000" />
25+
<platform name="android">
26+
<allow-intent href="market:*" />
27+
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
28+
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
29+
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
30+
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
31+
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
32+
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
33+
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
34+
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
35+
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
36+
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
37+
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
38+
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
39+
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
40+
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
41+
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
42+
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
43+
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
44+
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
45+
</platform>
46+
<platform name="ios">
47+
<allow-intent href="itms:*" />
48+
<allow-intent href="itms-apps:*" />
49+
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
50+
<icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
51+
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
52+
<icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
53+
<icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
54+
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
55+
<icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
56+
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
57+
<icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
58+
<icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
59+
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
60+
<icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
61+
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
62+
<icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
63+
<icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
64+
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
65+
<icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
66+
<icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
67+
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
68+
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
69+
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
70+
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
71+
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
72+
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
73+
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
74+
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
75+
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
76+
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
77+
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
78+
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
79+
</platform>
80+
<plugin name="cordova-plugin-console" spec="^1.0.5" />
81+
<plugin name="cordova-plugin-camera" spec="^2.3.1" />
82+
<plugin name="cordova-plugin-device" spec="^1.1.4" />
83+
<plugin name="cordova-plugin-splashscreen" spec="^4.0.3" />
84+
<plugin name="cordova-plugin-statusbar" spec="^2.2.2" />
85+
<plugin name="cordova-plugin-whitelist" spec="^1.3.1" />
86+
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
87+
<plugin name="phonegap-plugin-barcodescanner" spec="^6.0.6" />
88+
<plugin name="phonegap-nfc" spec="^0.6.6" />
89+
<plugin name="cordova-plugin-compat" spec="^1.2.0" />
90+
<plugin name="cordova-plugin-file" spec="^4.3.3" />
91+
<plugin name="cordova-sqlite-storage" spec="^2.1.5" />
92+
<plugin name="jpush-phonegap-plugin" spec="git+https://github.com/jpush/jpush-phonegap-plugin.git">
93+
<variable name="APP_KEY" value="9844ef6cf746572bf3a6310f" />
94+
</plugin>
95+
<engine name="android" spec="6.3.0" />
96+
</widget>

ionic.config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "pocket assistant",
3+
"app_id": "",
4+
"type": "ionic-angular",
5+
"integrations": {
6+
"cordova": {}
7+
},
8+
"proxies": [
9+
{
10+
"path": "/",
11+
"proxyUrl": "http://localhost:8100"
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)