initialize settings page

This commit is contained in:
geoffrey45
2022-08-19 19:24:38 +03:00
parent dcd27921ae
commit 44bb30fe9f
19 changed files with 327 additions and 48 deletions
+15
View File
@@ -0,0 +1,15 @@
import { SettingCategory } from "@/interfaces/settings";
import setNowPlayingComponent from "./now-playing";
console.log(setNowPlayingComponent);
export default {
title: "General",
groups: [
{
title: "Repeat queue",
desc: "Do you want to do that?",
settings: [setNowPlayingComponent()],
},
],
} as SettingCategory;
+7
View File
@@ -0,0 +1,7 @@
import { SettingType } from "@/interfaces/settings";
export default () => ({
title: "Use Sidebar now playing card",
type: SettingType.switch,
action: () => console.log("should toggle something"),
});
+3
View File
@@ -0,0 +1,3 @@
import general from "./general";
export default [general];