Fix all the general issues in sizing, placement, dragging, architecture and so on

This commit is contained in:
Your Name
2025-04-13 17:11:08 -04:00
parent 3e4105aca3
commit f569bb2240
19 changed files with 309 additions and 231 deletions
+3 -1
View File
@@ -5,12 +5,13 @@ export interface WidgetData {
gridY: number;
gridWidth: number;
gridHeight: number;
background: boolean;
[key: string]: any;
}
export interface SearchWidgetData extends WidgetData {
type: 'search';
engine: 'Google' | 'Bing' | 'DuckDuckGo' | 'Yandex';
engines: Array<string>;
}
export interface ClockWidgetData extends WidgetData {
@@ -27,6 +28,7 @@ export interface GlobalSettings {
widgets: WidgetData[];
editEnabled: boolean;
showGrid: boolean;
searchEngines: { [key in string]: string}
}
export type WidgetExport<W = React.FC<any>, S = (...a:any[]) =>JSX.Element > = {