mirror of
https://github.com/cloud-shuttle/leptos-shadcn-ui.git
synced 2026-01-04 20:12:55 +00:00
- Complete documentation reorganization into professional structure - Achieved 90%+ test coverage across all components - Created sophisticated WASM demo matching shadcn/ui quality - Fixed all compilation warnings and missing binary files - Optimized dependencies across all packages - Professional code standards and performance optimizations - Cross-browser compatibility with Playwright testing - New York variants implementation - Advanced signal management for Leptos 0.8.8+ - Enhanced testing infrastructure with TDD approach
66 lines
2.2 KiB
HTML
66 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Leptos ShadCN UI Demo (WASM)</title>
|
|
<!-- Tailwind CSS -->
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<style>
|
|
body {
|
|
font-family: 'Inter', ui-sans-serif, system-ui;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
#loading {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #f3f4f6;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 9999;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="loading">
|
|
<h1>Loading Leptos WASM Demo...</h1>
|
|
<p>If you see this message, the WASM is still loading or there's an error.</p>
|
|
</div>
|
|
<script type="module">
|
|
console.log('Starting Leptos WASM demo...');
|
|
try {
|
|
const wasmModule = await import('./pkg/leptos_shadcn_demo.js');
|
|
console.log('WASM module loaded successfully');
|
|
|
|
// Initialize the WASM module
|
|
console.log('Initializing WASM module...');
|
|
await wasmModule.default();
|
|
console.log('WASM module initialized successfully');
|
|
|
|
// Manually call main function
|
|
console.log('Calling main function manually...');
|
|
wasmModule.main();
|
|
console.log('Main function called successfully');
|
|
|
|
} catch (error) {
|
|
console.error('Error loading WASM:', error);
|
|
console.error('Error stack:', error.stack);
|
|
document.getElementById('loading').innerHTML = `
|
|
<div style="padding: 20px; text-align: center; color: red;">
|
|
<h1>Error Loading WASM Demo</h1>
|
|
<p><strong>Error:</strong> ${error.message}</p>
|
|
<p><strong>Stack:</strong> ${error.stack || 'No stack trace available'}</p>
|
|
<p>Check the browser console for more details.</p>
|
|
</div>
|
|
`;
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|