sunrize 1.9.0 → 1.9.1

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/bin/sunrize.js CHANGED
@@ -4,15 +4,16 @@
4
4
  const os = require ("os");
5
5
  const path = require ("path");
6
6
  const { spawn } = require ("child_process");
7
- const win = os .platform () === "win32";
8
- const cwd = process .cwd ();
7
+ const dir = process .cwd ();
8
+ const cwd = path .resolve (__dirname, "..");
9
9
  const args = process .argv .slice (2);
10
10
 
11
- process .chdir (path .resolve (__dirname, ".."));
11
+ args .unshift ("start", "--silent", "--");
12
+ args .push ("--cwd", dir);
12
13
 
13
- const p = win
14
- ? spawn ("cmd.exe", ["/c", "npm.cmd", "start", "--silent", "--", ... args], { cwd })
15
- : spawn ("npm", ["start", "--silent", "--", ... args], { cwd });
14
+ const p = os .platform () === "win32"
15
+ ? spawn ("cmd.exe", ["/c", "npm.cmd", ... args], { cwd })
16
+ : spawn ("npm", args, { cwd });
16
17
 
17
18
  p .stdout .pipe (process .stdout);
18
19
  p .stderr .pipe (process .stderr);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sunrize",
3
3
  "productName": "Sunrize X3D Editor",
4
- "version": "1.9.0",
4
+ "version": "1.9.1",
5
5
  "description": "A Multi-Platform X3D Editor",
6
6
  "main": "src/main.js",
7
7
  "bin": {
package/src/main.js CHANGED
@@ -1,3 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ if (process .argv .at (-2) === "--cwd")
4
+ process .chdir (process .argv .at (-1));
5
+
3
6
  require ("./Application/Application") .run ();
@@ -1,77 +0,0 @@
1
- <html>
2
- <head>
3
- <meta charset="utf-8"/>
4
- <!-- Theme -->
5
- <link rel="stylesheet" type="text/css" href="file:///Users/holger/Desktop/X_ITE/sunrize/src/assets/themes/default.css"/>
6
- </head>
7
- <body>
8
- <tab-group sortable="true">
9
- <style>
10
- .etabs .nav {
11
- height: var(--window-tabs-height);
12
- background: var(--background-color);
13
- box-shadow: none;
14
- border: none;
15
- overflow: auto;
16
- white-space: nowrap;
17
- }
18
-
19
- .etabs .tab {
20
- background: var(--window-tabs-background-color);
21
- border-color: var(--border-color) !important;
22
- padding: 4px 3px !important;
23
- color: var(--window-tabs-text-color);
24
- font-family: var(--sans-serif);
25
- box-shadow: none;
26
- }
27
-
28
- .etabs .tab:first-child {
29
- border-left: 0;
30
- }
31
-
32
- .etabs .tab.active {
33
- z-index: 1100;
34
- background: var(--background-color);
35
- color: var(--window-tabs-highlight-color);
36
- }
37
-
38
- .etabs::before {
39
- z-index: 1000;
40
- content: "";
41
- position: relative;
42
- display: block;
43
- height: 1px;
44
- width: 100%;
45
- box-shadow: var(--tabs-shadow);
46
- }
47
-
48
- .etabs .buttons {
49
- border-color: var(--border-color);
50
- }
51
-
52
- .etabs .buttons:hover button,
53
- .etabs .tab-close button:hover {
54
- background: none;
55
- }
56
-
57
- .etabs .buttons button:hover,
58
- .etabs .tab-close:hover button {
59
- color: var(--system-gray0);
60
- }
61
-
62
- .etabs .tab-close button {
63
- visibility: hidden;
64
- }
65
-
66
- .etabs .tab.active .tab-close button,
67
- .etabs .tab:hover .tab-close button {
68
- visibility: visible;
69
- }
70
-
71
- .etabs .tab-close {
72
- margin-left: 4px;
73
- }
74
- </style>
75
- </tab-group>
76
- </body>
77
- </html>
@@ -1,38 +0,0 @@
1
- <html>
2
- <head>
3
- <meta charset="utf-8"/>
4
- <link rel="stylesheet" type="text/css" href="file:///Users/holger/Desktop/X_ITE/sunrize/node_modules/jquery-ui-dist/jquery-ui.min.css"/>
5
- <link rel="stylesheet" type="text/css" href="file:///Users/holger/Desktop/X_ITE/sunrize/node_modules/qtip2/dist/jquery.qtip.min.css"/>
6
- <link rel="stylesheet" type="text/css" href="file:///Users/holger/Desktop/X_ITE/sunrize/src/assets/themes/default.css"/>
7
- <link rel="stylesheet" data-name="vs/editor/editor.main" href="file:///Users/holger/Desktop/X_ITE/sunrize/node_modules/monaco-editor/min/vs/editor/editor.main.css">
8
- </head>
9
- <body>
10
- <div id="vertical-splitter" class="vertical-splitter">
11
- <div class="vertical-splitter-left">
12
- <div id="horizontal-splitter" class="horizontal-splitter">
13
- <div class="horizontal-splitter-top">
14
- <div id="browser-pane">
15
- <div id="browser-frame">
16
- <x3d-canvas
17
- id="browser"
18
- cache="false"
19
- contextMenu="false"
20
- debug="true"
21
- preserveDrawingBuffer="true"
22
- splashScreen="false"
23
- xrSessionMode="NONE"></x3d-canvas>
24
- </div>
25
- <div id="secondary-toolbar" class="toolbar vertical-toolbar large-toolbar secondary-toolbar"></div>
26
- </div>
27
- </div>
28
- <div class="horizontal-splitter-bottom">
29
- <div id="footer"></div>
30
- </div>
31
- </div>
32
- </div>
33
- <div class="vertical-splitter-right">
34
- <div id="sidebar" class="sidebar"></div>
35
- </div>
36
- </div>
37
- </body>
38
- </html>