mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-09-18 09:29:24 +00:00
Delete dead files
This commit is contained in:
parent
4376efcd09
commit
deccfbaea0
5
frontend/knip.json
Normal file
5
frontend/knip.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"ignore": [
|
||||||
|
"public/js/thirdParty/cookieconsent.umd.js"
|
||||||
|
]
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
58353
frontend/public/pdf.worker.js
vendored
58353
frontend/public/pdf.worker.js
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
import { defineConfig } from 'vitest/config'
|
|
||||||
|
|
||||||
export default defineConfig({
|
|
||||||
test: {
|
|
||||||
environment: 'node',
|
|
||||||
testTimeout: 5000,
|
|
||||||
include: ['src/utils/convertUtils.test.ts']
|
|
||||||
},
|
|
||||||
})
|
|
Loading…
x
Reference in New Issue
Block a user