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