Skip to content

Commit

Permalink
Merge pull request #3832 from LibreSign/chore/bump-dependencies
Browse files Browse the repository at this point in the history
chore: bump dependencies
  • Loading branch information
vitormattos authored Oct 29, 2024
2 parents 1ffdb13 + 4e2e8f0 commit b0e439e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 31 deletions.
61 changes: 31 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"dependencies": {
"@fontsource/dancing-script": "^5.1.0",
"@libresign/vue-pdf-editor": "^1.2.7",
"@libresign/vue-pdf-editor": "^1.3.7",
"@marionebl/option": "^1.0.8",
"@nextcloud/auth": "^2.4.0",
"@nextcloud/axios": "^2.5.1",
Expand Down
5 changes: 5 additions & 0 deletions src/Components/PdfEditor/PdfEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

<script>
import VuePdfEditor from '@libresign/vue-pdf-editor'
import { GlobalWorkerOptions } from 'pdfjs-dist'
import pdfWorkerCode from 'pdfjs-dist/legacy/build/pdf.worker.min.mjs'
import Signature from './Signature.vue'
Expand All @@ -58,6 +60,9 @@ export default {
default: false,
},
},
async mounted() {
GlobalWorkerOptions.workerSrc = pdfWorkerCode
},
methods: {
endInit(event) {
this.$emit('pdf-editor:end-init', { ...event })
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ module.exports = merge(nextcloudWebpackConfig, {
resourceQuery: /raw/,
type: 'asset/source',
},
{
test: /pdf\.worker(\.min)?\.mjs$/,
type: 'asset/resource'
},
],
},
cache: true,
Expand Down

0 comments on commit b0e439e

Please sign in to comment.