26 Commits

Author SHA1 Message Date
Maxim Prokhorov
c70fe1a016 web: bump html-validate@8 again
fixes 3f1cf8cd *-dup false positives
2024-04-12 00:22:38 +03:00
Maxim Prokhorov
3f1cf8cd04 webui: autocomplete="off" fixes
update dev html-validate@8 and eslint
workaround for form-dup-name (false-positive?)
2024-03-19 19:51:53 +03:00
Maxim Prokhorov
4c8a9d3b7a webui: npm audit
make dependabot happy
2023-03-27 20:23:41 +03:00
Maxim Prokhorov
afb24f7ba6 webui: bump html-validate to 7.6.0 2022-10-23 03:56:19 +03:00
Maxim Prokhorov
aa84f98d5f webui: bump eslint to 8.26 2022-10-23 03:49:06 +03:00
Maxim Prokhorov
b6ac1140f2 webui: bump node dependencies 2022-10-23 03:47:47 +03:00
Maxim Prokhorov
58d4a98553 webui: version bump terser 4.8.1
dependabot woes
2022-07-21 15:11:22 +03:00
dependabot[bot]
02581c6988 webui: bump minimist from 1.2.5 to 1.2.6 in /code (#2508)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:08:35 +03:00
Maxim Prokhorov
95b89daaea webui: bump again for html-validate 2022-01-14 04:05:06 +03:00
Maxim Prokhorov
52a47a6cfb webui: bump dependencies lock 2022-01-14 03:50:36 +03:00
Maxim Prokhorov
fa3deeffbf webui: remove jquery dependencies and clean-up websocket API
Refactor WebUI:
- remove jquery dependency from the base custom.js and use vanilla JS
- remove jquery + jquery-datatables dependency from the RFM69 module
- replace jquery-datatables handlers with pure-css table + some basic cell filtering
  (may be incomplete, but tbh it is not worth additional 50Kb to the .bin size)
- introduce a common way to notify about the app errors, show small text notification
  at the top of the page instead of relying on user to find out about errors by using the Web Developer Tools
- replace <span name=...> with <span data-settings-key=...>
- replace <div> templates with <template>, disallowing modification
  without an explicit DOM clone
- run `eslint` on html/custom.js and `html-validate` on html/index.html,
  and fix issues detected by both tools

Streamline settings group handling in custom.js & index.html
- drop module-specific button-add-... in favour of button-add-settings-group
- only enforce data-settings-max requirement when the property actually exists
- re-create label for=... and input id=... when settings group is
  modified, so checkboxes refer to the correct element
- introduce additional data-... properties to generalize settings group additions
- introduce Enumerable object to track some common list elements for
  <select>, allow to re-create <option> list when messages come in
  different order

Minor fixes that also came with this:
- fix relay code incorrectly parsing the payload, causing no relay names
  to be displayed in the SWITCHES panel
- fix scheduler code accidentally combining keys b/c of the way C parses
  string literals on separate lines, without any commas in-between
- thermostat should not reference tmpUnit directly in the webui, replace with
  module-specific thermostatUnit that is handled on the device itself
- fix index.html initial setup invalid adminPass ids
- fix index.html layout when removing specific schedules
2021-07-18 23:30:32 +03:00
dependabot[bot]
18e1d3a6d2 webui: bump hosted-git-info from 2.8.8 to 2.8.9 (#2446)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 08:18:43 +03:00
dependabot[bot]
1f7ede8334 webui: bump lodash from 4.17.20 to 4.17.21 (#2445)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 08:18:19 +03:00
Maxim Prokhorov
8df23392a9 webui: clean-up cfd6e36dbe
update to terser v5
replace gulp-remove-code with a rough equivalent in the gulpscript itself
replace gulp-inline with gulp-inline-source-html
remove base64 modules as redundant when running inline-source (does both)
remove crass as redundant when running inline-source (uses csso)
fixup jquery source map comment (but still keep the actual file)

at least now this seems stable enough to start more of the ui tweaking
2021-01-16 20:40:23 +03:00
Maxim Prokhorov
3e0291e534 webui: bump old deps 2021-01-15 23:06:19 +03:00
Maxim Prokhorov
cfd6e36dbe webui: use terser as js minifier
support es6 syntax
use js comment style in custom.js
only minify the custom.js

using 4.x branch, since 5.x wants async / await and more changes to the gulp script
2021-01-15 22:45:44 +03:00
Xose Pérez
d319e000f3 web images 2018-12-09 21:11:12 +01:00
Max Prokhorov
65d5a50b0b Update to gulp@4 2018-12-09 00:03:55 +03:00
Max Prokhorov
1383b4441e Update npm packages
Bump npm version installed by travis
Update package-lock for latest npm version
Bump packages versions and clean-up unused
Missing datatables.js images to avoid warnings
2018-09-22 05:04:20 +03:00
Xose Pérez
1c755cfb89 Pre-build the different available WebUI images 2018-06-22 20:19:39 +02:00
Xose Pérez
7b63521c80 Added map-stream to dependencies 2018-06-21 18:18:31 +02:00
Xose Pérez
b56e986e69 Support for webui_module configuration in the OTA manager 2018-06-20 12:02:57 +02:00
Xose Pérez
79cb59b06c Adding filtering code to HTML and JS files 2018-06-16 23:00:15 +02:00
Xose Pérez
86d9ee8009 CSS optimization (#870, #871) 2018-05-21 12:48:04 +02:00
Xose Pérez
6c18f96483 Add revision to web UI, populated by automated build script 2018-04-02 18:36:50 +02:00
Xose Pérez
3f9d99a7d3 Added missing dependency on gulp-crass 2018-03-31 12:37:07 +02:00