summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>2019-12-05 08:28:11 +0100
committerLorenzo Tilve <ltilve@igalia.com>2020-02-04 19:20:13 +0100
commit20e04b702f96bf05ff957a8e3c4296d76a2e7656 (patch)
tree2e54b8551b0e61bff963d7389741c747aa56cd37 /src
parent56514d2337ab5b1d2d8f3666c211e2e04f73bd68 (diff)
FUNCT Add wifi support
Diffstat (limited to 'src')
-rw-r--r--src/index.html17
-rw-r--r--src/js/app.js2
2 files changed, 12 insertions, 7 deletions
diff --git a/src/index.html b/src/index.html
index 6ec2e60..20de554 100644
--- a/src/index.html
+++ b/src/index.html
@@ -147,17 +147,22 @@
</h1>
<div id="WifiContainer" class="container"></div>
<script id="wifi-device-template" type="x-tmpl-mustache">
- <a href="#" class="entry">
+ <div class="entry" service="{{service}}">
<div class="icon">
- <span class="icon-wifi"></span>
+ <span class="fas fa-wifi"></span>
</div>
- <div class="label">
- {{ properties.name }}
+ <div class="label" onclick="window.manage_bluetooth('{{device}}', {{properties.paired}}, {{ properties.connected }})">
+ <div class="title">
+ {{ properties.name }}
+ </div>
+ <div class="subtitle">
+ {{ properties.ethernet.address }}
+ </div>
</div>
<div class="control">
- <span class="icon-clear"></span>
+ {{ properties.strength }}%
</div>
- </a>
+ </div>
</script>
</div>
diff --git a/src/js/app.js b/src/js/app.js
index ed7b028..f95852d 100644
--- a/src/js/app.js
+++ b/src/js/app.js
@@ -6,7 +6,7 @@ import { api } from 'agl-js-api';
export function init() {
api.init();
init_bluetooth();
- // init_wifi();
+ init_wifi();
}
window.api = api; \ No newline at end of file