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:
parent
2f16875c4b
commit
2a4423d036
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-wireguard-dashboard
|
PKG_NAME:=luci-app-wireguard-dashboard
|
||||||
PKG_VERSION:=0.7.0
|
PKG_VERSION:=0.7.0
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
PKG_ARCH:=all
|
PKG_ARCH:=all
|
||||||
|
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
'require baseclass';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* QR Code Generator for WireGuard Dashboard
|
* QR Code Generator for WireGuard Dashboard
|
||||||
@ -444,7 +443,7 @@ function generateSVG(text, displaySize) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return baseclass.extend({
|
return {
|
||||||
/**
|
/**
|
||||||
* Generate QR code as SVG string
|
* Generate QR code as SVG string
|
||||||
* @param {string} text - Text to encode (up to ~300 bytes)
|
* @param {string} text - Text to encode (up to ~300 bytes)
|
||||||
@ -489,4 +488,4 @@ return baseclass.extend({
|
|||||||
getMaxCapacity: function() {
|
getMaxCapacity: function() {
|
||||||
return VERSION_CAPACITIES[20]; // 858 bytes
|
return VERSION_CAPACITIES[20]; // 858 bytes
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user