updated api version

This commit is contained in:
Janis
2023-08-02 23:51:06 +02:00
parent 2f040b1b59
commit 5d1b32eda3
3 changed files with 14 additions and 7 deletions

8
package-lock.json generated
View File

@@ -13,7 +13,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.14.2",
"react-ts5-remote-app-api": "^1.0.5",
"react-ts5-remote-app-api": "^1.1.0",
"sass": "^1.64.1"
},
"devDependencies": {
@@ -4836,9 +4836,9 @@
}
},
"node_modules/react-ts5-remote-app-api": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/react-ts5-remote-app-api/-/react-ts5-remote-app-api-1.0.5.tgz",
"integrity": "sha512-9eOoOYBbHBG8PFzyi4nzDJiP+IHk781AvdQ7Xe/72TPsf5XgvUbtjRVkhPjT0Kz9qSOUhof14+BjfcQQpHKIcA==",
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/react-ts5-remote-app-api/-/react-ts5-remote-app-api-1.1.0.tgz",
"integrity": "sha512-H7Y7sLkZ8cgT+gWRbf3uBR4HqhT9EFuSyaHM86WXYcirjppEy1fO3vxAG/jm9o7sV6JZ8wkxgc9oHoByeOuplw==",
"dependencies": {
"@rollup/plugin-typescript": "^11.1.2",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",

View File

@@ -1,7 +1,7 @@
{
"name": "ts5-obs-overlay",
"private": true,
"version": "1.2.0",
"version": "1.2.1",
"type": "module",
"scripts": {
"dev": "vite",
@@ -15,7 +15,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.14.2",
"react-ts5-remote-app-api": "^1.0.5",
"react-ts5-remote-app-api": "^1.1.0",
"sass": "^1.64.1"
},
"devDependencies": {

View File

@@ -1,13 +1,20 @@
/* eslint-disable react-hooks/exhaustive-deps */
import "@styles/App.scss";
import Viewer from "./Viewer";
import { useSearchParams } from "react-router-dom";
import useTSRemoteApp, { IClient } from "react-ts5-remote-app-api";
import Viewer from "./Viewer";
export default function App() {
const [searchParams] = useSearchParams();
const { clients, activeConnectionId, currentChannel } = useTSRemoteApp({
remoteAppPort: parseInt(searchParams.get("remoteAppPort") ?? "5899"),
auth: {
identifier: "de.tealfire.obs",
version: "1.2.1",
name: "TS5 OBS Overlay",
description: "A OBS overlay for TS5 by DerTyp876",
},
});
return (