valaxy-theme-yun 0.10.4 → 0.11.0
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/components/ValaxyMain.vue +3 -3
- package/components/YunFooter.vue +8 -8
- package/components/YunWaline.vue +1 -18
- package/layouts/home.vue +1 -3
- package/layouts/layout.vue +0 -3
- package/package.json +4 -4
@@ -62,9 +62,9 @@ const YunTwikoo = config.value.comment.waline.enable
|
|
62
62
|
</YunCard>
|
63
63
|
</slot>
|
64
64
|
|
65
|
-
<
|
66
|
-
|
67
|
-
|
65
|
+
<slot name="main-footer-before" />
|
66
|
+
<YunFooter />
|
67
|
+
<slot name="main-footer-after" />
|
68
68
|
</div>
|
69
69
|
</slot>
|
70
70
|
|
package/components/YunFooter.vue
CHANGED
@@ -2,15 +2,12 @@
|
|
2
2
|
import { capitalize, computed } from 'vue'
|
3
3
|
import { useConfig } from 'valaxy'
|
4
4
|
import { useI18n } from 'vue-i18n'
|
5
|
-
|
6
5
|
import pkg from 'valaxy/package.json'
|
7
6
|
import { useThemeConfig } from '../composables'
|
8
7
|
|
9
8
|
const { t } = useI18n()
|
10
|
-
|
11
9
|
const config = useConfig()
|
12
10
|
const themeConfig = useThemeConfig()
|
13
|
-
|
14
11
|
const year = new Date().getFullYear()
|
15
12
|
|
16
13
|
const isThisYear = computed(() => {
|
@@ -18,11 +15,15 @@ const isThisYear = computed(() => {
|
|
18
15
|
})
|
19
16
|
|
20
17
|
const poweredHtml = computed(() => t('footer.powered', [`<a href="${pkg.repository}" target="_blank" rel="noopener">Valaxy</a> v${pkg.version}`]))
|
21
|
-
const footerIcon = computed(() => themeConfig.value.footer.icon
|
18
|
+
const footerIcon = computed(() => themeConfig.value.footer.icon || {
|
19
|
+
url: pkg.repository,
|
20
|
+
name: 'i-ri-cloud-line',
|
21
|
+
title: pkg.name,
|
22
|
+
})
|
22
23
|
</script>
|
23
24
|
|
24
25
|
<template>
|
25
|
-
<footer class="va-footer p-4
|
26
|
+
<footer class="va-footer p-4 text-$va-c-text-light" text="center sm">
|
26
27
|
<div v-if="themeConfig.footer.beian?.enable && themeConfig.footer.beian.icp" class="beian" m="y-2">
|
27
28
|
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener">
|
28
29
|
{{ themeConfig.footer.beian.icp }}
|
@@ -38,15 +39,14 @@ const footerIcon = computed(() => themeConfig.value.footer.icon!)
|
|
38
39
|
{{ year }}
|
39
40
|
</span>
|
40
41
|
|
41
|
-
<a m="x-2" class="inline-flex animate-pulse" :href="footerIcon.url" target="_blank" :title="footerIcon.title">
|
42
|
+
<a v-if="themeConfig.footer.icon" m="x-2" class="inline-flex animate-pulse" :href="footerIcon.url" target="_blank" :title="footerIcon.title">
|
42
43
|
<div :class="footerIcon.name" />
|
43
44
|
</a>
|
44
|
-
|
45
45
|
<span>{{ config.author.name }}</span>
|
46
46
|
</div>
|
47
47
|
|
48
48
|
<div v-if="themeConfig.footer.powered" class="powered" m="2">
|
49
|
-
<span v-html="poweredHtml" /> | <span>{{ t('footer.theme') }} - <a :href="themeConfig.pkg.homepage" :title="
|
49
|
+
<span v-html="poweredHtml" /> | <span>{{ t('footer.theme') }} - <a :href="themeConfig.pkg.homepage" :title="themeConfig.pkg.name" target="_blank">{{ capitalize(config.theme) }}</a> v{{ themeConfig.pkg.version }}</span>
|
50
50
|
</div>
|
51
51
|
|
52
52
|
<slot />
|
package/components/YunWaline.vue
CHANGED
@@ -1,25 +1,8 @@
|
|
1
1
|
<script lang="ts" setup>
|
2
2
|
import { useConfig } from 'valaxy'
|
3
|
-
import { useWaline } from 'valaxy-addon-waline'
|
4
|
-
|
5
3
|
const config = useConfig()
|
6
|
-
useWaline(config.value.comment.waline, config.value.cdn.prefix)
|
7
4
|
</script>
|
8
5
|
|
9
6
|
<template>
|
10
|
-
<
|
7
|
+
<WalineClient w="full" :server-u-r-l="config.comment.waline.serverURL" :cdn="config.cdn.prefix" />
|
11
8
|
</template>
|
12
|
-
|
13
|
-
<style lang="scss">
|
14
|
-
#waline {
|
15
|
-
--waline-theme-color: var(--va-c-primary);
|
16
|
-
--waline-active-color: var(--va-c-primary-light);
|
17
|
-
|
18
|
-
.v[data-class=v] {
|
19
|
-
.veditor {
|
20
|
-
width: calc(100% - 2em);
|
21
|
-
padding: 0.5rem;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
</style>
|
package/layouts/home.vue
CHANGED
package/layouts/layout.vue
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.11.0",
|
4
4
|
"author": {
|
5
5
|
"email": "me@yunyoujun.cn",
|
6
6
|
"name": "YunYouJun",
|
@@ -20,10 +20,10 @@
|
|
20
20
|
"@docsearch/css": "^3.2.1",
|
21
21
|
"@docsearch/js": "^3.2.1",
|
22
22
|
"@iconify-json/ant-design": "^1.1.3",
|
23
|
-
"@iconify-json/simple-icons": "^1.1.
|
24
|
-
"valaxy-addon-waline": "0.0.
|
23
|
+
"@iconify-json/simple-icons": "^1.1.28",
|
24
|
+
"valaxy-addon-waline": "0.0.2"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
|
-
"valaxy": "0.
|
27
|
+
"valaxy": "0.11.0"
|
28
28
|
}
|
29
29
|
}
|