Browse Source

TODO: Everything

tags/1.0
Skylar Ittner 2 years ago
commit
0953818cfb
86 changed files with 5626 additions and 0 deletions
  1. 3
    0
      .gitignore
  2. 2
    0
      .npmignore
  3. 26
    0
      config.xml
  4. 23
    0
      hooks/README.md
  5. 293
    0
      nbproject/build.xml
  6. 3
    0
      nbproject/configs/android.properties
  7. 3
    0
      nbproject/configs/android_1.properties
  8. 5
    0
      nbproject/configs/ios.properties
  9. 5
    0
      nbproject/configs/ios_1.properties
  10. 31
    0
      nbproject/plugins.properties
  11. 7
    0
      nbproject/project.properties
  12. 9
    0
      nbproject/project.xml
  13. 9
    0
      package.json
  14. 29
    0
      res/README.md
  15. BIN
      res/icon/android/icon-36-ldpi.png
  16. BIN
      res/icon/android/icon-48-mdpi.png
  17. BIN
      res/icon/android/icon-72-hdpi.png
  18. BIN
      res/icon/android/icon-96-xhdpi.png
  19. BIN
      res/icon/bada-wac/icon-48-type5.png
  20. BIN
      res/icon/bada-wac/icon-50-type3.png
  21. BIN
      res/icon/bada-wac/icon-80-type4.png
  22. BIN
      res/icon/bada/icon-128.png
  23. BIN
      res/icon/blackberry/icon-80.png
  24. BIN
      res/icon/blackberry10/icon-80.png
  25. BIN
      res/icon/ios/icon-57-2x.png
  26. BIN
      res/icon/ios/icon-57.png
  27. BIN
      res/icon/ios/icon-72-2x.png
  28. BIN
      res/icon/ios/icon-72.png
  29. BIN
      res/icon/tizen/icon-128.png
  30. BIN
      res/icon/webos/icon-64.png
  31. BIN
      res/icon/windows-phone/icon-173-tile.png
  32. BIN
      res/icon/windows-phone/icon-48.png
  33. BIN
      res/icon/windows-phone/icon-62-tile.png
  34. BIN
      res/screen/android/screen-hdpi-landscape.png
  35. BIN
      res/screen/android/screen-hdpi-portrait.png
  36. BIN
      res/screen/android/screen-ldpi-landscape.png
  37. BIN
      res/screen/android/screen-ldpi-portrait.png
  38. BIN
      res/screen/android/screen-mdpi-landscape.png
  39. BIN
      res/screen/android/screen-mdpi-portrait.png
  40. BIN
      res/screen/android/screen-xhdpi-landscape.png
  41. BIN
      res/screen/android/screen-xhdpi-portrait.png
  42. BIN
      res/screen/bada-wac/screen-type3.png
  43. BIN
      res/screen/bada-wac/screen-type4.png
  44. BIN
      res/screen/bada-wac/screen-type5.png
  45. BIN
      res/screen/bada/screen-portrait.png
  46. BIN
      res/screen/blackberry/screen-225.png
  47. BIN
      res/screen/blackberry10/splash-1280x768.png
  48. BIN
      res/screen/blackberry10/splash-720x720.png
  49. BIN
      res/screen/blackberry10/splash-768x1280.png
  50. BIN
      res/screen/ios/screen-ipad-landscape-2x.png
  51. BIN
      res/screen/ios/screen-ipad-landscape.png
  52. BIN
      res/screen/ios/screen-ipad-portrait-2x.png
  53. BIN
      res/screen/ios/screen-ipad-portrait.png
  54. BIN
      res/screen/ios/screen-iphone-landscape-2x.png
  55. BIN
      res/screen/ios/screen-iphone-landscape.png
  56. BIN
      res/screen/ios/screen-iphone-portrait-2x.png
  57. BIN
      res/screen/ios/screen-iphone-portrait-568h-2x.png
  58. BIN
      res/screen/ios/screen-iphone-portrait.png
  59. 24
    0
      res/screen/tizen/README.md
  60. BIN
      res/screen/webos/screen-64.png
  61. BIN
      res/screen/windows-phone/screen-portrait.jpg
  62. 58
    0
      www/css/app.css
  63. 11
    0
      www/css/bootstrap.min.css
  64. 4
    0
      www/css/font-awesome.min.css
  65. 1951
    0
      www/css/material-color.css
  66. 2
    0
      www/css/material-color.min.css
  67. BIN
      www/fonts/FontAwesome.otf
  68. BIN
      www/fonts/fontawesome-webfont.eot
  69. 2671
    0
      www/fonts/fontawesome-webfont.svg
  70. BIN
      www/fonts/fontawesome-webfont.ttf
  71. BIN
      www/fonts/fontawesome-webfont.woff
  72. BIN
      www/fonts/fontawesome-webfont.woff2
  73. BIN
      www/img/logo.png
  74. 78
    0
      www/img/logo.svg
  75. BIN
      www/img/up-arrow-black.png
  76. 94
    0
      www/img/up-arrow-black.svg
  77. BIN
      www/img/up-arrow-white.png
  78. 94
    0
      www/img/up-arrow-white.svg
  79. 25
    0
      www/index.html
  80. 81
    0
      www/js/app.js
  81. 7
    0
      www/js/bootstrap.min.js
  82. 4
    0
      www/js/jquery-3.2.1.min.js
  83. 0
    0
      www/views/home.html
  84. 5
    0
      www/views/settings.html
  85. 45
    0
      www/views/setup.html
  86. 24
    0
      www/views/setup/step1.html

+ 3
- 0
.gitignore View File

@@ -0,0 +1,3 @@
1
+nbproject/private
2
+platforms
3
+plugins

+ 2
- 0
.npmignore View File

@@ -0,0 +1,2 @@
1
+# OS X
2
+.DS_Store

+ 26
- 0
config.xml View File

@@ -0,0 +1,26 @@
1
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="com.netsyms.BusinessMobile" version="1.0.0">
3
+    <name>Business for Mobile</name>
4
+    <description>
5
+        Mobile client for the Netsyms Business Apps.
6
+    </description>
7
+    <author email="admin@netsyms.com" href="https://netsyms.com">
8
+        Netsyms Technologies
9
+    </author>
10
+    <content src="index.html"/>
11
+    <plugin name="cordova-plugin-whitelist" spec="1"/>
12
+    <access origin="*"/>
13
+    <allow-intent href="http://*/*"/>
14
+    <allow-intent href="https://*/*"/>
15
+    <allow-intent href="tel:*"/>
16
+    <allow-intent href="sms:*"/>
17
+    <allow-intent href="mailto:*"/>
18
+    <allow-intent href="geo:*"/>
19
+    <platform name="android">
20
+        <allow-intent href="market:*"/>
21
+    </platform>
22
+    <platform name="ios">
23
+        <allow-intent href="itms:*"/>
24
+        <allow-intent href="itms-apps:*"/>
25
+    </platform>
26
+</widget>

+ 23
- 0
hooks/README.md View File

@@ -0,0 +1,23 @@
1
+<!--
2
+#
3
+# Licensed to the Apache Software Foundation (ASF) under one
4
+# or more contributor license agreements.  See the NOTICE file
5
+# distributed with this work for additional information
6
+# regarding copyright ownership.  The ASF licenses this file
7
+# to you under the Apache License, Version 2.0 (the
8
+# "License"); you may not use this file except in compliance
9
+# with the License.  You may obtain a copy of the License at
10
+#
11
+# http://www.apache.org/licenses/LICENSE-2.0
12
+#
13
+# Unless required by applicable law or agreed to in writing,
14
+# software distributed under the License is distributed on an
15
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+#  KIND, either express or implied.  See the License for the
17
+# specific language governing permissions and limitations
18
+# under the License.
19
+#
20
+-->
21
+# Cordova Hooks
22
+
23
+Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system  to customize cordova commands. See Hooks Guide for more details:  http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide.

+ 293
- 0
nbproject/build.xml View File

@@ -0,0 +1,293 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!--
3
+DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4
+
5
+Copyright 1997-2012 Oracle and/or its affiliates. All rights reserved.
6
+
7
+Oracle and Java are registered trademarks of Oracle and/or its affiliates.
8
+Other names may be trademarks of their respective owners.
9
+
10
+
11
+The contents of this file are subject to the terms of either the GNU
12
+General Public License Version 2 only ("GPL") or the Common
13
+Development and Distribution License("CDDL") (collectively, the
14
+"License"). You may not use this file except in compliance with the
15
+License. You can obtain a copy of the License at
16
+http://www.netbeans.org/cddl-gplv2.html
17
+or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
18
+specific language governing permissions and limitations under the
19
+License.  When distributing the software, include this License Header
20
+Notice in each file and include the License file at
21
+nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
22
+particular file as subject to the "Classpath" exception as provided
23
+by Oracle in the GPL Version 2 section of the License file that
24
+accompanied this code. If applicable, add the following below the
25
+License Header, with the fields enclosed by brackets [] replaced by
26
+your own identifying information:
27
+"Portions Copyrighted [year] [name of copyright owner]"
28
+
29
+Contributor(s):
30
+
31
+The Original Software is NetBeans. The Initial Developer of the Original
32
+Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
33
+Microsystems, Inc. All Rights Reserved.
34
+
35
+If you wish your version of this file to be governed by only the CDDL
36
+or only the GPL Version 2, indicate your decision by adding
37
+"[Contributor] elects to include this software in this distribution
38
+under the [CDDL or GPL Version 2] license." If you do not indicate a
39
+single choice of license, a recipient has the option to distribute
40
+your version of this file under either the CDDL, the GPL Version 2 or
41
+to extend the choice of license to its licensees as provided above.
42
+However, if you add GPL Version 2 code and therefore, elected the GPL
43
+Version 2 license, then the option applies only if the new code is
44
+made subject to such option by the copyright holder.
45
+-->
46
+<!--
47
+    Generated file; DO NOT EDIT.
48
+-->
49
+<project name="BusinessMobile" basedir="..">
50
+    <property file="nbproject/configs/${config}.properties" />
51
+
52
+    <scriptdef name="checkVersion" language="javascript">
53
+        <attribute name="first" />
54
+        <attribute name="property" />
55
+     <![CDATA[
56
+       var first = attributes.get("first");
57
+       if (first >= "3.0.0") {
58
+         project.setProperty(attributes.get("property"), true);
59
+       }
60
+     ]]>
61
+    </scriptdef>
62
+    
63
+    <scriptdef name="forDevice" language="javascript">
64
+     <![CDATA[
65
+       var dev = project.getProperty("device");
66
+       if (dev == "device") {
67
+         project.setProperty("build.for.device", true);
68
+       }
69
+     ]]>
70
+    </scriptdef>
71
+
72
+    <target name="check-cordova-project">
73
+        <condition property="cordova.project">
74
+            <or>
75
+                <available file=".cordova"/>
76
+                <available file="hooks"/>
77
+            </or>
78
+        </condition>
79
+    </target>
80
+    
81
+    <target name="upgrade-to-cordova-project" depends="check-cordova-project,check-cordova-version" unless="cordova.project">
82
+        <echo level="info" message="${cordova.command} -d create ${java.io.tmpdir}/nb_temp_project com.coolappz.${project.name} ${project.name}" />
83
+        <delete dir="${java.io.tmpdir}/nb_temp_project"/>
84
+        <exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true" >
85
+            <env key="${cordova.path.key}" path="${cordova.path.value}:${android.sdk.home}/tools:${android.sdk.home}/platform-tools:${jdk.home}/bin:${ant.home}/bin:${jdk.home}/bin"/>
86
+            <env key="JAVA_HOME" path="${jdk.home}"/>
87
+            <arg value="-d"/>
88
+            <arg value="create"/>   
89
+            <arg value="${java.io.tmpdir}/nb_temp_project"/>   
90
+            <arg value="com.coolappz.${project.name}"/>
91
+            <arg value="${project.name}" />
92
+        </exec>
93
+        <copy todir="." overwrite="true" failonerror="false">
94
+            <fileset dir="${java.io.tmpdir}/nb_temp_project"/>
95
+        </copy>
96
+        <delete dir="${java.io.tmpdir}/nb_temp_project"/>
97
+        <delete dir="www"/>
98
+        <copy todir="www" failonerror="false" quiet="true" >
99
+            <fileset dir="${site.root}"/>
100
+        </copy>
101
+    </target>
102
+
103
+    <target name="create-hello-world" depends="check-cordova-version">
104
+        <echo level="info" message="${cordova.command} -d create www_nb_temp com.coolappz.${project.name} ${project.name}" />
105
+        <exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
106
+            <env key="${cordova.path.key}" path="${cordova.path.value}:${android.sdk.home}/tools:${android.sdk.home}/platform-tools:${jdk.home}/bin:${ant.home}/bin:${jdk.home}/bin"/>
107
+            <env key="JAVA_HOME" path="${jdk.home}"/>
108
+            <arg value="-d"/>
109
+            <arg value="create"/>   
110
+            <arg value="www_nb_temp"/>   
111
+            <arg value="com.coolappz.${project.name}"/>
112
+            <arg value="${project.name}" />
113
+        </exec>
114
+        <delete dir="www"/>
115
+        <mkdir dir="www"/>
116
+        <move file="www_nb_temp/www" tofile="www"/>
117
+        <delete dir="www_nb_temp"/>
118
+        <delete file="www/config.xml"/>
119
+    </target>
120
+    
121
+    <taskdef 
122
+        classname="org.netbeans.modules.cordova.updatetask.ReadConfigTask" 
123
+        classpath="${update.task.jar}"
124
+        name="readconfig"/>
125
+
126
+    <taskdef 
127
+        classname="org.netbeans.modules.cordova.updatetask.PluginTask" 
128
+        classpath="${update.task.jar}"
129
+        name="plugintask"/>
130
+    
131
+        
132
+    <target name="check-cordova-version">
133
+        <property environment="env"/>        
134
+        <checkVersion first="${cordova.version}" property="cordova.ver.3"/>
135
+        <fail message="Cordova version 3 or greater required." unless="cordova.ver.3"/>
136
+        <readconfig/>
137
+        <forDevice/>
138
+    </target>
139
+    
140
+    <target name="check-android-template">
141
+        <available file="platforms/android" property="android.generated.exists"/>
142
+    </target>
143
+
144
+    <target name="check-ios-template">
145
+        <available file="platforms/ios" property="ios.generated.exists"/>
146
+    </target>
147
+    
148
+    <target name="create-android" depends="check-android-template,check-cordova-version,upgrade-to-cordova-project" unless="android.generated.exists">
149
+        <echo level="info" message="${cordova.command} -d platform add android"/>
150
+        <exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
151
+            <env key="${cordova.path.key}" path="${cordova.path.value}:${android.sdk.home}/tools:${android.sdk.home}/platform-tools:${jdk.home}/bin:${ant.home}/bin:${jdk.home}/bin"/>
152
+            <env key="JAVA_HOME" path="${jdk.home}"/>
153
+            <arg value="-d"/>
154
+            <arg value="platform"/>   
155
+            <arg value="add"/>   
156
+            <arg value="android"/>
157
+        </exec>
158
+    </target>
159
+    
160
+    <target name="create-ios" depends="check-ios-template,check-cordova-version,upgrade-to-cordova-project" unless="ios.generated.exists">
161
+        <echo level="info" message="${cordova.command} -d platform add ios"/>
162
+        <exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" dir="." failonerror="true">
163
+            <env key="${cordova.path.key}" path="${cordova.path.value}:${android.sdk.home}/tools:${android.sdk.home}/platform-tools:${jdk.home}/bin:${ant.home}/bin:${jdk.home}/bin"/>
164
+            <env key="JAVA_HOME" path="${jdk.home}"/>
165
+            <arg value="-d"/>
166
+            <arg value="platform"/>   
167
+            <arg value="add"/>   
168
+            <arg value="ios"/>
169
+        </exec>
170
+    </target>
171
+
172
+    <target name="rebuild-ios" depends="clean-ios,build-ios"/>
173
+
174
+    <target name="build-ios" depends="create-ios,update-plugins,update-ios,build-ios-xcodebuild,build-ios-ipa"/>
175
+
176
+    <target name="build-ios-xcodebuild">
177
+        <property name="path" location="platforms/ios/build"/>
178
+        <exec executable="xcodebuild" dir="platforms/ios" failonerror="true">
179
+            <arg value="-project"/>
180
+            <arg value="${project.name}.xcodeproj"/>
181
+            <arg value="ARCHS=${ios.build.arch}"/>   
182
+            <arg value="-target"/>
183
+            <arg value="${project.name}"/>
184
+            <arg value="-configuration"/> 
185
+            <arg value="Release"/>
186
+            <arg value="-sdk"/>   
187
+            <arg value="${ios.build.sdk}" />
188
+            <arg value="build"/>
189
+            <arg value="CONFIGURATION_BUILD_DIR=${path}"/>
190
+        </exec>
191
+    </target>
192
+    
193
+    <target name="build-ios-ipa" if="build.for.device">
194
+        <exec executable="xcrun" dir="platforms/ios/build" failonerror="true">
195
+            <env key="CODESIGN_ALLOCATE" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate" />
196
+            <arg value="-sdk"/>
197
+            <arg value="${ios.build.sdk}" />            
198
+            <arg value="PackageApplication"/>
199
+            <arg value="-v"/>
200
+            <arg value="${project.name}.app"/>
201
+            <arg value="-o"/>
202
+            <arg value="${basedir}/platforms/ios/build/${project.name}.ipa"/>
203
+            <arg value="--sign"/>
204
+            <arg value="${ios.certificate.name}"/>
205
+            <arg value="--embed"/>
206
+            <arg value="${ios.provisioning.profile}"/>
207
+        </exec>
208
+        <available file="${basedir}/platforms/ios/build/${project.name}.ipa" property="ipa.found"/>
209
+        <fail unless="ipa.found" message="PackageApplication failed."/>
210
+    </target>
211
+         
212
+
213
+    <target name="sim-ios" depends="build-ios,ios-run-device,ios-run-simulator">
214
+    </target>
215
+    
216
+    <target name="ios-run-device" if="build.for.device">
217
+        <echo>
218
+            Install "${basedir}/platforms/ios/build/${project.name}.ipa" through iTunes and run it. 
219
+        </echo> 
220
+        <exec executable="open" failonerror="true">
221
+            <arg value="${basedir}/platforms/ios/build/${project.name}.ipa"/>
222
+        </exec>
223
+    </target>
224
+
225
+    <target name="ios-run-simulator" unless="build.for.device">
226
+        <exec executable="killall" dir="platforms/ios/build">
227
+            <arg value="launchd_sim"/>
228
+        </exec>
229
+        <exec executable="${ios.sim.exec}" dir="platforms/ios/build">
230
+            <arg line="launch ${project.name}.app ${ios.device.args} --exit"/>
231
+        </exec> 
232
+    </target>
233
+    
234
+    <target name="update-plugins">
235
+        <plugintask/>
236
+    </target>    
237
+    
238
+    <target name="update-android">
239
+        <echo level="info" message="${cordova.command} prepare android"/>
240
+
241
+        <exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
242
+            <env key="${cordova.path.key}" path="${cordova.path.value}:${android.sdk.home}/tools:${android.sdk.home}/platform-tools:${jdk.home}/bin:${ant.home}/bin:${jdk.home}/bin"/>
243
+            <env key="JAVA_HOME" path="${jdk.home}"/>
244
+            <arg value="prepare"/>
245
+            <arg value="android"/>
246
+        </exec>
247
+    </target>    
248
+        
249
+                           
250
+    <target name="update-ios">
251
+        <echo level="info" message="${cordova.command} prepare ios"/>
252
+        <exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
253
+            <env key="${cordova.path.key}" path="${cordova.path.value}:${android.sdk.home}/tools:${android.sdk.home}/platform-tools:${jdk.home}/bin:${ant.home}/bin:${jdk.home}/bin"/>
254
+            <env key="JAVA_HOME" path="${jdk.home}"/>
255
+            <arg value="prepare"/>
256
+            <arg value="ios"/>
257
+        </exec>
258
+    </target>    
259
+    
260
+    <target name="rebuild-android" depends="clean-android,build-android"/>      
261
+    
262
+    <target name="build-android" depends="create-android,update-plugins">
263
+        <echo level="info" message="${cordova.command} -d build android"/>
264
+        <exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
265
+            <env key="${cordova.path.key}" path="${cordova.path.value}:${android.sdk.home}/tools:${android.sdk.home}/platform-tools:${jdk.home}/bin:${ant.home}/bin:${jdk.home}/bin"/>
266
+            <env key="JAVA_HOME" path="${jdk.home}"/>
267
+            <arg value="-d"/>   
268
+            <arg value="build"/>   
269
+            <arg value="android"/>   
270
+        </exec>
271
+    </target>    
272
+    
273
+    <target name="sim-android" depends="create-android,update-plugins">
274
+        <echo level="info" message="${cordova.command} -d ${android.target.device.arg} android"/>
275
+        <exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
276
+            <env key="${cordova.path.key}" path="${cordova.path.value}:${android.sdk.home}/tools:${android.sdk.home}/platform-tools:${jdk.home}/bin:${ant.home}/bin:${jdk.home}/bin"/>
277
+            <env key="JAVA_HOME" path="${jdk.home}"/>
278
+            <arg value="-d"/>
279
+            <arg value="${android.target.device.arg}"/>
280
+            <arg value="android"/>   
281
+        </exec>
282
+    </target>
283
+    
284
+    <target name="clean-android" depends="check-android-template" if="android.generated.exists">
285
+        <exec executable="./gradlew" dir="platforms/android">
286
+            <arg value="clean" />
287
+        </exec>
288
+    </target>
289
+    
290
+    <target name="clean-ios" depends="check-ios-template" if="ios.generated.exists">
291
+        <exec executable="platforms/ios/cordova/clean" />
292
+    </target>
293
+</project>

+ 3
- 0
nbproject/configs/android.properties View File

@@ -0,0 +1,3 @@
1
+device=emulator
2
+display.name=Android Emulator
3
+type=android

+ 3
- 0
nbproject/configs/android_1.properties View File

@@ -0,0 +1,3 @@
1
+device=device
2
+display.name=Android Device
3
+type=android

+ 5
- 0
nbproject/configs/ios.properties View File

@@ -0,0 +1,5 @@
1
+device=emulator
2
+display.name=iPhone Simulator
3
+ios.build.arch=i386
4
+ios.build.sdk=iphonesimulator6.0
5
+type=ios

+ 5
- 0
nbproject/configs/ios_1.properties View File

@@ -0,0 +1,5 @@
1
+device=device
2
+display.name=iPhone Device
3
+ios.build.arch=armv6 armv7
4
+ios.build.sdk=iphoneos6.0
5
+type=ios

+ 31
- 0
nbproject/plugins.properties View File

@@ -0,0 +1,31 @@
1
+# This is a list of plugins installed in your project
2
+# You can delete or add new plugins
3
+#
4
+# Format is following:
5
+# id.of.plugin=url_of_repository
6
+#
7
+# Corresponding "id.of.plugin" can be found in the plugin's plugin.xml file:
8
+# <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="foo.bar.plugin" version="0.0.1">
9
+#
10
+# This list contains all core cordova plugins.
11
+#
12
+# For more information about plugins see http://cordova.apache.org/blog/releases/2013/07/23/cordova-3.html
13
+#
14
+
15
+cordova-plugin-device=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
16
+cordova-plugin-network-information=https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git
17
+cordova-plugin-battery-status=https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git
18
+cordova-plugin-device-motion=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git
19
+cordova-plugin-device-orientation=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation.git
20
+cordova-plugin-geolocation=https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git
21
+cordova-plugin-camera=https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
22
+cordova-plugin-media-capture=https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git
23
+cordova-plugin-media=https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git
24
+cordova-plugin-file=https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
25
+cordova-plugin-file-transfer=https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git
26
+cordova-plugin-dialogs=https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git
27
+cordova-plugin-vibration=https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git
28
+cordova-plugin-contacts=https://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts.git
29
+cordova-plugin-globalization=https://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization.git
30
+cordova-plugin-splashscreen=https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
31
+cordova-plugin-console=https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git

+ 7
- 0
nbproject/project.properties View File

@@ -0,0 +1,7 @@
1
+auxiliary.org-netbeans-modules-cordova.cordova_5f_build_5f_script_5f_version=52
2
+auxiliary.org-netbeans-modules-cordova.phonegap=true
3
+file.reference.BusinessMobile-test=test
4
+file.reference.BusinessMobile-www=www
5
+files.encoding=UTF-8
6
+site.root.folder=${file.reference.BusinessMobile-www}
7
+test.folder=${file.reference.BusinessMobile-test}

+ 9
- 0
nbproject/project.xml View File

@@ -0,0 +1,9 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://www.netbeans.org/ns/project/1">
3
+    <type>org.netbeans.modules.web.clientproject</type>
4
+    <configuration>
5
+        <data xmlns="http://www.netbeans.org/ns/clientside-project/1">
6
+            <name>BusinessMobile</name>
7
+        </data>
8
+    </configuration>
9
+</project>

+ 9
- 0
package.json View File

@@ -0,0 +1,9 @@
1
+{
2
+    "name": "com.netsyms.BusinessMobile",
3
+    "displayName": "Business for Mobile",
4
+    "version": "1.0.0",
5
+    "description": "Mobile client for the Netsyms Business Apps.",
6
+    "main": "index.html",
7
+    "author": "Netsyms Technologies",
8
+    "license": "netsyms-business-license"
9
+}

+ 29
- 0
res/README.md View File

@@ -0,0 +1,29 @@
1
+<!--
2
+#
3
+# Licensed to the Apache Software Foundation (ASF) under one
4
+# or more contributor license agreements.  See the NOTICE file
5
+# distributed with this work for additional information
6
+# regarding copyright ownership.  The ASF licenses this file
7
+# to you under the Apache License, Version 2.0 (the
8
+# "License"); you may not use this file except in compliance
9
+# with the License.  You may obtain a copy of the License at
10
+#
11
+# http://www.apache.org/licenses/LICENSE-2.0
12
+#
13
+# Unless required by applicable law or agreed to in writing,
14
+# software distributed under the License is distributed on an
15
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+#  KIND, either express or implied.  See the License for the
17
+# specific language governing permissions and limitations
18
+# under the License.
19
+#
20
+-->
21
+
22
+Note that these image resources are not copied into a project when a project
23
+is created with the CLI. Although there are default image resources in a
24
+newly-created project, those come from the platform-specific project template,
25
+which can generally be found in the platform's `template` directory. Until
26
+icon and splashscreen support is added to the CLI, these image resources
27
+aren't used directly.
28
+
29
+See https://issues.apache.org/jira/browse/CB-5145

BIN
res/icon/android/icon-36-ldpi.png View File


BIN
res/icon/android/icon-48-mdpi.png View File


BIN
res/icon/android/icon-72-hdpi.png View File


BIN
res/icon/android/icon-96-xhdpi.png View File


BIN
res/icon/bada-wac/icon-48-type5.png View File


BIN
res/icon/bada-wac/icon-50-type3.png View File


BIN
res/icon/bada-wac/icon-80-type4.png View File


BIN
res/icon/bada/icon-128.png View File


BIN
res/icon/blackberry/icon-80.png View File


BIN
res/icon/blackberry10/icon-80.png View File


BIN
res/icon/ios/icon-57-2x.png View File


BIN
res/icon/ios/icon-57.png View File


BIN
res/icon/ios/icon-72-2x.png View File


BIN
res/icon/ios/icon-72.png View File


BIN
res/icon/tizen/icon-128.png View File


BIN
res/icon/webos/icon-64.png View File


BIN
res/icon/windows-phone/icon-173-tile.png View File


BIN
res/icon/windows-phone/icon-48.png View File


BIN
res/icon/windows-phone/icon-62-tile.png View File


BIN
res/screen/android/screen-hdpi-landscape.png View File


BIN
res/screen/android/screen-hdpi-portrait.png View File


BIN
res/screen/android/screen-ldpi-landscape.png View File


BIN
res/screen/android/screen-ldpi-portrait.png View File


BIN
res/screen/android/screen-mdpi-landscape.png View File


BIN
res/screen/android/screen-mdpi-portrait.png View File


BIN
res/screen/android/screen-xhdpi-landscape.png View File


BIN
res/screen/android/screen-xhdpi-portrait.png View File


BIN
res/screen/bada-wac/screen-type3.png View File


BIN
res/screen/bada-wac/screen-type4.png View File


BIN
res/screen/bada-wac/screen-type5.png View File


BIN
res/screen/bada/screen-portrait.png View File


BIN
res/screen/blackberry/screen-225.png View File


BIN
res/screen/blackberry10/splash-1280x768.png View File


BIN
res/screen/blackberry10/splash-720x720.png View File


BIN
res/screen/blackberry10/splash-768x1280.png View File


BIN
res/screen/ios/screen-ipad-landscape-2x.png View File


BIN
res/screen/ios/screen-ipad-landscape.png View File


BIN
res/screen/ios/screen-ipad-portrait-2x.png View File


BIN
res/screen/ios/screen-ipad-portrait.png View File


BIN
res/screen/ios/screen-iphone-landscape-2x.png View File


BIN
res/screen/ios/screen-iphone-landscape.png View File


BIN
res/screen/ios/screen-iphone-portrait-2x.png View File


BIN
res/screen/ios/screen-iphone-portrait-568h-2x.png View File


BIN
res/screen/ios/screen-iphone-portrait.png View File


+ 24
- 0
res/screen/tizen/README.md View File

@@ -0,0 +1,24 @@
1
+<!--
2
+#
3
+# Licensed to the Apache Software Foundation (ASF) under one
4
+# or more contributor license agreements.  See the NOTICE file
5
+# distributed with this work for additional information
6
+# regarding copyright ownership.  The ASF licenses this file
7
+# to you under the Apache License, Version 2.0 (the
8
+# "License"); you may not use this file except in compliance
9
+# with the License.  You may obtain a copy of the License at
10
+#
11
+# http://www.apache.org/licenses/LICENSE-2.0
12
+#
13
+# Unless required by applicable law or agreed to in writing,
14
+# software distributed under the License is distributed on an
15
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+#  KIND, either express or implied.  See the License for the
17
+# specific language governing permissions and limitations
18
+# under the License.
19
+#
20
+-->
21
+
22
+# Tizen Splash Screen
23
+
24
+Splash screens are unsupported on the Tizen platform.

BIN
res/screen/webos/screen-64.png View File


BIN
res/screen/windows-phone/screen-portrait.jpg View File


+ 58
- 0
www/css/app.css View File

@@ -0,0 +1,58 @@
1
+.banner-image {
2
+    max-height: 100px;
3
+    margin: 2em auto;
4
+    border: 1px solid grey;
5
+    border-radius: 12px;
6
+}
7
+
8
+.navbar-brand {
9
+    font-size: 110%;
10
+}
11
+
12
+.footer {
13
+    margin-top: 10em;
14
+    text-align: center;
15
+}
16
+
17
+/*
18
+==============================
19
+            THEMING
20
+==============================
21
+
22
+Changing the .navbar-inverse background should be enough on modern browsers.
23
+If this app is to be used on IE < 9 (not supported), also set a background-color
24
+to replace the rgba()s.
25
+
26
+To use a material-color.css navbar theme, remove all the theming styles in this 
27
+file and add a .navbar-[color] class to the navbar in app.php.
28
+*/
29
+
30
+/* navbar background */
31
+.navbar-inverse {
32
+    /* background-color: green; */
33
+}
34
+
35
+/* Selected page background */
36
+.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus {
37
+    background: rgba(0,0,0,.2);
38
+}
39
+
40
+.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
41
+    border-color: rgba(0,0,0,.2);
42
+}
43
+
44
+.navbar-inverse .navbar-toggle .icon-bar {
45
+    background-color: white;
46
+}
47
+
48
+.navbar-inverse .navbar-brand {
49
+    color: white;
50
+}
51
+
52
+.navbar-inverse .navbar-nav > li > a {
53
+    color: white;
54
+}
55
+
56
+.navbar-inverse .navbar-link {
57
+    color: white;
58
+}

+ 11
- 0
www/css/bootstrap.min.css
File diff suppressed because it is too large
View File


+ 4
- 0
www/css/font-awesome.min.css
File diff suppressed because it is too large
View File


+ 1951
- 0
www/css/material-color.css
File diff suppressed because it is too large
View File


+ 2
- 0
www/css/material-color.min.css
File diff suppressed because it is too large
View File


BIN
www/fonts/FontAwesome.otf View File


BIN
www/fonts/fontawesome-webfont.eot View File


+ 2671
- 0
www/fonts/fontawesome-webfont.svg
File diff suppressed because it is too large
View File


BIN
www/fonts/fontawesome-webfont.ttf View File


BIN
www/fonts/fontawesome-webfont.woff View File


BIN
www/fonts/fontawesome-webfont.woff2 View File


BIN
www/img/logo.png View File


+ 78
- 0
www/img/logo.svg View File

@@ -0,0 +1,78 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+<svg
5
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+   xmlns:cc="http://creativecommons.org/ns#"
7
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+   xmlns:svg="http://www.w3.org/2000/svg"
9
+   xmlns="http://www.w3.org/2000/svg"
10
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+   width="512"
13
+   height="512"
14
+   viewBox="0 0 512.00001 512.00001"
15
+   id="svg2"
16
+   version="1.1"
17
+   inkscape:version="0.91 r13725"
18
+   sodipodi:docname="logo.svg"
19
+   inkscape:export-filename="/home/skylar/Documents/Projects/Sources/WebAppTemplate/static/img/logo.png"
20
+   inkscape:export-xdpi="90"
21
+   inkscape:export-ydpi="90">
22
+  <defs
23
+     id="defs4">
24
+    <inkscape:perspective
25
+       sodipodi:type="inkscape:persp3d"
26
+       inkscape:vp_x="-493.3276 : 245.89848 : 1"
27
+       inkscape:vp_y="0 : 1000 : 0"
28
+       inkscape:vp_z="464.45088 : 245.89848 : 1"
29
+       inkscape:persp3d-origin="-14.438371 : 160.56515 : 1"
30
+       id="perspective4236" />
31
+  </defs>
32
+  <sodipodi:namedview
33
+     id="base"
34
+     pagecolor="#ffffff"
35
+     bordercolor="#666666"
36
+     borderopacity="1.0"
37
+     inkscape:pageopacity="0.0"
38
+     inkscape:pageshadow="2"
39
+     inkscape:zoom="0.49497475"
40
+     inkscape:cx="-135.9681"
41
+     inkscape:cy="352.66131"
42
+     inkscape:document-units="px"
43
+     inkscape:current-layer="layer1"
44
+     showgrid="false"
45
+     units="px" />
46
+  <metadata
47
+     id="metadata7">
48
+    <rdf:RDF>
49
+      <cc:Work
50
+         rdf:about="">
51
+        <dc:format>image/svg+xml</dc:format>
52
+        <dc:type
53
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
54
+        <dc:title></dc:title>
55
+      </cc:Work>
56
+    </rdf:RDF>
57
+  </metadata>
58
+  <g
59
+     inkscape:label="Layer 1"
60
+     inkscape:groupmode="layer"
61
+     id="layer1"
62
+     transform="translate(0,-540.36216)">
63
+    <rect
64
+       style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.74509804"
65
+       id="rect4726"
66
+       width="512"
67
+       height="512"
68
+       x="0"
69
+       y="540.36218"
70
+       rx="50"
71
+       ry="50" />
72
+    <path
73
+       id="path4348"
74
+       style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:9.87128067;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
75
+       d="m 132.93564,682.51771 213.96788,-43.14304 0,313.97496 -213.96788,-37.9643 z m 213.96788,-43.14304 0,313.97496 32.16084,-45.18373 0,-217.44396 z m -213.96788,43.14304 213.96788,-43.14304 32.16084,51.34727 -167.21823,22.47784 z m 78.91049,30.68207 167.21823,-22.47784 0,217.44396 -167.21823,-19.77968 z m -78.91049,-30.68207 0,232.86762 78.91049,-26.99911 0,-175.18644 z m 0,232.86762 213.96788,37.9643 32.16084,-45.18373 -167.21823,-19.77968 z"
76
+       inkscape:connector-curvature="0" />
77
+  </g>
78
+</svg>

BIN
www/img/up-arrow-black.png View File


+ 94
- 0
www/img/up-arrow-black.svg View File

@@ -0,0 +1,94 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+<svg
5
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+   xmlns:cc="http://creativecommons.org/ns#"
7
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+   xmlns:svg="http://www.w3.org/2000/svg"
9
+   xmlns="http://www.w3.org/2000/svg"
10
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+   width="64"
13
+   height="64"
14
+   viewBox="0 0 64.000001 63.999997"
15
+   id="svg2"
16
+   version="1.1"
17
+   inkscape:version="0.91 r13725"
18
+   sodipodi:docname="up-arrow-black.svg"
19
+   inkscape:export-filename="/home/skylar/Documents/Projects/Sources/SimpleInventory/static/img/up-arrow-black.png"
20
+   inkscape:export-xdpi="90"
21
+   inkscape:export-ydpi="90">
22
+  <defs
23
+     id="defs4" />
24
+  <sodipodi:namedview
25
+     id="base"
26
+     pagecolor="#ffffff"
27
+     bordercolor="#666666"
28
+     borderopacity="1.0"
29
+     inkscape:pageopacity="0.0"
30
+     inkscape:pageshadow="2"
31
+     inkscape:zoom="1.979899"
32
+     inkscape:cx="66.826957"
33
+     inkscape:cy="-6.0149722"
34
+     inkscape:document-units="px"
35
+     inkscape:current-layer="layer1"
36
+     showgrid="false"
37
+     fit-margin-top="0"
38
+     fit-margin-left="0"
39
+     fit-margin-right="0"
40
+     fit-margin-bottom="0"
41
+     units="px" />
42
+  <metadata
43
+     id="metadata7">
44
+    <rdf:RDF>
45
+      <cc:Work
46
+         rdf:about="">
47
+        <dc:format>image/svg+xml</dc:format>
48
+        <dc:type
49
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
50
+        <dc:title></dc:title>
51
+      </cc:Work>
52
+    </rdf:RDF>
53
+  </metadata>
54
+  <g
55
+     inkscape:label="Layer 1"
56
+     inkscape:groupmode="layer"
57
+     id="layer1"
58
+     transform="translate(-83.334319,-53.898981)">
59
+    <g
60
+       id="g4224"
61
+       transform="matrix(0.69842965,0,0,0.69842965,25.127004,31.746558)"
62
+       style="fill:#000000;fill-opacity:1">
63
+      <rect
64
+         ry="7.1589174"
65
+         rx="7.1589174"
66
+         y="72.534538"
67
+         x="85.33432"
68
+         height="10"
69
+         width="90"
70
+         id="rect4136"
71
+         style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
72
+      <rect
73
+         transform="matrix(0.70710678,0.70710678,-0.70710678,0.70710678,0,0)"
74
+         ry="7.1589174"
75
+         rx="7.1589174"
76
+         y="-12.636598"
77
+         x="112.29343"
78
+         height="10"
79
+         width="60"
80
+         id="rect4136-6-7"
81
+         style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
82
+      <rect
83
+         transform="matrix(0.70710678,-0.70710678,0.70710678,0.70710678,0,0)"
84
+         ry="7.1589174"
85
+         rx="7.1589174"
86
+         y="112.287"
87
+         x="2.6430364"
88
+         height="10"
89
+         width="60"
90
+         id="rect4136-6-7-5"
91
+         style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
92
+    </g>
93
+  </g>
94
+</svg>

BIN
www/img/up-arrow-white.png View File


+ 94
- 0
www/img/up-arrow-white.svg View File

@@ -0,0 +1,94 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+<svg
5
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+   xmlns:cc="http://creativecommons.org/ns#"
7
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+   xmlns:svg="http://www.w3.org/2000/svg"
9
+   xmlns="http://www.w3.org/2000/svg"
10
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+   width="64"
13
+   height="64"
14
+   viewBox="0 0 64.000001 63.999997"
15
+   id="svg2"
16
+   version="1.1"
17
+   inkscape:version="0.91 r13725"
18
+   sodipodi:docname="up-arrow-white.svg"
19
+   inkscape:export-filename="/home/skylar/Documents/Projects/Sources/SimpleInventory/static/img/up-arrow-white.png"
20
+   inkscape:export-xdpi="90"
21
+   inkscape:export-ydpi="90">
22
+  <defs
23
+     id="defs4" />
24
+  <sodipodi:namedview
25
+     id="base"
26
+     pagecolor="#ffffff"
27
+     bordercolor="#666666"
28
+     borderopacity="1.0"
29
+     inkscape:pageopacity="0.0"
30
+     inkscape:pageshadow="2"
31
+     inkscape:zoom="1.979899"
32
+     inkscape:cx="66.826957"
33
+     inkscape:cy="-6.0149722"
34
+     inkscape:document-units="px"
35
+     inkscape:current-layer="layer1"
36
+     showgrid="false"
37
+     fit-margin-top="0"
38
+     fit-margin-left="0"
39
+     fit-margin-right="0"
40
+     fit-margin-bottom="0"
41
+     units="px" />
42
+  <metadata
43
+     id="metadata7">
44
+    <rdf:RDF>
45
+      <cc:Work
46
+         rdf:about="">
47
+        <dc:format>image/svg+xml</dc:format>
48
+        <dc:type
49
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
50
+        <dc:title></dc:title>
51
+      </cc:Work>
52
+    </rdf:RDF>
53
+  </metadata>
54
+  <g
55
+     inkscape:label="Layer 1"
56
+     inkscape:groupmode="layer"
57
+     id="layer1"
58
+     transform="translate(-83.334319,-53.898981)">
59
+    <g
60
+       id="g4224"
61
+       transform="matrix(0.69842965,0,0,0.69842965,25.127004,31.746558)"
62
+       style="fill:#ffffff;fill-opacity:1">
63
+      <rect
64
+         ry="7.1589174"
65
+         rx="7.1589174"
66
+         y="72.534538"
67
+         x="85.33432"
68
+         height="10"
69
+         width="90"
70
+         id="rect4136"
71
+         style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
72
+      <rect
73
+         transform="matrix(0.70710678,0.70710678,-0.70710678,0.70710678,0,0)"
74
+         ry="7.1589174"
75
+         rx="7.1589174"
76
+         y="-12.636598"
77
+         x="112.29343"
78
+         height="10"
79
+         width="60"
80
+         id="rect4136-6-7"
81
+         style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
82
+      <rect
83
+         transform="matrix(0.70710678,-0.70710678,0.70710678,0.70710678,0,0)"
84
+         ry="7.1589174"
85
+         rx="7.1589174"
86
+         y="112.287"
87
+         x="2.6430364"
88
+         height="10"
89
+         width="60"
90
+         id="rect4136-6-7-5"
91
+         style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
92
+    </g>
93
+  </g>
94
+</svg>

+ 25
- 0
www/index.html View File

@@ -0,0 +1,25 @@
1
+<!DOCTYPE html>
2
+<html>
3
+    <head>
4
+        <title>Netsyms Business for Mobile</title>
5
+        <meta charset="UTF-8">
6
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+        
8
+        <link rel="stylesheet" href="css/bootstrap.min.css" />
9
+        <link rel="stylesheet" href="css/font-awesome.min.css" />
10
+        <link rel="stylesheet" href="css/material-color.min.css" />
11
+        <link rel="stylesheet" href="css/app.css" />
12
+        
13
+        <script src="js/jquery-3.2.1.min.js"></script>
14
+        <script src="js/bootstrap.min.js"></script>
15
+        <script src="js/app.js"></script>
16
+    </head>
17
+    <body>
18
+        <div id="modal-load-box" class="container" style='z-index: 1000;'>
19
+
20
+        </div>
21
+        <div id="content-zone" class="container">
22
+            
23
+        </div>
24
+    </body>
25
+</html>

+ 81
- 0
www/js/app.js View File

@@ -0,0 +1,81 @@
1
+
2
+$(document).ready(function () {
3
+    /* Fade out alerts */
4
+    $(".alert .close").click(function (e) {
5
+        $(this).parent().fadeOut("slow");
6
+    });
7
+});
8
+
9
+/**
10
+ * Switches the app to the given screen.
11
+ * @param {String} screenname The name of the screen to show.
12
+ * @param {String} effect FADE, SLIDE, or nothing
13
+ * @returns {undefined}
14
+ */
15
+function openscreen(screenname, effect) {
16
+    if (effect === 'FADE') {
17
+        $('#content-zone').fadeOut('slow', function () {
18
+            $('#content-zone').load("views/" + screenname + ".html", function () {
19
+                $('#content-zone').fadeIn('slow');
20
+            });
21
+        });
22
+    } else if (effect === 'SLIDE') {
23
+        $('#content-zone').slideToggle('400', function () {
24
+            $('#content-zone').load("views/" + screenname + ".html", function () {
25
+                $('#content-zone').slideToggle('400');
26
+            });
27
+        });
28
+    } else {
29
+        $('#content-zone').load("views/" + screenname + ".html");
30
+    }
31
+    currentscreen = screenname;
32
+    updateStatusBarColor();
33
+}
34
+
35
+function openfragment(fragment, target, effect) {
36
+    if (effect === 'FADE') {
37
+        $(target).fadeOut('slow', function () {
38
+            $(target).load("views/" + fragment + ".html", function () {
39
+                $(target).fadeIn('slow');
40
+            });
41
+        });
42
+    } else if (effect === 'SLIDE') {
43
+        $(target).slideToggle('400', function () {
44
+            $(target).load("views/" + fragment + ".html", function () {
45
+                $(target).slideToggle('400');
46
+            });
47
+        });
48
+    } else {
49
+        $(target).load("views/" + fragment + ".html");
50
+    }
51
+}
52
+
53
+/**
54
+ * Opens a modal dialog over the top of everything else.
55
+ * @param {String} filename screens/[filename].html
56
+ * @param {String} modalselector [#id-of-the-modal]
57
+ * @returns {undefined}
58
+ */
59
+function openmodal(filename, modalselector) {
60
+    $('#modal-load-box').load("views/" + filename + ".html", null, function (x) {
61
+        $(modalselector).css('z-index', 9999999);
62
+        $(modalselector).modal('show');
63
+    });
64
+}
65
+
66
+/**
67
+ * Close a modal (see openmodal)
68
+ * @param {String} modalselector
69
+ * @returns {undefined}
70
+ */
71
+function closemodal(modalselector) {
72
+    $(modalselector).modal(hide);
73
+}
74
+
75
+// Handle back button to close things
76
+document.addEventListener("backbutton", function (event) {
77
+    openscreen("home");
78
+}, false);
79
+
80
+function check_setup() {
81
+}

+ 7
- 0
www/js/bootstrap.min.js
File diff suppressed because it is too large
View File


+ 4
- 0
www/js/jquery-3.2.1.min.js
File diff suppressed because it is too large
View File


+ 0
- 0
www/views/home.html View File


+ 5
- 0
www/views/settings.html View File

@@ -0,0 +1,5 @@
1
+<div class="list-group">
2
+    <div class="list-group-item">
3
+        
4
+    </div>
5
+</div>

+ 45
- 0
www/views/setup.html View File

@@ -0,0 +1,45 @@
1
+<div class="panel panel-blue">
2
+    <div class="panel-heading">
3
+        <h3 class="panel-title">Setup</h3>
4
+    </div>
5
+    <div class="panel-body">
6
+        <p>Welcome! There's a few things we need to do to get everything ready.</p>
7
+
8
+        <div id="setup-fragment">
9
+
10
+        </div>
11
+    </div>
12
+    <div class="panel-footer">
13
+        <button class="btn btn-blue pull-right" onclick="nextStep()" id="setup_next_step"><span>Next</span> <i class="fa fa-chevron-right"></i></button>
14
+    </div>
15
+</div>
16
+
17
+<script>
18
+    var setup_step = 1;
19
+    var setup_max_step = 3;
20
+    var next_processing = false;
21
+    function nextStep() {
22
+        if (next_processing) {
23
+            return false;
24
+        }
25
+        next_processing = true;
26
+        processSetupFragment(function (success) {
27
+            if (success) {
28
+                setup_step++;
29
+                next_processing = false;
30
+                
31
+                if (setup_step > setup_max_step) {
32
+                    // If we're done with the last step, open the home screen
33
+                    openscreen("home", "FADE");
34
+                } else {
35
+                    // Open the next step
36
+                    openfragment("setup/step" + setup_step, "#setup-fragment", "SLIDE");
37
+                    // For the last step, change the Next button to Finish
38
+                    if (setup_step == setup_max_step) {
39
+                        $("#setup_next_step span").text("Finish");
40
+                    }
41
+                }
42
+            }
43
+        });
44
+    }
45
+</script>

+ 24
- 0
www/views/setup/step1.html View File

@@ -0,0 +1,24 @@
1
+<p>
2
+    <b>Step One</b>
3
+    <br />
4
+    Enter the Portal API connection URL. If you don't know this, contact your 
5
+    technical support for assistance.
6
+</p>
7
+
8
+<input type="url" class="form-control" id="portal_url" placeholder="https://portal-url.com" />
9
+
10
+<script>
11
+    function processSetupFragment(callback) {
12
+        var url = $('#portal_api_url').val();
13
+        $.getJSON(url + "/mobile", {
14
+            action: "ping"
15
+        }, function (resp) {
16
+           if (resp.status === "OK") {
17
+               localStorage.setItem("portal_url", url + "/mobile");
18
+               callback(true);
19
+           } else {
20
+               callback(false);
21
+           }
22
+        });
23
+    }
24
+</script>

Loading…
Cancel
Save