use relative paths in front-end

This commit is contained in:
Emile Nijssen 2022-01-10 22:28:24 -08:00
parent c6831a76fb
commit 72267b4d55

View File

@ -3,10 +3,10 @@
<head> <head>
<title>WireGuard</title> <title>WireGuard</title>
<link href="/css/vendor/tailwind.min.css" rel="stylesheet"> <link href="./css/vendor/tailwind.min.css" rel="stylesheet">
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="./manifest.json">
<link rel="icon" type="image/png" href="img/favicon.png"> <link rel="icon" type="image/png" href="./img/favicon.png">
<link rel="apple-touch-icon" href="img/apple-touch-icon.png"> <link rel="apple-touch-icon" href="./img/apple-touch-icon.png">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
</head> </head>
@ -200,7 +200,7 @@
<!-- Show QR--> <!-- Show QR-->
<button class="align-middle bg-gray-100 hover:bg-red-800 hover:text-white p-2 rounded transition" <button class="align-middle bg-gray-100 hover:bg-red-800 hover:text-white p-2 rounded transition"
title="Show QR Code" @click="qrcode = `/api/wireguard/client/${client.id}/qrcode.svg`"> title="Show QR Code" @click="qrcode = `./api/wireguard/client/${client.id}/qrcode.svg`">
<svg class="w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" <svg class="w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke="currentColor"> stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
@ -209,7 +209,7 @@
</button> </button>
<!-- Download Config --> <!-- Download Config -->
<a :href="'/api/wireguard/client/' + client.id + '/configuration'" download <a :href="'./api/wireguard/client/' + client.id + '/configuration'" download
class="align-middle inline-block bg-gray-100 hover:bg-red-800 hover:text-white p-2 rounded transition" class="align-middle inline-block bg-gray-100 hover:bg-red-800 hover:text-white p-2 rounded transition"
title="Download Configuration"> title="Download Configuration">
<svg class="w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" <svg class="w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
@ -473,13 +473,13 @@
</div> </div>
<script src="/js/vendor/vue.min.js"></script> <script src="./js/vendor/vue.min.js"></script>
<script src="/js/vendor/apexcharts.min.js"></script> <script src="./js/vendor/apexcharts.min.js"></script>
<script src="/js/vendor/vue-apexcharts.min.js"></script> <script src="./js/vendor/vue-apexcharts.min.js"></script>
<script src="/js/vendor/md5.min.js"></script> <script src="./js/vendor/md5.min.js"></script>
<script src="/js/vendor/timeago.min.js"></script> <script src="./js/vendor/timeago.min.js"></script>
<script src="/js/api.js"></script> <script src="./js/api.js"></script>
<script src="/js/app.js"></script> <script src="./js/app.js"></script>
</body> </body>
</html> </html>