Skip to content

Commit

Permalink
Update package.json and setting cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Sir-Thom committed Dec 14, 2023
1 parent 4a82c87 commit dd1f1cb
Show file tree
Hide file tree
Showing 5 changed files with 604 additions and 1,050 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"devDependencies": {
"@tauri-apps/cli": "^1.5.1",
"@types/node": "^18.7.10",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"@vitejs/plugin-react": "^3.0.0",
Expand Down
14 changes: 13 additions & 1 deletion src/interfaces/IServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,16 @@ interface IRecordSettings {
recordSegmentDuration: string;
recordDeleteAfter: string;
}
interface ISettings {
apiSettings: IApiSettings;
loggingSettings: ILoggingSettings;
hlsSettings: IHlsSettings;
rtspSettings: IRtspSettings;
rtmpSettings: IRtmpSettings;
recordSettings: IRecordSettings;
srtSettings: ISrtSettings;
webrtcSettings: IWebrtcSettings;
}

export type {
IServer,
Expand All @@ -245,5 +255,7 @@ export type {
IRtmpSettings,
IWebrtcSettings,
ISrtSettings,
IRecordSettings
IRecordSettings,
ISettings
};

2 changes: 1 addition & 1 deletion src/utils/hooks/ServerData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function useServerData() {
const parsedResponse: IServer = JSON.parse(response as string);
setConfigData(parsedResponse);
} catch (error) {
setServerError("Unable to connect to the server.");
setServerError("Error: "+error);
}
}

Expand Down
Loading

0 comments on commit dd1f1cb

Please sign in to comment.