design: フロントエンドの調整
This commit is contained in:
parent
dc2fffadb2
commit
3077e8cc0f
4 changed files with 36 additions and 9 deletions
|
@ -4,13 +4,22 @@ block content
|
||||||
.xd-card
|
.xd-card
|
||||||
h1: a(href="/") みす廃あらーと
|
h1: a(href="/") みす廃あらーと
|
||||||
h2 マイページ
|
h2 マイページ
|
||||||
|
p おかえりなさい、@!{ user.username }@!{ user.host } さん。
|
||||||
|
|
||||||
case from
|
case from
|
||||||
when "updateSettings"
|
when "updateSettings"
|
||||||
p: strong 設定を変更しました。
|
.xd-alert.my-2
|
||||||
when "updateSettings"
|
i.icon.fas.fa-thumbs-up
|
||||||
p: strong テスト送信しました。
|
strong 設定を変更しました。
|
||||||
default
|
when "send"
|
||||||
p おかえりなさい、@!{ user.username }@!{ user.host } さん。
|
.xd-alert.my-2
|
||||||
|
i.icon.fas.fa-thumbs-up
|
||||||
|
strong テスト送信しました。
|
||||||
|
|
||||||
|
if isGroundpolis
|
||||||
|
.xd-alert.my-2
|
||||||
|
i.icon.fas.fa-meteor
|
||||||
|
strong Groundpolis アカウントでログインしています。専用機能が有効化されました。
|
||||||
|
|
||||||
section#scores.xd-vstack
|
section#scores.xd-vstack
|
||||||
.xd-hstack
|
.xd-hstack
|
||||||
|
@ -43,7 +52,9 @@ block content
|
||||||
.header
|
.header
|
||||||
h1.title 設定
|
h1.title 設定
|
||||||
.body
|
.body
|
||||||
.xd-alert.danger.mb-2 スコア通知方法に「Misskey に通知」を選んでいる場合、Groundpolis v3 および Misskey v12 の最新版以外では動作しません。めいすきーや古いバージョンをお使いの方は、「自動的にノートを投稿」をお使いください。
|
.xd-alert.danger.mb-2
|
||||||
|
i.icon.fas.fa-exclamation-circle
|
||||||
|
| スコア通知方法に「Misskey に通知」を選んでいる場合、Groundpolis v3 および Misskey v12 の最新版以外では動作しません。めいすきーや古いバージョンをお使いの方は、「自動的にノートを投稿」をお使いください。
|
||||||
form(method="post", action="/update-settings")
|
form(method="post", action="/update-settings")
|
||||||
p: label スコア通知方法:
|
p: label スコア通知方法:
|
||||||
select(name="alertMode")
|
select(name="alertMode")
|
||||||
|
@ -59,12 +70,16 @@ block content
|
||||||
h1.title 操作
|
h1.title 操作
|
||||||
.body
|
.body
|
||||||
form.mb-2(action="/send", method="post"): button#send(style="display: inline-block") アラートをテスト送信
|
form.mb-2(action="/send", method="post"): button#send(style="display: inline-block") アラートをテスト送信
|
||||||
form.mb-2(action="/logout", method="post"): button.danger#logout(style="display: inline-block") ログアウト
|
form.mb-2(action="/logout", method="post"): button#logout(style="display: inline-block") ログアウト
|
||||||
form.mb-2(action="/optout", method="post"): button.danger#optout(style="display: inline-block") アカウント連携を解除する
|
form.mb-2(action="/optout", method="post"): button.danger#optout(style="display: inline-block") アカウント連携を解除する
|
||||||
|
|
||||||
block script
|
block script
|
||||||
script.
|
script.
|
||||||
history.replaceState(null, null, '/');
|
history.replaceState(null, null, '/');
|
||||||
|
document.getElementById("send").addEventListener("click", (e) => {
|
||||||
|
if (!confirm('現在の設定「!{currentAlertModeLabel}」に基づいてアラートを送信しますか?'))
|
||||||
|
e.preventDefault();
|
||||||
|
});
|
||||||
document.getElementById("optout").addEventListener("click", (e) => {
|
document.getElementById("optout").addEventListener("click", (e) => {
|
||||||
if (!confirm('連携を解除すると、統計情報などのデータが削除されてしまい、以後アラート機能をご利用いただけなくなります。この操作は変更できません。\n\nそれでもなお、連携を解除しますか?'))
|
if (!confirm('連携を解除すると、統計情報などのデータが削除されてしまい、以後アラート機能をご利用いただけなくなります。この操作は変更できません。\n\nそれでもなお、連携を解除しますか?'))
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
|
@ -3,9 +3,9 @@ extends _base
|
||||||
block content
|
block content
|
||||||
case from
|
case from
|
||||||
when 'logout'
|
when 'logout'
|
||||||
.xd-card: p: strong ログアウトしました。
|
.xd-alert.danger: strong ログアウトしました。
|
||||||
when 'optout'
|
when 'optout'
|
||||||
.xd-card: p: strong 連携を解除しました。
|
.xd-alert.danger: strong 連携を解除しました。
|
||||||
.xd-card
|
.xd-card
|
||||||
h1: a(href="/") みす廃あらーと
|
h1: a(href="/") みす廃あらーと
|
||||||
h2= welcomeMessage
|
h2= welcomeMessage
|
||||||
|
|
|
@ -445,6 +445,8 @@ img, .xd-responsive {
|
||||||
|
|
||||||
.xd-alert {
|
.xd-alert {
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
|
@ -452,7 +454,16 @@ img, .xd-responsive {
|
||||||
color: var(--fg);
|
color: var(--fg);
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
|
|
||||||
|
> .icon {
|
||||||
|
opacity: 0.5;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
margin-right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
&.danger {
|
&.danger {
|
||||||
|
> .icon {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
background: var(--bg-danger);
|
background: var(--bg-danger);
|
||||||
border: 1px solid var(--divider-danger);
|
border: 1px solid var(--divider-danger);
|
||||||
color: var(--fg-danger);
|
color: var(--fg-danger);
|
||||||
|
|
|
@ -49,4 +49,5 @@ h1> a {
|
||||||
|
|
||||||
details > summary {
|
details > summary {
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue