mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-13 01:54:00 +01:00
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:
1 parent
661c030ae1
commit
bc181c8c96
16 files changed
+652
-320
No files matched your search
+2
-2
@@ -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