chore: update image sources and version bump to 1.2.0
- Changed image sources for GDPR, CCPA, and HIPAA compliance logos to local paths. - Updated package version to 1.2.0 in package-lock.json. - Enhanced README and SIMPLE_MODE documentation with Docker usage instructions. - Improved table-of-contents worker and related TypeScript definitions for better clarity and functionality. - Refactored CSS styles for consistency and improved UI elements.
This commit is contained in:
4
public/workers/table-of-contents.worker.d.ts
vendored
4
public/workers/table-of-contents.worker.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
declare const coherentpdf: typeof import("../../src/types/coherentpdf.global").coherentpdf;
|
||||
declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
|
||||
|
||||
interface GenerateTOCMessage {
|
||||
command: 'generate-toc';
|
||||
@@ -19,4 +19,4 @@ interface TOCErrorResponse {
|
||||
message: string;
|
||||
}
|
||||
|
||||
type TOCResponse = TOCSuccessResponse | TOCErrorResponse;
|
||||
type TOCResponse = TOCSuccessResponse | TOCErrorResponse;
|
||||
|
||||
@@ -19,7 +19,8 @@ function generateTableOfContentsInWorker(
|
||||
coherentpdf.deletePdf(pdf);
|
||||
self.postMessage({
|
||||
status: 'error',
|
||||
message: 'This PDF does not have any bookmarks. Please add bookmarks first using the Bookmark tool.',
|
||||
message:
|
||||
'This PDF does not have any bookmarks. Please add bookmarks first using the Bookmark tool.',
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -39,7 +40,10 @@ function generateTableOfContentsInWorker(
|
||||
} catch (error) {
|
||||
self.postMessage({
|
||||
status: 'error',
|
||||
message: error instanceof Error ? error.message : 'Unknown error occurred during table of contents generation.',
|
||||
message:
|
||||
error instanceof Error
|
||||
? error.message
|
||||
: 'Unknown error occurred during table of contents generation.',
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -54,4 +58,4 @@ self.onmessage = (e) => {
|
||||
e.data.addBookmark
|
||||
);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user