fixing auth stuff, adding menu and other things

This commit is contained in:
talksik
2022-05-05 05:14:18 -05:00
parent 5d4b89ddaf
commit fa247c5d79
6 changed files with 239 additions and 161 deletions
+11 -8
View File
@@ -22,14 +22,6 @@ export const $newConvoPage = atom<boolean>({
default: false,
});
type outputMode = "audio" | "video" | "off";
// selected output mode
export const $selectedOutputMode = atom<outputMode>({
key: "OUTPUT_MODE",
default: "video",
});
// number of active lines
export const $numberActiveLines = atom<number>({
key: "NUMBER_ACTIVE_LINES",
@@ -42,6 +34,8 @@ export const $maxNumberActiveStreams = atom<number>({
default: 0,
});
// ============
type DesktopMode = "flowState" | "overlayOnly" | "terminal" | "terminalDetails";
export const $desktopMode = atom<DesktopMode>({
@@ -53,3 +47,12 @@ export const $selectedLineId = atom<string>({
key: "SELECTED_LINE_ID",
default: null,
});
interface MediaSettings {
mode: "audio" | "video";
isMuted: boolean;
}
export const $mediaSettings = atom<MediaSettings>({
key: "MEDIA_SETTINGS",
default: { isMuted: false, mode: "audio" },
});