From 05aaa1c9b55cab1117bee569fda5c3903c1af782 Mon Sep 17 00:00:00 2001 From: Al Saleh Date: Tue, 6 Feb 2024 15:18:38 +0000 Subject: [PATCH 1/2] Fixed sorting by vmid --- src/components/Widgets/Proxmox.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Widgets/Proxmox.vue b/src/components/Widgets/Proxmox.vue index 78da0e18..5ae09fcc 100644 --- a/src/components/Widgets/Proxmox.vue +++ b/src/components/Widgets/Proxmox.vue @@ -94,7 +94,7 @@ export default { } }, processData(data) { - this.data = data.data.sort((a, b) => a.vmid > b.vmid); + this.data = data.data.sort((a, b) => Number(a.vmid) > Number(b.vmid)); if (this.hideTemplates) { this.data = this.data.filter(item => item.template !== 1); } From 4a570edaee70c248df51c66f014449637b3415aa Mon Sep 17 00:00:00 2001 From: Al Saleh Date: Wed, 7 Feb 2024 11:42:45 +0000 Subject: [PATCH 2/2] Added troubleshooting documentation for Proxmox widgets --- docs/widgets.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/widgets.md b/docs/widgets.md index 8192bd0b..2ce20c45 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -2128,6 +2128,11 @@ This will show the list of VMs, with a title and a linked fotter, hiding VM temp footer_as_link: true hide_templates: 1 ``` +#### Troubleshooting +- **404 Error in development mode**: The error might disappear in production mode `yarn start` +- **500 Error in production mode**: Try adding the certificate authority (CA) certificate of your Proxmox host to Node.js. + - Download the Proxmox CA certificate to your Dashy host. + - Export environment variable `NODE_EXTRA_CA_CERTS` and set its value to the path of the downloaded CA certificate. Example: `export NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/devlab_ca.pem` #### Info - **CORS**: 🟠 Proxied