valaxy-theme-yun 0.15.14 → 0.16.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.
@@ -44,13 +44,13 @@ onContentUpdated(() => {
44
44
  // only intercept inbound links
45
45
  if (
46
46
  !e.ctrlKey
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')
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()
@@ -9,6 +9,7 @@ defineProps<{ cover?: string }>()
9
9
  width="640" height="360"
10
10
  class="object-cover select-none" h="64 md:sm" w="full"
11
11
  :src="cover"
12
+ loading="lazy"
12
13
  >
13
14
 
14
15
  <div v-if="$slots.header" class="yun-card-header">
@@ -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
- <stye lang="scss" scoped>
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
- </stye>
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">
@@ -30,7 +30,7 @@ const displayedPosts = computed(() =>
30
30
  <template>
31
31
  <div class="yun-post-list" w="full" p="x-4 lt-sm:0">
32
32
  <template v-if="!displayedPosts.length">
33
- <div py2 op50>
33
+ <div py2 op50 text-center>
34
34
  博主还什么都没写哦~
35
35
  </div>
36
36
  </template>
package/layouts/404.vue CHANGED
@@ -14,7 +14,7 @@ const { back } = useBack()
14
14
  404
15
15
  </div>
16
16
 
17
- <RouterView />
17
+ <!-- <RouterView /> -->
18
18
 
19
19
  <div>
20
20
  <button class="btn rounded-full" p="x-6 y-2" text="sm" m="3 t8" :title="t('button.back')" @click="back">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.15.14",
3
+ "version": "0.16.0",
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.10",
22
- "@iconify-json/simple-icons": "^1.1.77",
23
- "animejs": "^3.2.1"
21
+ "@iconify-json/ant-design": "^1.1.13",
22
+ "@iconify-json/simple-icons": "^1.1.84",
23
+ "animejs": "^3.2.2"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/animejs": "^3.1.11",
27
- "valaxy": "0.15.14",
26
+ "@types/animejs": "^3.1.12",
27
+ "valaxy": "0.16.0",
28
28
  "valaxy-addon-waline": "0.1.1"
29
29
  }
30
30
  }