@godscene/playground-electron 1.7.11 → 1.7.13
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.
|
@@ -45,7 +45,6 @@ h3 {
|
|
|
45
45
|
.app-panel.right-panel {
|
|
46
46
|
border-radius: 0;
|
|
47
47
|
flex: 1;
|
|
48
|
-
padding-top: 16px;
|
|
49
48
|
overflow: hidden;
|
|
50
49
|
box-shadow: -4px 0 20px rgba(0, 0, 0, .04);
|
|
51
50
|
}
|
|
@@ -101,7 +100,6 @@ h3 {
|
|
|
101
100
|
.panel-content.right-panel-content {
|
|
102
101
|
border-radius: 0;
|
|
103
102
|
flex-direction: column;
|
|
104
|
-
padding: 0 24px 24px;
|
|
105
103
|
display: flex;
|
|
106
104
|
overflow: hidden;
|
|
107
105
|
}
|
|
@@ -205,3 +203,12 @@ h3 {
|
|
|
205
203
|
right: -4px !important;
|
|
206
204
|
}
|
|
207
205
|
|
|
206
|
+
.model-root-container {
|
|
207
|
+
position: relative;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.insert-modal-wrap {
|
|
211
|
+
z-index: 999;
|
|
212
|
+
position: absolute !important;
|
|
213
|
+
}
|
|
214
|
+
|
|
@@ -106,15 +106,6 @@ function PlaygroundApp({ serverUrl, appVersion, title = 'Playground', defaultDev
|
|
|
106
106
|
useEffect(()=>{
|
|
107
107
|
var _window_electron;
|
|
108
108
|
null == (_window_electron = window.electron) || _window_electron.ipcRenderer.on('agent:ready', (event, value)=>{
|
|
109
|
-
if (!value) Modal.warning({
|
|
110
|
-
title: '初始化失败',
|
|
111
|
-
content: '请确认是否购买了token',
|
|
112
|
-
getContainer: ()=>rightRef.current,
|
|
113
|
-
mask: false,
|
|
114
|
-
className: "insert-modal",
|
|
115
|
-
wrapClassName: 'insert-modal-wrap',
|
|
116
|
-
zIndex: 99999
|
|
117
|
-
});
|
|
118
109
|
setAgentReady(value);
|
|
119
110
|
});
|
|
120
111
|
}, []);
|
|
@@ -717,10 +708,7 @@ function PlaygroundApp({ serverUrl, appVersion, title = 'Playground', defaultDev
|
|
|
717
708
|
className: "screenshot-viewer offline",
|
|
718
709
|
ref: viewRef,
|
|
719
710
|
children: /*#__PURE__*/ jsx("div", {
|
|
720
|
-
className: "screenshot-placeholder"
|
|
721
|
-
children: /*#__PURE__*/ jsx("h3", {
|
|
722
|
-
children: "Screen Preview"
|
|
723
|
-
})
|
|
711
|
+
className: "screenshot-placeholder"
|
|
724
712
|
})
|
|
725
713
|
})
|
|
726
714
|
]
|
|
@@ -735,7 +723,7 @@ function PlaygroundApp({ serverUrl, appVersion, title = 'Playground', defaultDev
|
|
|
735
723
|
minSize: isNarrowScreen ? 67 : 25,
|
|
736
724
|
className: "app-panel left-panel",
|
|
737
725
|
children: /*#__PURE__*/ jsxs("div", {
|
|
738
|
-
className: "panel-content left-panel-content",
|
|
726
|
+
className: "panel-content left-panel-content model-root-container",
|
|
739
727
|
ref: rightRef,
|
|
740
728
|
children: [
|
|
741
729
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Alert, Form, Input, InputNumber, Radio, Select } from "antd";
|
|
3
3
|
import dropdown_chevron from "./icons/dropdown-chevron.mjs";
|
|
4
|
-
import midscene_logo from "./icons/midscene-logo.mjs";
|
|
5
4
|
import "./SessionSetupPanel.css";
|
|
6
5
|
function getPlatformSelectorFieldKey(setup) {
|
|
7
6
|
var _setup_platformSelector;
|
|
@@ -100,10 +99,6 @@ function SessionSetupPanel({ form, sessionSetup, sessionSetupError, sessionViewS
|
|
|
100
99
|
children: /*#__PURE__*/ jsxs("div", {
|
|
101
100
|
className: "session-setup-card",
|
|
102
101
|
children: [
|
|
103
|
-
/*#__PURE__*/ jsx(midscene_logo, {
|
|
104
|
-
"aria-hidden": "true",
|
|
105
|
-
className: "session-setup-logo"
|
|
106
|
-
}),
|
|
107
102
|
/*#__PURE__*/ jsx("h1", {
|
|
108
103
|
className: "session-setup-title",
|
|
109
104
|
children: title
|
|
@@ -45,7 +45,6 @@ h3 {
|
|
|
45
45
|
.app-panel.right-panel {
|
|
46
46
|
border-radius: 0;
|
|
47
47
|
flex: 1;
|
|
48
|
-
padding-top: 16px;
|
|
49
48
|
overflow: hidden;
|
|
50
49
|
box-shadow: -4px 0 20px rgba(0, 0, 0, .04);
|
|
51
50
|
}
|
|
@@ -101,7 +100,6 @@ h3 {
|
|
|
101
100
|
.panel-content.right-panel-content {
|
|
102
101
|
border-radius: 0;
|
|
103
102
|
flex-direction: column;
|
|
104
|
-
padding: 0 24px 24px;
|
|
105
103
|
display: flex;
|
|
106
104
|
overflow: hidden;
|
|
107
105
|
}
|
|
@@ -205,3 +203,12 @@ h3 {
|
|
|
205
203
|
right: -4px !important;
|
|
206
204
|
}
|
|
207
205
|
|
|
206
|
+
.model-root-container {
|
|
207
|
+
position: relative;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.insert-modal-wrap {
|
|
211
|
+
z-index: 999;
|
|
212
|
+
position: absolute !important;
|
|
213
|
+
}
|
|
214
|
+
|
|
@@ -145,15 +145,6 @@ function PlaygroundApp({ serverUrl, appVersion, title = 'Playground', defaultDev
|
|
|
145
145
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
146
146
|
var _window_electron;
|
|
147
147
|
null == (_window_electron = window.electron) || _window_electron.ipcRenderer.on('agent:ready', (event, value)=>{
|
|
148
|
-
if (!value) external_antd_namespaceObject.Modal.warning({
|
|
149
|
-
title: '初始化失败',
|
|
150
|
-
content: '请确认是否购买了token',
|
|
151
|
-
getContainer: ()=>rightRef.current,
|
|
152
|
-
mask: false,
|
|
153
|
-
className: "insert-modal",
|
|
154
|
-
wrapClassName: 'insert-modal-wrap',
|
|
155
|
-
zIndex: 99999
|
|
156
|
-
});
|
|
157
148
|
setAgentReady(value);
|
|
158
149
|
});
|
|
159
150
|
}, []);
|
|
@@ -756,10 +747,7 @@ function PlaygroundApp({ serverUrl, appVersion, title = 'Playground', defaultDev
|
|
|
756
747
|
className: "screenshot-viewer offline",
|
|
757
748
|
ref: viewRef,
|
|
758
749
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
759
|
-
className: "screenshot-placeholder"
|
|
760
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h3", {
|
|
761
|
-
children: "Screen Preview"
|
|
762
|
-
})
|
|
750
|
+
className: "screenshot-placeholder"
|
|
763
751
|
})
|
|
764
752
|
})
|
|
765
753
|
]
|
|
@@ -774,7 +762,7 @@ function PlaygroundApp({ serverUrl, appVersion, title = 'Playground', defaultDev
|
|
|
774
762
|
minSize: isNarrowScreen ? 67 : 25,
|
|
775
763
|
className: "app-panel left-panel",
|
|
776
764
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
777
|
-
className: "panel-content left-panel-content",
|
|
765
|
+
className: "panel-content left-panel-content model-root-container",
|
|
778
766
|
ref: rightRef,
|
|
779
767
|
children: [
|
|
780
768
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
@@ -40,8 +40,6 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
40
40
|
const external_antd_namespaceObject = require("antd");
|
|
41
41
|
const dropdown_chevron_js_namespaceObject = require("./icons/dropdown-chevron.js");
|
|
42
42
|
var dropdown_chevron_js_default = /*#__PURE__*/ __webpack_require__.n(dropdown_chevron_js_namespaceObject);
|
|
43
|
-
const midscene_logo_js_namespaceObject = require("./icons/midscene-logo.js");
|
|
44
|
-
var midscene_logo_js_default = /*#__PURE__*/ __webpack_require__.n(midscene_logo_js_namespaceObject);
|
|
45
43
|
require("./SessionSetupPanel.css");
|
|
46
44
|
function getPlatformSelectorFieldKey(setup) {
|
|
47
45
|
var _setup_platformSelector;
|
|
@@ -140,10 +138,6 @@ function SessionSetupPanel({ form, sessionSetup, sessionSetupError, sessionViewS
|
|
|
140
138
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
141
139
|
className: "session-setup-card",
|
|
142
140
|
children: [
|
|
143
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(midscene_logo_js_default(), {
|
|
144
|
-
"aria-hidden": "true",
|
|
145
|
-
className: "session-setup-logo"
|
|
146
|
-
}),
|
|
147
141
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h1", {
|
|
148
142
|
className: "session-setup-title",
|
|
149
143
|
children: title
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@godscene/playground-electron",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.13",
|
|
4
4
|
"description": "Reusable React shell for Midscene playground applications",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"antd": "^5.21.6",
|
|
30
30
|
"react-resizable-panels": "2.0.22",
|
|
31
31
|
"socket.io-client": "4.8.1",
|
|
32
|
-
"@godscene/
|
|
33
|
-
"@godscene/playground": "1.7.
|
|
34
|
-
"@godscene/
|
|
32
|
+
"@godscene/shared": "1.7.13",
|
|
33
|
+
"@godscene/playground": "1.7.13",
|
|
34
|
+
"@godscene/visualizer": "1.7.13"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@rsbuild/plugin-less": "^1.5.0",
|