custom shortcut support in popup

This commit is contained in:
SethBurkart123
2023-09-25 09:32:09 +10:00
parent f5cc56c9d9
commit 86380b4ee0
9 changed files with 178 additions and 138 deletions
+9 -5
View File
@@ -5,25 +5,29 @@ export interface SettingsState {
animatedBackgroundSpeed: string;
customThemeColor: string;
betterSEQTAPlus: boolean;
shortcuts: Shortcut[];
customshortcuts: CustomShortcut[];
}
// Define the ToggleItem interface for the nested objects in menuitems
interface ToggleItem {
toggle: boolean;
}
// Define the Shortcut interface for the objects in the shortcuts array
interface Shortcut {
enabled: boolean;
name: string;
}
// Define the MainConfig interface for the top-level object
interface CustomShortcut {
name: string;
url: string;
}
export interface MainConfig {
DarkMode: boolean;
animatedbk: boolean;
bksliderinput: string;
customshortcuts: any[];
customshortcuts: CustomShortcut[];
defaultmenuorder: any[];
lessonalert: boolean;
menuitems: {
@@ -49,5 +53,5 @@ export interface MainConfig {
onoff: boolean;
selectedColor: string;
shortcuts: Shortcut[];
subjectfilters: Record<string, any>; // Could be more specific based on what types are allowed
subjectfilters: Record<string, any>;
}
@@ -5,7 +5,6 @@ export interface Tab {
}
export interface TabbedContainerProps {
tabs: Tab[];
themeColor: string;
}
declare const TabbedContainer: React.FC<TabbedContainerProps>;
export default TabbedContainer;