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 @@
nbproject/private
platforms
plugins

+ 2
- 0
.npmignore View File

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

+ 26
- 0
config.xml View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<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">
<name>Business for Mobile</name>
<description>
Mobile client for the Netsyms Business Apps.
</description>
<author email="admin@netsyms.com" href="https://netsyms.com">
Netsyms Technologies
</author>
<content src="index.html"/>
<plugin name="cordova-plugin-whitelist" spec="1"/>
<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>
</widget>

+ 23
- 0
hooks/README.md View File

@@ -0,0 +1,23 @@
<!--
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
-->
# Cordova Hooks

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 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

Copyright 1997-2012 Oracle and/or its affiliates. All rights reserved.

Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.


The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common
Development and Distribution License("CDDL") (collectively, the
"License"). You may not use this file except in compliance with the
License. You can obtain a copy of the License at
http://www.netbeans.org/cddl-gplv2.html
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
specific language governing permissions and limitations under the
License. When distributing the software, include this License Header
Notice in each file and include the License file at
nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the
License Header, with the fields enclosed by brackets [] replaced by
your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"

Contributor(s):

The Original Software is NetBeans. The Initial Developer of the Original
Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
Microsystems, Inc. All Rights Reserved.

If you wish your version of this file to be governed by only the CDDL
or only the GPL Version 2, indicate your decision by adding
"[Contributor] elects to include this software in this distribution
under the [CDDL or GPL Version 2] license." If you do not indicate a
single choice of license, a recipient has the option to distribute
your version of this file under either the CDDL, the GPL Version 2 or
to extend the choice of license to its licensees as provided above.
However, if you add GPL Version 2 code and therefore, elected the GPL
Version 2 license, then the option applies only if the new code is
made subject to such option by the copyright holder.
-->
<!--
Generated file; DO NOT EDIT.
-->
<project name="BusinessMobile" basedir="..">
<property file="nbproject/configs/${config}.properties" />

<scriptdef name="checkVersion" language="javascript">
<attribute name="first" />
<attribute name="property" />
<![CDATA[
var first = attributes.get("first");
if (first >= "3.0.0") {
project.setProperty(attributes.get("property"), true);
}
]]>
</scriptdef>
<scriptdef name="forDevice" language="javascript">
<![CDATA[
var dev = project.getProperty("device");
if (dev == "device") {
project.setProperty("build.for.device", true);
}
]]>
</scriptdef>

<target name="check-cordova-project">
<condition property="cordova.project">
<or>
<available file=".cordova"/>
<available file="hooks"/>
</or>
</condition>
</target>
<target name="upgrade-to-cordova-project" depends="check-cordova-project,check-cordova-version" unless="cordova.project">
<echo level="info" message="${cordova.command} -d create ${java.io.tmpdir}/nb_temp_project com.coolappz.${project.name} ${project.name}" />
<delete dir="${java.io.tmpdir}/nb_temp_project"/>
<exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true" >
<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"/>
<env key="JAVA_HOME" path="${jdk.home}"/>
<arg value="-d"/>
<arg value="create"/>
<arg value="${java.io.tmpdir}/nb_temp_project"/>
<arg value="com.coolappz.${project.name}"/>
<arg value="${project.name}" />
</exec>
<copy todir="." overwrite="true" failonerror="false">
<fileset dir="${java.io.tmpdir}/nb_temp_project"/>
</copy>
<delete dir="${java.io.tmpdir}/nb_temp_project"/>
<delete dir="www"/>
<copy todir="www" failonerror="false" quiet="true" >
<fileset dir="${site.root}"/>
</copy>
</target>

<target name="create-hello-world" depends="check-cordova-version">
<echo level="info" message="${cordova.command} -d create www_nb_temp com.coolappz.${project.name} ${project.name}" />
<exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
<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"/>
<env key="JAVA_HOME" path="${jdk.home}"/>
<arg value="-d"/>
<arg value="create"/>
<arg value="www_nb_temp"/>
<arg value="com.coolappz.${project.name}"/>
<arg value="${project.name}" />
</exec>
<delete dir="www"/>
<mkdir dir="www"/>
<move file="www_nb_temp/www" tofile="www"/>
<delete dir="www_nb_temp"/>
<delete file="www/config.xml"/>
</target>
<taskdef
classname="org.netbeans.modules.cordova.updatetask.ReadConfigTask"
classpath="${update.task.jar}"
name="readconfig"/>

<taskdef
classname="org.netbeans.modules.cordova.updatetask.PluginTask"
classpath="${update.task.jar}"
name="plugintask"/>
<target name="check-cordova-version">
<property environment="env"/>
<checkVersion first="${cordova.version}" property="cordova.ver.3"/>
<fail message="Cordova version 3 or greater required." unless="cordova.ver.3"/>
<readconfig/>
<forDevice/>
</target>
<target name="check-android-template">
<available file="platforms/android" property="android.generated.exists"/>
</target>

<target name="check-ios-template">
<available file="platforms/ios" property="ios.generated.exists"/>
</target>
<target name="create-android" depends="check-android-template,check-cordova-version,upgrade-to-cordova-project" unless="android.generated.exists">
<echo level="info" message="${cordova.command} -d platform add android"/>
<exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
<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"/>
<env key="JAVA_HOME" path="${jdk.home}"/>
<arg value="-d"/>
<arg value="platform"/>
<arg value="add"/>
<arg value="android"/>
</exec>
</target>
<target name="create-ios" depends="check-ios-template,check-cordova-version,upgrade-to-cordova-project" unless="ios.generated.exists">
<echo level="info" message="${cordova.command} -d platform add ios"/>
<exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" dir="." failonerror="true">
<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"/>
<env key="JAVA_HOME" path="${jdk.home}"/>
<arg value="-d"/>
<arg value="platform"/>
<arg value="add"/>
<arg value="ios"/>
</exec>
</target>

<target name="rebuild-ios" depends="clean-ios,build-ios"/>

<target name="build-ios" depends="create-ios,update-plugins,update-ios,build-ios-xcodebuild,build-ios-ipa"/>

<target name="build-ios-xcodebuild">
<property name="path" location="platforms/ios/build"/>
<exec executable="xcodebuild" dir="platforms/ios" failonerror="true">
<arg value="-project"/>
<arg value="${project.name}.xcodeproj"/>
<arg value="ARCHS=${ios.build.arch}"/>
<arg value="-target"/>
<arg value="${project.name}"/>
<arg value="-configuration"/>
<arg value="Release"/>
<arg value="-sdk"/>
<arg value="${ios.build.sdk}" />
<arg value="build"/>
<arg value="CONFIGURATION_BUILD_DIR=${path}"/>
</exec>
</target>
<target name="build-ios-ipa" if="build.for.device">
<exec executable="xcrun" dir="platforms/ios/build" failonerror="true">
<env key="CODESIGN_ALLOCATE" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate" />
<arg value="-sdk"/>
<arg value="${ios.build.sdk}" />
<arg value="PackageApplication"/>
<arg value="-v"/>
<arg value="${project.name}.app"/>
<arg value="-o"/>
<arg value="${basedir}/platforms/ios/build/${project.name}.ipa"/>
<arg value="--sign"/>
<arg value="${ios.certificate.name}"/>
<arg value="--embed"/>
<arg value="${ios.provisioning.profile}"/>
</exec>
<available file="${basedir}/platforms/ios/build/${project.name}.ipa" property="ipa.found"/>
<fail unless="ipa.found" message="PackageApplication failed."/>
</target>

<target name="sim-ios" depends="build-ios,ios-run-device,ios-run-simulator">
</target>
<target name="ios-run-device" if="build.for.device">
<echo>
Install "${basedir}/platforms/ios/build/${project.name}.ipa" through iTunes and run it.
</echo>
<exec executable="open" failonerror="true">
<arg value="${basedir}/platforms/ios/build/${project.name}.ipa"/>
</exec>
</target>

<target name="ios-run-simulator" unless="build.for.device">
<exec executable="killall" dir="platforms/ios/build">
<arg value="launchd_sim"/>
</exec>
<exec executable="${ios.sim.exec}" dir="platforms/ios/build">
<arg line="launch ${project.name}.app ${ios.device.args} --exit"/>
</exec>
</target>
<target name="update-plugins">
<plugintask/>
</target>
<target name="update-android">
<echo level="info" message="${cordova.command} prepare android"/>

<exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
<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"/>
<env key="JAVA_HOME" path="${jdk.home}"/>
<arg value="prepare"/>
<arg value="android"/>
</exec>
</target>
<target name="update-ios">
<echo level="info" message="${cordova.command} prepare ios"/>
<exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
<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"/>
<env key="JAVA_HOME" path="${jdk.home}"/>
<arg value="prepare"/>
<arg value="ios"/>
</exec>
</target>
<target name="rebuild-android" depends="clean-android,build-android"/>
<target name="build-android" depends="create-android,update-plugins">
<echo level="info" message="${cordova.command} -d build android"/>
<exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
<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"/>
<env key="JAVA_HOME" path="${jdk.home}"/>
<arg value="-d"/>
<arg value="build"/>
<arg value="android"/>
</exec>
</target>
<target name="sim-android" depends="create-android,update-plugins">
<echo level="info" message="${cordova.command} -d ${android.target.device.arg} android"/>
<exec executable="${cordova.command}" resolveexecutable="true" searchpath="true" failonerror="true">
<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"/>
<env key="JAVA_HOME" path="${jdk.home}"/>
<arg value="-d"/>
<arg value="${android.target.device.arg}"/>
<arg value="android"/>
</exec>
</target>
<target name="clean-android" depends="check-android-template" if="android.generated.exists">
<exec executable="./gradlew" dir="platforms/android">
<arg value="clean" />
</exec>
</target>
<target name="clean-ios" depends="check-ios-template" if="ios.generated.exists">
<exec executable="platforms/ios/cordova/clean" />
</target>
</project>

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

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

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

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

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

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

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

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

+ 31
- 0
nbproject/plugins.properties View File

@@ -0,0 +1,31 @@
# This is a list of plugins installed in your project
# You can delete or add new plugins
#
# Format is following:
# id.of.plugin=url_of_repository
#
# Corresponding "id.of.plugin" can be found in the plugin's plugin.xml file:
# <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="foo.bar.plugin" version="0.0.1">
#
# This list contains all core cordova plugins.
#
# For more information about plugins see http://cordova.apache.org/blog/releases/2013/07/23/cordova-3.html
#

cordova-plugin-device=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
cordova-plugin-network-information=https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git
cordova-plugin-battery-status=https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git
cordova-plugin-device-motion=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git
cordova-plugin-device-orientation=https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation.git
cordova-plugin-geolocation=https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git
cordova-plugin-camera=https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
cordova-plugin-media-capture=https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git
cordova-plugin-media=https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git
cordova-plugin-file=https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
cordova-plugin-file-transfer=https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git
cordova-plugin-dialogs=https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git
cordova-plugin-vibration=https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git
cordova-plugin-contacts=https://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts.git
cordova-plugin-globalization=https://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization.git
cordova-plugin-splashscreen=https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
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 @@
auxiliary.org-netbeans-modules-cordova.cordova_5f_build_5f_script_5f_version=52
auxiliary.org-netbeans-modules-cordova.phonegap=true
file.reference.BusinessMobile-test=test
file.reference.BusinessMobile-www=www
files.encoding=UTF-8
site.root.folder=${file.reference.BusinessMobile-www}
test.folder=${file.reference.BusinessMobile-test}

+ 9
- 0
nbproject/project.xml View File

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

+ 9
- 0
package.json View File

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

+ 29
- 0
res/README.md View File

@@ -0,0 +1,29 @@
<!--
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
-->

Note that these image resources are not copied into a project when a project
is created with the CLI. Although there are default image resources in a
newly-created project, those come from the platform-specific project template,
which can generally be found in the platform's `template` directory. Until
icon and splashscreen support is added to the CLI, these image resources
aren't used directly.

See https://issues.apache.org/jira/browse/CB-5145

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

Before After
Width: 36  |  Height: 36  |  Size: 3.0KB

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

Before After
Width: 48  |  Height: 48  |  Size: 4.0KB

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

Before After
Width: 72  |  Height: 72  |  Size: 5.9KB

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

Before After
Width: 96  |  Height: 96  |  Size: 7.5KB

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

Before After
Width: 48  |  Height: 48  |  Size: 4.0KB

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

Before After
Width: 50  |  Height: 50  |  Size: 5.6KB

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

Before After
Width: 80  |  Height: 80  |  Size: 7.1KB

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

Before After
Width: 128  |  Height: 128  |  Size: 11KB

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

Before After
Width: 80  |  Height: 80  |  Size: 7.1KB

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

Before After
Width: 80  |  Height: 80  |  Size: 7.1KB

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

Before After
Width: 114  |  Height: 114  |  Size: 7.7KB

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

Before After
Width: 57  |  Height: 57  |  Size: 3.8KB

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

Before After
Width: 144  |  Height: 144  |  Size: 11KB

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

Before After
Width: 72  |  Height: 72  |  Size: 4.8KB

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

Before After
Width: 128  |  Height: 128  |  Size: 11KB

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

Before After
Width: 64  |  Height: 64  |  Size: 5.3KB

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

Before After
Width: 173  |  Height: 173  |  Size: 22KB

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

Before After
Width: 48  |  Height: 48  |  Size: 4.0KB

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

Before After
Width: 62  |  Height: 62  |  Size: 7.2KB

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

Before After
Width: 800  |  Height: 480  |  Size: 213KB

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

Before After
Width: 480  |  Height: 800  |  Size: 217KB

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

Before After
Width: 320  |  Height: 200  |  Size: 42KB

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

Before After
Width: 200  |  Height: 320  |  Size: 41KB

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

Before After
Width: 480  |  Height: 320  |  Size: 90KB

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

Before After
Width: 320  |  Height: 480  |  Size: 88KB

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

Before After
Width: 1280  |  Height: 720  |  Size: 478KB

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

Before After
Width: 720  |  Height: 1280  |  Size: 493KB

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

Before After
Width: 320  |  Height: 480  |  Size: 88KB

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

Before After
Width: 480  |  Height: 800  |  Size: 217KB

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

Before After
Width: 240  |  Height: 400  |  Size: 105KB

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

Before After
Width: 480  |  Height: 800  |  Size: 217KB

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

Before After
Width: 225  |  Height: 225  |  Size: 16KB

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

Before After
Width: 768  |  Height: 1280  |  Size: 59KB

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

Before After
Width: 720  |  Height: 720  |  Size: 49KB

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

Before After
Width: 1280  |  Height: 768  |  Size: 56KB

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

Before After
Width: 2048  |  Height: 1536  |  Size: 2.5MB

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

Before After
Width: 1024  |  Height: 768  |  Size: 667KB

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

Before After
Width: 1536  |  Height: 2048  |  Size: 2.5MB

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

Before After
Width: 768  |  Height: 1024  |  Size: 668KB

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

Before After
Width: 960  |  Height: 640  |  Size: 332KB

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

Before After
Width: 480  |  Height: 320  |  Size: 90KB

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

Before After
Width: 640  |  Height: 960  |  Size: 342KB

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

Before After
Width: 640  |  Height: 1136  |  Size: 33KB

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

Before After
Width: 320  |  Height: 480  |  Size: 92KB

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

@@ -0,0 +1,24 @@
<!--
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
-->

# Tizen Splash Screen

Splash screens are unsupported on the Tizen platform.

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

Before After
Width: 64  |  Height: 64  |  Size: 5.3KB

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

Before After
Width: 480  |  Height: 800  |  Size: 22KB

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

@@ -0,0 +1,58 @@
.banner-image {
max-height: 100px;
margin: 2em auto;
border: 1px solid grey;
border-radius: 12px;
}

.navbar-brand {
font-size: 110%;
}

.footer {
margin-top: 10em;
text-align: center;
}

/*
==============================
THEMING
==============================

Changing the .navbar-inverse background should be enough on modern browsers.
If this app is to be used on IE < 9 (not supported), also set a background-color
to replace the rgba()s.

To use a material-color.css navbar theme, remove all the theming styles in this
file and add a .navbar-[color] class to the navbar in app.php.
*/

/* navbar background */
.navbar-inverse {
/* background-color: green; */
}

/* Selected page background */
.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus {
background: rgba(0,0,0,.2);
}

.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
border-color: rgba(0,0,0,.2);
}

.navbar-inverse .navbar-toggle .icon-bar {
background-color: white;
}

.navbar-inverse .navbar-brand {
color: white;
}

.navbar-inverse .navbar-nav > li > a {
color: white;
}

.navbar-inverse .navbar-link {
color: white;
}

+ 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

Before After
Width: 512  |  Height: 512  |  Size: 12KB

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

@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="512"
height="512"
viewBox="0 0 512.00001 512.00001"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="logo.svg"
inkscape:export-filename="/home/skylar/Documents/Projects/Sources/WebAppTemplate/static/img/logo.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="-493.3276 : 245.89848 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="464.45088 : 245.89848 : 1"
inkscape:persp3d-origin="-14.438371 : 160.56515 : 1"
id="perspective4236" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.49497475"
inkscape:cx="-135.9681"
inkscape:cy="352.66131"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
units="px" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-540.36216)">
<rect
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.74509804"
id="rect4726"
width="512"
height="512"
x="0"
y="540.36218"
rx="50"
ry="50" />
<path
id="path4348"
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"
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"
inkscape:connector-curvature="0" />
</g>
</svg>

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

Before After
Width: 64  |  Height: 64  |  Size: 516B

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

@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
viewBox="0 0 64.000001 63.999997"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="up-arrow-black.svg"
inkscape:export-filename="/home/skylar/Documents/Projects/Sources/SimpleInventory/static/img/up-arrow-black.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.979899"
inkscape:cx="66.826957"
inkscape:cy="-6.0149722"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
units="px" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-83.334319,-53.898981)">
<g
id="g4224"
transform="matrix(0.69842965,0,0,0.69842965,25.127004,31.746558)"
style="fill:#000000;fill-opacity:1">
<rect
ry="7.1589174"
rx="7.1589174"
y="72.534538"
x="85.33432"
height="10"
width="90"
id="rect4136"
style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
transform="matrix(0.70710678,0.70710678,-0.70710678,0.70710678,0,0)"
ry="7.1589174"
rx="7.1589174"
y="-12.636598"
x="112.29343"
height="10"
width="60"
id="rect4136-6-7"
style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
transform="matrix(0.70710678,-0.70710678,0.70710678,0.70710678,0,0)"
ry="7.1589174"
rx="7.1589174"
y="112.287"
x="2.6430364"
height="10"
width="60"
id="rect4136-6-7-5"
style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
</svg>

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

Before After
Width: 64  |  Height: 64  |  Size: 538B

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

@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64"
height="64"
viewBox="0 0 64.000001 63.999997"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="up-arrow-white.svg"
inkscape:export-filename="/home/skylar/Documents/Projects/Sources/SimpleInventory/static/img/up-arrow-white.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.979899"
inkscape:cx="66.826957"
inkscape:cy="-6.0149722"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
units="px" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-83.334319,-53.898981)">
<g
id="g4224"
transform="matrix(0.69842965,0,0,0.69842965,25.127004,31.746558)"
style="fill:#ffffff;fill-opacity:1">
<rect
ry="7.1589174"
rx="7.1589174"
y="72.534538"
x="85.33432"
height="10"
width="90"
id="rect4136"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
transform="matrix(0.70710678,0.70710678,-0.70710678,0.70710678,0,0)"
ry="7.1589174"
rx="7.1589174"
y="-12.636598"
x="112.29343"
height="10"
width="60"
id="rect4136-6-7"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
transform="matrix(0.70710678,-0.70710678,0.70710678,0.70710678,0,0)"
ry="7.1589174"
rx="7.1589174"
y="112.287"
x="2.6430364"
height="10"
width="60"
id="rect4136-6-7-5"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
</svg>

+ 25
- 0
www/index.html View File

@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>Netsyms Business for Mobile</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/font-awesome.min.css" />
<link rel="stylesheet" href="css/material-color.min.css" />
<link rel="stylesheet" href="css/app.css" />
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/app.js"></script>
</head>
<body>
<div id="modal-load-box" class="container" style='z-index: 1000;'>

</div>
<div id="content-zone" class="container">
</div>
</body>
</html>

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

@@ -0,0 +1,81 @@

$(document).ready(function () {
/* Fade out alerts */
$(".alert .close").click(function (e) {
$(this).parent().fadeOut("slow");
});
});

/**
* Switches the app to the given screen.
* @param {String} screenname The name of the screen to show.
* @param {String} effect FADE, SLIDE, or nothing
* @returns {undefined}
*/
function openscreen(screenname, effect) {
if (effect === 'FADE') {
$('#content-zone').fadeOut('slow', function () {
$('#content-zone').load("views/" + screenname + ".html", function () {
$('#content-zone').fadeIn('slow');
});
});
} else if (effect === 'SLIDE') {
$('#content-zone').slideToggle('400', function () {
$('#content-zone').load("views/" + screenname + ".html", function () {
$('#content-zone').slideToggle('400');
});
});
} else {
$('#content-zone').load("views/" + screenname + ".html");
}
currentscreen = screenname;
updateStatusBarColor();
}

function openfragment(fragment, target, effect) {
if (effect === 'FADE') {
$(target).fadeOut('slow', function () {
$(target).load("views/" + fragment + ".html", function () {
$(target).fadeIn('slow');
});
});
} else if (effect === 'SLIDE') {
$(target).slideToggle('400', function () {
$(target).load("views/" + fragment + ".html", function () {
$(target).slideToggle('400');
});
});
} else {
$(target).load("views/" + fragment + ".html");
}
}

/**
* Opens a modal dialog over the top of everything else.
* @param {String} filename screens/[filename].html
* @param {String} modalselector [#id-of-the-modal]
* @returns {undefined}
*/
function openmodal(filename, modalselector) {
$('#modal-load-box').load("views/" + filename + ".html", null, function (x) {
$(modalselector).css('z-index', 9999999);
$(modalselector).modal('show');
});
}

/**
* Close a modal (see openmodal)
* @param {String} modalselector
* @returns {undefined}
*/
function closemodal(modalselector) {
$(modalselector).modal(hide);
}

// Handle back button to close things
document.addEventListener("backbutton", function (event) {
openscreen("home");
}, false);

function check_setup() {
}

+ 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 @@
<div class="list-group">
<div class="list-group-item">
</div>
</div>

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

@@ -0,0 +1,45 @@
<div class="panel panel-blue">
<div class="panel-heading">
<h3 class="panel-title">Setup</h3>
</div>
<div class="panel-body">
<p>Welcome! There's a few things we need to do to get everything ready.</p>

<div id="setup-fragment">

</div>
</div>
<div class="panel-footer">
<button class="btn btn-blue pull-right" onclick="nextStep()" id="setup_next_step"><span>Next</span> <i class="fa fa-chevron-right"></i></button>
</div>
</div>

<script>
var setup_step = 1;
var setup_max_step = 3;
var next_processing = false;
function nextStep() {
if (next_processing) {
return false;
}
next_processing = true;
processSetupFragment(function (success) {
if (success) {
setup_step++;
next_processing = false;
if (setup_step > setup_max_step) {
// If we're done with the last step, open the home screen
openscreen("home", "FADE");
} else {
// Open the next step
openfragment("setup/step" + setup_step, "#setup-fragment", "SLIDE");
// For the last step, change the Next button to Finish
if (setup_step == setup_max_step) {
$("#setup_next_step span").text("Finish");
}
}
}
});
}
</script>

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

@@ -0,0 +1,24 @@
<p>
<b>Step One</b>
<br />
Enter the Portal API connection URL. If you don't know this, contact your
technical support for assistance.
</p>

<input type="url" class="form-control" id="portal_url" placeholder="https://portal-url.com" />

<script>
function processSetupFragment(callback) {
var url = $('#portal_api_url').val();
$.getJSON(url + "/mobile", {
action: "ping"
}, function (resp) {
if (resp.status === "OK") {
localStorage.setItem("portal_url", url + "/mobile");
callback(true);
} else {
callback(false);
}
});
}
</script>

Loading…
Cancel
Save