Fix all the general issues in sizing, placement, dragging, architecture and so on
This commit is contained in:
@@ -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 > = {
|
||||
|
||||
Reference in New Issue
Block a user