Upload via GUI (93 Dateien)

This commit is contained in:
2026-10-02 19:39:47 +00:00
parent 0595b7ab1a
commit 41c63ef0ed
9 changed files with 2486 additions and 887 deletions
+22
View File
@@ -45,6 +45,17 @@ contextBridge.exposeInMainWorld('api', {
systemMemory: () => ipcRenderer.invoke('system:memory'),
checkMemory: (minMb, maxMb) => ipcRenderer.invoke('system:checkMemory', minMb, maxMb),
crashLatest: (id, seit) => ipcRenderer.invoke('crash:latest', id, seit),
crashAnalyze: (id, seit) => ipcRenderer.invoke('crash:analyze', id, seit),
crashFix: (id, aktion) => ipcRenderer.invoke('crash:fix', id, aktion),
crashRelaunch: (id) => ipcRenderer.invoke('crash:relaunch', id),
shareCreate: (id) => ipcRenderer.invoke('share:create', id),
shareFetch: (code) => ipcRenderer.invoke('share:fetch', code),
shareInstall: (code) => ipcRenderer.invoke('share:install', code),
onShareProgress: (cb) => {
const l = (_e, p) => cb(p);
ipcRenderer.on('share:progress', l);
return () => ipcRenderer.removeListener('share:progress', l);
},
onAutoBackup: (cb) => {
const l = (_e, d) => cb(d);
ipcRenderer.on('backup:auto', l);
@@ -85,6 +96,8 @@ contextBridge.exposeInMainWorld('api', {
datapacks: (id) => ipcRenderer.invoke('instance:datapacks', id),
deleteContent: (id, sub, name) => ipcRenderer.invoke('instance:deleteContent', id, sub, name),
backupWorld: (id, worldName) => ipcRenderer.invoke('world:backup', id, worldName),
worldCopyTo: (id, worldName, zielId) => ipcRenderer.invoke('world:copyTo', id, worldName, zielId),
friendsSendScreenshot: (otherUuid, instanceId, datei, text) => ipcRenderer.invoke('friends:sendScreenshot', otherUuid, instanceId, datei, text),
openSubdir: (id, sub) => ipcRenderer.invoke('instance:openSubdir', id, sub),
screenshots: (id) => ipcRenderer.invoke('instance:screenshots', id),
screenshotData: (id, name) => ipcRenderer.invoke('instance:screenshotData', id, name),
@@ -299,6 +312,15 @@ contextBridge.exposeInMainWorld('api', {
friendsCancel: (otherUuid) => ipcRenderer.invoke('friends:cancel', otherUuid),
friendsSetNickname: (uuid, nickname) => ipcRenderer.invoke('friends:setNickname', uuid, nickname),
friendsRequestCount: () => ipcRenderer.invoke('friends:requestCount'),
friendsMessages: (otherUuid) => ipcRenderer.invoke('friends:messages', otherUuid),
friendsSendMessage: (otherUuid, text) => ipcRenderer.invoke('friends:sendMessage', otherUuid, text),
friendsUnreadByFriend: () => ipcRenderer.invoke('friends:unreadByFriend'),
onFriendsMessage: (cb) => {
const l = (_e, n) => cb(n);
ipcRenderer.on('friends:message', l);
return () => ipcRenderer.removeListener('friends:message', l);
},
crashReport: (id, seit, wahl) => ipcRenderer.invoke('crash:report', id, seit, wahl),
clipSetActive: (active, instanceId) => ipcRenderer.invoke('clip:setActive', active, instanceId),
clipSave: (data) => ipcRenderer.invoke('clip:save', data),
onClipHotkey: (cb) => {