mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update Timeline component
This commit is contained in:
parent
c1118956c3
commit
05b7e1395f
1 changed files with 388 additions and 374 deletions
|
@ -37,6 +37,7 @@
|
||||||
<div v-if="index == 0 && showTips && !loading" class="my-4 card-tips">
|
<div v-if="index == 0 && showTips && !loading" class="my-4 card-tips">
|
||||||
<announcements-card v-on:show-tips="showTips = $event"></announcements-card>
|
<announcements-card v-on:show-tips="showTips = $event"></announcements-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="index == 2 && showSuggestions == true && suggestions.length" class="card mb-sm-4 status-card card-md-rounded-0 shadow-none border">
|
<div v-if="index == 2 && showSuggestions == true && suggestions.length" class="card mb-sm-4 status-card card-md-rounded-0 shadow-none border">
|
||||||
<div class="card-header d-flex align-items-center justify-content-between bg-white border-0 pb-0">
|
<div class="card-header d-flex align-items-center justify-content-between bg-white border-0 pb-0">
|
||||||
<h6 class="text-muted font-weight-bold mb-0">Suggestions For You</h6>
|
<h6 class="text-muted font-weight-bold mb-0">Suggestions For You</h6>
|
||||||
|
@ -135,7 +136,16 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="postPresenterContainer" style="background: #000;">
|
<div class="postPresenterContainer" style="background: #000;">
|
||||||
<div v-if="status.pf_type === 'photo'" class="w-100">
|
|
||||||
|
<div v-if="config.ab.top && status.pf_type === 'text'" class="w-100">
|
||||||
|
<div class="w-100 card-img-top border-bottom rounded-0" style="background-image: url(/storage/textimg/bg_1.jpg);background-size: cover;width: 100%;height: 540px;">
|
||||||
|
<div class="w-100 h-100 d-flex justify-content-center align-items-center">
|
||||||
|
<p class="text-center text-break h3 px-5 font-weight-bold" v-html="status.content"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-else-if="status.pf_type === 'photo'" class="w-100">
|
||||||
<photo-presenter :status="status" v-on:lightbox="lightbox"></photo-presenter>
|
<photo-presenter :status="status" v-on:lightbox="lightbox"></photo-presenter>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -183,7 +193,7 @@
|
||||||
<div class="likes font-weight-bold" v-if="expLc(status) == true">
|
<div class="likes font-weight-bold" v-if="expLc(status) == true">
|
||||||
<span class="like-count">{{status.favourites_count}}</span> {{status.favourites_count == 1 ? 'like' : 'likes'}}
|
<span class="like-count">{{status.favourites_count}}</span> {{status.favourites_count == 1 ? 'like' : 'likes'}}
|
||||||
</div>
|
</div>
|
||||||
<div class="caption">
|
<div v-if="status.pf_type != 'text'" class="caption">
|
||||||
<p class="mb-2 read-more" style="overflow: hidden;">
|
<p class="mb-2 read-more" style="overflow: hidden;">
|
||||||
<span class="username font-weight-bold">
|
<span class="username font-weight-bold">
|
||||||
<bdi><a class="text-dark" :href="profileUrl(status)">{{status.account.username}}</a></bdi>
|
<bdi><a class="text-dark" :href="profileUrl(status)">{{status.account.username}}</a></bdi>
|
||||||
|
@ -885,6 +895,10 @@
|
||||||
if(self.ids.indexOf(d.id) == -1) {
|
if(self.ids.indexOf(d.id) == -1) {
|
||||||
self.feed.push(d);
|
self.feed.push(d);
|
||||||
self.ids.push(d.id);
|
self.ids.push(d.id);
|
||||||
|
axios.post('/api/status/view', {
|
||||||
|
'status_id': d.id,
|
||||||
|
'profile_id': d.account.id
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.min_id = Math.max(...this.ids).toString();
|
this.min_id = Math.max(...this.ids).toString();
|
||||||
|
|
Loading…
Reference in a new issue