Skip to content

Commit

Permalink
refactor: use NeLink instead of <a> text links
Browse files Browse the repository at this point in the history
  • Loading branch information
andre8244 committed Feb 5, 2024
1 parent a97501d commit 9c34075
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/controller/ControllerAppLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function validate() {
</div>

<div class="text-sm leading-6">
<NeLink href="https://docs.nethsecurity.org/" external class="font-medium">
<NeLink href="https://docs.nethsecurity.org/" target="_blank" class="font-medium">
{{ t('login.need_help') }}
</NeLink>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/standalone/StandaloneAppLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ async function verifyOtp() {
<div class="text-sm leading-6">
<NeLink
href="https://docs.nethsecurity.org/en/latest/remote_access.html#default-credentials"
external
target="_blank"
class="font-medium"
>
{{ t('login.need_help') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function successMigration() {
<div class="mb-8 text-sm font-normal text-gray-500 dark:text-gray-400">
{{ t('standalone.backup_and_restore.migration.description') }}
<div class="mt-4">
<NeLink href="https://docs.nethsecurity.org/en/latest/migration.html" external>
<NeLink href="https://docs.nethsecurity.org/en/latest/migration.html" target="_blank">
<FontAwesomeIcon class="mr-2" :icon="['fa', 'arrow-up-right-from-square']" />
{{ t('standalone.backup_and_restore.migration.description_link') }}
</NeLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ watch(
<template #content>
<i18n-t keypath="standalone.certificates.dns_api_tooltip" tag="span">
<template #dnsapiurl>
<NeLink href="https://github.com/acmesh-official/acme.sh/wiki/dnsapi" external
<NeLink
href="https://github.com/acmesh-official/acme.sh/wiki/dnsapi"
target="_blank"
>https://github.com/acmesh-official/acme.sh/wiki/dnsapi</NeLink
>
</template>
Expand Down
4 changes: 2 additions & 2 deletions src/components/standalone/security/FlashstartContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function save() {
<template #description>
<i18n-t keypath="standalone.flashstart.content_description" tag="p">
<template #createAccount>
<NeLink href="https://flashstart.nethesis.it/" external>
<NeLink href="https://flashstart.nethesis.it/" target="_blank">
{{ t('standalone.flashstart.content_link') }}
</NeLink>
</template>
Expand Down Expand Up @@ -270,7 +270,7 @@ function save() {
<template #content>
<i18n-t keypath="standalone.flashstart.username_helper" tag="span">
<template #flashstartUrl>
<NeLink href="https://flashstart.nethesis.it/" external>
<NeLink href="https://flashstart.nethesis.it/" target="_blank">
https://flashstart.nethesis.it/
</NeLink>
</template>
Expand Down

0 comments on commit 9c34075

Please sign in to comment.