[Client] Clean up
This commit is contained in:
@@ -1,86 +1,86 @@
|
||||
<mk-notification class={ notification.type }>
|
||||
<mk-time time={ notification.created_at }></mk-time>
|
||||
<virtual if={ notification.type == 'reaction' }>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + notification.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + notification.user.username }>
|
||||
<img class="avatar" src={ notification.user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
|
||||
</a>
|
||||
<div class="text">
|
||||
<p>
|
||||
<mk-reaction-icon reaction={ notification.reaction }></mk-reaction-icon>
|
||||
<a href={ CONFIG.url + '/' + notification.user.username }>{ notification.user.name }</a>
|
||||
<a href={ '/' + notification.user.username }>{ notification.user.name }</a>
|
||||
</p>
|
||||
<a class="post-ref" href={ CONFIG.url + '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post) }</a>
|
||||
<a class="post-ref" href={ '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post) }</a>
|
||||
</div>
|
||||
</virtual>
|
||||
<virtual if={ notification.type == 'repost' }>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + notification.post.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + notification.post.user.username }>
|
||||
<img class="avatar" src={ notification.post.user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
|
||||
</a>
|
||||
<div class="text">
|
||||
<p>
|
||||
<i class="fa fa-retweet"></i>
|
||||
<a href={ CONFIG.url + '/' + notification.post.user.username }>{ notification.post.user.name }</a>
|
||||
<a href={ '/' + notification.post.user.username }>{ notification.post.user.name }</a>
|
||||
</p>
|
||||
<a class="post-ref" href={ CONFIG.url + '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post.repost) }</a>
|
||||
<a class="post-ref" href={ '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post.repost) }</a>
|
||||
</div>
|
||||
</virtual>
|
||||
<virtual if={ notification.type == 'quote' }>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + notification.post.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + notification.post.user.username }>
|
||||
<img class="avatar" src={ notification.post.user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
|
||||
</a>
|
||||
<div class="text">
|
||||
<p>
|
||||
<i class="fa fa-quote-left"></i>
|
||||
<a href={ CONFIG.url + '/' + notification.post.user.username }>{ notification.post.user.name }</a>
|
||||
<a href={ '/' + notification.post.user.username }>{ notification.post.user.name }</a>
|
||||
</p>
|
||||
<a class="post-preview" href={ CONFIG.url + '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post) }</a>
|
||||
<a class="post-preview" href={ '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post) }</a>
|
||||
</div>
|
||||
</virtual>
|
||||
<virtual if={ notification.type == 'follow' }>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + notification.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + notification.user.username }>
|
||||
<img class="avatar" src={ notification.user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
|
||||
</a>
|
||||
<div class="text">
|
||||
<p>
|
||||
<i class="fa fa-user-plus"></i>
|
||||
<a href={ CONFIG.url + '/' + notification.user.username }>{ notification.user.name }</a>
|
||||
<a href={ '/' + notification.user.username }>{ notification.user.name }</a>
|
||||
</p>
|
||||
</div>
|
||||
</virtual>
|
||||
<virtual if={ notification.type == 'reply' }>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + notification.post.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + notification.post.user.username }>
|
||||
<img class="avatar" src={ notification.post.user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
|
||||
</a>
|
||||
<div class="text">
|
||||
<p>
|
||||
<i class="fa fa-reply"></i>
|
||||
<a href={ CONFIG.url + '/' + notification.post.user.username }>{ notification.post.user.name }</a>
|
||||
<a href={ '/' + notification.post.user.username }>{ notification.post.user.name }</a>
|
||||
</p>
|
||||
<a class="post-preview" href={ CONFIG.url + '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post) }</a>
|
||||
<a class="post-preview" href={ '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post) }</a>
|
||||
</div>
|
||||
</virtual>
|
||||
<virtual if={ notification.type == 'mention' }>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + notification.post.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + notification.post.user.username }>
|
||||
<img class="avatar" src={ notification.post.user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
|
||||
</a>
|
||||
<div class="text">
|
||||
<p>
|
||||
<i class="fa fa-at"></i>
|
||||
<a href={ CONFIG.url + '/' + notification.post.user.username }>{ notification.post.user.name }</a>
|
||||
<a href={ '/' + notification.post.user.username }>{ notification.post.user.name }</a>
|
||||
</p>
|
||||
<a class="post-preview" href={ CONFIG.url + '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post) }</a>
|
||||
<a class="post-preview" href={ '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post) }</a>
|
||||
</div>
|
||||
</virtual>
|
||||
<virtual if={ notification.type == 'poll_vote' }>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + notification.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + notification.user.username }>
|
||||
<img class="avatar" src={ notification.user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
|
||||
</a>
|
||||
<div class="text">
|
||||
<p>
|
||||
<i class="fa fa-pie-chart"></i>
|
||||
<a href={ CONFIG.url + '/' + notification.user.username }>{ notification.user.name }</a>
|
||||
<a href={ '/' + notification.user.username }>{ notification.user.name }</a>
|
||||
</p>
|
||||
<a class="post-ref" href={ CONFIG.url + '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post) }</a>
|
||||
<a class="post-ref" href={ '/' + notification.post.user.username + '/' + notification.post.id }>{ getPostSummary(notification.post) }</a>
|
||||
</div>
|
||||
</virtual>
|
||||
<style>
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
</div>
|
||||
<div class="repost" if={ isRepost }>
|
||||
<p>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + post.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + post.user.username }>
|
||||
<img class="avatar" src={ post.user.avatar_url + '?thumbnail&size=32' } alt="avatar"/></a>
|
||||
<i class="fa fa-retweet"></i><a class="name" href={ CONFIG.url + '/' + post.user.username }>
|
||||
<i class="fa fa-retweet"></i><a class="name" href={ '/' + post.user.username }>
|
||||
{ post.user.name }
|
||||
</a>
|
||||
がRepost
|
||||
@@ -27,11 +27,11 @@
|
||||
</div>
|
||||
<article>
|
||||
<header>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + p.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + p.user.username }>
|
||||
<img class="avatar" src={ p.user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
|
||||
</a>
|
||||
<div>
|
||||
<a class="name" href={ CONFIG.url + '/' + p.user.username }>{ p.user.name }</a>
|
||||
<a class="name" href={ '/' + p.user.username }>{ p.user.name }</a>
|
||||
<span class="username">@{ p.user.username }</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<mk-post-preview>
|
||||
<article>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + post.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + post.user.username }>
|
||||
<img class="avatar" src={ post.user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
|
||||
</a>
|
||||
<div class="main">
|
||||
<header>
|
||||
<a class="name" href={ CONFIG.url + '/' + post.user.username }>{ post.user.name }</a>
|
||||
<a class="name" href={ '/' + post.user.username }>{ post.user.name }</a>
|
||||
<span class="username">@{ post.user.username }</span>
|
||||
<a class="time" href={ CONFIG.url + '/' + post.user.username + '/' + post.id }>
|
||||
<a class="time" href={ '/' + post.user.username + '/' + post.id }>
|
||||
<mk-time time={ post.created_at }></mk-time>
|
||||
</a>
|
||||
</header>
|
||||
|
||||
@@ -4,20 +4,20 @@
|
||||
</div>
|
||||
<div class="repost" if={ isRepost }>
|
||||
<p>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + post.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + post.user.username }>
|
||||
<img class="avatar" src={ post.user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
|
||||
</a>
|
||||
<i class="fa fa-retweet"></i>{'%i18n:mobile.tags.mk-timeline-post.reposted-by%'.substr(0, '%i18n:mobile.tags.mk-timeline-post.reposted-by%'.indexOf('{'))}<a class="name" href={ CONFIG.url + '/' + post.user.username }>{ post.user.name }</a>{'%i18n:mobile.tags.mk-timeline-post.reposted-by%'.substr('%i18n:mobile.tags.mk-timeline-post.reposted-by%'.indexOf('}') + 1)}
|
||||
<i class="fa fa-retweet"></i>{'%i18n:mobile.tags.mk-timeline-post.reposted-by%'.substr(0, '%i18n:mobile.tags.mk-timeline-post.reposted-by%'.indexOf('{'))}<a class="name" href={ '/' + post.user.username }>{ post.user.name }</a>{'%i18n:mobile.tags.mk-timeline-post.reposted-by%'.substr('%i18n:mobile.tags.mk-timeline-post.reposted-by%'.indexOf('}') + 1)}
|
||||
</p>
|
||||
<mk-time time={ post.created_at }></mk-time>
|
||||
</div>
|
||||
<article>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + p.user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + p.user.username }>
|
||||
<img class="avatar" src={ p.user.avatar_url + '?thumbnail&size=96' } alt="avatar"/>
|
||||
</a>
|
||||
<div class="main">
|
||||
<header>
|
||||
<a class="name" href={ CONFIG.url + '/' + p.user.username }>{ p.user.name }</a>
|
||||
<a class="name" href={ '/' + p.user.username }>{ p.user.name }</a>
|
||||
<span class="is-bot" if={ p.user.is_bot }>bot</span>
|
||||
<span class="username">@{ p.user.username }</span>
|
||||
<a class="created-at" href={ url }>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<mk-ui-nav>
|
||||
<div class="backdrop" onclick={ parent.toggleDrawer }></div>
|
||||
<div class="body">
|
||||
<a class="me" if={ SIGNIN } href={ CONFIG.url + '/' + I.username }>
|
||||
<a class="me" if={ SIGNIN } href={ '/' + I.username }>
|
||||
<img class="avatar" src={ I.avatar_url + '?thumbnail&size=128' } alt="avatar"/>
|
||||
<p class="name">{ I.name }</p>
|
||||
</a>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<mk-user-preview>
|
||||
<a class="avatar-anchor" href={ CONFIG.url + '/' + user.username }>
|
||||
<a class="avatar-anchor" href={ '/' + user.username }>
|
||||
<img class="avatar" src={ user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
|
||||
</a>
|
||||
<div class="main">
|
||||
<header>
|
||||
<a class="name" href={ CONFIG.url + '/' + user.username }>{ user.name }</a>
|
||||
<a class="name" href={ '/' + user.username }>{ user.name }</a>
|
||||
<span class="username">@{ user.username }</span>
|
||||
</header>
|
||||
<div class="body">
|
||||
|
||||
Reference in New Issue
Block a user