Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,16 @@ The UI for **WiFi Connect** is built using **React**, bootstrapped by **create-r

The production bundle is generated by running `npm build`, which will bundle and minify the react code. This will create a `build` folder where all the static resources will be located. You can then serve the `index.html` file and the contents of the `build` folder however you wish.

All networking requests are done using the `fetch` API. Polyfills are added for `fetch` and `Promise` which should improve the support for older browsers.
All networking requests are done using the `fetch` API. Polyfills are added for `fetch` and `Promise` which should improve the support for older browsers.

## Logos and colors

If you want to customize the logo on the Access Point portal, you can update `src/img/logo.svg` (top navigation bar) and `public/static/favicon.png` (browser favicon).

If you need to change the top navigation bar color, you can adjust `NAVBAR_BACKGROUND_COLOR` in `src/config.tsx`. After customization, don't forget to build the assets (`npm build`)

## Translations

If you want to contribute and add a language, you can translate the default translations file `src/translations.tsx` on your fork, build the assets (`npm build`) and create a PR on the main project with theses translations.

If you want to customize translations for your project (adjust specific translation) or change the default language, you can add your own translation on the config file `src/config.tsx`. After customization, don't forget to build the assets (`npm build`)
18 changes: 8 additions & 10 deletions ui/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{
"files": {
"main.js": "/static/js/main.2b22a9e9.chunk.js",
"runtime-main.js": "/static/js/runtime-main.2a78626f.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",
"main.js": "/static/js/main.690b3201.chunk.js",
"runtime-main.js": "/static/js/runtime-main.4c5f1645.js",
"static/js/2.f457ade8.chunk.js": "/static/js/2.f457ade8.chunk.js",
"index.html": "/index.html",
"precache-manifest.96ed21ec05e3b25e96ee640119b0334b.js": "/precache-manifest.96ed21ec05e3b25e96ee640119b0334b.js",
"precache-manifest.1789adb592ec7042d105e5a83075de84.js": "/precache-manifest.1789adb592ec7042d105e5a83075de84.js",
"service-worker.js": "/service-worker.js",
"static/js/2.ef060f46.chunk.js.LICENSE.txt": "/static/js/2.ef060f46.chunk.js.LICENSE.txt",
"static/js/2.f457ade8.chunk.js.LICENSE.txt": "/static/js/2.f457ade8.chunk.js.LICENSE.txt",
"static/media/logo.svg": "/static/media/logo.34c0c94e.svg"
},
"entrypoints": [
"static/js/runtime-main.2a78626f.js",
"static/css/2.c38cd9da.chunk.css",
"static/js/2.ef060f46.chunk.js",
"static/js/main.2b22a9e9.chunk.js"
"static/js/runtime-main.4c5f1645.js",
"static/js/2.f457ade8.chunk.js",
"static/js/main.690b3201.chunk.js"
]
}
2 changes: 1 addition & 1 deletion ui/build/index.html
Original file line number Diff line number Diff line change
@@ -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>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>
<!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></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.f457ade8.chunk.js"></script><script src="/static/js/main.690b3201.chunk.js"></script></body></html>
26 changes: 26 additions & 0 deletions ui/build/precache-manifest.1789adb592ec7042d105e5a83075de84.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "e7deee8cf793bd51f36454b9c4006e2b",
"url": "/index.html"
},
{
"revision": "ad1f3b54f4739c7e89f6",
"url": "/static/js/2.f457ade8.chunk.js"
},
{
"revision": "827012a30417e6176c5227f8db4e1786",
"url": "/static/js/2.f457ade8.chunk.js.LICENSE.txt"
},
{
"revision": "4db4bb284a0e51323fbf",
"url": "/static/js/main.690b3201.chunk.js"
},
{
"revision": "aa5efc5474ad2d490925",
"url": "/static/js/runtime-main.4c5f1645.js"
},
{
"revision": "34c0c94e712ddb861346d68dfb00ab87",
"url": "/static/media/logo.34c0c94e.svg"
}
]);
30 changes: 0 additions & 30 deletions ui/build/precache-manifest.96ed21ec05e3b25e96ee640119b0334b.js

This file was deleted.

4 changes: 2 additions & 2 deletions ui/build/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.96ed21ec05e3b25e96ee640119b0334b.js"
"/precache-manifest.1789adb592ec7042d105e5a83075de84.js"
);

self.addEventListener('message', (event) => {
Expand All @@ -35,5 +35,5 @@ workbox.precaching.precacheAndRoute(self.__precacheManifest, {});

workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), {

blacklist: [/^\/_/,/\/[^\/?]+\.[^\/]+$/],
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
});
1 change: 0 additions & 1 deletion ui/build/static/css/2.c38cd9da.chunk.css

This file was deleted.

2 changes: 0 additions & 2 deletions ui/build/static/js/2.ef060f46.chunk.js

This file was deleted.

2 changes: 2 additions & 0 deletions ui/build/static/js/2.f457ade8.chunk.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,43 @@ object-assign
* @license MIT
*/

/*!
* Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/

/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
/*!
Copyright 2019 Ron Buckton

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

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
http://www.apache.org/licenses/LICENSE-2.0

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.
***************************************************************************** */
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.
*/

/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* Prism: Lightweight, robust, elegant syntax highlighting
Expand All @@ -52,24 +68,24 @@ PERFORMANCE OF THIS SOFTWARE.
*/

/** @license React v16.13.1
* react-dom.production.min.js
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.13.1
* react-is.production.min.js
/** @license React v16.14.0
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.13.1
/** @license React v16.14.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
Expand All @@ -78,4 +94,4 @@ PERFORMANCE OF THIS SOFTWARE.
* LICENSE file in the root directory of this source tree.
*/

/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
1 change: 0 additions & 1 deletion ui/build/static/js/main.2b22a9e9.chunk.js

This file was deleted.

Loading