刷新提示
This commit is contained in:
parent
420d1bd064
commit
441090f2be
|
@ -10,16 +10,20 @@
|
||||||
"MaxProcs": 4,
|
"MaxProcs": 4,
|
||||||
"RuntimeMode": "dev",
|
"RuntimeMode": "dev",
|
||||||
"Pwd": "{pwd}",
|
"Pwd": "{pwd}",
|
||||||
"Workspace": "{pwd}/data/workspace",
|
|
||||||
"Users": [
|
"Users": [
|
||||||
{
|
{
|
||||||
"Name": "admin",
|
"Name": "admin",
|
||||||
"Password": "admin",
|
"Password": "admin",
|
||||||
"Workspace": "{pwd}/data/user_workspaces/admin",
|
"Workspace": "{pwd}/data/user_workspaces/admin",
|
||||||
"LatestSessionContent": {
|
"LatestSessionContent": {
|
||||||
"FileTree": [],
|
"FileTree": [
|
||||||
"Files": [],
|
"E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest",
|
||||||
"CurrentFile": ""
|
"E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\hello"
|
||||||
|
],
|
||||||
|
"Files": [
|
||||||
|
"E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\hello\\main.go"
|
||||||
|
],
|
||||||
|
"CurrentFile": "E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\hello\\main.go"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -52,5 +52,6 @@
|
||||||
"dev_guide": "开发指南",
|
"dev_guide": "开发指南",
|
||||||
"ver": "版本",
|
"ver": "版本",
|
||||||
"dev_team": "开发团队",
|
"dev_team": "开发团队",
|
||||||
"donate": "捐赠"
|
"donate": "捐赠",
|
||||||
|
"confirm_save": "请确认所有文件已保存"
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: #000;
|
color: #000;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: #F0F0F0;
|
|
||||||
font-family: Helvetica, 'Microsoft Yahei';
|
font-family: Helvetica, 'Microsoft Yahei';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,6 @@
|
||||||
width: 80%;
|
width: 80%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 20%;
|
left: 20%;
|
||||||
background-color: #D7D7D7;
|
|
||||||
width: 80%;
|
width: 80%;
|
||||||
height: 70%;
|
height: 70%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
|
@ -110,7 +110,7 @@ var editors = {
|
||||||
var article = articles[i];
|
var article = articles[i];
|
||||||
var articleLiHtml = "<li>"
|
var articleLiHtml = "<li>"
|
||||||
+ "<a target='_blank' href='http://symphony.b3log.org" + article.articlePermalink + "'>"
|
+ "<a target='_blank' href='http://symphony.b3log.org" + article.articlePermalink + "'>"
|
||||||
+ article.articleTitle + "</a> <span class='date'>" + article.articleCreateTime;
|
+ article.articleTitle + "</a> <span class='date'>" + new Date(article.articleCreateTime);
|
||||||
+"</span></li>"
|
+"</span></li>"
|
||||||
listHTML += articleLiHtml;
|
listHTML += articleLiHtml;
|
||||||
}
|
}
|
||||||
|
|
|
@ -383,6 +383,12 @@ var wide = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.onbeforeunload = function () {
|
||||||
|
if (editors.data.length > 0) {
|
||||||
|
return config.label.confirm_save;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
this._initDialog();
|
this._initDialog();
|
||||||
|
|
||||||
this._initLayout();
|
this._initLayout();
|
||||||
|
@ -570,7 +576,7 @@ var wide = {
|
||||||
var mode = curEditor.getOption("mode");
|
var mode = curEditor.getOption("mode");
|
||||||
|
|
||||||
var cursor = curEditor.getCursor();
|
var cursor = curEditor.getCursor();
|
||||||
|
|
||||||
var request = newWideRequest();
|
var request = newWideRequest();
|
||||||
request.file = path;
|
request.file = path;
|
||||||
request.code = curEditor.getValue();
|
request.code = curEditor.getValue();
|
||||||
|
|
|
@ -216,7 +216,8 @@
|
||||||
"usages": "{{.i18n.usages}}",
|
"usages": "{{.i18n.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}}"
|
||||||
},
|
},
|
||||||
"channel": {
|
"channel": {
|
||||||
"editor": '{{.conf.EditorChannel}}',
|
"editor": '{{.conf.EditorChannel}}',
|
||||||
|
|
Loading…
Reference in New Issue