-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from fuxiaohei/develop
update to 0.1.6
- Loading branch information
Showing
15 changed files
with
412 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package model | ||
|
||
import "sync" | ||
|
||
var locker sync.Mutex | ||
|
||
func init(){ | ||
locker = sync.Mutex{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package upgrade | ||
|
||
import ( | ||
"github.com/fuxiaohei/GoBlog/GoInk" | ||
"github.com/fuxiaohei/GoBlog/app/cmd" | ||
"os" | ||
"path" | ||
) | ||
|
||
func init() { | ||
cmd.SetUpgradeScript(20140131, upgrade_20140131) | ||
} | ||
|
||
func upgrade_20140131(app *GoInk.App) bool { | ||
|
||
// re-write all data to non-indent json | ||
/*model.All() | ||
model.SyncContents() | ||
model.SyncFiles() | ||
model.SyncReaders() | ||
model.SyncSettings() | ||
model.SyncTokens() | ||
model.SyncUsers() | ||
model.SyncVersion()*/ | ||
|
||
// update ling template | ||
os.RemoveAll(path.Join(app.Get("view_dir"), "ling")) | ||
cmd.ExtractBundleBytes() | ||
|
||
|
||
return true | ||
} |
Oops, something went wrong.