⬆️ Chore(libs): update Artalk from 2.3.4 to 2.5.2

This commit is contained in:
Cell
2023-03-31 21:43:04 +08:00
parent 1cc75302f1
commit db6335cee3
15 changed files with 66 additions and 41 deletions
+7 -4
View File
@@ -3,16 +3,18 @@
All notable changes to this project will be documented in this file.
<!-- Releases see https://github.com/hugo-fixit/FixIt/releases -->
## v0.2.18
## v0.2.18 [2023.3.31]
> **Note**
> This will be the last relatively stable 0.x release, after which the first major release will be incompatible with all previous 0.x releases
> Snapshot: <>
## :boom: Breaking Updates
- [#288](https://github.com/hugo-fixit/FixIt/pull/288)
- Refactor author data config [#288](https://github.com/hugo-fixit/FixIt/pull/288)
## :new: What's New
> Snapshot: <>
- :tada: Feat: add natively support mermaid with code fences ([#230](https://github.com/hugo-fixit/FixIt/issues/230))
- :tada: Feat: add breadcrumb navigation ([#309](https://github.com/hugo-fixit/FixIt/pull/309))
- :sparkles: Feat: add instant page (@Mejituu [#279](https://github.com/hugo-fixit/FixIt/pull/279))
@@ -43,6 +45,7 @@ All notable changes to this project will be documented in this file.
- Update Update @waline/client from 2.10.0 to 2.14.7 (@Mejituu [#279](https://github.com/hugo-fixit/FixIt/pull/279))
- Update typeit from 8.7.0 to 8.7.1
- Update mermaid from 9.1.7 to 9.4.3
- Update Artalk from 2.3.4 to 2.5.2
- **Full Changelog:** @Lruihao [`v0.2.16...v0.2.17`](https://github.com/hugo-fixit/FixIt/compare/v0.2.16...v0.2.17)
## v0.2.17 [2023.1.29]
+3 -3
View File
@@ -13,9 +13,9 @@ libFiles:
# aplayer@1.10.1 https://github.com/MoePlayer/APlayer
aplayerCSS: aplayer@1.10.1/dist/APlayer.min.css
aplayerJS: aplayer@1.10.1/dist/APlayer.min.js
# artalk@2.3.4 https://github.com/ArtalkJS/Artalk
artalkCSS: artalk@2.3.4/dist/Artalk.min.css
artalkJS: artalk@2.3.4/dist/Artalk.min.js
# artalk@2.5.2 https://github.com/ArtalkJS/Artalk
artalkCSS: artalk@2.5.2/dist/Artalk.css
artalkJS: artalk@2.5.2/dist/Artalk.js
# autocomplete-js@0.38.1 https://github.com/algolia/autocomplete
# TODO update autocompleteJS: '@algolia/autocomplete-js@1.7.1/dist/umd/index.production.js'
autocompleteJS: autocomplete.js@0.38.1/dist/autocomplete.min.js
+3 -3
View File
@@ -13,9 +13,9 @@ libFiles:
# aplayer@1.10.1 https://github.com/MoePlayer/APlayer
aplayerCSS: aplayer@1.10.1/dist/APlayer.min.css
aplayerJS: aplayer@1.10.1/dist/APlayer.min.js
# artalk@2.3.4 https://github.com/ArtalkJS/Artalk
artalkCSS: artalk@2.3.4/dist/Artalk.css
artalkJS: artalk@2.3.4/dist/Artalk.js
# artalk@2.5.2 https://github.com/ArtalkJS/Artalk
artalkCSS: artalk@2.5.2/dist/Artalk.css
artalkJS: artalk@2.5.2/dist/Artalk.js
# autocomplete-js@0.38.1 https://github.com/algolia/autocomplete
# TODO update autocompleteJS: '@algolia/autocomplete-js@1.7.1/dist/umd/index.production.js'
autocompleteJS: autocomplete.js@0.38.1/dist/autocomplete.min.js
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,7 +1,7 @@
algoliasearch@4.14.2 https://github.com/algolia/algoliasearch-client-javascript
animate.css@4.1.1 https://github.com/daneden/animate.css
aplayer@1.10.1 https://github.com/MoePlayer/APlayer
artalk@2.3.4 https://github.com/ArtalkJS/Artalk
artalk@2.5.2 https://github.com/ArtalkJS/Artalk
autocomplete-js@0.38.1 https://github.com/algolia/autocomplete
cell-watermark@1.0.3 https://github.com/Lruihao/watermark
cookieconsent@3.1.1 https://github.com/osano/cookieconsent
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+11 -1
View File
@@ -514,10 +514,20 @@
sendBtn = ""
editorTravel = true
flatMode = "auto"
maxNesting = 3
# FixIt 0.2.17 | CHANGED enable lightgallery support
lightgallery = false
locale = "" # FixIt 0.2.15 | NEW
# FixIt 0.2.18 | NEW
emoticons = ""
nestMax = 2
nestSort = "DATE_ASC" # ["DATE_ASC", "DATE_DESC", "VOTE_UP_DESC"]
vote = true
voteDown = false
uaBadge = true
listSort = true
imgUpload = true
preview = true
versionCheck = true
# FixIt 0.1.1 | NEW Disqus comment config (https://disqus.com)
[params.page.comment.disqus]
enable = false
+1 -1
Submodule docs updated: 815d15a65b...54db49b7a8
+33 -9
View File
@@ -10,9 +10,9 @@
{{- $artalk := $comment.artalk | default dict -}}
{{- if $artalk.enable -}}
<div id="artalk" class="comment"></div>
{{- $source := $cdn.artalkCSS | default "lib/artalk/Artalk.min.css" -}}
{{- $source := $cdn.artalkCSS | default "lib/artalk/Artalk.css" -}}
{{- dict "Source" $source "Minify" true "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/style.html" -}}
{{- $source := $cdn.artalkJS | default "lib/artalk/Artalk.min.js" -}}
{{- $source := $cdn.artalkJS | default "lib/artalk/Artalk.js" -}}
{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}}
{{- $commentConfig = dict "el" "#artalk" "pageKey" .Permalink "pageTitle" .Title "pvEl" "artalk-visitor-count" "countEl" "artalk-comment-count" | dict "artalk" | merge $commentConfig -}}
{{- if (eq $artalk.locale "") | and (eq $.Site.LanguageCode "en") -}}
@@ -31,24 +31,48 @@
{{- with $artalk.placeholder -}}
{{- $commentConfig = dict "placeholder" . | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- with $artalk.noComment -}}
{{- with $artalk.nocomment -}}
{{- $commentConfig = dict "noComment" . | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- with $artalk.sendBtn -}}
{{- with $artalk.sendbtn -}}
{{- $commentConfig = dict "sendBtn" . | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- with $artalk.editorTravel -}}
{{- with $artalk.editortravel -}}
{{- $commentConfig = dict "editorTravel" . | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- with $artalk.flatMode -}}
{{- $commentConfig = dict "flatMode" . | dict "artalk" | merge $commentConfig -}}
{{- if ne $artalk.flatmode nil -}}
{{- $commentConfig = dict "flatMode" $artalk.flatmode | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- with $artalk.maxNesting -}}
{{- $commentConfig = dict "maxNesting" . | dict "artalk" | merge $commentConfig -}}
{{- with $artalk.nestmax -}}
{{- $commentConfig = dict "nestMax" . | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- with $artalk.nestsort -}}
{{- $commentConfig = dict "nestSort" . | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- with $artalk.lightgallery -}}
{{- $commentConfig = dict "lightgallery" . | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- if eq $artalk.vote false -}}
{{- $commentConfig = dict "vote" false | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- with $artalk.votedown -}}
{{- $commentConfig = dict "voteDown" . | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- if eq $artalk.uabadge false -}}
{{- $commentConfig = dict "uaBadge" false | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- if eq $artalk.listsort false -}}
{{- $commentConfig = dict "listSort" false | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- if eq $artalk.imgupload false -}}
{{- $commentConfig = dict "imgUpload" false | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- if eq $artalk.preview false -}}
{{- $commentConfig = dict "preview" false | dict "artalk" | merge $commentConfig -}}
{{- end -}}
{{- if eq $artalk.versioncheck false -}}
{{- $commentConfig = dict "versionCheck" false | dict "artalk" | merge $commentConfig -}}
{{- end -}}
<noscript>
Please enable JavaScript to view the comments powered by <a href="https://github.com/ArtalkJS/Artalk" rel="external nofollow noopener noreferrer">Artalk</a>.
</noscript>
+2 -2
View File
@@ -101,7 +101,7 @@
{{- if $comment.enable -}}
{{- if $comment.artalk.enable -}}
<span class="comment-visitors" data-flag-title="{{ .Title }}">
{{ $visitorIcon }}<span id="{{ .RelPermalink }}" class="artalk-visitor-count">-</span>&nbsp;{{ T "single.views" }}
{{ $visitorIcon }}<span class="artalk-visitor-count" data-page-key="{{ .RelPermalink }}">-</span>&nbsp;{{ T "single.views" }}
</span>&nbsp;
{{- else if ($comment.valine.enable | and $comment.valine.visitor) -}}
<span id="{{ .RelPermalink }}" class="leancloud_visitors comment-visitors" data-flag-title="{{ .Title }}">
@@ -129,7 +129,7 @@
{{- if $comment.enable -}}
{{- if $comment.artalk.enable -}}
<span class="comment-count" data-flag-title="{{ .Title }}">
{{ $commentIcon }}<span data-xid="{{ .RelPermalink }}" class="artalk-comment-count">-</span>&nbsp;{{ T "single.comments" }}
{{ $commentIcon }}<span class="artalk-comment-count" data-page-key="{{ .RelPermalink }}">-</span>&nbsp;{{ T "single.comments" }}
</span>&nbsp;
{{- else if $comment.valine.enable | and $comment.valine.commentCount -}}
<span class="comment-count" data-flag-title="{{ .Title }}">
+1 -1
View File
@@ -885,7 +885,7 @@ class FixIt {
countEl: this.config.comment.artalk.countEl
})
}
const artalk = new Artalk(this.config.comment.artalk);
const artalk = Artalk.init(this.config.comment.artalk);
artalk.setDarkMode(this.isDark);
this.switchThemeEventSet.add(() => {
artalk.setDarkMode(this.isDark);