mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-22 16:17:50 +08:00
8c6751f0c6
* chore: add precommit hook for eslint fixes, fix linting issues * chore: add eslint import sort plugin
21 lines
484 B
TypeScript
21 lines
484 B
TypeScript
import 'iframe-resizer/js/iframeResizer.contentWindow'
|
|
import './style.scss'
|
|
|
|
import { createApp } from 'vue'
|
|
|
|
import { debug, splitName } from './helper'
|
|
|
|
export default function init(name: string, source: any) {
|
|
// @ts-ignore
|
|
window.source = source
|
|
document.title = name
|
|
|
|
const [demoCategory, demoName] = splitName(name)
|
|
|
|
import(`../src/${demoCategory}/${demoName}/Vue/index.vue`)
|
|
.then(module => {
|
|
createApp(module.default).mount('#app')
|
|
debug()
|
|
})
|
|
}
|