Skip to content

Commit

Permalink
⬆️ Chore(libs): update Waline from 2.15.8 to 3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yureiita committed Nov 29, 2024
1 parent 582b96b commit e813536
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 11 deletions.
6 changes: 3 additions & 3 deletions assets/data/cdn/jsdelivr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ libFiles:
typeitJS: [email protected]/dist/index.umd.js
# [email protected] https://github.com/xCss/Valine
valineJS: [email protected]/dist/Valine.min.js
# waline@2.15.8 https://github.com/walinejs/waline
walineCSS: '@waline/client@2.15.8/dist/waline.css'
walineJS: '@waline/client@2.15.8/dist/waline.js'
# waline@3.4.1 https://github.com/walinejs/waline
walineCSS: '@waline/client@3.4.1/dist/waline.css'
walineJS: '@waline/client@3.4.1/dist/waline.umd.js'
# [email protected] https://github.com/jungomi/xxhash-wasm
xxhashWasmJS: [email protected]/umd/xxhash-wasm.js

6 changes: 3 additions & 3 deletions assets/data/cdn/unpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ libFiles:
typeitJS: [email protected]/dist/index.umd.js
# [email protected] https://github.com/xCss/Valine
valineJS: [email protected]/dist/Valine.min.js
# waline@2.15.8 https://github.com/walinejs/waline
walineCSS: '@waline/client@2.15.8/dist/waline.css'
walineJS: '@waline/client@2.15.8/dist/waline.js'
# waline@3.4.1 https://github.com/walinejs/waline
walineCSS: '@waline/client@3.4.1/dist/waline.css'
walineJS: '@waline/client@3.4.1/dist/waline.umd.js'
# [email protected] https://github.com/jungomi/xxhash-wasm
xxhashWasmJS: [email protected]/umd/xxhash-wasm.js
2 changes: 1 addition & 1 deletion assets/lib/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ [email protected] https://github.com/twitter/twemoji
[email protected] https://github.com/imaegoo/twikoo
[email protected] https://github.com/alexmacarthur/typeit
[email protected] https://github.com/xCss/Valine
waline@2.15.8 https://github.com/walinejs/waline
waline@3.4.1 https://github.com/walinejs/waline
[email protected] https://github.com/jungomi/xxhash-wasm
2 changes: 1 addition & 1 deletion assets/lib/waline/waline.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/lib/waline/waline.js

This file was deleted.

83 changes: 83 additions & 0 deletions assets/lib/waline/waline.umd.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions layouts/partials/single/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@

{{- /* Waline Comment System */ -}}
{{- /* see https://waline.js.org/reference/component.html */ -}}
{{- /* TODO adapted to Waline 2.15.8 */ -}}
{{- /* TODO adapted to Waline 3.4.1 */ -}}
{{- $waline := $comment.waline | default dict -}}
{{- if $waline.enable -}}
<div id="waline" class="comment"></div>
{{- $source := $cdn.walineCSS | default "lib/waline/waline.css" -}}
{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/style.html" -}}
{{- $source := $cdn.walineJS | default "lib/waline/waline.js" -}}
{{- $source := $cdn.walineJS | default "lib/waline/waline.umd.js" -}}
{{- dict "Source" $source "Fingerprint" $fingerprint "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}}
{{- $commentConfig = dict "el" "#waline" "serverURL" $waline.serverURL "lang" .Lang "dark" "html[data-theme='dark']" | dict "waline" | merge $commentConfig -}}
{{- $commentConfig = dict "copyright" true "imageUploader" false "highlighter" false "texRenderer" false "search" false | dict "waline" | merge $commentConfig -}}
Expand Down

0 comments on commit e813536

Please sign in to comment.