2026-06-10 12:49:43 +08:00
|
|
|
// src/index.js
|
2026-06-05 20:05:26 +08:00
|
|
|
import '@apigo.cc/bootstrap'
|
2026-06-10 12:49:43 +08:00
|
|
|
import './ui.js'
|
|
|
|
|
import './http.js'
|
|
|
|
|
import './form.js'
|
|
|
|
|
import './list.js'
|
|
|
|
|
import './interaction.js'
|
2026-06-06 11:45:53 +08:00
|
|
|
import './controls.js'
|
2026-06-10 12:49:43 +08:00
|
|
|
import './nav.js'
|
2026-05-14 20:04:31 +08:00
|
|
|
|
2026-06-10 12:49:43 +08:00
|
|
|
// Additional global helpers or initializations for base can go here
|
|
|
|
|
if (typeof document !== 'undefined') {
|
|
|
|
|
// Example: global listener for exitBlocks
|
|
|
|
|
window.addEventListener('beforeunload', (event) => {
|
|
|
|
|
if (globalThis.State?.exitBlocks > 0) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
event.returnValue = '';
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|