V0.2.0 (#37)
* refactor go files, add headless telemost support * js crap -> ts crap * docker-build (#32) Co-authored-by: Mimocro <suzumagefag@gmail.com> * add headless telemost for creator app * UX improvements (#39) * Add search in split tunneling app list * Add captcha detection * Add autoclick settings * headless vk joiner * add headless telemost joiner * refactor go modules * redesign settings dialog * headless option in settings * headless joiner support in MainActivity * display headless vk status in statusBar * update ux for headless in creator app * fix double log render for headless mode in creator * unicode for cyrillic * add socks auth * put socksPort inf prefs, verify that port is free on start * proxy only mode * mask addresses in go network errors * update docker build, add file write logic for headless * increment release version, add make-release script --------- Co-authored-by: kulikov <user@Mac.lan> Co-authored-by: Mimocro <67226986+Mimocro@users.noreply.github.com> Co-authored-by: Mimocro <suzumagefag@gmail.com> Co-authored-by: senya <76913432+senya-sh@users.noreply.github.com>
This commit is contained in:
122 files changed
+9938
-3284
No files matched your search
@@ -0,0 +1,44 @@
|
||||
import { ipcRenderer } from 'electron';
|
||||
import { IPC } from '../constants';
|
||||
|
||||
(window as any).bridge = {
|
||||
onRelayLog(cb: (tabId: string, msg: string) => void) {
|
||||
ipcRenderer.on(IPC.RELAY_LOG, (_e, data) => cb(data.tabId, data.msg));
|
||||
},
|
||||
getHookCode(tabId: string, url: string) {
|
||||
return ipcRenderer.invoke(IPC.GET_HOOK_CODE, tabId, url);
|
||||
},
|
||||
setTunnelMode(tabId: string, mode: string) {
|
||||
return ipcRenderer.invoke(IPC.SET_TUNNEL_MODE, tabId, mode);
|
||||
},
|
||||
startRelay(tabId: string) {
|
||||
return ipcRenderer.invoke(IPC.START_RELAY, tabId);
|
||||
},
|
||||
closeTab(tabId: string) {
|
||||
return ipcRenderer.invoke(IPC.CLOSE_TAB, tabId);
|
||||
},
|
||||
startBot(settings: any) {
|
||||
return ipcRenderer.invoke(IPC.START_BOT, settings);
|
||||
},
|
||||
stopBot() {
|
||||
return ipcRenderer.invoke(IPC.STOP_BOT);
|
||||
},
|
||||
onCreateBotTab(cb: (data: any) => void) {
|
||||
ipcRenderer.on(IPC.CREATE_BOT_TAB, (_e, data) => cb(data));
|
||||
},
|
||||
getCallCreatorCode(scriptFile: string) {
|
||||
return ipcRenderer.invoke(IPC.GET_CALL_CREATOR_CODE, scriptFile);
|
||||
},
|
||||
onBotError(cb: (msg: string) => void) {
|
||||
ipcRenderer.on(IPC.BOT_ERROR, (_e, msg) => cb(msg));
|
||||
},
|
||||
getCookies(domain: string) {
|
||||
return ipcRenderer.invoke(IPC.GET_COOKIES, domain);
|
||||
},
|
||||
startHeadless(tabId: string, platform: string) {
|
||||
return ipcRenderer.invoke(IPC.START_HEADLESS, tabId, platform);
|
||||
},
|
||||
onCloseBotTab(cb: (data: any) => void) {
|
||||
ipcRenderer.on(IPC.CLOSE_BOT_TAB, (_e, data) => cb(data));
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user