mirror of https://github.com/wg-easy/wg-easy
13 changed files with 101 additions and 36 deletions
@ -1,21 +1,26 @@ |
|||
<template> |
|||
<div |
|||
v-if=" |
|||
enableOneTimeLinks && |
|||
globalStore.enableOneTimeLinks && |
|||
client.oneTimeLink !== null && |
|||
client.oneTimeLink !== '' |
|||
" |
|||
:ref="'client-' + client.id + '-link'" |
|||
class="text-gray-400 text-xs" |
|||
> |
|||
<a :href="'./cnf/' + client.oneTimeLink + ''" |
|||
>{{ document.location.protocol }}//{{ document.location.host }}/cnf/{{ |
|||
client.oneTimeLink |
|||
}}</a |
|||
> |
|||
<a :href="'./cnf/' + client.oneTimeLink + ''">{{ path }}</a> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
defineProps<{ client: LocalClient }>(); |
|||
const props = defineProps<{ client: LocalClient }>(); |
|||
|
|||
const globalStore = useGlobalStore(); |
|||
|
|||
const path = computed(() => { |
|||
if (import.meta.client) { |
|||
return `${document.location.protocol}//${document.location.host}/cnf/${props.client.oneTimeLink}`; |
|||
} |
|||
return ''; |
|||
}); |
|||
</script> |
|||
|
Loading…
Reference in new issue