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 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-01-23 12:39:20 +01:00
parent 2f16875c4b
commit 2a4423d036
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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
}
});
};