This commit is contained in:
Donald Zou
2025-09-16 08:25:32 +08:00
parent c42776a6d7
commit 569ee8ac58
5 changed files with 30 additions and 22 deletions

View File

@@ -65,7 +65,7 @@ window.dayjs = dayjs
<small class="text-muted ">
<i class="bi bi-bar-chart-fill me-1"></i> Data Usage
</small>
<small class="fw-bold ms-sm-auto">
<small class="fw-bold ms-auto">
{{ props.config.data.toFixed(4) }} / {{ totalDataLimit ? parseFloat(totalDataLimit).toFixed(4) : 'Unlimited'}} GB
</small>
</div>

View File

@@ -16,6 +16,12 @@ const amneziaVPN = computed(() => {
}
return undefined
})
const download = computed(() => {
return URL.createObjectURL(new Blob([props.qrcodeData.file], {
type: 'text/conf'
}))
})
</script>
<template>
@@ -25,7 +31,7 @@ const amneziaVPN = computed(() => {
<i class="me-2 bi bi-chevron-left"></i> Back
</a>
</div>
<div class="m-auto d-flex gap-3 flex-column p-3" style="width: 400px">
<div class="m-auto d-flex gap-3 flex-column p-3" style="max-width: 400px">
<div class="d-flex flex-column gap-2 align-items-center">
<Qrcode :content="props.qrcodeData.file"></Qrcode>
@@ -41,9 +47,11 @@ const amneziaVPN = computed(() => {
</div>
<hr class="border-white w-100 my-2">
<button class="btn bg-primary-subtle border-primary-subtle rounded-3">
<a
:href="download"
class="btn bg-primary-subtle border-primary-subtle rounded-3">
<i class="bi bi-download me-2"></i>Download
</button>
</a>
</div>
</div>

View File

@@ -28,8 +28,8 @@
}
}
</style>
<script type="module" crossorigin src="/static/dist/WGDashboardClient/assets/index-BCXJox7M.js"></script>
<link rel="stylesheet" crossorigin href="/static/dist/WGDashboardClient/assets/index-os7OmO6p.css">
<script type="module" crossorigin src="/static/dist/WGDashboardClient/assets/index-O5xfxIpx.js"></script>
<link rel="stylesheet" crossorigin href="/static/dist/WGDashboardClient/assets/index-DBL2TzUY.css">
</head>
<body>
<div id="app">