luci-app-nikki: sync upstream

last commit: d5a8a1e9f3
This commit is contained in:
gitea-action 2025-03-04 20:30:21 +08:00
parent 8f0d9a05f0
commit 1bc17bc8c0
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_VERSION:=1.20.0 PKG_VERSION:=1.20.1
LUCI_TITLE:=LuCI Support for nikki LUCI_TITLE:=LuCI Support for nikki
LUCI_DEPENDS:=+luci-base +nikki LUCI_DEPENDS:=+luci-base +nikki

View File

@ -114,7 +114,7 @@ return baseclass.extend({
openDashboard: async function () { openDashboard: async function () {
const uiName = uci.get('nikki', 'mixin', 'ui_name'); const uiName = uci.get('nikki', 'mixin', 'ui_name');
const apiListen = uci.get('nikki', 'mixin', 'api_listen'); const apiListen = uci.get('nikki', 'mixin', 'api_listen');
const apiSecret = encodeURIComponent(uci.get('nikki', 'mixin', 'api_secret') ?? ''); const apiSecret = uci.get('nikki', 'mixin', 'api_secret') ?? '';
const apiPort = apiListen.substring(apiListen.lastIndexOf(':') + 1); const apiPort = apiListen.substring(apiListen.lastIndexOf(':') + 1);
const params = { const params = {
host: window.location.hostname, host: window.location.hostname,