minimal support for cbr/cbz documents

This commit is contained in:
j 2025-07-07 08:40:09 +01:00
commit 28f36879bc
14 changed files with 3312 additions and 6 deletions

View file

@ -97,6 +97,16 @@ pandora.ui.document = function() {
width: that.width(),
zoom: 'fit'
})
: Ox.contains(['cbr', 'cbz'], item.extension)
? Ox.CBRViewer({
height: that.height() - 16,
page: pandora.user.ui.documents[item.id]
? pandora.user.ui.documents[item.id].position
: 1,
url: '/documents/' + item.id + '/' + pandora.safeDocumentName(item.title) + '.' + item.extension + '?' + item.modified,
width: that.width(),
zoom: 'fit'
})
: item.extension == 'html'
? pandora.$ui.textPanel = pandora.ui.textPanel(item, $toolbar)
: Ox.ImageViewer({