This commit is contained in:
progr76@gmail.com
2019-02-21 17:31:48 +03:00
parent 501ea7c584
commit 572a61a6a6
35 changed files with 4230 additions and 95 deletions

View File

@@ -265,6 +265,8 @@ function RunListenServer()
bWasRun = 1;
});
};
var LangPathMap = {};
LangPathMap["ru"] = 1;
var WalletFileMap = {};
WalletFileMap["coinlib.js"] = 1;
WalletFileMap["client.js"] = 1;
@@ -284,6 +286,7 @@ WalletFileMap["sign-lib-min.js"] = 1;
WalletFileMap["buttons.css"] = 1;
WalletFileMap["style.css"] = 1;
WalletFileMap["wallet.css"] = 1;
WalletFileMap["history.html"] = 1;
WalletFileMap["blockviewer.html"] = 1;
WalletFileMap["web-wallet.html"] = 1;
global.WebApi2 = {};
@@ -378,10 +381,15 @@ function DoCommandNew(response,Type,Path,Params)
return ;
}
else
if(WalletFileMap[Name])
PrefixPath = "./HTML";
if(LangPathMap[Method])
{
PrefixPath = "./SITE/" + Method;
}
else
PrefixPath = "./SITE";
if(WalletFileMap[Name])
PrefixPath = "./HTML";
else
PrefixPath = "./SITE";
var type = Path.substr(Path.length - 3, 3);
switch(type)
{
@@ -729,6 +737,12 @@ HostingCaller.DappStaticCall = function (Params)
return {result:0};
return HTTPCaller.DappStaticCall(Params);
};
HostingCaller.GetHistoryTransactions = function (Params)
{
if(typeof Params !== "object")
return {result:0};
return HTTPCaller.GetHistoryTransactions(Params);
};
global.GlobalRunID = 0;
global.GlobalRunMap = {};
process.RunRPC = function (Name,Params,F)
@@ -784,3 +798,10 @@ setInterval(function ()
}
}, 1000);
require("./api-exchange.js");
try
{
require("../SITE/JS/web-addon.js");
}
catch(e)
{
}