52 lines
2.1 KiB
TypeScript
52 lines
2.1 KiB
TypeScript
// Module ID: 10756
|
|
// Function ID: 83596
|
|
// Name: open
|
|
// Dependencies: [0, 0, 0, 0, 0]
|
|
// Exports: chooseReplayPath, close, open, openReplay, setSection, setShouldRecordNextConnection, setSimulcastDebugOverride
|
|
|
|
// Module 10756 (open)
|
|
import __exportStarResult1 from "__exportStarResult1";
|
|
|
|
const result = require("__exportStarResult1").fileFinishedImporting("actions/RTCDebugActionCreators.tsx");
|
|
|
|
export const open = function open(section) {
|
|
let obj = importDefault(dependencyMap[1]);
|
|
obj = { type: "RTC_DEBUG_MODAL_OPEN", section };
|
|
obj.dispatch(obj);
|
|
importDefault(dependencyMap[1]).dispatch({ type: "RTC_DEBUG_POPOUT_WINDOW_OPEN" });
|
|
};
|
|
export const close = function close() {
|
|
importDefault(dependencyMap[1]).dispatch({ type: "RTC_DEBUG_MODAL_CLOSE" });
|
|
};
|
|
export const openReplay = function openReplay() {
|
|
importDefault(dependencyMap[1]).dispatch({ type: "RTC_DEBUG_MODAL_OPEN_REPLAY" });
|
|
};
|
|
export const setSection = function setSection(section) {
|
|
let obj = importDefault(dependencyMap[1]);
|
|
obj = { type: "RTC_DEBUG_MODAL_SET_SECTION", section };
|
|
obj.dispatch(obj);
|
|
};
|
|
export const setShouldRecordNextConnection = function setShouldRecordNextConnection(value) {
|
|
importDefault(dependencyMap[2])("connection_replay_log_enabled", value, __exportStarResult1.shouldRecordNextConnection());
|
|
let obj = importDefault(dependencyMap[1]);
|
|
obj = { type: "RTC_DEBUG_SET_RECORDING_FLAG", value };
|
|
obj.dispatch(obj);
|
|
};
|
|
export const setSimulcastDebugOverride = function setSimulcastDebugOverride(userId, context, quality) {
|
|
let obj = importDefault(dependencyMap[1]);
|
|
obj = { type: "RTC_DEBUG_SET_SIMULCAST_OVERRIDE", userId, context, quality };
|
|
obj.dispatch(obj);
|
|
};
|
|
export const chooseReplayPath = function chooseReplayPath() {
|
|
const fileManager = importDefault(dependencyMap[3]).fileManager;
|
|
const items = [{ name: "All Files", extensions: ["<string:1982989120>"] }];
|
|
fileManager.showOpenDialog({ filters: items }).then((arg0) => {
|
|
let str = "";
|
|
if (0 !== arg0.length) {
|
|
str = arg0[0];
|
|
}
|
|
let obj = callback(closure_1[1]);
|
|
obj = { type: "RTC_DEBUG_MODAL_OPEN_REPLAY_AT_PATH", path: str };
|
|
obj.dispatch(obj);
|
|
});
|
|
};
|