fix(theme-yun): sidebar display in mobile

This commit is contained in:
YunYouJun 2024-01-27 19:28:56 +08:00
parent df2c16f1cf
commit b9b82d45ed
7 changed files with 291 additions and 381 deletions

View File

@ -27,6 +27,6 @@
},
"devDependencies": {
"nodemon": "^3.0.3",
"vite-plugin-pwa": "^0.17.4"
"vite-plugin-pwa": "^0.17.5"
}
}

View File

@ -20,9 +20,9 @@
"valaxy-theme-press": "link:../packages/valaxy-theme-press"
},
"devDependencies": {
"@iconify-json/simple-icons": "^1.1.88",
"@iconify-json/simple-icons": "^1.1.89",
"nodemon": "^3.0.3",
"vite": "^5.0.12",
"vitepress": "1.0.0-rc.39"
"vitepress": "1.0.0-rc.40"
}
}

View File

@ -3,7 +3,7 @@
"type": "module",
"version": "0.17.2",
"private": true,
"packageManager": "pnpm@8.14.1",
"packageManager": "pnpm@8.14.3",
"description": "📄 Vite & Vue powered static blog generator.",
"author": {
"email": "me@yunyoujun.cn",
@ -60,12 +60,12 @@
"@antfu/eslint-config": "2.6.3",
"@iconify-json/logos": "^1.1.42",
"@iconify-json/vscode-icons": "^1.1.33",
"@microsoft/api-extractor": "^7.39.1",
"@microsoft/api-extractor": "^7.39.4",
"@types/debug": "^4.1.12",
"@types/markdown-it-attrs": "^4.1.3",
"@types/markdown-it-container": "^2.0.9",
"@types/markdown-it-emoji": "^2.0.4",
"@types/node": "^20.11.5",
"@types/node": "^20.11.7",
"@types/prompts": "^2.4.9",
"@types/resolve": "^1.20.6",
"@valaxyjs/devtools": "workspace:*",
@ -75,7 +75,7 @@
"eslint": "^8.56.0",
"eslint-plugin-cypress": "^2.15.1",
"https-localhost": "^4.7.1",
"husky": "^8.0.3",
"husky": "^9.0.6",
"lint-staged": "^15.2.0",
"npm-run-all": "^4.1.5",
"prompts": "^2.4.2",
@ -96,7 +96,7 @@
"valaxy-addon-waline": "workspace:*",
"valaxy-theme-press": "workspace:*",
"valaxy-theme-yun": "workspace:*",
"vitest": "^1.2.1",
"vitest": "^1.2.2",
"vue-tsc": "1.8.27",
"zx": "^7.2.3"
},

View File

@ -1,6 +1,6 @@
<script lang="ts" setup>
import { ref, watch } from 'vue'
import { useAppStore, useLayout } from 'valaxy'
import { ref } from 'vue'
import { useAppStore } from 'valaxy'
defineProps<{
showHamburger?: boolean
@ -8,13 +8,6 @@ defineProps<{
const app = useAppStore()
const showOverview = ref(false)
const isHome = useLayout('home')
watch(isHome, () => {
app.isSidebarOpen = !isHome.value
}, {
immediate: true,
})
</script>
<template>

View File

@ -19,8 +19,8 @@
"module": "index.ts",
"dependencies": {
"@explosions/fireworks": "^0.0.2",
"@iconify-json/ant-design": "^1.1.13",
"@iconify-json/simple-icons": "^1.1.88",
"@iconify-json/ant-design": "^1.1.14",
"@iconify-json/simple-icons": "^1.1.89",
"animejs": "^3.2.2"
},
"devDependencies": {

View File

@ -65,7 +65,7 @@
"dependencies": {
"@antfu/utils": "^0.7.7",
"@ctrl/tinycolor": "^4.0.3",
"@iconify-json/carbon": "^1.1.27",
"@iconify-json/carbon": "^1.1.28",
"@iconify-json/ri": "^1.1.19",
"@intlify/unplugin-vue-i18n": "^2.0.0",
"@types/body-scroll-lock": "^3.1.2",
@ -75,7 +75,7 @@
"@unhead/vue": "^1.8.10",
"@valaxyjs/devtools": "workspace:*",
"@vitejs/plugin-vue": "^5.0.3",
"@vue/devtools-api": "^7.0.11",
"@vue/devtools-api": "^7.0.13",
"@vueuse/core": "^10.7.2",
"@vueuse/integrations": "^10.7.2",
"body-scroll-lock": "4.0.0-beta.0",
@ -96,7 +96,7 @@
"is-installed-globally": "^1.0.0",
"jiti": "^1.21.0",
"katex": "^0.16.9",
"lru-cache": "^10.1.0",
"lru-cache": "^10.2.0",
"markdown-it": "^14.0.0",
"markdown-it-anchor": "^8.6.7",
"markdown-it-attrs": "^4.1.6",
@ -117,12 +117,12 @@
"shikiji-transformers": "0.9.7",
"star-markdown-css": "^0.4.2",
"unconfig": "^0.3.11",
"unocss": "^0.58.3",
"unocss": "^0.58.4",
"unplugin-vue-components": "^0.26.0",
"unplugin-vue-router": "^0.7.0",
"vanilla-lazyload": "^17.8.5",
"vite": "^5.0.12",
"vite-plugin-vue-devtools": "^7.0.11",
"vite-plugin-vue-devtools": "^7.0.13",
"vite-plugin-vue-layouts": "0.11.0",
"vite-ssg": "0.23.6",
"vite-ssg-sitemap": "0.6.1",

File diff suppressed because it is too large Load Diff