Merge branch 'master' of https://github.com/b3log/wide
This commit is contained in:
commit
961e70a6a1
|
@ -5,6 +5,7 @@
|
|||
<title>
|
||||
{{.i18n.wide}}
|
||||
|
||||
|
||||
</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/addon/hint/show-hint.css">
|
||||
|
@ -27,6 +28,7 @@
|
|||
<span>
|
||||
{{.i18n.file}}
|
||||
|
||||
|
||||
</span>
|
||||
<div class="frame">
|
||||
<ul>
|
||||
|
@ -34,12 +36,14 @@
|
|||
<span>
|
||||
{{.i18n.save_all_files}}
|
||||
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li class="close-all disabled" onclick="wide.closeAllFiles()">
|
||||
<span>
|
||||
{{.i18n.close_all_files}}
|
||||
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li class="hr">
|
||||
|
@ -48,6 +52,7 @@
|
|||
<span>
|
||||
{{.i18n.exit}}
|
||||
|
||||
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -57,6 +62,7 @@
|
|||
<span>
|
||||
{{.i18n.run}}
|
||||
|
||||
|
||||
</span>
|
||||
<div class="frame">
|
||||
<ul>
|
||||
|
@ -64,6 +70,7 @@
|
|||
<span>
|
||||
{{.i18n.build_n_run}}
|
||||
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li class="hr">
|
||||
|
@ -72,12 +79,14 @@
|
|||
<span>
|
||||
{{.i18n.goget}}
|
||||
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li class="go-install disabled" onclick="wide.goinstall()">
|
||||
<span>
|
||||
{{.i18n.goinstall}}
|
||||
|
||||
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -99,6 +108,7 @@
|
|||
<span>
|
||||
{{.i18n.help}}
|
||||
|
||||
|
||||
</span>
|
||||
<div class="frame">
|
||||
<ul>
|
||||
|
@ -106,12 +116,14 @@
|
|||
<span>
|
||||
{{.i18n.wide_doc}}
|
||||
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li onclick="window.open('https://github.com/b3log/wide/issues/new')">
|
||||
{{.i18n.report_issues}}
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
<li class="hr">
|
||||
</li>
|
||||
|
@ -119,12 +131,14 @@
|
|||
<span>
|
||||
{{.i18n.start_page}}
|
||||
|
||||
|
||||
</span>
|
||||
</li>
|
||||
<li onclick="wide.openAbout()">
|
||||
<span>
|
||||
{{.i18n.about}}
|
||||
|
||||
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -141,6 +155,7 @@
|
|||
<span title="{{.i18n.file}}">
|
||||
{{.i18n.file}}
|
||||
|
||||
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -154,14 +169,17 @@
|
|||
<li onclick="tree.newFile();">
|
||||
{{.i18n.create_file}}
|
||||
|
||||
|
||||
</li>
|
||||
<li onclick="tree.newDir();">
|
||||
{{.i18n.create_dir}}
|
||||
|
||||
|
||||
</li>
|
||||
<li onclick="tree.removeIt();">
|
||||
{{.i18n.delete}}
|
||||
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -171,6 +189,7 @@
|
|||
<li onclick="tree.removeIt();">
|
||||
{{.i18n.delete}}
|
||||
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -201,18 +220,21 @@
|
|||
<span title="{{.i18n.output}}">
|
||||
{{.i18n.output}}
|
||||
|
||||
|
||||
</span>
|
||||
</div>
|
||||
<div data-index="search">
|
||||
<span title="{{.i18n.search}}">
|
||||
{{.i18n.search}}
|
||||
|
||||
|
||||
</span>
|
||||
</div>
|
||||
<div data-index="notification">
|
||||
<span title="{{.i18n.notification}}">
|
||||
{{.i18n.notification}}
|
||||
|
||||
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -259,17 +281,20 @@
|
|||
<span class="notification-count" title="{{.i18n.unread_notification}}">
|
||||
{{.i18n.notification}}!
|
||||
|
||||
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="dialogRemoveConfirm" class="fn-none">
|
||||
{{.i18n.isDelete}}
|
||||
|
||||
|
||||
<b>
|
||||
</b>
|
||||
?
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div id="dialogAlert" class="fn-none">
|
||||
</div>
|
||||
|
@ -328,6 +353,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/jquery-2.1.1.min.js">
|
||||
</script>
|
||||
|
|
|
@ -267,6 +267,16 @@ var wide = {
|
|||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#dialogAbout").load('/about', function () {
|
||||
$("#dialogAbout").dialog({
|
||||
"modal": true,
|
||||
"height": 460,
|
||||
"width": 860,
|
||||
"title": config.label.about,
|
||||
"hideFooter": true
|
||||
});
|
||||
});
|
||||
},
|
||||
_initLayout: function () {
|
||||
var mainH = $(window).height() - $(".menu").height() - $(".footer").height() - 1,
|
||||
|
@ -678,7 +688,7 @@ var wide = {
|
|||
}
|
||||
},
|
||||
openAbout: function () {
|
||||
|
||||
$("#dialogAbout").dialog("open");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -1,14 +1 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{.i18n.wide}} - {{.i18n.about}}</title>
|
||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/css/base.css?{{.conf.StaticResourceVersion}}">
|
||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/css/about.css?{{.conf.StaticResourceVersion}}">
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
</head>
|
||||
<body>
|
||||
about
|
||||
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/jquery-2.1.1.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/css/wide.css?{{.conf.StaticResourceVersion}}">
|
||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/css/side.css?{{.conf.StaticResourceVersion}}">
|
||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/css/start.css?{{.conf.StaticResourceVersion}}">
|
||||
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/css/about.css?{{.conf.StaticResourceVersion}}">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
</head>
|
||||
|
@ -189,6 +190,7 @@
|
|||
{{.i18n.isDelete}} <b></b>?
|
||||
</div>
|
||||
<div id="dialogAlert" class="fn-none"></div>
|
||||
<div id="dialogAbout" class="fn-none"></div>
|
||||
<div id="dialogNewFilePrompt" class="dialog-prompt fn-none">
|
||||
<input/>
|
||||
</div>
|
||||
|
@ -225,7 +227,8 @@
|
|||
"search": "{{.i18n.search}}",
|
||||
"start_page": "{{.i18n.start_page}}",
|
||||
"confirm_save": "{{.i18n.confirm_save}}",
|
||||
"community": "{{.i18n.community}}"
|
||||
"community": "{{.i18n.community}}",
|
||||
"about": "{{.i18n.about}}"
|
||||
},
|
||||
"channel": {
|
||||
"editor": '{{.conf.EditorChannel}}',
|
||||
|
|
Loading…
Reference in New Issue