@ -0,0 +1,124 @@ |
|||||||
|
{ |
||||||
|
"name": "ng-app-node", |
||||||
|
"version": "0.1.0", |
||||||
|
"lockfileVersion": 2, |
||||||
|
"requires": true, |
||||||
|
"packages": { |
||||||
|
"": { |
||||||
|
"name": "ng-app-node", |
||||||
|
"version": "0.1.0", |
||||||
|
"license": "(MIT OR Apache-2.0)", |
||||||
|
"dependencies": { |
||||||
|
"ng-app-node-sdk": "^0.1.0", |
||||||
|
"ws": "^8.13.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"../pkg-node": { |
||||||
|
"name": "ng-app-js-sdk", |
||||||
|
"version": "0.1.0", |
||||||
|
"license": "MIT/Apache-2.0" |
||||||
|
}, |
||||||
|
"node_modules/bufferutil": { |
||||||
|
"version": "4.0.7", |
||||||
|
"resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.7.tgz", |
||||||
|
"integrity": "sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw==", |
||||||
|
"hasInstallScript": true, |
||||||
|
"optional": true, |
||||||
|
"peer": true, |
||||||
|
"dependencies": { |
||||||
|
"node-gyp-build": "^4.3.0" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": ">=6.14.2" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/ng-app-node-sdk": { |
||||||
|
"resolved": "../pkg-node", |
||||||
|
"link": true |
||||||
|
}, |
||||||
|
"node_modules/node-gyp-build": { |
||||||
|
"version": "4.6.0", |
||||||
|
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", |
||||||
|
"integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", |
||||||
|
"optional": true, |
||||||
|
"peer": true, |
||||||
|
"bin": { |
||||||
|
"node-gyp-build": "bin.js", |
||||||
|
"node-gyp-build-optional": "optional.js", |
||||||
|
"node-gyp-build-test": "build-test.js" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/utf-8-validate": { |
||||||
|
"version": "5.0.10", |
||||||
|
"resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", |
||||||
|
"integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", |
||||||
|
"hasInstallScript": true, |
||||||
|
"optional": true, |
||||||
|
"peer": true, |
||||||
|
"dependencies": { |
||||||
|
"node-gyp-build": "^4.3.0" |
||||||
|
}, |
||||||
|
"engines": { |
||||||
|
"node": ">=6.14.2" |
||||||
|
} |
||||||
|
}, |
||||||
|
"node_modules/ws": { |
||||||
|
"version": "8.13.0", |
||||||
|
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", |
||||||
|
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", |
||||||
|
"engines": { |
||||||
|
"node": ">=10.0.0" |
||||||
|
}, |
||||||
|
"peerDependencies": { |
||||||
|
"bufferutil": "^4.0.1", |
||||||
|
"utf-8-validate": ">=5.0.2" |
||||||
|
}, |
||||||
|
"peerDependenciesMeta": { |
||||||
|
"bufferutil": { |
||||||
|
"optional": true |
||||||
|
}, |
||||||
|
"utf-8-validate": { |
||||||
|
"optional": true |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
}, |
||||||
|
"dependencies": { |
||||||
|
"bufferutil": { |
||||||
|
"version": "4.0.7", |
||||||
|
"resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.7.tgz", |
||||||
|
"integrity": "sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw==", |
||||||
|
"optional": true, |
||||||
|
"peer": true, |
||||||
|
"requires": { |
||||||
|
"node-gyp-build": "^4.3.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"ng-app-node-sdk": { |
||||||
|
"version": "file:../pkg-node" |
||||||
|
}, |
||||||
|
"node-gyp-build": { |
||||||
|
"version": "4.6.0", |
||||||
|
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", |
||||||
|
"integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", |
||||||
|
"optional": true, |
||||||
|
"peer": true |
||||||
|
}, |
||||||
|
"utf-8-validate": { |
||||||
|
"version": "5.0.10", |
||||||
|
"resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", |
||||||
|
"integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", |
||||||
|
"optional": true, |
||||||
|
"peer": true, |
||||||
|
"requires": { |
||||||
|
"node-gyp-build": "^4.3.0" |
||||||
|
} |
||||||
|
}, |
||||||
|
"ws": { |
||||||
|
"version": "8.13.0", |
||||||
|
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", |
||||||
|
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", |
||||||
|
"requires": {} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,6 @@ |
|||||||
|
const ng = require("ng-app-node-sdk"); |
||||||
|
|
||||||
|
module.exports.random = function () { |
||||||
|
console.log("FROM TEST"); |
||||||
|
ng.test() |
||||||
|
}; |
@ -0,0 +1,23 @@ |
|||||||
|
import React, { useState, useEffect } from "react"; |
||||||
|
|
||||||
|
|
||||||
|
function Test() { |
||||||
|
useEffect(() => { |
||||||
|
;(async () => { |
||||||
|
try { |
||||||
|
const ng = await import('ng-app-js-sdk'); |
||||||
|
ng.test(); |
||||||
|
} catch (e) { |
||||||
|
console.error(e) |
||||||
|
} |
||||||
|
})() |
||||||
|
}, []) |
||||||
|
return ( |
||||||
|
<> |
||||||
|
|
||||||
|
</> |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
export default Test; |
@ -0,0 +1,8 @@ |
|||||||
|
|
||||||
|
import * as ng from "ng-app-js-sdk"; |
||||||
|
|
||||||
|
function test() { |
||||||
|
ng.test() |
||||||
|
} |
||||||
|
|
||||||
|
export default test; |
@ -0,0 +1,3 @@ |
|||||||
|
export function random(max) { |
||||||
|
return Math.round(Math.random() * max) |
||||||
|
} |
@ -0,0 +1,4 @@ |
|||||||
|
|
||||||
|
module.exports.random = function (max) { |
||||||
|
return 0 |
||||||
|
}; |
@ -1,5 +1,5 @@ |
|||||||
[package] |
[package] |
||||||
name = "ng-app-native" |
name = "ng-app" |
||||||
version = "0.1.0" |
version = "0.1.0" |
||||||
description = "NextGraph App" |
description = "NextGraph App" |
||||||
authors = ["Niko PLP <niko@nextgraph.org>"] |
authors = ["Niko PLP <niko@nextgraph.org>"] |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 818 B After Width: | Height: | Size: 818 B |