nexusframework 0.3.0-beta.73 → 0.3.0-beta.74

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 (60) hide show
  1. package/LICENSE.md +55 -55
  2. package/README.md +12 -12
  3. package/about/index.json +5 -5
  4. package/about/index.nhp +4 -4
  5. package/icon.png +0 -0
  6. package/index.d.ts +0 -2
  7. package/index.js +0 -0
  8. package/index.js.map +1 -1
  9. package/index.ts +101 -101
  10. package/indexOfSkeleton.nhp +133 -133
  11. package/legacySkeleton.nhp +22 -22
  12. package/loader/overlay.css +1 -1
  13. package/loader/overlay.html +25 -25
  14. package/loader/overlay.scss +152 -152
  15. package/package.json +102 -90
  16. package/scripts/es5/compat.js +100 -100
  17. package/scripts/es5/compat.min.js +1 -1
  18. package/scripts/es5/loader.js +0 -0
  19. package/scripts/es5/loader.js.map +0 -0
  20. package/scripts/es5/loader.min.js +1 -1
  21. package/scripts/es5/loader.min.js.map +0 -0
  22. package/scripts/es5/nexusframeworkclient.js +1224 -1224
  23. package/scripts/es5/nexusframeworkclient.js.map +0 -0
  24. package/scripts/es5/nexusframeworkclient.min.js +1 -1
  25. package/scripts/es5/nexusframeworkclient.min.js.map +0 -0
  26. package/scripts/es6/compat.js +64 -64
  27. package/scripts/es6/compat.min.js +1 -1
  28. package/scripts/es6/loader.js +0 -0
  29. package/scripts/es6/loader.js.map +0 -0
  30. package/scripts/es6/loader.min.js +1 -1
  31. package/scripts/es6/loader.min.js.map +0 -0
  32. package/scripts/es6/nexusframeworkclient.js +1146 -1146
  33. package/scripts/es6/nexusframeworkclient.js.map +0 -0
  34. package/scripts/es6/nexusframeworkclient.min.js +1 -1
  35. package/scripts/es6/nexusframeworkclient.min.js.map +0 -0
  36. package/scripts/index.d.ts +259 -259
  37. package/scripts/src/compat.ts +62 -62
  38. package/scripts/src/loader.ts +385 -385
  39. package/scripts/src/nexusframeworkclient.ts +1163 -1163
  40. package/scripts/tsconfig.json +11 -11
  41. package/src/cli.d.ts +1 -0
  42. package/src/cli.js +102 -102
  43. package/src/cli.js.map +1 -1
  44. package/src/cli.ts +101 -101
  45. package/src/compileScripts.d.ts +0 -0
  46. package/src/compileScripts.js +0 -0
  47. package/src/compileScripts.js.map +1 -1
  48. package/src/compileScripts.ts +153 -153
  49. package/src/nexusframework.d.ts +5 -5
  50. package/src/nexusframework.js +44 -37
  51. package/src/nexusframework.js.map +1 -1
  52. package/src/nexusframework.ts +3631 -3622
  53. package/templates/basic/package.json +3 -3
  54. package/templates/basic/www/skeleton.nhp +1 -1
  55. package/templates/bootstrap/package.json +2 -2
  56. package/templates/bootstrap/www/skeleton.nhp +1 -1
  57. package/templates/bootstrap-material-design/package.json +2 -2
  58. package/templates/bootstrap-material-design/www/skeleton.nhp +1 -1
  59. package/tsconfig.json +25 -22
  60. package/types.d.ts +612 -612
@@ -1,62 +1,62 @@
1
- /// <reference path="../index.d.ts" />
2
- (function(window) {
3
- var Buffer;
4
- const TextDecoder: {new (encoding: string): TextDecoder} = window['TextDecoder'];
5
- const TextEncoder: {new (encoding: string): TextEncoder} = window['TextEncoder'];
6
- class BufferBase extends Uint8Array {
7
- static isBuffer(object: any) {
8
- return object instanceof Buffer;
9
- }
10
- slice(start = 0, end = this.length) {
11
- return new Buffer(this.buffer.slice(start, end));
12
- }
13
- write(index: number, val: number) {
14
- this[index] = val;
15
- }
16
- copy(from: Uint8Array, offset = 0, start = 0, end = from.length) {
17
- const copylen = end - start + offset;
18
- for(var i=offset; i<copylen; i++)
19
- this[offset] = from[start + i];
20
- }
21
- }
22
- if (TextDecoder && TextEncoder) {
23
- class BufferImpl extends BufferBase {
24
- toString(encoding?: string, start = 0, end = this.length) {
25
- const decoder = new TextDecoder(encoding);
26
- if (start > 0 || end < this.length)
27
- return decoder.decode(this.slice(start, end));
28
- return decoder.decode(this);
29
- }
30
- }
31
- ((Buffer = BufferImpl) as any)['from'] = function(data, encoding = "utf8") {
32
- const encoder = new TextEncoder(encoding);
33
- const encoded = encoder.encode(data);
34
- const buffer = new Buffer(encoded.length);
35
- buffer.copy(encoded);
36
- return buffer;
37
- };
38
- } else {
39
- class BufferImpl extends BufferBase {
40
- toString(encoding?: string, start = 0, end = this.length) {
41
- var str = "";
42
- for(var i=start; i<end; i++)
43
- str += String.fromCharCode(this[i]);
44
- return str;
45
- }
46
- }
47
- ((Buffer = BufferImpl) as any)['from'] = function(data, encoding = "utf8") {
48
- if (encoding === "utf8") {
49
- data = "" + data;
50
- const len = data.length;
51
- const buff = new Buffer(len);
52
- for(var i=0; i<len; i++)
53
- buff[i] = data.charCodeAt(i) & 0xFF;
54
- console.log(buff);
55
- return buff;
56
- } else
57
- return new Buffer(data);
58
- };
59
- }
60
- window['Buffer'] = Buffer;
61
- window['global'] = window;
62
- })(window);
1
+ /// <reference path="../index.d.ts" />
2
+ (function(window) {
3
+ var Buffer;
4
+ const TextDecoder: {new (encoding: string): TextDecoder} = window['TextDecoder'];
5
+ const TextEncoder: {new (encoding: string): TextEncoder} = window['TextEncoder'];
6
+ class BufferBase extends Uint8Array {
7
+ static isBuffer(object: any) {
8
+ return object instanceof Buffer;
9
+ }
10
+ slice(start = 0, end = this.length) {
11
+ return new Buffer(this.buffer.slice(start, end));
12
+ }
13
+ write(index: number, val: number) {
14
+ this[index] = val;
15
+ }
16
+ copy(from: Uint8Array, offset = 0, start = 0, end = from.length) {
17
+ const copylen = end - start + offset;
18
+ for(var i=offset; i<copylen; i++)
19
+ this[offset] = from[start + i];
20
+ }
21
+ }
22
+ if (TextDecoder && TextEncoder) {
23
+ class BufferImpl extends BufferBase {
24
+ toString(encoding?: string, start = 0, end = this.length) {
25
+ const decoder = new TextDecoder(encoding);
26
+ if (start > 0 || end < this.length)
27
+ return decoder.decode(this.slice(start, end));
28
+ return decoder.decode(this);
29
+ }
30
+ }
31
+ ((Buffer = BufferImpl) as any)['from'] = function(data, encoding = "utf8") {
32
+ const encoder = new TextEncoder(encoding);
33
+ const encoded = encoder.encode(data);
34
+ const buffer = new Buffer(encoded.length);
35
+ buffer.copy(encoded);
36
+ return buffer;
37
+ };
38
+ } else {
39
+ class BufferImpl extends BufferBase {
40
+ toString(encoding?: string, start = 0, end = this.length) {
41
+ var str = "";
42
+ for(var i=start; i<end; i++)
43
+ str += String.fromCharCode(this[i]);
44
+ return str;
45
+ }
46
+ }
47
+ ((Buffer = BufferImpl) as any)['from'] = function(data, encoding = "utf8") {
48
+ if (encoding === "utf8") {
49
+ data = "" + data;
50
+ const len = data.length;
51
+ const buff = new Buffer(len);
52
+ for(var i=0; i<len; i++)
53
+ buff[i] = data.charCodeAt(i) & 0xFF;
54
+ console.log(buff);
55
+ return buff;
56
+ } else
57
+ return new Buffer(data);
58
+ };
59
+ }
60
+ window['Buffer'] = Buffer;
61
+ window['global'] = window;
62
+ })(window);