Update major applications to support AntOS v2.0.x

This commit is contained in:
DanyLE 2023-01-01 01:54:04 +01:00
parent 695044704b
commit 7171a7eb3b
212 changed files with 2135 additions and 3806 deletions

View File

@ -5,6 +5,8 @@ It is used to show the change logs of the current AntOS version
## Change logs ## Change logs
### v0.1.1-b ### v0.1.1-b
* Increase default window size
### v0.1.1-b
* add missing css file * add missing css file
### v0.1.0-b ### v0.1.0-b

View File

@ -1,16 +1,8 @@
<afx-app-window apptitle="__(About AntOS)" width="450" height="500" data-id="About"> <afx-app-window apptitle="__(About AntOS)" width="600" height="500" data-id="About">
<afx-vbox > <afx-vbox padding="10">
<div data-height="10"></div>
<afx-hbox data-id="wrapper">
<div data-width="10"></div>
<div data-id="container"></div> <div data-id="container"></div>
<div data-width="10"></div> <afx-hbox data-height="35" style="text-align: right;">
</afx-hbox>
<div data-height="5"></div>
<afx-hbox data-height="23" style="text-align: right;">
<afx-button data-id="btnclose" text="__(Close)"></afx-button> <afx-button data-id="btnclose" text="__(Close)"></afx-button>
<div data-width="5"></div>
</afx-hbox> </afx-hbox>
<div data-height="10"></div>
</afx-vbox> </afx-vbox>
</afx-app-window> </afx-app-window>

View File

@ -5,6 +5,8 @@ It is used to show the change logs of the current AntOS version
## Change logs ## Change logs
### v0.1.1-b ### v0.1.1-b
* Increase default window size
### v0.1.1-b
* add missing css file * add missing css file
### v0.1.0-b ### v0.1.0-b

View File

@ -4,14 +4,12 @@ afx-app-window[data-id = "About"] a:hover
{ {
color:#df3154; color:#df3154;
} }
afx-app-window[data-id = "About"] afx-hbox[data-id="wrapper"]
afx-app-window[data-id = "About"] div[data-id="container"]
{ {
overflow-x: hidden; overflow-x: hidden;
overflow-y:auto; overflow-y:auto;
} /*text-align: justify;*/
afx-app-window[data-id = "About"] div[data-id="container"]
{
text-align: justify;
} }
afx-app-window[data-id = "About"] img afx-app-window[data-id = "About"] img

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"email": "xsang.le@gmail.com" "email": "xsang.le@gmail.com"
}, },
"version":"0.1.1-b", "version":"0.1.2-b",
"category":"Utility", "category":"Utility",
"iconclass":"fa fa-question-circle", "iconclass":"fa fa-question-circle",
"mimes":["none"], "mimes":["none"],

View File

@ -1,16 +1,8 @@
<afx-app-window apptitle="__(About AntOS)" width="450" height="500" data-id="About"> <afx-app-window apptitle="__(About AntOS)" width="600" height="500" data-id="About">
<afx-vbox > <afx-vbox padding="10">
<div data-height="10"></div>
<afx-hbox data-id="wrapper">
<div data-width="10"></div>
<div data-id="container"></div> <div data-id="container"></div>
<div data-width="10"></div> <afx-hbox data-height="35" style="text-align: right;">
</afx-hbox>
<div data-height="5"></div>
<afx-hbox data-height="23" style="text-align: right;">
<afx-button data-id="btnclose" text="__(Close)"></afx-button> <afx-button data-id="btnclose" text="__(Close)"></afx-button>
<div data-width="5"></div>
</afx-hbox> </afx-hbox>
<div data-height="10"></div>
</afx-vbox> </afx-vbox>
</afx-app-window> </afx-app-window>

Binary file not shown.

View File

@ -4,14 +4,12 @@ afx-app-window[data-id = "About"] a:hover
{ {
color:#df3154; color:#df3154;
} }
afx-app-window[data-id = "About"] afx-hbox[data-id="wrapper"]
afx-app-window[data-id = "About"] div[data-id="container"]
{ {
overflow-x: hidden; overflow-x: hidden;
overflow-y:auto; overflow-y:auto;
} /*text-align: justify;*/
afx-app-window[data-id = "About"] div[data-id="container"]
{
text-align: justify;
} }
afx-app-window[data-id = "About"] img afx-app-window[data-id = "About"] img

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"email": "xsang.le@gmail.com" "email": "xsang.le@gmail.com"
}, },
"version":"0.1.1-b", "version":"0.1.2-b",
"category":"Utility", "category":"Utility",
"iconclass":"fa fa-question-circle", "iconclass":"fa fa-question-circle",
"mimes":["none"], "mimes":["none"],

View File

@ -3,6 +3,8 @@
This simple application show the current running AntOS processes This simple application show the current running AntOS processes
## Change logs ## Change logs
### v0.0.8-b
* Increase default window size
### v0.0.6-a ### v0.0.6-a
* Fix process type identification bug * Fix process type identification bug

View File

@ -0,0 +1,82 @@
{
"name": "ActivityMonitor",
"targets": {
"init": {
"jobs": [
{
"name": "vfs-mkdir",
"data": [
"build",
"build/debug",
"build/release"
]
}
]
},
"coffee": {
"require": [
"coffee"
],
"jobs": [
{
"name": "coffee-compile",
"data": {
"src": [
"main.coffee"
],
"dest": "build/debug/main.js"
}
}
]
},
"uglify": {
"require": [
"terser"
],
"jobs": [
{
"name": "terser-uglify",
"data": [
"build/debug/main.js"
]
}
]
},
"copy": {
"jobs": [
{
"name": "vfs-cp",
"data": {
"src": [
"scheme.html",
"package.json",
"README.md",
"main.css"
],
"dest": "build/debug"
}
}
]
},
"release": {
"require": [
"zip"
],
"depend": [
"init",
"coffee",
"uglify",
"copy"
],
"jobs": [
{
"name": "zip-mk",
"data": {
"src": "build/debug",
"dest": "build/release/ActivityMonitor.zip"
}
}
]
}
}
}

View File

@ -3,6 +3,8 @@
This simple application show the current running AntOS processes This simple application show the current running AntOS processes
## Change logs ## Change logs
### v0.0.8-b
* Increase default window size
### v0.0.6-a ### v0.0.6-a
* Fix process type identification bug * Fix process type identification bug

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"email": "xsang.le@gmail.com" "email": "xsang.le@gmail.com"
}, },
"version":"0.0.7-b", "version":"0.0.8-b",
"category":"System", "category":"System",
"iconclass":"fa fa-heartbeat", "iconclass":"fa fa-heartbeat",
"mimes":["none"] "mimes":["none"]

View File

@ -1,11 +1,6 @@
<afx-app-window data-id = "am-window" apptitle="" width="400" height="300"> <afx-app-window data-id = "am-window" apptitle="" width="500" height="400">
<afx-hbox> <afx-vbox padding="7">
<div data-width="7"></div>
<afx-vbox>
<div data-height="7"></div>
<afx-grid-view data-id = "mygrid"></afx-grid-view> <afx-grid-view data-id = "mygrid"></afx-grid-view>
<afx-button data-height="30" data-id = "btkill" text = "__(Kill process)" iconclass="fa fa-times"></afx-button> <afx-button data-height="35" data-id = "btkill" text = "__(Kill process)" iconclass="fa fa-times"></afx-button>
</afx-vbox> </afx-vbox>
<div data-width="7"></div>
</afx-hbox>
</afx-app-window> </afx-app-window>

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"email": "xsang.le@gmail.com" "email": "xsang.le@gmail.com"
}, },
"version":"0.0.7-b", "version":"0.0.8-b",
"category":"System", "category":"System",
"iconclass":"fa fa-heartbeat", "iconclass":"fa fa-heartbeat",
"mimes":["none"] "mimes":["none"]

View File

@ -1,11 +1,6 @@
<afx-app-window data-id = "am-window" apptitle="" width="400" height="300"> <afx-app-window data-id = "am-window" apptitle="" width="500" height="400">
<afx-hbox> <afx-vbox padding="7">
<div data-width="7"></div>
<afx-vbox>
<div data-height="7"></div>
<afx-grid-view data-id = "mygrid"></afx-grid-view> <afx-grid-view data-id = "mygrid"></afx-grid-view>
<afx-button data-height="30" data-id = "btkill" text = "__(Kill process)" iconclass="fa fa-times"></afx-button> <afx-button data-height="35" data-id = "btkill" text = "__(Kill process)" iconclass="fa fa-times"></afx-button>
</afx-vbox> </afx-vbox>
<div data-width="7"></div>
</afx-hbox>
</afx-app-window> </afx-app-window>

View File

@ -5,6 +5,7 @@ the editor that powers VS Code.
The editor functionality can be extended by its extension mechanism. The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself. Extension can be developed/released/isntalled by the editor itself.
### Change logs ### Change logs
- 0.2.3-b: Minor changes to adapt the core UI to the new AntOS 2.0.x
- 0.2.3-b: Allow reload current file via context menu in case of external changes - 0.2.3-b: Allow reload current file via context menu in case of external changes
- 0.2.2-b: Support horizotal scrolling on horizotal tabbars - 0.2.2-b: Support horizotal scrolling on horizotal tabbars
- 0.2.1-b: Add open file to right, editor actions are only attached to code editor - 0.2.1-b: Add open file to right, editor actions are only attached to code editor

View File

@ -2,7 +2,7 @@
<afx-vbox> <afx-vbox>
<afx-hbox data-id="wrapper"> <afx-hbox data-id="wrapper">
<afx-vbox data-width = "200" min-width="200" data-id = "sidebar"> <afx-vbox data-width = "200" min-width="200" data-id = "sidebar">
<afx-tab-container data-id="sidebar-tab-container" dir="row" tabbarwidth="30"> <afx-tab-container data-id="sidebar-tab-container" dir="row" tabbarwidth="40">
<!--File tab--> <!--File tab-->
<afx-hbox data-height="100%" iconclass="bi bi-files" > <afx-hbox data-height="100%" iconclass="bi bi-files" >
<afx-vbox> <afx-vbox>
@ -15,7 +15,7 @@
<!--extension tab--> <!--extension tab-->
<afx-hbox data-height="100%" iconclass="bi bi-puzzle" > <afx-hbox data-height="100%" iconclass="bi bi-puzzle" >
<afx-vbox> <afx-vbox>
<input data-id="txt_ext_search" type="text" data-height="23"> <input data-id="txt_ext_search" type="text" data-height="30">
<afx-list-view data-id="extension-list"></afx-list-view> <afx-list-view data-id="extension-list"></afx-list-view>
</afx-vbox> </afx-vbox>
</afx-hbox> </afx-hbox>
@ -26,17 +26,17 @@
<afx-vbox data-id="editor-main-container"> <afx-vbox data-id="editor-main-container">
<afx-hbox> <afx-hbox>
<afx-vbox data-id="left-panel"> <afx-vbox data-id="left-panel">
<afx-tab-bar closable="true" data-height="26" data-id = "left-tabbar"></afx-tab-bar> <afx-tab-bar closable="true" data-height="35" data-id = "left-tabbar"></afx-tab-bar>
<div data-id="left-editorarea"></div> <div data-id="left-editorarea"></div>
</afx-vbox> </afx-vbox>
<afx-resizer data-width="3"></afx-resizer> <afx-resizer data-width="3"></afx-resizer>
<afx-vbox data-id="right-panel"> <afx-vbox data-id="right-panel">
<afx-tab-bar closable="true" data-height="26" data-id = "right-tabbar"></afx-tab-bar> <afx-tab-bar closable="true" data-height="35" data-id = "right-tabbar"></afx-tab-bar>
<div data-id="right-editorarea"></div> <div data-id="right-editorarea"></div>
</afx-vbox> </afx-vbox>
</afx-hbox> </afx-hbox>
<afx-resizer data-height = "3" dir = "ve" attachnext = "true" ></afx-resizer> <afx-resizer data-height = "3" dir = "ve" attachnext = "true" ></afx-resizer>
<afx-tab-container data-id = "bottombar" data-height="150" min-height="150" tabbarheight= "22"> <afx-tab-container data-id = "bottombar" data-height="150" min-height="150" tabbarheight= "35">
<afx-hbox tabname="__(Output)" iconclass = "fa fa-file-text" class = "bottom-tab-content"> <afx-hbox tabname="__(Output)" iconclass = "fa fa-file-text" class = "bottom-tab-content">
<afx-button text = "" data-id="logger-clear" iconclass="fa fa-trash" data-width="21"></afx-button> <afx-button text = "" data-id="logger-clear" iconclass="fa fa-trash" data-width="21"></afx-button>
<div data-id="output-tab" iconclass = "fa fa-file-text" > <div data-id="output-tab" iconclass = "fa fa-file-text" >

View File

@ -0,0 +1,22 @@
# Antedit
Simple yet powerful text/code editor based on the Monaco editor,
the editor that powers VS Code.
The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself.
### Change logs
- 0.2.3-b: Minor changes to adapt the core UI to the new AntOS 2.0.x
- 0.2.3-b: Allow reload current file via context menu in case of external changes
- 0.2.2-b: Support horizotal scrolling on horizotal tabbars
- 0.2.1-b: Add open file to right, editor actions are only attached to code editor
- 0.2.0-b: Support diff mode in editor + fix new Monaco version compatible bug
- 0.1.17-b: Fix extension keybinding bug with the new monaco editor
- 0.1.16-b: use the new version of monaco editor
- 0.1.14-b: improve output log display
- 0.1.13-b: Allow file upload in file view, add menu context in tabbar
- 0.1.12-b: fix recent files not adding correctly
- 0.1.11-b: fix file type parsing from path
- 0.1.10-b: Antedit now has it own extension manager
- 0.1.9-a: Allow output text selection
- 0.1.8-a: Allow to change language mode
- 0.1.7-a: Add keyboard shortcut support to extension actions

View File

@ -0,0 +1,19 @@
(function() {
// import the CodePad application module
const App = this.OS.application.Antedit;
// define the extension
App.extensions.{0} = class {0} extends App.EditorBaseExtension {
constructor(app) {
super("{0}",app);
}
test() {
return this.notify("Test action is invoked");
}
cleanup() {}
};
}).call(this);

View File

@ -0,0 +1,15 @@
{
"javascripts": ["{0}.js"],
"copies": [],
"meta": {
"name": "{0}",
"text": "{0}",
"version": "0.0.1-a",
"actions" : [
{
"text": "__(Example action)",
"name": "test"
}
]
}
}

View File

@ -0,0 +1,33 @@
[
{
"name": "EditorExtensionMaker",
"text": "Antedit Extension",
"version": "0.0.1-a",
"actions" : [
{
"text": "__(New Extension)",
"name": "create"
},
{
"text": "__(Build)",
"name": "build"
},
{
"text": "__(Run)",
"name": "run"
},
{
"text": "__(Build release)",
"name": "release"
},
{
"text": "__(Install from file)",
"name": "install"
},
{
"text": "__(Install from URL)",
"name": "installFromURL"
}
]
}
]

View File

@ -0,0 +1,175 @@
afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container
{
/*border-top: 1px solid #272822;*/
overflow: hidden;
overflow-x: auto;
font-size: 12px;
scrollbar-width: none;
/*scrollbar-color: #656565 transparent;*/
}
afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar {
height: 0;
}
afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar-track {
background: transparent;
}
afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar-thumb {
background-color: #656565;
border: 0;
}
afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container > ul
{
width: intrinsic;
width: -moz-max-content;
width: -webkit-max-content;
width: max-content;
}
afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li.selected,
afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container > ul > afx-list-item > li.selected{
background-color:#272822;
color:white;
border: 0;
border-radius: 0;
}
afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view afx-list-view i.closable:before {
color:#afafaf;
}
afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li,
afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-container > ul li{
background-color:#333333;
color:#afafaf;
border-radius: 0;
border: 0;
border-right: 1px solid #272822;
}
afx-app-window[data-id = "antedit"] afx-tab-bar[data-id="left-tabbar"]> afx-list-view > div.list-container > ul li,
afx-app-window[data-id = "antedit"] afx-tab-bar[data-id="right-tabbar"]> afx-list-view > div.list-container > ul li
{
padding-right: 20px;
}
afx-app-window[data-id = "antedit"] afx-tab-container[data-id="sidebar-tab-container"] afx-tab-bar> afx-list-view > div.list-container {
background-color: #333333;
}
afx-app-window[data-id = "antedit"] afx-tab-container[data-id="sidebar-tab-container"] afx-tab-bar> afx-list-view > div.list-container > ul li{
float: none;
font-size: 20px;
}
afx-app-window[data-id = "antedit"] .afx-window-wrapper afx-vbox[data-id = "sidebar"]{
background-color:#272822;
}
afx-app-window[data-id = "antedit"] div.afx-window-content {
background-color:#333333;
}
afx-app-window[data-id = "antedit"] afx-resizer {
background-color:#272822;
border-right: 1px solid #656565;
border-bottom: 1px solid #656565;
}
afx-app-window[data-id = "antedit"] .bottom-tab-content {
background-color:#272822;
}
afx-app-window[data-id = "antedit"] .afx-window-wrapper afx-tree-view{
color: white;
padding: 0;
}
afx-app-window[data-id = "antedit"] .afx-window-wrapper afx-tree-view afx-tree-view-item ul li{
padding-left: 10px;
}
afx-app-window[data-id = "antedit"] .afx-window-wrapper .afx_tree_item_selected ul{
background-color: #116cd6;
}
afx-app-window[data-id = "antedit"] afx-file-view afx-tree-view .afx-tree-view-item:before{
color: white;
}
afx-app-window[data-id = "antedit"] .afx-window-wrapper div[data-id="statctn"]{
color: white;
background-color: #007acc;
padding-right: 10px;
padding-top: 5px;
font-size: 11px;
}
afx-app-window[data-id = "antedit"] .afx-window-wrapper div[data-id="statctn"] afx-label {
padding-left: 10px;
}
afx-app-window[data-id = "antedit"] div[data-id="output-tab"] {
overflow-y: auto;
overflow-x: hidden;
user-select: text;
}
afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre {
margin: 3px;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
font-family: monospace;
}
afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre.code-pad-log-error {
color: red;
}
afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre.code-pad-log-warn {
color: orange;
}
afx-app-window[data-id = "antedit"] div[data-id="output-tab"] pre.code-pad-log-info {
color: white;
}
afx-app-window[data-id = "antedit"] afx-button[ data-id="logger-clear" ] button{
border: 0;
background: transparent;
}
afx-app-window[data-id = "antedit"] afx-antedit-ext-list-item {
color: white !important;
}
afx-app-window[data-id = "antedit"] afx-antedit-ext-list-item afx-label i.label-text{
font-weight: bold !important;
}
afx-app-window[data-id = "antedit"] afx-antedit-ext-list-item p {
margin: 0;
padding: 0;
padding-left:15px;
font-size: 11px;
}
afx-app-window[data-id = "antedit"] afx-antedit-ext-list-item p[data-id="ext-list-item-b-p"] {
text-align: right;
font-size: 11px;
}
afx-app-window[data-id = "antedit"] afx-antedit-ext-list-item > li {
background-color: transparent !important;
padding-right: 5px !important;
}
afx-app-window[data-id = "antedit"] afx-antedit-ext-list-item > li.selected {
background-color: #116cd6 !important;
}
afx-app-window[data-id = "antedit"] afx-antedit-ext-list-item button {
height: 22px;
width: 24px;
padding: 0 !important;
}
afx-app-window[data-id = "antedit"] input[data-id="txt_ext_search"] {
background-color: transparent;
border-radius: 0;
border-color: #333;
color: white;
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,89 @@
{
"pkgname": "Antedit",
"app": "Antedit",
"name": "Antos Editor",
"description": "Antos text/code editor",
"info": {
"author": "Xuan Sang LE",
"email": "mrsang@iohub.dev"
},
"version": "0.2.4-b",
"category": "Development",
"iconclass": "bi bi-journal-code",
"mimes": [
"text/.*",
"[^/]*/json.*",
"[^/]*/.*ml",
"[^/]*/javascript",
"dir"
],
"dependencies": [
"MonacoCore@0.33.0-r"
],
"locale": {
"en_GB": {
"Output": "Output",
"Close tab": "Close tab",
"Close without saving ?": "Close without saving ?",
"Unable to open: {0}": "Unable to open: {0}",
"Unable to save file: {0}": "Unable to save file: {0}",
"Save as": "Save as",
"New extension at": "New extension at",
"Select extension archive": "Select extension archive",
"Current folder is not found": "Current folder is not found",
"Select build directory": "Select build directory",
"Unable to read meta-data": "Unable to read meta-data",
"ExtensionName": "ExtensionName",
"Files generated in {0}": "Files generated in {0}",
"Unable to build extension:{0}": "Unable to build extension:{0}",
"Unable to read meta-data:{0}": "Unable to read meta-data:{0}",
"Invalid extension meta-data": "Invalid extension meta-data",
"Unable to run extension:{0}": "Unable to run extension:{0}",
"Archive created at {0}": "Archive created at {0}",
"Unable to read meta-data: {0}": "Unable to read meta-data: {0}",
"Extension installed": "Extension installed",
"Unable to install extension: {0}": "Unable to install extension: {0}",
"Enter URI": "Enter URI",
"Please enter extension URI:": "Please enter extension URI:",
"Unable to create extension directories: {0}": "Unable to create extension directories: {0}",
"New file": "New file",
"New folder": "New folder",
"Rename": "Rename",
"Delete": "Delete",
"File name": "File name",
"Folder name": "Folder name",
"Quit": "Quit",
"View": "View",
"Toggle bottom bar": "Toggle bottom bar",
"Toggle split view": "Toggle split view",
"Unable to move file/folder": "Unable to move file/folder",
"Editor": "Editor",
"Change language mode": "Change language mode",
"Select language": "Select language",
"Unable to disable split view: Please save changes of modified files on the right panel": "Unable to disable split view: Please save changes of modified files on the right panel",
"File": "File",
"New": "New",
"Open Recent": "Open Recent",
"Open": "Open",
"Open Folder": "Open Folder",
"Save": "Save",
"Fail to create: {0}": "Fail to create: {0}",
"Fail to rename: {0}": "Fail to rename: {0}",
"Fail to delete: {0}": "Fail to delete: {0}",
"Open file": "Open file",
"Open folder": "Open folder",
"Cannot load extension meta data": "Cannot load extension meta data",
"unable to load extension: {0}": "unable to load extension: {0}",
"Unable to find extension: {0}": "Unable to find extension: {0}",
"Unable to find action: {0}": "Unable to find action: {0}",
"Unable to preload extension": "Unable to preload extension",
"Example action": "Example action",
"New Extension": "New Extension",
"Build": "Build",
"Run": "Run",
"Build release": "Build release",
"Install extension from file": "Install extension from file",
"Install extension from URL": "Install extension from URL"
}
}
}

View File

@ -0,0 +1,54 @@
<afx-app-window apptitle="Antos Editor" width="600" height="400" data-id="antedit">
<afx-vbox>
<afx-hbox data-id="wrapper">
<afx-vbox data-width = "200" min-width="200" data-id = "sidebar">
<afx-tab-container data-id="sidebar-tab-container" dir="row" tabbarwidth="40">
<!--File tab-->
<afx-hbox data-height="100%" iconclass="bi bi-files" >
<afx-vbox>
<div data-height="5"></div>
<afx-file-view chdir="false" data-id = "fileview" view="tree" status = "false">
</afx-file-view>
</afx-vbox>
</afx-hbox>
<!--extension tab-->
<afx-hbox data-height="100%" iconclass="bi bi-puzzle" >
<afx-vbox>
<input data-id="txt_ext_search" type="text" data-height="30">
<afx-list-view data-id="extension-list"></afx-list-view>
</afx-vbox>
</afx-hbox>
</afx-tab-container>
</afx-vbox>
<afx-resizer data-width = "3" ></afx-resizer>
<afx-vbox data-id="editor-main-container">
<afx-hbox>
<afx-vbox data-id="left-panel">
<afx-tab-bar closable="true" data-height="35" data-id = "left-tabbar"></afx-tab-bar>
<div data-id="left-editorarea"></div>
</afx-vbox>
<afx-resizer data-width="3"></afx-resizer>
<afx-vbox data-id="right-panel">
<afx-tab-bar closable="true" data-height="35" data-id = "right-tabbar"></afx-tab-bar>
<div data-id="right-editorarea"></div>
</afx-vbox>
</afx-hbox>
<afx-resizer data-height = "3" dir = "ve" attachnext = "true" ></afx-resizer>
<afx-tab-container data-id = "bottombar" data-height="150" min-height="150" tabbarheight= "35">
<afx-hbox tabname="__(Output)" iconclass = "fa fa-file-text" class = "bottom-tab-content">
<afx-button text = "" data-id="logger-clear" iconclass="fa fa-trash" data-width="21"></afx-button>
<div data-id="output-tab" iconclass = "fa fa-file-text" >
</div>
</afx-hbox>
</afx-tab-container>
</afx-vbox>
</afx-hbox>
<div data-height="20" data-id="statctn">
<afx-label text=" " data-id = "current-file-lbl" style="float:left;"></afx-label>
<afx-label data-id="langstat" style="float:right; padding-right: 10px;"></afx-label>
<afx-label data-id="editorstat" style="float:right;"></afx-label>
</div>
</afx-vbox>
</afx-app-window>

Binary file not shown.

View File

@ -43,12 +43,16 @@ afx-app-window[data-id = "antedit"] afx-tab-bar> afx-list-view > div.list-conta
color:#afafaf; color:#afafaf;
border-radius: 0; border-radius: 0;
border: 0; border: 0;
padding-top: 5px;
padding-bottom: 5px;
padding-right: 20px;
border-right: 1px solid #272822; border-right: 1px solid #272822;
} }
afx-app-window[data-id = "antedit"] afx-tab-bar[data-id="left-tabbar"]> afx-list-view > div.list-container > ul li,
afx-app-window[data-id = "antedit"] afx-tab-bar[data-id="right-tabbar"]> afx-list-view > div.list-container > ul li
{
padding-right: 20px;
}
afx-app-window[data-id = "antedit"] afx-tab-container[data-id="sidebar-tab-container"] afx-tab-bar> afx-list-view > div.list-container { afx-app-window[data-id = "antedit"] afx-tab-container[data-id="sidebar-tab-container"] afx-tab-bar> afx-list-view > div.list-container {
background-color: #333333; background-color: #333333;
} }

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"email": "mrsang@iohub.dev" "email": "mrsang@iohub.dev"
}, },
"version": "0.2.3-b", "version": "0.2.4-b",
"category": "Development", "category": "Development",
"iconclass": "bi bi-journal-code", "iconclass": "bi bi-journal-code",
"mimes": [ "mimes": [

View File

@ -1,9 +1,7 @@
<afx-app-window apptitle="Archive" width="250" height="300" data-id="Archive"> <afx-app-window apptitle="Archive" width="500" height="400" data-id="Archive">
<afx-vbox> <afx-vbox>
<afx-tree-view data-id="filetree"></afx-tree-view> <afx-tree-view data-id="filetree"></afx-tree-view>
<div data-height="5"></div> <afx-hbox data-height="55" padding="10">
<afx-hbox data-height="30">
<div data-width="10"></div>
<div style="text-align: left;"> <div style="text-align: left;">
<afx-button iconclass="fa fa-plus-circle" data-id="btaradd"></afx-button> <afx-button iconclass="fa fa-plus-circle" data-id="btaradd"></afx-button>
<afx-button iconclass="fa fa-minus-circle" data-id="btardel"></afx-button> <afx-button iconclass="fa fa-minus-circle" data-id="btardel"></afx-button>
@ -11,7 +9,6 @@
<div style="text-align: right;"> <div style="text-align: right;">
<afx-button text="__(Extract)" data-id="btarxtract"></afx-button> <afx-button text="__(Extract)" data-id="btarxtract"></afx-button>
</div> </div>
<div data-width="10"></div>
</afx-hbox> </afx-hbox>
</afx-vbox> </afx-vbox>
</afx-app-window> </afx-app-window>

82
Archive/build.json Normal file
View File

@ -0,0 +1,82 @@
{
"name": "Archive",
"targets": {
"init": {
"jobs": [
{
"name": "vfs-mkdir",
"data": [
"build",
"build/debug",
"build/release"
]
}
]
},
"coffee": {
"require": [
"coffee"
],
"jobs": [
{
"name": "coffee-compile",
"data": {
"src": [
"coffees/main.coffee"
],
"dest": "build/debug/main.js"
}
}
]
},
"uglify": {
"require": [
"terser"
],
"jobs": [
{
"name": "terser-uglify",
"data": [
"build/debug/main.js"
]
}
]
},
"copy": {
"jobs": [
{
"name": "vfs-cp",
"data": {
"src": [
"assets/scheme.html",
"package.json",
"README.md",
"css/main.css"
],
"dest": "build/debug"
}
}
]
},
"release": {
"require": [
"zip"
],
"depend": [
"init",
"coffee",
"uglify",
"copy"
],
"jobs": [
{
"name": "zip-mk",
"data": {
"src": "build/debug",
"dest": "build/release/Archive.zip"
}
}
]
}
}
}

View File

@ -1,4 +1,3 @@
afx-app-window[data-id="Archive"] afx-tree-view .afx-tree-view-folder-close:before{ afx-app-window[data-id="Archive"] afx-tree-view .afx-tree-view-folder-close:before{
content: "\f07b"; content: "\f07b";
font-family: "FontAwesome"; font-family: "FontAwesome";

View File

@ -1,9 +1,7 @@
<afx-app-window apptitle="Archive" width="250" height="300" data-id="Archive"> <afx-app-window apptitle="Archive" width="500" height="400" data-id="Archive">
<afx-vbox> <afx-vbox>
<afx-tree-view data-id="filetree"></afx-tree-view> <afx-tree-view data-id="filetree"></afx-tree-view>
<div data-height="5"></div> <afx-hbox data-height="55" padding="10">
<afx-hbox data-height="30">
<div data-width="10"></div>
<div style="text-align: left;"> <div style="text-align: left;">
<afx-button iconclass="fa fa-plus-circle" data-id="btaradd"></afx-button> <afx-button iconclass="fa fa-plus-circle" data-id="btaradd"></afx-button>
<afx-button iconclass="fa fa-minus-circle" data-id="btardel"></afx-button> <afx-button iconclass="fa fa-minus-circle" data-id="btardel"></afx-button>
@ -11,7 +9,6 @@
<div style="text-align: right;"> <div style="text-align: right;">
<afx-button text="__(Extract)" data-id="btarxtract"></afx-button> <afx-button text="__(Extract)" data-id="btarxtract"></afx-button>
</div> </div>
<div data-width="10"></div>
</afx-hbox> </afx-hbox>
</afx-vbox> </afx-vbox>
</afx-app-window> </afx-app-window>

Binary file not shown.

View File

@ -6,6 +6,7 @@ Blackend for my blog at https://blog.iohub.dev
## Change logs ## Change logs
### v0.2.x-a ### v0.2.x-a
* Patch 8: Support for antOS 2.0.x
* Patch 7: Fix sendmail API security bug * Patch 7: Fix sendmail API security bug
* Patch 6: Chage libraries load order * Patch 6: Chage libraries load order
* Patch 5: Add user photo to portfolio * Patch 5: Add user photo to portfolio

87
Blogger/build.json Normal file
View File

@ -0,0 +1,87 @@
{
"name": "Blogger",
"targets": {
"init": {
"jobs": [
{
"name": "vfs-mkdir",
"data": [
"build",
"build/debug",
"build/release"
]
}
]
},
"coffee": {
"require": [
"coffee"
],
"jobs": [
{
"name": "coffee-compile",
"data": {
"src": [
"main.coffee",
"dialogs.coffee",
"tags.coffee"
],
"dest": "build/debug/main.js"
}
}
]
},
"uglify": {
"require": [
"terser"
],
"jobs": [
{
"name": "terser-uglify",
"data": [
"build/debug/main.js"
]
}
]
},
"copy": {
"jobs": [
{
"name": "vfs-cp",
"data": {
"src": [
"scheme.html",
"cvsection.html",
"api/sendmail.lua",
"sendmail.html",
"package.json",
"README.md",
"main.css"
],
"dest": "build/debug"
}
}
]
},
"release": {
"require": [
"zip"
],
"depend": [
"init",
"coffee",
"uglify",
"copy"
],
"jobs": [
{
"name": "zip-mk",
"data": {
"src": "build/debug",
"dest": "build/release/Blogger.zip"
}
}
]
}
}
}

View File

@ -0,0 +1,22 @@
# Blogger
Blackend for my blog at https://blog.iohub.dev
## Change logs
### v0.2.x-a
* Patch 8: Support for antOS 2.0.x
* Patch 7: Fix sendmail API security bug
* Patch 6: Chage libraries load order
* Patch 5: Add user photo to portfolio
* Patch 4: Add package dependencies
* Patch 3: Correct JSON text decoding
* 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.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

@ -0,0 +1,30 @@
<afx-app-window data-id = "blogger-cv-sec-win" apptitle="Porforlio section" width="450" height="400">
<afx-vbox padding="5">
<afx-hbox data-height = "30" >
<afx-label data-width= "70" text = "__(Title)"></afx-label>
<input type = "text" name="title" input-class = "user-input"></input>
</afx-hbox>
<afx-hbox data-height = "30" >
<afx-label text = "__(Subtitle)" data-width= "70"></afx-label>
<input type = "text" name="subtitle" input-class = "user-input"></input>
</afx-hbox>
<afx-hbox data-height = "30" >
<afx-label text = "__(Location)" data-width= "70"></afx-label>
<input type = "text" name="location" input-class = "user-input"></input>
</afx-hbox>
<afx-hbox data-height = "30" >
<afx-label text = "__(From)" data-width= "70"></afx-label>
<input type = "text" name="start" input-class = "user-input"></input>
<afx-label text = "To:" style="text-align:center;" data-width= "70"></afx-label>
<input type = "text" name="end" input-class = "user-input"></input>
</afx-hbox>
<afx-label data-height = "30" text = "Content" style = "margin-left:5px;"></afx-label>
<div data-id="editor-container">
<textarea name="content" data-id = "contentarea" ></textarea>
</div>
<div data-height = "35" style="text-align: right;">
<afx-switch data-id = "section-publish" data-width="30"></afx-switch>
<afx-button iconclass = "fa fa-save" data-id = "bt-cv-sec-save" text = "__(Save)"></afx-button>
</div>
</afx-vbox>
</afx-app-window>

View File

@ -0,0 +1,78 @@
afx-app-window[data-id="blogger-win"] afx-hbox[data-id="user-container"] afx-label i.label-text{
font-weight: bold;
}
afx-app-window .lbl-header i.label-text{
font-weight: bold;
}
afx-app-window[data-id="blogger-win"] afx-hbox[data-id="cv-container"] .cat-header{
border-bottom: 1px solid #cbcbcb;
text-align: center;
}
afx-app-window[data-id="blogger-win"] .cv-side-bar-btn
{
text-align: right;
margin: 0;
padding: 0;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "cv-sec-list"] > .list-container > ul .afx-cv-sec-title .label-text{
font-weight: bold;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "cv-sec-list"] afx-blogger-cvsection-item afx-label {
display: block;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "cv-sec-list"] afx-blogger-cvsection-item p {
padding: 0;
margin: 0;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "cv-sec-list"] afx-blogger-cvsection-item .afx-cv-sec-period,
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "cv-sec-list"] afx-blogger-cvsection-item .afx-cv-sec-loc {
text-align: right;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "cv-sec-list"] afx-blogger-cvsection-item afx-cv-sec-content{
text-align: justify;
overflow-wrap: break-word;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "cv-sec-list"] > div.list-container > ul li.selected {
border: 1px solid #116cd6;
background-color: transparent;
border-radius: 5px;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "cv-sec-list"] .closable::before{
content: "\f014";
font-size: 14px;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "cv-sec-list"] .period-end::before{
content: "-";
}
afx-app-window[data-id ='blogger-win'] .editor-toolbar{
background-color: white;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "blog-list"] > div.list-container > ul li afx-label {
display: block;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "blog-list"] > div.list-container > ul .afx-blogpost-title .label-text{
font-weight: bold;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "blog-list"] > div.list-container > ul .blog-dates .label-text{
font-size: 10px;
font-weight: normal;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "blog-list"] > div.list-container > ul li.selected {
background-color: #116cd6;
color:white;
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,14 @@
{
"app":"Blogger",
"name":"Blogging application",
"description":"Backend manager for blogging",
"info":{
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.2.8-a",
"category":"Internet",
"iconclass":"fa fa-book",
"dependencies": ["SimpleMDE@1.11.2-r","Katex@0.11.1-r"],
"mimes":["none"]
}

View File

@ -0,0 +1,88 @@
<afx-app-window data-id = "blogger-win" apptitle="Blogger" width="650" height="500">
<afx-hbox >
<afx-tab-container data-id = "tabcontainer" dir = "row" tabbarwidth= "40">
<afx-hbox data-id="user-container" data-height="100%" iconclass="fa fa-user-circle">
<afx-vbox>
<afx-hbox data-height = "30">
<afx-label data-width= "70" text = "__(Full name)"></afx-label>
<input type = "text" name="fullname" input-class = "user-input"></input>
</afx-hbox>
<afx-hbox data-height = "30">
<afx-label text = "__(Address)" data-width= "70"></afx-label>
<input type = "text" name="address" input-class = "user-input"></input>
</afx-hbox>
<afx-hbox data-height = "30">
<afx-label text = "__(Phone)" data-width= "70"></afx-label>
<input type = "text" name="Phone" input-class = "user-input"></input>
</afx-hbox>
<afx-hbox data-height = "30">
<afx-label text = "__(Email)" data-width= "70"></afx-label>
<input type = "text" name="email" input-class = "user-input"></input>
</afx-hbox>
<afx-hbox data-height = "30">
<afx-label text = "__(Url)" data-width= "70"></afx-label>
<input type = "text" name="url" input-class = "user-input"></input>
</afx-hbox>
<afx-hbox data-height = "30">
<afx-label text = "__(Photo)" data-width= "70"></afx-label>
<input type = "text" name="photo" data-id="photo" readonly="readonly" input-class = "user-input"></input>
</afx-hbox>
<afx-label data-height = "30" text = "__(Short biblio)"></afx-label>
<textarea name="shortbiblio" input-class = "user-input"></textarea>
<afx-hbox data-height = "35" style="text-align: right;">
<afx-button iconclass = "fa fa-save" data-id = "bt-user-save" text = "__(Save)"></afx-button>
</afx-hbox>
</afx-vbox>
</afx-hbox>
<afx-hbox data-id="cv-container" data-height="100%" iconclass="fa fa-info-circle">
<div data-width="5"></div>
<afx-vbox data-width="150" min-width="100">
<afx-label class="lbl-header" data-height = "23" text = "__(Categories)" iconclass = "fa fa-bars"></afx-label>
<afx-tree-view data-id = "cv-list" ></afx-tree-view>
<div data-height="35" class = "cv-side-bar-btn">
<afx-button data-id = "cv-cat-add" text = "" iconclass = "fa fa-plus-circle"></afx-button>
<afx-button data-id = "cv-cat-del" text = "" iconclass = "fa fa-minus-circle"></afx-button>
<afx-button data-id = "cv-cat-edit" text = "" iconclass = "fa fa-pencil-square-o"></afx-button>
</div>
</afx-vbox>
<afx-resizer data-width = "2"></afx-resizer>
<afx-vbox>
<afx-list-view data-id = "cv-sec-list" ></afx-list-view>
<afx-hbox data-height="35" >
<afx-label data-id = "cv-sec-status"></afx-label>
<div class = "cv-side-bar-btn">
<afx-button data-id = "cv-sec-add" text = "" iconclass = "fa fa-plus-circle"></afx-button>
<afx-button data-id = "cv-sec-edit" text = "" iconclass = "fa fa-pencil-square-o"></afx-button>
<afx-button data-id = "cv-sec-move" text = "" iconclass = "fa fa-exchange"></afx-button>
</div>
</afx-hbox>
</afx-vbox>
<div data-width="5"></div>
</afx-hbox>
<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-resizer data-width = "3"></afx-resizer>
<afx-vbox>
<div data-id = "editor-container">
<textarea data-id="markarea" ></textarea>
</div>
<afx-label text = "__(Tags)" style="font-weight:bold;" data-height="25" ></afx-label>
<afx-hbox data-height="25">
<input type = "text" data-id = "input-tags" ></input>
<div data-width="5"></div>
<afx-switch data data-id = "blog-publish" data-width="30"></afx-switch>
<div data-width="5"></div>
</afx-hbox>
<div data-height="5"></div>
</afx-vbox>
</afx-hbox>
</afx-tab-container>
</afx-hbox>
</afx-app-window>

View File

@ -0,0 +1,20 @@
<afx-app-window data-id = "blogger-send-mail-win" apptitle="Send mail" width="500" height="400" resizable = "false">
<afx-hbox>
<afx-menu data-width="150" data-id="email-list"></afx-menu>
<afx-resizer data-width="3"></afx-resizer>
<div data-width="5"></div>
<afx-vbox >
<div data-height="5"></div>
<afx-label data-height="20" text = "__(Title)"></afx-label>
<input type = "text" data-height="20" name="title" data-id = "mail-title"></input>
<afx-label data-height = "20" text = "Content" ></afx-label>
<textarea name="content" data-id = "contentarea" ></textarea>
<div data-height="5"></div>
<afx-hbox data-height = "30">
<div></div>
<afx-button iconclass = "fa fa-paper-plane" data-id = "bt-sendmail" data-width="60" text = "__(Send)"></afx-button>
</afx-hbox>
</afx-vbox>
<div data-width="5"></div>
</afx-hbox>
</afx-app-window>

View File

@ -0,0 +1,32 @@
local data = ...
-- print(data.content)
local error_msg = {}
local iserror = false
local tmp_name = "/tmp/"..os.time(os.date("!*t"))
local file = io.open (tmp_name , "w")
if file then
file:write("From: mrsang@lxsang.me\n")
file:write("Subject: " .. data.title .. "\n")
file:write( data.content.."\n")
file:close()
for k,v in pairs(data.to) do
print("sent to:"..v)
local to = v
local cmd = 'cat ' ..tmp_name .. '| sendmail ' .. to
--print(cmd)
local r = os.execute(cmd)
if not r then
iserror = true
table.insert(error_msg, v)
print("Unable to send mail to: "..v)
end
end
else
iserror = true
table.insert(error_msg, "Cannot create mail file")
end
local result = {}
result.error = iserror
result.result = error_msg
return result

Binary file not shown.

View File

@ -1,6 +1,5 @@
<afx-app-window data-id = "blogger-cv-sec-win" apptitle="Porforlio section" width="450" height="400"> <afx-app-window data-id = "blogger-cv-sec-win" apptitle="Porforlio section" width="450" height="400">
<afx-vbox > <afx-vbox padding="5">
<div data-height="5"></div>
<afx-hbox data-height = "30" > <afx-hbox data-height = "30" >
<afx-label data-width= "70" text = "__(Title)"></afx-label> <afx-label data-width= "70" text = "__(Title)"></afx-label>
<input type = "text" name="title" input-class = "user-input"></input> <input type = "text" name="title" input-class = "user-input"></input>
@ -23,10 +22,9 @@
<div data-id="editor-container"> <div data-id="editor-container">
<textarea name="content" data-id = "contentarea" ></textarea> <textarea name="content" data-id = "contentarea" ></textarea>
</div> </div>
<afx-hbox data-height = "35"> <div data-height = "35" style="text-align: right;">
<div></div>
<afx-switch data-id = "section-publish" data-width="30"></afx-switch> <afx-switch data-id = "section-publish" data-width="30"></afx-switch>
<afx-button iconclass = "fa fa-save" data-id = "bt-cv-sec-save" data-width="60" text = "__(Save)"></afx-button> <afx-button iconclass = "fa fa-save" data-id = "bt-cv-sec-save" text = "__(Save)"></afx-button>
</afx-hbox> </div>
</afx-vbox> </afx-vbox>
</afx-app-window> </afx-app-window>

View File

@ -57,17 +57,16 @@ class BloggerCategoryDialog extends this.OS.GUI.BasicDialog
BloggerCategoryDialog.scheme = """ BloggerCategoryDialog.scheme = """
<afx-app-window width='300' height='400'> <afx-app-window width='300' height='400'>
<afx-vbox> <afx-vbox padding="5">
<afx-label text="__(Pick a parent)" data-height="25" class="lbl-header" ></afx-label> <afx-label text="__(Pick a parent)" data-height="25" class="lbl-header" ></afx-label>
<afx-tree-view data-id="tree" ></afx-tree-view> <afx-tree-view data-id="tree" ></afx-tree-view>
<afx-label text="__(Category name)" data-height="25" class="lbl-header" ></afx-label> <afx-label text="__(Category name)" data-height="25" class="lbl-header" ></afx-label>
<input type="text" data-height="25" data-id = "txtinput"/ > <input type="text" data-height="25" data-id = "txtinput"/ >
<afx-hbox data-height = '30'> <afx-hbox data-height = '35'>
<div style=' text-align:right;'> <div style=' text-align:right;'>
<afx-button data-id = "bt-ok" text = "__(Ok)"></afx-button> <afx-button data-id = "bt-ok" text = "__(Ok)"></afx-button>
<afx-button data-id = "bt-cancel" text = "__(Cancel)"></afx-button> <afx-button data-id = "bt-cancel" text = "__(Cancel)"></afx-button>
</div> </div>
<div data-width="5"></div>
</afx-hbox> </afx-hbox>
</afx-vbox> </afx-vbox>
</afx-app-window> </afx-app-window>

View File

@ -1,23 +1,3 @@
afx-app-window[data-id="blogger-win"] afx-tab-container[data-id="tabcontainer"] afx-tab-bar afx-list-view > div.list-container {
padding: 0;
margin: 0;
border-right: 1px solid #292929;
}
afx-app-window[data-id="blogger-win"] afx-tab-container[data-id="tabcontainer"] afx-tab-bar afx-list-view > div.list-container > ul li{
font-size: 15px;
padding:0;
width: 100%;
border-radius: 0;
border:0;
margin: 0;
text-align: center;
}
afx-app-window[data-id="blogger-win"] afx-tab-container[data-id="tabcontainer"] afx-tab-bar afx-list-view > div.list-container > ul li.selected {
background-color: #116cd6;
color:white;
}
afx-app-window[data-id="blogger-win"] afx-hbox[data-id="user-container"] afx-label i.label-text{ afx-app-window[data-id="blogger-win"] afx-hbox[data-id="user-container"] afx-label i.label-text{
font-weight: bold; font-weight: bold;
} }
@ -30,6 +10,12 @@ afx-app-window[data-id="blogger-win"] afx-hbox[data-id="cv-container"] .cat-head
text-align: center; text-align: center;
} }
afx-app-window[data-id="blogger-win"] .cv-side-bar-btn
{
text-align: right;
margin: 0;
padding: 0;
}
afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "cv-sec-list"] > .list-container > ul .afx-cv-sec-title .label-text{ afx-app-window[data-id="blogger-win"] afx-list-view[ data-id = "cv-sec-list"] > .list-container > ul .afx-cv-sec-title .label-text{
font-weight: bold; font-weight: bold;

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.2.7-a", "version":"0.2.8-a",
"category":"Internet", "category":"Internet",
"iconclass":"fa fa-book", "iconclass":"fa fa-book",
"dependencies": ["SimpleMDE@1.11.2-r","Katex@0.11.1-r"], "dependencies": ["SimpleMDE@1.11.2-r","Katex@0.11.1-r"],

View File

@ -1,6 +1,6 @@
<afx-app-window data-id = "blogger-win" apptitle="Blogger" width="600" height="500"> <afx-app-window data-id = "blogger-win" apptitle="Blogger" width="650" height="500">
<afx-hbox > <afx-hbox >
<afx-tab-container data-id = "tabcontainer" dir = "row" tabbarwidth= "22"> <afx-tab-container data-id = "tabcontainer" dir = "row" tabbarwidth= "40">
<afx-hbox data-id="user-container" data-height="100%" iconclass="fa fa-user-circle"> <afx-hbox data-id="user-container" data-height="100%" iconclass="fa fa-user-circle">
<afx-vbox> <afx-vbox>
@ -30,9 +30,8 @@
</afx-hbox> </afx-hbox>
<afx-label data-height = "30" text = "__(Short biblio)"></afx-label> <afx-label data-height = "30" text = "__(Short biblio)"></afx-label>
<textarea name="shortbiblio" input-class = "user-input"></textarea> <textarea name="shortbiblio" input-class = "user-input"></textarea>
<afx-hbox data-height = "35"> <afx-hbox data-height = "35" style="text-align: right;">
<div></div> <afx-button iconclass = "fa fa-save" data-id = "bt-user-save" text = "__(Save)"></afx-button>
<afx-button iconclass = "fa fa-save" data-id = "bt-user-save" data-width="60" text = "__(Save)"></afx-button>
</afx-hbox> </afx-hbox>
</afx-vbox> </afx-vbox>
</afx-hbox> </afx-hbox>
@ -42,20 +41,23 @@
<afx-vbox data-width="150" min-width="100"> <afx-vbox data-width="150" min-width="100">
<afx-label class="lbl-header" data-height = "23" text = "__(Categories)" iconclass = "fa fa-bars"></afx-label> <afx-label class="lbl-header" data-height = "23" text = "__(Categories)" iconclass = "fa fa-bars"></afx-label>
<afx-tree-view data-id = "cv-list" ></afx-tree-view> <afx-tree-view data-id = "cv-list" ></afx-tree-view>
<afx-hbox data-height="30" class = "cv-side-bar-btn"> <div data-height="35" class = "cv-side-bar-btn">
<afx-button data-id = "cv-cat-add" data-width = "25" text = "" iconclass = "fa fa-plus-circle"></afx-button> <afx-button data-id = "cv-cat-add" text = "" iconclass = "fa fa-plus-circle"></afx-button>
<afx-button data-id = "cv-cat-del" data-width = "25" text = "" iconclass = "fa fa-minus-circle"></afx-button> <afx-button data-id = "cv-cat-del" text = "" iconclass = "fa fa-minus-circle"></afx-button>
<afx-button data-id = "cv-cat-edit" data-width = "25" text = "" iconclass = "fa fa-pencil-square-o"></afx-button> <afx-button data-id = "cv-cat-edit" text = "" iconclass = "fa fa-pencil-square-o"></afx-button>
</afx-hbox> </div>
</afx-vbox> </afx-vbox>
<afx-resizer data-width = "2"></afx-resizer> <afx-resizer data-width = "2"></afx-resizer>
<afx-vbox> <afx-vbox>
<afx-list-view data-id = "cv-sec-list" ></afx-list-view> <afx-list-view data-id = "cv-sec-list" ></afx-list-view>
<afx-hbox data-height="30" class = "cv-side-bar-btn"> <afx-hbox data-height="35" >
<afx-label data-id = "cv-sec-status"></afx-label> <afx-label data-id = "cv-sec-status"></afx-label>
<afx-button data-id = "cv-sec-add" data-width = "25" text = "" iconclass = "fa fa-plus-circle"></afx-button> <div class = "cv-side-bar-btn">
<afx-button data-id = "cv-sec-edit" data-width = "25" text = "" iconclass = "fa fa-pencil-square-o"></afx-button> <afx-button data-id = "cv-sec-add" text = "" iconclass = "fa fa-plus-circle"></afx-button>
<afx-button data-id = "cv-sec-move" data-width = "25" text = "" iconclass = "fa fa-exchange"></afx-button> <afx-button data-id = "cv-sec-edit" text = "" iconclass = "fa fa-pencil-square-o"></afx-button>
<afx-button data-id = "cv-sec-move" text = "" iconclass = "fa fa-exchange"></afx-button>
</div>
</afx-hbox> </afx-hbox>
</afx-vbox> </afx-vbox>
<div data-width="5"></div> <div data-width="5"></div>

83
Booklet/build.json Normal file
View File

@ -0,0 +1,83 @@
{
"name": "Booklet",
"targets": {
"init": {
"jobs": [
{
"name": "vfs-mkdir",
"data": [
"build",
"build/debug",
"build/release"
]
}
]
},
"coffee": {
"require": [
"coffee"
],
"jobs": [
{
"name": "coffee-compile",
"data": {
"src": [
"coffees/main.coffee",
"coffees/common.coffee"
],
"dest": "build/debug/main.js"
}
}
]
},
"uglify": {
"require": [
"terser"
],
"jobs": [
{
"name": "terser-uglify",
"data": [
"build/debug/main.js"
]
}
]
},
"copy": {
"jobs": [
{
"name": "vfs-cp",
"data": {
"src": [
"assets/scheme.html",
"package.json",
"README.md",
"css/main.css"
],
"dest": "build/debug"
}
}
]
},
"release": {
"require": [
"zip"
],
"depend": [
"init",
"coffee",
"uglify",
"copy"
],
"jobs": [
{
"name": "zip-mk",
"data": {
"src": "build/debug",
"dest": "build/release/Booklet.zip"
}
}
]
}
}
}

Binary file not shown.

View File

@ -6,6 +6,7 @@ Clipper use `html2canvas` to capture AntOS desktop or a specific window.
It is able to crop the captured image before saving to a file It is able to crop the captured image before saving to a file
## Change logs ## Change logs
* v0.1.4-a minor changes to adapt to new AntOS v2.0.x
* v0.1.3-a change app category * v0.1.3-a change app category
* v0.1.2-a use ALT-S as global shortcut for screen capture * v0.1.2-a use ALT-S as global shortcut for screen capture
* v0.1.1-a use CTRL-S as global shortcut for screen capture * v0.1.1-a use CTRL-S as global shortcut for screen capture

View File

@ -1,7 +1,7 @@
<afx-app-window apptitle="Clipper" width="500" height="400" data-id="Clipper"> <afx-app-window apptitle="Clipper" width="500" height="400" data-id="Clipper">
<afx-hbox > <afx-hbox >
<afx-vbox> <afx-vbox>
<div data-height="30" data-id="toolbar"> <div data-height="35" data-id="toolbar">
<afx-button data-id="btnCptScreen" text="__(Capture screen)" iconclass="fa fa-camera-retro"></afx-button> <afx-button data-id="btnCptScreen" text="__(Capture screen)" iconclass="fa fa-camera-retro"></afx-button>
<afx-button data-id="btnCptWindow" text="__(Capture a window)" iconclass="fa fa-window-maximize"></afx-button> <afx-button data-id="btnCptWindow" text="__(Capture a window)" iconclass="fa fa-window-maximize"></afx-button>
<afx-button data-id="btnCrop" text="__(Crop)" toggle="true" selected="false" iconclass="fa fa-crop"></afx-button> <afx-button data-id="btnCrop" text="__(Crop)" toggle="true" selected="false" iconclass="fa fa-crop"></afx-button>

104
Clipper/build.json Normal file
View File

@ -0,0 +1,104 @@
{
"name": "Clipper",
"targets": {
"init": {
"jobs": [
{
"name": "vfs-mkdir",
"data": [
"build",
"build/debug",
"build/release"
]
}
]
},
"coffee": {
"require": [
"coffee"
],
"jobs": [
{
"name": "coffee-compile",
"data": {
"src": [
"coffees/main.coffee"
],
"dest": "build/debug/coffee-main.js"
}
}
]
},
"cat": {
"jobs": [
{
"name": "vfs-cat",
"data": {
"src": [
"build/debug/coffee-main.js",
"javascripts/html2canvas.js"
],
"dest": "build/debug/main.js"
}
},
{
"name": "vfs-rm",
"data": [
"build/debug/coffee-main.js"
]
}
]
},
"uglify": {
"require": [
"terser"
],
"jobs": [
{
"name": "terser-uglify",
"data": [
"build/debug/main.js"
]
}
]
},
"copy": {
"jobs": [
{
"name": "vfs-cp",
"data": {
"src": [
"assets/scheme.html",
"assets/bg.jpg",
"package.json",
"README.md",
"css/main.css"
],
"dest": "build/debug"
}
}
]
},
"release": {
"require": [
"zip"
],
"depend": [
"init",
"coffee",
"cat",
"uglify",
"copy"
],
"jobs": [
{
"name": "zip-mk",
"data": {
"src": "build/debug",
"dest": "build/release/Clipper.zip"
}
}
]
}
}
}

View File

@ -6,6 +6,7 @@ Clipper use `html2canvas` to capture AntOS desktop or a specific window.
It is able to crop the captured image before saving to a file It is able to crop the captured image before saving to a file
## Change logs ## Change logs
* v0.1.4-a minor changes to adapt to new AntOS v2.0.x
* v0.1.3-a change app category * v0.1.3-a change app category
* v0.1.2-a use ALT-S as global shortcut for screen capture * v0.1.2-a use ALT-S as global shortcut for screen capture
* v0.1.1-a use CTRL-S as global shortcut for screen capture * v0.1.1-a use CTRL-S as global shortcut for screen capture

View File

@ -1,4 +1,3 @@
afx-app-window[data-id = "Clipper"] div[data-id = "wrapper"] { afx-app-window[data-id = "Clipper"] div[data-id = "wrapper"] {
overflow: auto; overflow: auto;
background-image: url("bg.jpg"); background-image: url("bg.jpg");

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.3-a", "version":"0.1.4-a",
"category":"Utility", "category":"Utility",
"iconclass":"fa fa-scissors", "iconclass":"fa fa-scissors",
"mimes":["none"], "mimes":["none"],

View File

@ -1,7 +1,7 @@
<afx-app-window apptitle="Clipper" width="500" height="400" data-id="Clipper"> <afx-app-window apptitle="Clipper" width="500" height="400" data-id="Clipper">
<afx-hbox > <afx-hbox >
<afx-vbox> <afx-vbox>
<div data-height="30" data-id="toolbar"> <div data-height="35" data-id="toolbar">
<afx-button data-id="btnCptScreen" text="__(Capture screen)" iconclass="fa fa-camera-retro"></afx-button> <afx-button data-id="btnCptScreen" text="__(Capture screen)" iconclass="fa fa-camera-retro"></afx-button>
<afx-button data-id="btnCptWindow" text="__(Capture a window)" iconclass="fa fa-window-maximize"></afx-button> <afx-button data-id="btnCptWindow" text="__(Capture a window)" iconclass="fa fa-window-maximize"></afx-button>
<afx-button data-id="btnCrop" text="__(Crop)" toggle="true" selected="false" iconclass="fa fa-crop"></afx-button> <afx-button data-id="btnCrop" text="__(Crop)" toggle="true" selected="false" iconclass="fa fa-crop"></afx-button>

Binary file not shown.

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.3-a", "version":"0.1.4-a",
"category":"Utility", "category":"Utility",
"iconclass":"fa fa-scissors", "iconclass":"fa fa-scissors",
"mimes":["none"], "mimes":["none"],

View File

@ -3,4 +3,5 @@ A simple yet powerful code/text editor.
CodePad is a text editor based on the ACE editor. CodePad is a text editor based on the ACE editor.
## Change logs ## Change logs
- v0.1.6-a: adapt to new AntOS v2.0.x
- v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package - v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package

View File

@ -1,34 +1,7 @@
afx-app-window[data-id = "codepad"] .ace_editor { afx-app-window[data-id = "codepad"] .ace_editor {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace; font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
} }
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container
{
/*border-top: 1px solid #272822;*/
overflow: hidden;
overflow-x: auto;
font-size: 12px;
scrollbar-width: none;
/*scrollbar-color: #656565 transparent;*/
}
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar {
height: 0;
}
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar-track {
background: transparent;
}
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar-thumb {
background-color: #656565;
border: 0;
}
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container > ul
{
width: intrinsic;
width: -moz-max-content;
width: -webkit-max-content;
width: max-content;
}
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li.selected, afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li.selected,
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container > ul > afx-list-item > li.selected{ afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container > ul > afx-list-item > li.selected{
@ -40,14 +13,12 @@ afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-contai
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view afx-list-view i.closable:before { afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view afx-list-view i.closable:before {
color:afafaf; color:afafaf;
} }
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li, afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view ul .afx-list-item:nth-child(even) li,
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container > ul li{ afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container > ul li{
background-color:#333333; background-color:#333333;
color:#afafaf; color:#afafaf;
border-radius: 0; border-radius: 0;
border: 0; border: 0;
padding-top: 5px;
padding-bottom: 5px;
padding-right: 20px; padding-right: 20px;
border-right: 1px solid #272822; border-right: 1px solid #272822;
} }
@ -94,48 +65,6 @@ afx-app-window[data-id = "codepad"] .afx-window-wrapper div[data-id="statctn"] a
padding-left: 10px; padding-left: 10px;
} }
afx-app-window[data-id = "cmd-win"] .afx-window-wrapper{
border-radius: 0px;
border: 0;
/*border: 1px solid #37373d;*/
background-color: transparent;
box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.65);
}
afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view ul afx-list-item:nth-child(even) li
{
background-color: transparent;
}
afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view afx-list-item li{
background-color: transparent;
color:#afafaf;
}
afx-app-window[data-id = "cmd-win"] .afx-window-wrapper div.list-container > ul li:hover{
background-color: #37373d;
}
afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view ul afx-list-item:nth-child(even) li.selected,
afx-app-window[data-id = "cmd-win"] .afx-window-wrappe dafx-list-viewafx-list-view ul li.selected
{
background-color: #116cd6;
color:white;
}
afx-app-window[data-id = "cmd-win"] .afx-window-top{
height: 0;
border:0;
}
afx-app-window[data-id = "cmd-win"] input{
border: 1px solid #007acc;
border-radius: 0;
font-size: 12px;
color:#afafaf;
background-color:#272822;
padding-left: 5px;
margin: 3px;
}
afx-app-window[data-id = "cmd-win"] .afx-window-content{
background-color:#272822;
}
afx-app-window[data-id = "codepad"] div[data-id="output-tab"] { afx-app-window[data-id = "codepad"] div[data-id="output-tab"] {
overflow-y: auto; overflow-y: auto;

View File

@ -10,17 +10,17 @@
<afx-vbox> <afx-vbox>
<afx-hbox> <afx-hbox>
<afx-vbox data-id="left-panel"> <afx-vbox data-id="left-panel">
<afx-tab-bar closable="true" data-height="26" data-id = "left-tabbar"></afx-tab-bar> <afx-tab-bar closable="true" data-height="35" data-id = "left-tabbar"></afx-tab-bar>
<div data-id="left-editorarea"></div> <div data-id="left-editorarea"></div>
</afx-vbox> </afx-vbox>
<afx-resizer data-width="3"></afx-resizer> <afx-resizer data-width="3"></afx-resizer>
<afx-vbox data-id="right-panel"> <afx-vbox data-id="right-panel">
<afx-tab-bar closable="true" data-height="26" data-id = "right-tabbar"></afx-tab-bar> <afx-tab-bar closable="true" data-height="35" data-id = "right-tabbar"></afx-tab-bar>
<div data-id="right-editorarea"></div> <div data-id="right-editorarea"></div>
</afx-vbox> </afx-vbox>
</afx-hbox> </afx-hbox>
<afx-resizer data-height = "3" dir = "ve" attachnext = "true" ></afx-resizer> <afx-resizer data-height = "3" dir = "ve" attachnext = "true" ></afx-resizer>
<afx-tab-container data-id = "bottombar" data-height="150" min-height="150" tabbarheight= "22"> <afx-tab-container data-id = "bottombar" data-height="150" min-height="150" tabbarheight= "35">
<afx-hbox tabname="__(Output)" iconclass = "fa fa-file-text" class = "bottom-tab-content"> <afx-hbox tabname="__(Output)" iconclass = "fa fa-file-text" class = "bottom-tab-content">
<afx-button text = "" data-id="logger-clear" iconclass="fa fa-trash" data-width="21"></afx-button> <afx-button text = "" data-id="logger-clear" iconclass="fa fa-trash" data-width="21"></afx-button>
<div data-id="output-tab" iconclass = "fa fa-file-text" > <div data-id="output-tab" iconclass = "fa fa-file-text" >

View File

@ -3,4 +3,5 @@ A simple yet powerful code/text editor.
CodePad is a text editor based on the ACE editor. CodePad is a text editor based on the ACE editor.
## Change logs ## Change logs
- v0.1.6-a: adapt to new AntOS v2.0.x
- v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package - v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package

View File

@ -1,34 +1,7 @@
afx-app-window[data-id = "codepad"] .ace_editor { afx-app-window[data-id = "codepad"] .ace_editor {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace; font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
} }
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container
{
/*border-top: 1px solid #272822;*/
overflow: hidden;
overflow-x: auto;
font-size: 12px;
scrollbar-width: none;
/*scrollbar-color: #656565 transparent;*/
}
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar {
height: 0;
}
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar-track {
background: transparent;
}
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container::-webkit-scrollbar-thumb {
background-color: #656565;
border: 0;
}
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container > ul
{
width: intrinsic;
width: -moz-max-content;
width: -webkit-max-content;
width: max-content;
}
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li.selected, afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li.selected,
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container > ul > afx-list-item > li.selected{ afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container > ul > afx-list-item > li.selected{
@ -40,14 +13,12 @@ afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-contai
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view afx-list-view i.closable:before { afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view afx-list-view i.closable:before {
color:afafaf; color:afafaf;
} }
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view ul afx-list-item:nth-child(even) li, afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view ul .afx-list-item:nth-child(even) li,
afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container > ul li{ afx-app-window[data-id = "codepad"] afx-tab-bar> afx-list-view > div.list-container > ul li{
background-color:#333333; background-color:#333333;
color:#afafaf; color:#afafaf;
border-radius: 0; border-radius: 0;
border: 0; border: 0;
padding-top: 5px;
padding-bottom: 5px;
padding-right: 20px; padding-right: 20px;
border-right: 1px solid #272822; border-right: 1px solid #272822;
} }
@ -94,48 +65,6 @@ afx-app-window[data-id = "codepad"] .afx-window-wrapper div[data-id="statctn"] a
padding-left: 10px; padding-left: 10px;
} }
afx-app-window[data-id = "cmd-win"] .afx-window-wrapper{
border-radius: 0px;
border: 0;
/*border: 1px solid #37373d;*/
background-color: transparent;
box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.65);
}
afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view ul afx-list-item:nth-child(even) li
{
background-color: transparent;
}
afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view afx-list-item li{
background-color: transparent;
color:#afafaf;
}
afx-app-window[data-id = "cmd-win"] .afx-window-wrapper div.list-container > ul li:hover{
background-color: #37373d;
}
afx-app-window[data-id = "cmd-win"] .afx-window-wrapper afx-list-view ul afx-list-item:nth-child(even) li.selected,
afx-app-window[data-id = "cmd-win"] .afx-window-wrappe dafx-list-viewafx-list-view ul li.selected
{
background-color: #116cd6;
color:white;
}
afx-app-window[data-id = "cmd-win"] .afx-window-top{
height: 0;
border:0;
}
afx-app-window[data-id = "cmd-win"] input{
border: 1px solid #007acc;
border-radius: 0;
font-size: 12px;
color:#afafaf;
background-color:#272822;
padding-left: 5px;
margin: 3px;
}
afx-app-window[data-id = "cmd-win"] .afx-window-content{
background-color:#272822;
}
afx-app-window[data-id = "codepad"] div[data-id="output-tab"] { afx-app-window[data-id = "codepad"] div[data-id="output-tab"] {
overflow-y: auto; overflow-y: auto;

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
"email": "xsang.le@gmail.com", "email": "xsang.le@gmail.com",
"licences": "GPLv3" "licences": "GPLv3"
}, },
"version":"0.1.5-b", "version":"0.1.6-b",
"category":"Development", "category":"Development",
"iconclass":"fa fa-pencil-square-o", "iconclass":"fa fa-pencil-square-o",
"dependencies": ["ACECore@1.4.12-r"], "dependencies": ["ACECore@1.4.12-r"],

View File

@ -10,17 +10,17 @@
<afx-vbox> <afx-vbox>
<afx-hbox> <afx-hbox>
<afx-vbox data-id="left-panel"> <afx-vbox data-id="left-panel">
<afx-tab-bar closable="true" data-height="26" data-id = "left-tabbar"></afx-tab-bar> <afx-tab-bar closable="true" data-height="35" data-id = "left-tabbar"></afx-tab-bar>
<div data-id="left-editorarea"></div> <div data-id="left-editorarea"></div>
</afx-vbox> </afx-vbox>
<afx-resizer data-width="3"></afx-resizer> <afx-resizer data-width="3"></afx-resizer>
<afx-vbox data-id="right-panel"> <afx-vbox data-id="right-panel">
<afx-tab-bar closable="true" data-height="26" data-id = "right-tabbar"></afx-tab-bar> <afx-tab-bar closable="true" data-height="35" data-id = "right-tabbar"></afx-tab-bar>
<div data-id="right-editorarea"></div> <div data-id="right-editorarea"></div>
</afx-vbox> </afx-vbox>
</afx-hbox> </afx-hbox>
<afx-resizer data-height = "3" dir = "ve" attachnext = "true" ></afx-resizer> <afx-resizer data-height = "3" dir = "ve" attachnext = "true" ></afx-resizer>
<afx-tab-container data-id = "bottombar" data-height="150" min-height="150" tabbarheight= "22"> <afx-tab-container data-id = "bottombar" data-height="150" min-height="150" tabbarheight= "35">
<afx-hbox tabname="__(Output)" iconclass = "fa fa-file-text" class = "bottom-tab-content"> <afx-hbox tabname="__(Output)" iconclass = "fa fa-file-text" class = "bottom-tab-content">
<afx-button text = "" data-id="logger-clear" iconclass="fa fa-trash" data-width="21"></afx-button> <afx-button text = "" data-id="logger-clear" iconclass="fa fa-trash" data-width="21"></afx-button>
<div data-id="output-tab" iconclass = "fa fa-file-text" > <div data-id="output-tab" iconclass = "fa fa-file-text" >

Binary file not shown.

View File

@ -8,7 +8,7 @@
"email": "xsang.le@gmail.com", "email": "xsang.le@gmail.com",
"licences": "GPLv3" "licences": "GPLv3"
}, },
"version":"0.1.5-b", "version":"0.1.6-b",
"category":"Development", "category":"Development",
"iconclass":"fa fa-pencil-square-o", "iconclass":"fa fa-pencil-square-o",
"dependencies": ["ACECore@1.4.12-r"], "dependencies": ["ACECore@1.4.12-r"],

View File

@ -320,7 +320,8 @@ namespace OS {
this.bindKey("CTRL-ALT-B", () => this.build()); this.bindKey("CTRL-ALT-B", () => this.build());
this.fileview.ondragndrop = (e) => { this.fileview.ondragndrop = (e) => {
const src = e.data.from.data.path.asFileHandle(); //const src = e.data.from.data.path.asFileHandle();
const src = e.data.from[0].data.path.asFileHandle();
const des = e.data.to.data.path; const des = e.data.to.data.path;
return src return src
.move(`${des}/${src.basename}`) .move(`${des}/${src.basename}`)
@ -330,12 +331,12 @@ namespace OS {
if (p1.length < p2.length) { if (p1.length < p2.length) {
e.data.to.update(p1); e.data.to.update(p1);
(e.data (e.data
.from as GUI.tag.TreeViewTag).parent.update( .from[0] as GUI.tag.TreeViewTag).parent.update(
p2 p2
); );
} else { } else {
(e.data (e.data
.from as GUI.tag.TreeViewTag).parent.update( .from[0] as GUI.tag.TreeViewTag).parent.update(
p2 p2
); );
e.data.to.update(p1); e.data.to.update(p1);

View File

@ -2,4 +2,5 @@
View and edit files in diff mode View and edit files in diff mode
## Change logs ## Change logs
- 0.1.6-a: adapt to new AntOS v2.0.x
- Add dependencies - Add dependencies

View File

@ -4,7 +4,7 @@
<afx-file-view data-id="fileview" min-width="150" data-width="150" view="tree" status="false"></afx-file-view> <afx-file-view data-id="fileview" min-width="150" data-width="150" view="tree" status="false"></afx-file-view>
<afx-resizer data-width="3"></afx-resizer> <afx-resizer data-width="3"></afx-resizer>
<afx-vbox> <afx-vbox>
<afx-hbox data-height="20"> <afx-hbox data-height="30">
<afx-label data-id="left-file" class="file-label"></afx-label> <afx-label data-id="left-file" class="file-label"></afx-label>
<afx-label data-id="right-file" class="file-label"></afx-label> <afx-label data-id="right-file" class="file-label"></afx-label>
</afx-hbox> </afx-hbox>

View File

@ -2,4 +2,5 @@
View and edit files in diff mode View and edit files in diff mode
## Change logs ## Change logs
- 0.1.6-a: adapt to new AntOS v2.0.x
- Add dependencies - Add dependencies

View File

@ -7,7 +7,7 @@
"author": "", "author": "",
"edsdmail": "" "edsdmail": ""
}, },
"version":"0.1.5-a", "version":"0.1.6-a",
"category":"Development", "category":"Development",
"iconclass":"bi bi-file-diff-fill", "iconclass":"bi bi-file-diff-fill",
"mimes":["none"], "mimes":["none"],

View File

@ -4,7 +4,7 @@
<afx-file-view data-id="fileview" min-width="150" data-width="150" view="tree" status="false"></afx-file-view> <afx-file-view data-id="fileview" min-width="150" data-width="150" view="tree" status="false"></afx-file-view>
<afx-resizer data-width="3"></afx-resizer> <afx-resizer data-width="3"></afx-resizer>
<afx-vbox> <afx-vbox>
<afx-hbox data-height="20"> <afx-hbox data-height="30">
<afx-label data-id="left-file" class="file-label"></afx-label> <afx-label data-id="left-file" class="file-label"></afx-label>
<afx-label data-id="right-file" class="file-label"></afx-label> <afx-label data-id="right-file" class="file-label"></afx-label>
</afx-hbox> </afx-hbox>

View File

@ -7,7 +7,7 @@
"author": "", "author": "",
"edsdmail": "" "edsdmail": ""
}, },
"version":"0.1.5-a", "version":"0.1.6-a",
"category":"Development", "category":"Development",
"iconclass":"bi bi-file-diff-fill", "iconclass":"bi bi-file-diff-fill",
"mimes":["none"], "mimes":["none"],

View File

@ -2,6 +2,7 @@
Simple PDF document manager Simple PDF document manager
## Change logs ## Change logs
- v0.0.9-b: Adapt to support AntOS 2.0.x
- v0.0.8-b: Allow upload files directly from the app - v0.0.8-b: Allow upload files directly from the app
- v0.0.7-a: Change category and icon - v0.0.7-a: Change category and icon
- v0.0.6-a: Add print dialog (support server side printing) - v0.0.6-a: Add print dialog (support server side printing)

View File

@ -1,6 +1,5 @@
<afx-app-window apptitle="Docify" width="700" height="500" data-id="Docify"> <afx-app-window apptitle="Docify" width="700" height="500" data-id="Docify">
<afx-hbox > <afx-hbox padding="5">
<div data-width="5"></div>
<afx-vbox data-width="150"> <afx-vbox data-width="150">
<afx-label class="header" iconclass = "fa fa-bars" text="__(Categories)" data-height="22"></afx-label> <afx-label class="header" iconclass = "fa fa-bars" text="__(Categories)" data-height="22"></afx-label>
<afx-list-view data-id="catview"></afx-list-view> <afx-list-view data-id="catview"></afx-list-view>
@ -10,13 +9,12 @@
<afx-vbox data-width = "300"> <afx-vbox data-width = "300">
<afx-label class="header" iconclass = "fa fa-bars" text="__(Documents)" data-height="22"></afx-label> <afx-label class="header" iconclass = "fa fa-bars" text="__(Documents)" data-height="22"></afx-label>
<afx-list-view data-id="docview"></afx-list-view> <afx-list-view data-id="docview"></afx-list-view>
<afx-hbox data-height="30"> <div data-height="35" style="text-align: right;">
<div data-width="5"></div> <afx-button data-id="bt-add-doc" text = "" iconclass = "fa fa-plus-circle"></afx-button>
<afx-button data-id="bt-add-doc" data-width = "25" text = "" iconclass = "fa fa-plus-circle"></afx-button> <afx-button data-id="bt-del-doc" text = "" iconclass = "fa fa-minus-circle"></afx-button>
<afx-button data-id="bt-del-doc" data-width = "25" text = "" iconclass = "fa fa-minus-circle"></afx-button> <afx-button data-id="bt-edit-doc" text = "" iconclass = "fa fa-pencil-square-o"></afx-button>
<afx-button data-id="bt-edit-doc" data-width = "25" text = "" iconclass = "fa fa-pencil-square-o"></afx-button> <afx-button data-id="bt-upload-doc" text = "" iconclass = "bi bi-cloud-upload"></afx-button>
<afx-button data-id="bt-upload-doc" data-width = "25" text = "" iconclass = "bi bi-cloud-upload"></afx-button> </div>
</afx-hbox>
</afx-vbox> </afx-vbox>
<afx-resizer data-width="4"></afx-resizer> <afx-resizer data-width="4"></afx-resizer>
<afx-vbox> <afx-vbox>
@ -24,10 +22,10 @@
<canvas data-id="preview-canvas"></canvas> <canvas data-id="preview-canvas"></canvas>
</div> </div>
<afx-grid-view data-id="docgrid"></afx-grid-view> <afx-grid-view data-id="docgrid"></afx-grid-view>
<div style="text-align: right;" data-height="30" > <div style="text-align: right;" data-height="35" >
<afx-button text="__(Open)" data-id="btopen" ></afx-button> <afx-button text="" iconclass="bi bi-arrow-up-right-square" data-id="btopen" ></afx-button>
<afx-button text="__(Download)" data-id="btdld" ></afx-button> <afx-button text="" iconclass="bi bi-cloud-arrow-down" data-id="btdld" ></afx-button>
<afx-button text="__(Print on server)" data-id="btprint" ></afx-button> <afx-button text="" iconclass = "bi bi-printer" data-id="btprint" ></afx-button>
</div> </div>
</afx-vbox> </afx-vbox>
</afx-hbox> </afx-hbox>

View File

@ -2,6 +2,7 @@
Simple PDF document manager Simple PDF document manager
## Change logs ## Change logs
- v0.0.9-b: Adapt to support AntOS 2.0.x
- v0.0.8-b: Allow upload files directly from the app - v0.0.8-b: Allow upload files directly from the app
- v0.0.7-a: Change category and icon - v0.0.7-a: Change category and icon
- v0.0.6-a: Add print dialog (support server side printing) - v0.0.6-a: Add print dialog (support server side printing)

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@
"author": "", "author": "",
"email": "" "email": ""
}, },
"version":"0.0.8-b", "version":"0.0.9-b",
"category":"Office", "category":"Office",
"iconclass":"bi bi-collection-fill", "iconclass":"bi bi-collection-fill",
"mimes":["none"], "mimes":["none"],

View File

@ -1,6 +1,5 @@
<afx-app-window apptitle="Docify" width="700" height="500" data-id="Docify"> <afx-app-window apptitle="Docify" width="700" height="500" data-id="Docify">
<afx-hbox > <afx-hbox padding="5">
<div data-width="5"></div>
<afx-vbox data-width="150"> <afx-vbox data-width="150">
<afx-label class="header" iconclass = "fa fa-bars" text="__(Categories)" data-height="22"></afx-label> <afx-label class="header" iconclass = "fa fa-bars" text="__(Categories)" data-height="22"></afx-label>
<afx-list-view data-id="catview"></afx-list-view> <afx-list-view data-id="catview"></afx-list-view>
@ -10,13 +9,12 @@
<afx-vbox data-width = "300"> <afx-vbox data-width = "300">
<afx-label class="header" iconclass = "fa fa-bars" text="__(Documents)" data-height="22"></afx-label> <afx-label class="header" iconclass = "fa fa-bars" text="__(Documents)" data-height="22"></afx-label>
<afx-list-view data-id="docview"></afx-list-view> <afx-list-view data-id="docview"></afx-list-view>
<afx-hbox data-height="30"> <div data-height="35" style="text-align: right;">
<div data-width="5"></div> <afx-button data-id="bt-add-doc" text = "" iconclass = "fa fa-plus-circle"></afx-button>
<afx-button data-id="bt-add-doc" data-width = "25" text = "" iconclass = "fa fa-plus-circle"></afx-button> <afx-button data-id="bt-del-doc" text = "" iconclass = "fa fa-minus-circle"></afx-button>
<afx-button data-id="bt-del-doc" data-width = "25" text = "" iconclass = "fa fa-minus-circle"></afx-button> <afx-button data-id="bt-edit-doc" text = "" iconclass = "fa fa-pencil-square-o"></afx-button>
<afx-button data-id="bt-edit-doc" data-width = "25" text = "" iconclass = "fa fa-pencil-square-o"></afx-button> <afx-button data-id="bt-upload-doc" text = "" iconclass = "bi bi-cloud-upload"></afx-button>
<afx-button data-id="bt-upload-doc" data-width = "25" text = "" iconclass = "bi bi-cloud-upload"></afx-button> </div>
</afx-hbox>
</afx-vbox> </afx-vbox>
<afx-resizer data-width="4"></afx-resizer> <afx-resizer data-width="4"></afx-resizer>
<afx-vbox> <afx-vbox>
@ -24,10 +22,10 @@
<canvas data-id="preview-canvas"></canvas> <canvas data-id="preview-canvas"></canvas>
</div> </div>
<afx-grid-view data-id="docgrid"></afx-grid-view> <afx-grid-view data-id="docgrid"></afx-grid-view>
<div style="text-align: right;" data-height="30" > <div style="text-align: right;" data-height="35" >
<afx-button text="__(Open)" data-id="btopen" ></afx-button> <afx-button text="" iconclass="bi bi-arrow-up-right-square" data-id="btopen" ></afx-button>
<afx-button text="__(Download)" data-id="btdld" ></afx-button> <afx-button text="" iconclass="bi bi-cloud-arrow-down" data-id="btdld" ></afx-button>
<afx-button text="__(Print on server)" data-id="btprint" ></afx-button> <afx-button text="" iconclass = "bi bi-printer" data-id="btprint" ></afx-button>
</div> </div>
</afx-vbox> </afx-vbox>
</afx-hbox> </afx-hbox>

Binary file not shown.

View File

@ -185,11 +185,11 @@ DocDialog.scheme = """
<afx-app-window width='600' height='400'> <afx-app-window width='600' height='400'>
<afx-hbox> <afx-hbox>
<afx-vbox data-width="350"> <afx-vbox data-width="350">
<afx-hbox data-height="22"> <afx-hbox data-height="30">
<afx-label text = "__(title)" data-width="50"></afx-label> <afx-label text = "__(title)" data-width="50"></afx-label>
<input type="text" data-id="title"></input> <input type="text" data-id="title"></input>
</afx-hbox> </afx-hbox>
<afx-hbox data-height="22"> <afx-hbox data-height="30">
<afx-label text = "__(Day)" data-width="50"></afx-label> <afx-label text = "__(Day)" data-width="50"></afx-label>
<afx-list-view dropdown="true" data-id="dlist"></afx-list-view> <afx-list-view dropdown="true" data-id="dlist"></afx-list-view>
<afx-label text = "__(Month)"data-width="50" ></afx-label> <afx-label text = "__(Month)"data-width="50" ></afx-label>
@ -201,7 +201,7 @@ DocDialog.scheme = """
<afx-list-view data-id="file-list"></afx-list-view> <afx-list-view data-id="file-list"></afx-list-view>
<afx-label text = "__(Note)" data-height="22"></afx-label> <afx-label text = "__(Note)" data-height="22"></afx-label>
<textarea data-id="note"></textarea> <textarea data-id="note"></textarea>
<afx-hbox data-height = "27"> <afx-hbox data-height = "30">
<afx-label text = "__(Owner)" data-width="50"></afx-label> <afx-label text = "__(Owner)" data-width="50"></afx-label>
<afx-list-view dropdown="true" data-id="olist"></afx-list-view> <afx-list-view dropdown="true" data-id="olist"></afx-list-view>
<afx-label text = "__(Tags)" data-width="50"></afx-label> <afx-label text = "__(Tags)" data-width="50"></afx-label>
@ -212,7 +212,7 @@ DocDialog.scheme = """
<div data-id = "preview-container"> <div data-id = "preview-container">
<canvas data-id="preview-canvas"></canvas> <canvas data-id="preview-canvas"></canvas>
</div> </div>
<div style="text-align: right;" data-height="30" > <div style="text-align: right;" data-height="35" >
<afx-button text="__(Save)" data-id="btsave" ></afx-button> <afx-button text="__(Save)" data-id="btsave" ></afx-button>
</div> </div>
</afx-vbox> </afx-vbox>
@ -259,14 +259,14 @@ FilePreviewDialog.scheme = """
<afx-app-window width='400' height='400' apptitle = "__(Document preview)"> <afx-app-window width='400' height='400' apptitle = "__(Document preview)">
<afx-hbox> <afx-hbox>
<afx-vbox data-width="150"> <afx-vbox data-width="150">
<afx-label text = "__(Files)" data-height="22"></afx-label> <afx-label text = "__(Files)" data-height="25"></afx-label>
<afx-list-view data-id="file-list"></afx-list-view> <afx-list-view data-id="file-list"></afx-list-view>
</afx-vbox> </afx-vbox>
<afx-vbox> <afx-vbox>
<div data-id = "preview-container"> <div data-id = "preview-container">
<canvas data-id="preview-canvas"></canvas> <canvas data-id="preview-canvas"></canvas>
</div> </div>
<div style="text-align: right;" data-height="30" > <div style="text-align: right;" data-height="35" >
<afx-button text="__(Ok)" data-id="btok" ></afx-button> <afx-button text="__(Ok)" data-id="btok" ></afx-button>
</div> </div>
@ -295,7 +295,7 @@ class PrintDialog extends this.OS.GUI.BasicDialog
PrintDialog.scheme = """ PrintDialog.scheme = """
<afx-app-window width='300' height='300' data-id="DocifyPrintDialog" apptitle = "__(Print)"> <afx-app-window width='300' height='300' data-id="DocifyPrintDialog" apptitle = "__(Print)">
<afx-vbox> <afx-vbox>
<afx-label text = "__(Printer name)" data-height="22"></afx-label> <afx-label text = "__(Printer name)" data-height="25"></afx-label>
<input type="text" data-id="printerName" data-height="25"></input> <input type="text" data-id="printerName" data-height="25"></input>
<afx-label text = "__(Range)" data-height="22"></afx-label> <afx-label text = "__(Range)" data-height="22"></afx-label>
<div> <div>
@ -305,7 +305,7 @@ PrintDialog.scheme = """
<label for="1">Pages: </label> <label for="1">Pages: </label>
<input type="text" data-id="txtPageRange" ></input> <input type="text" data-id="txtPageRange" ></input>
</div> </div>
<afx-label text = "__(Orientation)" data-height="22"></afx-label> <afx-label text = "__(Orientation)" data-height="25"></afx-label>
<div> <div>
<input type="radio" name="orientation" value="0" checked ></input> <input type="radio" name="orientation" value="0" checked ></input>
<label for="0">Portrait</label><br> <label for="0">Portrait</label><br>
@ -321,7 +321,7 @@ PrintDialog.scheme = """
<input type="radio" name="side" value="2" ></input> <input type="radio" name="side" value="2" ></input>
<label for="2">Double side short edge</label> <label for="2">Double side short edge</label>
</div> </div>
<div data-height="30" style="text-align:right;"> <div data-height="35" style="text-align:right;">
<afx-button text="__(Print)" style="margin-right:5px;" data-id="btnprint"></afx-button> <afx-button text="__(Print)" style="margin-right:5px;" data-id="btnprint"></afx-button>
</div> </div>
</afx-vbox> </afx-vbox>

View File

@ -7,7 +7,7 @@
"author": "", "author": "",
"email": "" "email": ""
}, },
"version":"0.0.8-b", "version":"0.0.9-b",
"category":"Office", "category":"Office",
"iconclass":"bi bi-collection-fill", "iconclass":"bi bi-collection-fill",
"mimes":["none"], "mimes":["none"],

View File

@ -1 +1 @@
(function(){var t,i,e;(t=class t extends this.OS.GUI.BasicDialog{constructor(){super("ClientDialog",t.scheme)}main(){var t,i,e,n;if(super.main(),e=$(this.scheme).find("input[type=text]"),this.data)for(i=0,n=e.length;i<n;i++)t=e[i],this.data[t.name]&&(t.value=this.data[t.name]);return this.find("btncancel").onbtclick=()=>this.quit(),this.find("btnok").onbtclick=i=>{var n,a,s;for(n={},a=0,s=e.length;a<s;a++){if(""===(t=e[a]).value)return this.notify(__("Please enter all the fields"));n[t.name]=t.value}return this.handle&&this.handle(n),this.quit()}}}).scheme='<afx-app-window width=\'300\' height=\'160\'>\n <afx-hbox>\n <div data-width="5"></div>\n <afx-vbox>\n <div data-height="5"></div>\n <afx-label data-height="25" text = "__(Client name)"></afx-label>\n <input type="text" name="text" data-height="25" ></input>\n <div data-height="5"></div>\n <afx-label data-height="25" text = "__(URL)"></afx-label>\n <input type="text" name="url" data-height="25" ></input>\n <div data-height="30" style="text-align: right;">\n <afx-button data-id="btnok" text="__(Ok)"></afx-button>\n <afx-button data-id="btncancel" text="__(Cancel)"></afx-button>\n </div>\n </afx-vbox>\n <div data-width="5"></div>\n </afx-hbox>\n</afx-app-window>',(i=class i extends this.OS.GUI.BasicDialog{constructor(){super("ClientListDialog",i.scheme)}main(){return super.main(),this.clist=this.find("client-list"),this.clist.buttons=[{text:"",iconclass:"fa fa-plus-circle",onbtclick:i=>this.openDialog(new t,{title:__("Add new client")}).then(t=>(this.parent.setting.clients.push(t),this.clist.data=this.parent.setting.clients))},{text:"",iconclass:"fa fa-minus-circle",onbtclick:t=>{var i,e;if(e=this.clist.selectedItem,i=this.clist.selected,e)return this.ask({text:__("Do you realy want to delete: `{0}`",e.data.text)}).then(t=>{if(t)return this.parent.setting.clients.splice(i,1),this.clist.data=this.parent.setting.clients})}},{text:"",iconclass:"fa fa-pencil-square-o",onbtclick:i=>{var e;if(e=this.clist.selectedItem)return this.openDialog(new t,{title:__("Add new client"),text:e.data.text,url:e.data.url}).then(t=>{if(t)return e.data.text=t.text,e.data.url=t.url,this.clist.data=this.parent.setting.clients})}}],this.find("btnswitch").onbtclick=t=>{var i;if(i=this.clist.selectedItem)return this.parent.setting.curl=i.data.url,this.parent.setting.cname=i.data.text,this.parent.switchClient(),this.quit()},this.clist.data=this.parent.setting.clients}}).scheme='<afx-app-window width=\'200\' height=\'200\'>\n <afx-vbox>\n <afx-list-view data-id="client-list"></afx-list-view>\n <div data-height="30" style="text-align: right;">\n <afx-button text="__(Switch client)" data-id="btnswitch"></afx-button>\n <div>\n </afx-vbox>\n</afx-app-window>',(e=class extends this.OS.application.BaseApplication{constructor(t){super("GPClient",t)}main(){return this.setting.clients||(this.setting.clients=[]),this.container=this.find("container"),this.bindKey("CTRL-M",()=>this.openDialog(new i,{title:__("Client Manager")})),this.switchClient()}switchClient(){return this.setting.curl?(this.container.src=this.setting.curl,this.scheme.apptitle=this.setting.cname):this.notify(__("No client selected, manager client in menu Options > Client manager"))}menu(){return[{text:"__(Options)",nodes:[{text:"__(Client manager)",shortcut:"C-M"}],onchildselect:t=>this.openDialog(new i,{title:__("Client Manager")})}]}}).singleton=!0,this.OS.register("GPClient",e)}).call(this); (function(){var t,i,e;(t=class t extends this.OS.GUI.BasicDialog{constructor(){super("ClientDialog",t.scheme)}main(){var t,i,e,n;if(super.main(),e=$(this.scheme).find("input[type=text]"),this.data)for(i=0,n=e.length;i<n;i++)t=e[i],this.data[t.name]&&(t.value=this.data[t.name]);return this.find("btncancel").onbtclick=()=>this.quit(),this.find("btnok").onbtclick=i=>{var n,a,s;for(n={},a=0,s=e.length;a<s;a++){if(""===(t=e[a]).value)return this.notify(__("Please enter all the fields"));n[t.name]=t.value}return this.handle&&this.handle(n),this.quit()}}}).scheme='<afx-app-window width=\'400\' height=\'300\'>\n <afx-vbox padding="5">\n <afx-label data-height="25" text = "__(Client name)"></afx-label>\n <input type="text" name="text" data-height="30" ></input>\n <div data-height="5"></div>\n <afx-label data-height="25" text = "__(URL)"></afx-label>\n <input type="text" name="url" data-height="30" ></input>\n <div></div>\n <div data-height="35" style="text-align: right;">\n <afx-button data-id="btnok" text="__(Ok)"></afx-button>\n <afx-button data-id="btncancel" text="__(Cancel)"></afx-button>\n </div>\n </afx-vbox>\n</afx-app-window>',(i=class i extends this.OS.GUI.BasicDialog{constructor(){super("ClientListDialog",i.scheme)}main(){return super.main(),this.clist=this.find("client-list"),this.clist.buttons=[{text:"",iconclass:"fa fa-plus-circle",onbtclick:i=>this.openDialog(new t,{title:__("Add new client")}).then(t=>(this.parent.setting.clients.push(t),this.clist.data=this.parent.setting.clients))},{text:"",iconclass:"fa fa-minus-circle",onbtclick:t=>{var i,e;if(e=this.clist.selectedItem,i=this.clist.selected,e)return this.ask({text:__("Do you realy want to delete: `{0}`",e.data.text)}).then(t=>{if(t)return this.parent.setting.clients.splice(i,1),this.clist.data=this.parent.setting.clients})}},{text:"",iconclass:"fa fa-pencil-square-o",onbtclick:i=>{var e;if(e=this.clist.selectedItem)return this.openDialog(new t,{title:__("Add new client"),text:e.data.text,url:e.data.url}).then(t=>{if(t)return e.data.text=t.text,e.data.url=t.url,this.clist.data=this.parent.setting.clients})}}],this.find("btnswitch").onbtclick=t=>{var i;if(i=this.clist.selectedItem)return this.parent.setting.curl=i.data.url,this.parent.setting.cname=i.data.text,this.parent.switchClient(),this.quit()},this.clist.data=this.parent.setting.clients}}).scheme='<afx-app-window width=\'400\' height=\'300\'>\n <afx-vbox padding="5">\n <afx-list-view data-id="client-list"></afx-list-view>\n <div data-height="35" style="text-align: right;">\n <afx-button text="__(Switch client)" data-id="btnswitch"></afx-button>\n <div>\n </afx-vbox>\n</afx-app-window>',(e=class extends this.OS.application.BaseApplication{constructor(t){super("GPClient",t)}main(){return this.setting.clients||(this.setting.clients=[]),this.container=this.find("container"),this.bindKey("CTRL-M",()=>this.openDialog(new i,{title:__("Client Manager")})),this.switchClient()}switchClient(){return this.setting.curl?(this.container.src=this.setting.curl,this.scheme.apptitle=this.setting.cname):this.notify(__("No client selected, manager client in menu Options > Client manager"))}menu(){return[{text:"__(Options)",nodes:[{text:"__(Client manager)",shortcut:"C-M"}],onchildselect:t=>this.openDialog(new i,{title:__("Client Manager")})}]}}).singleton=!0,this.OS.register("GPClient",e)}).call(this);

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"email": "mrsang@iohub.dev" "email": "mrsang@iohub.dev"
}, },
"version":"0.1.3-a", "version":"0.1.4-a",
"category":"Internet", "category":"Internet",
"iconclass":"bi bi-hurricane", "iconclass":"bi bi-hurricane",
"mimes":["none"], "mimes":["none"],

Binary file not shown.

View File

@ -23,23 +23,19 @@ class ClientDialog extends this.OS.GUI.BasicDialog
@quit() @quit()
ClientDialog.scheme = """ ClientDialog.scheme = """
<afx-app-window width='300' height='160'> <afx-app-window width='400' height='300'>
<afx-hbox> <afx-vbox padding="5">
<div data-width="5"></div>
<afx-vbox>
<div data-height="5"></div>
<afx-label data-height="25" text = "__(Client name)"></afx-label> <afx-label data-height="25" text = "__(Client name)"></afx-label>
<input type="text" name="text" data-height="25" ></input> <input type="text" name="text" data-height="30" ></input>
<div data-height="5"></div> <div data-height="5"></div>
<afx-label data-height="25" text = "__(URL)"></afx-label> <afx-label data-height="25" text = "__(URL)"></afx-label>
<input type="text" name="url" data-height="25" ></input> <input type="text" name="url" data-height="30" ></input>
<div data-height="30" style="text-align: right;"> <div></div>
<div data-height="35" style="text-align: right;">
<afx-button data-id="btnok" text="__(Ok)"></afx-button> <afx-button data-id="btnok" text="__(Ok)"></afx-button>
<afx-button data-id="btncancel" text="__(Cancel)"></afx-button> <afx-button data-id="btncancel" text="__(Cancel)"></afx-button>
</div> </div>
</afx-vbox> </afx-vbox>
<div data-width="5"></div>
</afx-hbox>
</afx-app-window> </afx-app-window>
""" """
# #
@ -107,10 +103,10 @@ class ClientListDialog extends this.OS.GUI.BasicDialog
@clist.data = @parent.setting.clients @clist.data = @parent.setting.clients
ClientListDialog.scheme = """ ClientListDialog.scheme = """
<afx-app-window width='200' height='200'> <afx-app-window width='400' height='300'>
<afx-vbox> <afx-vbox padding="5">
<afx-list-view data-id="client-list"></afx-list-view> <afx-list-view data-id="client-list"></afx-list-view>
<div data-height="30" style="text-align: right;"> <div data-height="35" style="text-align: right;">
<afx-button text="__(Switch client)" data-id="btnswitch"></afx-button> <afx-button text="__(Switch client)" data-id="btnswitch"></afx-button>
<div> <div>
</afx-vbox> </afx-vbox>

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"email": "mrsang@iohub.dev" "email": "mrsang@iohub.dev"
}, },
"version":"0.1.3-a", "version":"0.1.4-a",
"category":"Internet", "category":"Internet",
"iconclass":"bi bi-hurricane", "iconclass":"bi bi-hurricane",
"mimes":["none"], "mimes":["none"],

View File

@ -14,6 +14,7 @@ graph.base_dir = "home://workspace/repo-git".asFileHandle();
``` ```
## Change logs: ## Change logs:
- v0.1.5-b: Adapt to new AntOS UI API
- v0.1.4-b: Fetch changes on a commit based on current commit and its left most parent commit - v0.1.4-b: Fetch changes on a commit based on current commit and its left most parent commit
- v0.1.3-b: Support open Git repo with open with dialog - v0.1.3-b: Support open Git repo with open with dialog
- v0.1.2-b: fix init bug - v0.1.2-b: fix init bug

View File

@ -14,6 +14,7 @@ graph.base_dir = "home://workspace/repo-git".asFileHandle();
``` ```
## Change logs: ## Change logs:
- v0.1.5-b: Adapt to new AntOS UI API
- v0.1.4-b: Fetch changes on a commit based on current commit and its left most parent commit - v0.1.4-b: Fetch changes on a commit based on current commit and its left most parent commit
- v0.1.3-b: Support open Git repo with open with dialog - v0.1.3-b: Support open Git repo with open with dialog
- v0.1.2-b: fix init bug - v0.1.2-b: fix init bug

View File

@ -7,7 +7,7 @@
"author": "Dany LE", "author": "Dany LE",
"email": "contact@iohub.dev" "email": "contact@iohub.dev"
}, },
"version":"0.1.4-b", "version":"0.1.5-b",
"category":"Development", "category":"Development",
"iconclass":"bi bi-git", "iconclass":"bi bi-git",
"mimes":["dir"], "mimes":["dir"],

View File

@ -1,6 +1,6 @@
<afx-app-window apptitle="LibGitGraph" width="600" height="400" data-id="GitGraph"> <afx-app-window apptitle="LibGitGraph" width="650" height="500" data-id="GitGraph">
<afx-vbox> <afx-vbox>
<afx-hbox data-height="25"> <afx-hbox data-height="35">
<afx-button data-width="24" iconclass = "bi bi-folder2-open" data-id="btn-open"></afx-button> <afx-button data-width="24" iconclass = "bi bi-folder2-open" data-id="btn-open"></afx-button>
<afx-label data-id="txt-repo"></afx-label> <afx-label data-id="txt-repo"></afx-label>
</afx-hbox> </afx-hbox>

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More