fix(PDF Signature Checker): fix reading problem

Update pdf-signature-reader to latest version (recently updated with some changes of pdf-signature-reader-jpc)
Updated View PEM to a better display with copy
Fix #937
This commit is contained in:
sharevb 2024-04-02 09:09:48 +02:00 committed by ShareVB
parent d3b32cc14e
commit 172c617b2f
4 changed files with 14 additions and 14 deletions

1
components.d.ts vendored
View file

@ -159,6 +159,7 @@ declare module '@vue/runtime-core' {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
RsaKeyPairGenerator: typeof import('./src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue')['default']
SafelinkDecoder: typeof import('./src/tools/safelink-decoder/safelink-decoder.vue')['default']
SlugifyString: typeof import('./src/tools/slugify-string/slugify-string.vue')['default']
SpanCopyable: typeof import('./src/components/SpanCopyable.vue')['default']
SqlPrettify: typeof import('./src/tools/sql-prettify/sql-prettify.vue')['default']

View file

@ -76,7 +76,7 @@
"netmask": "^2.0.2",
"node-forge": "^1.3.1",
"oui-data": "^1.0.10",
"pdf-signature-reader": "^1.4.2",
"pdf-signature-reader": "^1.4.3",
"pinia": "^2.0.34",
"plausible-tracker": "^0.3.8",
"qrcode": "^1.5.1",

20
pnpm-lock.yaml generated
View file

@ -129,8 +129,8 @@ dependencies:
specifier: ^1.0.10
version: 1.0.10
pdf-signature-reader:
specifier: ^1.4.2
version: 1.4.2
specifier: ^1.4.3
version: 1.4.3
pinia:
specifier: ^2.0.34
version: 2.0.34(typescript@5.2.2)(vue@3.3.4)
@ -3351,7 +3351,7 @@ packages:
dependencies:
'@unhead/dom': 0.5.1
'@unhead/schema': 0.5.1
'@vueuse/shared': 10.7.2(vue@3.3.4)
'@vueuse/shared': 10.9.0(vue@3.3.4)
unhead: 0.5.1
vue: 3.3.4
transitivePeerDependencies:
@ -3993,10 +3993,10 @@ packages:
- vue
dev: false
/@vueuse/shared@10.7.2(vue@3.3.4):
resolution: {integrity: sha512-qFbXoxS44pi2FkgFjPvF4h7c9oMDutpyBdcJdMYIMg9XyXli2meFMuaKn+UMgsClo//Th6+beeCgqweT/79BVA==}
/@vueuse/shared@10.9.0(vue@3.3.4):
resolution: {integrity: sha512-Uud2IWncmAfJvRaFYzv5OHDli+FbOzxiVEQdLCKQKLyhz94PIyFC3CHcH7EDMwIn8NPtD06+PNbC/PiO0LGLtw==}
dependencies:
vue-demi: 0.14.6(vue@3.3.4)
vue-demi: 0.14.7(vue@3.3.4)
transitivePeerDependencies:
- '@vue/composition-api'
- vue
@ -7358,8 +7358,8 @@ packages:
through: 2.3.8
dev: true
/pdf-signature-reader@1.4.2:
resolution: {integrity: sha512-qQbmFv6nv4SQt2gmaalaREhHu3x2XyLG2+zL4Gl4D2TL2Zfii1EKxlFhJDsduP8s06t26snDoSwEAQtJOtprmQ==}
/pdf-signature-reader@1.4.3:
resolution: {integrity: sha512-hBIeID5dxNKOpMdfVhrpczkNC56gTzWBOzAv7PXxxvxVDsqOOeP86M/Jiy96cA2FogXEIzJrXccKGhirJZ+6Gg==}
dependencies:
base64-js: 1.5.1
ieee754: 1.2.1
@ -9151,8 +9151,8 @@ packages:
vue: 3.3.4
dev: false
/vue-demi@0.14.6(vue@3.3.4):
resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==}
/vue-demi@0.14.7(vue@3.3.4):
resolution: {integrity: sha512-EOG8KXDQNwkJILkx/gPcoL/7vH+hORoBaKgGe+6W7VFMvCYJfmF2dGbvgDroVnI8LU7/kTu8mbjRZGBU1z9NTA==}
engines: {node: '>=12'}
hasBin: true
requiresBuild: true

View file

@ -1,5 +1,6 @@
<script setup lang="ts">
import type { SignatureInfo } from '../pdf-signature-checker.types';
import TextareaCopyable from '@/components/TextareaCopyable.vue';
const props = defineProps<{ signature: SignatureInfo }>();
const { signature } = toRefs(props);
@ -88,9 +89,7 @@ const certs = computed(() => signature.value.meta.certs.map((certificate, index)
<template #pemCertificate="{ value }">
<c-modal-value :value="value" label="View PEM cert">
<template #value>
<div break-all text-xs>
{{ value }}
</div>
<TextareaCopyable text-xs :value="value" copy-placement="none" />
</template>
</c-modal-value>
</template>