update doip-sdk
This commit is contained in:
parent
2ab42516f9
commit
376fde8154
@ -1056,9 +1056,9 @@
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"
|
||||
id="inputGroup-sizing-default">PeerID</span>
|
||||
id="inputGroup-sizing-default">节点公钥</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" id="peerIDInput">
|
||||
<input type="text" class="form-control" id="nodePubKeyInput">
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-center">
|
||||
@ -1075,20 +1075,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-center">
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"
|
||||
id="inputGroup-sizing-default">MasterAddr</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" id="masterAddrInput">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-outline-secondary" type="button"
|
||||
onclick="changeMasterAddress()">修改
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-center">
|
||||
<div class='input-group mb-3'>
|
||||
<div class="input-group-prepend">
|
||||
|
@ -2,6 +2,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="Cache-Control" content="no-cache"/>
|
||||
<meta name="sharedArrayBuffer" description="using cross-origin-isolation in the web browser">
|
||||
<title>智能合约在线编辑器</title>
|
||||
<script src="./jqueryui1.12/jquery-2.1.4.js"></script>
|
||||
<link href="./jqueryui1.12/jquery-ui.css" rel="stylesheet">
|
||||
|
@ -39,11 +39,10 @@ function showNodeConfig(data) {
|
||||
$("#nodeNameInput")[0].value = global.config.nodeName;
|
||||
$("#ipPortInput")[0].value = global.config.ipPort;
|
||||
$("#doipConfigInput")[0].value = global.config.doipConfig;
|
||||
$("#masterAddrInput")[0].value = global.config.masterAddress;
|
||||
$("#peerIDInput")[0].value = global.config.peerID;
|
||||
$("#licence")[0].value = global.config.licence
|
||||
$("#expireTime").html(global.config.expireTime);
|
||||
$("#yjsInput")[0].value = global.config.yjsPath;
|
||||
$("#nodePubKeyInput")[0].value = global.config.nodePubKey;
|
||||
nodeCenterInputEl[0].value = global.config.nodeCenter;
|
||||
$("#nodeCenterWSInput")[0].value = global.config.nodeCenterWS;
|
||||
if (global.config.clusterConnected && global.config.clusterConnected === "true") {
|
||||
@ -116,14 +115,6 @@ function changeDOIPConfig(event) {
|
||||
}));
|
||||
}
|
||||
|
||||
function changeMasterAddress(event) {
|
||||
global.wssocket.send(JSON.stringify({
|
||||
action: 'updateConfig',
|
||||
key: 'masterAddress',
|
||||
val: $("#masterAddrInput")[0].value
|
||||
}));
|
||||
}
|
||||
|
||||
function onChangeNodeName(data) {
|
||||
console.log("onChangeNodeName", data);
|
||||
//$("#nodeNameInput")[0].value = data;
|
||||
|
Loading…
Reference in New Issue
Block a user