Bump wifi-connect

This commit is contained in:
j1nx 2020-12-22 22:16:24 +01:00
parent e8ed2064d1
commit 782e48887c
18 changed files with 84 additions and 64 deletions

View File

@ -10,3 +10,5 @@ else
printf 'Starting WiFi Connect\n'
/usr/local/sbin/wifi-connect
fi
rm /etc/wifi-connect

View File

@ -4,7 +4,7 @@
#
################################################################################
WIFI_CONNECT_VERSION = 258656bf9b531ff64438ba502166840e48125e33
WIFI_CONNECT_VERSION = ac333eb6a809b4daf3ac2e41f6c56799852caddc
WIFI_CONNECT_SITE = $(call github,balena-io,wifi-connect,$(WIFI_CONNECT_VERSION))
WIFI_CONNECT_DEPENDENCIES = host-rustc
@ -37,6 +37,7 @@ define WIFI_CONNECT_INSTALL_INIT_SYSTEMD
$(TARGET_DIR)/usr/lib/systemd/system/wifi-connect.service
$(INSTALL) -D -m 0755 $(BR2_EXTERNAL_OPENVOICEOS_PATH)/package/wifi-connect/start-wifi-connect \
$(TARGET_DIR)/usr/local/sbin/start-wifi-connect
touch $(TARGET_DIR)/etc/wifi-connect
endef
$(eval $(generic-package))

View File

@ -1,14 +1,12 @@
[Unit]
Description=OpenVoiceOS wifi-connect service
After=NetworkManager.service
StartLimitInterval=200
StartLimitBurst=5
ConditionPathIsReadWrite=/etc
ConditionPathExists=/etc/wifi-connect
[Service]
Type=simple
ExecStart=/usr/local/sbin/start-wifi-connect
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,3 @@
[connection]
# Values are 0 (use default), 1 (ignore/don't touch), 2 (disable) or 3 (enable).
wifi.powersave = 2

View File

@ -1,19 +1,19 @@
{
"files": {
"main.css": "/static/css/main.7c90acc6.chunk.css",
"main.js": "/static/js/main.fbfa97b4.chunk.js",
"main.js": "/static/js/main.2b22a9e9.chunk.js",
"runtime-main.js": "/static/js/runtime-main.2a78626f.js",
"static/js/2.c530163b.chunk.js": "/static/js/2.c530163b.chunk.js",
"static/css/2.c38cd9da.chunk.css": "/static/css/2.c38cd9da.chunk.css",
"static/js/2.ef060f46.chunk.js": "/static/js/2.ef060f46.chunk.js",
"index.html": "/index.html",
"precache-manifest.a619d5c0df1bb38186cdf977820ec568.js": "/precache-manifest.a619d5c0df1bb38186cdf977820ec568.js",
"precache-manifest.96ed21ec05e3b25e96ee640119b0334b.js": "/precache-manifest.96ed21ec05e3b25e96ee640119b0334b.js",
"service-worker.js": "/service-worker.js",
"static/js/2.c530163b.chunk.js.LICENSE.txt": "/static/js/2.c530163b.chunk.js.LICENSE.txt",
"static/media/logo.svg": "/static/media/logo.69120045.svg"
"static/js/2.ef060f46.chunk.js.LICENSE.txt": "/static/js/2.ef060f46.chunk.js.LICENSE.txt",
"static/media/logo.svg": "/static/media/logo.34c0c94e.svg"
},
"entrypoints": [
"static/js/runtime-main.2a78626f.js",
"static/js/2.c530163b.chunk.js",
"static/css/main.7c90acc6.chunk.css",
"static/js/main.fbfa97b4.chunk.js"
"static/css/2.c38cd9da.chunk.css",
"static/js/2.ef060f46.chunk.js",
"static/js/main.2b22a9e9.chunk.js"
]
}

View File

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/static/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/static/manifest.json"/><title>MYCROFT</title><link href="/static/css/main.7c90acc6.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,i,f=t[0],l=t[1],c=t[2],p=0,s=[];p<f.length;p++)i=f[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(a&&a(t);s.length;)s.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,f=1;f<r.length;f++){var l=r[f];0!==o[l]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/";var f=this["webpackJsonpwifi-connect-ui"]=this["webpackJsonpwifi-connect-ui"]||[],l=f.push.bind(f);f.push=t,f=f.slice();for(var c=0;c<f.length;c++)t(f[c]);var a=l;r()}([])</script><script src="/static/js/2.c530163b.chunk.js"></script><script src="/static/js/main.fbfa97b4.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/static/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/static/manifest.json"/><title>WiFi Connect</title><link href="/static/css/2.c38cd9da.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,i,f=t[0],l=t[1],c=t[2],p=0,s=[];p<f.length;p++)i=f[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(a&&a(t);s.length;)s.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,f=1;f<r.length;f++){var l=r[f];0!==o[l]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/";var f=this["webpackJsonpwifi-connect-ui"]=this["webpackJsonpwifi-connect-ui"]||[],l=f.push.bind(f);f.push=t,f=f.slice();for(var c=0;c<f.length;c++)t(f[c]);var a=l;r()}([])</script><script src="/static/js/2.ef060f46.chunk.js"></script><script src="/static/js/main.2b22a9e9.chunk.js"></script></body></html>

View File

@ -0,0 +1,30 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "210cdfec75f8819cf88af6d7c1143fa7",
"url": "/index.html"
},
{
"revision": "bef5f9e0837401d4a7df",
"url": "/static/css/2.c38cd9da.chunk.css"
},
{
"revision": "bef5f9e0837401d4a7df",
"url": "/static/js/2.ef060f46.chunk.js"
},
{
"revision": "28ce00ad444b69bea42850e06eec9da3",
"url": "/static/js/2.ef060f46.chunk.js.LICENSE.txt"
},
{
"revision": "c0cd579ca18a0480cc24",
"url": "/static/js/main.2b22a9e9.chunk.js"
},
{
"revision": "0e903404fe668039b1a7",
"url": "/static/js/runtime-main.2a78626f.js"
},
{
"revision": "34c0c94e712ddb861346d68dfb00ab87",
"url": "/static/media/logo.34c0c94e.svg"
}
]);

View File

@ -1,30 +0,0 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "f94cb0dfe54dcb66c6ad5088f18ed9c7",
"url": "/index.html"
},
{
"revision": "25c9d8d2643926c1e954",
"url": "/static/css/main.7c90acc6.chunk.css"
},
{
"revision": "a9705d5f3c5307bbec57",
"url": "/static/js/2.c530163b.chunk.js"
},
{
"revision": "63748a42c768e6232479f8dd8348a100",
"url": "/static/js/2.c530163b.chunk.js.LICENSE.txt"
},
{
"revision": "25c9d8d2643926c1e954",
"url": "/static/js/main.fbfa97b4.chunk.js"
},
{
"revision": "0e903404fe668039b1a7",
"url": "/static/js/runtime-main.2a78626f.js"
},
{
"revision": "691200456c8c1a14713ad8f715ffd600",
"url": "/static/media/logo.69120045.svg"
}
]);

View File

@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"/precache-manifest.a619d5c0df1bb38186cdf977820ec568.js"
"/precache-manifest.96ed21ec05e3b25e96ee640119b0334b.js"
);
self.addEventListener('message', (event) => {

View File

@ -0,0 +1 @@
code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px #fff;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-]::selection,pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}

View File

@ -1 +0,0 @@
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}

File diff suppressed because one or more lines are too long

View File

@ -5,27 +5,43 @@ object-assign
*/
/*!
* The buffer module from node.js, for the browser.
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <http://feross.org>
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed 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
Copyright (c) Microsoft Corporation.
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/
/** @license React v0.19.1
* scheduler.production.min.js
*

View File

@ -0,0 +1 @@
(this["webpackJsonpwifi-connect-ui"]=this["webpackJsonpwifi-connect-ui"]||[]).push([[0],{1212:function(e,t,n){"use strict";n.r(t);var a=n(0),i=n.n(a),o=n(54),r=n.n(o),s=(n(488),n(489),n(80)),c=n(424),l=n(425),u=n.n(l),m=n(1223),d=n(1221),f=n(475),p=n(33),h=n(81),b=n(1222),g=function(e){var t;return{type:"object",properties:{ssid:{title:"SSID",type:"string",default:null===(t=e[0])||void 0===t?void 0:t.ssid,oneOf:e.map((function(e){return{const:e.ssid,title:e.ssid}}))},identity:{title:"User",type:"string",default:""},passphrase:{title:"Passphrase",type:"string",default:""}},required:["ssid"]}},w=function(e){var t,n,i,o=e.availableNetworks,r=e.onSubmit,c=a.useState({}),l=Object(s.a)(c,2),u=l[0],m=l[1],d=(t=o,n=u.ssid,t.some((function(e){return e.ssid===n&&"enterprise"===e.security})));return a.createElement(p.a,{flexDirection:"column",alignItems:"center",justifyContent:"center",m:4,mt:5},a.createElement(h.a.h3,{align:"center",mb:4},"Hi! Please choose your WiFi from the list"),a.createElement(b.a,{width:["100%","80%","60%","40%"],onFormChange:function(e){var t=e.formData;m(t)},onFormSubmit:function(e){var t=e.formData;return r(t)},value:u,schema:g(o),uiSchema:(i=d,{ssid:{"ui:placeholder":"Select SSID","ui:options":{emphasized:!0}},identity:{"ui:options":{emphasized:!0},"ui:widget":i?void 0:"hidden"},passphrase:{"ui:widget":"password","ui:options":{emphasized:!0}}}),submitButtonProps:{width:"60%",mx:"20%",mt:3,disabled:o.length<=0},submitButtonText:"Connect"}))},y=n(478),E=n(18),v=function(e){var t=e.hasAvailableNetworks,n=e.attemptedConnect,i=e.error;return a.createElement(a.Fragment,null,n&&a.createElement(y.a,{m:2,info:!0},a.createElement(E.d.span,null,"Applying changes... "),a.createElement(E.d.span,null,"Your device will soon be online. If connection is unsuccessful, the Access Point will be back up in a few minutes, and reloading this page will allow you to try again.")),!t&&a.createElement(y.a,{m:2,warning:!0},a.createElement(E.d.span,null,"No wifi networks available.\xa0"),a.createElement(E.d.span,null,"Please ensure there is a network within range and reboot the device.")),!!i&&a.createElement(y.a,{m:2,danger:!0},a.createElement(E.d.span,null,i)))},S=n(1);function k(){var e=Object(c.a)(["\n\tbody {\n\t\tmargin: 0;\n\t\tfont-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n\t\t\t'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n\t\t\tsans-serif;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t}\n\n\tcode {\n\t\tfont-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;\n\t}\n"]);return k=function(){return e},e}var j=Object(S.createGlobalStyle)(k()),O=function(){var e=i.a.useState(!1),t=Object(s.a)(e,2),n=t[0],a=t[1],o=i.a.useState(!0),r=Object(s.a)(o,2),c=r[0],l=r[1],p=i.a.useState(""),h=Object(s.a)(p,2),b=h[0],g=h[1],y=i.a.useState([]),E=Object(s.a)(y,2),S=E[0],k=E[1];i.a.useEffect((function(){fetch("/networks").then((function(e){if(200!==e.status)throw new Error(e.statusText);return e.json()})).then(k).catch((function(e){g("Failed to fetch available networks. ".concat(e.message||e))})).finally((function(){l(!1)}))}),[]);return i.a.createElement(m.a,null,i.a.createElement(j,null),i.a.createElement(d.a,{brand:i.a.createElement("img",{src:u.a,style:{height:30},alt:"logo"})}),i.a.createElement(f.a,null,i.a.createElement(v,{attemptedConnect:n,hasAvailableNetworks:c||S.length>0,error:b}),i.a.createElement(w,{availableNetworks:S,onSubmit:function(e){a(!0),g(""),fetch("/connect",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}).then((function(e){if(200!==e.status)throw new Error(e.statusText)})).catch((function(e){g("Failed to connect to the network. ".concat(e.message||e))}))}})))};r.a.render(i.a.createElement(O,null),document.getElementById("root"))},425:function(e,t,n){e.exports=n.p+"static/media/logo.34c0c94e.svg"},483:function(e,t,n){e.exports=n(1212)}},[[483,1,2]]]);

View File

@ -1 +0,0 @@
(this["webpackJsonpwifi-connect-ui"]=this["webpackJsonpwifi-connect-ui"]||[]).push([[0],{1006:function(e,t,n){"use strict";n.r(t);var a=n(0),i=n.n(a),r=n(36),o=n.n(r),s=(n(450),n(451),n(453),n(93)),c=n(423),l=n.n(c),u=n(1012),m=n(1010),d=n(443),f=n(63),h=n(1007),p=n(429),w=function(e){var t;return{type:"object",properties:{ssid:{title:"SSID",type:"string",default:null===(t=e[0])||void 0===t?void 0:t.ssid,oneOf:e.map((function(e){return{const:e.ssid,title:e.ssid}}))},identity:{title:"User",type:"string",default:""},passphrase:{title:"Passphrase",type:"string"}},required:["ssid"]}},g=function(e){var t,n=e.availableNetworks,i=e.onSubmit,r=a.useState({}),o=Object(s.a)(r,2),c=o[0],l=o[1],u=function(e,t){var n=e.filter((function(e){return t===e.ssid}))[0];return!!n&&"enterprise"===n.security}(n,c.ssid);return a.createElement(f.a,{flexDirection:"column",alignItems:"center",justifyContent:"center",m:4,mt:5},a.createElement(h.a.h3,{align:"center",mb:4},"Hi! Please choose your WiFi from the list"),a.createElement(p.Form,{width:["100%","80%","60%","40%"],onFormChange:function(e){var t=e.formData;l(t)},onFormSubmit:function(e){var t=e.formData;return i(t)},value:c,schema:w(n),uiSchema:(t=u,{ssid:{"ui:placeholder":"Select SSID","ui:options":{emphasized:!0}},identity:{"ui:options":{emphasized:!0},"ui:widget":t?void 0:"hidden"},passphrase:{"ui:widget":"password","ui:options":{emphasized:!0}}}),submitButtonProps:{width:"60%",mx:"20%",mt:3,disabled:n.length<=0},submitButtonText:"Connect"}))},b=n(1011),E=n(58),v=function(e){var t=e.hasAvailableNetworks,n=e.attemptedConnect,i=e.error;return a.createElement(a.Fragment,null,n&&a.createElement(b.a,{m:2,info:!0},a.createElement(E.d.span,null,"Applying changes... "),a.createElement(E.d.span,null,"Your device will soon be online. If connection is unsuccessful, the Access Point will be back up in a few minutes, and reloading this page will allow you to try again.")),!t&&a.createElement(b.a,{m:2,warning:!0},a.createElement(E.d.span,null,"No wifi networks available.\xa0"),a.createElement(E.d.span,null,"Please ensure there is a network within range and reboot the device.")),!!i&&a.createElement(b.a,{m:2,danger:!0},a.createElement(E.d.span,null,i)))},y=function(){var e=i.a.useState(!1),t=Object(s.a)(e,2),n=t[0],a=t[1],r=i.a.useState(!0),o=Object(s.a)(r,2),c=o[0],f=o[1],h=i.a.useState(""),p=Object(s.a)(h,2),w=p[0],b=p[1],E=i.a.useState([]),y=Object(s.a)(E,2),S=y[0],k=y[1];i.a.useEffect((function(){fetch("/networks").then((function(e){if(200!==e.status)throw new Error(e.statusText);return e.json()})).then(k).catch((function(e){b("Failed to fetch available networks. ".concat(e.message||e))})).finally((function(){f(!1)}))}),[]);return i.a.createElement(u.a,null,i.a.createElement(m.a,{brand:i.a.createElement("img",{src:l.a,style:{height:30},alt:"logo"})}),i.a.createElement(d.a,null,i.a.createElement(v,{attemptedConnect:n,hasAvailableNetworks:c||S.length>0,error:w}),i.a.createElement(g,{availableNetworks:S,onSubmit:function(e){a(!0),b(""),fetch("/connect",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}).then((function(e){if(200!==e.status)throw new Error(e.statusText)})).catch((function(e){b("Failed to connect to the network. ".concat(e.message||e))}))}})))};o.a.render(i.a.createElement(y,null),document.getElementById("root"))},423:function(e,t,n){e.exports=n.p+"static/media/logo.69120045.svg"},445:function(e,t,n){e.exports=n(1006)},453:function(e,t,n){}},[[445,1,2]]]);

View File

@ -1,6 +1,6 @@
{
"short_name": "OVOS",
"name": "OpenVoiceOS WiFi setup from your mobile phone or laptop",
"short_name": "WiFi Connect",
"name": "Easy WiFi setup for Linux devices from your mobile phone or laptop",
"icons": [
{
"src": "favicon.png",