├── libs
├── framework7
│ ├── css
│ │ └── my-app.css
│ ├── app-icon.png
│ ├── img
│ │ ├── i-f7-ios.png
│ │ ├── i-f7-material.png
│ │ ├── i-form-comment-material.svg
│ │ ├── i-form-email-material.svg
│ │ ├── i-form-calendar-material.svg
│ │ ├── i-form-tel-material.svg
│ │ ├── i-form-name-material.svg
│ │ ├── i-form-password-material.svg
│ │ ├── i-form-toggle-material.svg
│ │ ├── i-form-settings-material.svg
│ │ ├── i-form-toggle-ios.svg
│ │ ├── i-form-gender-material.svg
│ │ ├── i-form-email-ios.svg
│ │ ├── i-form-gender-ios.svg
│ │ ├── i-form-url-material.svg
│ │ ├── i-form-calendar-ios.svg
│ │ ├── i-form-password-ios.svg
│ │ ├── i-form-comment-ios.svg
│ │ ├── i-form-settings-ios.svg
│ │ ├── i-form-name-ios.svg
│ │ ├── i-form-tel-ios.svg
│ │ └── i-form-url-ios.svg
│ ├── evothings.json
│ ├── uninstall.js
│ ├── install.js
│ └── js
│ │ └── my-app.js
├── jquery
│ ├── VERSION
│ ├── app-icon.png
│ └── evothings.json
├── onsenui
│ ├── .npmignore
│ ├── app-icon.png
│ ├── css
│ │ ├── ionicons
│ │ │ └── fonts
│ │ │ │ ├── ionicons.eot
│ │ │ │ ├── ionicons.ttf
│ │ │ │ └── ionicons.woff
│ │ ├── font_awesome
│ │ │ └── fonts
│ │ │ │ ├── FontAwesome.otf
│ │ │ │ ├── fontawesome-webfont.eot
│ │ │ │ ├── fontawesome-webfont.ttf
│ │ │ │ ├── fontawesome-webfont.woff
│ │ │ │ └── fontawesome-webfont.woff2
│ │ └── material-design-iconic-font
│ │ │ └── fonts
│ │ │ ├── Material-Design-Iconic-Font.eot
│ │ │ ├── Material-Design-Iconic-Font.ttf
│ │ │ ├── Material-Design-Iconic-Font.woff
│ │ │ └── Material-Design-Iconic-Font.woff2
│ ├── evothings.json
│ ├── LICENSE
│ ├── uninstall.js
│ └── install.js
├── evothings
│ ├── VERSION
│ ├── evothings-dist-base.js
│ ├── ui
│ │ └── ui.js
│ ├── dialog-iotsensor
│ │ ├── iotsensor-raw.js
│ │ ├── iotsensor-sfl.js
│ │ └── README.md
│ ├── arduinoble
│ │ └── arduinoble.js
│ ├── util
│ │ └── util.js
│ ├── evothings.js
│ ├── arduinotcp
│ │ └── arduinotcp.js
│ └── tisensortag
│ │ ├── tisensortag.js
│ │ ├── tisensortag-ble-cc2541.js
│ │ └── tisensortag-ble-cc2650.js
├── mdl
│ ├── app-icon.png
│ ├── icons
│ │ ├── MaterialIcons-Regular.eot
│ │ ├── MaterialIcons-Regular.ttf
│ │ ├── MaterialIcons-Regular.woff
│ │ ├── MaterialIcons-Regular.woff2
│ │ ├── README.md
│ │ ├── material-icons.css
│ │ └── LICENSE
│ ├── evothings.json
│ ├── bower.json
│ ├── uninstall.js
│ ├── install.js
│ ├── package.json
│ └── LICENSE
├── mqttws
│ ├── app-icon.png
│ └── evothings.json
├── smoothie
│ ├── app-icon.png
│ └── evothings.json
├── bleat
│ ├── VERSION
│ ├── LICENSE
│ ├── bluetooth.helpers.js
│ └── api.classic.js
└── lorawan
│ └── evothings.json
├── .gitignore
├── README.md
├── arduino
├── arduinoethernet
│ └── arduinoethernet.ino
└── arduinowifi
│ ├── arduinowifi_cc3000.ino
│ └── arduinowifi.ino
└── LICENSE
/libs/framework7/css/my-app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/jquery/VERSION:
--------------------------------------------------------------------------------
1 | jquery-2.1.1.min.js
2 |
--------------------------------------------------------------------------------
/libs/onsenui/.npmignore:
--------------------------------------------------------------------------------
1 | onsenui.zip
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | out/
3 | generated
4 |
--------------------------------------------------------------------------------
/libs/evothings/VERSION:
--------------------------------------------------------------------------------
1 | Evothings Libraries version 2.1.0
2 |
--------------------------------------------------------------------------------
/libs/mdl/app-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/mdl/app-icon.png
--------------------------------------------------------------------------------
/libs/jquery/app-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/jquery/app-icon.png
--------------------------------------------------------------------------------
/libs/mqttws/app-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/mqttws/app-icon.png
--------------------------------------------------------------------------------
/libs/onsenui/app-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/app-icon.png
--------------------------------------------------------------------------------
/libs/smoothie/app-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/smoothie/app-icon.png
--------------------------------------------------------------------------------
/libs/framework7/app-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/framework7/app-icon.png
--------------------------------------------------------------------------------
/libs/bleat/VERSION:
--------------------------------------------------------------------------------
1 | Bleat version 2016-05-15 commit 7d0fff9b04eb78f3eeff023219322c36621ea3f6
2 | https://github.com/thegecko/bleat
3 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-f7-ios.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/framework7/img/i-f7-ios.png
--------------------------------------------------------------------------------
/libs/framework7/img/i-f7-material.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/framework7/img/i-f7-material.png
--------------------------------------------------------------------------------
/libs/mdl/icons/MaterialIcons-Regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/mdl/icons/MaterialIcons-Regular.eot
--------------------------------------------------------------------------------
/libs/mdl/icons/MaterialIcons-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/mdl/icons/MaterialIcons-Regular.ttf
--------------------------------------------------------------------------------
/libs/mdl/icons/MaterialIcons-Regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/mdl/icons/MaterialIcons-Regular.woff
--------------------------------------------------------------------------------
/libs/mdl/icons/MaterialIcons-Regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/mdl/icons/MaterialIcons-Regular.woff2
--------------------------------------------------------------------------------
/libs/onsenui/css/ionicons/fonts/ionicons.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/ionicons/fonts/ionicons.eot
--------------------------------------------------------------------------------
/libs/onsenui/css/ionicons/fonts/ionicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/ionicons/fonts/ionicons.ttf
--------------------------------------------------------------------------------
/libs/onsenui/css/ionicons/fonts/ionicons.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/ionicons/fonts/ionicons.woff
--------------------------------------------------------------------------------
/libs/onsenui/css/font_awesome/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/font_awesome/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/libs/onsenui/css/font_awesome/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/font_awesome/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/libs/onsenui/css/font_awesome/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/font_awesome/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/libs/onsenui/css/font_awesome/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/font_awesome/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/libs/onsenui/css/font_awesome/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/font_awesome/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/libs/onsenui/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.eot
--------------------------------------------------------------------------------
/libs/onsenui/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.ttf
--------------------------------------------------------------------------------
/libs/onsenui/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff
--------------------------------------------------------------------------------
/libs/onsenui/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/evothings/evothings-libraries/HEAD/libs/onsenui/css/material-design-iconic-font/fonts/Material-Design-Iconic-Font.woff2
--------------------------------------------------------------------------------
/libs/onsenui/evothings.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "onsenui",
3 | "versions": ["2.0.0"],
4 | "title": "Onsen UI",
5 | "description": "HTML5 Mobile Framework & UI Components",
6 | "icon": "app-icon.png",
7 | "doc-url": "https://onsen.io"
8 | }
9 |
--------------------------------------------------------------------------------
/libs/framework7/evothings.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "framework7",
3 | "versions": ["1.4.2"],
4 | "title": "Framework7",
5 | "description": "Full Featured Mobile HTML Framework For Building iOS & Android Apps.",
6 | "icon": "app-icon.png",
7 | "doc-url": "https://framework7.io"
8 | }
9 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-comment-material.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/mqttws/evothings.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mqttws",
3 | "versions": ["3.1"],
4 | "title": "Paho MQTTWS",
5 | "description": "Paho MQTTWS is an MQTT client library that uses WebSockets to connect to an MQTT Broker.",
6 | "icon" :"app-icon.png",
7 | "doc-url" :"https://eclipse.org/paho/clients/js/"
8 | }
9 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-email-material.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/smoothie/evothings.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "smoothie",
3 | "versions": ["1.28"],
4 | "title": "Smoothie Charts",
5 | "description": "Smoothie Charts is a simple library for displaying smooth live time lines. It's very easy to use, small and looks good.",
6 | "icon" :"app-icon.png",
7 | "doc-url" :"http://smoothiecharts.org"
8 | }
9 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-calendar-material.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/mdl/icons/README.md:
--------------------------------------------------------------------------------
1 | The recommended way to use the Material Icons font is by linking to the web font hosted on Google Fonts:
2 |
3 | ```html
4 |
6 | ```
7 |
8 | Read more in our full usage guide:
9 | http://google.github.io/material-design-icons/#icon-font-for-the-web
10 |
--------------------------------------------------------------------------------
/libs/lorawan/evothings.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lorawan",
3 | "versions": ["0.1"],
4 | "title": "LoRaWAN",
5 | "description": "LoRaWAN is an abstraction library modelled after NodeJS client SDK for TheThingsNetwork. It has been adapted to use MQTT over WebSockets for communicating with LoRaWAN networks like TheThingsNetwork.",
6 | "icon" :"app-icon.png",
7 | "doc-url" :""
8 | }
9 |
--------------------------------------------------------------------------------
/libs/jquery/evothings.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jquery",
3 | "versions": ["2.1.1"],
4 | "title": "jQuery",
5 | "description": "jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.",
6 | "icon" :"app-icon.png",
7 | "doc-url" :"https://jquery.com"
8 | }
9 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-tel-material.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-name-material.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-password-material.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/evothings/evothings-dist-base.js:
--------------------------------------------------------------------------------
1 | // File: evothings-dist-base.js
2 | //
3 | // Set up definitions needed by Evothings JavaScript libraries
4 | // distribution files.
5 | //
6 |
7 | // Global holding everything.
8 | window.evothings = window.evothings || {};
9 |
10 | // Define an empty No Operation function. This function is called
11 | // in place of async script loading, since we build a single merged file.
12 | evothings.__NOOP_FUN__ = function() {};
13 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-toggle-material.svg:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-settings-material.svg:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/libs/mdl/evothings.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mdl",
3 | "versions": ["1.2.1"],
4 | "title": "Material Design Lite",
5 | "description": "Material Design Lite lets you add a Material Design look and feel to your websites. It doesn’t rely on any JavaScript frameworks and aims to optimize for cross-device use, gracefully degrade in older browsers, and offer an experience that is immediately accessible. Material Design Icons are included from https://github.com/jossef/material-design-icons-iconfont",
6 | "icon" :"app-icon.png",
7 | "doc-url" :"https://getmdl.io"
8 | }
9 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-toggle-ios.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/onsenui/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2013-2016 ASIAL CORPORATION
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
14 |
--------------------------------------------------------------------------------
/libs/mdl/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "material-design-lite",
3 | "version": "1.2.1",
4 | "homepage": "https://github.com/google/material-design-lite",
5 | "authors": [
6 | "Material Design Lite team"
7 | ],
8 | "description": "Material Design Components in CSS, JS and HTML",
9 | "main": [
10 | "material.min.css",
11 | "material.min.js"
12 | ],
13 | "keywords": [
14 | "material",
15 | "design",
16 | "styleguide",
17 | "style",
18 | "guide"
19 | ],
20 | "license": "Apache-2",
21 | "ignore": [
22 | "**/.*",
23 | "node_modules",
24 | "bower_components",
25 | "./lib/.bower_components",
26 | "test",
27 | "tests"
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-gender-material.svg:
--------------------------------------------------------------------------------
1 |
9 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-email-ios.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-gender-ios.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-url-material.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/mdl/icons/material-icons.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'Material Icons';
3 | font-style: normal;
4 | font-weight: 400;
5 | src: url(MaterialIcons-Regular.eot); /* For IE6-8 */
6 | src: local('Material Icons'),
7 | local('MaterialIcons-Regular'),
8 | url(MaterialIcons-Regular.woff2) format('woff2'),
9 | url(MaterialIcons-Regular.woff) format('woff'),
10 | url(MaterialIcons-Regular.ttf) format('truetype');
11 | }
12 |
13 | .material-icons {
14 | font-family: 'Material Icons';
15 | font-weight: normal;
16 | font-style: normal;
17 | font-size: 24px; /* Preferred icon size */
18 | display: inline-block;
19 | line-height: 1;
20 | text-transform: none;
21 | letter-spacing: normal;
22 | word-wrap: normal;
23 | white-space: nowrap;
24 | direction: ltr;
25 |
26 | /* Support for all WebKit browsers. */
27 | -webkit-font-smoothing: antialiased;
28 | /* Support for Safari and Chrome. */
29 | text-rendering: optimizeLegibility;
30 |
31 | /* Support for Firefox. */
32 | -moz-osx-font-smoothing: grayscale;
33 |
34 | /* Support for IE. */
35 | font-feature-settings: 'liga';
36 | }
37 |
--------------------------------------------------------------------------------
/libs/bleat/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Rob Moran
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-calendar-ios.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/evothings/ui/ui.js:
--------------------------------------------------------------------------------
1 | /*
2 | Evothings UI functionality.
3 |
4 | FastClick is used to make UI responsive.
5 | */
6 |
7 | ;(function()
8 | {
9 | // Special layout hack for iOS 7.
10 | function applyiOS7LayoutHack()
11 | {
12 | // Set an absolute base font size in iOS 7 due to that viewport-relative
13 | // font sizes doesn't work properly caused by the WebKit bug described at
14 | // https://bugs.webkit.org/show_bug.cgi?id=131863.
15 | if (evothings.os.isIOS7())
16 | {
17 | document.body.style.fontSize = '20pt';
18 | }
19 | }
20 |
21 | function applyUIUpdatesWhenPageHasLoaded()
22 | {
23 | var applyUIUpdates = function() {
24 | applyiOS7LayoutHack();
25 | FastClick.attach(document.body);
26 | }
27 |
28 | /* If the DOMContentLoaded event was already fired, apply the UI updates
29 | * now, otherwise wait for the event.
30 | */
31 | if (evothings.gotDOMContentLoaded)
32 | {
33 | applyUIUpdates()
34 | }
35 | else
36 | {
37 | window.addEventListener('DOMContentLoaded', applyUIUpdates)
38 | }
39 | }
40 |
41 | // Load FastClick, when loaded apply UI modifications.
42 | evothings.loadScript(
43 | 'libs/evothings/ui/fastclick.js',
44 | applyUIUpdatesWhenPageHasLoaded);
45 | })();
46 |
--------------------------------------------------------------------------------
/libs/framework7/uninstall.js:
--------------------------------------------------------------------------------
1 | // Uninstall library in application.
2 | // see main-window-func.js, removeLibraryFromApp
3 |
4 | // 1. Remove all references in index.html
5 | var indexPath = APP_SETTINGS.getIndexFileFullPath(path)
6 | var html = FILEUTIL.readFileSync(indexPath)
7 | var scriptPath = `libs/${lib}/js/${lib}.js`
8 | var cssPath = `libs/${lib}/css/${lib}.ios.css`
9 | var cssColorsPath = `libs/${lib}/css/${lib}.ios.colors.css`
10 |
11 | cher = CHEERIO.load(html, { xmlMode: false })
12 | var element = cher('script').filter(function(i, el) {
13 | return cher(this).attr('src') === scriptPath
14 | })
15 | if (element.length > 0) {
16 | element.remove()
17 | }
18 | var element = cher('link').filter(function(i, el) {
19 | return cher(this).attr('href') === cssPath
20 | })
21 | if (element.length > 0) {
22 | element.remove()
23 | }
24 | var element = cher('link').filter(function(i, el) {
25 | return cher(this).attr('href') === cssColorsPath
26 | })
27 | if (element.length > 0) {
28 | element.remove()
29 | }
30 |
31 | FILEUTIL.writeFileSync(indexPath, cher.html())
32 | LOGGER.log("Removed " + lib + " from " + path)
33 |
34 | // 2. Remove directory libs/libname
35 | var libPath = PATH.join(APP_SETTINGS.getLibDirFullPath(path), lib)
36 | FSEXTRA.removeSync(libPath)
37 |
--------------------------------------------------------------------------------
/libs/onsenui/uninstall.js:
--------------------------------------------------------------------------------
1 | // Uninstall library in application.
2 | // see main-window-func.js, removeLibraryFromApp
3 |
4 | // 1. Remove all references in index.html
5 | var indexPath = APP_SETTINGS.getIndexFileFullPath(path)
6 | var html = FILEUTIL.readFileSync(indexPath)
7 | var scriptPath = `libs/${lib}/js/${lib}.js`
8 | var cssPath = `libs/${lib}/css/${lib}.css`
9 | var cssComponentsPath = `libs/${lib}/css/onsen-css-components.css`
10 |
11 | // 1. Remove any existing reference in index.html
12 | cher = CHEERIO.load(html, { xmlMode: false })
13 | var element = cher('script').filter(function(i, el) {
14 | return cher(this).attr('src') === scriptPath
15 | })
16 | if (element.length > 0) {
17 | element.remove()
18 | }
19 | var element = cher('link').filter(function(i, el) {
20 | return cher(this).attr('href') === cssPath
21 | })
22 | if (element.length > 0) {
23 | element.remove()
24 | }
25 | var element = cher('link').filter(function(i, el) {
26 | return cher(this).attr('href') === cssComponentsPath
27 | })
28 | if (element.length > 0) {
29 | element.remove()
30 | }
31 |
32 | FILEUTIL.writeFileSync(indexPath, cher.html())
33 | LOGGER.log("Removed " + lib + " from " + path)
34 |
35 | // 2. Remove directory libs/libname
36 | var libPath = PATH.join(APP_SETTINGS.getLibDirFullPath(path), lib)
37 | FSEXTRA.removeSync(libPath)
38 |
--------------------------------------------------------------------------------
/libs/mdl/uninstall.js:
--------------------------------------------------------------------------------
1 | // Uninstall library in application.
2 | // see main-window-func.js, removeLibraryFromApp
3 |
4 | // 1. Remove all references in index.html looking like:
5 | //
6 | //
7 | var indexPath = APP_SETTINGS.getIndexFileFullPath(path)
8 | var html = FILEUTIL.readFileSync(indexPath)
9 | var scriptPath = `libs/${lib}/material.js`
10 | var cssPath = `libs/${lib}/material.css`
11 | var googleFonts = `libs/${lib}/icons/material-icons.css`
12 |
13 | var cher = CHEERIO.load(html, { xmlMode: false })
14 | var element = cher('script').filter(function(i, el) {
15 | return cher(this).attr('src') === scriptPath
16 | })
17 | if (element.length > 0) {
18 | element.remove()
19 | }
20 | var element = cher('link').filter(function(i, el) {
21 | return cher(this).attr('href') === cssPath
22 | })
23 | if (element.length > 0) {
24 | element.remove()
25 | }
26 | var element = cher('link').filter(function(i, el) {
27 | return cher(this).attr('href') === googleFonts
28 | })
29 | if (element.length > 0) {
30 | element.remove()
31 | }
32 |
33 | FILEUTIL.writeFileSync(indexPath, cher.html())
34 | LOGGER.log("Removed " + lib + " from " + path)
35 |
36 | // 2. Remove directory libs/libname
37 | var libPath = PATH.join(APP_SETTINGS.getLibDirFullPath(path), lib)
38 | FSEXTRA.removeSync(libPath)
39 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-password-ios.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/framework7/img/i-form-comment-ios.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/libs/mdl/install.js:
--------------------------------------------------------------------------------
1 | // Install library in application.
2 | // see main-window-func.js, addLibraryToApp
3 |
4 | // 0. Read the index file to manipulate it
5 | var indexPath = APP_SETTINGS.getIndexFileFullPath(path)
6 | var html = FILEUTIL.readFileSync(indexPath)
7 | var scriptPath = `libs/${lib}/material.js`
8 | var cssPath = `libs/${lib}/material.css`
9 | var googleFonts = `libs/${lib}/icons/material-icons.css`
10 |
11 | // 1. Remove any existing reference in index.html
12 | cher = CHEERIO.load(html, { xmlMode: false })
13 | var element = cher('script').filter(function(i, el) {
14 | return cher(this).attr('src') === scriptPath
15 | })
16 | if (element.length > 0) {
17 | element.remove()
18 | }
19 | var element = cher('link').filter(function(i, el) {
20 | return cher(this).attr('href') === cssPath
21 | })
22 | if (element.length > 0) {
23 | element.remove()
24 | }
25 | var element = cher('link').filter(function(i, el) {
26 | return cher(this).attr('href') === googleFonts
27 | })
28 | if (element.length > 0) {
29 | element.remove()
30 | }
31 |
32 | // 2. Add a reference in index.html right before