Browse Source

refactor(nc-gui): add no-prefetch to external links

pull/3801/head
braks 2 years ago
parent
commit
2351718931
  1. 23
      packages/nc-gui/components/general/SocialCard.vue
  2. 2
      packages/nc-gui/components/general/Sponsors.vue

23
packages/nc-gui/components/general/SocialCard.vue

@ -14,6 +14,8 @@ const isRtlLang = $computed(() => ['fa', 'ar'].includes(currentLang.value))
<a-list-item>
<nuxt-link
v-e="['e:docs']"
no-prefetch
no-rel
class="text-primary !no-underline !text-current"
target="_blank"
to="https://docs.nocodb.com/"
@ -27,6 +29,8 @@ const isRtlLang = $computed(() => ['fa', 'ar'].includes(currentLang.value))
<a-list-item>
<nuxt-link
v-e="['e:api-docs']"
no-prefetch
no-rel
class="text-primary !no-underline !text-current"
target="_blank"
to="https://apis.nocodb.com/"
@ -41,6 +45,8 @@ const isRtlLang = $computed(() => ['fa', 'ar'].includes(currentLang.value))
<a-list-item>
<nuxt-link
v-e="['e:community:github']"
no-prefetch
no-rel
class="text-primary !no-underline !text-current"
to="https://github.com/nocodb/nocodb"
target="_blank"
@ -67,6 +73,8 @@ const isRtlLang = $computed(() => ['fa', 'ar'].includes(currentLang.value))
<a-list-item>
<nuxt-link
v-e="['e:community:book-demo']"
no-prefetch
no-rel
class="!no-underline !text-current"
to="https://calendly.com/nocodb-meeting"
target="_blank"
@ -83,6 +91,8 @@ const isRtlLang = $computed(() => ['fa', 'ar'].includes(currentLang.value))
<a-list-item>
<nuxt-link
v-e="['e:community:discord']"
no-prefetch
no-rel
class="!no-underline !text-current"
to="https://discord.gg/5RgZmkW"
target="_blank"
@ -99,6 +109,8 @@ const isRtlLang = $computed(() => ['fa', 'ar'].includes(currentLang.value))
<a-list-item>
<nuxt-link
v-e="['e:community:twitter']"
no-prefetch
no-rel
class="!no-underline !text-current"
to="https://twitter.com/NocoDB"
target="_blank"
@ -113,7 +125,14 @@ const isRtlLang = $computed(() => ['fa', 'ar'].includes(currentLang.value))
</nuxt-link>
</a-list-item>
<a-list-item>
<nuxt-link v-e="['e:hiring']" class="!no-underline !text-current" target="_blank" to="http://careers.nocodb.com">
<nuxt-link
v-e="['e:hiring']"
no-prefetch
no-rel
class="!no-underline !text-current"
target="_blank"
to="http://careers.nocodb.com"
>
<div class="flex items-center text-sm">
<!-- todo: i18n -->
<div class="ml-3">
@ -125,6 +144,8 @@ const isRtlLang = $computed(() => ['fa', 'ar'].includes(currentLang.value))
<a-list-item>
<nuxt-link
v-e="['e:community:reddit']"
no-prefetch
no-rel
class="!no-underline !text-current"
target="_blank"
to="https://www.reddit.com/r/NocoDB/"

2
packages/nc-gui/components/general/Sponsors.vue

@ -25,7 +25,7 @@ const { nav = false } = defineProps<Props>()
</div>
<div class="flex justify-center">
<nuxt-link href="https://github.com/sponsors/nocodb" target="_blank">
<nuxt-link no-prefetch no-rel href="https://github.com/sponsors/nocodb" target="_blank">
<a-button class="!shadow rounded" size="large">
<div class="flex items-center">
<mdi-cards-heart class="text-red-500 mr-2" />

Loading…
Cancel
Save