mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 09:16:45 +00:00
fix(vercel): refactor and lint root code sources & update pnpm installation command for vercel by swapping default vercel pnpm version instead of using third-party registry sources
This commit is contained in:
parent
2758cc94be
commit
10025bdde7
@ -81,16 +81,16 @@ export default {
|
|||||||
setup() {
|
setup() {
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const initZoom = () => {
|
const initZoom = () => {
|
||||||
mediumZoom('.main img', { background: 'var(--vp-c-bg)' }) // Should there be a new?
|
mediumZoom('.main img', { background: 'var(--vp-c-bg)' }) // Should there be a new?
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
initZoom()
|
initZoom()
|
||||||
})
|
})
|
||||||
watch(
|
watch(
|
||||||
() => route.path,
|
() => route.path,
|
||||||
() => nextTick(() => initZoom()),
|
() => nextTick(() => initZoom())
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
enhanceApp(ctx) {
|
enhanceApp(ctx) {
|
||||||
// custom component tag/slot
|
// custom component tag/slot
|
||||||
|
|||||||
1
docs/components.d.ts
vendored
1
docs/components.d.ts
vendored
@ -11,7 +11,6 @@ declare module '@vue/runtime-core' {
|
|||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
AsideSponsors: typeof import('./.vitepress/theme/components/AsideSponsors.vue')['default']
|
AsideSponsors: typeof import('./.vitepress/theme/components/AsideSponsors.vue')['default']
|
||||||
CardLink: typeof import('./.vitepress/theme/components/CardLink.vue')['default']
|
CardLink: typeof import('./.vitepress/theme/components/CardLink.vue')['default']
|
||||||
CodeTitle: typeof import('./.vitepress/theme/components/layout/CodeTitle.vue')['default']
|
|
||||||
Comment: typeof import('./.vitepress/theme/components/layout/Comment.vue')['default']
|
Comment: typeof import('./.vitepress/theme/components/layout/Comment.vue')['default']
|
||||||
Copyright: typeof import('./.vitepress/theme/components/Copyright.vue')['default']
|
Copyright: typeof import('./.vitepress/theme/components/Copyright.vue')['default']
|
||||||
Footer: typeof import('./.vitepress/theme/components/layout/Footer.vue')['default']
|
Footer: typeof import('./.vitepress/theme/components/layout/Footer.vue')['default']
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"installCommand": "pnpm add -g pnpm@8.3.1 && pnpm install --force",
|
"installCommand": "pnpm i",
|
||||||
"buildCommand": "pnpm docs:build",
|
"buildCommand": "pnpm docs:build",
|
||||||
"devCommand": "pnpm docs:dev",
|
"devCommand": "pnpm docs:dev",
|
||||||
"cleanUrls": true,
|
"cleanUrls": true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user