2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-06-27 15:23:11 +00:00
This commit is contained in:
2017-09-18 03:09:06 +03:00
parent e6a9487797
commit d92ce489e3
40 changed files with 10217 additions and 0 deletions

37
examples/test-debug.html Normal file
View File

@ -0,0 +1,37 @@
<html>
<head>
<script src="../build/esiur-debug.js"></script>
<script>
var demo;
class MyStore extends IStore
{
}
function init() {
var con = new DistributedConnection("ws://localhost:5001/iip/system/iip", "localhost", "ahmed", "password");
Warehouse.put(con, "remote");
con.on("ready", function (d) {
con.get("db/my").then(function(rt){
console.log("Object received.");
demo = rt;
rt.on("LevelUp", function(v){
console.log("LevelUp", v);
});
rt.Add(3);
});
}).on("error", function(sender, code, msg){
console.log(sender, code, msg);
});
}
</script>
</head>
<body onload="init()">
</body>
</html>

73
examples/test-plain.html Normal file
View File

@ -0,0 +1,73 @@
<html>
<head>
<script src="../external/sha256.min.js"></script>
<script src="../src/IEventHandler.js"></script>
<script src="../src/IDestructible.js"></script>
<script src="../src/AutoList.js"></script>
<script src="../src/IResource.js"></script>
<script src="../src/IStore.js"></script>
<script src="../src/Structure.js"></script>
<script src="../src/StructureArray.js"></script>
<script src="../src/ResourceArray.js"></script>
<script src="../src/MemberTemplate.js"></script>
<script src="../src/AsyncReply.js"></script>
<script src="../src/AsyncBag.js"></script>
<script src="../src/AsyncQueue.js"></script>
<script src="../src/BinaryList.js"></script>
<script src="../src/Codec.js"></script>
<script src="../src/DataConverter.js"></script>
<script src="../src/DataType.js"></script>
<script src="../src/DistributedConnection.js"></script>
<script src="../src/DistributedResource.js"></script>
<script src="../src/DistributedResourceQueueItem.js"></script>
<script src="../src/EventTemplate.js"></script>
<script src="../src/FunctionTemplate.js"></script>
<script src="../src/Guid.js"></script>
<script src="../src/IIPAuthPacket.js"></script>
<script src="../src/IIPPacket.js"></script>
<script src="../src/Instance.js"></script>
<script src="../src/NetworkBuffer.js"></script>
<script src="../src/NotModified.js"></script>
<script src="../src/PropertyTemplate.js"></script>
<script src="../src/ResourceTemplate.js"></script>
<script src="../src/SendList.js"></script>
<script src="../src/Warehouse.js"></script>
<script>
var demo;
class MyStore extends IStore
{
}
function init() {
var con = new DistributedConnection("ws://localhost:5001/iip/system/iip", "localhost", "ahmed", "password");
Warehouse.put(con, "remote");
con.on("ready", function (d) {
con.get("db/my").then(function(rt){
console.log("Object received.");
demo = rt;
rt.on("LevelUp", function(v){
console.log("LevelUp", v);
});
rt.Add(3);
});
}).on("error", function(sender, code, msg){
console.log(sender, code, msg);
});
}
</script>
</head>
<body onload="init()">
</body>
</html>

37
examples/test.html Normal file
View File

@ -0,0 +1,37 @@
<html>
<head>
<script src="../build/esiur.js"></script>
<script>
var demo;
class MyStore extends IStore
{
}
function init() {
var con = new DistributedConnection("ws://localhost:5001/iip/system/iip", "localhost", "ahmed", "password");
Warehouse.put(con, "remote");
con.on("ready", function (d) {
con.get("db/my").then(function(rt){
console.log("Object received.");
demo = rt;
rt.on("LevelUp", function(v){
console.log("LevelUp", v);
});
rt.Add(3);
});
}).on("error", function(sender, code, msg){
console.log(sender, code, msg);
});
}
</script>
</head>
<body onload="init()">
</body>
</html>