@lvce-editor/about-view 2.5.0 → 3.0.0
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/dist/aboutWorkerMain.js +15 -15
- package/package.json +1 -1
package/dist/aboutWorkerMain.js
CHANGED
@@ -1140,17 +1140,29 @@ const joinLines = lines => {
|
|
1140
1140
|
return lines.join(NewLine);
|
1141
1141
|
};
|
1142
1142
|
|
1143
|
+
const state = {
|
1144
|
+
rpc: undefined
|
1145
|
+
};
|
1146
|
+
const invoke = (method, ...params) => {
|
1147
|
+
const rpc = state.rpc;
|
1148
|
+
// @ts-ignore
|
1149
|
+
return rpc.invoke(method, ...params);
|
1150
|
+
};
|
1151
|
+
const setRpc = rpc => {
|
1152
|
+
state.rpc = rpc;
|
1153
|
+
};
|
1154
|
+
|
1143
1155
|
const version = '0.0.0-dev';
|
1144
1156
|
const commit = 'unknown commit';
|
1145
1157
|
const date = '';
|
1146
1158
|
const getElectronVersion = () => {
|
1147
|
-
return '';
|
1159
|
+
return invoke('Process.getElectronVersion');
|
1148
1160
|
};
|
1149
1161
|
const getNodeVersion = () => {
|
1150
|
-
return '';
|
1162
|
+
return invoke('Process.getNodeVersion');
|
1151
1163
|
};
|
1152
1164
|
const getChromeVersion = () => {
|
1153
|
-
return '';
|
1165
|
+
return invoke('Process.getChromeVersion');
|
1154
1166
|
};
|
1155
1167
|
const getVersion = () => {
|
1156
1168
|
return version;
|
@@ -1472,18 +1484,6 @@ const renderEventListers = () => {
|
|
1472
1484
|
}];
|
1473
1485
|
};
|
1474
1486
|
|
1475
|
-
const state = {
|
1476
|
-
rpc: undefined
|
1477
|
-
};
|
1478
|
-
const invoke = (method, ...params) => {
|
1479
|
-
const rpc = state.rpc;
|
1480
|
-
// @ts-ignore
|
1481
|
-
return rpc.invoke(method, ...params);
|
1482
|
-
};
|
1483
|
-
const setRpc = rpc => {
|
1484
|
-
state.rpc = rpc;
|
1485
|
-
};
|
1486
|
-
|
1487
1487
|
const writeText = async text => {
|
1488
1488
|
await invoke('ClipBoard.writeText', /* text */text);
|
1489
1489
|
};
|