70 |
71 |
72 |
73 | ) => {
78 | this.setState({ scriptName: e.currentTarget.value });
79 | }}
80 | onBlur={() => {
81 | if (this.state.onBlur !== undefined) {
82 | this.state.onBlur("Name", this.state.scriptName);
83 | }
84 | }} />
85 |
86 |
87 |
88 |
89 |
90 | ) => {
96 | this.setState({ description: e.currentTarget.value });
97 | }}
98 | onBlur={() => {
99 | if (this.state.onBlur !== undefined) {
100 | this.state.onBlur("Description", this.state.description);
101 | }
102 | }} />
103 |
105 |
106 |
107 |
108 |
109 |
110 | {
117 | this.setState({ autoInstallDependencies: e.checked });
118 | if (this.state.onCheckedAutoInstall !== undefined) {
119 | this.state.onCheckedAutoInstall(e.checked)
120 | }
121 | }}
122 | />
123 |
126 |
127 |
128 |
129 |
130 |
131 | );
132 | }
133 | }
134 |
135 | export default GlobalScriptData;
136 |
--------------------------------------------------------------------------------
/src/electron/bwMainService.ts:
--------------------------------------------------------------------------------
1 | import electron, { BrowserWindow, dialog, FileFilter, Menu } from "electron";
2 | import fs from "fs";
3 | import path from "path";
4 | import { IBashWizardMainService, IBashWizardSettings, BashWizardTheme } from "../Models/bwCommonModels";
5 |
6 |
7 |
8 |
9 |
10 | export class BashWizardMainService implements IBashWizardMainService {
11 | private myBrowserWindow: BrowserWindow;
12 | constructor(private browserWindow: BrowserWindow) {
13 | this.myBrowserWindow = browserWindow;
14 | }
15 | public setWindowTitle(name: string): Promise