🔥
This commit is contained in:
parent
5474934cea
commit
ab01f8f329
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/golang:1.20 as builder
|
||||
FROM docker.io/golang:1.22 as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,6 +1,6 @@
|
|||
module gitlab.com/XenGi/sanic
|
||||
|
||||
go 1.21
|
||||
go 1.22
|
||||
|
||||
require (
|
||||
github.com/fhs/gompd/v2 v2.3.0
|
||||
|
|
|
@ -200,7 +200,8 @@
|
|||
<option value="1">basedrive</option><!-- TODO: Remove this line -->
|
||||
</select><!--/#control-playlist-list-->
|
||||
<div>
|
||||
<button id="control-replace-playlist">🔄 Replace</button><!-- 🔄 Counterclockwise Arrows Button -->
|
||||
<button id="control-refresh-playlists">🔄 Refresh</button><!-- 🔄 Counterclockwise Arrows Button -->
|
||||
<button id="control-replace-playlist">⤴️ Replace</button><!-- ⤴️ Arrow Pointing Rightwards Then Curving Upwards -->
|
||||
<button id="control-attach-playlist">⬆ Attach</button><!-- ⬆️ Up Arrow -->
|
||||
<button id="control-save-playlist">💾 Save</button><!-- 💾 Floppy Disk -->
|
||||
<button id="control-delete-playlist">🗑️ Delete</button><!-- 🗑️ Wastebasket -->
|
||||
|
|
|
@ -33,6 +33,7 @@ const tab_browser = document.getElementById("tab-browser");
|
|||
const tab_search = document.getElementById("tab-search");
|
||||
const tab_playlists = document.getElementById("tab-playlists");
|
||||
const control_playlist_list = document.getElementById("control-playlist-list");
|
||||
const control_refresh_playlists = document.getElementById("control-refresh-playlists");
|
||||
const control_replace_playlist = document.getElementById("control-replace-playlist");
|
||||
const control_attach_playlist = document.getElementById("control-attach-playlist");
|
||||
const control_save_playlist = document.getElementById("control-save-playlist");
|
||||
|
@ -83,9 +84,7 @@ refreshPlaylists = () => {
|
|||
option.value = p["playlist"];
|
||||
option.addEventListener("click", () => {
|
||||
fetch(`${API_URL}/playlists/${p["playlist"]}`).then(async r => {
|
||||
if (r.status === 200) {
|
||||
fillResultTable(await r.json());
|
||||
}
|
||||
if (r.status === 200) fillResultTable(await r.json());
|
||||
})
|
||||
});
|
||||
control_playlist_list.appendChild(option)
|
||||
|
@ -172,6 +171,10 @@ control_search_submit.addEventListener("click", event => {
|
|||
})
|
||||
});
|
||||
|
||||
control_refresh_playlists.addEventListener("click", () => {
|
||||
refreshPlaylists();
|
||||
});
|
||||
|
||||
control_replace_playlist.addEventListener("click", () => {
|
||||
fetch(`${API_URL}/queue/replace/${control_playlist_list.value}`).then(async r => {
|
||||
if (r.status !== 200) {
|
||||
|
|
Loading…
Reference in a new issue