适配登入登出弹窗

This commit is contained in:
anian
2026-03-17 01:37:52 +08:00
parent ac569b2a57
commit 9cd01da074
3 changed files with 15 additions and 4 deletions
+11
View File
@@ -1,3 +1,14 @@
# halo-plugin-comment
> 基于原作者v3.0.0代码修改
#### v3.0.0-1
1. 登入/登出按钮适配前台弹窗(需同步更新主题否则无法使用)
# plugin-comment-widget
Halo 2.0 的通用评论组件插件,为前台提供完整的评论解决方案。
+1 -1
View File
@@ -1 +1 @@
version=3.0.0
version=3.0.0-1
+3 -3
View File
@@ -164,7 +164,7 @@ export class BaseForm extends LitElement {
${this.currentUser?.spec.displayName || this.currentUser?.metadata.name}
</span>
<button
@click=${this.handleLogout}
onclick="open_logout_box()"
type="button"
class="form-logout text-xs text-text-3 hover:text-text-1 px-3 transition-all py-2 rounded-base border border-muted-3 opacity-100 hover:border-muted-4 hover:opacity-70 border-solid"
tabindex="-1"
@@ -224,7 +224,7 @@ export class BaseForm extends LitElement {
placeholder=${msg('Website')}
class="input"
/>
<a tabindex="-1" href=${this.loginUrl} rel="nofollow" class="form-login-link text-text-3 hover:text-text-1 text-xs transition-all select-none">${msg('(Or login)')}</a>
<a tabindex="-1" href="javascript:void(0)" onclick="open_login_box()" rel="nofollow" class="form-login-link text-text-3 hover:text-text-1 text-xs transition-all select-none">${msg('(Or login)')}</a>
</div>
`
)}
@@ -235,7 +235,7 @@ export class BaseForm extends LitElement {
!this.currentUser && !this.allowAnonymousComments,
() => html`
<button
@click=${this.handleOpenLoginPage}
onclick="open_login_box()"
class="form-login text-xs text-text-3 hover:text-text-1 px-3 transition-all py-2 rounded-base border border-muted-3 opacity-100 hover:border-muted-4 hover:opacity-70 border-solid"
type="button"
tabindex="-1"