add now playing card settings

+ move left sidebar to separate component
This commit is contained in:
geoffrey45
2022-08-19 21:28:46 +03:00
parent 44bb30fe9f
commit ade8edcba2
18 changed files with 135 additions and 288 deletions
+2 -6
View File
@@ -1,15 +1,11 @@
import { SettingCategory } from "@/interfaces/settings";
import setNowPlayingComponent from "./now-playing";
console.log(setNowPlayingComponent);
import nowPlaying from "./now-playing";
export default {
title: "General",
groups: [
{
title: "Repeat queue",
desc: "Do you want to do that?",
settings: [setNowPlayingComponent()],
settings: [...nowPlaying],
},
],
} as SettingCategory;
+17 -5
View File
@@ -1,7 +1,19 @@
import { SettingType } from "@/interfaces/settings";
import useSettingsStore from "@/stores/settings";
export default () => ({
title: "Use Sidebar now playing card",
type: SettingType.switch,
action: () => console.log("should toggle something"),
});
const settings = useSettingsStore;
export default [
{
title: "Use left now playing card",
type: SettingType.switch,
source: () => settings().use_side_np,
action: () => settings().toggleUseSideNP(),
},
{
title: "Use right bottom now playing card",
type: SettingType.switch,
source: () => settings().use_right_np,
action: () => settings().toggleUseRightNP(),
},
];