valaxy-theme-yun 0.18.5 → 0.18.6
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.
@@ -3,7 +3,7 @@ import { useRuntimeConfig } from 'valaxy'
|
|
3
3
|
import { computed, ref } from 'vue'
|
4
4
|
|
5
5
|
const runtimeConfig = useRuntimeConfig()
|
6
|
-
const supportCommentAddons = ['valaxy-addon-waline', 'valaxy-addon-twikoo']
|
6
|
+
const supportCommentAddons = ['valaxy-addon-waline', 'valaxy-addon-twikoo', 'valaxy-addon-artalk']
|
7
7
|
|
8
8
|
const commentSystems = computed(() => {
|
9
9
|
return supportCommentAddons.filter(addonName => runtimeConfig.value.addons[addonName]).map(addonName => addonName.split('-')[2])
|
@@ -20,6 +20,7 @@ const activeComment = ref(commentSystems.value[0])
|
|
20
20
|
</div>
|
21
21
|
<YunWaline v-if="activeComment === 'waline'" />
|
22
22
|
<YunTwikoo v-if="activeComment === 'twikoo'" />
|
23
|
+
<YunArtalk v-if="activeComment === 'artalk'" />
|
23
24
|
<slot />
|
24
25
|
</ClientOnly>
|
25
26
|
</YunCard>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<script lang="ts" setup>
|
2
|
+
import * as addonArtalk from 'valaxy-addon-artalk'
|
3
|
+
import 'valaxy-addon-artalk/client/styles/index.scss'
|
4
|
+
import { isEmptyAddon } from 'valaxy'
|
5
|
+
|
6
|
+
if (!isEmptyAddon(addonArtalk))
|
7
|
+
addonArtalk.useArtalkWithOptions()
|
8
|
+
</script>
|
9
|
+
|
10
|
+
<template>
|
11
|
+
<ArtalkClient />
|
12
|
+
</template>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
|
-
"version": "0.18.
|
3
|
+
"version": "0.18.6",
|
4
4
|
"author": {
|
5
5
|
"email": "me@yunyoujun.cn",
|
6
6
|
"name": "YunYouJun",
|
@@ -19,13 +19,13 @@
|
|
19
19
|
"module": "index.ts",
|
20
20
|
"dependencies": {
|
21
21
|
"@explosions/fireworks": "^0.0.2",
|
22
|
-
"@iconify-json/ant-design": "^1.1.
|
23
|
-
"@iconify-json/simple-icons": "^1.1.
|
22
|
+
"@iconify-json/ant-design": "^1.1.16",
|
23
|
+
"@iconify-json/simple-icons": "^1.1.99",
|
24
24
|
"animejs": "^3.2.2"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
27
|
"@types/animejs": "^3.1.12",
|
28
|
-
"valaxy": "0.18.
|
29
|
-
"valaxy-addon-waline": "0.1.
|
28
|
+
"valaxy": "0.18.6",
|
29
|
+
"valaxy-addon-waline": "0.1.3"
|
30
30
|
}
|
31
31
|
}
|