valaxy-theme-yun 0.22.12 → 0.22.14
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.
- package/README.md +2 -2
- package/components/YunOutline.vue +6 -7
- package/components/YunOverlay.vue +1 -1
- package/components/YunSay.vue +1 -1
- package/docs/zh-CN/config.md +1 -2
- package/layouts/home.vue +22 -21
- package/locales/en.yml +3 -0
- package/locales/zh-CN.yml +3 -0
- package/node/config.ts +3 -2
- package/package.json +5 -5
package/README.md
CHANGED
@@ -24,10 +24,10 @@ pnpm dev
|
|
24
24
|
pnpm build
|
25
25
|
```
|
26
26
|
|
27
|
-
## [Sponsors](https://
|
27
|
+
## [Sponsors](https://www.yunyoujun.cn/sponsors/)
|
28
28
|
|
29
29
|
<p align="center">
|
30
|
-
<a href="https://
|
30
|
+
<a href="https://www.yunyoujun.cn/sponsors/">
|
31
31
|
<img src='https://fastly.jsdelivr.net/gh/YunYouJun/sponsors/public/sponsors.svg'/>
|
32
32
|
</a>
|
33
33
|
</p>
|
@@ -4,22 +4,21 @@ import {
|
|
4
4
|
useOutline,
|
5
5
|
} from 'valaxy'
|
6
6
|
import { ref } from 'vue'
|
7
|
-
import {
|
7
|
+
import { useI18n } from 'vue-i18n'
|
8
8
|
|
9
|
-
const
|
10
|
-
|
11
|
-
const container = ref()
|
9
|
+
const { t } = useI18n()
|
10
|
+
const containerRef = ref()
|
12
11
|
const marker = ref()
|
13
12
|
|
14
13
|
const { headers, handleClick } = useOutline()
|
15
|
-
useActiveAnchor(
|
14
|
+
useActiveAnchor(containerRef, marker)
|
16
15
|
</script>
|
17
16
|
|
18
17
|
<template>
|
19
|
-
<div v-show="headers.length" ref="
|
18
|
+
<div v-show="headers.length" ref="containerRef">
|
20
19
|
<div class="content">
|
21
20
|
<div class="outline-title">
|
22
|
-
{{
|
21
|
+
{{ t('theme.outlineTitle') }}
|
23
22
|
</div>
|
24
23
|
|
25
24
|
<div ref="marker" class="outline-marker" />
|
package/components/YunSay.vue
CHANGED
@@ -70,7 +70,7 @@ onMounted(() => {
|
|
70
70
|
font-family: var(--va-font-serif);
|
71
71
|
font-weight: bold;
|
72
72
|
padding: 0.5rem;
|
73
|
-
border-top: var(--va-border-width) solid var(--va-c-text-light);
|
73
|
+
// border-top: var(--va-border-width) solid var(--va-c-text-light);
|
74
74
|
border-bottom: var(--va-border-width) solid var(--va-c-text-light);
|
75
75
|
|
76
76
|
.say-content {
|
package/docs/zh-CN/config.md
CHANGED
package/layouts/home.vue
CHANGED
@@ -26,27 +26,28 @@ const showNotice = computed(() => {
|
|
26
26
|
>
|
27
27
|
<template v-if="themeConfig.banner.enable">
|
28
28
|
<template v-if="!isPage">
|
29
|
-
<
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
<
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
29
|
+
<div class="w-full">
|
30
|
+
<YunBanner />
|
31
|
+
<Transition
|
32
|
+
v-if="yun.isNimbo"
|
33
|
+
enter-from-class="scale-60"
|
34
|
+
enter-to-class="scale-100"
|
35
|
+
enter-active-class="transition-300 transition-cubic-bezier-ease-in-out delay-1000"
|
36
|
+
appear
|
37
|
+
>
|
38
|
+
<div class="absolute top-0 left-5 right-5 bottom-0 flex-center">
|
39
|
+
<Transition
|
40
|
+
enter-from-class="op-0"
|
41
|
+
enter-to-class="op-100"
|
42
|
+
enter-active-class="transition-800 delay-1000"
|
43
|
+
appear
|
44
|
+
>
|
45
|
+
<YunPrologueSquare class="z-1" />
|
46
|
+
</Transition>
|
47
|
+
</div>
|
48
|
+
</Transition>
|
49
|
+
<YunSay v-if="themeConfig.say.enable" w="full" />
|
50
|
+
</div>
|
50
51
|
<YunPrologue v-if="yun.isNimbo" class="absolute left-0 top-0 right-0 bottom-0" />
|
51
52
|
</template>
|
52
53
|
</template>
|
package/locales/en.yml
CHANGED
package/locales/zh-CN.yml
CHANGED
package/node/config.ts
CHANGED
@@ -26,7 +26,8 @@ export const defaultThemeConfig: ThemeConfig = {
|
|
26
26
|
},
|
27
27
|
|
28
28
|
say: {
|
29
|
-
enable: false,
|
29
|
+
// enable: false,
|
30
|
+
enable: true,
|
30
31
|
api: '',
|
31
32
|
// api: 'https://el-bot-api.elpsy.cn/api/words/young',
|
32
33
|
hitokoto: {
|
@@ -56,7 +57,7 @@ export const defaultThemeConfig: ThemeConfig = {
|
|
56
57
|
name: 'i-ri-cloud-line',
|
57
58
|
animated: true,
|
58
59
|
color: 'var(--va-c-primary)',
|
59
|
-
url: 'https://
|
60
|
+
url: 'https://www.yunyoujun.cn/sponsors/',
|
60
61
|
title: 'Sponsor YunYouJun',
|
61
62
|
},
|
62
63
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.22.
|
4
|
+
"version": "0.22.14",
|
5
5
|
"author": {
|
6
6
|
"email": "me@yunyoujun.cn",
|
7
7
|
"name": "YunYouJun",
|
@@ -24,16 +24,16 @@
|
|
24
24
|
"@ctrl/tinycolor": "^4.1.0",
|
25
25
|
"@explosions/fireworks": "^0.1.0",
|
26
26
|
"@iconify-json/ant-design": "^1.2.5",
|
27
|
-
"@iconify-json/simple-icons": "^1.2.
|
27
|
+
"@iconify-json/simple-icons": "^1.2.27",
|
28
28
|
"@vueuse/motion": "^2.2.6",
|
29
29
|
"animejs": "^3.2.2",
|
30
30
|
"gsap": "^3.12.7",
|
31
|
-
"primevue": "^4.
|
31
|
+
"primevue": "^4.3.1"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
34
|
"@types/animejs": "^3.1.13",
|
35
|
-
"valaxy
|
36
|
-
"valaxy": "0.
|
35
|
+
"valaxy": "0.22.14",
|
36
|
+
"valaxy-addon-waline": "0.2.0"
|
37
37
|
},
|
38
38
|
"scripts": {
|
39
39
|
"release": "bumpp && pnpm publish"
|