This commit is contained in:
lxsang
2020-06-17 21:08:15 +02:00
parent fe0223d2eb
commit 9405900664
19 changed files with 129 additions and 8 deletions

View File

@ -5,6 +5,9 @@ Blackend for my blog at https://blog.iohub.dev
## Change logs
### v0.2.0-a
* Important change: Store raw post content to the database instead of base64 string as before
### v0.1.4-a
* Minor bug fix
* Enhance youtube video embedding feature in markdown

View File

@ -5,6 +5,9 @@ Blackend for my blog at https://blog.iohub.dev
## Change logs
### v0.2.0-a
* Important change: Store raw post content to the database instead of base64 string as before
### v0.1.4-a
* Minor bug fix
* Enhance youtube video embedding feature in markdown

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.1.4-a",
"version":"0.2.0-a",
"category":"Internet",
"iconclass":"fa fa-book",
"mimes":["none"]

Binary file not shown.

View File

@ -253,7 +253,7 @@ class Blogger extends this.OS.application.BaseApplication
return unless sel
@blogdb.get Number(sel.id)
.then (r) =>
@editor.value atob(r.content)
@editor.value r.content
@inputtags.value = r.tags
(@find "blog-publish").swon = if Number(r.publish) then true else false
.catch (e) =>
@ -401,7 +401,7 @@ class Blogger extends this.OS.application.BaseApplication
return @notify __("Please enter tags") if tags is ""
d = new Date()
data =
content: content.asBase64()
content: content
title: title[1].trim()
tags: tags
ctime: if sel then sel.ctime else d.timestamp()
@ -441,7 +441,7 @@ class Blogger extends this.OS.application.BaseApplication
begin = it.index + it[0].length
ret += text.substring begin, text.length
#console.log ret
return ret.asBase64()
return ret
clearEditor:() ->
@.editor.value ""

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.1.4-a",
"version":"0.2.0-a",
"category":"Internet",
"iconclass":"fa fa-book",
"mimes":["none"]