mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2024-12-18 00:13:23 +00:00
parent
34a06ad258
commit
172551dcab
@ -16,7 +16,7 @@ type Client struct {
|
|||||||
PresharedKey string `json:"presharedKey"`
|
PresharedKey string `json:"presharedKey"`
|
||||||
AllowedIPs []string `json:"allowedIPs"`
|
AllowedIPs []string `json:"allowedIPs"`
|
||||||
Address []string `json:"address"`
|
Address []string `json:"address"`
|
||||||
Tags []string `json:"tags"`
|
Tags []string `json:"tags"`
|
||||||
PrivateKey string `json:"privateKey"`
|
PrivateKey string `json:"privateKey"`
|
||||||
PublicKey string `json:"publicKey"`
|
PublicKey string `json:"publicKey"`
|
||||||
CreatedBy string `json:"createdBy"`
|
CreatedBy string `json:"createdBy"`
|
||||||
|
@ -66,30 +66,39 @@
|
|||||||
</v-row>
|
</v-row>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item.action="{ item }">
|
<template v-slot:item.action="{ item }">
|
||||||
<v-icon
|
<v-row>
|
||||||
class="pr-1 pl-1"
|
<v-icon
|
||||||
@click.stop="startUpdate(item)"
|
class="pr-1 pl-1"
|
||||||
>
|
@click.stop="startUpdate(item)"
|
||||||
mdi-square-edit-outline
|
>
|
||||||
</v-icon>
|
mdi-square-edit-outline
|
||||||
<v-icon
|
</v-icon>
|
||||||
class="pr-1 pl-1"
|
<v-icon
|
||||||
@click.stop="forceFileDownload(item)"
|
class="pr-1 pl-1"
|
||||||
>
|
@click.stop="forceFileDownload(item)"
|
||||||
mdi-cloud-download-outline
|
>
|
||||||
</v-icon>
|
mdi-cloud-download-outline
|
||||||
<v-icon
|
</v-icon>
|
||||||
class="pr-1 pl-1"
|
<v-icon
|
||||||
@click.stop="email(item)"
|
class="pr-1 pl-1"
|
||||||
>
|
@click.stop="email(item)"
|
||||||
mdi-email-send-outline
|
>
|
||||||
</v-icon>
|
mdi-email-send-outline
|
||||||
<v-icon
|
</v-icon>
|
||||||
class="pr-1 pl-1"
|
<v-icon
|
||||||
@click="remove(item)"
|
class="pr-1 pl-1"
|
||||||
>
|
@click="remove(item)"
|
||||||
mdi-trash-can-outline
|
>
|
||||||
</v-icon>
|
mdi-trash-can-outline
|
||||||
|
</v-icon>
|
||||||
|
<v-switch
|
||||||
|
dark
|
||||||
|
class="pr-1 pl-1"
|
||||||
|
color="success"
|
||||||
|
v-model="item.enable"
|
||||||
|
v-on:change="update(item)"
|
||||||
|
/>
|
||||||
|
</v-row>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
@ -592,7 +601,7 @@
|
|||||||
const url = window.URL.createObjectURL(new Blob([config]))
|
const url = window.URL.createObjectURL(new Blob([config]))
|
||||||
const link = document.createElement('a')
|
const link = document.createElement('a')
|
||||||
link.href = url
|
link.href = url
|
||||||
link.setAttribute('download', 'wg0.conf') //or any other extension
|
link.setAttribute('download', client.name.split(' ').join('-') + '.conf') //or any other extension
|
||||||
document.body.appendChild(link)
|
document.body.appendChild(link)
|
||||||
link.click()
|
link.click()
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user