assistsx-js 0.0.133 → 0.0.1331

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 CHANGED
@@ -13,38 +13,6 @@
13
13
 
14
14
  > 下载安装后会默认安装一个示例插件,可长按删除
15
15
 
16
- # 示例源码安装运行
17
-
18
- 源码:[https://github.com/ven-coder/assistsx-js-simple](https://github.com/ven-coder/assistsx-js-simple)
19
-
20
- ## 本地安装运行
21
-
22
- ### 1. 安装[AssistsX](https://www.pgyer.com/SqGaCx8C)
23
-
24
- 安装前请先在手机安装[AssistsX](https://www.pgyer.com/SqGaCx8C)
25
-
26
- ### 2. 插件包传至手机
27
- 下载本示例源码后(*前提`npm`环境配置好*)
28
- 1. 终端依次运行命令:`npm install`,`npm run build`
29
- 2. 编译完成后将`dist`文件夹压缩为`.zip`文件,然后将`.zip`文件传至手机。
30
- 3. 手机打开[AssistsX](https://www.pgyer.com/SqGaCx8C),点击+号->本地添加->选择传至手机的`zip`压缩包
31
-
32
-
33
- <img src="https://github.com/user-attachments/assets/7dc27910-be61-473b-8900-f09c16ca5f46" width="250">
34
-
35
- ## 局域网加载运行
36
- > 确保手机与电脑处于同一个局域网
37
- ### 1. 安装[AssistsX](https://www.pgyer.com/SqGaCx8C)
38
- 加载运行前请先在手机安装[AssistsX](https://www.pgyer.com/SqGaCx8C)
39
-
40
- ### 2. 启动项目
41
- 下载本示例源码后,终端依次运行命令:`npm install`,`npm run dev`
42
-
43
- ### 3. 加载插件
44
- 手机打开[AssistsX](https://www.pgyer.com/SqGaCx8C),点击+号->扫描局域网->点击扫描到插件+号
45
-
46
- <img src="https://github.com/user-attachments/assets/d0f24763-266e-4e3c-bd64-a63be9e6c68c" width="250"/>
47
-
48
16
  # 快速开始
49
17
  ## 1. 创建项目
50
18
  - 创建`vite`模版项目:`npm create vite@latest assistsx-helloword -- --template vue`
@@ -103,8 +71,13 @@ export default defineConfig({
103
71
  <br/>
104
72
  <br/>
105
73
 
74
+
106
75
  **[API开发文档](https://github.com/ven-coder/assistsx-js/blob/main/README-DEV.md)**
107
76
 
77
+ ## 示例
78
+
79
+ 示例源码及使用教程:[https://github.com/ven-coder/assistsx-js-simple](https://github.com/ven-coder/assistsx-js-simple)
80
+
108
81
  ## 🙋有问题欢迎反馈交流
109
82
 
110
83
  | QQ交流群| 个人微信 |
package/dist/AssistsX.js CHANGED
@@ -269,7 +269,7 @@ export class AssistsX {
269
269
  */
270
270
  static getChildren(node) {
271
271
  const response = this.call(CallMethod.getChildren, { node });
272
- return Node.fromJSONArray(response.getDataOrDefault("[]"));
272
+ return Node.fromJSONArray(response.getDataOrDefault([]));
273
273
  }
274
274
  /**
275
275
  * 查找第一个可点击的父节点
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assistsx-js",
3
- "version": "0.0.133",
3
+ "version": "0.0.1331",
4
4
  "description": "assistsx-js自动化开发SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/AssistsX.ts CHANGED
@@ -316,7 +316,7 @@ export class AssistsX {
316
316
  */
317
317
  public static getChildren(node: Node): Node[] {
318
318
  const response = this.call(CallMethod.getChildren, { node });
319
- return Node.fromJSONArray(response.getDataOrDefault("[]"));
319
+ return Node.fromJSONArray(response.getDataOrDefault([]));
320
320
  }
321
321
 
322
322
  /**