Files
archy/neode-ui/previews/lightning/main.ts

13 lines
457 B
TypeScript

import { createApp } from 'vue'
import Preview from './Preview.vue'
import '../../src/style.css'
// Also cover links teleported outside the preview root.
document.addEventListener('click', event => {
if ((event.target as HTMLElement).closest('a')) {
event.preventDefault()
event.stopPropagation()
window.alert('Demo only. The real flow opens the official ZEUS portal here. No order was created.')
}
}, true)
createApp(Preview).mount('#app')