add bug button, fix dateformat parameter

This commit is contained in:
Ivan 2023-09-29 00:37:39 +03:00
parent 504eedc3b5
commit 4b96550e62
Signed by untrusted user who does not match committer: ppechenkoo
GPG Key ID: 0C191B86D9582583
17 changed files with 64 additions and 7 deletions

View File

@ -2875,17 +2875,16 @@ app.put('/device-parameters', async (req, res) => {
// Создаем JSON для GET запроса // Создаем JSON для GET запроса
const requestBody = { const requestBody = {
"TIMEP": { "TIMEP": {
"DATEM": parseInt(DATEMOD, 10) || 1, "DATEM": parseInt(DATEMOD, 10),
"TIMEM": parseInt(TIMEFORMAT, 10) || 0, "TIMEM": parseInt(TIMEFORMAT, 10),
"TIMEZ": TIMEZ || "180C" "TIMEZ": TIMEZ
}, },
"GSP": { "GSP": {
"LANT": parseInt(LANGUAGE, 10) || 12, "LANT": parseInt(LANGUAGE, 10),
"VGA": parseInt(VIDEOFORMAT, 10) || 0, "GM": parseInt(GEOMOD, 10)
"GM": parseInt(GEOMOD, 10) || 0
}, },
"SUBSTRNET": { "SUBSTRNET": {
"SM": parseInt(SUBSTREAMMODE, 10) || 1 "SM": parseInt(SUBSTREAMMODE, 10)
}, },
"EOSD": [ "EOSD": [
{ "GE": GE, "NE": NE, "SE": SE, "TE": TE, "VE": VE, "DE": DE }, { "GE": GE, "NE": NE, "SE": SE, "TE": TE, "VE": VE, "DE": DE },

11
static/img/bug.svg Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Generator: Apple Native CoreSVG 175.5-->
<!DOCTYPE svg
PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="406.997" height="593.018">
<g>
<rect height="593.018" opacity="0" width="406.997" x="0" y="0"/>
<path d="M203.383 583.252C272.475 583.252 332.777 509.033 332.777 429.199C332.777 416.748 330.58 406.25 326.185 397.705C333.266 399.658 340.346 401.367 347.182 403.32C364.027 407.959 368.91 414.551 366.713 429.199L348.891 546.143C346.693 560.059 355.238 568.359 366.713 568.359C378.676 568.359 384.047 561.035 386 548.828L406.019 422.119C410.658 393.555 398.939 377.93 367.689 370.605L257.582 344.971L257.338 342.529C267.836 337.402 274.916 327.393 278.09 316.406L353.041 305.664C383.559 301.514 397.23 284.424 397.23 254.395L397.23 169.922C397.23 157.959 390.394 151.123 378.676 151.123C366.957 151.123 360.121 158.203 360.121 169.922L360.121 246.826C360.121 264.16 350.844 269.775 334.975 271.973L279.066 279.541C276.381 271.973 271.498 265.137 264.906 260.742L264.906 258.301C306.654 250.977 329.848 225.586 329.848 188.477C329.848 157.227 318.129 128.662 299.086 106.689L301.283 104.98C324.965 87.8906 329.359 62.7441 313.978 35.6445L299.574 11.9629C294.935 3.66211 289.564 0 281.996 0C271.742 0 264.418 7.32422 264.418 16.8457C264.418 21.2402 265.15 23.6816 267.836 28.5645L280.531 47.8516C288.344 60.5469 288.344 71.5332 278.334 80.3223C276.869 81.543 275.648 82.5195 274.184 83.4961C253.92 69.8242 229.506 61.7676 203.383 61.7676C177.748 61.7676 153.578 69.8242 133.559 83.252C132.094 82.5195 130.629 81.2988 129.408 80.0781C119.643 71.5332 119.398 60.5469 127.455 47.8516L140.15 28.5645C142.836 23.6816 143.568 21.2402 143.568 16.8457C143.568 7.32422 136 0 125.99 0C118.422 0 113.051 3.66211 108.412 11.9629L94.0078 35.6445C78.6269 62.7441 83.0214 87.8906 106.703 104.98L108.412 106.201C89.1249 128.174 76.9179 156.982 76.9179 188.477C76.9179 225.586 100.355 250.977 142.103 258.301L142.103 260.742C135.268 265.137 130.629 271.973 127.943 279.541L72.0351 271.973C55.9218 269.775 46.8886 264.16 46.8886 246.826L46.8886 169.922C46.8886 158.203 40.0527 151.123 28.3339 151.123C16.6152 151.123 9.77924 157.959 9.77924 169.922L9.77924 254.395C9.77924 284.424 23.4511 301.514 53.9687 305.664L128.92 316.406C132.094 327.393 138.93 337.402 149.672 342.529L149.672 344.971L39.3203 370.605C7.82611 377.93-3.6485 393.555 0.990177 422.119L21.0097 548.828C22.7187 561.035 28.3339 568.359 40.2968 568.359C51.7714 568.359 60.3163 560.059 58.1191 546.143L40.2968 429.199C37.8554 414.551 42.9824 407.959 59.8281 403.32C66.664 401.367 73.7441 399.658 80.58 397.705C76.4296 406.25 74.2324 416.748 74.2324 429.199C74.2324 509.033 134.535 583.252 203.383 583.252Z" fill="#000000"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -43,6 +43,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../img/play.svg">Записи</div> <div><img src="../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">
<div class="selected"><img src="../img/keyboard.svg">Админка</div> <div class="selected"><img src="../img/keyboard.svg">Админка</div>

View File

@ -43,6 +43,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../../img/play.svg">Записи</div> <div><img src="../../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">
<div class="selected"><img src="../../img/keyboard.svg">Админка</div> <div class="selected"><img src="../../img/keyboard.svg">Админка</div>

View File

@ -53,6 +53,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../../img/play.svg">Записи</div> <div><img src="../../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">
<div class="selected"><img src="../../img/keyboard.svg">Админка</div> <div class="selected"><img src="../../img/keyboard.svg">Админка</div>

View File

@ -53,6 +53,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../../img/play.svg">Записи</div> <div><img src="../../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">

View File

@ -43,6 +43,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../../img/play.svg">Записи</div> <div><img src="../../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">

View File

@ -43,6 +43,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../img/play.svg">Записи</div> <div><img src="../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">

View File

@ -53,6 +53,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../../../img/play.svg">Записи</div> <div><img src="../../../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">
@ -970,6 +973,8 @@ const requestBody = {
DE, DE,
}; };
console.log(requestData);
try { try {
const response = await fetch(`/device-parameters?serial=${serial}`, { const response = await fetch(`/device-parameters?serial=${serial}`, {
method: 'PUT', method: 'PUT',

View File

@ -43,6 +43,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../img/play.svg">Записи</div> <div><img src="../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">

View File

@ -60,6 +60,9 @@
<a href="/videos"> <a href="/videos">
<div><img src="../img/play.svg">Записи</div> <div><img src="../img/play.svg">Записи</div>
</a> </a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">
<div><img src="../img/keyboard.svg">Админка</div> <div><img src="../img/keyboard.svg">Админка</div>

View File

@ -47,6 +47,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../img/play.svg">Записи</div> <div><img src="../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">

View File

@ -43,6 +43,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../img/play.svg">Записи</div> <div><img src="../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">

View File

@ -45,6 +45,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../img/play.svg">Записи</div> <div><img src="../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">

View File

@ -43,6 +43,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div><img src="../img/play.svg">Записи</div> <div><img src="../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">

View File

@ -47,6 +47,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div class="selected"><img src="../img/play.svg">Записи</div> <div class="selected"><img src="../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">

View File

@ -47,6 +47,9 @@
</a> </a>
<a href="/videos"> <a href="/videos">
<div class="selected"><img src="../img/play.svg">Записи</div> <div class="selected"><img src="../img/play.svg">Записи</div>
</a>
<a href="https://forms.yandex.ru/cloud/6515ecda3e9d08f17262c332/" target="_blank">
<div><img src="../img/bug.svg">Собщить об ошибке</div>
</a> </a>
{{#if isAdmin}} {{#if isAdmin}}
<a class="admin-panel" href="/admin"> <a class="admin-panel" href="/admin">