This commit is contained in:
parent
f410641a6e
commit
842b591d2d
|
@ -3,9 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>
|
<title>
|
||||||
{{.i18n.wide}}
|
{{.i18n.wide}}
|
||||||
|
|
||||||
|
|
||||||
</title>
|
</title>
|
||||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/codemirror.css">
|
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/codemirror.css">
|
||||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/hint/show-hint.css">
|
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/hint/show-hint.css">
|
||||||
|
@ -26,33 +24,25 @@
|
||||||
<ul class="fn-cleaer">
|
<ul class="fn-cleaer">
|
||||||
<li>
|
<li>
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.file}}
|
{{.i18n.file}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
<div class="frame">
|
<div class="frame">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="save-all disabled" onclick="wide.saveAllFiles()">
|
<li class="save-all disabled" onclick="wide.saveAllFiles()">
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.save_all_files}}
|
{{.i18n.save_all_files}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="close-all disabled" onclick="wide.closeAllFiles()">
|
<li class="close-all disabled" onclick="wide.closeAllFiles()">
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.close_all_files}}
|
{{.i18n.close_all_files}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="hr">
|
<li class="hr">
|
||||||
</li>
|
</li>
|
||||||
<li onclick="wide.exit()">
|
<li onclick="wide.exit()">
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.exit}}
|
{{.i18n.exit}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -60,33 +50,25 @@
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.run}}
|
{{.i18n.run}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
<div class="frame">
|
<div class="frame">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="run disabled" onclick="wide.run()">
|
<li class="run disabled" onclick="wide.run()">
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.build_n_run}}
|
{{.i18n.build_n_run}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="hr">
|
<li class="hr">
|
||||||
</li>
|
</li>
|
||||||
<li class="go-get disabled" onclick="wide.goget()">
|
<li class="go-get disabled" onclick="wide.goget()">
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.goget}}
|
{{.i18n.goget}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="go-install disabled" onclick="wide.goinstall()">
|
<li class="go-install disabled" onclick="wide.goinstall()">
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.goinstall}}
|
{{.i18n.goinstall}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -106,39 +88,28 @@
|
||||||
-->
|
-->
|
||||||
<li>
|
<li>
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.help}}
|
{{.i18n.help}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
<div class="frame">
|
<div class="frame">
|
||||||
<ul>
|
<ul>
|
||||||
<li onclick="window.open('https://www.gitbook.io/book/88250/wide-user-guide')">
|
<li onclick="window.open('https://www.gitbook.io/book/88250/wide-user-guide')">
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.wide_doc}}
|
{{.i18n.wide_doc}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li onclick="window.open('https://github.com/b3log/wide/issues/new')">
|
<li onclick="window.open('https://github.com/b3log/wide/issues/new')">
|
||||||
{{.i18n.report_issues}}
|
{{.i18n.report_issues}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
<li class="hr">
|
<li class="hr">
|
||||||
</li>
|
</li>
|
||||||
<li onclick="editors.openStartPage()">
|
<li onclick="editors.openStartPage()">
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.start_page}}
|
{{.i18n.start_page}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li onclick="wide.openAbout()">
|
<li onclick="wide.openAbout()">
|
||||||
<span>
|
<span>
|
||||||
{{.i18n.about}}
|
{{.i18n.about}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -153,9 +124,7 @@
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<div class="current" data-index="filreTree">
|
<div class="current" data-index="filreTree">
|
||||||
<span title="{{.i18n.file}}">
|
<span title="{{.i18n.file}}">
|
||||||
{{.i18n.file}}
|
{{.i18n.file}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -167,19 +136,13 @@
|
||||||
<div id="dirRMenu" class="frame">
|
<div id="dirRMenu" class="frame">
|
||||||
<ul>
|
<ul>
|
||||||
<li onclick="tree.newFile();">
|
<li onclick="tree.newFile();">
|
||||||
{{.i18n.create_file}}
|
{{.i18n.create_file}}
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
<li onclick="tree.newDir();">
|
<li onclick="tree.newDir();">
|
||||||
{{.i18n.create_dir}}
|
{{.i18n.create_dir}}
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
<li onclick="tree.removeIt();">
|
<li onclick="tree.removeIt();">
|
||||||
{{.i18n.delete}}
|
{{.i18n.delete}}
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -187,9 +150,7 @@
|
||||||
<div id="fileRMenu" class="frame">
|
<div id="fileRMenu" class="frame">
|
||||||
<ul>
|
<ul>
|
||||||
<li onclick="tree.removeIt();">
|
<li onclick="tree.removeIt();">
|
||||||
{{.i18n.delete}}
|
{{.i18n.delete}}
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -218,23 +179,17 @@
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<div class="current" data-index="output">
|
<div class="current" data-index="output">
|
||||||
<span title="{{.i18n.output}}">
|
<span title="{{.i18n.output}}">
|
||||||
{{.i18n.output}}
|
{{.i18n.output}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div data-index="search">
|
<div data-index="search">
|
||||||
<span title="{{.i18n.search}}">
|
<span title="{{.i18n.search}}">
|
||||||
{{.i18n.search}}
|
{{.i18n.search}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div data-index="notification">
|
<div data-index="notification">
|
||||||
<span title="{{.i18n.notification}}">
|
<span title="{{.i18n.notification}}">
|
||||||
{{.i18n.notification}}
|
{{.i18n.notification}}
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -279,22 +234,15 @@
|
||||||
<span class="cursor">
|
<span class="cursor">
|
||||||
</span>
|
</span>
|
||||||
<span class="notification-count" title="{{.i18n.unread_notification}}">
|
<span class="notification-count" title="{{.i18n.unread_notification}}">
|
||||||
{{.i18n.notification}}!
|
{{.i18n.notification}}!
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="dialogRemoveConfirm" class="fn-none">
|
<div id="dialogRemoveConfirm" class="fn-none">
|
||||||
{{.i18n.isDelete}}
|
{{.i18n.isDelete}}
|
||||||
|
|
||||||
|
|
||||||
<b>
|
<b>
|
||||||
</b>
|
</b>
|
||||||
?
|
?
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="dialogAlert" class="fn-none">
|
<div id="dialogAlert" class="fn-none">
|
||||||
</div>
|
</div>
|
||||||
|
@ -312,48 +260,44 @@
|
||||||
<input placeholder="{{.i18n.file_format}}" />
|
<input placeholder="{{.i18n.file_format}}" />
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
var config = {
|
var config = {
|
||||||
"pathSeparator": {{.pathSeparator}},
|
"pathSeparator": {{.pathSeparator}},
|
||||||
"latestSessionContent": {{.latestSessionContent}},
|
"latestSessionContent": {{.latestSessionContent}},
|
||||||
"label": {
|
"label": {
|
||||||
"restore_editor": "{{.i18n.restore_editor}}",
|
"restore_editor": "{{.i18n.restore_editor}}",
|
||||||
"max_editor": "{{.i18n.max_editor}}",
|
"max_editor": "{{.i18n.max_editor}}",
|
||||||
"delete": "{{.i18n.delete}}",
|
"delete": "{{.i18n.delete}}",
|
||||||
"cancel": "{{.i18n.cancel}}",
|
"cancel": "{{.i18n.cancel}}",
|
||||||
"goto_line": "{{.i18n.goto_line}}",
|
"goto_line": "{{.i18n.goto_line}}",
|
||||||
"goto": "{{.i18n.goto}}",
|
"goto": "{{.i18n.goto}}",
|
||||||
"create": "{{.i18n.create}}",
|
"create": "{{.i18n.create}}",
|
||||||
"create_file": "{{.i18n.create_file}}",
|
"create_file": "{{.i18n.create_file}}",
|
||||||
"create_dir": "{{.i18n.create_dir}}",
|
"create_dir": "{{.i18n.create_dir}}",
|
||||||
"tip": "{{.i18n.tip}}",
|
"tip": "{{.i18n.tip}}",
|
||||||
"confirm": "{{.i18n.confirm}}",
|
"confirm": "{{.i18n.confirm}}",
|
||||||
"build_n_run": "{{.i18n.build_n_run}}",
|
"build_n_run": "{{.i18n.build_n_run}}",
|
||||||
"stop": "{{.i18n.stop}}",
|
"stop": "{{.i18n.stop}}",
|
||||||
"usages": "{{.i18n.find_usages}}",
|
"usages": "{{.i18n.find_usages}}",
|
||||||
"search_text": "{{.i18n.search_text}}",
|
"search_text": "{{.i18n.search_text}}",
|
||||||
"search": "{{.i18n.search}}",
|
"search": "{{.i18n.search}}",
|
||||||
"initialise": "{{.i18n.initialise}}",
|
"initialise": "{{.i18n.initialise}}",
|
||||||
"confirm_save": "{{.i18n.confirm_save}}"
|
"confirm_save": "{{.i18n.confirm_save}}"
|
||||||
},
|
},
|
||||||
"channel": {
|
"channel": {
|
||||||
"editor": '{{.conf.EditorChannel}}',
|
"editor": '{{.conf.EditorChannel}}',
|
||||||
"shell": '{{.conf.ShellChannel}}',
|
"shell": '{{.conf.ShellChannel}}',
|
||||||
"output": '{{.conf.OutputChannel}}',
|
"output": '{{.conf.OutputChannel}}',
|
||||||
"session": '{{.conf.SessionChannel}}'
|
"session": '{{.conf.SessionChannel}}'
|
||||||
},
|
},
|
||||||
"wideSessionId": '{{.session.Id}}'
|
"wideSessionId": '{{.session.Id}}'
|
||||||
};
|
};
|
||||||
// 发往 Wide 的所有 AJAX 请求需要使用该函数创建请求参数.
|
// 发往 Wide 的所有 AJAX 请求需要使用该函数创建请求参数.
|
||||||
function newWideRequest() {
|
function newWideRequest() {
|
||||||
var ret = {
|
var ret = {
|
||||||
sid: config.wideSessionId
|
sid: config.wideSessionId
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/jquery-2.1.1.min.js">
|
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/jquery-2.1.1.min.js">
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -60,7 +60,6 @@
|
||||||
"ver": "Version",
|
"ver": "Version",
|
||||||
"current_ver": "Current Version",
|
"current_ver": "Current Version",
|
||||||
"dev_team": "Dev Team",
|
"dev_team": "Dev Team",
|
||||||
"donate": "Donate",
|
|
||||||
"donate_us": "Donate Us",
|
"donate_us": "Donate Us",
|
||||||
"confirm_save": "Confirm Save",
|
"confirm_save": "Confirm Save",
|
||||||
"workspace": "Workspace",
|
"workspace": "Workspace",
|
||||||
|
@ -101,5 +100,6 @@
|
||||||
"project": "Project",
|
"project": "Project",
|
||||||
"license": "License",
|
"license": "License",
|
||||||
"credits": "Credits",
|
"credits": "Credits",
|
||||||
|
"uptodate": "it is up to date",
|
||||||
"colon": ": "
|
"colon": ": "
|
||||||
}
|
}
|
|
@ -60,7 +60,6 @@
|
||||||
"ver": "版本",
|
"ver": "版本",
|
||||||
"current_ver": "当前版本",
|
"current_ver": "当前版本",
|
||||||
"dev_team": "开发团队",
|
"dev_team": "开发团队",
|
||||||
"donate": "捐赠",
|
|
||||||
"donate_us": "捐赠我们",
|
"donate_us": "捐赠我们",
|
||||||
"confirm_save": "请确认所有文件已保存",
|
"confirm_save": "请确认所有文件已保存",
|
||||||
"workspace": "工作空间",
|
"workspace": "工作空间",
|
||||||
|
@ -101,6 +100,6 @@
|
||||||
"project": "项目",
|
"project": "项目",
|
||||||
"license": "许可协议",
|
"license": "许可协议",
|
||||||
"credits": "致谢",
|
"credits": "致谢",
|
||||||
"uptodate": "当前已是最新版本",
|
"uptodate": "已是最新版本",
|
||||||
"colon": ":"
|
"colon": ":"
|
||||||
}
|
}
|
2
main.go
2
main.go
|
@ -24,7 +24,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Ver = "1.0.0-dev" // 当前 Wide 版本
|
Ver = "1.0.0" // 当前 Wide 版本
|
||||||
)
|
)
|
||||||
|
|
||||||
// Wide 中唯一一个 init 函数.
|
// Wide 中唯一一个 init 函数.
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<label>{{.i18n.dev_team}}{{.i18n.colon}}</label>
|
<label>{{.i18n.dev_team}}{{.i18n.colon}}</label>
|
||||||
<a href="https://github.com/b3log/b3log-solo/wiki/About_us" target="_blank">B3log</a><br/>
|
<a href="https://github.com/b3log/b3log-solo/wiki/About_us" target="_blank">B3log</a><br/>
|
||||||
|
|
||||||
<label>{{.i18n.donate}}{{.i18n.colon}}</label>
|
<label>{{.i18n.donate_us}}{{.i18n.colon}}</label>
|
||||||
<a href="http://b3log.org/donate.html" target="_blank">b3log.org/donate.html</a>
|
<a href="http://b3log.org/donate.html" target="_blank">b3log.org/donate.html</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="fn-left thx">
|
<div class="fn-left thx">
|
||||||
|
|
Loading…
Reference in New Issue