UX改善
This commit is contained in:
parent
e59a6aa386
commit
4ae971fe8d
2 changed files with 28 additions and 3 deletions
|
@ -2,6 +2,12 @@ extends _base
|
||||||
|
|
||||||
block content
|
block content
|
||||||
h2 マイページ
|
h2 マイページ
|
||||||
|
case from
|
||||||
|
when "updateSettings"
|
||||||
|
p: strong 設定を変更しました。
|
||||||
|
when "updateSettings"
|
||||||
|
p: strong テスト送信しました。
|
||||||
|
default
|
||||||
p おかえりなさい、@!{ user.username }@!{ user.host } さん。
|
p おかえりなさい、@!{ user.username }@!{ user.host } さん。
|
||||||
|
|
||||||
section#scores
|
section#scores
|
||||||
|
@ -48,12 +54,21 @@ block content
|
||||||
option(value="nothing", selected=user.alertMode === 'nothing') 通知しない
|
option(value="nothing", selected=user.alertMode === 'nothing') 通知しない
|
||||||
p: label タイムゾーン:(coming soon)
|
p: label タイムゾーン:(coming soon)
|
||||||
button.primary(type="submit") 保存
|
button.primary(type="submit") 保存
|
||||||
|
|
||||||
|
|
||||||
|
section.xd-card#settings
|
||||||
|
.header
|
||||||
|
h1.title
|
||||||
|
i.fas.fa-sliders-h
|
||||||
|
| 操作
|
||||||
.body
|
.body
|
||||||
div.mb-2: a.xd-button.danger#logout(style="display: inline-block", href="/logout") ログアウト
|
form.mb-2(action="/send", method="post"): button#send(style="display: inline-block") アラートをテスト送信
|
||||||
div: a.xd-button.danger#optout(style="display: inline-block", href="/optout") アカウント連携を解除する
|
form.mb-2(action="/logout", method="post"): button.danger#logout(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, '/');
|
||||||
document.getElementById("optout").addEventListener("click", (e) => {
|
document.getElementById("optout").addEventListener("click", (e) => {
|
||||||
if (!confirm('連携を解除すると、統計情報などのデータが削除されてしまい、以後アラート機能をご利用いただけなくなります。この操作は変更できません。\n\nそれでもなお、連携を解除しますか?'))
|
if (!confirm('連携を解除すると、統計情報などのデータが削除されてしまい、以後アラート機能をご利用いただけなくなります。この操作は変更できません。\n\nそれでもなお、連携を解除しますか?'))
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
|
@ -2,6 +2,11 @@ extends _base
|
||||||
|
|
||||||
block content
|
block content
|
||||||
section
|
section
|
||||||
|
case from
|
||||||
|
when 'logout'
|
||||||
|
p: strong ログアウトしました。
|
||||||
|
when 'optout'
|
||||||
|
p: strong 連携を解除しました。
|
||||||
h2= welcomeMessage
|
h2= welcomeMessage
|
||||||
p Misskey は楽しいものです。気がついたら1日中入り浸っていることも多いでしょう。
|
p Misskey は楽しいものです。気がついたら1日中入り浸っていることも多いでしょう。
|
||||||
strong みす廃あらーと
|
strong みす廃あらーと
|
||||||
|
@ -40,3 +45,8 @@ block content
|
||||||
| タイムライン
|
| タイムライン
|
||||||
.body
|
.body
|
||||||
p 近いうちに、ここで #misshaialert タグのタイムラインを表示します。まだ工事中です
|
p 近いうちに、ここで #misshaialert タグのタイムラインを表示します。まだ工事中です
|
||||||
|
|
||||||
|
|
||||||
|
block script
|
||||||
|
script.
|
||||||
|
history.replaceState(null, null, '/');
|
Loading…
Add table
Add a link
Reference in a new issue