mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
show existing image on update playlist modal
+ some modal cleanup
This commit is contained in:
+6
-7
@@ -1,3 +1,6 @@
|
||||
// "local" | "remote"
|
||||
let mode = "remote";
|
||||
|
||||
export interface D<T = string> {
|
||||
[key: string]: T;
|
||||
}
|
||||
@@ -19,19 +22,15 @@ const imageRoutes = {
|
||||
raw: "/raw/",
|
||||
};
|
||||
|
||||
let mode: string = "remote";
|
||||
|
||||
function toggleMode() {
|
||||
mode = mode === "local" ? "remote" : "local";
|
||||
}
|
||||
|
||||
function getDomain() {
|
||||
return domains[mode];
|
||||
}
|
||||
const domain = () => domains[mode];
|
||||
|
||||
const baseImgUrl = getDomain() + ports.images;
|
||||
const baseImgUrl = domain() + ports.images;
|
||||
|
||||
const baseApiUrl = getDomain() + ports.api;
|
||||
const baseApiUrl = domain() + ports.api;
|
||||
|
||||
const paths = {
|
||||
api: {
|
||||
|
||||
Reference in New Issue
Block a user