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
+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(),
},
];