deeke-script-app 1.3.2 → 1.3.4

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.
Files changed (47) hide show
  1. package/@deekeScript/@type/Class/UiSelector.d.ts +191 -191
  2. package/@deekeScript/@type/interface/Access.d.ts +61 -0
  3. package/@deekeScript/@type/interface/Engines.d.ts +29 -29
  4. package/@deekeScript/@type/interface/Http.d.ts +41 -41
  5. package/@deekeScript/@type/interface/Images.d.ts +35 -35
  6. package/@deekeScript/@type/interface/Java.d.ts +7 -7
  7. package/@deekeScript/@type/interface/Log.d.ts +16 -16
  8. package/@deekeScript/@type/interface/Storage.d.ts +110 -110
  9. package/@deekeScript/@type/interface/WebSocket.d.ts +44 -0
  10. package/README.md +35 -35
  11. package/deekeScript.json +598 -598
  12. package/deekeScriptZipBuild +48 -48
  13. package/gulpfile +17 -17
  14. package/images/test/statistics.png +0 -0
  15. package/init +32 -32
  16. package/jsconfig.json +11 -11
  17. package/package.json +41 -41
  18. package/script/statistics/statistics.js +120 -120
  19. package/script/task/dy.js +6 -6
  20. package/script/task/dyApp.js +6 -6
  21. package/script/task/tool.js +9 -9
  22. package/script/task.html +4 -4
  23. package/src/statistics/statistics.js +120 -120
  24. package/src/task/dy.js +14 -14
  25. package/src/task/dyApp.js +7 -7
  26. package/src/task/tool.js +19 -19
  27. package/src/task.html +4 -4
  28. package/test/Access.js +10 -0
  29. package/test/console.js +5 -5
  30. package/test/device.js +11 -8
  31. package/test/encrypt.js +3 -3
  32. package/test/engines.js +5 -5
  33. package/test/extension.js +27 -27
  34. package/test/files.js +7 -7
  35. package/test/http.js +4 -4
  36. package/test/images/findColor.js +10 -10
  37. package/test/java.js +6 -6
  38. package/test/log.js +10 -10
  39. package/test/module/module.js +4 -4
  40. package/test/package.js +3 -3
  41. package/test/permise.js +14 -14
  42. package/test/thread.js +11 -11
  43. package/test/timer.close.js +27 -27
  44. package/test/timer.js +25 -25
  45. package/test/timer.stop.js +28 -28
  46. package/test/webSocket.js +21 -0
  47. package/uglify-config.json +15 -15
@@ -1,27 +1,27 @@
1
-
2
-
3
-
4
- function timers() {
5
- let i = 0;
6
- let timer = setInterval(() => {
7
- console.log(i++);
8
- }, 3000);
9
- }
10
-
11
- timers();
12
-
13
- function task() {
14
- let i = 10;
15
- let tasks = setTimeout(() => {
16
- console.log(i++);
17
- }, 3000);
18
- }
19
-
20
- task();
21
-
22
- function b() {
23
- Engines.closeAll();
24
- }
25
-
26
- System.sleep(7000);
27
- b();
1
+
2
+
3
+
4
+ function timers() {
5
+ let i = 0;
6
+ let timer = setInterval(() => {
7
+ console.log(i++);
8
+ }, 3000);
9
+ }
10
+
11
+ timers();
12
+
13
+ function task() {
14
+ let i = 10;
15
+ let tasks = setTimeout(() => {
16
+ console.log(i++);
17
+ }, 3000);
18
+ }
19
+
20
+ task();
21
+
22
+ function b() {
23
+ Engines.closeAll();
24
+ }
25
+
26
+ System.sleep(7000);
27
+ b();
package/test/timer.js CHANGED
@@ -1,25 +1,25 @@
1
-
2
-
3
- function test_timeout() {
4
- console.log(333);
5
- setTimeout(() => {
6
- console.log(a, UiSelector());
7
- }, 2000);
8
- }
9
-
10
- function test_setInterval() {
11
- console.log(a);
12
- let i = 3;
13
- let t = setInterval(() => {
14
- console.log(a);
15
- if (i-- < 0) {
16
- clearInterval(t);
17
- }
18
- }, 2000);
19
- }
20
-
21
- let a = 123;
22
- // test_timeout();
23
- test_setInterval();
24
- // console.log(clearInterval);
25
-
1
+
2
+
3
+ function test_timeout() {
4
+ console.log(333);
5
+ setTimeout(() => {
6
+ console.log(a, UiSelector());
7
+ }, 2000);
8
+ }
9
+
10
+ function test_setInterval() {
11
+ console.log(a);
12
+ let i = 3;
13
+ let t = setInterval(() => {
14
+ console.log(a);
15
+ if (i-- < 0) {
16
+ clearInterval(t);
17
+ }
18
+ }, 2000);
19
+ }
20
+
21
+ let a = 123;
22
+ // test_timeout();
23
+ test_setInterval();
24
+ // console.log(clearInterval);
25
+
@@ -1,28 +1,28 @@
1
- let i = 0;
2
- let timer = setInterval(() => {
3
- console.log(i++);
4
- }, 3000);
5
-
6
- let b = {
7
- run: function () {
8
- let i = 0;
9
- let timer = setInterval(() => {
10
- console.log("线程:" + i++);
11
- }, 3000);
12
- }
13
- }
14
-
15
- new java.lang.Thread(new java.lang.Runnable(b)).start();
16
-
17
-
18
- // setTimeout(() => {
19
- // console.log('停止');
20
- // }, 3000);
21
- console.log("timer", timer);
22
- System.sleep(7000);
23
-
24
-
25
- Engines.closeOther();
26
-
27
-
28
-
1
+ let i = 0;
2
+ let timer = setInterval(() => {
3
+ console.log(i++);
4
+ }, 3000);
5
+
6
+ let b = {
7
+ run: function () {
8
+ let i = 0;
9
+ let timer = setInterval(() => {
10
+ console.log("线程:" + i++);
11
+ }, 3000);
12
+ }
13
+ }
14
+
15
+ new java.lang.Thread(new java.lang.Runnable(b)).start();
16
+
17
+
18
+ // setTimeout(() => {
19
+ // console.log('停止');
20
+ // }, 3000);
21
+ console.log("timer", timer);
22
+ System.sleep(7000);
23
+
24
+
25
+ Engines.closeOther();
26
+
27
+
28
+
@@ -0,0 +1,21 @@
1
+
2
+ WebSocket.closeAll();
3
+ let client = new WebSocket('ws://127.0.0.1:8000');
4
+ client.onClose = function(){
5
+
6
+ }
7
+
8
+ client.onMessage = function(msg){
9
+
10
+ }
11
+
12
+ client.onOpen = function(){
13
+
14
+ }
15
+
16
+ client.onError = function(code, msg){
17
+
18
+ }
19
+
20
+ client.send('消息');
21
+ client.close();
@@ -1,16 +1,16 @@
1
- {
2
- "compress": {
3
- "drop_console": false,
4
- "unused": true,
5
- "sequences": true,
6
- "dead_code": true,
7
- "unsafe_math": true
8
- },
9
- "mangle": {
10
- "toplevel": true
11
- },
12
- "output": {
13
- "beautify": true,
14
- "comments": "/^!|@license/i"
15
- }
1
+ {
2
+ "compress": {
3
+ "drop_console": false,
4
+ "unused": true,
5
+ "sequences": true,
6
+ "dead_code": true,
7
+ "unsafe_math": true
8
+ },
9
+ "mangle": {
10
+ "toplevel": true
11
+ },
12
+ "output": {
13
+ "beautify": true,
14
+ "comments": "/^!|@license/i"
15
+ }
16
16
  }