-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b738857
commit 8c37716
Showing
6 changed files
with
194 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<template> | ||
<div id="qualityDisplay" class="modal fade p-2" tabindex="-1"> | ||
<div class="modal-dialog modal-dialog-centered" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header d-flex flex-column"> | ||
<button class="btn-close" type="button" data-bs-dismiss="modal" aria-label="Close"></button> | ||
<h2 class="modal-title fw-bolder">Audio</h2> | ||
</div> | ||
<div class="modal-body"> | ||
<ul class="list-group"> | ||
<li class="list-group-item"> | ||
<span class="fw-bold">Quality: </span> | ||
<span>{{ store.playing.quality }}</span> | ||
</li> | ||
<li class="list-group-item"> | ||
<span class="fw-bold">Bitrate: </span> | ||
<span>{{ store.playing.bitrate }} kbps</span> | ||
</li> | ||
<li class="list-group-item"> | ||
<span class="fw-bold">Duration: </span> | ||
<span>{{ store.playing.duration }} seconds</span> | ||
</li> | ||
<li class="list-group-item"> | ||
<span class="fw-bold">Audio Format: </span> | ||
<span>{{ store.playing.format }}</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { ref, onMounted } from 'vue'; | ||
import { Modal } from 'bootstrap'; | ||
import { store } from '/js/store.js'; | ||
const modal = ref(null); | ||
function _show() { | ||
modal.value.show(); | ||
} | ||
function _hide() { | ||
modal.value.hide(); | ||
} | ||
defineExpose({ | ||
show: _show, | ||
hide: _hide | ||
}); | ||
onMounted(() => { | ||
modal.value = new Modal(document.querySelector('#qualityDisplay')); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters