Commit Graph

23 Commits

Author SHA1 Message Date
treamz
87f8c55da0 Sync prod working changes: new tools (regex/favicon), queue/session/storage/ws libs, video/compress/pdf/redirects updates 2026-07-24 16:45:55 +03:00
treamz
f16a2ac32d Add Yandex Metrika to all 19 pages, clean dashboard about stats 2026-03-22 11:56:07 +03:00
treamz
560bf4a043 PDF: remove step numbers (1/2/3/4) — cleaner UI without confusing numbering 2026-03-22 11:01:30 +03:00
treamz
06d9adf7d5 Fix duplicate badges, custom logout modal, cache bust v3
- Remove duplicate badges on md, parser, placeholder pages
- Custom logout modal (blur overlay, confirm/cancel buttons)
- Replace native confirm() with styled modal
- Cache bust shared.js?v=3
2026-03-22 10:47:51 +03:00
treamz
89345551ef Unified headers: centered with badge tags on all 12 tool pages
- All pages: centered header with animated badge (format tags)
- Badge format: colored dot + tech tags (PNG·JPG·WebP etc)
- Updated descriptions to be more detailed
- Consistent style across compress, video, http, redirects, password,
  pdf, parser, md, sanitizer, converter, formatter, placeholder
2026-03-22 10:45:38 +03:00
treamz
26f122c4fe Cache bust: shared.js?v=2 on all pages to force sidebar refresh 2026-03-22 10:43:50 +03:00
treamz
53b01aa711 PDF: remove watermark tab and panel 2026-03-22 10:39:09 +03:00
treamz
8c1a692459 PDF: hide step 3+4 headers for pages tab (inline actions only) 2026-03-22 10:37:25 +03:00
treamz
782149e3fa PDF: undo delete pages (30 sec window)
- Undo button appears after deleting pages
- Restores original file with all pages
- Re-renders all grids with restored pages
- Auto-hides after 30 seconds
2026-03-22 10:32:56 +03:00
treamz
9711b1b3d3 PDF UX: hide main Execute button for pages tab, reset download on tab switch
- Pages tab (delete/rotate/reorder) has inline action buttons, no main Execute
- Download link hidden when switching tabs
- Result section reset on tab switch
2026-03-22 10:31:11 +03:00
treamz
119cfd29f5 PDF merge: drag-and-drop file sorting for merge order
- Sortable file list with drag handles in merge panel
- Visual order numbers, file info (pages, size)
- Drag to reorder files before merging
- mergeOrder state synced with file list changes
- Execute uses mergeOrder for merge API call
2026-03-22 10:28:33 +03:00
treamz
b8b1339309 PDF UX: instant rotate, delete all protection, reorder >1 only
- Rotate: click page = instant rotate + sync (no select+button)
- Delete: cannot delete all pages (error message)
- Reorder: grid only shown when >1 page
- Visual feedback: rotated page dims, hint shows progress
2026-03-22 10:26:55 +03:00
treamz
9193a98bc4 PDF sync: operations update all tabs (delete/rotate/reorder)
- After any page operation, result PDF re-uploaded as new working file
- All grids (delete/rotate/reorder) refresh with updated pages
- File list updates with new page count
- Previews regenerated from modified PDF
- Seamless workflow: delete pages → rotate remaining → reorder
2026-03-22 01:48:53 +03:00
treamz
93952d0844 PDF UX: auto-reorder on drag, visual delete animation, remove apply button
- Reorder: drag-drop auto-saves after 800ms, no button needed
- Delete: selected pages fade out + shrink on delete click
- Delete button shows Удаление... state
- Reorder hint shows Сохранение.../Порядок сохранён
- Better drop positioning (left/right of target)
2026-03-22 01:46:48 +03:00
treamz
78c181aa6c Fix PDF result: dont hide stepConfig (stepResult is inside it) 2026-03-22 01:44:39 +03:00
treamz
816753c925 PDF pages: visual rotate/delete/reorder with action buttons
- Delete: click pages (red highlight), counter, Удалить выбранные (N) button
- Rotate: click pages (visual rotation preview 90/180/270), Повернуть button
- Reorder: drag-and-drop thumbnails, visual number update, Применить button
- CSS: rotation transforms, delete/drag states, action bar with buttons
- Direct execute functions (bypass main execute flow)
2026-03-22 01:42:26 +03:00
treamz
6bf2a0b6a1 Fix PDF: page grids render on file select, delete validation 2026-03-22 01:39:32 +03:00
treamz
88e2e12f7c Fix PDF: move page grid code inside IIFE (ReferenceError fix) 2026-03-22 01:36:25 +03:00
treamz
3bcf109e08 Fix PDF: remove illegal em-dash character from JS code (SyntaxError) 2026-03-22 01:34:45 +03:00
treamz
b631df2687 Fix PDF pages: use grid thumbnails instead of removed input elements
- Fixed JS references to removed deletePages/rotatePages/reorderPages inputs
- Execute function now reads from visual page grid selections
- Fixed reorder URL (/pdf/reorder instead of /pdf/rotate)
- Preview API confirmed working (200, image/png)
2026-03-22 01:27:31 +03:00
treamz
f03262fbec PDF: visual page thumbnails for delete/rotate/reorder
- Replace text inputs with visual page grid (thumbnails)
- Click to select pages for delete/rotate
- Drag to reorder pages (visual)
- Thumbnails loaded lazily from /pdf/preview/:id/:page
- Selected pages highlighted with blue border + checkmark
- Grid auto-fills, max-height with scroll
2026-03-22 01:24:44 +03:00
treamz
4bd90b26bc PDF preview: thumbnails via Ghostscript, preview in file cards
- GET /pdf/preview/:fileId — renders first page as PNG (72 DPI)
- GET /pdf/preview/:fileId/:page — specific page preview
- GET /pdf/thumbnails/:fileId — list of all page preview URLs
- File cards show actual PDF thumbnail instead of icon
- Cached previews (30 min cleanup)
- Fallback to PDF icon if preview fails
2026-03-22 01:22:25 +03:00
treamz
378c1a075e Add PDF tools: merge, split, rotate, delete, watermark, compress, convert, protect
- 15 API endpoints for PDF operations (pdf-lib, pdf-parse, Ghostscript)
- Frontend with 8 operation tabs
- Merge multiple PDFs, split by page ranges
- Rotate/delete/reorder pages
- Add watermark text, page numbers
- Compress via Ghostscript (screen/ebook/printer quality)
- PDF to PNG/JPG, Images to PDF
- Password protection, text extraction
- Added to sidebar, dashboard (Utils category), DB
2026-03-22 01:10:37 +03:00