Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazengp committed Aug 2, 2023
1 parent b9e6cec commit 3f30bc7
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 395 deletions.
12 changes: 0 additions & 12 deletions .vitepress/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import Unocss from 'unocss/vite'
import AutoImport from 'unplugin-auto-import/vite'
import Inspect from 'vite-plugin-inspect'
import MarkdownItFootnote from 'markdown-it-footnote'
import { fileURLToPath, URL } from 'node:url'
import { defineConfig, HeadConfig } from 'vitepress'
Expand Down Expand Up @@ -283,16 +281,6 @@ export default defineConfig({
plugins: [
// https://github.com/antfu/unocss
Unocss(),

// https://github.com/antfu/unplugin-auto-import
AutoImport({
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
imports: ['vue', '@vueuse/core'],
dts: './auto-imports.d.ts',
vueTemplate: true,
}),

Inspect(),
],
build: {
minify: 'terser',
Expand Down
32 changes: 17 additions & 15 deletions .vitepress/theme/components/Banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,23 @@ const hideBanner = () => {
</script>

<template>
<div v-show="isShow" ref="el" class="banner">
<div class="text" v-html="frontmatter.banner"></div>

<button type="button" @click="dismiss">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"
/>
</svg>
</button>
</div>
<ClientOnly>
<div v-show="isShow" ref="el" class="banner">
<div class="text" v-html="frontmatter.banner"></div>

<button type="button" @click="dismiss">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"
/>
</svg>
</button>
</div>
</ClientOnly>
</template>

<style scoped>
Expand Down
26 changes: 0 additions & 26 deletions .vitepress/theme/components/Giscus.vue

This file was deleted.

4 changes: 0 additions & 4 deletions giscus.json

This file was deleted.

7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,13 @@
},
"prettier": "prettier-config-vuepress",
"dependencies": {
"@7c00/canvas-tilemap": "^0.6.0",
"@actions/core": "^1.10.0",
"@giscus/vue": "^2.2.8",
"@iconify-json/ic": "^1.1.13",
"@iconify-json/logos": "^1.1.31",
"@iconify-json/mdi": "^1.1.52",
"@iconify-json/ph": "^1.1.5",
"@mdit/plugin-container": "^0.4.7",
"@mdit/plugin-mark": "^0.4.7",
"@mermaid-js/mermaid-mindmap": "^9.3.0",
"@types/js-yaml": "^4.0.5",
"@vueuse/core": "^9.13.0",
"@vueuse/integrations": "^9.13.0",
Expand All @@ -63,13 +60,9 @@
"qrcode": "^1.5.3",
"sass": "^1.63.2",
"sass-loader": "^13.3.1",
"sitemap": "^7.1.1",
"typescript": "^4.9.5",
"unocss": "^0.45.30",
"unplugin-auto-import": "^0.11.5",
"unplugin-vue-components": "^0.22.12",
"vitepress": "latest",
"vitepress-plugin-mermaid": "^2.0.10",
"vue": "^3.3.4",
"vue-router": "^4.2.2",
"vue-router-better-scroller": "^0.0.0"
Expand Down
Loading

0 comments on commit 3f30bc7

Please sign in to comment.