update docify + add libplotly

This commit is contained in:
lxsang 2021-11-21 13:32:22 +01:00
parent e863fef93d
commit 5022dc189f
20 changed files with 322 additions and 5 deletions

View File

@ -2,6 +2,7 @@
Simple PDF document manager
## Change logs
- v0.0.8-b: Allow upload files directly from the app
- v0.0.7-a: Change category and icon
- v0.0.6-a: Add print dialog (support server side printing)
- v0.0.5-a: Fix delete file bug

View File

@ -15,6 +15,7 @@
<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" data-width = "25" text = "" iconclass = "fa fa-minus-circle"></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" data-width = "25" text = "" iconclass = "bi bi-cloud-upload"></afx-button>
</afx-hbox>
</afx-vbox>
<afx-resizer data-width="4"></afx-resizer>

83
Docify/build.json Normal file
View File

@ -0,0 +1,83 @@
{
"name": "Docify",
"targets": {
"init": {
"jobs": [
{
"name": "vfs-mkdir",
"data": [
"build",
"build/debug",
"build/release"
]
}
]
},
"coffee": {
"require": [
"coffee"
],
"jobs": [
{
"name": "coffee-compile",
"data": {
"src": [
"coffees/dialogs.coffee",
"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",
"api/api.lua",
"package.json",
"README.md"
],
"dest": "build/debug"
}
}
]
},
"release": {
"require": [
"zip"
],
"depend": [
"init",
"coffee",
"uglify",
"copy"
],
"jobs": [
{
"name": "zip-mk",
"data": {
"src": "build/debug",
"dest": "build/release/Docify.zip"
}
}
]
}
}
}

View File

@ -2,6 +2,7 @@
Simple PDF document manager
## Change logs
- v0.0.8-b: Allow upload files directly from the app
- v0.0.7-a: Change category and icon
- v0.0.6-a: Add print dialog (support server side printing)
- v0.0.5-a: Fix delete file bug

File diff suppressed because one or more lines are too long

View File

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

View File

@ -15,6 +15,7 @@
<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" data-width = "25" text = "" iconclass = "fa fa-minus-circle"></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" data-width = "25" text = "" iconclass = "bi bi-cloud-upload"></afx-button>
</afx-hbox>
</afx-vbox>
<afx-resizer data-width="4"></afx-resizer>

Binary file not shown.

View File

@ -150,7 +150,12 @@ class Docify extends this.OS.application.BaseApplication
@clear_preview()
.catch (e) =>
@error e.toString(), e
@find("bt-upload-doc").onbtclick = (e) =>
"#{@setting.docpath}/unclassified".asFileHandle().upload()
.then (r) =>
@notify __("File uploaded")
.catch (e) =>
@error e.toString(), e
@find("bt-edit-doc").onbtclick = (e) =>
item = @docview.selectedItem
catiem = @catview.selectedItem

View File

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

5
libplotly/README.md Normal file
View File

@ -0,0 +1,5 @@
# libplotly
Built on top of d3.js and stack.gl, Plotly.js is a high-level, declarative charting library. plotly.js ships with over 40 chart types, including 3D charts, statistical graphs, and SVG maps.
plotly.js is free and open source and you can view the source, [report issues or contribute on GitHub](https://github.com/plotly/plotly.js).
This package is the AntOS wrapper of Plotly used as library for AntOS applications

45
libplotly/build.json Normal file
View File

@ -0,0 +1,45 @@
{
"name": "libplotly",
"targets":{
"clean": {
"jobs": [
{
"name": "vfs-rm",
"data": ["build/debug","build/release"]
}
]
},
"copy": {
"jobs": [
{
"name": "vfs-mkdir",
"data": ["build", "build/debug", "build/release"]
},
{
"name": "vfs-cp",
"data": {
"src": [
"main.js",
"package.json",
"README.md"
],
"dest":"build/debug"
}
}
]
},
"release": {
"depend": ["clean","copy"],
"require": ["zip"],
"jobs": [
{
"name": "zip-mk",
"data": {
"src":"build/debug",
"dest":"build/release/libplotly.zip"
}
}
]
}
}
}

View File

@ -0,0 +1,5 @@
# libplotly
Built on top of d3.js and stack.gl, Plotly.js is a high-level, declarative charting library. plotly.js ships with over 40 chart types, including 3D charts, statistical graphs, and SVG maps.
plotly.js is free and open source and you can view the source, [report issues or contribute on GitHub](https://github.com/plotly/plotly.js).
This package is the AntOS wrapper of Plotly used as library for AntOS applications

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,15 @@
{
"pkgname": "libplotly",
"name":"Plotly",
"description":"Plotly: Javascript data visualization library",
"info":{
"author": "Dany LE",
"email": "mrsang@iohub.dev"
},
"version":"2.6.2-r",
"category":"Library",
"iconclass":"fa fa-cog",
"mimes":["none"],
"dependencies":[],
"locale": {}
}

Binary file not shown.

65
libplotly/main.js Normal file

File diff suppressed because one or more lines are too long

15
libplotly/package.json Normal file
View File

@ -0,0 +1,15 @@
{
"pkgname": "libplotly",
"name":"Plotly",
"description":"Plotly: Javascript data visualization library",
"info":{
"author": "Dany LE",
"email": "mrsang@iohub.dev"
},
"version":"2.6.2-r",
"category":"Library",
"iconclass":"fa fa-cog",
"mimes":["none"],
"dependencies":[],
"locale": {}
}

View File

@ -135,7 +135,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Docify/README.md",
"category": "Office",
"author": "",
"version": "0.0.7-a",
"version": "0.0.8-b",
"dependencies": [],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Docify/build/release/Docify.zip"
},
@ -229,6 +229,16 @@
"dependencies": [],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libpdfjs/build/release/libpdfjs.zip"
},
{
"pkgname": "libplotly",
"name": "Plotly",
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libplotly/README.md",
"category": "Library",
"author": "Dany LE",
"version": "2.6.2-r",
"dependencies": [],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libplotly/build/release/libplotly.zip"
},
{
"pkgname": "libthreejs",
"name": "libthreejs",