Track bundled vendor runtime sources
This commit is contained in:
33
vendor/aigcpanel/electron/page/feedback.ts
vendored
Normal file
33
vendor/aigcpanel/electron/page/feedback.ts
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import { BrowserWindow } from "electron";
|
||||
import { t } from "../config/lang";
|
||||
import { WindowConfig } from "../config/window";
|
||||
import { preloadDefault } from "../lib/env-main";
|
||||
import { Page } from "./index";
|
||||
|
||||
export const PageFeedback = {
|
||||
NAME: "feedback",
|
||||
open: async (option: any) => {
|
||||
const win = new BrowserWindow({
|
||||
title: t("page.feedback.title"),
|
||||
parent: null,
|
||||
minWidth: WindowConfig.feedbackWidth,
|
||||
minHeight: WindowConfig.feedbackHeight,
|
||||
width: WindowConfig.feedbackWidth,
|
||||
height: WindowConfig.feedbackHeight,
|
||||
webPreferences: {
|
||||
preload: preloadDefault,
|
||||
// Warning: Enable nodeIntegration and disable contextIsolation is not secure in production
|
||||
nodeIntegration: true,
|
||||
webSecurity: false,
|
||||
webviewTag: true,
|
||||
// Consider using contextBridge.exposeInMainWorld
|
||||
// Read more on https://www.electronjs.org/docs/latest/tutorial/context-isolation
|
||||
contextIsolation: false,
|
||||
},
|
||||
show: true,
|
||||
frame: false,
|
||||
transparent: false,
|
||||
});
|
||||
return Page.openWindow(PageFeedback.NAME, win, "page/feedback.html");
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user