Skip to content

Commit

Permalink
fix: downgrade ts@5.6 to fix vue-tsc check
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Dec 6, 2024
1 parent 6b27e7f commit 1da37b1
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 112 deletions.
9 changes: 7 additions & 2 deletions packages/devtools/src/client/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// register vue composition api globally
import { createApp, ref } from 'vue'

import { createRouter, createWebHashHistory } from 'vue-router/auto'
import { routes } from 'vue-router/auto-routes'
import { createRouter, createWebHashHistory } from 'vue-router'
import { handleHotUpdate, routes } from 'vue-router/auto-routes'
import App from './App.vue'

import '@unocss/reset/tailwind.css'
Expand All @@ -28,5 +28,10 @@ if (import.meta.env.DEV) {
}
}

// This will update routes at runtime without reloading the page
if (import.meta.hot) {
handleHotUpdate(router)
}

app.use(router)
app.mount('#app')
13 changes: 10 additions & 3 deletions packages/valaxy/client/composables/app/useValaxyHead.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ export function useValaxyHead() {

const fm = useFrontmatter()
const siteConfig = useSiteConfig()
const title = computed(() => fm.value[`title_${locale.value}`] || fm.value.title)
const title = computed<string>(() => fm.value[`title_${locale.value}`] || fm.value.title)
useHead({
title,
titleTemplate: computed(() => fm.value.titleTemplate || ((title: string) => title ? `${title} - ${siteConfig.value.title}` : siteConfig.value.title)),
titleTemplate: (title) => {
return fm.value.titleTemplate || (title ? `${title} - ${siteConfig.value.title}` : siteConfig.value.title)
},
link: [
{
rel: 'icon',
Expand All @@ -23,7 +25,12 @@ export function useValaxyHead() {
},
],
meta: [
{ name: 'description', content: computed(() => siteConfig.value.description) },
computed(() => {
return {
name: 'description',
content: fm.value.description || siteConfig.value.description,
}
}),
{
name: 'generator',
content: `Valaxy ${pkg.version}`,
Expand Down
Loading

1 comment on commit 1da37b1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://67530915466dda7345636292--valaxy.netlify.app

Please sign in to comment.