2014-08-18 17:45:43 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2014-08-25 18:17:02 +04:00
|
|
|
<title>{{.i18n.wide}}</title>
|
2014-08-30 08:54:46 +04:00
|
|
|
<link rel="stylesheet" href="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/codemirror.css">
|
|
|
|
<link rel="stylesheet" href="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/hint/show-hint.css">
|
2014-09-06 18:18:53 +04:00
|
|
|
<link rel="stylesheet" href="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/lint/lint.css">
|
2014-08-30 08:54:46 +04:00
|
|
|
<link rel="stylesheet" href="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/display/fullscreen.css">
|
2014-09-06 19:42:29 +04:00
|
|
|
<link rel="stylesheet" href="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/foldgutter.css">
|
2014-08-30 08:54:46 +04:00
|
|
|
<link rel="stylesheet" href="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/theme/lesser-dark.css">
|
2014-08-18 17:45:43 +04:00
|
|
|
|
|
|
|
<link rel="stylesheet" href="{{.Wide.StaticServer}}/static/js/lib/ztree/zTreeStyle.css">
|
|
|
|
|
2014-09-03 16:48:53 +04:00
|
|
|
<link rel="stylesheet" href="{{.Wide.StaticServer}}/static/css/base.css?{{.Wide.StaticResourceVersion}}">
|
2014-09-05 13:39:21 +04:00
|
|
|
<link rel="stylesheet" href="{{.Wide.StaticServer}}/static/css/side.css?{{.Wide.StaticResourceVersion}}">
|
2014-08-18 17:45:43 +04:00
|
|
|
</head>
|
|
|
|
<body>
|
2014-09-10 18:43:34 +04:00
|
|
|
<!-- 主菜单 -->
|
2014-09-02 18:57:30 +04:00
|
|
|
<div class="menu fn-clear">
|
2014-09-10 14:08:35 +04:00
|
|
|
<ul class="fn-cleaer">
|
|
|
|
<li>
|
|
|
|
<span>{{.i18n.file}}</span>
|
|
|
|
<div class="frame">
|
|
|
|
<ul>
|
2014-09-11 16:09:14 +04:00
|
|
|
<li onclick="wide.saveFile()">
|
|
|
|
<span>{{.i18n.save}}</span>
|
2014-09-11 15:33:07 +04:00
|
|
|
</li>
|
2014-09-11 16:09:14 +04:00
|
|
|
<li onclick="wide.saveAllFiles()">
|
|
|
|
<span>{{.i18n.save_all_files}}</span>
|
2014-09-10 14:08:35 +04:00
|
|
|
</li>
|
2014-09-11 15:33:07 +04:00
|
|
|
<li class="hr"></li>
|
2014-09-11 16:09:14 +04:00
|
|
|
<li onclick="wide.closeFile()">
|
|
|
|
<span>{{.i18n.close_file}}</span>
|
2014-09-10 18:43:34 +04:00
|
|
|
</li>
|
2014-09-11 16:09:14 +04:00
|
|
|
<li onclick="wide.closeAllFiles()">
|
|
|
|
<span>{{.i18n.close_all_files}}</span>
|
2014-09-10 18:43:34 +04:00
|
|
|
</li>
|
2014-09-11 15:33:07 +04:00
|
|
|
<li class="hr"></li>
|
2014-09-11 16:09:14 +04:00
|
|
|
<li onclick="wide.exit()">
|
|
|
|
<span>{{.i18n.exit}}</span>
|
2014-09-10 14:08:35 +04:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span>{{.i18n.run}}</span>
|
|
|
|
<div class="frame">
|
|
|
|
<ul>
|
2014-09-11 16:09:14 +04:00
|
|
|
<li onclick="wide.run()">
|
|
|
|
<span>{{.i18n.build_n_run}}</span>
|
2014-09-10 14:08:35 +04:00
|
|
|
</li>
|
2014-09-11 15:33:07 +04:00
|
|
|
<li class="hr"></li>
|
2014-09-11 16:09:14 +04:00
|
|
|
<li onclick="wide.goget()">
|
|
|
|
<span>{{.i18n.goget}}</span>
|
2014-09-10 14:08:35 +04:00
|
|
|
</li>
|
2014-09-11 16:09:14 +04:00
|
|
|
<li onclick="wide.goinstall()">
|
|
|
|
<span>{{.i18n.goinstall}}</span>
|
2014-09-10 18:43:34 +04:00
|
|
|
</li>
|
2014-09-10 14:08:35 +04:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span>{{.i18n.debug}}</span>
|
|
|
|
<div class="frame">
|
|
|
|
<ul>
|
|
|
|
<li>
|
2014-09-10 18:43:34 +04:00
|
|
|
<span>{{.i18n.debug}}</span>
|
2014-09-10 14:08:35 +04:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
2014-09-10 18:43:34 +04:00
|
|
|
<span>{{.i18n.help}}</span>
|
|
|
|
<div class="frame">
|
|
|
|
<ul>
|
2014-09-11 16:09:14 +04:00
|
|
|
<li onclick="window.open('/doc/{{.locale}}/index.html')">
|
|
|
|
<span>{{.i18n.wide_doc}}</span>
|
2014-09-11 15:33:07 +04:00
|
|
|
</li>
|
2014-09-12 09:42:43 +04:00
|
|
|
<li onclick="window.open('https://github.com/b3log/wide/issues/new')">
|
|
|
|
{{.i18n.report_issues}}
|
2014-09-10 18:43:34 +04:00
|
|
|
</li>
|
2014-09-11 15:33:07 +04:00
|
|
|
<li class="hr"></li>
|
2014-09-11 16:09:14 +04:00
|
|
|
<li onclick="window.open('/doc/{{.locale}}/index.html')">
|
|
|
|
<span>{{.i18n.start_page}}</span>
|
2014-09-11 15:33:07 +04:00
|
|
|
</li>
|
2014-09-11 16:09:14 +04:00
|
|
|
<li onclick="window.open('/doc/{{.locale}}/index.html')">
|
|
|
|
<span>{{.i18n.about}}</span>
|
2014-09-10 18:43:34 +04:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-09-10 14:08:35 +04:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2014-09-02 18:57:30 +04:00
|
|
|
<div class="toolbars fn-right">
|
2014-09-12 08:01:45 +04:00
|
|
|
<span onclick="wide.run()" class="font-ico icon-buildrun" title="{{.i18n.build_n_run}}"></span>
|
|
|
|
<span onclick="wide.save()" title="{{.i18n.save}}" class="font-ico ico-save"></span>
|
|
|
|
<span onclick="wide.fmt()" class="ico-format font-ico" title="{{.i18n.format}}"></span>
|
|
|
|
<span class="fn-none font-ico ico-fullscreen" onclick="editors.fullscreen()" title="{{.i18n.full_screen}}"></span>
|
2014-09-02 18:57:30 +04:00
|
|
|
</div>
|
2014-09-02 14:09:01 +04:00
|
|
|
</div>
|
|
|
|
|
2014-08-18 17:45:43 +04:00
|
|
|
<div class="content">
|
2014-08-29 13:24:08 +04:00
|
|
|
<div class="side">
|
2014-09-02 14:09:01 +04:00
|
|
|
<div class="side-1">
|
|
|
|
<ul id="files" class="ztree"></ul>
|
2014-08-18 17:45:43 +04:00
|
|
|
|
2014-09-02 14:09:01 +04:00
|
|
|
<!-- 目录右键菜单 -->
|
2014-09-10 14:08:35 +04:00
|
|
|
<div id="dirRMenu" class="frame">
|
2014-09-02 14:09:01 +04:00
|
|
|
<ul>
|
2014-09-02 18:57:30 +04:00
|
|
|
<li onclick="tree.newFile();">{{.i18n.create_file}}</li>
|
2014-09-05 12:34:34 +04:00
|
|
|
<li onclick="tree.newDir();">{{.i18n.create_dir}}</li>
|
2014-09-02 18:57:30 +04:00
|
|
|
<li onclick="tree.removeIt();">{{.i18n.delete}}</li>
|
2014-09-02 14:09:01 +04:00
|
|
|
</ul>
|
|
|
|
</div>
|
2014-08-18 17:45:43 +04:00
|
|
|
|
2014-09-02 14:09:01 +04:00
|
|
|
<!-- 文件右键菜单 -->
|
2014-09-10 14:08:35 +04:00
|
|
|
<div id="fileRMenu" class="frame">
|
2014-09-02 14:09:01 +04:00
|
|
|
<ul>
|
2014-09-02 18:57:30 +04:00
|
|
|
<li onclick="tree.removeIt();">{{.i18n.delete}}</li>
|
2014-09-02 14:09:01 +04:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="side-2">
|
2014-08-29 13:24:08 +04:00
|
|
|
</div>
|
2014-08-18 17:45:43 +04:00
|
|
|
</div>
|
|
|
|
|
2014-09-02 14:09:01 +04:00
|
|
|
<div class="main">
|
|
|
|
<div class="edit-panel">
|
|
|
|
<div class="edit-header fn-clear">
|
|
|
|
<div class="tabs fn-left"></div>
|
|
|
|
</div>
|
|
|
|
<div class="tabs-panel"></div>
|
|
|
|
</div>
|
2014-08-29 13:24:08 +04:00
|
|
|
|
2014-09-02 14:09:01 +04:00
|
|
|
<div class="output">
|
2014-09-03 13:23:42 +04:00
|
|
|
<div class="tabs">
|
|
|
|
<div class="current" data-index="files_3">
|
|
|
|
<span title="Output">Output</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tabs-panel">
|
2014-09-03 17:04:29 +04:00
|
|
|
<textarea id="output"></textarea>
|
2014-09-03 13:23:42 +04:00
|
|
|
</div>
|
2014-08-29 13:24:08 +04:00
|
|
|
</div>
|
2014-08-18 17:45:43 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-09-02 14:09:01 +04:00
|
|
|
<div class="footer">
|
2014-09-11 11:15:29 +04:00
|
|
|
<span>|</span>
|
|
|
|
<span id="footer-cursor" style="float: right;"></span>
|
2014-08-18 17:45:43 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2014-09-11 16:09:14 +04:00
|
|
|
var config = {
|
|
|
|
channel: {
|
2014-08-18 17:45:43 +04:00
|
|
|
editor: '{{.Wide.EditorChannel}}',
|
2014-09-11 16:09:14 +04:00
|
|
|
shell: '{{.Wide.ShellChannel}}',
|
|
|
|
output: '{{.Wide.OutputChannel}}'
|
|
|
|
}
|
2014-09-12 08:01:45 +04:00
|
|
|
};</script>
|
2014-08-18 17:45:43 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/jquery-2.1.1.min.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/reconnecting-websocket.js"></script>
|
2014-09-06 18:18:53 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/ztree/jquery.ztree.all-3.5.min.js"></script>
|
2014-09-07 13:31:57 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/underscore.string-2.3.3/underscore.string.min.js"></script>
|
2014-08-18 17:45:43 +04:00
|
|
|
|
2014-08-30 07:26:14 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/codemirror.js"></script>
|
2014-09-06 18:18:53 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/lint/lint.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/lint/json-lint.js"></script>
|
2014-09-02 14:09:01 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/selection/active-line.js"></script>
|
2014-08-30 07:26:14 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/hint/show-hint.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/hint/anyword-hint.js"></script>
|
2014-08-30 08:54:46 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/display/fullscreen.js"></script>
|
2014-09-06 17:24:28 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/display/rulers.js"></script>
|
2014-09-06 18:23:46 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/edit/closebrackets.js"></script>
|
2014-09-11 10:13:09 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/edit/matchbrackets.js"></script>
|
2014-09-06 19:42:29 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/edit/closetag.js"></script>
|
2014-09-06 17:24:28 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/search/searchcursor.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/search/match-highlighter.js"></script>
|
2014-09-06 19:42:29 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/foldcode.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/foldgutter.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/brace-fold.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/xml-fold.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/markdown-fold.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/comment-fold.js"></script>
|
2014-08-30 07:26:14 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/mode/go/go.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/mode/xml/xml.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/mode/htmlmixed/htmlmixed.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/mode/javascript/javascript.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/mode/markdown/markdown.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/mode/css/css.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/mode/shell/shell.js"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/mode/sql/sql.js"></script>
|
2014-09-07 13:31:57 +04:00
|
|
|
|
2014-09-06 18:18:53 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lint/json-lint.js?{{.Wide.StaticResourceVersion}}"></script>
|
2014-09-09 09:53:25 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lint/go-lint.js?{{.Wide.StaticResourceVersion}}"></script>
|
2014-09-03 17:04:29 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/tabs.js?{{.Wide.StaticResourceVersion}}"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/editor.js?{{.Wide.StaticResourceVersion}}"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/tree.js?{{.Wide.StaticResourceVersion}}"></script>
|
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/wide.js?{{.Wide.StaticResourceVersion}}"></script>
|
2014-09-10 14:08:35 +04:00
|
|
|
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/menu.js?{{.Wide.StaticResourceVersion}}"></script>
|
2014-08-18 17:45:43 +04:00
|
|
|
</body>
|
|
|
|
</html>
|