This commit is contained in:
Liang Ding 2019-05-16 21:28:55 +08:00
parent 44aee6b548
commit cc928edb4a
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
10 changed files with 4 additions and 33 deletions

View File

@ -137,7 +137,6 @@
"clearOutput": "Clear Output", "clearOutput": "Clear Output",
"export": "Export", "export": "Export",
"refresh": "Refresh", "refresh": "Refresh",
"import": "Import",
"theme": "Theme", "theme": "Theme",
"tab_size": "Tab Size", "tab_size": "Tab Size",
"copy_file_path": "Copy File Path", "copy_file_path": "Copy File Path",

View File

@ -137,7 +137,6 @@
"clearOutput": "空の出力", "clearOutput": "空の出力",
"export": "輸出", "export": "輸出",
"refresh": "リフレッシュ", "refresh": "リフレッシュ",
"import": "インポート",
"theme": "テーマ", "theme": "テーマ",
"tab_size": "Tab サイズ", "tab_size": "Tab サイズ",
"copy_file_path": "ファイルパスをコピー", "copy_file_path": "ファイルパスをコピー",

View File

@ -137,7 +137,6 @@
"clearOutput": "ouput 클리어", "clearOutput": "ouput 클리어",
"export": "내보내기", "export": "내보내기",
"refresh": "새로고침", "refresh": "새로고침",
"import": "가져오기",
"theme": "주제", "theme": "주제",
"tab_size": "Tab 크기", "tab_size": "Tab 크기",
"copy_file_path": "경로복사", "copy_file_path": "경로복사",

View File

@ -137,7 +137,6 @@
"clearOutput": "清空输出", "clearOutput": "清空输出",
"export": "导出", "export": "导出",
"refresh": "刷新", "refresh": "刷新",
"import": "导入",
"theme": "主题", "theme": "主题",
"tab_size": "Tab 大小", "tab_size": "Tab 大小",
"copy_file_path": "复制文件路径", "copy_file_path": "复制文件路径",

View File

@ -137,7 +137,6 @@
"clearOutput": "清空輸出", "clearOutput": "清空輸出",
"export": "導出", "export": "導出",
"refresh": "刷新", "refresh": "刷新",
"import": "導入",
"theme": "主題", "theme": "主題",
"tab_size": "Tab 大小", "tab_size": "Tab 大小",
"copy_file_path": "複製檔案位置", "copy_file_path": "複製檔案位置",

View File

@ -229,22 +229,6 @@ var tree = {
tree.fileTree.reAsyncChildNodes(wide.curNode, "refresh", true); tree.fileTree.reAsyncChildNodes(wide.curNode, "refresh", true);
}, },
import: function () {
var request = newWideRequest();
request.path = wide.curNode.path;
$('#importFileupload').fileupload({
url: "/file/upload?path=" + request.path,
dataType: 'json',
formData: request,
done: function (e, result) {
tree.fileTree.reAsyncChildNodes(wide.curNode, "refresh");
},
fail: function () {
console.log(arguments);
}
});
},
init: function () { init: function () {
$("#file").click(function () { $("#file").click(function () {
$(this).focus(); $(this).focus();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -50,9 +50,6 @@
<span>{{.i18n.close_all_files}}</span> <span>{{.i18n.close_all_files}}</span>
</li> </li>
<li class="hr"></li> <li class="hr"></li>
<li class="disabled import" onclick="if (!$(this).hasClass('disabled')){$('#importFileupload').click(); }">
<span class="ico-import font-ico"></span> {{.i18n.import}}
</li>
<li class="disabled export" onclick="if (!$(this).hasClass('disabled')){tree.export(this); }"> <li class="disabled export" onclick="if (!$(this).hasClass('disabled')){tree.export(this); }">
<span class="ico-export font-ico"></span> {{.i18n.export}} <span class="ico-export font-ico"></span> {{.i18n.export}}
</li> </li>
@ -381,8 +378,6 @@
<div class="tabs-panel"> <div class="tabs-panel">
<div data-index="fileTree"> <div data-index="fileTree">
<ul id="files" class="ztree" tabindex="-1"></ul> <ul id="files" class="ztree" tabindex="-1"></ul>
<input id="importFileupload" class="fn-none" type="file"
name="files[]" onclick="tree.import();" multiple>
<!-- directory context menu --> <!-- directory context menu -->
<div id="dirRMenu" class="frame"> <div id="dirRMenu" class="frame">
<ul> <ul>
@ -407,9 +402,6 @@
<span class="ico-refresh font-ico"></span> {{.i18n.refresh}} <span class="ico-refresh font-ico"></span> {{.i18n.refresh}}
</li> </li>
<li class="hr"></li> <li class="hr"></li>
<li onclick="$('#importFileupload').click();">
<span class="ico-import font-ico"></span> {{.i18n.import}}
</li>
<li onclick="tree.export();"> <li onclick="tree.export();">
<span class="ico-export font-ico"></span> {{.i18n.export}} <span class="ico-export font-ico"></span> {{.i18n.export}}
</li> </li>

View File

@ -14,8 +14,8 @@
<span>{{.workspace}}</span> <span>{{.workspace}}</span>
</li> </li>
<li class="border"> <li class="border">
<label><a href="https://www.gitbook.com/book/88250/wide-user-guide" target="_blank">{{.i18n.user_guide}}</a></label>&nbsp;&nbsp;&nbsp;&nbsp;&amp;&nbsp;&nbsp;&nbsp; <label><a href="https://hacpai.com/article/1538873544275" target="_blank">{{.i18n.user_guide}}</a></label>&nbsp;&nbsp;&nbsp;&nbsp;&amp;&nbsp;&nbsp;&nbsp;
<label><a href="https://www.gitbook.com/book/88250/wide-dev-guide" target="_blank">{{.i18n.dev_guide}}</a></label> <label><a href="https://hacpai.com/article/1538876422995" target="_blank">{{.i18n.dev_guide}}</a></label>
</li> </li>
<li> <li>
<label>{{.i18n.current_ver}}{{.i18n.colon}}</label> <label>{{.i18n.current_ver}}{{.i18n.colon}}</label>