mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 17:49:40 +08:00
调整 扩展登录后能力
修复由halo删除配置默认值导致的关闭分享功能时引发的bug
This commit is contained in:
parent
7457a300dc
commit
4a3759c27c
@ -199,12 +199,12 @@ spec:
|
|||||||
- $formkit: radio
|
- $formkit: radio
|
||||||
name: expand_login_skill
|
name: expand_login_skill
|
||||||
label: 扩展登录后能力
|
label: 扩展登录后能力
|
||||||
help: 开启后,在文章详情界面,根据作者身份显示编辑按钮。控制台按钮 - 登录组件样式 添加 新建文章 和 发布瞬间 菜单项。登录用户需要具有进入控制台的权限。
|
help: 开启后,在文章详情界面,根据作者身份显示编辑按钮。控制台按钮 - 登录组件样式 添加 新建文章 和 发布瞬间 菜单项。登录用户需要具有进入相应功能的权限。
|
||||||
value: 'console'
|
value: 'console'
|
||||||
options:
|
options:
|
||||||
- label: 控制台
|
- label: 跳转到控制台
|
||||||
value: 'console'
|
value: 'console'
|
||||||
- label: 个人
|
- label: 跳转到个人中心
|
||||||
value: 'uc'
|
value: 'uc'
|
||||||
- label: 关闭
|
- label: 关闭
|
||||||
value: 'none'
|
value: 'none'
|
||||||
|
@ -78,10 +78,13 @@
|
|||||||
DreamConfig["pjax_state"] = [[${theme.config.enhance.enable_pjax}]];
|
DreamConfig["pjax_state"] = [[${theme.config.enhance.enable_pjax}]];
|
||||||
/** 配置分享方式 */
|
/** 配置分享方式 */
|
||||||
let post_share = []
|
let post_share = []
|
||||||
for (let share of [[${theme.config.post.custom_post_share}]]) {
|
let custom_post_share = [[${theme.config.post.custom_post_share}]];
|
||||||
let type = share.realNode.type;
|
if(custom_post_share) {
|
||||||
if (post_share.indexOf(type) === -1) {
|
for (let share of custom_post_share) {
|
||||||
post_share.push(type);
|
let type = share.realNode.type;
|
||||||
|
if (post_share.indexOf(type) === -1) {
|
||||||
|
post_share.push(type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (post_share.length === 0) {
|
if (post_share.length === 0) {
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
<li><i class="ri-thumb-up-line"></i>[[${post.stats.upvote}]]</li>
|
<li><i class="ri-thumb-up-line"></i>[[${post.stats.upvote}]]</li>
|
||||||
<li><i class="ri-quill-pen-line"></i>[[${#strings.length(#strings.trim(post.content.content))}]]</li>
|
<li><i class="ri-quill-pen-line"></i>[[${#strings.length(#strings.trim(post.content.content))}]]</li>
|
||||||
<li th:if="${logonUserName == post.spec.owner && (skillUrl == 'console' || (skillUrl == 'uc' && isPost))}" class="is-hidden-laptop">
|
<li th:if="${logonUserName == post.spec.owner && (skillUrl == 'console' || (skillUrl == 'uc' && isPost))}" class="is-hidden-laptop">
|
||||||
<a target="_blank" title="编辑文章" th:href="@{|/skillUrl/${isPost ? 'posts' : 'single-pages'}/editor?name=${post.metadata.name}|}"><i class="ri-edit-2-line"></i>编辑</a></li>
|
<a target="_blank" title="编辑文章" th:href="@{|/${skillUrl}/${isPost ? 'posts' : 'single-pages'}/editor?name=${post.metadata.name}|}"><i class="ri-edit-2-line"></i>编辑</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div th:if="${isPost && !#lists.isEmpty(post.categories)}" class="level-item">
|
<div th:if="${isPost && !#lists.isEmpty(post.categories)}" class="level-item">
|
||||||
<a th:each="cy : ${post.categories}" th:href="${cy.status.permalink}"
|
<a th:each="cy : ${post.categories}" th:href="${cy.status.permalink}"
|
||||||
|
@ -30,7 +30,7 @@ spec:
|
|||||||
settingName: theme-dream2-plus-setting
|
settingName: theme-dream2-plus-setting
|
||||||
configMapName: theme-dream2-plus-configMap
|
configMapName: theme-dream2-plus-configMap
|
||||||
# 版本号
|
# 版本号
|
||||||
version: 1.3.3.beta4
|
version: 1.3.3.beta5
|
||||||
# 最低支持的 Halo 版本
|
# 最低支持的 Halo 版本
|
||||||
require: ">=2.20.0"
|
require: ">=2.20.0"
|
||||||
# 许可
|
# 许可
|
||||||
|
Loading…
x
Reference in New Issue
Block a user