antares/src/renderer/ipc-api/Views.js

22 lines
559 B
JavaScript
Raw Normal View History

2020-12-26 14:47:15 +01:00
'use strict';
import { ipcRenderer } from 'electron';
import { unproxify } from '../libs/unproxify';
2020-12-26 14:47:15 +01:00
export default class {
static getViewInformations (params) {
return ipcRenderer.invoke('get-view-informations', unproxify(params));
2020-12-26 14:47:15 +01:00
}
static dropView (params) {
return ipcRenderer.invoke('drop-view', unproxify(params));
2020-12-26 14:47:15 +01:00
}
2020-12-26 15:37:34 +01:00
static alterView (params) {
return ipcRenderer.invoke('alter-view', unproxify(params));
2020-12-26 15:37:34 +01:00
}
2020-12-27 16:16:48 +01:00
static createView (params) {
return ipcRenderer.invoke('create-view', unproxify(params));
2020-12-27 16:16:48 +01:00
}
2020-12-26 14:47:15 +01:00
}