Blogger: migrate code to typescript,use SQLiteDB as database access API

This commit is contained in:
DanyLE
2023-02-23 16:59:33 +01:00
parent c8ddd5ec6e
commit 5dec0a2b56
24 changed files with 1355 additions and 2029 deletions

View File

@ -6,6 +6,7 @@ Blackend for my blog at https://blog.iohub.dev
## Change logs
### v0.2.x-a
* Patch 10: Migrate code to typescript, use SQLiteDB lib for database access
* Patch 9: Update to use the new MDE library
* Patch 8: Support for antOS 2.0.x
* Patch 7: Fix sendmail API security bug

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.9-a",
"version": "0.2.10-a",
"category": "Internet",
"iconclass": "fa fa-book",
"dependencies": [
@ -36,7 +36,6 @@
"No email selected": "No email selected",
"Unable to send mail to: {0}": "Unable to send mail to: {0}",
"Error sending mail: {0}": "Error sending mail: {0}",
"Cannot fetch subscribers data: {0}": "Cannot fetch subscribers data: {0}",
"Open/create new database": "Open/create new database",
"Unable to init database file: {0}": "Unable to init database file: {0}",
"Select image file": "Select image file",
@ -65,28 +64,20 @@
"No post selected": "No post selected",
"Emails sent": "Emails sent",
"Error sending mails: {0}": "Error sending mails: {0}",
"No record found for ID {}": "No record found for ID {}",
"Cannot fetch the entry content": "Cannot fetch the entry content",
"Delete a post": "Delete a post",
"Do you really want to delete this post ?": "Do you really want to delete this post ?",
"Cannot fetch user data": "Cannot fetch user data",
"Full name must be entered": "Full name must be entered",
"User data updated": "User data updated",
"Cannot save user data": "Cannot save user data",
"Cannot save user data: {0}": "Cannot save user data: {0}",
"Unable to load categories": "Unable to load categories",
"Found {0} sections": "Found {0} sections",
"Please insert a title in the text: beginning with heading": "Please insert a title in the text: beginning with heading",
"Please enter tags": "Please enter tags",
"Cannot save blog: {0}": "Cannot save blog: {0}",
"Cannot add new category": "Cannot add new category",
"Unable to fetch categories": "Unable to fetch categories",
"Cannot Edit category": "Cannot Edit category",
"Cannot save section: {0}": "Cannot save section: {0}",
"Cannot move section": "Cannot move section",
"Cannot delete the category: {0} [{1}]": "Cannot delete the category: {0} [{1}]",
"Cannot delete all content of: {0} [{1}]": "Cannot delete all content of: {0} [{1}]",
"No post found: {0}": "No post found: {0}",
"Created: {0}": "Created: {0}",
"Updated: {0}": "Updated: {0}",
"No more record to load": "No more record to load",
"Full name": "Full name",
"Address": "Address",
"Phone": "Phone",
@ -95,7 +86,10 @@
"Photo": "Photo",
"Short biblio": "Short biblio",
"Categories": "Categories",
"Tags": "Tags"
"Load more": "Load more",
"Tags": "Tags",
"Created: {0}": "Created: {0}",
"Updated: {0}": "Updated: {0}"
}
}
}

View File

@ -1,5 +1,5 @@
<afx-app-window data-id = "blogger-win" apptitle="Blogger" width="650" height="500">
<afx-hbox >
<afx-hbox padding="5">
<afx-tab-container data-id = "tabcontainer" dir = "row" tabbarwidth= "40">
<afx-hbox data-id="user-container" data-height="100%" iconclass="fa fa-user-circle">
@ -65,7 +65,10 @@
<afx-hbox data-id = "blog-container" data-height="100%" iconclass="fa fa-book">
<afx-list-view data-id = "blog-list" min-width="100" data-width="200"></afx-list-view>
<afx-vbox>
<afx-list-view data-id = "blog-list" min-width="100" data-width="200"></afx-list-view>
<afx-button data-id = "blog-load-more" text = "__(Load more)" iconclass_end = "bi bi-chevron-double-right" data-height="content"></afx-button>
</afx-vbox>
<afx-resizer data-width = "3"></afx-resizer>
<afx-vbox>
<div data-id = "editor-container">