优化:重新将阅读改为访问,便于卜算子使用访问次数

This commit is contained in:
mjsoftware 2024-03-13 17:24:59 +08:00
parent 054e11f4b8
commit f135a2ffd4
3 changed files with 4 additions and 4 deletions

View File

@ -722,7 +722,7 @@ spec:
- value: 'upvote'
label: 点赞数量
- value: 'visit'
label: 阅读数量
label: 访问数量
- $formkit: text
name: profile_theme_button
label: 侧边栏信息-主题按钮

View File

@ -87,7 +87,7 @@
<li class="item" th:each="itemData,sindex :${theme.config.sidebar.custom_stats}" th:switch="${itemData.type}">
<div th:case="visit">
<i class="ri-pie-chart-line"></i>
<span>累计收获 <strong th:text="${stats.visit}"></strong>阅读</span>
<span>累计收获 <strong th:text="${stats.visit}"></strong>访问</span>
</div>
<div th:case="upvote">
<i class="ri-thumb-up-line"></i>

View File

@ -18,7 +18,7 @@
<nav class="level" th:if="${!#lists.isEmpty(theme.config.sidebar.custom_stats)}">
<div th:each="item,sindex :${theme.config.sidebar.custom_stats}" class="level-item" th:switch="${item.type}">
<div th:case="visit">
<p class="heading">阅读</p>
<p class="heading">访问</p>
<p class="value" th:title="${stats.visit / 10000 > 0} ? ${stats.visit}" th:text="${stats.visit / 1000000 > 0} ? (${#numbers.formatDecimal(stats.visit / 1000000.0,1,1)} + 'bw') : (${stats.visit / 10000 > 0} ? (${#numbers.formatDecimal(stats.visit / 10000.0,1,2)} + 'w') : ${stats.visit})"></p>
</div>
<div th:case="upvote">