Browse Source

fix(gui-v2): image paths

pull/3387/head
Wing-Kam Wong 2 years ago
parent
commit
c71bc4f86f
  1. 30
      packages/nc-gui-v2/components/general/Share.vue
  2. 2
      packages/nc-gui-v2/components/general/Sponsors.vue

30
packages/nc-gui-v2/components/general/Share.vue

@ -52,7 +52,7 @@ const openUrl = (url: string) => {
@click.prevent="openUrl(`https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodedSummary}&hashtags=${hashTags}`)" @click.prevent="openUrl(`https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodedSummary}&hashtags=${hashTags}`)"
> >
<img <img
src="~/public/social/twitter.png" src="~/assets/img/social/twitter.png"
class="img-responsive" class="img-responsive"
alt="Twitter" alt="Twitter"
:width="width" :width="width"
@ -71,7 +71,7 @@ const openUrl = (url: string) => {
" "
> >
<img <img
src="~/public/social/linkedin.png" src="~/assets/img/social/linkedin.png"
class="img-responsive" class="img-responsive"
alt="Linkedin" alt="Linkedin"
:width="width" :width="width"
@ -92,7 +92,7 @@ const openUrl = (url: string) => {
" "
> >
<img <img
src="~/public/social/facebook.png" src="~/assets/img/social/facebook.png"
class="img-responsive" class="img-responsive"
alt="Facebook" alt="Facebook"
:width="width" :width="width"
@ -109,7 +109,7 @@ const openUrl = (url: string) => {
@click.prevent="openUrl(`https://www.reddit.com/submit?url=${shareUrl}&title=${encodedSummary}`)" @click.prevent="openUrl(`https://www.reddit.com/submit?url=${shareUrl}&title=${encodedSummary}`)"
> >
<img <img
src="~/public/social/reddit.png" src="~/assets/img/social/reddit.png"
class="img-responsive" class="img-responsive"
alt="Reddit" alt="Reddit"
:width="width" :width="width"
@ -126,7 +126,7 @@ const openUrl = (url: string) => {
@click.prevent="openUrl(`https://pinterest.com/pin/create/button/?url=${shareUrl}&description==${encodedSummary}`)" @click.prevent="openUrl(`https://pinterest.com/pin/create/button/?url=${shareUrl}&description==${encodedSummary}`)"
> >
<img <img
src="~/public/social/pinterest.png" src="~/assets/img/social/pinterest.png"
class="img-responsive" class="img-responsive"
alt="Printrest" alt="Printrest"
:width="width" :width="width"
@ -143,7 +143,7 @@ const openUrl = (url: string) => {
@click.prevent="openUrl(`https://api.whatsapp.com/send?text=${encodedSummary}%0D%0A${shareUrl}`)" @click.prevent="openUrl(`https://api.whatsapp.com/send?text=${encodedSummary}%0D%0A${shareUrl}`)"
> >
<img <img
src="~/public/social/whatsapp.png" src="~/assets/img/social/whatsapp.png"
class="img-responsive" class="img-responsive"
alt="Whatsapp" alt="Whatsapp"
:width="width" :width="width"
@ -159,7 +159,7 @@ const openUrl = (url: string) => {
@click.prevent="openUrl(`https://telegram.me/share/url?url=${shareUrl}&text=${encodedSummary}`)" @click.prevent="openUrl(`https://telegram.me/share/url?url=${shareUrl}&text=${encodedSummary}`)"
> >
<img <img
src="~/public/social/png/telegram.png" src="~/assets/img/social/png/telegram.png"
class="img-responsive" class="img-responsive"
alt="Telegram" alt="Telegram"
:width="width" :width="width"
@ -174,7 +174,7 @@ const openUrl = (url: string) => {
@click.prevent="openUrl(`https://www.addtoany.com/add_to/wechat?linkurl=${shareUrl}&linkname=${encodedTitle}`)" @click.prevent="openUrl(`https://www.addtoany.com/add_to/wechat?linkurl=${shareUrl}&linkname=${encodedTitle}`)"
> >
<img <img
src="~/public/social/png/wechat.png" src="~/assets/img/social/png/wechat.png"
class="img-responsive" class="img-responsive"
alt="Wechat" alt="Wechat"
:width="width" :width="width"
@ -184,7 +184,7 @@ const openUrl = (url: string) => {
</a> </a>
<a v-if="!socialMedias || !socialMedias.length || socialMedias.includes('line')" href="#" :class="iconClass" class="px-2"> <a v-if="!socialMedias || !socialMedias.length || socialMedias.includes('line')" href="#" :class="iconClass" class="px-2">
<img <img
src="~/public/social/png/line.png" src="~/assets/img/social/png/line.png"
class="img-responsive" class="img-responsive"
alt="Line" alt="Line"
:width="width" :width="width"
@ -200,7 +200,7 @@ const openUrl = (url: string) => {
class="px-2" class="px-2"
> >
<img <img
src="~/public/social/png/odnoklassniki.png" src="~/assets/img/social/png/odnoklassniki.png"
class="img-responsive" class="img-responsive"
alt="Odnoklassniki" alt="Odnoklassniki"
:width="width" :width="width"
@ -219,7 +219,7 @@ const openUrl = (url: string) => {
@click.prevent="openUrl(`http://service.weibo.com/share/share.php?url=${shareUrl})&title=${encodedTitle}`)" @click.prevent="openUrl(`http://service.weibo.com/share/share.php?url=${shareUrl})&title=${encodedTitle}`)"
> >
<img <img
src="~/public/social/png/weibo.png" src="~/assets/img/social/png/weibo.png"
class="img-responsive" class="img-responsive"
alt="Weibo" alt="Weibo"
:width="width" :width="width"
@ -238,7 +238,7 @@ const openUrl = (url: string) => {
" "
> >
<img <img
src="~/public/social/png/renren.png" src="~/assets/img/social/png/renren.png"
class="img-responsive" class="img-responsive"
alt="Renren" alt="Renren"
:width="width" :width="width"
@ -253,7 +253,7 @@ const openUrl = (url: string) => {
@click.prevent="openUrl(`http://www.douban.com/recommend/?url=${shareUrl}&title=${encodedTitle}`)" @click.prevent="openUrl(`http://www.douban.com/recommend/?url=${shareUrl}&title=${encodedTitle}`)"
> >
<img <img
src="~/public/social/png/douban.png" src="~/assets/img/social/png/douban.png"
class="img-responsive" class="img-responsive"
alt="Douban" alt="Douban"
:width="width" :width="width"
@ -271,7 +271,7 @@ const openUrl = (url: string) => {
" "
> >
<img <img
src="~/public/social/png/vk.png" src="~/assets/img/social/png/vk.png"
class="img-responsive" class="img-responsive"
alt="VK" alt="VK"
:width="width" :width="width"
@ -286,7 +286,7 @@ const openUrl = (url: string) => {
@click.prevent="openUrl(`https://www.addtoany.com/add_to/wykop?linkurl=${shareUrl}&linkname=${encodedTitle}`)" @click.prevent="openUrl(`https://www.addtoany.com/add_to/wykop?linkurl=${shareUrl}&linkname=${encodedTitle}`)"
> >
<img <img
src="~/public/social/png/wykop.jpg" src="~/assets/img/social/png/wykop.jpg"
class="img-responsive" class="img-responsive"
alt="Wykop" alt="Wykop"
:width="width" :width="width"

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

@ -9,7 +9,7 @@ const { nav = false } = defineProps<Props>()
<template> <template>
<a-card class="w-[300px] shadow-sm !rounded-lg"> <a-card class="w-[300px] shadow-sm !rounded-lg">
<template #cover> <template #cover>
<img class="max-h-[180px] !rounded-t-lg" alt="cover" src="~/public/ants-leaf-cutter.jpeg" /> <img class="max-h-[180px] !rounded-t-lg" alt="cover" src="~/assets/img/ants-leaf-cutter.jpeg" />
</template> </template>
<a-card-meta> <a-card-meta>

Loading…
Cancel
Save