initial
This commit is contained in:
28
ts_web/index.ts
Normal file
28
ts_web/index.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import * as plugins from './plugins.js';
|
||||
|
||||
// Import all elements
|
||||
import './elements/index.js';
|
||||
|
||||
// Import services
|
||||
import { apiService } from './services/index.js';
|
||||
|
||||
// Initialize the application
|
||||
const initApp = async () => {
|
||||
console.log('TsView UI initializing...');
|
||||
|
||||
// Wait for custom elements to be defined
|
||||
await customElements.whenDefined('tsview-app');
|
||||
|
||||
// Create and mount the app
|
||||
const app = document.createElement('tsview-app');
|
||||
document.body.appendChild(app);
|
||||
|
||||
console.log('TsView UI ready');
|
||||
};
|
||||
|
||||
// Auto-init when DOM is ready
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', initApp);
|
||||
} else {
|
||||
initApp();
|
||||
}
|
||||
Reference in New Issue
Block a user