Merge pull request #2238 from proddy/dev

comment cleanup
This commit is contained in:
Proddy
2024-11-22 11:08:37 +01:00
committed by GitHub
13 changed files with 605 additions and 608 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,3 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.5.1.cjs
yarnPath: .yarn/releases/yarn-4.5.2.cjs

View File

@@ -31,7 +31,7 @@
"async-validator": "^4.2.5",
"jwt-decode": "^4.0.0",
"mime-types": "^2.1.35",
"preact": "^10.24.3",
"preact": "^10.25.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.3.0",
@@ -63,5 +63,5 @@
"vite-plugin-imagemin": "^0.6.1",
"vite-tsconfig-paths": "^5.1.3"
},
"packageManager": "yarn@4.5.1"
"packageManager": "yarn@4.5.2"
}

View File

@@ -153,7 +153,12 @@ const Version = () => {
onClick={() => setOpenDialog(false)}
color="primary"
>
<Link underline="none" target="_blank" href={getBinURL(useDev)} color="primary">
<Link
underline="none"
target="_blank"
href={getBinURL(useDev)}
color="primary"
>
{LL.DOWNLOAD(1)}
</Link>
</Button>

View File

@@ -16,7 +16,7 @@ const RouterTabs: FC<RouterTabsProps> = ({ value, children }) => {
const smallDown = useMediaQuery(theme.breakpoints.down('sm'));
const handleTabChange = (_event: unknown, path: string) => {
navigate(path);
void navigate(path);
};
return (

View File

@@ -1721,7 +1721,7 @@ __metadata:
formidable: "npm:^3.5.2"
jwt-decode: "npm:^4.0.0"
mime-types: "npm:^2.1.35"
preact: "npm:^10.24.3"
preact: "npm:^10.25.0"
prettier: "npm:^3.3.3"
react: "npm:^18.3.1"
react-dom: "npm:^18.3.1"
@@ -5635,10 +5635,10 @@ __metadata:
languageName: node
linkType: hard
"preact@npm:^10.24.3":
version: 10.24.3
resolution: "preact@npm:10.24.3"
checksum: 10c0/c863df6d7be6a660480189762d8a8f2d4148733fc2bb9efbd9d2fd27315d2c7ede850a16077d716c91666c915c0349bd3c9699733e4f08457226a0519f408761
"preact@npm:^10.25.0":
version: 10.25.0
resolution: "preact@npm:10.25.0"
checksum: 10c0/703e021e7a268aea929e9c896484608e18dd9f5aa62c71d3205fedf69269d9592e4cfe17adda78ca4cec1f5f0057a062300daeeb477333ba2005a4d9e3fbc970
languageName: node
linkType: hard

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,3 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.5.1.cjs
yarnPath: .yarn/releases/yarn-4.5.2.cjs

View File

@@ -15,5 +15,5 @@
"itty-router": "^5.0.18",
"prettier": "^3.3.3"
},
"packageManager": "yarn@4.5.1"
"packageManager": "yarn@4.5.2"
}

View File

@@ -104,7 +104,7 @@ print("# Entity/Register Mapping")
print()
print("!!! note")
print()
print(" This file has been auto-generated. Do not edit.")
print(" This file has been auto-generated. Do not modify.")
print()
for device_type, devices in grouped_by(entities, device_type_key):

View File

@@ -2,9 +2,7 @@
#
# Builds the dump CSV files, modbus headers and documentation.
# To be run before a release with
# sh ./scripts/generate_csv_and_headers.sh
#
# Called by /scripts/generate_csv_and_headers.sh
# build dummy modbus_entity_parameters.hpp so it compiles
cat >./src/modbus_entity_parameters.hpp <<EOL
@@ -12,7 +10,7 @@ cat >./src/modbus_entity_parameters.hpp <<EOL
#include "emsdevice.h"
/*
* This file is auto-generated by the update_modbus_registers.sh script. Do not modify.
* This file is auto-generated. Do not modify.
*/
// clang-format off

View File

@@ -1,13 +1,7 @@
#
# Update modbus parameters from entity definitions.
# This script generates c++ code for the modbus parameter definitions.
#
# Usage:
# - first, dump all entities to csv by running 'sh ./scripts/dump_entities.sh'
# - then run 'cat ../dump_entities.csv | python3 update_modbus_registers.py > ../src/modbus_entity_parameters.hpp'
# from the "scripts" folder
# OR
# run `sh ./scripts/update_modbus_registers.sh` from the root folder
# Called by /scripts/generate_csv_and_headers.sh
import fileinput
import csv
@@ -118,7 +112,7 @@ cpp_file_template = Template('''#include "modbus.h"
#include "emsdevice.h"
/*
* This file is auto-generated by the update_modbus_registers.sh script. Do not modify.
* This file is auto-generated. Do not modify.
*/
// clang-format off

View File

@@ -2,7 +2,7 @@
#include "emsdevice.h"
/*
* This file is auto-generated by the update_modbus_registers.sh script. Do not modify.
* This file is auto-generated. Do not modify.
*/
// clang-format off