()
| 92 | // Initialize the taskbar and preview panel via the shared module |
| 93 | let memeTrayUI = null |
| 94 | function initMemeTrayComponents() { |
| 95 | try { |
| 96 | memeTrayUI = initMemeTrayUI({ |
| 97 | taskbar: { |
| 98 | containerId: 'taskbar', |
| 99 | showClock: true, |
| 100 | showTrayIcon: true, |
| 101 | showSystemIcons: true |
| 102 | }, |
| 103 | preview: { |
| 104 | containerId: 'previewPanel', |
| 105 | title: 'GIF Preview', |
| 106 | dragHint: 'Drag & Drop GIF files here', |
| 107 | pasteHint: 'or paste with Ctrl+V', |
| 108 | downloadAllText: 'Download All as ZIP', |
| 109 | clearAllText: 'Clear All' |
| 110 | } |
| 111 | }) |
| 112 | |
| 113 | console.log('MemeTray UI initialized successfully') |
| 114 | } catch (err) { |
| 115 | console.error('Failed to initialize MemeTray UI:', err) |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | // Register event listeners |
| 120 | function setupEventListeners() { |
no test coverage detected