mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 21:33:01 -05:00
Add clip download support
This commit is contained in:
parent
9c332221fe
commit
b93efbc4b5
2 changed files with 13 additions and 2 deletions
|
@ -35,6 +35,7 @@ import {
|
||||||
BiHeartFill,
|
BiHeartFill,
|
||||||
FaShareAlt,
|
FaShareAlt,
|
||||||
IoCloseSharp,
|
IoCloseSharp,
|
||||||
|
MdDownloadRound,
|
||||||
IoPerson
|
IoPerson
|
||||||
} from 'oh-vue-icons/icons'
|
} from 'oh-vue-icons/icons'
|
||||||
|
|
||||||
|
@ -53,6 +54,7 @@ addIcons(
|
||||||
BiHeartFill,
|
BiHeartFill,
|
||||||
FaShareAlt,
|
FaShareAlt,
|
||||||
IoCloseSharp,
|
IoCloseSharp,
|
||||||
|
MdDownloadRound,
|
||||||
IoPerson
|
IoPerson
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,7 @@ export default {
|
||||||
status,
|
status,
|
||||||
videoOptions,
|
videoOptions,
|
||||||
time: ref(0),
|
time: ref(0),
|
||||||
|
srcUrl,
|
||||||
shareModalVisible: ref(false)
|
shareModalVisible: ref(false)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -128,11 +129,19 @@ export default {
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="space-x-1">
|
||||||
|
<a :href="srcUrl" download>
|
||||||
|
<button class="px-2 py-1.5 rounded-lg bg-purple">
|
||||||
|
<v-icon name="md-download-round"></v-icon>
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
|
|
||||||
<button @click="toggleShareModal" class="px-2 py-1.5 rounded-lg bg-purple">
|
<button @click="toggleShareModal" class="px-2 py-1.5 rounded-lg bg-purple">
|
||||||
<v-icon name="fa-share-alt"></v-icon>
|
<v-icon name="fa-share-alt"></v-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- ABOUT TAB -->
|
<!-- ABOUT TAB -->
|
||||||
<about-tab :socials="data.streamer.socials" :about="data.streamer.about"></about-tab>
|
<about-tab :socials="data.streamer.socials" :about="data.streamer.about"></about-tab>
|
||||||
|
|
Loading…
Reference in a new issue