From ac0dbc5b1c9b48079e3a450794030b3e0bc6096a Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sat, 2 Mar 2024 03:09:10 +0800 Subject: refactor(site): rewrite with vuejs (#93) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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> --- site/src/main.ts | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'site/src/main.ts') 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') -- cgit v1.2.3-70-g09d2