Clean up and typing
This commit is contained in:
13
src/types/application.ts
Normal file
13
src/types/application.ts
Normal 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
7
src/types/bookmark.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface Bookmark {
|
||||
id: number | undefined;
|
||||
name: string;
|
||||
url: string;
|
||||
index: number;
|
||||
category: string;
|
||||
}
|
||||
6
src/types/bookmarkGroup.ts
Normal file
6
src/types/bookmarkGroup.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface BookmarkGroup {
|
||||
id: number | undefined;
|
||||
categoryName: string;
|
||||
categoryIndex: number;
|
||||
filterName: string;
|
||||
}
|
||||
@@ -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
5
src/types/message.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface Message {
|
||||
id: number;
|
||||
message: string;
|
||||
customGreeting: number;
|
||||
}
|
||||
6
src/types/personalData.ts
Normal file
6
src/types/personalData.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface PersonalData {
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
email: string;
|
||||
physicalAddress: string;
|
||||
}
|
||||
6
src/types/provider.ts
Normal file
6
src/types/provider.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface Provider {
|
||||
id: number | undefined;
|
||||
name: string;
|
||||
url: string;
|
||||
prefix: string;
|
||||
}
|
||||
7
src/types/searchHistory.ts
Normal file
7
src/types/searchHistory.ts
Normal 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
18
src/types/theme.ts
Normal 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
5
src/types/wolClient.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface WolClient {
|
||||
id: number | undefined;
|
||||
hostname: string;
|
||||
macAddress: string;
|
||||
}
|
||||
Reference in New Issue
Block a user