valaxy-theme-press 0.19.0 → 0.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,6 +64,7 @@ const app = useAppStore()
64
64
  margin-top: calc(var(--pr-nav-height) * -1 - 20px);
65
65
  padding-top: calc(var(--pr-nav-height) + 20px);
66
66
  height: 100vh;
67
+ background-color: var(--va-c-bg);
67
68
  }
68
69
 
69
70
  .aside-curtain {
@@ -16,20 +16,16 @@ const { t } = useI18n()
16
16
  </h1>
17
17
  </div>
18
18
 
19
- <h2 px="2" m="b-10" text="center 6xl" font="black" leading="tight">
20
- <span>{{ t('banner.next-generation') }}</span>
21
- <br>
22
- <span>{{ t('banner.static') }} </span>
23
- <span class="gradient-text from-blue-500 to-purple-700" bg="gradient-to-r">{{ t('banner.blog') }}</span>
24
- <span class="break-keep">{{ t('banner.framework') }}</span>
19
+ <h2 flex="~ wrap justify-center" px="2" m="b-10" text="center 6xl" font="black" leading="tight">
20
+ <span mx-1>{{ t('banner.next-generation') }}</span>
21
+ <span mx-1>{{ t('banner.static') }} </span>
22
+ <span mx-1 class="gradient-text from-blue-500 to-purple-700" bg="gradient-to-r">{{ t('banner.blog') }}</span>
23
+ <span mx-1 class="break-keep">{{ t('banner.framework') }}</span>
25
24
  </h2>
26
25
 
27
26
  <div p="2" text="center">
28
27
  <PressButton
29
- v-for="action in fm.hero.actions"
30
- :key="action.link"
31
- :theme="action.theme"
32
- :link="action.link"
28
+ v-for="action in fm.hero.actions" :key="action.link" :theme="action.theme" :link="action.link"
33
29
  :text="action.text"
34
30
  />
35
31
  </div>
@@ -13,8 +13,7 @@ import {
13
13
  } from 'vue'
14
14
 
15
15
  import { useRoute } from 'vue-router'
16
-
17
- import type { PressTheme } from 'valaxy-theme-press'
16
+ import type { PressTheme } from '../types'
18
17
 
19
18
  export interface SidebarControl {
20
19
  collapsed: Ref<boolean>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-press",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
4
4
  "description": "Docs Theme for Valaxy",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
@@ -23,6 +23,6 @@
23
23
  "@docsearch/js": "^3.6.0"
24
24
  },
25
25
  "devDependencies": {
26
- "valaxy": "0.19.0"
26
+ "valaxy": "0.19.2"
27
27
  }
28
28
  }
package/setup/main.ts CHANGED
@@ -18,7 +18,7 @@ export default defineAppSetup((ctx) => {
18
18
  if (!isClient)
19
19
  return
20
20
 
21
- router.beforeEach((to, from) => {
21
+ router.afterEach((to, from) => {
22
22
  if (to.path !== from.path)
23
23
  return
24
24
 
package/tsconfig.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "lib": ["DOM", "ESNext"],
8
8
  "baseUrl": ".",
9
9
  "module": "ESNext",
10
- "moduleResolution": "node",
10
+ "moduleResolution": "Bundler",
11
11
  "resolveJsonModule": true,
12
12
  "types": [
13
13
  "vite/client",