mirror of
https://github.com/alam00000/bentopdf.git
synced 2025-12-23 22:28:49 -05:00
- Add Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers to nginx.conf for enhanced security - Create serve.json configuration file with security headers for local development - Update npm scripts to use vite preview instead of serve package for consistency - Fix PDF viewer file parameter handling to prevent fallback to default URL - Enable annotation editor mode by default in PDF viewers (annotationEditorMode: 1) - Improve PDF preference management by clearing conflicting annotation editor settings before loading - Update iframe URL construction to use URL API for proper origin handling - Refactor annotation viewer setup to use eventBus for stamp button activation instead of direct DOM manipulation - Add localStorage preference configuration for signature editor and permissions in sign tool - Enhance security posture by implementing COOP/COEP headers required for SharedArrayBuffer and cross-origin isolation
68 lines
1.8 KiB
JSON
68 lines
1.8 KiB
JSON
// {
|
|
// "compilerOptions": {
|
|
// "target": "ES2022",
|
|
// "useDefineForClassFields": true,
|
|
// "module": "ESNext",
|
|
// "lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
// "types": ["vite/client"],
|
|
// "skipLibCheck": true,
|
|
|
|
// /* Bundler mode */
|
|
// "moduleResolution": "bundler",
|
|
// "allowImportingTsExtensions": true,
|
|
// "verbatimModuleSyntax": true,
|
|
// "moduleDetection": "force",
|
|
// "noEmit": true,
|
|
|
|
// /* Linting */
|
|
// "strict": true,
|
|
// "noUnusedLocals": true,
|
|
// "noUnusedParameters": true,
|
|
// "erasableSyntaxOnly": true,
|
|
// "noFallthroughCasesInSwitch": true,
|
|
// "noUncheckedSideEffectImports": true
|
|
// },
|
|
// "include": ["src"]
|
|
// }
|
|
|
|
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "ESNext",
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable", "WebWorker"],
|
|
"types": ["vite/client", "vitest/globals"], // Added vitest/globals
|
|
|
|
/* Easier module handling for Vite */
|
|
"moduleResolution": "bundler",
|
|
"allowJs": true,
|
|
"checkJs": false,
|
|
"skipLibCheck": true,
|
|
"noEmit": true,
|
|
"allowImportingTsExtensions": true,
|
|
|
|
/* Disable strict checks for now */
|
|
"strict": false,
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": false,
|
|
"noFallthroughCasesInSwitch": false,
|
|
"noUncheckedSideEffectImports": false,
|
|
|
|
/* Fix for ArrayBuffer type issues */
|
|
"noImplicitAny": false,
|
|
|
|
/* Quality-of-life options */
|
|
"isolatedModules": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
|
|
/* Path aliases (optional but helpful) */
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["./src/*"]
|
|
}
|
|
},
|
|
"include": ["src", "src/**/*.ts", "public/workers"], // Updated to include all TS files
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|