-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/GeneralBots/BotServer
- Loading branch information
Showing
18 changed files
with
48 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
import { GBConfigService } from "../packages/core.gbapp/services/GBConfigService"; | ||
import { app, BrowserWindow } from 'electron'; | ||
import { GBConfigService } from '../packages/core.gbapp/services/GBConfigService.js'; | ||
const {app} = (await import('electron')).default; | ||
|
||
import path from 'path'; | ||
import url from 'url'; | ||
|
||
export function runUI() { | ||
|
||
|
||
export function runUI() { | ||
// Create the browser window. | ||
const win = new BrowserWindow({ width: 800, height: 600, title: 'General Bots Studio' }); | ||
const win = null;// new BrowserWindow({ width: 800, height: 600, title: 'General Bots Studio' }); | ||
|
||
// and load the index.html of the app. | ||
win.loadURL( | ||
url.format({ | ||
pathname: path.join(__dirname, `http://localhost:${GBConfigService.get('PORT')}`), | ||
protocol: 'file:', | ||
slashes: true | ||
}) | ||
); | ||
import('./app.js').then(gb => { | ||
gb.GBServer.run(); | ||
// and load the index.html of the app. | ||
win.loadURL( | ||
url.format({ | ||
pathname: path.join(__dirname, `http://localhost:${GBConfigService.get('PORT')}`), | ||
protocol: 'file:', | ||
slashes: true | ||
}) | ||
); | ||
}); | ||
} | ||
|
||
app.on('ready', runUI); | ||
export class GBUI { | ||
static run() { | ||
app.on('ready', runUI); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.