feat: 后端全量更新 - 含所有本次需求
- Contract.php: 返回合约账户余额(balance_contract) - My.php: 地址管理增加BTC/ETH - AppContract.php: 一键平仓(closeall) - AppProxy.php: 代理专属注册链接 + 分级权限(L1/L2) - site.php: 手续费减半(0.018→0.009) - agent_permission_setup.sql: 代理权限SQL - crypto_news_crawler.py: 新闻自动采集脚本
This commit is contained in:
Executable
+55
@@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Simulating Input Events</title>
|
||||
<!-- Copyright 1998-2020 by Northwoods Software Corporation. -->
|
||||
<meta name="description" content="TypeScript: Test a diagram by simulating abstract input events." />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<script src="../samples/assets/require.js"></script>
|
||||
<script src="../assets/js/goSamples.js"></script> <!-- this is only for the GoJS Samples framework -->
|
||||
<script id="code">
|
||||
function init() {
|
||||
require(["RobotScript"], function(app) {
|
||||
app.init();
|
||||
document.getElementById("dragFromPalette").onclick = app.dragFromPalette;
|
||||
document.getElementById("copyNode").onclick = app.copyNode;
|
||||
document.getElementById("dragSelectNodes").onclick = app.dragSelectNodes;
|
||||
document.getElementById("clickContextMenu").onclick = app.clickContextMenu;
|
||||
document.getElementById("deleteSelection").onclick = app.deleteSelection;
|
||||
document.getElementById("clickLambda").onclick = app.clickLambda;
|
||||
document.getElementById("doubleClickLambda").onclick = app.doubleClickLambda;
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="init()">
|
||||
<div id="sample">
|
||||
<div style="width: 100%; display: flex; justify-content: space-between">
|
||||
<div id="myPaletteDiv" style="width: 80px; height: 400px; margin-right: 2px; border: solid 1px black"></div>
|
||||
<div id="myDiagramDiv" style="flex-grow: 1; height: 400px; border: solid 1px black"></div>
|
||||
</div>
|
||||
<p>
|
||||
To simulate mouse events the buttons below use the <b>Robot</b> class that is defined in <a href="Robot.ts">Robot.ts</a>.
|
||||
</p>
|
||||
<p>
|
||||
Click these buttons in order from top to bottom:<br />
|
||||
<button id="dragFromPalette">Drag From Palette</button><br />
|
||||
<button id="copyNode">Copy Node</button><br />
|
||||
<button id="dragSelectNodes">Drag Select Nodes</button><br />
|
||||
<button id="clickContextMenu">Context Menu Click Alpha</button><br />
|
||||
<button id="deleteSelection">Delete</button><br />
|
||||
</p>
|
||||
<p>
|
||||
Clicking operations:<br />
|
||||
<button id="clickLambda">Click Lambda</button><br />
|
||||
<button id="doubleClickLambda">Double Click Lambda</button><br />
|
||||
</p>
|
||||
<p>
|
||||
The <a>UndoManager</a> has been enabled in the main Diagram.
|
||||
Give focus to the Diagram and you can undo everything and then redo everything to confirm what was executed by the Robot.
|
||||
</p>
|
||||
<div id="myStatus" style="color:green"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user