适配登入登出弹窗
This commit is contained in:
@@ -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
@@ -1 +1 @@
|
|||||||
version=3.0.0
|
version=3.0.0-1
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user