zigbee2mqtt-frontend 0.6.43 → 0.6.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html
CHANGED
@@ -1 +1 @@
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"><title>Zigbee2MQTT</title><link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/><link rel="subresource" href="./css/light.css"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==" crossorigin="anonymous"/><link rel="apple-touch-icon" href="apple-touch-icon.png" sizes="150x150"><script defer="defer" src="runtime.3296ac9a5caef629c7d6.js"></script><script defer="defer" src="scripts/vendor.49fee1be1555be7ec8f9.js"></script><script defer="defer" src="main.
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"><title>Zigbee2MQTT</title><link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/><link rel="subresource" href="./css/light.css"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==" crossorigin="anonymous"/><link rel="apple-touch-icon" href="apple-touch-icon.png" sizes="150x150"><script defer="defer" src="runtime.3296ac9a5caef629c7d6.js"></script><script defer="defer" src="scripts/vendor.49fee1be1555be7ec8f9.js"></script><script defer="defer" src="main.ca71116fd87916d05b29.js"></script><link href="scripts/vendor.109be7bda8112bf971cc.css" rel="stylesheet"><link href="main.7379448ff31d4e2a65b8.css" rel="stylesheet"></head><body><div id="root" class="wrapper"></div></body></html>
|
@@ -161,8 +161,9 @@ const stringifyWithPreservingUndefinedAsNull = (data) => JSON.stringify(data, (k
|
|
161
161
|
const isOnlyOneBitIsSet = (b) => {
|
162
162
|
return b && !(b & (b - 1));
|
163
163
|
};
|
164
|
-
const
|
165
|
-
const
|
164
|
+
const THEME_STORAGE_KEY = 'theme-v2';
|
165
|
+
const getCurrentTheme = () => { var _a; return (_a = local/* local.getItem */.I.getItem(THEME_STORAGE_KEY)) !== null && _a !== void 0 ? _a : 'light'; };
|
166
|
+
const saveCurrentTheme = (theme) => local/* local.setItem */.I.setItem(THEME_STORAGE_KEY, theme);
|
166
167
|
|
167
168
|
;// CONCATENATED MODULE: ./src/components/device-image/style.css
|
168
169
|
// extracted by mini-css-extract-plugin
|
@@ -390,8 +391,8 @@ var notyf_es = __webpack_require__(46685);
|
|
390
391
|
|
391
392
|
|
392
393
|
const MAX_LOGS_RECORDS_IN_BUFFER = 100;
|
393
|
-
const TOKEN_LOCAL_STORAGE_ITEM_NAME = "z2m-token";
|
394
|
-
const AUTH_FLAG_LOCAL_STORAGE_ITEM_NAME = "z2m-auth";
|
394
|
+
const TOKEN_LOCAL_STORAGE_ITEM_NAME = "z2m-token-v2";
|
395
|
+
const AUTH_FLAG_LOCAL_STORAGE_ITEM_NAME = "z2m-auth-v2";
|
395
396
|
const UNAUTHORIZED_ERROR_CODE = 4401;
|
396
397
|
const AVALIABILITY_FEATURE_TOPIC_ENDING = "/availability";
|
397
398
|
const notyf = new notyf_es/* Notyf */.Iq();
|
@@ -1563,8 +1564,10 @@ function GlobalFilter({ globalFilter, setGlobalFilter, }) {
|
|
1563
1564
|
onChange(e.target.value);
|
1564
1565
|
}, placeholder: t('common:enter_search_criteria'), className: "form-control" })));
|
1565
1566
|
}
|
1567
|
+
const TABLE_STORAGE_PREFFIX = 'rc-table-';
|
1568
|
+
const getStorageKey = (id) => `${TABLE_STORAGE_PREFFIX}${id}`;
|
1566
1569
|
const persist = debounce_default()((key, data) => {
|
1567
|
-
local/* local.setItem */.I.setItem(key, data);
|
1570
|
+
local/* local.setItem */.I.setItem(getStorageKey(key), data);
|
1568
1571
|
});
|
1569
1572
|
const stateReducer = (newState, action, previousState, instance) => {
|
1570
1573
|
if (instance) {
|
@@ -1575,7 +1578,7 @@ const stateReducer = (newState, action, previousState, instance) => {
|
|
1575
1578
|
return newState;
|
1576
1579
|
};
|
1577
1580
|
const Table = ({ columns, data, id }) => {
|
1578
|
-
const initialState = local/* local.getItem */.I.getItem(id) || {};
|
1581
|
+
const initialState = local/* local.getItem */.I.getItem(getStorageKey(id)) || {};
|
1579
1582
|
const { getTableProps, getTableBodyProps, headerGroups, rows, prepareRow, state, visibleColumns, setGlobalFilter, } = (0,react_table.useTable)({
|
1580
1583
|
instanceId: id,
|
1581
1584
|
stateReducer,
|
@@ -3960,7 +3963,7 @@ class SettingsPage extends react.Component {
|
|
3960
3963
|
zigbee2mqttCommit) },
|
3961
3964
|
{ translationKey: 'coordinator_type', content: react.createElement(react.Fragment, null, (_c = (_b = bridgeInfo.coordinator) === null || _b === void 0 ? void 0 : _b.type) !== null && _c !== void 0 ? _c : t('common:unknown')) },
|
3962
3965
|
{ translationKey: 'coordinator_revision', content: react.createElement(react.Fragment, null, (_f = (_e = (_d = bridgeInfo.coordinator) === null || _d === void 0 ? void 0 : _d.meta) === null || _e === void 0 ? void 0 : _e.revision) !== null && _f !== void 0 ? _f : t('common:unknown')) },
|
3963
|
-
{ translationKey: 'frontend_version', content: "0.6.
|
3966
|
+
{ translationKey: 'frontend_version', content: "0.6.44" },
|
3964
3967
|
{ translationKey: 'stats', content: react.createElement(Stats, { devices: devices }) },
|
3965
3968
|
];
|
3966
3969
|
return react.createElement("div", { className: "p-3" }, rows.map(row => react.createElement("dl", { key: row.translationKey, className: "row" },
|
@@ -5368,4 +5371,4 @@ module.exports = "class MyExampleExtension_TS_ {\n constructor(zigbee, mqtt,
|
|
5368
5371
|
/******/ var __webpack_exports__ = __webpack_require__.O();
|
5369
5372
|
/******/ }
|
5370
5373
|
]);
|
5371
|
-
//# sourceMappingURL=main.
|
5374
|
+
//# sourceMappingURL=main.ca71116fd87916d05b29.js.map
|