valaxy-theme-yun 0.15.14 → 0.16.1
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 +7 -7
- package/components/YunCard.vue +1 -0
- package/components/YunComment.vue +2 -1
- package/components/YunFooter.vue +5 -3
- package/components/YunLinks.vue +3 -3
- package/components/YunPostCard.vue +1 -0
- package/components/YunPostList.vue +1 -1
- package/layouts/404.vue +1 -1
- package/package.json +6 -6
@@ -44,13 +44,13 @@ onContentUpdated(() => {
|
|
44
44
|
// only intercept inbound links
|
45
45
|
if (
|
46
46
|
!e.ctrlKey
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
47
|
+
&& !e.shiftKey
|
48
|
+
&& !e.altKey
|
49
|
+
&& !e.metaKey
|
50
|
+
&& target !== '_blank'
|
51
|
+
&& protocol === currentUrl.protocol
|
52
|
+
&& hostname === currentUrl.hostname
|
53
|
+
&& !(extMatch && extMatch[0] !== '.html')
|
54
54
|
) {
|
55
55
|
if (pathname === currentUrl.pathname) {
|
56
56
|
e.preventDefault()
|
package/components/YunCard.vue
CHANGED
@@ -5,10 +5,11 @@ const runtimeConfig = useRuntimeConfig()
|
|
5
5
|
</script>
|
6
6
|
|
7
7
|
<template>
|
8
|
-
<YunCard w="full" p="4" class="comment sm:p-6 lg:px-12 xl:px-16">
|
8
|
+
<YunCard w="full" p="4" class="comment yun-comment sm:p-6 lg:px-12 xl:px-16">
|
9
9
|
<ClientOnly>
|
10
10
|
<YunWaline v-if="runtimeConfig.addons['valaxy-addon-waline']" />
|
11
11
|
<YunTwikoo v-if="runtimeConfig.addons['valaxy-addon-twikoo']" />
|
12
|
+
<slot />
|
12
13
|
</ClientOnly>
|
13
14
|
</YunCard>
|
14
15
|
</template>
|
package/components/YunFooter.vue
CHANGED
@@ -15,9 +15,9 @@ const isThisYear = computed(() => {
|
|
15
15
|
return year === themeConfig.value.footer.since
|
16
16
|
})
|
17
17
|
|
18
|
-
const poweredHtml = computed(() => t('footer.powered', [`<a href="${pkg.repository}" target="_blank" rel="noopener">Valaxy</a> v${pkg.version}`]))
|
18
|
+
const poweredHtml = computed(() => t('footer.powered', [`<a href="${pkg.repository.url}" target="_blank" rel="noopener">Valaxy</a> v${pkg.version}`]))
|
19
19
|
const footerIcon = computed(() => themeConfig.value.footer.icon || {
|
20
|
-
url: pkg.repository,
|
20
|
+
url: pkg.repository.url,
|
21
21
|
name: 'i-ri-cloud-line',
|
22
22
|
title: pkg.name,
|
23
23
|
})
|
@@ -44,7 +44,9 @@ const footerIcon = computed(() => themeConfig.value.footer.icon || {
|
|
44
44
|
v-if="themeConfig.footer.icon?.enable"
|
45
45
|
class="inline-flex"
|
46
46
|
:class="themeConfig.footer.icon.animated ? 'animate-pulse' : ''"
|
47
|
-
:href="footerIcon.url"
|
47
|
+
:href="footerIcon.url"
|
48
|
+
target="_blank"
|
49
|
+
:title="footerIcon.title"
|
48
50
|
>
|
49
51
|
<div :class="footerIcon.name" />
|
50
52
|
</a>
|
package/components/YunLinks.vue
CHANGED
@@ -31,7 +31,7 @@ function onError(e: Event) {
|
|
31
31
|
<div class="links">
|
32
32
|
<ul class="link-items">
|
33
33
|
<li v-for="link, i in data" :key="i" class="link-item" :style="`--primary-color: ${link.color}`">
|
34
|
-
<a class="link-url" p="x-4 y-2" :href="link.url" :title="link.name" alt="portrait" rel="friend">
|
34
|
+
<a class="link-url" p="x-4 y-2" :href="link.url" :title="link.name" alt="portrait" rel="friend" target="_blank">
|
35
35
|
<div class="link-left">
|
36
36
|
<img
|
37
37
|
class="link-avatar" width="64" height="64" w="16" h="16"
|
@@ -49,7 +49,7 @@ function onError(e: Event) {
|
|
49
49
|
</div>
|
50
50
|
</template>
|
51
51
|
|
52
|
-
<
|
52
|
+
<style lang="scss" scoped>
|
53
53
|
.link-item {
|
54
54
|
display: inline-flex;
|
55
55
|
}
|
@@ -117,4 +117,4 @@ function onError(e: Event) {
|
|
117
117
|
justify-content: center;
|
118
118
|
}
|
119
119
|
}
|
120
|
-
</
|
120
|
+
</style>
|
@@ -23,6 +23,7 @@ const { icon, styles } = usePostProperty(props.post.type)
|
|
23
23
|
width="320" height="180"
|
24
24
|
w="40%" h="54"
|
25
25
|
class="cover object-cover object-center md:shadow"
|
26
|
+
loading="lazy"
|
26
27
|
>
|
27
28
|
|
28
29
|
<div class="flex flex-col items-center" :class="post.cover && 'h-54'" w="full">
|
package/layouts/404.vue
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.16.1",
|
4
4
|
"author": {
|
5
5
|
"email": "me@yunyoujun.cn",
|
6
6
|
"name": "YunYouJun",
|
@@ -18,13 +18,13 @@
|
|
18
18
|
"types": "types/index.d.ts",
|
19
19
|
"dependencies": {
|
20
20
|
"@explosions/fireworks": "^0.0.2",
|
21
|
-
"@iconify-json/ant-design": "^1.1.
|
22
|
-
"@iconify-json/simple-icons": "^1.1.
|
23
|
-
"animejs": "^3.2.
|
21
|
+
"@iconify-json/ant-design": "^1.1.13",
|
22
|
+
"@iconify-json/simple-icons": "^1.1.85",
|
23
|
+
"animejs": "^3.2.2"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
|
-
"@types/animejs": "^3.1.
|
27
|
-
"valaxy": "0.
|
26
|
+
"@types/animejs": "^3.1.12",
|
27
|
+
"valaxy": "0.16.1",
|
28
28
|
"valaxy-addon-waline": "0.1.1"
|
29
29
|
}
|
30
30
|
}
|