Fix WiFi signal strength icons - release

This commit is contained in:
Sebastien
2021-07-09 11:18:01 -04:00
parent 21f3768ada
commit cf047c8098
19 changed files with 59 additions and 60 deletions

View File

@@ -1085,15 +1085,15 @@ window.setURL = function(button) {
function rssiToIcon(rssi) { function rssiToIcon(rssi) {
if (rssi >= -55) { if (rssi >= -55) {
return `#signal-wifi-fill`; return `signal-wifi-fill`;
} else if (rssi >= -60) { } else if (rssi >= -60) {
return `#signal-wifi-3-fill`; return `signal-wifi-3-fill`;
} else if (rssi >= -65) { } else if (rssi >= -65) {
return `#signal-wifi-2-fill`; return `signal-wifi-2-fill`;
} else if (rssi >= -70) { } else if (rssi >= -70) {
return `#signal-wifi-1-fill`; return `signal-wifi-1-fill`;
} else { } else {
return `#signal-wifi-line`; return `signal-wifi-line`;
} }
} }

View File

@@ -1,5 +1,5 @@
target_add_binary_data( __idf_wifi-manager ./webapp/webpack/dist/favicon-32x32.png BINARY) target_add_binary_data( __idf_wifi-manager ./webapp/webpack/dist/favicon-32x32.png BINARY)
target_add_binary_data( __idf_wifi-manager ./webapp/webpack/dist/index.html.gz BINARY) target_add_binary_data( __idf_wifi-manager ./webapp/webpack/dist/index.html.gz BINARY)
target_add_binary_data( __idf_wifi-manager ./webapp/webpack/dist/js/index.df6830.bundle.js.gz BINARY) target_add_binary_data( __idf_wifi-manager ./webapp/webpack/dist/js/index.0e064e.bundle.js.gz BINARY)
target_add_binary_data( __idf_wifi-manager ./webapp/webpack/dist/js/node-modules.df6830.bundle.js.gz BINARY) target_add_binary_data( __idf_wifi-manager ./webapp/webpack/dist/js/node-modules.0e064e.bundle.js.gz BINARY)
target_add_binary_data( __idf_wifi-manager ./webapp/webpack/dist/js/runtime.df6830.bundle.js.gz BINARY) target_add_binary_data( __idf_wifi-manager ./webapp/webpack/dist/js/runtime.0e064e.bundle.js.gz BINARY)

View File

@@ -4,31 +4,31 @@ extern const uint8_t _favicon_32x32_png_start[] asm("_binary_favicon_32x32_png_s
extern const uint8_t _favicon_32x32_png_end[] asm("_binary_favicon_32x32_png_end"); extern const uint8_t _favicon_32x32_png_end[] asm("_binary_favicon_32x32_png_end");
extern const uint8_t _index_html_gz_start[] asm("_binary_index_html_gz_start"); extern const uint8_t _index_html_gz_start[] asm("_binary_index_html_gz_start");
extern const uint8_t _index_html_gz_end[] asm("_binary_index_html_gz_end"); extern const uint8_t _index_html_gz_end[] asm("_binary_index_html_gz_end");
extern const uint8_t _index_df6830_bundle_js_gz_start[] asm("_binary_index_df6830_bundle_js_gz_start"); extern const uint8_t _index_0e064e_bundle_js_gz_start[] asm("_binary_index_0e064e_bundle_js_gz_start");
extern const uint8_t _index_df6830_bundle_js_gz_end[] asm("_binary_index_df6830_bundle_js_gz_end"); extern const uint8_t _index_0e064e_bundle_js_gz_end[] asm("_binary_index_0e064e_bundle_js_gz_end");
extern const uint8_t _node_modules_df6830_bundle_js_gz_start[] asm("_binary_node_modules_df6830_bundle_js_gz_start"); extern const uint8_t _node_modules_0e064e_bundle_js_gz_start[] asm("_binary_node_modules_0e064e_bundle_js_gz_start");
extern const uint8_t _node_modules_df6830_bundle_js_gz_end[] asm("_binary_node_modules_df6830_bundle_js_gz_end"); extern const uint8_t _node_modules_0e064e_bundle_js_gz_end[] asm("_binary_node_modules_0e064e_bundle_js_gz_end");
extern const uint8_t _runtime_df6830_bundle_js_gz_start[] asm("_binary_runtime_df6830_bundle_js_gz_start"); extern const uint8_t _runtime_0e064e_bundle_js_gz_start[] asm("_binary_runtime_0e064e_bundle_js_gz_start");
extern const uint8_t _runtime_df6830_bundle_js_gz_end[] asm("_binary_runtime_df6830_bundle_js_gz_end"); extern const uint8_t _runtime_0e064e_bundle_js_gz_end[] asm("_binary_runtime_0e064e_bundle_js_gz_end");
const char * resource_lookups[] = { const char * resource_lookups[] = {
"/favicon-32x32.png", "/favicon-32x32.png",
"/index.html.gz", "/index.html.gz",
"/js/index.df6830.bundle.js.gz", "/js/index.0e064e.bundle.js.gz",
"/js/node-modules.df6830.bundle.js.gz", "/js/node-modules.0e064e.bundle.js.gz",
"/js/runtime.df6830.bundle.js.gz", "/js/runtime.0e064e.bundle.js.gz",
"" ""
}; };
const uint8_t * resource_map_start[] = { const uint8_t * resource_map_start[] = {
_favicon_32x32_png_start, _favicon_32x32_png_start,
_index_html_gz_start, _index_html_gz_start,
_index_df6830_bundle_js_gz_start, _index_0e064e_bundle_js_gz_start,
_node_modules_df6830_bundle_js_gz_start, _node_modules_0e064e_bundle_js_gz_start,
_runtime_df6830_bundle_js_gz_start _runtime_0e064e_bundle_js_gz_start
}; };
const uint8_t * resource_map_end[] = { const uint8_t * resource_map_end[] = {
_favicon_32x32_png_end, _favicon_32x32_png_end,
_index_html_gz_end, _index_html_gz_end,
_index_df6830_bundle_js_gz_end, _index_0e064e_bundle_js_gz_end,
_node_modules_df6830_bundle_js_gz_end, _node_modules_0e064e_bundle_js_gz_end,
_runtime_df6830_bundle_js_gz_end _runtime_0e064e_bundle_js_gz_end
}; };

View File

@@ -1,41 +1,41 @@
/*********************************** /***********************************
webpack_headers webpack_headers
Hash: df683065b9a62ef5a0ce Hash: 0e064eadc7c8b7881633
Version: webpack 4.46.0 Version: webpack 4.46.0
Time: 2739ms Time: 9582ms
Built at: 26.04.2021 07:00:49 Built at: 2021-07-09 11 h 14 min 41 s
Asset Size Chunks Chunk Names Asset Size Chunks Chunk Names
./js/index.df6830.bundle.js 232 KiB 0 [emitted] [immutable] index ./js/index.0e064e.bundle.js 232 KiB 0 [emitted] [immutable] index
./js/index.df6830.bundle.js.br 32.5 KiB [emitted] ./js/index.0e064e.bundle.js.br 32.7 KiB [emitted]
./js/index.df6830.bundle.js.gz 41.9 KiB [emitted] ./js/index.0e064e.bundle.js.gz 42 KiB [emitted]
./js/node-modules.df6830.bundle.js 266 KiB 1 [emitted] [immutable] [big] node-modules ./js/node-modules.0e064e.bundle.js 266 KiB 1 [emitted] [immutable] [big] node-modules
./js/node-modules.df6830.bundle.js.br 76.3 KiB [emitted] ./js/node-modules.0e064e.bundle.js.br 76.3 KiB [emitted]
./js/node-modules.df6830.bundle.js.gz 88.7 KiB [emitted] ./js/node-modules.0e064e.bundle.js.gz 88.7 KiB [emitted]
./js/runtime.df6830.bundle.js 1.46 KiB 2 [emitted] [immutable] runtime ./js/runtime.0e064e.bundle.js 1.46 KiB 2 [emitted] [immutable] runtime
./js/runtime.df6830.bundle.js.br 644 bytes [emitted] ./js/runtime.0e064e.bundle.js.br 644 bytes [emitted]
./js/runtime.df6830.bundle.js.gz 722 bytes [emitted] ./js/runtime.0e064e.bundle.js.gz 722 bytes [emitted]
favicon-32x32.png 634 bytes [emitted] favicon-32x32.png 634 bytes [emitted]
index.html 21.7 KiB [emitted] index.html 21.7 KiB [emitted]
index.html.br 4.74 KiB [emitted] index.html.br 4.74 KiB [emitted]
index.html.gz 5.75 KiB [emitted] index.html.gz 5.75 KiB [emitted]
sprite.svg 4.4 KiB [emitted] sprite.svg 4.4 KiB [emitted]
sprite.svg.br 898 bytes [emitted] sprite.svg.br 898 bytes [emitted]
Entrypoint index [big] = ./js/runtime.df6830.bundle.js ./js/node-modules.df6830.bundle.js ./js/index.df6830.bundle.js Entrypoint index [big] = ./js/runtime.0e064e.bundle.js ./js/node-modules.0e064e.bundle.js ./js/index.0e064e.bundle.js
[6] ./node_modules/bootstrap/dist/js/bootstrap-exposed.js 437 bytes {1} [built] [6] ./node_modules/bootstrap/dist/js/bootstrap-exposed.js 437 bytes {1} [built]
[11] ./src/sass/main.scss 1.55 KiB {0} [built] [11] ./src/sass/main.scss 1.55 KiB {0} [built]
[16] ./node_modules/remixicon/icons/Device/signal-wifi-fill.svg 323 bytes {1} [built] [16] ./node_modules/remixicon/icons/Device/signal-wifi-fill.svg 340 bytes {1} [built]
[17] ./node_modules/remixicon/icons/Device/signal-wifi-3-fill.svg 327 bytes {1} [built] [17] ./node_modules/remixicon/icons/Device/signal-wifi-3-fill.svg 344 bytes {1} [built]
[18] ./node_modules/remixicon/icons/Device/signal-wifi-2-fill.svg 327 bytes {1} [built] [18] ./node_modules/remixicon/icons/Device/signal-wifi-2-fill.svg 344 bytes {1} [built]
[19] ./node_modules/remixicon/icons/Device/signal-wifi-1-fill.svg 327 bytes {1} [built] [19] ./node_modules/remixicon/icons/Device/signal-wifi-1-fill.svg 344 bytes {1} [built]
[20] ./node_modules/remixicon/icons/Device/signal-wifi-line.svg 323 bytes {1} [built] [20] ./node_modules/remixicon/icons/Device/signal-wifi-line.svg 340 bytes {1} [built]
[21] ./node_modules/remixicon/icons/Device/battery-line.svg 315 bytes {1} [built] [21] ./node_modules/remixicon/icons/Device/battery-line.svg 332 bytes {1} [built]
[22] ./node_modules/remixicon/icons/Device/battery-low-line.svg 323 bytes {1} [built] [22] ./node_modules/remixicon/icons/Device/battery-low-line.svg 340 bytes {1} [built]
[23] ./node_modules/remixicon/icons/Device/battery-fill.svg 315 bytes {1} [built] [23] ./node_modules/remixicon/icons/Device/battery-fill.svg 332 bytes {1} [built]
[24] ./node_modules/remixicon/icons/Media/headphone-fill.svg 318 bytes {1} [built] [24] ./node_modules/remixicon/icons/Media/headphone-fill.svg 335 bytes {1} [built]
[25] ./node_modules/remixicon/icons/Device/device-recover-fill.svg 329 bytes {1} [built] [25] ./node_modules/remixicon/icons/Device/device-recover-fill.svg 346 bytes {1} [built]
[26] ./node_modules/remixicon/icons/Device/bluetooth-fill.svg 319 bytes {1} [built] [26] ./node_modules/remixicon/icons/Device/bluetooth-fill.svg 336 bytes {1} [built]
[27] ./node_modules/remixicon/icons/Device/bluetooth-connect-fill.svg 335 bytes {1} [built] [27] ./node_modules/remixicon/icons/Device/bluetooth-connect-fill.svg 352 bytes {1} [built]
[38] ./src/index.ts + 1 modules 62.5 KiB {0} [built] [38] ./src/index.ts + 1 modules 62.6 KiB {0} [built]
| ./src/index.ts 1.4 KiB [built] | ./src/index.ts 1.4 KiB [built]
| ./src/js/custom.js 61 KiB [built] | ./src/js/custom.js 61 KiB [built]
+ 24 hidden modules + 24 hidden modules
@@ -43,14 +43,14 @@ Entrypoint index [big] = ./js/runtime.df6830.bundle.js ./js/node-modules.df6830.
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance. This can impact web performance.
Assets: Assets:
./js/node-modules.df6830.bundle.js (266 KiB) ./js/node-modules.0e064e.bundle.js (266 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints: Entrypoints:
index (499 KiB) index (499 KiB)
./js/runtime.df6830.bundle.js ./js/runtime.0e064e.bundle.js
./js/node-modules.df6830.bundle.js ./js/node-modules.0e064e.bundle.js
./js/index.df6830.bundle.js ./js/index.0e064e.bundle.js
WARNING in webpack performance recommendations: WARNING in webpack performance recommendations:
@@ -58,9 +58,9 @@ You can limit the size of your bundles by using import() or require.ensure to la
For more info visit https://webpack.js.org/guides/code-splitting/ For more info visit https://webpack.js.org/guides/code-splitting/
Child html-webpack-plugin for "index.html": Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names Asset Size Chunks Chunk Names
index.html 559 KiB 0 index.html 560 KiB 0
Entrypoint undefined = index.html Entrypoint undefined = index.html
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.ejs 22.9 KiB {0} [built] [0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.ejs 23.9 KiB {0} [built]
[1] ./node_modules/lodash/lodash.js 531 KiB {0} [built] [1] ./node_modules/lodash/lodash.js 531 KiB {0} [built]
[2] (webpack)/buildin/global.js 472 bytes {0} [built] [2] (webpack)/buildin/global.js 472 bytes {0} [built]
[3] (webpack)/buildin/module.js 497 bytes {0} [built] [3] (webpack)/buildin/module.js 497 bytes {0} [built]

File diff suppressed because one or more lines are too long

View File

@@ -367,8 +367,7 @@ module.exports = merge(common, {
filename: 'test', filename: 'test',
minify: false, minify: false,
excludeChunks: ['index'], excludeChunks: ['index'],
}), })
new SpriteLoaderPlugin({plainSprite: true})
], ],
}); });