Delete dead files

This commit is contained in:
James Brunton 2025-09-05 16:28:39 +01:00
parent 4376efcd09
commit deccfbaea0
6 changed files with 7 additions and 58398 deletions

5
frontend/knip.json Normal file
View File

@ -0,0 +1,5 @@
{
"ignore": [
"public/js/thirdParty/cookieconsent.umd.js"
]
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,13 +0,0 @@
const reportWebVitals = onPerfEntry => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
};
export default reportWebVitals;

View File

@ -31,7 +31,8 @@ class PDFWorkerManager {
*/ */
private initializeWorker(): void { private initializeWorker(): void {
if (!this.isInitialized) { if (!this.isInitialized) {
GlobalWorkerOptions.workerSrc = '/pdf.worker.js'; // Use the worker from node_modules instead of local copy
GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker.min.js', import.meta.url).toString();
this.isInitialized = true; this.isInitialized = true;
} }
} }

View File

@ -1,9 +0,0 @@
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
environment: 'node',
testTimeout: 5000,
include: ['src/utils/convertUtils.test.ts']
},
})