diff --git a/holoscape.js b/holoscape.js index 92d57c5..18a6b69 100644 --- a/holoscape.js +++ b/holoscape.js @@ -34,6 +34,7 @@ class Holoscape { uiConfigWindow; debuggerWindow; installBundleView; + installFromFileWindow; activeView; @@ -356,6 +357,33 @@ class Holoscape { this.installBundleView = view } + createInstallFromFileView() { + let window = new BrowserWindow({ + width:1200, + height:800, + webPreferences: { + nodeIntegration: true + }, + show: true, + icon: systemTrayIconFull(), + }) + window.webContents.loadURL(path.join('file://', __dirname, 'views/legacy_install_bundle_view.html')) + + let holoscape = this + window.on('close', (event) => { + holoscape.installFromFileWindow = undefined + }) + + this.installFromFileWindow = window + } + + showInstallFromFileWindow() { + if(!this.installFromFileWindow) { + this.createInstallFromFileView() + } + this.installFromFileWindow.show() + } + showInstallBundleView() { this.showView(this.installBundleView) } @@ -395,6 +423,8 @@ class Holoscape { { label: 'Settings-'+conductor.persona(), type: 'submenu', submenu: settingsMenu }, { label: 'Conductor Run-Time', type: 'submenu', submenu: conductorMenu }, { type: 'separator' }, + { label: 'Install hApp from file...', click:()=>this.showInstallFromFileWindow() }, + { type: 'separator' }, { label: 'Quit', click: ()=> this.quit() } ]) mb.tray.setToolTip('HoloScape') diff --git a/views/legacy_install_bundle_view.html b/views/legacy_install_bundle_view.html new file mode 100644 index 0000000..63d647c --- /dev/null +++ b/views/legacy_install_bundle_view.html @@ -0,0 +1,687 @@ + + + Holoscape - Install hApp + + + + + + + + + + +
+

Holoscape - Install hApp

+ + +
+

Install with admin interface?

+
+ +
+

Select storage implementation:

+
+ +
+
+
+
+
+

Bundle successfully installed!

+
+
+
+
+ +
+
+
+
+ + + + + + + +