diff options
author | AL-LCL <alvin@alvinhavel.com> | 2023-05-19 10:39:49 +0200 |
---|---|---|
committer | AL-LCL <alvin@alvinhavel.com> | 2023-05-19 10:39:49 +0200 |
commit | 58ebd3bc0f00c532e97e9a5571471ffab87934ba (patch) | |
tree | 6e099e59af07206df6edf2b0c585d0c5a466d4bd /server/web/src/interfaces |
Diffstat (limited to 'server/web/src/interfaces')
15 files changed, 121 insertions, 0 deletions
diff --git a/server/web/src/interfaces/Activity.interface.ts b/server/web/src/interfaces/Activity.interface.ts new file mode 100644 index 0000000..cb9cb77 --- /dev/null +++ b/server/web/src/interfaces/Activity.interface.ts @@ -0,0 +1,6 @@ +export interface IActivity { + resource_usage: string; + active_window: string; + idle_time: string; + unique_id: string; +} diff --git a/server/web/src/interfaces/Alert.interface.ts b/server/web/src/interfaces/Alert.interface.ts new file mode 100644 index 0000000..0d58510 --- /dev/null +++ b/server/web/src/interfaces/Alert.interface.ts @@ -0,0 +1,4 @@ +export interface IAlert { + message: string; + type: string; +} diff --git a/server/web/src/interfaces/AllReducer.interface.ts b/server/web/src/interfaces/AllReducer.interface.ts new file mode 100644 index 0000000..f70cc4a --- /dev/null +++ b/server/web/src/interfaces/AllReducer.interface.ts @@ -0,0 +1,8 @@ +import { IClient } from './Client.interface'; + +export interface IAllReducer { + clients: Map<string, IClient>; + session: Set<string>; + sessionLoad?: any; + clientsLoad?: any; +} diff --git a/server/web/src/interfaces/Client.interface.ts b/server/web/src/interfaces/Client.interface.ts new file mode 100644 index 0000000..cb7f036 --- /dev/null +++ b/server/web/src/interfaces/Client.interface.ts @@ -0,0 +1,11 @@ +export interface IClient { + // CONSTANT : does not including the other + // client categories not explicitly accessed + resource_usage: string; + active_window: string; + country_code: string; + connect_ip: string; + idle_time: string; + unique_id: string; + country: string; +} diff --git a/server/web/src/interfaces/Stream.interface.ts b/server/web/src/interfaces/Stream.interface.ts new file mode 100644 index 0000000..45b5139 --- /dev/null +++ b/server/web/src/interfaces/Stream.interface.ts @@ -0,0 +1,4 @@ +export interface IStream { + source: string; + title: string; +} diff --git a/server/web/src/interfaces/components/Card.interface.ts b/server/web/src/interfaces/components/Card.interface.ts new file mode 100644 index 0000000..911f1ee --- /dev/null +++ b/server/web/src/interfaces/components/Card.interface.ts @@ -0,0 +1,7 @@ +export interface IProps { + removeStream: any; + source: string; + title: string; +} + +export interface IState {} diff --git a/server/web/src/interfaces/components/Footer.interface.ts b/server/web/src/interfaces/components/Footer.interface.ts new file mode 100644 index 0000000..20d9956 --- /dev/null +++ b/server/web/src/interfaces/components/Footer.interface.ts @@ -0,0 +1,8 @@ +export interface IProps {} + +export interface IState { + showHelp: boolean; + address: string; + windows: any; + help: object; +} diff --git a/server/web/src/interfaces/components/Select.interface.ts b/server/web/src/interfaces/components/Select.interface.ts new file mode 100644 index 0000000..994a5a4 --- /dev/null +++ b/server/web/src/interfaces/components/Select.interface.ts @@ -0,0 +1,12 @@ +export interface ISelect { + blacklistRemove?: any; + sessionRemove?: any; + blacklistAdd?: any; + clientRemove?: any; + sessionAdd?: any; + left?: number; + show: boolean; + top?: number; +} + +export interface IState {} diff --git a/server/web/src/interfaces/components/Server.interface.ts b/server/web/src/interfaces/components/Server.interface.ts new file mode 100644 index 0000000..67502c9 --- /dev/null +++ b/server/web/src/interfaces/components/Server.interface.ts @@ -0,0 +1,15 @@ +import { IClient } from '../Client.interface'; +import { ISelect } from './Select.interface'; + +export interface IProps { + clients: Map<string, IClient>; + session: Set<string>; + clientsLoad?: any; + sessionLoad?: any; +} + +export interface IState { + clients: Map<string, IClient>; + session: Set<string>; + selectData: ISelect; +} diff --git a/server/web/src/interfaces/components/Sidebar.interface.ts b/server/web/src/interfaces/components/Sidebar.interface.ts new file mode 100644 index 0000000..d270713 --- /dev/null +++ b/server/web/src/interfaces/components/Sidebar.interface.ts @@ -0,0 +1,8 @@ +import { IStream } from '../Stream.interface'; + +export interface IProps {} + +export interface IState { + showContent: boolean; + streams: IStream[]; +} diff --git a/server/web/src/interfaces/components/Window.interface.ts b/server/web/src/interfaces/components/Window.interface.ts new file mode 100644 index 0000000..7bfe7db --- /dev/null +++ b/server/web/src/interfaces/components/Window.interface.ts @@ -0,0 +1,22 @@ +interface IPos { + x: number; + y: number; +} + +export interface IProps { + requestType: string; + requestArgs: any; + hightlight: any; + data?: string[]; + destroy: any; + toggle: any; + pos: IPos; +} + +export interface IState { + fullscreen: boolean; + dragging: boolean; + result: string[]; + pos: IPos; + rel: any; +} diff --git a/server/web/src/interfaces/design/AlertDesign.interface.ts b/server/web/src/interfaces/design/AlertDesign.interface.ts new file mode 100644 index 0000000..9ee6267 --- /dev/null +++ b/server/web/src/interfaces/design/AlertDesign.interface.ts @@ -0,0 +1,3 @@ +export interface IAlertButton { + bgColor: string; +} diff --git a/server/web/src/interfaces/design/FooterDesign.interface.ts b/server/web/src/interfaces/design/FooterDesign.interface.ts new file mode 100644 index 0000000..84b4d00 --- /dev/null +++ b/server/web/src/interfaces/design/FooterDesign.interface.ts @@ -0,0 +1,3 @@ +export interface IFooterDropdownContent { + active: boolean; +} diff --git a/server/web/src/interfaces/design/ServerDesign.interface.ts b/server/web/src/interfaces/design/ServerDesign.interface.ts new file mode 100644 index 0000000..07c750b --- /dev/null +++ b/server/web/src/interfaces/design/ServerDesign.interface.ts @@ -0,0 +1,7 @@ +export interface IServerTableRow { + activeSession?: string; +} + +export interface IServerTableBar { + width?: string; +} diff --git a/server/web/src/interfaces/design/SidebarDesign.interface.ts b/server/web/src/interfaces/design/SidebarDesign.interface.ts new file mode 100644 index 0000000..eb0fe49 --- /dev/null +++ b/server/web/src/interfaces/design/SidebarDesign.interface.ts @@ -0,0 +1,3 @@ +export interface ISidebarSlide { + active: boolean; +} |