Merge branch 'openshwprojects:main' into main

This commit is contained in:
valeklubomir
2022-10-16 10:40:07 +02:00
committed by GitHub
6 changed files with 48 additions and 29 deletions

View File

@ -598,13 +598,12 @@ int HTTP_ProcessPacket(http_request_t* request) {
}
/*
To edit the following two fields:
1. Edit the files script.js (pageScript) or script.css (htmlHeadStyle)
2. Generate compressed content using gulp or online compressor such as https://www.minifier.org/
NOTE:
For using gulp, you need to have nodejs (https://nodejs.org/en/) installed.
After that run, `npm install` at the root folder to install dependent dev packages.
And then run `gulp` which will automatically update the fields.
The following fields should not be manually edited.
Instead, edit the script/css files in this folder and then re-generate the fields by running gulp.
Gulp tasks should automatically appear in Visual Code or can be invoked from console.
See https://github.com/openshwprojects/OpenBK7231T_App/blob/main/BUILDING.md for gulp setup.
*/
//region_start htmlHeadStyle

View File

@ -1,3 +1,5 @@
//The content of this file get set into htmlHeadStyle (new_http.cs)
var firstTime,
lastTime,
req = null;

View File

@ -1,3 +1,5 @@
//The content of this file get set into ha_discovery_script (new_http.cs)
function send_ha_disc() {
var xhr = new XMLHttpRequest();
xhr.open(

View File

@ -1,3 +1,5 @@
/*The content of this file get set into htmlHeadStyle (new_http.cs)*/
div,
fieldset,
input,
@ -123,7 +125,7 @@ div#state {
}
div#changed {
padding: 0;
height: 23px;
height: 23px;
}
div#main {
text-align: left;