modified: static/css/wide.css
modified: static/js/hotkeys.js modified: static/js/windows.js modified: views/index.html
This commit is contained in:
parent
30f11f3867
commit
d9f7bb2869
|
@ -13,7 +13,7 @@
|
|||
"Keymap": "wide",
|
||||
"Created": 1414080000000000000,
|
||||
"Updated": 1414080000000000000,
|
||||
"Lived": 1414080000000000000,
|
||||
"Lived": 1450160714578458400,
|
||||
"Editor": {
|
||||
"FontFamily": "Consolas, 'Courier New', monospace",
|
||||
"FontSize": "13px",
|
||||
|
@ -23,21 +23,29 @@
|
|||
},
|
||||
"LatestSessionContent": {
|
||||
"fileTree": [
|
||||
"D:/Code/GoGoGo/src",
|
||||
"D:/Code/GoGoGo/src/github.com",
|
||||
"D:/Code/GoGoGo/src/github.com/b3log",
|
||||
"D:/Code/GoGoGo/src/github.com/b3log/wide",
|
||||
"D:/Code/GoGoGo/src/github.com/b3log/wide/static",
|
||||
"D:/Code/GoGoGo/src/github.com/b3log/wide/static/css",
|
||||
"D:/Code/GoGoGo/src/github.com/b3log/wide/static/css/fonts",
|
||||
"D:/Code/GoGoGo/src/github.com/b3log/wide/static/css/themes",
|
||||
"D:/Code/GoGoGo/src/github.com/go-fsnotify"
|
||||
],
|
||||
"files": [
|
||||
],
|
||||
"files": [],
|
||||
"currentFile": "",
|
||||
"layout": {
|
||||
"side": {
|
||||
"state": "min",
|
||||
"state": "normal",
|
||||
"size": 200
|
||||
},
|
||||
"sideRight": {
|
||||
"state": "min",
|
||||
"state": "normal",
|
||||
"size": 200
|
||||
},
|
||||
"bottom": {
|
||||
"state": "min",
|
||||
"state": "normal",
|
||||
"size": 100
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* themes for wide.
|
||||
*
|
||||
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
|
||||
* @version 0.1.0.0, Dec 6, 2015
|
||||
* @version 0.1.0.1, Dec 15, 2015
|
||||
*/
|
||||
/* start frame */
|
||||
.frame {
|
||||
|
@ -88,6 +88,7 @@
|
|||
.tabs-panel {
|
||||
overflow: auto;
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
}
|
||||
/* end tabs */
|
||||
|
||||
|
@ -248,6 +249,7 @@
|
|||
line-height: 16px;
|
||||
font-size: 12px;
|
||||
overflow-x: scroll;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.bottom-window-group .output pre {
|
||||
|
@ -296,6 +298,10 @@
|
|||
line-height: 19px;
|
||||
}
|
||||
|
||||
.bottom-window-group .notification {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.bottom-window-group .notification .type,
|
||||
.bottom-window-group .notification .severity {
|
||||
width: 50px;
|
||||
|
@ -305,6 +311,7 @@
|
|||
.bottom-window-group .search {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
outline: 0;
|
||||
}
|
||||
/* end bottom-window-group */
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
|
||||
* @author <a href="http://88250.b3log.org">Liang Ding</a>
|
||||
* @version 1.0.0.1, Dec 8, 2015
|
||||
* @version 1.0.0.2, Dec 15, 2015
|
||||
*/
|
||||
var hotkeys = {
|
||||
defaultKeyMap: {
|
||||
|
@ -428,7 +428,7 @@ var hotkeys = {
|
|||
var tabs = ["output", "search", "notification"],
|
||||
nextPath = "";
|
||||
for (var i = 0, ii = tabs.length; i < ii; i++) {
|
||||
if (document.activeElement.className === tabs[i]) {
|
||||
if (bottomGroup.tabs.getCurrentId() === tabs[i]) {
|
||||
if (i < ii - 1) {
|
||||
nextPath = tabs[i + 1];
|
||||
} else {
|
||||
|
@ -445,7 +445,7 @@ var hotkeys = {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (editors.data.length >= 1) {
|
||||
if (editors.data.length > 1) {
|
||||
var nextPath = "";
|
||||
for (var i = 0, ii = editors.data.length; i < ii; i++) {
|
||||
var currentId = editors.getCurrentId();
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
|
||||
* @author <a href="http://88250.b3log.org">Liang Ding</a>
|
||||
* @version 1.1.1.1, Dec 8, 2015
|
||||
* @version 1.1.1.2, Dec 15, 2015
|
||||
*/
|
||||
var windows = {
|
||||
isMaxEditor: false,
|
||||
|
@ -198,6 +198,14 @@ var windows = {
|
|||
});
|
||||
|
||||
},
|
||||
maxEditor: function () {
|
||||
var $it = $(".toolbars .font-ico");
|
||||
windows.outerLayout.close('west');
|
||||
windows.innerLayout.close('south');
|
||||
windows.innerLayout.close('east');
|
||||
$it.removeClass('ico-max').addClass('ico-restore').attr('title', config.label.min);
|
||||
windows.isMaxEditor = true;
|
||||
},
|
||||
maxBottom: function ($it) {
|
||||
$it.data('height', $it.height()).addClass("bottom-window-group-max").find('.ico-min').hide();
|
||||
windows.outerLayout.hide('west');
|
||||
|
@ -220,11 +228,7 @@ var windows = {
|
|||
if ($it.hasClass('ico-restore')) {
|
||||
windows.restoreEditor();
|
||||
} else {
|
||||
windows.outerLayout.close('west');
|
||||
windows.innerLayout.close('south');
|
||||
windows.innerLayout.close('east');
|
||||
$it.removeClass('ico-max').addClass('ico-restore').attr('title', config.label.min);
|
||||
windows.isMaxEditor = true;
|
||||
windows.maxEditor();
|
||||
}
|
||||
},
|
||||
restoreBottom: function () {
|
||||
|
|
|
@ -538,10 +538,10 @@
|
|||
</div>
|
||||
<div class="tabs-panel">
|
||||
<div data-index="output">
|
||||
<div class="output"><div></div></div>
|
||||
<div class="output" tabindex="-1"><div></div></div>
|
||||
</div>
|
||||
<div class="fn-none" data-index="search">
|
||||
<div class="search">
|
||||
<div class="search" tabindex="-1">
|
||||
<div class="tabs fn-none">
|
||||
<div class="current" data-index="first">
|
||||
<span class="first"></span><span class="ico-close font-ico"></span>
|
||||
|
@ -553,7 +553,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="fn-none" data-index="notification">
|
||||
<div class="notification"><table cellpadding="0" cellspacing="0"></table></div>
|
||||
<div class="notification" tabindex="-1"><table cellpadding="0" cellspacing="0"></table></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue