Для показа
This commit is contained in:
1 parent
70243dd690
commit
6076bffc45
3 files changed
+38
-48
No files matched your search
@@ -160,9 +160,9 @@ export default {
|
||||
|
||||
function dayformat(days) {
|
||||
const d = new Date(days)
|
||||
const mess= 'сегодня'
|
||||
let mess= 'сегодня'
|
||||
if (d.getFullYear() != '1970'){
|
||||
mess = d.getDate()
|
||||
mess = `${d.getDate()} число`
|
||||
}
|
||||
|
||||
// if d.getFullYear() == '1970': {
|
||||
|
||||
@@ -4,52 +4,42 @@
|
||||
<v-row class=" flex-grow-1 d-flex h-0 overflow-auto">
|
||||
<v-col class="pa-0 ">
|
||||
<v-card
|
||||
class=" rounded-0"
|
||||
|
||||
|
||||
v-for="(x, i) in newss.result" :key=i>
|
||||
|
||||
<v-list-item class="w-100 pl-4 py-2 pt-3">
|
||||
|
||||
<template v-slot:prepend>
|
||||
<v-avatar
|
||||
|
||||
color="loading_avatar"
|
||||
:image="checkremote( `${spravURL}${x.author.login}.jpg`)"></v-avatar>
|
||||
</template>
|
||||
|
||||
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
|
||||
|
||||
<!-- <v-list-item-subtitle>Участник</v-list-item-subtitle> -->
|
||||
<!-- <my-helper :pretext="route.path == '/news' && 'id' in route.query"/> -->
|
||||
</v-list-item>
|
||||
|
||||
<v-card-title class="pt-0 pb-1">
|
||||
{{x.title}}
|
||||
</v-card-title>
|
||||
<v-img
|
||||
:src="`${burl}${x.link}`"
|
||||
height="350px"
|
||||
width="96%"
|
||||
class="mx-auto"
|
||||
cover
|
||||
/>
|
||||
|
||||
<v-list-item class="w-100">
|
||||
|
||||
<template v-slot:append>
|
||||
<div class="justify-self-end">
|
||||
<v-icon class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.login && e.score == true).length>0?'mdi-thumb-up':'mdi-thumb-up-outline'" @click="toggleIncrementLike(x.id, true)"></v-icon>
|
||||
<span class="subheading me-2">{{x.scores.filter(e=> e.score==true).length}}</span>
|
||||
<span class="me-1">·</span>
|
||||
<v-icon class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.login && e.score == false).length>0?'mdi-thumb-down':'mdi-thumb-down-outline'" @click="toggleIncrementLike(x.id, false)"/>
|
||||
<span class="subheading me-2">{{x.scores.filter(e=> e.score==false).length}}</span>
|
||||
<span class="me-1">·</span>
|
||||
<v-icon class="me-1" icon="mdi-message-text-outline" @click="openComent(x.id)"/>
|
||||
<span @click="x.showComment=!x.showComment" class="pointer subheading">{{ x.comment.length }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</v-list-item>
|
||||
class=" rounded-0"
|
||||
v-for="(x, i) in newss.result" :key=i
|
||||
>
|
||||
<v-card-title class="pt-0 pb-1">
|
||||
{{x.title}}
|
||||
</v-card-title>
|
||||
<v-img
|
||||
:src="`${burl}${x.link}`"
|
||||
height="350px"
|
||||
width="96%"
|
||||
class="mx-auto"
|
||||
cover
|
||||
/>
|
||||
<v-list-item class="w-100">
|
||||
<template v-slot:prepend>
|
||||
<v-avatar
|
||||
color="loading_avatar"
|
||||
:image="checkremote( `${spravURL}${x.author.login}.jpg`)"
|
||||
size="25"
|
||||
>
|
||||
</v-avatar>
|
||||
<v-list-item-title class="text-caption">{{splitname(x.author)}}</v-list-item-title>
|
||||
</template>
|
||||
<template v-slot:append>
|
||||
<div class="justify-self-end">
|
||||
<v-icon class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.login && e.score == true).length>0?'mdi-thumb-up':'mdi-thumb-up-outline'" @click="toggleIncrementLike(x.id, true)"></v-icon>
|
||||
<span class="subheading me-2">{{x.scores.filter(e=> e.score==true).length}}</span>
|
||||
<span class="me-1">·</span>
|
||||
<v-icon class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.login && e.score == false).length>0?'mdi-thumb-down':'mdi-thumb-down-outline'" @click="toggleIncrementLike(x.id, false)"/>
|
||||
<span class="subheading me-2">{{x.scores.filter(e=> e.score==false).length}}</span>
|
||||
<span class="me-1">·</span>
|
||||
<v-icon class="me-1" icon="mdi-message-text-outline" @click="openComent(x.id)"/>
|
||||
<span @click="x.showComment=!x.showComment" class="pointer subheading">{{ x.comment.length }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</v-list-item>
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user