Add initial project structure including: - .gitignore and VSCode settings - Vite configuration and package.json with Vue 3 dependencies - Basic HTML entry point and README update - Core source files: App.vue, main.js, style.css - Markdown editor component with plugin system and related types - Sample HelloWorld component, router, and Pinia store - Assets and SVG icons This commit establishes the foundation for the Vue 3 application.
23 lines
500 B
Vue
23 lines
500 B
Vue
<template>
|
|
<!-- PluginHost does not render UI; it only runs plugin lifecycle hooks -->
|
|
</template>
|
|
|
|
<script setup>
|
|
import { onMounted } from 'vue'
|
|
import { plugins } from '../plugins/index'
|
|
|
|
/**
|
|
* Context object that can be extended by plugins during onSetup.
|
|
* Currently empty but can hold shared resources.
|
|
*/
|
|
const context = {}
|
|
|
|
onMounted(() => {
|
|
// Invoke onSetup hook of each registered plugin
|
|
plugins.forEach(p => {
|
|
if (p.onSetup) {
|
|
p.onSetup(context)
|
|
}
|
|
})
|
|
})
|
|
</script> |