From 2a4423d036d15fb2ea22ffb4b4afe017c6a7ca8b Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Fri, 23 Jan 2026 12:39:20 +0100 Subject: [PATCH] fix(wireguard-dashboard): Fix QR library module export pattern Changed from baseclass.extend() to simple object return pattern to match other libraries (chart.js). The baseclass dependency was causing the module to fail loading. Co-Authored-By: Claude Opus 4.5 --- package/secubox/luci-app-wireguard-dashboard/Makefile | 2 +- .../luci-static/resources/wireguard-dashboard/qrcode.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package/secubox/luci-app-wireguard-dashboard/Makefile b/package/secubox/luci-app-wireguard-dashboard/Makefile index 4c4b1dea..ecb89292 100644 --- a/package/secubox/luci-app-wireguard-dashboard/Makefile +++ b/package/secubox/luci-app-wireguard-dashboard/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-wireguard-dashboard PKG_VERSION:=0.7.0 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_ARCH:=all PKG_LICENSE:=Apache-2.0 diff --git a/package/secubox/luci-app-wireguard-dashboard/htdocs/luci-static/resources/wireguard-dashboard/qrcode.js b/package/secubox/luci-app-wireguard-dashboard/htdocs/luci-static/resources/wireguard-dashboard/qrcode.js index c70fbab2..2a97d165 100644 --- a/package/secubox/luci-app-wireguard-dashboard/htdocs/luci-static/resources/wireguard-dashboard/qrcode.js +++ b/package/secubox/luci-app-wireguard-dashboard/htdocs/luci-static/resources/wireguard-dashboard/qrcode.js @@ -1,5 +1,4 @@ 'use strict'; -'require baseclass'; /** * QR Code Generator for WireGuard Dashboard @@ -444,7 +443,7 @@ function generateSVG(text, displaySize) { } } -return baseclass.extend({ +return { /** * Generate QR code as SVG string * @param {string} text - Text to encode (up to ~300 bytes) @@ -489,4 +488,4 @@ return baseclass.extend({ getMaxCapacity: function() { return VERSION_CAPACITIES[20]; // 858 bytes } -}); +};