FreeTube/src/renderer/components/ft-share-button/ft-share-button.vue

126 lines
3.3 KiB
Vue

<template>
<ft-icon-button
ref="iconButton"
:title="$t('Share.Share Video')"
theme="secondary"
icon="share-alt"
dropdown-position-x="left"
:force-dropdown="true"
>
<div class="shareLinks">
<div class="header">
<img
class="youtubeLogo"
src="~../../assets/img/yt_logo_mono_dark.png"
alt="YouTube"
width="794"
height="178"
>
</div>
<div class="buttons">
<ft-button
class="action"
@click="copyYoutube()"
>
<font-awesome-icon icon="copy" />
{{ $t("Share.Copy Link") }}
</ft-button>
<ft-button
class="action"
@click="copyYoutubeAtTime()"
>
<font-awesome-icon icon="copy" />
{{ $t("Share.Copy Link At Current Time") }}
</ft-button>
<ft-button
class="action"
@click="openYoutube()"
>
<font-awesome-icon icon="globe" />
{{ $t("Share.Open Link") }}
</ft-button>
<ft-button
class="action"
@click="openYoutubeAtTime()"
>
<font-awesome-icon icon="globe" />
{{ $t("Share.Open Link At Current Time") }}
</ft-button>
<ft-button
class="action"
background-color="var(--accent-color-active)"
@click="copyYoutubeEmbed()"
>
<font-awesome-icon icon="copy" />
{{ $t("Share.Copy Embed") }}
</ft-button>
<ft-button
class="action"
background-color="var(--accent-color-active)"
@click="openYoutubeEmbed()"
>
<font-awesome-icon icon="globe" />
{{ $t("Share.Open Embed") }}
</ft-button>
</div>
<div class="divider" />
<div class="header invidious">
<span class="invidiousLogo" />Invidious
</div>
<div class="buttons">
<ft-button
class="action"
@click="copyInvidious()"
>
<font-awesome-icon icon="copy" />
{{ $t("Share.Copy Link") }}
</ft-button>
<ft-button
class="action"
@click="copyInvidiousAtTime()"
>
<font-awesome-icon icon="copy" />
{{ $t("Share.Copy Link At Current Time") }}
</ft-button>
<ft-button
class="action"
@click="openInvidious()"
>
<font-awesome-icon icon="globe" />
{{ $t("Share.Open Link") }}
</ft-button>
<ft-button
class="action"
@click="openInvidiousAtTime()"
>
<font-awesome-icon icon="globe" />
{{ $t("Share.Open Link At Current Time") }}
</ft-button>
<ft-button
class="action"
background-color="var(--accent-color-active)"
@click="copyInvidiousEmbed()"
>
<font-awesome-icon icon="copy" />
{{ $t("Share.Copy Embed") }}
</ft-button>
<ft-button
class="action"
background-color="var(--accent-color-active)"
@click="openInvidiousEmbed()"
>
<font-awesome-icon icon="globe" />
{{ $t("Share.Open Embed") }}
</ft-button>
</div>
</div>
</ft-icon-button>
</template>
<script src="./ft-share-button.js" />
<style scoped lang="sass" src="./ft-share-button.sass" />