Skip to content

Commit

Permalink
chore(docs): bump Artalk to v2.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed Dec 20, 2023
1 parent 0a89426 commit dfaf95b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
23 changes: 10 additions & 13 deletions docs/docs/.vitepress/theme/Artalk.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<script setup lang="ts">
import { watch, nextTick, ref, onMounted, onUnmounted } from 'vue'
import { useData, useRouter } from 'vitepress'
import type Artalk from 'artalk'
import Artalk from 'artalk'
const el = ref<HTMLElement | null>(null)
Expand All @@ -32,19 +32,16 @@ onUnmounted(() => {
})
function initArtalk(conf: any) {
// TODO: remove dynamic import after the new version released
import('artalk').then(({ default: Artalk }) => {
artalk = Artalk.init({
el: el.value,
emoticons: '/assets/emoticons/default.json',
gravatar: {
mirror: 'https://cravatar.cn/avatar/'
},
...conf
})
}).then(() => {
loadExtraFuncs()
artalk = Artalk.init({
el: el.value,
emoticons: '/assets/emoticons/default.json',
gravatar: {
mirror: 'https://cravatar.cn/avatar/'
},
...conf
})
loadExtraFuncs()
}
function getConfByPage() {
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"docs:serve": "vitepress serve"
},
"devDependencies": {
"artalk": "^2.7.1",
"artalk": "^2.7.2",
"markdown-it-for-inline": "^2.0.1",
"sass": "^1.69.5",
"vitepress": "1.0.0-rc.32"
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dfaf95b

Please sign in to comment.