mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 15:02:21 +03:00
сброс логов при сохранении
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "iotm-web",
|
||||
"version": "4.1.8",
|
||||
"version": "4.2.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
|
||||
<title>IoT Manager 4.1.9</title>
|
||||
<title>IoT Manager 4.2.0</title>
|
||||
|
||||
<link rel="icon" type="image/png" href="/favicon.ico" />
|
||||
<link rel="stylesheet" href="/build/bundle.css" />
|
||||
|
||||
@@ -37,12 +37,12 @@
|
||||
let opened = false;
|
||||
let preventMove = false;
|
||||
let showWidjetJson = false;
|
||||
let devMode = false;
|
||||
let devMode = true;
|
||||
|
||||
//****************************************************variable section**********************************************************/
|
||||
//******************************************************************************************************************************/
|
||||
let myip = document.location.hostname;
|
||||
if (devMode) myip = "192.168.88.223";
|
||||
if (devMode) myip = "192.168.88.221";
|
||||
|
||||
//Flags
|
||||
let firstDevListRequest = true;
|
||||
@@ -1138,7 +1138,7 @@
|
||||
{/if}
|
||||
</Route>
|
||||
<Route path="/config">
|
||||
<ConfigPage show={configReady} configJson={configJson} widgetsJson={widgetsJson} itemsJson={itemsJson} saveConfig={() => saveConfig()} rebootEsp={() => rebootEsp()} scenarioJson={scenarioJson} />
|
||||
<ConfigPage show={configReady} configJson={configJson} widgetsJson={widgetsJson} itemsJson={itemsJson} saveConfig={() => saveConfig()} cleanLogs={() => cleanLogs()} rebootEsp={() => rebootEsp()} scenarioJson={scenarioJson} />
|
||||
</Route>
|
||||
<Route path="/connection">
|
||||
<ConnectionPage show={connectionReady} rebootEsp={() => rebootEsp()} ssidClick={() => ssidClick()} saveSett={() => saveSett()} saveMqtt={() => saveMqtt()} settingsJson={settingsJson} errorsJson={errorsJson} ssidJson={ssidJson} />
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
export let saveConfig = () => {};
|
||||
export let rebootEsp = () => {};
|
||||
export let cleanLogs = () => {};
|
||||
|
||||
let hideAllSubParams = true;
|
||||
|
||||
@@ -132,7 +133,7 @@
|
||||
<div class="grd-1col1">
|
||||
<Card>
|
||||
<div class="grd-2col1">
|
||||
<button class="btn-lg" on:click={() => saveConfig()}>{"Сохранить"}</button>
|
||||
<button class="btn-lg" on:click={() => (cleanLogs(), saveConfig())}>{"Сохранить"}</button>
|
||||
<button class="btn-lg" on:click={() => rebootEsp()}>{"Перезагрузить"}</button>
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user