mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-13 01:54:00 +01:00
feat: add initial project setup with core PDF tools and utilities
- Implement core PDF manipulation tools (split, merge, convert, etc.) - Add state management and UI utilities - Set up build configuration with Vite and TailwindCSS - Include essential dependencies for PDF processing - Add gitignore and basic project configuration files
This commit is contained in:
commit
671297320e
79 files changed
+21792
No files matched your search
@@ -0,0 +1,16 @@
|
||||
export const state = {
|
||||
activeTool: null,
|
||||
files: [],
|
||||
pdfDoc: null,
|
||||
pdfPages: [],
|
||||
currentPdfUrl: null,
|
||||
};
|
||||
|
||||
// Resets the state when switching views or completing an operation.
|
||||
export function resetState() {
|
||||
state.activeTool = null;
|
||||
state.files = [];
|
||||
state.pdfDoc = null;
|
||||
state.pdfPages = [];
|
||||
document.getElementById('tool-content').innerHTML = '';
|
||||
}
|
||||
Reference in new issue
Block a user