feat: initial commit — OST to PST/MBOX converter with Docker support
Some checks failed
Build & Push Multi-Arch Image / build-and-push (push) Has been cancelled
Some checks failed
Build & Push Multi-Arch Image / build-and-push (push) Has been cancelled
This commit is contained in:
280
public/app.js
Normal file
280
public/app.js
Normal file
@@ -0,0 +1,280 @@
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const dropZone = document.getElementById('drop-zone');
|
||||
const fileInput = document.getElementById('file-input');
|
||||
const fileDetails = document.getElementById('file-details');
|
||||
const fileNameEl = document.getElementById('file-name');
|
||||
const fileSizeEl = document.getElementById('file-size');
|
||||
const btnCancelFile = document.getElementById('btn-cancel-file');
|
||||
const btnConvert = document.getElementById('btn-convert');
|
||||
|
||||
const progressContainer = document.getElementById('progress-container');
|
||||
const progressStatus = document.getElementById('progress-status');
|
||||
const progressPercentage = document.getElementById('progress-percentage');
|
||||
const progressBarFill = document.getElementById('progress-bar-fill');
|
||||
|
||||
const terminalContainer = document.getElementById('terminal-container');
|
||||
const terminalLogs = document.getElementById('terminal-logs');
|
||||
|
||||
const successContainer = document.getElementById('success-container');
|
||||
const outFileNameEl = document.getElementById('out-file-name');
|
||||
const btnDownload = document.getElementById('btn-download');
|
||||
const btnReset = document.getElementById('btn-reset');
|
||||
|
||||
let selectedFile = null;
|
||||
let eventSource = null;
|
||||
|
||||
// Helper: format bytes to human readable format
|
||||
function formatBytes(bytes, decimals = 2) {
|
||||
if (bytes === 0) return '0 Bytes';
|
||||
const k = 1024;
|
||||
const dm = decimals < 0 ? 0 : decimals;
|
||||
const sizes = ['Bytes', 'KB', 'MB', 'GB'];
|
||||
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
||||
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
||||
}
|
||||
|
||||
// Handle Drag & Drop events
|
||||
['dragenter', 'dragover'].forEach(eventName => {
|
||||
dropZone.addEventListener(eventName, (e) => {
|
||||
e.preventDefault();
|
||||
dropZone.classList.add('dragover');
|
||||
}, false);
|
||||
});
|
||||
|
||||
['dragleave', 'drop'].forEach(eventName => {
|
||||
dropZone.addEventListener(eventName, (e) => {
|
||||
e.preventDefault();
|
||||
dropZone.classList.remove('dragover');
|
||||
}, false);
|
||||
});
|
||||
|
||||
dropZone.addEventListener('drop', (e) => {
|
||||
const dt = e.dataTransfer;
|
||||
const files = dt.files;
|
||||
if (files.length > 0) {
|
||||
handleFileSelection(files[0]);
|
||||
}
|
||||
});
|
||||
|
||||
fileInput.addEventListener('change', (e) => {
|
||||
if (fileInput.files.length > 0) {
|
||||
handleFileSelection(fileInput.files[0]);
|
||||
}
|
||||
});
|
||||
|
||||
function handleFileSelection(file) {
|
||||
if (!file.name.toLowerCase().endsWith('.ost')) {
|
||||
alert('Please select an Outlook OST file (.ost).');
|
||||
return;
|
||||
}
|
||||
selectedFile = file;
|
||||
fileNameEl.textContent = file.name;
|
||||
fileSizeEl.textContent = formatBytes(file.size);
|
||||
|
||||
dropZone.classList.add('hidden');
|
||||
fileDetails.classList.remove('hidden');
|
||||
}
|
||||
|
||||
btnCancelFile.addEventListener('click', () => {
|
||||
resetUI();
|
||||
});
|
||||
|
||||
// Reset UI to initial state
|
||||
function resetUI() {
|
||||
selectedFile = null;
|
||||
fileInput.value = '';
|
||||
if (eventSource) {
|
||||
eventSource.close();
|
||||
eventSource = null;
|
||||
}
|
||||
|
||||
dropZone.classList.remove('hidden');
|
||||
fileDetails.classList.add('hidden');
|
||||
progressContainer.classList.add('hidden');
|
||||
successContainer.classList.add('hidden');
|
||||
document.getElementById('summary-card').classList.add('hidden');
|
||||
|
||||
progressBarFill.style.width = '0%';
|
||||
progressPercentage.textContent = '0%';
|
||||
terminalLogs.innerHTML = '<div class="log-line system">Waiting for process start...</div>';
|
||||
}
|
||||
|
||||
// Show/hide the combine-VCF sub-option based on selected format
|
||||
const vcfCombineWrap = document.getElementById('vcf-combine-wrap');
|
||||
document.querySelectorAll('input[name="output-format"]').forEach(radio => {
|
||||
radio.addEventListener('change', () => {
|
||||
if (radio.value === 'mbox' && radio.checked) {
|
||||
vcfCombineWrap.classList.remove('hidden');
|
||||
} else {
|
||||
vcfCombineWrap.classList.add('hidden');
|
||||
document.getElementById('combine-vcf').checked = false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Convert button click handler
|
||||
btnConvert.addEventListener('click', () => {
|
||||
if (!selectedFile) return;
|
||||
|
||||
// Update UI states
|
||||
fileDetails.classList.add('hidden');
|
||||
progressContainer.classList.remove('hidden');
|
||||
progressStatus.textContent = 'Uploading OST file to local server...';
|
||||
|
||||
// Start file upload
|
||||
uploadFile(selectedFile);
|
||||
});
|
||||
|
||||
function uploadFile(file) {
|
||||
const xhr = new XMLHttpRequest();
|
||||
const formData = new FormData();
|
||||
formData.append('ostFile', file);
|
||||
|
||||
const selectedFormat = document.querySelector('input[name="output-format"]:checked').value;
|
||||
formData.append('format', selectedFormat);
|
||||
|
||||
const combineVcf = document.getElementById('combine-vcf').checked;
|
||||
formData.append('combineVcf', combineVcf ? 'true' : 'false');
|
||||
// Upload progress listener
|
||||
xhr.upload.addEventListener('progress', (e) => {
|
||||
if (e.lengthComputable) {
|
||||
const percentComplete = Math.round((e.loaded / e.total) * 100);
|
||||
progressBarFill.style.width = percentComplete + '%';
|
||||
progressPercentage.textContent = percentComplete + '%';
|
||||
}
|
||||
});
|
||||
|
||||
xhr.onload = () => {
|
||||
if (xhr.status === 200) {
|
||||
const response = JSON.parse(xhr.responseText);
|
||||
startStream(response.taskId);
|
||||
} else {
|
||||
showError('Upload failed: ' + (xhr.statusText || 'Server error'));
|
||||
}
|
||||
};
|
||||
|
||||
xhr.onerror = () => {
|
||||
showError('Network error occurred during upload.');
|
||||
};
|
||||
|
||||
xhr.open('POST', '/api/upload', true);
|
||||
xhr.send(formData);
|
||||
}
|
||||
|
||||
function startStream(taskId) {
|
||||
progressStatus.textContent = 'Converting OST to PST (processing folders)...';
|
||||
progressBarFill.style.width = '100%';
|
||||
progressPercentage.textContent = 'Running';
|
||||
// Terminal is always visible in the right column — no toggle needed
|
||||
|
||||
eventSource = new EventSource(`/api/stream/${taskId}`);
|
||||
|
||||
eventSource.onmessage = (event) => {
|
||||
const data = JSON.parse(event.data);
|
||||
|
||||
if (data.status === 'starting') {
|
||||
appendLog(data.message, 'system');
|
||||
} else if (data.status === 'running') {
|
||||
const log = data.log;
|
||||
// Filter out Java compiler noise (deprecation warnings, caret markers, raw code lines)
|
||||
if (log.trim() === '^' ||
|
||||
/^\s+\w.*new MboxrdStorageWriter/.test(log) ||
|
||||
/\.java:\d+: warning:/.test(log) ||
|
||||
/\d+ warning/.test(log)) {
|
||||
return; // Silently drop compiler noise
|
||||
}
|
||||
// Style warnings/errors/successes
|
||||
let type = '';
|
||||
if (log.toLowerCase().includes('warning') || log.toLowerCase().includes('skipping')) type = 'warning';
|
||||
else if (log.toLowerCase().includes('error')) type = 'error';
|
||||
else if (log.toLowerCase().includes('success') || log.toLowerCase().includes('completed')) type = 'system';
|
||||
appendLog(log, type);
|
||||
} else if (data.status === 'completed') {
|
||||
eventSource.close();
|
||||
showSuccess(data.fileName, data.downloadUrl, data.summary);
|
||||
} else if (data.status === 'failed') {
|
||||
eventSource.close();
|
||||
showError(data.error);
|
||||
}
|
||||
};
|
||||
|
||||
eventSource.onerror = (err) => {
|
||||
console.error('SSE Error:', err);
|
||||
eventSource.close();
|
||||
showError('Lost connection to conversion engine.');
|
||||
};
|
||||
}
|
||||
|
||||
function appendLog(message, type = '') {
|
||||
const logLine = document.createElement('div');
|
||||
logLine.className = 'log-line';
|
||||
if (type) logLine.classList.add(type);
|
||||
logLine.textContent = message;
|
||||
terminalLogs.appendChild(logLine);
|
||||
|
||||
// Auto-scroll to bottom of logs
|
||||
terminalLogs.scrollTop = terminalLogs.scrollHeight;
|
||||
}
|
||||
|
||||
function showSuccess(fileName, downloadUrl, summary) {
|
||||
progressContainer.classList.add('hidden');
|
||||
// Keep terminal logs visible so the user can inspect completion states/warnings
|
||||
successContainer.classList.remove('hidden');
|
||||
|
||||
outFileNameEl.textContent = fileName;
|
||||
btnDownload.href = downloadUrl;
|
||||
btnDownload.setAttribute('download', fileName);
|
||||
|
||||
const isMbox = fileName.endsWith('.zip');
|
||||
btnDownload.textContent = isMbox ? 'Download MBOX ZIP Archive' : 'Download PST File';
|
||||
|
||||
const summaryCard = document.getElementById('summary-card');
|
||||
const summaryFoldersCount = document.getElementById('summary-folders-count');
|
||||
const summaryMessagesCount = document.getElementById('summary-messages-count');
|
||||
const summaryDuration = document.getElementById('summary-duration');
|
||||
const summaryTableBody = document.getElementById('summary-table-body');
|
||||
|
||||
if (summary) {
|
||||
summaryCard.classList.remove('hidden');
|
||||
summaryFoldersCount.textContent = summary.folders ? summary.folders.length : 0;
|
||||
summaryMessagesCount.textContent = summary.totalMessages || 0;
|
||||
summaryDuration.textContent = (summary.duration || 0).toFixed(1) + 's';
|
||||
|
||||
summaryTableBody.innerHTML = '';
|
||||
if (summary.folders && summary.folders.length > 0) {
|
||||
summary.folders.forEach(f => {
|
||||
const row = document.createElement('tr');
|
||||
row.innerHTML = `
|
||||
<td>${escapeHtml(f.folder)}</td>
|
||||
<td style="text-align: right; font-weight: 600;">${f.messages}</td>
|
||||
`;
|
||||
summaryTableBody.appendChild(row);
|
||||
});
|
||||
} else {
|
||||
summaryTableBody.innerHTML = `<tr><td colspan="2" style="text-align: center; color: var(--text-secondary);">No folders containing emails were converted.</td></tr>`;
|
||||
}
|
||||
} else {
|
||||
summaryCard.classList.add('hidden');
|
||||
}
|
||||
}
|
||||
|
||||
function escapeHtml(unsafe) {
|
||||
return unsafe
|
||||
.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
.replace(/>/g, ">")
|
||||
.replace(/"/g, """)
|
||||
.replace(/'/g, "'");
|
||||
}
|
||||
|
||||
function showError(errorMessage) {
|
||||
progressStatus.textContent = 'Error';
|
||||
progressPercentage.textContent = 'Failed';
|
||||
progressBarFill.style.backgroundColor = 'var(--error-color)';
|
||||
appendLog(`[ERROR] ${errorMessage}`, 'error');
|
||||
}
|
||||
|
||||
btnReset.addEventListener('click', () => {
|
||||
resetUI();
|
||||
});
|
||||
});
|
||||
179
public/index.html
Normal file
179
public/index.html
Normal file
@@ -0,0 +1,179 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>OST to PST Converter</title>
|
||||
<!-- Google Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="background-decor">
|
||||
<div class="orb orb-1"></div>
|
||||
<div class="orb orb-2"></div>
|
||||
<div class="orb orb-3"></div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<header>
|
||||
<div class="logo-area">
|
||||
<span class="logo-icon">⇄</span>
|
||||
<h1>OST <span>to</span> PST</h1>
|
||||
</div>
|
||||
<p class="subtitle">Convert Microsoft Outlook Offline Storage files (.ost) into Personal Storage files (.pst) locally and securely.</p>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<!-- ── Left column: Converter Card ─────────────────────────────── -->
|
||||
<section class="card glass" id="converter-card">
|
||||
<div class="card-header">
|
||||
<h2>File Conversion</h2>
|
||||
<span class="badge">Local Engine</span>
|
||||
</div>
|
||||
|
||||
<!-- Drag & Drop Zone -->
|
||||
<div class="drop-zone" id="drop-zone">
|
||||
<input type="file" id="file-input" accept=".ost" class="file-input">
|
||||
<div class="drop-zone-content">
|
||||
<div class="upload-icon">📁</div>
|
||||
<h3>Drag & Drop your OST file</h3>
|
||||
<p>or <span class="browse-link">browse files</span></p>
|
||||
<p class="file-limit">Maximum size: 1 GB</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Selected File Info (Hidden by default) -->
|
||||
<div class="file-details hidden" id="file-details">
|
||||
<div class="file-info-header">
|
||||
<span class="file-icon">📄</span>
|
||||
<div class="file-meta">
|
||||
<h4 id="file-name">filename.ost</h4>
|
||||
<p id="file-size">0.0 MB</p>
|
||||
</div>
|
||||
<button class="btn btn-close" id="btn-cancel-file" title="Clear selection">✕</button>
|
||||
</div>
|
||||
|
||||
<!-- Target Format Selection -->
|
||||
<div class="format-selection">
|
||||
<label class="format-label">Choose Export Format:</label>
|
||||
<div class="format-options">
|
||||
<label class="format-option-card">
|
||||
<input type="radio" name="output-format" value="pst" checked>
|
||||
<span class="option-details">
|
||||
<strong class="option-title">PST (Recommended for Gmail)</strong>
|
||||
<span class="option-desc">Enables direct import to Gmail Workspace via the Google Workspace Migration (GWMMO) tool. Preserves mail, contacts, and calendar.</span>
|
||||
</span>
|
||||
</label>
|
||||
<label class="format-option-card">
|
||||
<input type="radio" name="output-format" value="mbox">
|
||||
<span class="option-details">
|
||||
<strong class="option-title">MBOX (ZIP Archive)</strong>
|
||||
<span class="option-desc">Exports each email folder as a standard .mbox file bundled in a ZIP. Contacts are exported as individual .vcf files.</span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<!-- Sub-option: only visible when MBOX is selected -->
|
||||
<label class="vcf-combine-option hidden" id="vcf-combine-wrap">
|
||||
<input type="checkbox" id="combine-vcf">
|
||||
<span class="vcf-combine-details">
|
||||
<strong>Merge all contacts into one .vcf file</strong>
|
||||
<span>Recommended for Gmail — Google Contacts can import a single combined vCard file directly via <em>contacts.google.com → Import</em>.</span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary btn-block" id="btn-convert">
|
||||
<span>Convert File</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Processing & Upload State (Hidden by default) -->
|
||||
<div class="progress-container hidden" id="progress-container">
|
||||
<div class="progress-header">
|
||||
<span id="progress-status">Uploading file...</span>
|
||||
<span id="progress-percentage">0%</span>
|
||||
</div>
|
||||
<div class="progress-bar-bg">
|
||||
<div class="progress-bar-fill" id="progress-bar-fill"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Success Screen (Hidden by default) -->
|
||||
<div class="success-container hidden" id="success-container">
|
||||
<div class="success-icon">✓</div>
|
||||
<h3>Conversion Complete!</h3>
|
||||
<p class="success-message">Your OST file was converted successfully.</p>
|
||||
<div class="output-file-card">
|
||||
<span class="file-icon">📦</span>
|
||||
<div class="file-meta">
|
||||
<h4 id="out-file-name">filename.pst</h4>
|
||||
<p class="ready-badge">Ready for download</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Conversion Summary Brief -->
|
||||
<div class="summary-card" id="summary-card">
|
||||
<h4>Conversion Summary</h4>
|
||||
<div class="summary-metrics">
|
||||
<div class="metric">
|
||||
<span class="metric-label">Total Folders</span>
|
||||
<span class="metric-value" id="summary-folders-count">0</span>
|
||||
</div>
|
||||
<div class="metric">
|
||||
<span class="metric-label">Total Emails</span>
|
||||
<span class="metric-value" id="summary-messages-count">0</span>
|
||||
</div>
|
||||
<div class="metric">
|
||||
<span class="metric-label">Time Taken</span>
|
||||
<span class="metric-value" id="summary-duration">0.0s</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="summary-table-container">
|
||||
<table class="summary-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Folder</th>
|
||||
<th style="text-align: right;">Emails</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="summary-table-body">
|
||||
<!-- Dynamic rows -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a id="btn-download" class="btn btn-success btn-block" download>Download PST File</a>
|
||||
<button class="btn btn-secondary btn-block" id="btn-reset">Convert Another File</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ── Right column: Conversion Log ───────────────────────────── -->
|
||||
<div class="log-column">
|
||||
<div class="terminal-container" id="terminal-container">
|
||||
<div class="terminal-header">
|
||||
<div class="terminal-dots">
|
||||
<span class="dot red"></span>
|
||||
<span class="dot yellow"></span>
|
||||
<span class="dot green"></span>
|
||||
</div>
|
||||
<span class="terminal-title">Conversion Log</span>
|
||||
</div>
|
||||
<div class="terminal-body" id="terminal-logs">
|
||||
<div class="log-line system">Waiting for process start...</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>OST to PST Converter • Local Web Utility</p>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
834
public/style.css
Normal file
834
public/style.css
Normal file
@@ -0,0 +1,834 @@
|
||||
/* CSS Variable definitions for global design consistency */
|
||||
:root {
|
||||
--bg-dark: #0a0b0d;
|
||||
--card-bg: rgba(20, 22, 28, 0.65);
|
||||
--card-border: rgba(255, 255, 255, 0.08);
|
||||
--text-primary: #f3f4f6;
|
||||
--text-secondary: #9ca3af;
|
||||
--accent-color: #8b5cf6; /* Purple */
|
||||
--accent-glow: rgba(139, 92, 246, 0.45);
|
||||
--cyan-glow: rgba(6, 182, 212, 0.45);
|
||||
--success-color: #10b981; /* Green */
|
||||
--success-glow: rgba(16, 185, 129, 0.35);
|
||||
--error-color: #ef4444;
|
||||
--terminal-bg: rgba(7, 8, 12, 0.9);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg-dark);
|
||||
color: var(--text-primary);
|
||||
font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* Background gradient blobs */
|
||||
.background-decor {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: -1;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.orb {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
filter: blur(120px);
|
||||
opacity: 0.15;
|
||||
animation: orb-bounce 25s infinite alternate ease-in-out;
|
||||
}
|
||||
|
||||
.orb-1 {
|
||||
top: -10%;
|
||||
left: -10%;
|
||||
width: 50vw;
|
||||
height: 50vw;
|
||||
background: radial-gradient(circle, var(--accent-color) 0%, rgba(0,0,0,0) 70%);
|
||||
}
|
||||
|
||||
.orb-2 {
|
||||
bottom: -10%;
|
||||
right: -10%;
|
||||
width: 60vw;
|
||||
height: 60vw;
|
||||
background: radial-gradient(circle, #06b6d4 0%, rgba(0,0,0,0) 70%); /* Cyan */
|
||||
animation-delay: -5s;
|
||||
}
|
||||
|
||||
.orb-3 {
|
||||
top: 30%;
|
||||
right: 20%;
|
||||
width: 40vw;
|
||||
height: 40vw;
|
||||
background: radial-gradient(circle, #ec4899 0%, rgba(0,0,0,0) 70%); /* Pink */
|
||||
animation-delay: -10s;
|
||||
}
|
||||
|
||||
@keyframes orb-bounce {
|
||||
0% { transform: translate(0, 0) scale(1); }
|
||||
100% { transform: translate(8%, 10%) scale(1.15); }
|
||||
}
|
||||
|
||||
/* Container */
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: 1100px;
|
||||
padding: 40px 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
header {
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.logo-area {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.logo-icon {
|
||||
font-size: 2.5rem;
|
||||
background: linear-gradient(135deg, #06b6d4, var(--accent-color));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 2.8rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.03em;
|
||||
background: linear-gradient(to right, #ffffff, #d1d5db);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
header h1 span {
|
||||
font-weight: 300;
|
||||
color: var(--text-secondary);
|
||||
background: none;
|
||||
-webkit-text-fill-color: initial;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
color: var(--text-secondary);
|
||||
font-size: 1.15rem;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
font-weight: 300;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Layout — converter left, log right */
|
||||
main {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1.2fr;
|
||||
gap: 30px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
/* Right column: log sticks to top and fills height */
|
||||
.log-column {
|
||||
position: sticky;
|
||||
top: 30px;
|
||||
}
|
||||
|
||||
.log-column .terminal-container {
|
||||
/* Always visible — not toggled hidden in this layout */
|
||||
height: 100%;
|
||||
min-height: 480px;
|
||||
max-height: calc(100vh - 120px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.log-column .terminal-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
main {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.log-column {
|
||||
position: static;
|
||||
}
|
||||
.log-column .terminal-container {
|
||||
min-height: 280px;
|
||||
max-height: 400px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Cards & Glassmorphism */
|
||||
.glass {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--card-border);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 35px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 25px;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.card-header h2, .card-header h3 {
|
||||
font-size: 1.4rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.badge {
|
||||
background: rgba(139, 92, 246, 0.15);
|
||||
border: 1px solid rgba(139, 92, 246, 0.3);
|
||||
color: #a78bfa;
|
||||
padding: 4px 10px;
|
||||
border-radius: 99px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.badge-accent {
|
||||
background: rgba(6, 182, 212, 0.15);
|
||||
border: 1px solid rgba(6, 182, 212, 0.3);
|
||||
color: #22d3ee;
|
||||
}
|
||||
|
||||
/* Drop Zone */
|
||||
.drop-zone {
|
||||
border: 2px dashed rgba(255, 255, 255, 0.15);
|
||||
border-radius: 16px;
|
||||
padding: 45px 20px;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.drop-zone:hover, .drop-zone.dragover {
|
||||
border-color: var(--accent-color);
|
||||
background: rgba(139, 92, 246, 0.04);
|
||||
box-shadow: 0 0 20px var(--accent-glow);
|
||||
}
|
||||
|
||||
.drop-zone.dragover {
|
||||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
.file-input {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.drop-zone-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.upload-icon {
|
||||
font-size: 3rem;
|
||||
filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
|
||||
margin-bottom: 5px;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.drop-zone:hover .upload-icon {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
.drop-zone-content h3 {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.browse-link {
|
||||
color: var(--accent-color);
|
||||
text-decoration: underline;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.file-limit {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* Selected File Details */
|
||||
.file-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
padding: 20px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
border-radius: 12px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.file-info-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.file-icon {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
.file-meta {
|
||||
flex-grow: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.file-meta h4 {
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.file-meta p {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 14px 28px;
|
||||
border-radius: 12px;
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.25s ease;
|
||||
border: none;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, var(--accent-color) 0%, #7c3aed 100%);
|
||||
color: white;
|
||||
box-shadow: 0 4px 15px var(--accent-glow);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px var(--accent-glow);
|
||||
}
|
||||
|
||||
.btn-primary:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
|
||||
color: white;
|
||||
box-shadow: 0 4px 15px var(--success-glow);
|
||||
}
|
||||
|
||||
.btn-success:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px var(--success-glow);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--text-primary);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.btn-close {
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
padding: 8px;
|
||||
font-size: 1.1rem;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.btn-close:hover {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-block {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Progress Section */
|
||||
.progress-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.progress-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.progress-bar-bg {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border-radius: 99px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.progress-bar-fill {
|
||||
height: 100%;
|
||||
width: 0%;
|
||||
background: linear-gradient(to right, #06b6d4, var(--accent-color));
|
||||
border-radius: 99px;
|
||||
transition: width 0.2s ease;
|
||||
}
|
||||
|
||||
/* Terminal Log */
|
||||
.terminal-container {
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.terminal-header {
|
||||
background: rgba(25, 27, 36, 0.85);
|
||||
padding: 12px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.terminal-dots {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.dot.red { background-color: #ef4444; }
|
||||
.dot.yellow { background-color: #f59e0b; }
|
||||
.dot.green { background-color: #10b981; }
|
||||
|
||||
.terminal-title {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.terminal-body {
|
||||
background-color: var(--terminal-bg);
|
||||
padding: 20px;
|
||||
height: 200px;
|
||||
overflow-y: auto;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.5;
|
||||
color: #34d399; /* Green text */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
.log-line.system {
|
||||
color: #60a5fa; /* Blue */
|
||||
}
|
||||
|
||||
.log-line.warning {
|
||||
color: #fbbf24; /* Amber */
|
||||
}
|
||||
|
||||
.log-line.error {
|
||||
color: #f87171; /* Red */
|
||||
}
|
||||
|
||||
/* Success Container */
|
||||
.success-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
text-align: center;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.success-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
background: rgba(16, 185, 129, 0.1);
|
||||
border: 2px solid var(--success-color);
|
||||
border-radius: 50%;
|
||||
color: var(--success-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.8rem;
|
||||
font-weight: 800;
|
||||
box-shadow: 0 0 15px var(--success-glow);
|
||||
animation: success-pulse 2s infinite;
|
||||
}
|
||||
|
||||
@keyframes success-pulse {
|
||||
0% { transform: scale(1); }
|
||||
50% { transform: scale(1.05); }
|
||||
100% { transform: scale(1); }
|
||||
}
|
||||
|
||||
.success-message {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.95rem;
|
||||
margin-top: -10px;
|
||||
}
|
||||
|
||||
.output-file-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
padding: 15px 20px;
|
||||
background: rgba(16, 185, 129, 0.05);
|
||||
border: 1px solid rgba(16, 185, 129, 0.15);
|
||||
border-radius: 12px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ready-badge {
|
||||
color: var(--success-color) !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Sidebar styling */
|
||||
.sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 30px;
|
||||
}
|
||||
|
||||
.code-block {
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
border-radius: 10px;
|
||||
padding: 15px;
|
||||
overflow-x: auto;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 0.8rem;
|
||||
color: #e5e7eb;
|
||||
}
|
||||
|
||||
.code-block pre {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.info-list {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.info-title {
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.info-list p {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
footer {
|
||||
text-align: center;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.8rem;
|
||||
margin-top: 10px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
/* Summary Card Details */
|
||||
.summary-card {
|
||||
width: 100%;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
text-align: left;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.summary-card h4 {
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.summary-metrics {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.metric {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid rgba(255, 255, 255, 0.03);
|
||||
border-radius: 8px;
|
||||
padding: 10px 5px;
|
||||
}
|
||||
|
||||
.metric-label {
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.metric-value {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 800;
|
||||
background: linear-gradient(135deg, #06b6d4, var(--accent-color));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.summary-table-container {
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
border-radius: 8px;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.summary-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.summary-table th, .summary-table td {
|
||||
padding: 10px 12px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.summary-table th {
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
color: var(--text-secondary);
|
||||
font-weight: 600;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.summary-table td {
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.02);
|
||||
}
|
||||
|
||||
.summary-table tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* Format Selection Styling */
|
||||
.format-selection {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
margin: 10px 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.format-label {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.format-options {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.format-option-card {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 15px;
|
||||
padding: 15px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.format-option-card:hover {
|
||||
border-color: rgba(139, 92, 246, 0.3);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.format-option-card input[type="radio"] {
|
||||
margin-top: 4px;
|
||||
accent-color: var(--accent-color);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.format-option-card:has(input[type="radio"]:checked) {
|
||||
border-color: var(--accent-color);
|
||||
background: rgba(139, 92, 246, 0.04);
|
||||
box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
|
||||
}
|
||||
|
||||
.option-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.option-title {
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.option-desc {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* VCF Combine sub-option */
|
||||
.vcf-combine-option {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
padding: 13px 15px;
|
||||
margin-top: 4px;
|
||||
background: rgba(139, 92, 246, 0.06);
|
||||
border: 1px solid rgba(139, 92, 246, 0.25);
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
animation: slideDown 0.2s ease;
|
||||
}
|
||||
|
||||
@keyframes slideDown {
|
||||
from { opacity: 0; transform: translateY(-6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.vcf-combine-option:hover {
|
||||
border-color: rgba(139, 92, 246, 0.5);
|
||||
background: rgba(139, 92, 246, 0.1);
|
||||
}
|
||||
|
||||
.vcf-combine-option input[type="checkbox"] {
|
||||
margin-top: 3px;
|
||||
accent-color: var(--accent-color);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.vcf-combine-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
|
||||
.vcf-combine-details strong {
|
||||
color: var(--text-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.vcf-combine-details span {
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.4;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.vcf-combine-details em {
|
||||
color: var(--accent-color);
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Utility classes */
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
Reference in New Issue
Block a user