deeke-script-app 1.3.3 → 1.3.5

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 (50) 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/System.d.ts +1 -1
  10. package/@deekeScript/@type/interface/WebSocket.d.ts +44 -0
  11. package/README.md +35 -35
  12. package/deekeScript.json +598 -598
  13. package/deekeScriptZipBuild +48 -48
  14. package/gulpfile +17 -17
  15. package/images/test/statistics.png +0 -0
  16. package/init +32 -32
  17. package/jsconfig.json +11 -11
  18. package/package.json +41 -41
  19. package/script/index.js +0 -1
  20. package/script/statistics/statistics.js +120 -120
  21. package/script/task/dy.js +7 -14
  22. package/script/task/dyApp.js +7 -7
  23. package/script/task/dyCity.js +1 -1
  24. package/script/task/tool.js +10 -19
  25. package/script/task.html +4 -4
  26. package/src/statistics/statistics.js +120 -120
  27. package/src/task/dy.js +14 -14
  28. package/src/task/dyApp.js +7 -7
  29. package/src/task/tool.js +19 -19
  30. package/src/task.html +4 -4
  31. package/test/Access.js +10 -0
  32. package/test/console.js +5 -5
  33. package/test/device.js +11 -8
  34. package/test/encrypt.js +3 -3
  35. package/test/engines.js +5 -5
  36. package/test/extension.js +27 -27
  37. package/test/files.js +7 -7
  38. package/test/http.js +4 -4
  39. package/test/images/findColor.js +10 -10
  40. package/test/java.js +6 -6
  41. package/test/log.js +10 -10
  42. package/test/module/module.js +4 -4
  43. package/test/package.js +3 -3
  44. package/test/permise.js +14 -14
  45. package/test/thread.js +11 -11
  46. package/test/timer.close.js +27 -27
  47. package/test/timer.js +25 -25
  48. package/test/timer.stop.js +28 -28
  49. package/test/webSocket.js +21 -0
  50. 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
  }