1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 23:00:57 +00:00

Pdf viewer (#5574)

* [pdf viewer] use the latest PDFjs(v3.8.162)

* [pdf viewer] redesigned it: added side panel(thumbnail panel) and bottom bar(includes side panel toggle, 'file page manager', and 'zoom manager')

* [pdf file view] added 'print' to the top-right toolbar
This commit is contained in:
llj
2023-08-09 18:54:58 +08:00
committed by GitHub
parent 780ea56662
commit 542e54ad05
190 changed files with 90909 additions and 12404 deletions

View File

@@ -117,6 +117,13 @@ class FileToolbar extends React.Component {
return (
<Fragment>
<ButtonGroup className="d-none d-md-block">
{fileType == 'PDF' && (
<IconButton
id="seafile-pdf-print"
icon="fa fa-print"
text={gettext('Print')}
/>
)}
<IconButton
id="open-parent-folder"
icon="fa fa-folder-open"
@@ -195,9 +202,9 @@ class FileToolbar extends React.Component {
</DropdownItem>
)}
{filePerm == 'rw' && (
<a href={`${siteRoot}repo/file_revisions/${repoID}/?p=${encodeURIComponent(filePath)}&referer=${encodeURIComponent(location.href)}`} className="dropdown-item">
{gettext('History')}
</a>
<a href={`${siteRoot}repo/file_revisions/${repoID}/?p=${encodeURIComponent(filePath)}&referer=${encodeURIComponent(location.href)}`} className="dropdown-item">
{gettext('History')}
</a>
)}
</DropdownMenu>
</ButtonDropdown>