Setup Cordova, NW.js, and icons

This commit is contained in:
Skylar Ittner 2018-06-29 18:04:37 -06:00
parent 419a10c6da
commit 8b32fefb41
82 changed files with 187 additions and 164 deletions

View File

@ -1,3 +0,0 @@
{
"directory": "www/bower_components"
}

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
nbproject/private
hooks
node_modules
platforms
plugins
test

View File

@ -1,10 +0,0 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
});
};

View File

@ -1,13 +0,0 @@
{
"name": "PCInfoClient",
"version": "1.0.0",
"main": "path/to/main.css",
"ignore": [
".jshintrc",
"**/*.txt"
],
"dependencies": {
},
"devDependencies": {
}
}

View File

@ -1,13 +1,14 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml version='1.0' encoding='utf-8'?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="com.netsyms.PCInfoClient" version="1.0.0"> <widget id="com.netsyms.PCInfoClient" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>PCInfoClient</name> <name>PC Info</name>
<description> <description>
A sample Apache Cordova application that responds to the deviceready event. Cross-platform API client app for PCInfo
</description> </description>
<author email="dev@cordova.apache.org" href="http://cordova.io"> <author email="skylar@netsyms.com" href="https://netsyms.com">
Apache Cordova Team Netsyms Technologies
</author> </author>
<content src="index.html" /> <content src="index.html" />
<icon src="res/logo.png" />
<plugin name="cordova-plugin-whitelist" spec="1" /> <plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" /> <access origin="*" />
<allow-intent href="http://*/*" /> <allow-intent href="http://*/*" />
@ -18,9 +19,42 @@
<allow-intent href="geo:*" /> <allow-intent href="geo:*" />
<platform name="android"> <platform name="android">
<allow-intent href="market:*" /> <allow-intent href="market:*" />
<preference name="AndroidLaunchMode" value="singleTop" />
<preference name="android-minSdkVersion" value="19" />
<preference name="android-targetSdkVersion" value="27" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="HeaderColor" value="#4caf50" />
<preference name="StatusBarBackgroundColor" value="#388e3c" />
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" />
</edit-config>
<resource-file src="res/android/values/ic_launcher_background.xml" target="app/src/main/res/values/ic_launcher_background.xml" />
<resource-file src="res/android/drawable/ic_launcher_foreground.xml" target="app/src/main/res/drawable/ic_launcher_foreground.xml" />
<resource-file src="res/android/mipmap-anydpi-v26/ic_launcher.xml" target="app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml" />
<resource-file src="res/android/mipmap-anydpi-v26/ic_launcher_round.xml" target="app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml" />
<resource-file src="res/android/mipmap-hdpi/ic_launcher.png" target="app/src/main/res/mipmap-hdpi/ic_launcher.png" />
<resource-file src="res/android/mipmap-hdpi/ic_launcher_round.png" target="app/src/main/res/mipmap-hdpi/ic_launcher_round.png" />
<resource-file src="res/android/mipmap-mdpi/ic_launcher.png" target="app/src/main/res/mipmap-mdpi/ic_launcher.png" />
<resource-file src="res/android/mipmap-mdpi/ic_launcher_round.png" target="app/src/main/res/mipmap-mdpi/ic_launcher_round.png" />
<resource-file src="res/android/mipmap-xhdpi/ic_launcher.png" target="app/src/main/res/mipmap-xhdpi/ic_launcher.png" />
<resource-file src="res/android/mipmap-xhdpi/ic_launcher_round.png" target="app/src/main/res/mipmap-xhdpi/ic_launcher_round.png" />
<resource-file src="res/android/mipmap-xxhdpi/ic_launcher.png" target="app/src/main/res/mipmap-xxhdpi/ic_launcher.png" />
<resource-file src="res/android/mipmap-xxhdpi/ic_launcher_round.png" target="app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png" />
<resource-file src="res/android/mipmap-xxxhdpi/ic_launcher.png" target="app/src/main/res/mipmap-xxxhdpi/ic_launcher.png" />
<resource-file src="res/android/mipmap-xxxhdpi/ic_launcher_round.png" target="app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png" />
</platform> </platform>
<platform name="ios"> <platform name="ios">
<allow-intent href="itms:*" /> <allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" /> <allow-intent href="itms-apps:*" />
</platform> </platform>
<plugin name="cordova-plugin-headercolor" spec="^1.0.0" />
<plugin name="cordova-plugin-statusbar" spec="^2.4.2" />
<plugin name="phonegap-plugin-barcodescanner" spec="^8.0.0">
<variable name="ANDROID_SUPPORT_V4_VERSION" value="27.+" />
</plugin>
<plugin name="cordova-plugin-dialogs" spec="https://github.com/apache/cordova-plugin-dialogs.git" />
<plugin name="cordova-plugin-console" spec="https://github.com/apache/cordova-plugin-console.git" />
<plugin name="cordova-plugin-file" spec="https://github.com/apache/cordova-plugin-file.git" />
<plugin name="cordova-plugin-device" spec="https://github.com/apache/cordova-plugin-device.git" />
<engine name="android" spec="^7.0.0" />
</widget> </widget>

View File

@ -1,11 +0,0 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var gulp = require('gulp');
gulp.task('default', function () {
// place code for your default task here
});

View File

@ -1,31 +1,8 @@
# This is a list of plugins installed in your project cordova-plugin-device=https://github.com/apache/cordova-plugin-device.git
# You can delete or add new plugins cordova-plugin-dialogs=https://github.com/apache/cordova-plugin-dialogs.git
# cordova-plugin-console=https://github.com/apache/cordova-plugin-console.git
# Format is following: cordova-plugin-whitelist=https://github.com/apache/cordova-plugin-whitelist.git
# id.of.plugin=url_of_repository phonegap-plugin-barcodescanner=https://github.com/phonegap/phonegap-plugin-barcodescanner.git
# cordova-plugin-statusbar=https://github.com/apache/cordova-plugin-statusbar.git
# Corresponding "id.of.plugin" can be found in the plugin's plugin.xml file: cordova-plugin-headercolor=https://github.com/tomloprod/cordova-plugin-headercolor.git
# <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="foo.bar.plugin" version="0.0.1"> cordova-plugin-file=https://github.com/apache/cordova-plugin-file.git
#
# 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

View File

@ -1,5 +1,5 @@
auxiliary.org-netbeans-modules-cordova.cordova_5f_build_5f_script_5f_version=52 auxiliary.org-netbeans-modules-cordova.cordova_5f_build_5f_script_5f_version=52
auxiliary.org-netbeans-modules-cordova.phonegap=true auxiliary.org-netbeans-modules-cordova.phonegap=false
file.reference.PCInfoClient-test=test file.reference.PCInfoClient-test=test
file.reference.PCInfoClient-www=www file.reference.PCInfoClient-www=www
files.encoding=UTF-8 files.encoding=UTF-8

View File

@ -1,12 +1,40 @@
{ {
"name": "com.coolappz.pcinfoclient", "name": "com.netsyms.pcinfoclient",
"displayName": "PCInfoClient", "displayName": "PC Info",
"version": "1.0.0", "version": "1.0.0",
"description": "A sample Apache Cordova application that responds to the deviceready event.", "description": "Cross-platform API client app for PCInfo",
"main": "index.js", "main": "www/index.html",
"scripts": { "author": "Netsyms Technologies",
"test": "echo \"Error: no test specified\" && exit 1" "chromium-args": "--enable-logging=stderr",
"window": {
"icon": "res/logo-whitebg.png"
}, },
"author": "Apache Cordova Team", "dependencies": {
"license": "Apache-2.0" "cordova-android": "^7.0.0",
"cordova-plugin-console": "git+https://github.com/apache/cordova-plugin-console.git",
"cordova-plugin-device": "git+https://github.com/apache/cordova-plugin-device.git",
"cordova-plugin-dialogs": "git+https://github.com/apache/cordova-plugin-dialogs.git",
"cordova-plugin-file": "git+https://github.com/apache/cordova-plugin-file.git",
"cordova-plugin-headercolor": "^1.0.0",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"phonegap-plugin-barcodescanner": "^8.0.0"
},
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-headercolor": {},
"cordova-plugin-statusbar": {},
"phonegap-plugin-barcodescanner": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"cordova-plugin-dialogs": {},
"cordova-plugin-console": {},
"cordova-plugin-file": {},
"cordova-plugin-device": {}
},
"platforms": [
"android"
]
}
} }

View File

@ -1,29 +0,0 @@
<!--
#
# 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

View File

@ -0,0 +1,14 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="867.79663"
android:viewportHeight="867.79663">
<group android:translateX="177.8983"
android:translateY="177.8983">
<path
android:pathData="m130.2,101.1c-16,0 -29,13 -29,29l0,174.2c0,16 13,29 29,29l251.6,0c16,0 29,-13 29,-29l0,-174.2c0,-16 -13,-29 -29,-29l-251.6,0zM256.3,108.9c16.5,0 29.8,13.3 29.8,29.8 0,0.4 -0,0.8 -0,1.2l86.1,0 0,154.9 -76.1,0 0,17.9c0,4.6 -3.7,8.3 -8.3,8.3l-62.9,0c-4.6,0 -8.3,-3.7 -8.3,-8.3l0,-17.9 -76.7,0 0,-154.9 86.6,0c-0,-0.4 -0,-0.8 -0,-1.2 0,-16.5 13.3,-29.8 29.8,-29.8zM226.5,139.9c0.6,15.9 13.7,28.6 29.8,28.6 16.1,0 29.2,-12.7 29.8,-28.6l-59.6,0zM216.5,294.7 L296,294.7 296,292.8c0,-4.6 -3.7,-8.3 -8.3,-8.3l-8.3,0 0,-87.9c0,-4.6 -3.7,-8.3 -8.3,-8.3l-46.4,0c-4.6,0 -8.3,3.7 -8.3,8.3l0,19.8c0,4.6 3.7,8.3 8.3,8.3l8.3,0 0,59.8 -8.3,0c-4.6,0 -8.3,3.7 -8.3,8.3l0,1.9zM69.7,352.8c-4,0 -7.3,3.3 -7.3,7.3l0,21.8c0,16 13,29 29,29l329.1,0c16,0 29,-13 29,-29l0,-21.8c0,-4 -3.3,-7.3 -7.3,-7.3l-144.3,0c-1.8,0 -3.3,1.3 -3.6,3.1 -1.5,9.2 -9.4,16.3 -19.1,16.3l-38.7,0c-9.7,0 -17.7,-7.1 -19.1,-16.3 -0.3,-1.8 -1.8,-3.1 -3.6,-3.1l-144.3,0z"
android:fillAlpha="1"
android:strokeColor="#00000000"
android:fillColor="#4caf50"/>
</group>
</vector>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>

View File

@ -0,0 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="app_name">PC Info</string>
<string name="launcher_name">@string/app_name</string>
<string name="activity_name">@string/launcher_name</string>
</resources>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

BIN
res/logo-whitebg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

BIN
res/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 493 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 668 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

View File

@ -1,24 +0,0 @@
<!--
#
# 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.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

12
www/css/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

3
www/css/index.css Normal file
View File

@ -0,0 +1,3 @@
.navbar-brand {
font-size: 150%;
}

7
www/css/material-color.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- <title>PC Info</title>
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head> <link rel="stylesheet" href="css/bootstrap.min.css" />
<body> <link rel="stylesheet" href="css/material-color.min.css" />
<div>TODO write content</div> <link rel="stylesheet" href="css/index.css" />
</body> <script src="js/fontawesome.js"></script>
</html> <script src="js/jquery-3.3.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<nav class="navbar navbar-expand-lg navbar-dark bg-green py-2">
<span class="navbar-brand py-0 my-0">PC Info</span>
</nav>

7
www/js/bootstrap.min.js vendored Normal file

File diff suppressed because one or more lines are too long

5
www/js/fontawesome.js Normal file

File diff suppressed because one or more lines are too long

2
www/js/jquery-3.3.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long