Perf: add loadingText params for AI summary

This commit is contained in:
Cell
2024-12-25 11:03:38 +08:00
parent 03b3bfbd09
commit 72baedd5f5
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -931,6 +931,7 @@ enableEmoji = true
wordLimit = 1000
typingAnimate = true
beginningText = ""
loadingText = true
# FixIt 0.3.10 | NEW Global Feed config for RSS, Atom and JSON feed.
[params.feed]
+1 -1
View File
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.17-33a8861e" -}}
{{- .Scratch.Set "version" "v0.3.17-03b3bfbd" -}}
{{- .Scratch.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}
@@ -51,6 +51,9 @@
{{- with $summaryConfig.beginningText -}}
{{- $postSummaryConfig = add $postSummaryConfig (printf "let %v_BeginningText='%v';" $p .) -}}
{{- end -}}
{{- with eq $summaryConfig.loadingText false -}}
{{- $postSummaryConfig = add $postSummaryConfig (printf "let %v_loadingText=false;" $p) -}}
{{- end -}}
{{- if $chatConfig.enable -}}
{{- $postSummaryConfig = add $postSummaryConfig (printf "let %v_recommendation=true;" $p) -}}
{{- else -}}