valaxy-theme-yun 0.3.2 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <a class="go-down" aria-label="go-down" href="javascript:window.scrollTo(0, banner.clientHeight);">
2
+ <a class="go-down" aria-label="go-down" href="javascript:window.scrollTo(0, window.banner.clientHeight);">
3
3
  <div i-ri-arrow-down-s-line inline-flex />
4
4
  </a>
5
5
  </template>
package/layouts/post.vue CHANGED
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { computed } from '@vue/reactivity';
2
+ import { computed } from 'vue'
3
3
  import { useConfig, useFrontmatter, useFullUrl } from 'valaxy'
4
4
 
5
5
  const config = useConfig()
@@ -7,9 +7,9 @@ const frontmatter = useFrontmatter()
7
7
  const url = useFullUrl()
8
8
 
9
9
  const showSponsor = computed(() => {
10
- if (typeof frontmatter.value.sponsor === 'boolean') {
10
+ if (typeof frontmatter.value.sponsor === 'boolean')
11
11
  return frontmatter.value.sponsor
12
- }
12
+
13
13
  return config.value.sponsor.enable
14
14
  })
15
15
  </script>
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.3.2",
4
- "main": "dist/index.js",
5
- "types": "dist/index.d.ts",
3
+ "version": "0.3.5",
4
+ "author": {
5
+ "email": "me@yunyoujun.cn",
6
+ "name": "YunYouJun",
7
+ "url": "https://www.yunyoujun.cn"
8
+ },
6
9
  "repository": {
7
10
  "type": "git",
8
11
  "url": "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-theme-yun"
9
12
  },
13
+ "main": "dist/index.js",
14
+ "types": "dist/index.d.ts",
10
15
  "homepage": "https://valaxy.yyj.moe/",
11
16
  "dependencies": {
12
17
  "@iconify-json/ant-design": "^1.1.1",
13
18
  "@iconify-json/simple-icons": "^1.1.11"
14
19
  },
15
- "author": {
16
- "email": "me@yunyoujun.cn",
17
- "name": "YunYouJun",
18
- "url": "https://www.yunyoujun.cn"
19
- },
20
20
  "devDependencies": {
21
- "valaxy": "0.3.2"
21
+ "valaxy": "0.3.5"
22
22
  },
23
23
  "scripts": {
24
24
  "build": "tsup",