diff options
| author | 2024-03-02 03:09:10 +0800 | |
|---|---|---|
| committer | 2024-03-02 03:09:10 +0800 | |
| commit | ac0dbc5b1c9b48079e3a450794030b3e0bc6096a (patch) | |
| tree | 13524a98173b4f7b0b19821e9d8f216134f9e061 /site/src/main.ts | |
| parent | 679ca51b78cda9044dc8d8eb3fa246fd76cb227e (diff) | |
| download | HydroRoll-ac0dbc5b1c9b48079e3a450794030b3e0bc6096a.tar.gz HydroRoll-ac0dbc5b1c9b48079e3a450794030b3e0bc6096a.zip | |
refactor(site): rewrite with vuejs (#93)
* chore: update package version
* Refactor site (#87)
* 补全changelog文件
* 补全changelog文件
* 补全changelog文件
* 完成基本的markdown渲染
* 提交新的css (#88)
* 补全changelog文件
* 补全changelog文件
* 补全changelog文件
* 完成基本的markdown渲染
* 添加新的css
* Refactor site (#92)
* 补全changelog文件
* 补全changelog文件
* 补全changelog文件
* 完成基本的markdown渲染
* 添加新的css
* 修复倒计时居中
* 初步完成右侧窗口切换
* 优化进度条
* 导入element-plus
* 导入element-plus
* 导入element-plus
* 加入选中提示和禁用提示
* 修改背景颜色
---------
Co-authored-by: 白咕咕 <67865300+baimianxiao@users.noreply.github.com>
Diffstat (limited to 'site/src/main.ts')
| -rw-r--r-- | site/src/main.ts | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/site/src/main.ts b/site/src/main.ts index 11c062f..6bb9085 100644 --- a/site/src/main.ts +++ b/site/src/main.ts @@ -4,19 +4,35 @@ * Bootstraps Vuetify and other plugins then mounts the App` */ + // Components import App from './App.vue' -// Composables +// Composable import { createApp } from 'vue' // Plugins import { registerPlugins } from '@/plugins' import './assets/main.css' +import VMdPreview from '@kangc/v-md-editor/lib/preview'; +import '@kangc/v-md-editor/lib/style/preview.css'; +import githubTheme from '@kangc/v-md-editor/lib/theme/github.js'; +import '@kangc/v-md-editor/lib/theme/style/github.css'; +import ElementPlus from 'element-plus' +import 'element-plus/dist/index.css' +// highlights +import hljs from 'highlight.js'; + +VMdPreview.use(githubTheme, { + Hljs: hljs, +}); -const app = createApp(App) -registerPlugins(app) + +const app = createApp(App) +app.use(VMdPreview) +app.use(ElementPlus) +registerPlugins(app) app.mount('#app') |
