diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-23 21:45:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-23 21:45:59 +0900 |
| commit | cd9fc9a71759c8b5a51bc2e7eeb1e99dd8c699ff (patch) | |
| tree | f08268c1df9dc57ba26174ce59e5dc4b793f2d0e /src/web/app/mobile | |
| parent | v3834 (diff) | |
| download | misskey-cd9fc9a71759c8b5a51bc2e7eeb1e99dd8c699ff.tar.gz misskey-cd9fc9a71759c8b5a51bc2e7eeb1e99dd8c699ff.tar.bz2 misskey-cd9fc9a71759c8b5a51bc2e7eeb1e99dd8c699ff.zip | |
:v:
Diffstat (limited to 'src/web/app/mobile')
| -rw-r--r-- | src/web/app/mobile/views/components/notification.vue | 60 | ||||
| -rw-r--r-- | src/web/app/mobile/views/components/post-preview.vue | 10 |
2 files changed, 35 insertions, 35 deletions
diff --git a/src/web/app/mobile/views/components/notification.vue b/src/web/app/mobile/views/components/notification.vue index dce373b452..4e09f3d831 100644 --- a/src/web/app/mobile/views/components/notification.vue +++ b/src/web/app/mobile/views/components/notification.vue @@ -3,99 +3,99 @@ <mk-time :time="notification.created_at"/> <template v-if="notification.type == 'reaction'"> - <a class="avatar-anchor" :href="`/${notification.user.username}`"> + <router-link class="avatar-anchor" :to="`/${notification.user.username}`"> <img class="avatar" :src="`${notification.user.avatar_url}?thumbnail&size=64`" alt="avatar"/> - </a> + </router-link> <div class="text"> <p> <mk-reaction-icon :reaction="notification.reaction"/> - <a :href="`/${notification.user.username}`">{{ notification.user.name }}</a> + <router-link :to="`/${notification.user.username}`">{{ notification.user.name }}</router-link> </p> - <a class="post-ref" :href="`/${notification.post.user.username}/${notification.post.id}`"> + <router-link class="post-ref" :to="`/${notification.post.user.username}/${notification.post.id}`"> %fa:quote-left%{{ getPostSummary(notification.post) }} %fa:quote-right% - </a> + </router-link> </div> </template> <template v-if="notification.type == 'repost'"> - <a class="avatar-anchor" :href="`/${notification.post.user.username}`"> + <router-link class="avatar-anchor" :to="`/${notification.post.user.username}`"> <img class="avatar" :src="`${notification.post.user.avatar_url}?thumbnail&size=64`" alt="avatar"/> - </a> + </router-link> <div class="text"> <p> %fa:retweet% - <a :href="`/${notification.post.user.username}`">{{ notification.post.user.name }}</a> + <router-link :to="`/${notification.post.user.username}`">{{ notification.post.user.name }}</router-link> </p> - <a class="post-ref" :href="`/${notification.post.user.username}/${notification.post.id}`"> + <router-link class="post-ref" :to="`/${notification.post.user.username}/${notification.post.id}`"> %fa:quote-left%{{ getPostSummary(notification.post.repost) }}%fa:quote-right% - </a> + </router-link> </div> </template> <template v-if="notification.type == 'quote'"> - <a class="avatar-anchor" :href="`/${notification.post.user.username}`"> + <router-link class="avatar-anchor" :to="`/${notification.post.user.username}`"> <img class="avatar" :src="`${notification.post.user.avatar_url}?thumbnail&size=64`" alt="avatar"/> - </a> + </router-link> <div class="text"> <p> %fa:quote-left% - <a :href="`/${notification.post.user.username}`">{{ notification.post.user.name }}</a> + <router-link :to="`/${notification.post.user.username}`">{{ notification.post.user.name }}</router-link> </p> - <a class="post-preview" :href="`/${notification.post.user.username}/${notification.post.id}`">{{ getPostSummary(notification.post) }}</a> + <router-link class="post-preview" :to="`/${notification.post.user.username}/${notification.post.id}`">{{ getPostSummary(notification.post) }}</router-link> </div> </template> <template v-if="notification.type == 'follow'"> - <a class="avatar-anchor" :href="`/${notification.user.username}`"> + <router-link class="avatar-anchor" :to="`/${notification.user.username}`"> <img class="avatar" :src="`${notification.user.avatar_url}?thumbnail&size=64`" alt="avatar"/> - </a> + </router-link> <div class="text"> <p> %fa:user-plus% - <a :href="`/${notification.user.username}`">{{ notification.user.name }}</a> + <router-link :to="`/${notification.user.username}`">{{ notification.user.name }}</router-link> </p> </div> </template> <template v-if="notification.type == 'reply'"> - <a class="avatar-anchor" :href="`/${notification.post.user.username}`"> + <router-link class="avatar-anchor" :to="`/${notification.post.user.username}`"> <img class="avatar" :src="`${notification.post.user.avatar_url}?thumbnail&size=64`" alt="avatar"/> - </a> + </router-link> <div class="text"> <p> %fa:reply% - <a :href="`/${notification.post.user.username}`">{{ notification.post.user.name }}</a> + <router-link :to="`/${notification.post.user.username}`">{{ notification.post.user.name }}</router-link> </p> - <a class="post-preview" :href="`/${notification.post.user.username}/${notification.post.id}`">{{ getPostSummary(notification.post) }}</a> + <router-link class="post-preview" :to="`/${notification.post.user.username}/${notification.post.id}`">{{ getPostSummary(notification.post) }}</router-link> </div> </template> <template v-if="notification.type == 'mention'"> - <a class="avatar-anchor" :href="`/${notification.post.user.username}`"> + <router-link class="avatar-anchor" :to="`/${notification.post.user.username}`"> <img class="avatar" :src="`${notification.post.user.avatar_url}?thumbnail&size=64`" alt="avatar"/> - </a> + </router-link> <div class="text"> <p> %fa:at% - <a :href="`/${notification.post.user.username}`">{{ notification.post.user.name }}</a> + <router-link :to="`/${notification.post.user.username}`">{{ notification.post.user.name }}</router-link> </p> - <a class="post-preview" :href="`/${notification.post.user.username}/${notification.post.id}`">{{ getPostSummary(notification.post) }}</a> + <router-link class="post-preview" :to="`/${notification.post.user.username}/${notification.post.id}`">{{ getPostSummary(notification.post) }}</router-link> </div> </template> <template v-if="notification.type == 'poll_vote'"> - <a class="avatar-anchor" :href="`/${notification.user.username}`"> + <router-link class="avatar-anchor" :to="`/${notification.user.username}`"> <img class="avatar" :src="`${notification.user.avatar_url}?thumbnail&size=64`" alt="avatar"/> - </a> + </router-link> <div class="text"> <p> %fa:chart-pie% - <a :href="`/${notification.user.username}`">{{ notification.user.name }}</a> + <router-link :to="`/${notification.user.username}`">{{ notification.user.name }}</router-link> </p> - <a class="post-ref" :href="`/${notification.post.user.username}/${notification.post.id}`"> + <router-link class="post-ref" :to="`/${notification.post.user.username}/${notification.post.id}`"> %fa:quote-left%{{ getPostSummary(notification.post) }}%fa:quote-right% - </a> + </router-link> </div> </template> </div> diff --git a/src/web/app/mobile/views/components/post-preview.vue b/src/web/app/mobile/views/components/post-preview.vue index ccb8b5f336..e9a4119253 100644 --- a/src/web/app/mobile/views/components/post-preview.vue +++ b/src/web/app/mobile/views/components/post-preview.vue @@ -1,15 +1,15 @@ <template> <div class="mk-post-preview"> - <a class="avatar-anchor" :href="`/${post.user.username}`"> + <router-link class="avatar-anchor" :to="`/${post.user.username}`"> <img class="avatar" :src="`${post.user.avatar_url}?thumbnail&size=64`" alt="avatar"/> - </a> + </router-link> <div class="main"> <header> - <a class="name" :href="`/${post.user.username}`">{{ post.user.name }}</a> + <router-link class="name" :to="`/${post.user.username}`">{{ post.user.name }}</router-link> <span class="username">@{{ post.user.username }}</span> - <a class="time" :href="`/${post.user.username}/${post.id}`"> + <router-link class="time" :to="`/${post.user.username}/${post.id}`"> <mk-time :time="post.created_at"/> - </a> + </router-link> </header> <div class="body"> <mk-sub-post-content class="text" :post="post"/> |