update blogger

This commit is contained in:
lxsang 2020-06-18 09:52:39 +02:00
parent 91dd396d32
commit ef5bb0d4b1
9 changed files with 18125 additions and 43 deletions

View File

@ -5,22 +5,13 @@ Blackend for my blog at https://blog.iohub.dev
## Change logs
### v0.2.2-a
* patch 2: Bug fix rendering content
* patch 0-1 Important change: Store raw post content to the database instead of base64 string as before
### v0.2.x-a
* Patch 3: Correct JSON text decoding in
* Patch 2: Bug fix rendering content
* Patch 0-1 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
### v0.1.2-a
* Minor bug fix
* CV Category now can be created when database is not created yet
### v0.1.1-a
* Minor bug fix
* Fix package archive broken
### v0.1.0-a
* Minor bug fix
* Change default email of the sender
### v0.1.x-a
* Patch 3-4: Enhance youtube video embedding feature in markdown
* Patch 2: CV Category now can be created when database is not created yet
* Patch 1: Fix package archive broken
* Patch 0: Change default email of the sender

View File

@ -5,22 +5,13 @@ Blackend for my blog at https://blog.iohub.dev
## Change logs
### v0.2.2-a
* patch 2: Bug fix rendering content
* patch 0-1 Important change: Store raw post content to the database instead of base64 string as before
### v0.2.x-a
* Patch 3: Correct JSON text decoding in
* Patch 2: Bug fix rendering content
* Patch 0-1 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
### v0.1.2-a
* Minor bug fix
* CV Category now can be created when database is not created yet
### v0.1.1-a
* Minor bug fix
* Fix package archive broken
### v0.1.0-a
* Minor bug fix
* Change default email of the sender
### v0.1.x-a
* Patch 3-4: Enhance youtube video embedding feature in markdown
* Patch 2: CV Category now can be created when database is not created yet
* Patch 1: Fix package archive broken
* Patch 0: Change default email of the sender

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.2.2-a",
"version":"0.2.3-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 r.content.unescape()
@editor.value r.content
@inputtags.value = r.tags
(@find "blog-publish").swon = if Number(r.publish) then true else false
.catch (e) =>

View File

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

View File

@ -1 +1,54 @@
(function(){var t;t=class extends this.OS.application.BaseApplication{constructor(t){super("DBDecoder",t)}main(){var t;return t=this.find("decoder"),this.db=new this._api.DB("blogs"),t.onbtclick=t=>this.db.find("1=1").then(t=>{var e,n,r;for(e=0,n=t.length;e<n;e++)(r=t[e]).content=atob(r.content),r.rendered=atob(r.rendered);return this.saveDB(t).then(()=>this.notify("Data base saved")).catch(t=>this.error(t.toString(),t))})}saveDB(t){return new Promise((e,n)=>{var r;return 0===t.length?e():(r=t.shift(),this.db.save(r).then(()=>this.saveDB(t).then(()=>e()).catch(t=>n(__e(t)))).catch(t=>n(__e(t))))})}},this.OS.register("DBDecoder",t)}).call(this);
(function() {
var DBDecoder;
DBDecoder = class DBDecoder extends this.OS.application.BaseApplication {
constructor(args) {
super("DBDecoder", args);
}
main() {
var bt;
bt = this.find("decoder");
this.db = new this._api.DB("blogs");
return bt.onbtclick = (e) => {
// decode the database
return this.db.find("1=1").then((data) => {
var i, len, v;
for (i = 0, len = data.length; i < len; i++) {
v = data[i];
v.content = atob(v.content);
v.rendered = atob(v.rendered);
}
return this.saveDB(data).then(() => {
return this.notify("Data base saved");
}).catch((e) => {
return this.error(e.toString(), e);
});
});
};
}
saveDB(list) {
return new Promise((resolve, reject) => {
var record;
if (list.length === 0) {
return resolve();
}
record = list.shift();
return this.db.save(record).then(() => {
return this.saveDB(list).then(() => {
return resolve();
}).catch((e) => {
return reject(__e(e));
});
}).catch((e) => {
return reject(__e(e));
});
});
}
};
this.OS.register("DBDecoder", DBDecoder);
}).call(this);

View File

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