1 Commits

Author SHA1 Message Date
anian 9cd01da074 适配登入登出弹窗 2026-03-17 01:37:52 +08:00
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 # plugin-comment-widget
Halo 2.0 的通用评论组件插件,为前台提供完整的评论解决方案。 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} ${this.currentUser?.spec.displayName || this.currentUser?.metadata.name}
</span> </span>
<button <button
@click=${this.handleLogout} onclick="open_logout_box()"
type="button" 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" 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" tabindex="-1"
@@ -224,7 +224,7 @@ export class BaseForm extends LitElement {
placeholder=${msg('Website')} placeholder=${msg('Website')}
class="input" 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> </div>
` `
)} )}
@@ -235,7 +235,7 @@ export class BaseForm extends LitElement {
!this.currentUser && !this.allowAnonymousComments, !this.currentUser && !this.allowAnonymousComments,
() => html` () => html`
<button <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" 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" type="button"
tabindex="-1" tabindex="-1"