@plasosdk/plaso-electron-sdk 1.1.5 → 1.1.6
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/{readme.md → README.md} +3 -30
- package/js/render.js +3 -0
- package/package.json +1 -1
package/{readme.md → README.md}
RENAMED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
# 1、接入步骤
|
|
10
10
|
|
|
11
|
-
## 1.1
|
|
11
|
+
## 1.1、安装
|
|
12
12
|
|
|
13
13
|
**前提**:**electron 版本 >=14.0.0, 需要install @electron/remote**
|
|
14
14
|
|
|
@@ -16,40 +16,13 @@
|
|
|
16
16
|
npm install @electron/remote --global-style --no-save --legacy-peer-deps
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
**win:需要在windows平台上执行install**
|
|
22
|
-
|
|
23
|
-
**32位:**
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
npm install @plasosdk/plaso-electron-sdk --plaso_electron_sdk_arch=ia32 --plaso_electron_sdk_platform=win32 --global-style --no-save
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
**64位:**
|
|
19
|
+
**安装plaso-electron-sdk**
|
|
30
20
|
|
|
31
21
|
```
|
|
32
|
-
npm install @plasosdk/plaso-electron-sdk --
|
|
22
|
+
npm install @plasosdk/plaso-electron-sdk --global-style --no-save
|
|
33
23
|
```
|
|
34
24
|
|
|
35
25
|
|
|
36
|
-
|
|
37
|
-
**mac:需要在mac平台上执行install**
|
|
38
|
-
|
|
39
|
-
**intel:**
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
npm install @plasosdk/plaso-electron-sdk --plaso_electron_sdk_arch=x64 --plaso_electron_sdk_platform=darwin --global-style --no-save
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
**arm:**
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
npm install @plasosdk/plaso-electron-sdk --plaso_electron_sdk_arch=arm --plaso_electron_sdk_platform=darwin --global-style --no-save
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
26
|
## 1.2、使用
|
|
54
27
|
|
|
55
28
|
### 1.2.1、npm包位置
|
package/js/render.js
CHANGED
|
@@ -213,6 +213,9 @@ function createClassWindow(classWindowProps) {
|
|
|
213
213
|
/**---------------------------------------------------- 创建课堂/备课窗口-----------------------------------*/
|
|
214
214
|
|
|
215
215
|
const onClassWindowReady = () => {
|
|
216
|
+
const classWindow = remote.BrowserWindow.formId(currentWinId);
|
|
217
|
+
classWindow.moveTop();
|
|
218
|
+
classWindow.focus();
|
|
216
219
|
logger.info(`课堂窗口ready,id:${currentWinId}`);
|
|
217
220
|
if (onClassWindowReadyFn && currentWinId) onClassWindowReadyFn(currentWinId);
|
|
218
221
|
};
|