wide/view/index.html

113 lines
6.0 KiB
HTML
Raw Normal View History

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">
<link rel="stylesheet" href="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/display/fullscreen.css">
<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-08-18 17:45:43 +04:00
</head>
<body>
2014-09-02 18:57:30 +04:00
<div class="menu fn-clear">
<a href="/doc/{{.locale}}/index.html" target="_blank">{{.i18n.file}}</a>
<a href="/doc/{{.locale}}/index.html" target="_blank">{{.i18n.run}}</a>
<a href="/doc/{{.locale}}/index.html" target="_blank">{{.i18n.debug}}</a>
<a href="/doc/{{.locale}}/index.html" target="_blank">{{.i18n.help}}</a>
2014-09-03 13:23:42 +04:00
<span class="fn-none ico-fullscreen" onclick="editors.fullscreen()">{{.i18n.full_screen}}</span>
2014-09-02 18:57:30 +04:00
<div class="toolbars fn-right">
<button onclick="wide.save()">{{.i18n.save}}</button>
<button onclick="wide.fmt()">{{.i18n.format}}</button>
<button onclick="wide.run()">{{.i18n.build_n_run}}</button>
</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-03 13:23:42 +04:00
<div id="dirRMenu" class="menu-r fn-none">
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>
<li onclick="tree.newDir();">{{.i18n.create_file}}</li>
<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-03 13:23:42 +04:00
<div id="fileRMenu" class="menu-r fn-none">
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>
<span class="ico-close">X</span>
</div>
</div>
<div class="tabs-panel">
<div id="output"></div>
</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-02 18:57:30 +04:00
|
2014-08-18 17:45:43 +04:00
</div>
<script type="text/javascript">
var config = {
channel: {
editor: '{{.Wide.EditorChannel}}',
2014-08-22 10:06:47 +04:00
shell: '{{.Wide.ShellChannel}}',
2014-08-29 13:24:08 +04:00
output: '{{.Wide.OutputChannel}}'
2014-08-18 17:45:43 +04:00
}
};
</script>
<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>
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/ztree/jquery.ztree.all-3.5.min.js"></script>
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-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-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-08-18 17:45:43 +04:00
2014-08-29 13:24:08 +04:00
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/tabs.js"></script>
2014-08-18 17:45:43 +04:00
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/editor.js"></script>
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/tree.js"></script>
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/wide.js"></script>
</body>
</html>