update blogger

This commit is contained in:
lxsang 2020-06-07 14:49:50 +02:00
parent ee1ae6c517
commit d648be6c5e
8 changed files with 23 additions and 18043 deletions

View File

@ -5,6 +5,10 @@ Blackend for my blog at https://blog.iohub.dev
## Change logs ## Change logs
### v0.1.2-a
* Minor bug fix
* CV Category now can be created when database is not created yet
### v0.1.1-a ### v0.1.1-a
* Minor bug fix * Minor bug fix
* Fix package archive broken * Fix package archive broken

View File

@ -5,6 +5,10 @@ Blackend for my blog at https://blog.iohub.dev
## Change logs ## Change logs
### v0.1.2-a
* Minor bug fix
* CV Category now can be created when database is not created yet
### v0.1.1-a ### v0.1.1-a
* Minor bug fix * Minor bug fix
* Fix package archive broken * Fix package archive broken

File diff suppressed because one or more lines are too long

View File

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

Binary file not shown.

View File

@ -45,7 +45,7 @@ class Blogger extends this.OS.application.BaseApplication
@saveUser() @saveUser()
(@find "cv-cat-add").onbtclick = (e) => (@find "cv-cat-add").onbtclick = (e) =>
@fetchCVCat().then (tree) => fn = (tree) =>
@openDialog(new BloggerCategoryDialog(), { @openDialog(new BloggerCategoryDialog(), {
title: __("Add category"), title: __("Add category"),
tree: tree tree: tree
@ -59,7 +59,15 @@ class Blogger extends this.OS.application.BaseApplication
@refreshCVCat() @refreshCVCat()
.catch (e) => @error __("Cannot add new category"), e .catch (e) => @error __("Cannot add new category"), e
.catch (e) => @error e.toString(), e .catch (e) => @error e.toString(), e
.catch (e) => @error __("Unable to fetch categories"), e @fetchCVCat()
.then (tree) => fn(tree)
.catch (e) =>
data =
text: "Porfolio",
id:"0",
nodes: []
fn(data)
@error __("Unable to fetch categories"), e
(@find "cv-cat-edit").onbtclick = (e) => (@find "cv-cat-edit").onbtclick = (e) =>
sel = @cvlist.selectedItem sel = @cvlist.selectedItem

View File

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

View File

@ -32,7 +32,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Blogger/README.md", "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Blogger/README.md",
"category": "Internet", "category": "Internet",
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"version": "0.1.1-a", "version": "0.1.2-a",
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Blogger/build/release/Blogger.zip" "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Blogger/build/release/Blogger.zip"
}, },
{ {