mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-11-07 22:18:29 +01:00
update Docify
This commit is contained in:
parent
6eb9400e69
commit
d4af424168
@ -2,4 +2,5 @@
|
||||
Simple PDF document manager
|
||||
|
||||
## Change logs
|
||||
- v0.0.4-a: Display file size in entry meta-data
|
||||
- v0.0.3-a: Fix document moved bug, sort entries by year, month, day
|
@ -259,6 +259,10 @@ handle.get_doc = function(id)
|
||||
return error("Unable to select data from "..param.table)
|
||||
else
|
||||
r = r[1]
|
||||
local ret, meta = vfs.fileinfo(r.file)
|
||||
if ret then
|
||||
r.fileinfo = meta
|
||||
end
|
||||
local o = sqlite.select(db, "owners", "*", "id = "..r.oid)
|
||||
sqlite.dbclose(db)
|
||||
if o == nil or #o == 0 then
|
||||
|
@ -2,4 +2,5 @@
|
||||
Simple PDF document manager
|
||||
|
||||
## Change logs
|
||||
- v0.0.4-a: Display file size in entry meta-data
|
||||
- v0.0.3-a: Fix document moved bug, sort entries by year, month, day
|
@ -259,6 +259,10 @@ handle.get_doc = function(id)
|
||||
return error("Unable to select data from "..param.table)
|
||||
else
|
||||
r = r[1]
|
||||
local ret, meta = vfs.fileinfo(r.file)
|
||||
if ret then
|
||||
r.fileinfo = meta
|
||||
end
|
||||
local o = sqlite.select(db, "owners", "*", "id = "..r.oid)
|
||||
sqlite.dbclose(db)
|
||||
if o == nil or #o == 0 then
|
||||
|
File diff suppressed because one or more lines are too long
@ -7,7 +7,7 @@
|
||||
"author": "",
|
||||
"email": ""
|
||||
},
|
||||
"version":"0.0.3-a",
|
||||
"version":"0.0.4-a",
|
||||
"category":"Other",
|
||||
"iconclass":"fa fa-adn",
|
||||
"mimes":["none"],
|
||||
|
Binary file not shown.
@ -82,6 +82,7 @@ class Docify extends this.OS.application.BaseApplication
|
||||
return @error d.error if d.error
|
||||
@preview d.result.file, @docpreview
|
||||
rows = []
|
||||
d.result.size = (d.result.fileinfo.size / 1024.0).toFixed(2) + " Kb" if d.result.fileinfo
|
||||
map = {
|
||||
ctime: "Created on",
|
||||
mtime: "Modified on",
|
||||
@ -90,7 +91,8 @@ class Docify extends this.OS.application.BaseApplication
|
||||
name: "Title",
|
||||
owner: "Owner",
|
||||
edate: "Effective date",
|
||||
file: "File"
|
||||
file: "File",
|
||||
size: "Size"
|
||||
}
|
||||
d.result.edate = "#{d.result.day}/#{d.result.month}/#{d.result.year}"
|
||||
for key, value of d.result
|
||||
|
@ -7,7 +7,7 @@
|
||||
"author": "",
|
||||
"email": ""
|
||||
},
|
||||
"version":"0.0.3-a",
|
||||
"version":"0.0.4-a",
|
||||
"category":"Other",
|
||||
"iconclass":"fa fa-adn",
|
||||
"mimes":["none"],
|
||||
|
Loading…
Reference in New Issue
Block a user