Files
electron-egg/frontend/src/api/main.js
gaoshuaixing 891487f3ae test api
2022-03-02 16:00:57 +08:00

36 lines
1.3 KiB
JavaScript

import request from '@/utils/request'
const ipcApiRoute = {
test: 'controller.example.test',
messageShow: 'controller.example.messageShow',
messageShowConfirm: 'controller.example.messageShowConfirm',
selectFolder: 'controller.example.selectFolder',
openDirectory: 'controller.example.openDirectory',
socketMessageStart: 'controller.example.socketMessageStart',
socketMessageStop: 'controller.example.socketMessageStop',
hello: 'controller.example.hello',
executeJS: 'controller.example.executeJS',
loadViewContent: 'controller.example.loadViewContent',
removeViewContent: 'controller.example.removeViewContent',
createWindow: 'controller.example.createWindow',
sendNotification: 'controller.example.sendNotification',
initPowerMonitor: 'controller.example.initPowerMonitor',
getScreen: 'controller.example.getScreen',
openSoftware: 'controller.example.openSoftware',
autoLaunch: 'controller.example.autoLaunch',
setTheme: 'controller.example.setTheme',
getTheme: 'controller.example.getTheme',
checkForUpdater: 'controller.example.checkForUpdater',
downloadApp: 'controller.example.downloadApp',
dbOperation: 'controller.example.dbOperation',
uploadFile: 'controller.example.uploadFile',
}
const specialIpcRoute = {
appUpdater: 'app.updater' // 此频道在后端也有相同定义
}
export {
ipcApiRoute,
specialIpcRoute
}