Skip to content

Commit

Permalink
chore: bump dependencies
Browse files Browse the repository at this point in the history
chore: bump ocp

Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Oct 29, 2024
1 parent f08dcc4 commit db07b7d
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 @@ -34,6 +34,8 @@

<script>
import VuePdfEditor from '@libresign/vue-pdf-editor'

Check failure on line 36 in src/Components/PdfEditor/PdfEditor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

No default export found in imported module "@libresign/vue-pdf-editor"
import { GlobalWorkerOptions } from 'pdfjs-dist'

Check failure on line 37 in src/Components/PdfEditor/PdfEditor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

"pdfjs-dist" is extraneous
import pdfWorkerCode from 'pdfjs-dist/legacy/build/pdf.worker.min.mjs'

Check failure on line 38 in src/Components/PdfEditor/PdfEditor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

"pdfjs-dist" is extraneous
import Signature from './Signature.vue'
Expand All @@ -54,6 +56,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 @@ -59,6 +59,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 db07b7d

Please sign in to comment.