Add clip download support

This commit is contained in:
dragongoose 2023-10-24 18:52:50 -04:00
parent 9c332221fe
commit b93efbc4b5
No known key found for this signature in database
GPG Key ID: 01397EEC371CDAA5
2 changed files with 13 additions and 2 deletions

View File

@ -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
) )

View File

@ -49,6 +49,7 @@ export default {
status, status,
videoOptions, videoOptions,
time: ref(0), time: ref(0),
srcUrl,
shareModalVisible: ref(false) shareModalVisible: ref(false)
} }
}, },
@ -128,9 +129,17 @@ export default {
</p> </p>
</div> </div>
<button @click="toggleShareModal" class="px-2 py-1.5 rounded-lg bg-purple"> <div class="space-x-1">
<v-icon name="fa-share-alt"></v-icon> <a :href="srcUrl" download>
<button class="px-2 py-1.5 rounded-lg bg-purple">
<v-icon name="md-download-round"></v-icon>
</button> </button>
</a>
<button @click="toggleShareModal" class="px-2 py-1.5 rounded-lg bg-purple">
<v-icon name="fa-share-alt"></v-icon>
</button>
</div>
</div> </div>
</div> </div>