Clean up and typing

This commit is contained in:
Sean Edmunds
2025-03-27 16:22:34 -05:00
parent b46d89721e
commit 67293b20ca
47 changed files with 450 additions and 540 deletions

13
src/types/application.ts Normal file
View File

@@ -0,0 +1,13 @@
export interface Application {
id: number | undefined;
name: string;
url: string;
icon: string;
baseUrl: string;
filterName: string;
index: number;
}
export interface AppCategory {
filterName: string;
}

7
src/types/bookmark.ts Normal file
View File

@@ -0,0 +1,7 @@
export interface Bookmark {
id: number | undefined;
name: string;
url: string;
index: number;
category: string;
}

View File

@@ -0,0 +1,6 @@
export interface BookmarkGroup {
id: number | undefined;
categoryName: string;
categoryIndex: number;
filterName: string;
}

View File

@@ -1 +1,10 @@
export type { CurrentWeather, OutlookWeather } from './weather';
export type { CurrentWeather, OutlookWeather, ExtendedForecast } from './weather';
export type { Application, AppCategory } from './application';
export type { Bookmark } from './bookmark';
export type { BookmarkGroup } from './bookmarkGroup';
export type { PersonalData } from './personalData';
export type { Message } from './message';
export type { Provider } from './provider';
export type { Theme, ThemePlaylist } from './theme';
export type { WolClient } from './wolClient';
export type { SearchHistoryItem } from './searchHistory';

5
src/types/message.ts Normal file
View File

@@ -0,0 +1,5 @@
export interface Message {
id: number;
message: string;
customGreeting: number;
}

View File

@@ -0,0 +1,6 @@
export interface PersonalData {
firstName: string;
lastName: string;
email: string;
physicalAddress: string;
}

6
src/types/provider.ts Normal file
View File

@@ -0,0 +1,6 @@
export interface Provider {
id: number | undefined;
name: string;
url: string;
prefix: string;
}

View File

@@ -0,0 +1,7 @@
export interface SearchHistoryItem {
id: number | undefined;
prefix: string;
provider: string;
searchTerm: string;
dateTimeStamp: string;
}

18
src/types/theme.ts Normal file
View File

@@ -0,0 +1,18 @@
export interface Theme {
id: number | undefined;
name: string;
backgroundImage: string;
backgroundColor: string;
primaryColor: string;
accentColor: string;
borderColor: string;
searchColor: string;
randomEnabled: number;
}
export interface ThemePlaylist {
id: number | undefined;
name: string;
default: number;
themeList: number[];
}

5
src/types/wolClient.ts Normal file
View File

@@ -0,0 +1,5 @@
export interface WolClient {
id: number | undefined;
hostname: string;
macAddress: string;
}