This commit is contained in:
Liang Ding 2015-12-08 09:58:06 +08:00
parent b36d04071f
commit 6ed1c99b53
2 changed files with 8 additions and 7 deletions

View File

@ -28,9 +28,10 @@ import (
"github.com/b3log/wide/util" "github.com/b3log/wide/util"
) )
// Layout represents the layot of a window. // Layout represents the layot of a panel.
type Layout struct { type Layout struct {
State string // min/max/normal State string // panel state, "min"/"max"/"normal"
Size uint16 // panel size
} }
// LatestSessionContent represents the latest session content. // LatestSessionContent represents the latest session content.
@ -39,10 +40,10 @@ type LatestSessionContent struct {
Files []string // paths of files of opening editor tabs Files []string // paths of files of opening editor tabs
CurrentFile string // path of file of the current focused editor tab CurrentFile string // path of file of the current focused editor tab
FileTreeLayout *Layout // TODO: https://github.com/b3log/wide/issues/205 SideLayout *Layout // Left side panel layout
EditorLayout *Layout // TODO: https://github.com/b3log/wide/issues/205 EditorLayout *Layout // Editor panel layout
OutlineLayout *Layout // TODO: https://github.com/b3log/wide/issues/205 SideRightLayout *Layout // Right side panel layout
BottomLayout *Layout // TODO: https://github.com/b3log/wide/issues/205 BottomLayout *Layout // Bottom panel layout
} }
// User configuration. // User configuration.

View File

@ -18,7 +18,7 @@ var session = {
init: function () { init: function () {
this._initWS(); this._initWS();
// save session content per 30 seconds // save session content every 30 seconds
setInterval(function () { setInterval(function () {
var request = newWideRequest(), var request = newWideRequest(),
filse = [], filse = [],