From 10e3c449ef79b85626a10f3d4559c666dc202eb3 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 20 Mar 2024 13:22:35 +0100 Subject: [PATCH] luci-app-nlbwmon: move chartjs to own packages luci-lib-chartjs Signed-off-by: Florian Eckert --- applications/luci-app-nlbwmon/Makefile | 2 +- libs/luci-lib-chartjs/Makefile | 11 +++++++++++ .../htdocs/luci-static/resources/nlbw.chart.min.js | 0 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 libs/luci-lib-chartjs/Makefile rename {applications/luci-app-nlbwmon => libs/luci-lib-chartjs}/htdocs/luci-static/resources/nlbw.chart.min.js (100%) diff --git a/applications/luci-app-nlbwmon/Makefile b/applications/luci-app-nlbwmon/Makefile index fcf55a3212..95c5f29b07 100644 --- a/applications/luci-app-nlbwmon/Makefile +++ b/applications/luci-app-nlbwmon/Makefile @@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk PKG_LICENSE:=Apache-2.0 LUCI_TITLE:=Netlink based bandwidth accounting -LUCI_DEPENDS:=+luci-base +nlbwmon +LUCI_DEPENDS:=+luci-base +luci-lib-chartjs +nlbwmon include ../../luci.mk diff --git a/libs/luci-lib-chartjs/Makefile b/libs/luci-lib-chartjs/Makefile new file mode 100644 index 0000000000..ba545f1057 --- /dev/null +++ b/libs/luci-lib-chartjs/Makefile @@ -0,0 +1,11 @@ +# This is free software, licensed under the Apache License, Version 2.0 . + +include $(TOPDIR)/rules.mk + +PKG_LICENSE=MIT + +LUCI_TITLE:=Simple HTML5 charts using the canvas element + +include ../../luci.mk + +# call BuildPackage - OpenWrt buildroot signature diff --git a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/nlbw.chart.min.js b/libs/luci-lib-chartjs/htdocs/luci-static/resources/nlbw.chart.min.js similarity index 100% rename from applications/luci-app-nlbwmon/htdocs/luci-static/resources/nlbw.chart.min.js rename to libs/luci-lib-chartjs/htdocs/luci-static/resources/nlbw.chart.min.js -- 2.30.2