Skip to content

Commit e4e9897

Browse files
silverwindGiteaBot
andauthored
Add PDF rendering via PDFObject (#24086)
Use [PDFObject](https://pdfobject.com/) to embed PDFs, replacing our outdated PDF.js copy we vendor (the last non-webpack vendoring). [Commit 1](673e026) is the PDFObject integration [Commit 2](9336f57) is the removal of PDF.js <img width="1251" alt="Screenshot 2023-05-27 at 09 57 52" src="https://github.com/go-gitea/gitea/assets/115237/169ce50c-bd1d-4bb0-86e5-1710bd0400a9"> <img width="1257" alt="Screenshot 2023-05-27 at 10 12 50" src="https://github.com/go-gitea/gitea/assets/115237/318f7ee9-fb11-4093-83e7-17475aa70629"> Fallback for unsupporting browsers (most mobile ones, except Firefox Mobile): <img width="358" alt="Screenshot 2023-05-27 at 09 43 34" src="https://github.com/go-gitea/gitea/assets/115237/8c12d7ba-57d6-4228-89a0-5fef9fad0cbb"> --------- Co-authored-by: Giteabot <[email protected]>
1 parent 35ce7ca commit e4e9897

File tree

412 files changed

+61
-124050
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

412 files changed

+61
-124050
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
*.tmpl linguist-language=Handlebars
33
/assets/*.json linguist-generated
44
/public/img/svg/*.svg linguist-generated
5-
/public/vendor/** -text -eol linguist-vendored
65
/templates/swagger/v1_json.tmpl linguist-generated
76
/vendor/** -text -eol linguist-vendored
87
/web_src/fomantic/build/** linguist-generated

.ignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
/modules/options/bindata.go
44
/modules/public/bindata.go
55
/modules/templates/bindata.go
6-
/public/vendor/plugins
76
/vendor
87
node_modules

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"minimatch": "9.0.1",
3838
"monaco-editor": "0.38.0",
3939
"monaco-editor-webpack-plugin": "7.0.1",
40+
"pdfobject": "2.2.11",
4041
"pretty-ms": "8.0.0",
4142
"sortablejs": "1.15.0",
4243
"swagger-ui-dist": "4.19.0",

public/vendor/plugins/pdfjs/LICENSE

Lines changed: 0 additions & 177 deletions
This file was deleted.

0 commit comments

Comments
 (0)