2021-01-05 17:25:18 +01:00
|
|
|
'use strict';
|
|
|
|
import { ipcRenderer } from 'electron';
|
2022-04-22 23:33:12 +02:00
|
|
|
import { toRaw } from 'vue';
|
2021-01-05 17:25:18 +01:00
|
|
|
|
|
|
|
export default class {
|
|
|
|
static getRoutineInformations (params) {
|
2022-04-22 23:33:12 +02:00
|
|
|
return ipcRenderer.invoke('get-routine-informations', toRaw(params));
|
2021-01-05 17:25:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static dropRoutine (params) {
|
2022-04-22 23:33:12 +02:00
|
|
|
return ipcRenderer.invoke('drop-routine', toRaw(params));
|
2021-01-05 17:25:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static alterRoutine (params) {
|
2022-04-22 23:33:12 +02:00
|
|
|
return ipcRenderer.invoke('alter-routine', toRaw(params));
|
2021-01-05 17:25:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static createRoutine (params) {
|
2022-04-22 23:33:12 +02:00
|
|
|
return ipcRenderer.invoke('create-routine', toRaw(params));
|
2021-01-05 17:25:18 +01:00
|
|
|
}
|
|
|
|
}
|