ProtoTools/index.html

70 lines
2.8 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="dist/Extend.js"></script>
<script type="text/javascript" src="dist/FsExtra.js"></script>
<script>
// 先让node加载punycode否则url调用punycode时已经被requirejs加载了punycode
require("punycode");
if (typeof window.require === "function") {
// 重命名 Electron 提供的 require
window.nodeRequire = window.require;
delete window.require;
delete window.exports;
delete window.module;
}
function ready(fn) {
if (document.readyState != 'loading') {
fn();
} else {
document.addEventListener('DOMContentLoaded', fn);
}
}
</script>
<style>
html,
body {
padding: 0;
border: 0;
margin: 0;
height: 100%;
font: 14px "Microsoft YaHei";
}
</style>
<script data-main="dist/app2" type="text/javascript" src="libs/require.js"></script>
<script type="text/javascript" src="libs/cookie.js"></script>
</head>
<body>
<div style="background:#fee; padding-left:10px;padding-right:10px;">
客户端项目根目录(src)
<input id="txtClientPath" style="width:612px;" type="input" value="/Users/zhl/Desktop/tmp/code_tmp" /><br/>
常量ServiceName相对路径
<input id="txtServerServiceNamePath" style="width:612px;" type="input" value="chuanqi/ServiceName.ts" /><br/>
PB消息字典的文件相对路径
<input id="txtPBMsgDictName" style="width:612px;" type="input" value="chuanqi/PBMsgDict.ts" />
</div>
<div style="border-top:solid 1px #ccc;padding-top:5px;padding-left:10px;padding-right:10px;background:rgb(235, 208, 226)">
Code码WIKI上地址
<input id="txtWikiCodePath" style="width:612px;" type="input" value="http://t.zhl.com/game/MsgConst.ts" /><br/>
Code码保存地址地址
<input id="txtLocalCodePath" style="width:612px;" type="input" value="/Users/zhl/Desktop/tmp/code_tmp" />
<input id="btnCode" type="button" value="生成Code码" />
</div>
<div style="border-top:solid 1px #ccc;padding-left:10px;padding-right:10px;padding-top:5px;background:#eef">
wiki上proto的地址
<input id="txtUrl" style="width:612px;" type="input" value="http://t.zhl.com/proto/AOIMsg.proto" />
<input id="btnGen" type="button" value="生成" />
</div>
<textarea id="txtProto" style="width:49%;height:590px;margin-top:5px;border:#ccc solid 1px;overflow-y:auto;float:left;">
</textarea>
<div id="txtLog" style="width:49%;height:594px;margin-top:5px;border:#ccc solid 1px;overflow-y:auto;float:left;">
</div>
</body>
</html>