@deephaven/code-studio 0.15.5-vite.12 → 0.15.6-vite.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/electron.js DELETED
@@ -1,63 +0,0 @@
1
- const electron = require('electron');
2
- // Module to control application life.
3
- const app = electron.app;
4
- // Module to create native browser window.
5
- const BrowserWindow = electron.BrowserWindow;
6
-
7
- const path = require('path');
8
- const url = require('url');
9
-
10
- // Keep a global reference of the window object, if you don't, the window will
11
- // be closed automatically when the JavaScript object is garbage collected.
12
- let mainWindow;
13
-
14
- function createWindow() {
15
- // Create the browser window.
16
- mainWindow = new BrowserWindow({ width: 800, height: 600 });
17
-
18
- // and load the index.html of the app.
19
- mainWindow.loadURL(
20
- import.meta.env.ELECTRON_START_URL ||
21
- url.format({
22
- pathname: path.join(__dirname, '/../build/index.html'),
23
- protocol: 'file:',
24
- slashes: true,
25
- })
26
- );
27
-
28
- // Open the DevTools.
29
- // mainWindow.webContents.openDevTools()
30
-
31
- // Emitted when the window is closed.
32
- mainWindow.on('closed', function () {
33
- // Dereference the window object, usually you would store windows
34
- // in an array if your app supports multi windows, this is the time
35
- // when you should delete the corresponding element.
36
- mainWindow = null;
37
- });
38
- }
39
-
40
- // This method will be called when Electron has finished
41
- // initialization and is ready to create browser windows.
42
- // Some APIs can only be used after this event occurs.
43
- app.on('ready', createWindow);
44
-
45
- // Quit when all windows are closed.
46
- app.on('window-all-closed', function () {
47
- // On OS X it is common for applications and their menu bar
48
- // to stay active until the user quits explicitly with Cmd + Q
49
- if (process.platform !== 'darwin') {
50
- app.quit();
51
- }
52
- });
53
-
54
- app.on('activate', function () {
55
- // On OS X it's common to re-create a window in the app when the
56
- // dock icon is clicked and there are no other windows open.
57
- if (mainWindow === null) {
58
- createWindow();
59
- }
60
- });
61
-
62
- // In this file you can include the rest of your app's specific main process
63
- // code. You can also put them in separate files and require them here.
@@ -1,74 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta name="ui-version" content="v" />
5
- <meta charset="utf-8" />
6
- <meta
7
- name="viewport"
8
- content="width=device-width, initial-scale=1, shrink-to-fit=no"
9
- />
10
- <meta name="theme-color" content="#2d2a2e" />
11
- <!--
12
- manifest.json provides metadata used when your web app is added to the
13
- homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
14
- -->
15
- <link rel="manifest" href="/manifest.json" />
16
-
17
- <link rel="icon" href="/favicon-cc-app.svg" />
18
-
19
- <!-- The script is currently tightly coupled with the server -->
20
- <script
21
- src="/jsapi/dh-internal.js"
22
- type="text/javascript"
23
- ></script>
24
- <script
25
- src="/jsapi/dh-core.js"
26
- type="text/javascript"
27
- ></script>
28
- <script>
29
- (function () {
30
- document.addEventListener('DOMContentLoaded', function () {
31
- // If for some reason the API doesn't load, our app will not work. Write out a message to help the user.
32
- if (!window.dh) {
33
- document.getElementById('root').insertAdjacentHTML(
34
- 'afterbegin',
35
- `<div class="modal d-block">
36
- <div class="modal-dialog modal-dialog-centered theme-bg-light">
37
- <div class="modal-content">
38
- <div class="modal-body">
39
- <h5 class="modal-title">Error: Unable to load API</h5>
40
- <p class="text-break">Ensure the server is running and you are able to reach /jsapi/dh-core.js, then refresh the page.</p>
41
- </div>
42
- </div>
43
- </div>
44
- </div>`
45
- );
46
- }
47
- });
48
- })();
49
- </script>
50
- <script>
51
- // Plotly imports has-hover which needs global to exist
52
- // Without this, dev mode does not start properly
53
- // Using the define key in vite.config, build does not work properly
54
- // Maybe related: https://github.com/vitejs/vite/issues/5142
55
- if (window.global === undefined) {
56
- window.global = globalThis;
57
- }
58
- </script>
59
- <title>Deephaven Embedded Grid</title>
60
- <script type="module" crossorigin src="/assets/embedGrid.11ab2424.js"></script>
61
- <link rel="modulepreload" crossorigin href="/assets/monaco.175fac7f.js">
62
- <link rel="modulepreload" crossorigin href="/assets/vendor.6e314c31.js">
63
- <link rel="modulepreload" crossorigin href="/assets/IrisGridModelFactory.cf1f96cc.js">
64
- <link rel="stylesheet" href="/assets/IrisGridModelFactory.a054c9ec.css">
65
- <link rel="stylesheet" href="/assets/vendor.6885683a.css">
66
- <link rel="stylesheet" href="/assets/monaco.2a32a8f3.css">
67
- <link rel="stylesheet" href="/assets/index.a51331f8.css">
68
- </head>
69
- <body>
70
- <noscript> You need to enable JavaScript to run this app. </noscript>
71
- <div id="root"></div>
72
-
73
- </body>
74
- </html>