mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-29 05:28:00 +02:00
Keyboard handlers, aria labels, locales cleanup
This commit is contained in:
parent
7bf4852303
commit
b10b0334b7
5 changed files with 26 additions and 27 deletions
|
@ -44,7 +44,7 @@ onMounted(() => {
|
|||
<button
|
||||
class="bi bi-shuffle pl-btn"
|
||||
title="shuffle queue"
|
||||
:aria-label="t('playlist.shuffle_queue')"
|
||||
:aria-label="t('queue.shuffle')"
|
||||
@click="
|
||||
() => {
|
||||
data.state.urls = useShuffle(data.state.urls);
|
||||
|
@ -53,8 +53,8 @@ onMounted(() => {
|
|||
"></button>
|
||||
<button
|
||||
class="bi bi-bookmark-plus pl-btn"
|
||||
title="save queue"
|
||||
:aria-label="t('playlist.save_queue')"
|
||||
:title="t('playlist.save')"
|
||||
:aria-label="t('playlist.save')"
|
||||
@click="
|
||||
() => {
|
||||
let urls = data.state.urls.map(i => ({
|
||||
|
@ -69,7 +69,7 @@ onMounted(() => {
|
|||
<button
|
||||
class="bi bi-dash-lg pl-btn"
|
||||
title="clear queue"
|
||||
:aria-label="t('playlist.clear_queue')"
|
||||
:aria-label="t('queue.clear')"
|
||||
@click="data.state.urls = []"></button>
|
||||
</div>
|
||||
<div
|
||||
|
|
|
@ -275,7 +275,7 @@ onDeactivated(() => {
|
|||
<button
|
||||
class="bi bi-bookmark-plus clickable"
|
||||
@click="saveAlbum"
|
||||
:aria-label="t('action.save_album')"></button>
|
||||
:aria-label="t('playlist.save')"></button>
|
||||
|
||||
<button
|
||||
class="bi bi-share clickable"
|
||||
|
@ -293,7 +293,7 @@ onDeactivated(() => {
|
|||
})),
|
||||
)
|
||||
"
|
||||
:aria-label="t('playlist.add_album_to_playlist')"></button>
|
||||
:aria-label="t('queue.add')"></button>
|
||||
|
||||
<button
|
||||
class="bi bi-shuffle clickable"
|
||||
|
@ -304,7 +304,7 @@ onDeactivated(() => {
|
|||
v-if="plId"
|
||||
class="bi bi-trash3 clickable"
|
||||
@click="removePlaylist"
|
||||
:aria-label="t('action.remove_playlist')"></button>
|
||||
:aria-label="t('playlist.remove')"></button>
|
||||
</div>
|
||||
</Transition>
|
||||
</template>
|
||||
|
|
|
@ -145,15 +145,15 @@ const openSong = el => {
|
|||
<button
|
||||
v-if="playlistId || offlineUri"
|
||||
class="bi bi-dash-lg clickable ign"
|
||||
:aria-label="t('action.remove_from_playlist')"
|
||||
:aria-label="t('playlist.remove_from')"
|
||||
@click="Remove"></button>
|
||||
<button
|
||||
class="bi bi-chevron-bar-right clickable ign"
|
||||
:aria-label="t('action.play_next')"
|
||||
:aria-label="t('queue.add_to_top')"
|
||||
@click="appendSong"></button>
|
||||
<button
|
||||
class="bi bi-collection clickable ign"
|
||||
:aria-label="t('action.add_current_to_playlist')"
|
||||
:aria-label="t('playlist.add')"
|
||||
@click="showPl = true"></button>
|
||||
<button
|
||||
class="bi bi-broadcast clickable ign"
|
||||
|
@ -161,7 +161,7 @@ const openSong = el => {
|
|||
@click="$emit('nxt-song')"></button>
|
||||
<button
|
||||
class="bi bi-plus-lg clickable ign"
|
||||
:aria-label="t('action.add_to_playlist')"
|
||||
:aria-label="t('queue.add_to_bottom')"
|
||||
@click="addSong"></button>
|
||||
<button
|
||||
class="bi bi-share clickable ign"
|
||||
|
|
|
@ -223,8 +223,8 @@ async function Like() {
|
|||
|
||||
<button
|
||||
id="addToPlaylist"
|
||||
:title="t('action.add_current_to_playlist')"
|
||||
:aria-label="t('action.add_current_to_playlist')"
|
||||
:title="t('playlist.add')"
|
||||
:aria-label="t('playlist.add')"
|
||||
class="bi bi-collection clickable"
|
||||
@click="
|
||||
player.toggle('add');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue