7
src/main/resources/META-INF/resources/favicon.svg
Normal file
7
src/main/resources/META-INF/resources/favicon.svg
Normal file
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
||||
<rect width="100" height="100" fill="#2563eb" rx="15"/>
|
||||
<path d="M25 40 L50 20 L75 40 L75 70 L25 70 Z" fill="#ffffff" stroke="#ffffff" stroke-width="2"/>
|
||||
<circle cx="50" cy="45" r="8" fill="#2563eb"/>
|
||||
<rect x="40" y="55" width="20" height="3" fill="#2563eb"/>
|
||||
<text x="50" y="90" font-family="Arial" font-size="12" fill="#ffffff" text-anchor="middle" font-weight="bold">AUCTION</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 465 B |
@@ -1355,11 +1355,32 @@ function updatePagination(total, perPage, currentPage) {
|
||||
|
||||
// Trigger workflow with progress tracking
|
||||
async function triggerWorkflow(workflow) {
|
||||
const statusId = `status-${workflow.split('-')[0]}`;
|
||||
const progressId = `progress-${workflow.split('-')[0]}`;
|
||||
// Map workflow names to DOM element IDs
|
||||
const idMap = {
|
||||
'scraper-import': 'scraper',
|
||||
'image-processing': 'images',
|
||||
'bid-monitoring': 'bids',
|
||||
'closing-alerts': 'alerts'
|
||||
};
|
||||
|
||||
const elementId = idMap[workflow];
|
||||
if (!elementId) {
|
||||
console.error('Unknown workflow:', workflow);
|
||||
showToast(`Unknown workflow: ${workflow}`, 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
const statusId = `status-${elementId}`;
|
||||
const progressId = `progress-${elementId}`;
|
||||
const statusEl = document.getElementById(statusId);
|
||||
const progressEl = document.getElementById(progressId);
|
||||
|
||||
if (!statusEl || !progressEl) {
|
||||
console.error('Workflow UI elements not found:', statusId, progressId);
|
||||
showToast(`Cannot trigger workflow: UI elements not found`, 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
// Update UI
|
||||
statusEl.innerHTML = '<span class="inline-block w-2 h-2 bg-blue-500 rounded-full mr-1 animate-pulse"></span>Running';
|
||||
statusEl.className = 'text-xs font-semibold px-2 py-1 rounded-full bg-blue-100 text-blue-800';
|
||||
|
||||
Reference in New Issue
Block a user