Для показа

This commit is contained in:
iriska-gri committed 2023-11-28 09:02:47 +03:00
1 parent 70243dd690
commit 6076bffc45
3 files changed
+13 -23

No files matched your search

@@ -160,9 +160,9 @@ export default {
function dayformat(days) { function dayformat(days) {
const d = new Date(days) const d = new Date(days)
const mess= 'сегодня' let mess= 'сегодня'
if (d.getFullYear() != '1970'){ if (d.getFullYear() != '1970'){
mess = d.getDate() mess = `${d.getDate()} число`
} }
// if d.getFullYear() == '1970': { // if d.getFullYear() == '1970': {
+11 -21
View File
@@ -5,25 +5,8 @@
<v-col class="pa-0 "> <v-col class="pa-0 ">
<v-card <v-card
class=" rounded-0" class=" rounded-0"
v-for="(x, i) in newss.result" :key=i
>
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"> <v-card-title class="pt-0 pb-1">
{{x.title}} {{x.title}}
</v-card-title> </v-card-title>
@@ -34,9 +17,16 @@
class="mx-auto" class="mx-auto"
cover cover
/> />
<v-list-item class="w-100"> <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> <template v-slot:append>
<div class="justify-self-end"> <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> <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>
Binary file not shown.