mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 21:18:01 +02:00
Merge pull request 'Keyboard handlers, aria labels, locales cleanup' (#7) from fix/labels-and-keyboard-handlers into main
Reviewed-on: https://codeberg.org/banaanihillo/Hyperpipe/pulls/7
This commit is contained in:
commit
5b37bb7b4f
5 changed files with 26 additions and 27 deletions
|
@ -44,7 +44,7 @@ onMounted(() => {
|
||||||
<button
|
<button
|
||||||
class="bi bi-shuffle pl-btn"
|
class="bi bi-shuffle pl-btn"
|
||||||
title="shuffle queue"
|
title="shuffle queue"
|
||||||
:aria-label="t('playlist.shuffle_queue')"
|
:aria-label="t('queue.shuffle')"
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
data.state.urls = useShuffle(data.state.urls);
|
data.state.urls = useShuffle(data.state.urls);
|
||||||
|
@ -53,8 +53,8 @@ onMounted(() => {
|
||||||
"></button>
|
"></button>
|
||||||
<button
|
<button
|
||||||
class="bi bi-bookmark-plus pl-btn"
|
class="bi bi-bookmark-plus pl-btn"
|
||||||
title="save queue"
|
:title="t('playlist.save')"
|
||||||
:aria-label="t('playlist.save_queue')"
|
:aria-label="t('playlist.save')"
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
let urls = data.state.urls.map(i => ({
|
let urls = data.state.urls.map(i => ({
|
||||||
|
@ -69,7 +69,7 @@ onMounted(() => {
|
||||||
<button
|
<button
|
||||||
class="bi bi-dash-lg pl-btn"
|
class="bi bi-dash-lg pl-btn"
|
||||||
title="clear queue"
|
title="clear queue"
|
||||||
:aria-label="t('playlist.clear_queue')"
|
:aria-label="t('queue.clear')"
|
||||||
@click="data.state.urls = []"></button>
|
@click="data.state.urls = []"></button>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -275,7 +275,7 @@ onDeactivated(() => {
|
||||||
<button
|
<button
|
||||||
class="bi bi-bookmark-plus clickable"
|
class="bi bi-bookmark-plus clickable"
|
||||||
@click="saveAlbum"
|
@click="saveAlbum"
|
||||||
:aria-label="t('action.save_album')"></button>
|
:aria-label="t('playlist.save')"></button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="bi bi-share clickable"
|
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
|
<button
|
||||||
class="bi bi-shuffle clickable"
|
class="bi bi-shuffle clickable"
|
||||||
|
@ -304,7 +304,7 @@ onDeactivated(() => {
|
||||||
v-if="plId"
|
v-if="plId"
|
||||||
class="bi bi-trash3 clickable"
|
class="bi bi-trash3 clickable"
|
||||||
@click="removePlaylist"
|
@click="removePlaylist"
|
||||||
:aria-label="t('action.remove_playlist')"></button>
|
:aria-label="t('playlist.remove')"></button>
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Transition>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -145,15 +145,15 @@ const openSong = el => {
|
||||||
<button
|
<button
|
||||||
v-if="playlistId || offlineUri"
|
v-if="playlistId || offlineUri"
|
||||||
class="bi bi-dash-lg clickable ign"
|
class="bi bi-dash-lg clickable ign"
|
||||||
:aria-label="t('action.remove_from_playlist')"
|
:aria-label="t('playlist.remove_from')"
|
||||||
@click="Remove"></button>
|
@click="Remove"></button>
|
||||||
<button
|
<button
|
||||||
class="bi bi-chevron-bar-right clickable ign"
|
class="bi bi-chevron-bar-right clickable ign"
|
||||||
:aria-label="t('action.play_next')"
|
:aria-label="t('queue.add_to_top')"
|
||||||
@click="appendSong"></button>
|
@click="appendSong"></button>
|
||||||
<button
|
<button
|
||||||
class="bi bi-collection clickable ign"
|
class="bi bi-collection clickable ign"
|
||||||
:aria-label="t('action.add_current_to_playlist')"
|
:aria-label="t('playlist.add')"
|
||||||
@click="showPl = true"></button>
|
@click="showPl = true"></button>
|
||||||
<button
|
<button
|
||||||
class="bi bi-broadcast clickable ign"
|
class="bi bi-broadcast clickable ign"
|
||||||
|
@ -161,7 +161,7 @@ const openSong = el => {
|
||||||
@click="$emit('nxt-song')"></button>
|
@click="$emit('nxt-song')"></button>
|
||||||
<button
|
<button
|
||||||
class="bi bi-plus-lg clickable ign"
|
class="bi bi-plus-lg clickable ign"
|
||||||
:aria-label="t('action.add_to_playlist')"
|
:aria-label="t('queue.add_to_bottom')"
|
||||||
@click="addSong"></button>
|
@click="addSong"></button>
|
||||||
<button
|
<button
|
||||||
class="bi bi-share clickable ign"
|
class="bi bi-share clickable ign"
|
||||||
|
|
|
@ -223,8 +223,8 @@ async function Like() {
|
||||||
|
|
||||||
<button
|
<button
|
||||||
id="addToPlaylist"
|
id="addToPlaylist"
|
||||||
:title="t('action.add_current_to_playlist')"
|
:title="t('playlist.add')"
|
||||||
:aria-label="t('action.add_current_to_playlist')"
|
:aria-label="t('playlist.add')"
|
||||||
class="bi bi-collection clickable"
|
class="bi bi-collection clickable"
|
||||||
@click="
|
@click="
|
||||||
player.toggle('add');
|
player.toggle('add');
|
||||||
|
|
|
@ -31,11 +31,7 @@
|
||||||
"import": "Import",
|
"import": "Import",
|
||||||
"export": "Export",
|
"export": "Export",
|
||||||
"register_on": "Don't have an account? Register on",
|
"register_on": "Don't have an account? Register on",
|
||||||
"remove_from_playlist": "Remove from playlist",
|
|
||||||
"play_next": "Play next",
|
|
||||||
"add_current_to_playlist": "Add current track to a playlist",
|
|
||||||
"play_now": "Play now",
|
"play_now": "Play now",
|
||||||
"add_to_playlist": "Add to playlist",
|
|
||||||
"share": "Share",
|
"share": "Share",
|
||||||
"play_next_track": "Play next track",
|
"play_next_track": "Play next track",
|
||||||
"change_time": "Change time",
|
"change_time": "Change time",
|
||||||
|
@ -44,22 +40,26 @@
|
||||||
"show_information_about_track": "Show information about track",
|
"show_information_about_track": "Show information about track",
|
||||||
"more_controls": "More controls",
|
"more_controls": "More controls",
|
||||||
"three-dots": "More controls",
|
"three-dots": "More controls",
|
||||||
"remove_playlist": "Remove playlist",
|
"shuffle": "Shuffle"
|
||||||
"shuffle": "Shuffle",
|
|
||||||
"save_album": "Save album"
|
|
||||||
},
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
"local": "Local Playlists",
|
"local": "Local Playlists",
|
||||||
"remote": "Remote Playlists",
|
"remote": "Remote Playlists",
|
||||||
"name": "Playlist name",
|
"name": "Playlist name",
|
||||||
"add": "Add Songs to Playlist",
|
"add": "Add to Playlist",
|
||||||
"add_album_to_playlist": "Add album to playlist",
|
|
||||||
"create": "Create a new Playlist",
|
"create": "Create a new Playlist",
|
||||||
"sync": "Sync playlists",
|
"sync": "Sync playlists",
|
||||||
"select": "Select Playlist to Add",
|
"select": "Select Playlist to Add",
|
||||||
"clear_queue": "Clear queue",
|
"remove_from": "Remove from playlist",
|
||||||
"save_queue": "Save queue",
|
"remove": "Remove playlist",
|
||||||
"shuffle_queue": "Shuffle queue"
|
"save": "Save as playlist"
|
||||||
|
},
|
||||||
|
"queue": {
|
||||||
|
"clear": "Clear queue",
|
||||||
|
"shuffle": "Shuffle queue",
|
||||||
|
"add": "Add to queue",
|
||||||
|
"add_to_top": "Add to top of queue",
|
||||||
|
"add_to_bottom": "Add to bottom of queue"
|
||||||
},
|
},
|
||||||
"artist": {
|
"artist": {
|
||||||
"subscribers": "Subscribers",
|
"subscribers": "Subscribers",
|
||||||
|
@ -125,8 +125,7 @@
|
||||||
},
|
},
|
||||||
"statusBar": {
|
"statusBar": {
|
||||||
"currentPlaylist": "Current Playlist",
|
"currentPlaylist": "Current Playlist",
|
||||||
"loop": "Loop",
|
"loop": "Loop"
|
||||||
"add_current_to_playlist": "Add Current Song to a Playlist"
|
|
||||||
},
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"username": "username",
|
"username": "username",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue