WIP quickbooks testing.
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
import { electronApp, is, optimizer } from "@electron-toolkit/utils";
|
||||
import { app, BrowserWindow, Menu, shell, nativeImage, Tray } from "electron";
|
||||
import { app, BrowserWindow, Menu, nativeImage, shell, Tray } from "electron";
|
||||
import log from "electron-log/main";
|
||||
import { autoUpdater } from "electron-updater";
|
||||
import path, { join } from "path";
|
||||
import appIcon from "../../resources/diamond.png?asset";
|
||||
import icon from "../../resources/icon.png?asset";
|
||||
import ErrorTypeCheck from "../util/errorTypeCheck";
|
||||
import {
|
||||
default as ErrorTypeCheck,
|
||||
default as errorTypeCheck,
|
||||
} from "../util/errorTypeCheck";
|
||||
import ipcTypes from "../util/ipcTypes.json";
|
||||
import client from "./graphql/graphql-client";
|
||||
import store from "./store/store";
|
||||
import appIcon from "../../resources/diamond.png?asset";
|
||||
import LocalServer from "./http-server/http-server";
|
||||
import errorTypeCheck from "../util/errorTypeCheck";
|
||||
import store from "./store/store";
|
||||
import { TestQB } from "./quickbooks-desktop/quickbooks-desktop";
|
||||
|
||||
log.initialize();
|
||||
const isMac = process.platform === "darwin";
|
||||
@@ -171,20 +174,9 @@ function createWindow(): void {
|
||||
type: "separator",
|
||||
},
|
||||
{
|
||||
label: "Temp Test Action - Get Token from Renderer",
|
||||
label: "Temp Test Action",
|
||||
click: (): void => {
|
||||
client
|
||||
.request(
|
||||
`
|
||||
query jobs{
|
||||
jobs
|
||||
{
|
||||
id}}
|
||||
`,
|
||||
)
|
||||
.then((data) => {
|
||||
log.info("Data from graffle", data);
|
||||
});
|
||||
TestQB();
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user