Your Name
feat: UI improvements and error suppression - Enhanced dashboard and market pages with improved header buttons, logo, and currency symbol display - Stopped animated ticker - Removed pie chart legends - Added error suppressor for external service errors (SSE, Permissions-Policy warnings) - Improved header button prominence and icon appearance - Enhanced logo with glow effects and better design - Fixed currency symbol visibility in market tables
8b7b267
raw
history blame
816 Bytes
/**
* Loading Helper Functions
* Simple wrapper around Loading class for easy usage
*/
import Loading from './loading.js';
/**
* Show loading state
*/
export function showLoading(containerId, message = 'Loading...') {
return Loading.show(containerId, message);
}
/**
* Hide loading state
*/
export function hideLoading(containerId) {
return Loading.hide(containerId);
}
/**
* Show skeleton loader
*/
export function showSkeleton(containerId, type = 'cards', count = 4) {
const container = document.getElementById(containerId);
if (!container) return;
if (type === 'cards') {
container.innerHTML = Loading.skeletonCards(count);
} else if (type === 'rows') {
container.innerHTML = Loading.skeletonRows(count);
}
}
export default {
showLoading,
hideLoading,
showSkeleton
};