deleted unused types

This commit is contained in:
DmitriyB
2023-03-31 13:17:02 +05:00
parent 62be599d33
commit 1a3e6f688d
6 changed files with 2 additions and 129 deletions
@@ -4,8 +4,6 @@ import "./PopupExit.css";
import { useTranslation } from "react-i18next";
import { TSidebarPopup } from "utils/types";
export const PopupExit: React.FC<any> = ({ setClose, closeStream }) => {
const { t } = useTranslation();
+1 -1
View File
@@ -2,7 +2,7 @@ import { createAsyncThunk } from "@reduxjs/toolkit";
import axios from 'axios';
const instance = axios.create({
baseURL: 'https://a1.test.coord.graff.tech',
baseURL: 'https://a1.coord.graff.tech',
});
instance.defaults.headers.post['Content-Type'] = 'application/json';
+1
View File
@@ -27,6 +27,7 @@ i18next
interface LanguageState {
currentLang: string;
}
-7
View File
@@ -1,7 +0,0 @@
export const ConnectData = {
// pixelIp: "192.168.1.170",
pixelIp: 'stream.graff.tech',
// url: `http://192.168.1.170`,
url: `https://stream.graff.tech`,
port: 13001
}
-91
View File
@@ -1,91 +0,0 @@
export type TMain = {
code: any;
text: any;
onConnectSess: () => void;
setCode: (code: string) => void;
onConnectSessEx: (code: string) => void;
};
export type TObject = {
popup1: boolean;
popup2: boolean;
};
export type TPopup = {
visible: TObject;
text: any;
setVisible: (object: TObject) => void;
onConnectSess?: () => void;
onConnectSessEx?: (code: string) => void;
setCode?: (code: string) => void;
};
export type TData = {
port: string;
id: string;
};
export type TSideBar = {
currentUser: (user: any) => void
closeStream: () => void;
data: TData;
}
export type TPlayerComponent = {
closeStream: () => void;
data: TData;
};
export type TUserList = {
handleReturnControl: () => void;
handleControl: (user: object) => void;
selected: any;
setSelected: (user: any) => void;
message: any;
localUser: any;
audio: any;
users: any;
sendControlRequest: (user: object) => void;
};
export type TUserButton = {
handleReturnControl: () => void;
handleControl: (user: object) => void;
setSelected: (user: any) => void;
message: any;
sendControlRequest: (user: object) => void;
audio: any;
user: any;
selected: boolean;
isAdmin: (user: object) => boolean;
localUser: any;
};
export type TUserControl = {
setMuted: (state: boolean) => void;
isMuted: boolean;
handleReturnControl: () => void;
setNotification: (state: boolean) => void;
handleControl: (user: object) => void;
localUser: any;
user: any;
isAdmin: (user: object) => boolean;
sendControlRequest: (user: object) => void;
};
export type TButton = {
button: any;
active?: boolean;
onClick: () => void;
};
export type THOC = {
onClick: () => void;
isMuted?: boolean;
};
export type TSidebarPopup = {
setClose: () => void;
data?: TData;
onExit?: () => void;
};
-28
View File
@@ -1,28 +0,0 @@
import control from '../images/icons/control.svg'
import microOn from '../images/icons/MicroOn.svg'
import share from '../images/icons/Share.svg'
export const buttons = [
{
icon: control,
active: "Запрет управления",
inactive: "Запрос управления",
type: "control",
},
{
icon: microOn,
active: "Включить микрофон",
inactive: "Выключить микрофон",
type: "microphone",
},
{
icon: share,
active: "Поделиться",
inactive: "Поделиться",
type: "share",
},
];