Add new config format

This commit is contained in:
Meierschlumpf
2022-12-04 17:36:30 +01:00
parent b2f5149527
commit d5a3b3f3ba
76 changed files with 2461 additions and 1034 deletions

51
src/types/integration.ts Normal file
View File

@@ -0,0 +1,51 @@
import { TileBaseType } from './tile';
export interface IntegrationsType {
calendar?: CalendarIntegrationType;
clock?: ClockIntegrationType;
weather?: WeatherIntegrationType;
dashDot?: DashDotIntegrationType;
bitTorrent?: BitTorrentIntegrationType;
useNet?: UseNetIntegrationType;
torrentNetworkTraffic?: TorrentNetworkTrafficIntegrationType;
}
export interface CalendarIntegrationType extends TileBaseType {
properties: {
isWeekStartingAtSunday: boolean;
};
}
export interface ClockIntegrationType extends TileBaseType {
properties: {
is24HoursFormat: boolean;
};
}
export interface WeatherIntegrationType extends TileBaseType {
properties: {
location: string;
isFahrenheit: boolean;
};
}
export interface DashDotIntegrationType extends TileBaseType {
properties: {
graphs: DashDotIntegrationGraphType[];
isCompactView: boolean;
url: string;
};
}
type DashDotIntegrationGraphType = { name: DashDotGraphType; isMultiView?: boolean };
export type DashDotGraphType = 'cpu' | 'storage' | 'ram' | 'network' | 'gpu';
export interface BitTorrentIntegrationType extends TileBaseType {
properties: {
hideDownloadedTorrents: boolean;
};
}
export interface UseNetIntegrationType extends TileBaseType {}
export interface TorrentNetworkTrafficIntegrationType extends TileBaseType {}