Initial commit

This commit is contained in:
Arne
2023-04-02 20:35:10 +02:00
parent 80ffb8b70c
commit 7611f10b1c
55 changed files with 1678 additions and 683 deletions

View File

@@ -1,17 +1,24 @@
export class WindowApiConst {
/** Channel used by the renderer process to send data to the main process */
public static readonly MULTIPLES_INPUT = 'getMultiplesInput';
public static readonly FILELIST_INPUT = 'getFileListInput';
public static readonly FILELIST_OUTPUT = 'getFileListOutput';
/** Channel used by the renderer process to receive data from the main process */
public static readonly MULTIPLES_OUTPUT = 'getMultiplesOutput';
public static readonly PROJECT_INPUT = 'getProjectInput';
public static readonly PROJECT_OUTPUT = 'getProjectOutput';
public static readonly PRINT_OUTPUT = 'getPrintOutput';
public static readonly PRINT_INPUT = 'getPrintInput';
/** Whitelist of the safe channels to use when sending data to the main process */
public static readonly SENDING_SAFE_CHANNELS = [
WindowApiConst.MULTIPLES_INPUT,
WindowApiConst.FILELIST_INPUT,
WindowApiConst.PROJECT_INPUT,
WindowApiConst.PRINT_INPUT,
];
/** Whitelist of the safe channels to use when receiving data from the main process */
public static readonly RECEIVING_SAFE_CHANNELS = [
WindowApiConst.MULTIPLES_OUTPUT,
WindowApiConst.FILELIST_OUTPUT,
WindowApiConst.PROJECT_OUTPUT,
WindowApiConst.PROJECT_OUTPUT,
];
}

View File

@@ -2,6 +2,7 @@ import { WindowApi } from './apis/window-api';
export * from './apis/window-api';
export * from './apis/window-api-consts';
export * from './models/config/app-config';
export * from './models/door';
declare global {
// Global augmentation of the `Window` interface

View File

@@ -0,0 +1,9 @@
export interface Door {
nr?: string;
lr?: string;
pivot?: string;
type?: string;
remark?: string;
modelKruk?: string;
krukSlot?: string;
}