Files
llm-in-text/src/components/PluginHost.vue
ydy0615 49f264b53b feat(project): scaffold Vue 3 + Vite markdown editor
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.
2026-01-12 12:23:44 +08:00

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>