From 0bfde0841e1a5a7710e6b5c01e47e60f7d02fdba Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 12 Jul 2024 14:11:28 +0200 Subject: [PATCH] feat(vpn): add setup device UI with Wireguard config generator Introduced a new HTML template for setting up VPN devices. This template includes a form to input the device name, generating Wireguard configuration and displaying it both in text and as a QR code. Utilizes Wireguard Crypto library for key generation and QRCode.js for QR code generation. This enhancement streamlines the VPN setup process for users by providing an automated way to generate necessary configuration and an easy-to-scan QR code for mobile devices. --- coldbrew/vpn/templates/vpn/setup_device.html | 77 ++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 coldbrew/vpn/templates/vpn/setup_device.html diff --git a/coldbrew/vpn/templates/vpn/setup_device.html b/coldbrew/vpn/templates/vpn/setup_device.html new file mode 100644 index 0000000..c0cb403 --- /dev/null +++ b/coldbrew/vpn/templates/vpn/setup_device.html @@ -0,0 +1,77 @@ + + + + Setup Device + + + + +

Setup Device

+
+ +

+ +
+ +

Wireguard Configuration

+

+
+    

QR Code

+
+ + + +