deeke-script-app 1.2.8 → 1.3.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/@deekeScript/@type/interface/Engines.d.ts +6 -1
- package/@deekeScript/@type/interface/Log.d.ts +16 -0
- package/deekeScript.json +2 -1
- package/jsconfig.json +1 -0
- package/package.json +1 -1
- package/script/index.js +0 -1
- package/script/task/dy.js +6 -13
- package/script/task/dyApp.js +4 -4
- package/script/task/dyCity.js +1 -1
- package/script/task/tool.js +7 -16
- package/script/test/test-one/one.js +6 -0
- package/script/test/test-two/three/three.js +8 -0
- package/script/test/test-two/two.js +6 -0
- package/script/test/test.js +9 -0
- package/test/engines.js +1 -1
- package/test/module/module.js +5 -0
|
@@ -7,7 +7,7 @@ interface Engines {
|
|
|
7
7
|
* 执行脚本
|
|
8
8
|
* @param file 文件路径,相对根目录的路径
|
|
9
9
|
*/
|
|
10
|
-
public
|
|
10
|
+
public executeScript(file: string): void;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* 执行脚本
|
|
@@ -19,6 +19,11 @@ interface Engines {
|
|
|
19
19
|
* 关闭所有脚本
|
|
20
20
|
*/
|
|
21
21
|
public closeAll(): void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 关闭当前脚本之外的其他脚本
|
|
25
|
+
*/
|
|
26
|
+
public closeOther(): void
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
export { };
|
package/deekeScript.json
CHANGED
package/jsconfig.json
CHANGED
package/package.json
CHANGED
package/script/index.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//这个文件不用编写代码
|
package/script/task/dy.js
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
let
|
|
1
|
+
let e = require("./dyApp"), o = UiSelector().id("name").findOne(), r = {
|
|
2
|
+
toker_view_video_keywords: Storage.get("toker_view_video_keywords"),
|
|
3
|
+
toker_view_video_second: Storage.getInteger("toker_view_video_second"),
|
|
4
|
+
toker_run_sex: Storage.getArray("toker_run_sex")
|
|
5
|
+
};
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// console.log(tag.click());
|
|
6
|
-
let config = {
|
|
7
|
-
toker_view_video_keywords: Storage.get('toker_view_video_keywords'),
|
|
8
|
-
toker_view_video_second: Storage.getInteger('toker_view_video_second'),
|
|
9
|
-
toker_run_sex: Storage.getArray('toker_run_sex'),
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
console.log(config, dyApp.getName());//获取json文件中的配置参数
|
|
13
|
-
|
|
14
|
-
FloatDialogs.show('提示', '请编写业务代码');
|
|
7
|
+
console.log(r, e.getName()), FloatDialogs.show("提示", "请编写业务代码");
|
package/script/task/dyApp.js
CHANGED
package/script/task/dyCity.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
FloatDialogs.show(
|
|
1
|
+
FloatDialogs.show("提示", "请编写业务代码");
|
package/script/task/tool.js
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
let
|
|
2
|
-
intoApp() {
|
|
3
|
-
|
|
4
|
-
},
|
|
5
|
-
|
|
6
|
-
backApp() {
|
|
7
|
-
//退出当前App
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
task(){
|
|
11
|
-
//任务代码
|
|
12
|
-
},
|
|
13
|
-
|
|
1
|
+
let a = {
|
|
2
|
+
intoApp() {},
|
|
3
|
+
backApp() {},
|
|
4
|
+
task() {},
|
|
14
5
|
run() {
|
|
15
|
-
FloatDialogs.show(
|
|
6
|
+
FloatDialogs.show("提示", "请编写业务代码");
|
|
16
7
|
}
|
|
17
|
-
}
|
|
8
|
+
};
|
|
18
9
|
|
|
19
|
-
|
|
10
|
+
a.run();
|
package/test/engines.js
CHANGED