Дату на новость
This commit is contained in:
1 parent
abdb0b6c82
commit
a388bd37a6
5 files changed
+13
-73
No files matched your search
@@ -17,71 +17,6 @@
|
|||||||
cover
|
cover
|
||||||
@click="openOneImg(news.link)"
|
@click="openOneImg(news.link)"
|
||||||
/>
|
/>
|
||||||
<!-- <v-list-item class="d-flex flex-column w-100 "> -->
|
|
||||||
<!-- <v-row class="bg-red ma-0 d-flex">
|
|
||||||
<v-col>
|
|
||||||
<v-icon size="x-small" class="me-1" icon="mdi-account"/>
|
|
||||||
<span class="text-caption me-2">
|
|
||||||
{{splitname(news.author)}}
|
|
||||||
</span>
|
|
||||||
</v-col>
|
|
||||||
<v-col>1</v-col>
|
|
||||||
</v-row> -->
|
|
||||||
|
|
||||||
<!-- <div class="justify-self-start mt-1">
|
|
||||||
<v-icon size="x-small" class="me-1" icon="mdi-account"/>
|
|
||||||
<span class="text-caption me-2">
|
|
||||||
{{splitname(news.author)}}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<template v-slot:append>
|
|
||||||
<div class="justify-self-end">
|
|
||||||
<v-icon
|
|
||||||
size="x-small"
|
|
||||||
class="me-1"
|
|
||||||
:icon="news.scores.filter(e=> e.user==accountStore.user.login && e.score == true).length>0?'mdi-thumb-up':'mdi-thumb-up-outline'"
|
|
||||||
@click="toggleIncrementLike(news.id, true)"
|
|
||||||
/>
|
|
||||||
<span class="subheading me-2">
|
|
||||||
{{news.scores.filter(e=> e.score==true).length}}
|
|
||||||
</span>
|
|
||||||
<span class="me-1">
|
|
||||||
·
|
|
||||||
</span>
|
|
||||||
<v-icon
|
|
||||||
size="x-small"
|
|
||||||
class="me-1"
|
|
||||||
:icon="news.scores.filter(e=> e.user==accountStore.user.login && e.score == false).length>0?'mdi-thumb-down':'mdi-thumb-down-outline'"
|
|
||||||
@click="toggleIncrementLike(news.id, false)"
|
|
||||||
/>
|
|
||||||
<span class="subheading me-2">
|
|
||||||
{{news.scores.filter(e=> e.score==false).length}}
|
|
||||||
</span>
|
|
||||||
<span class="me-1">
|
|
||||||
·
|
|
||||||
</span>
|
|
||||||
<v-icon
|
|
||||||
size="x-small"
|
|
||||||
class="me-1"
|
|
||||||
icon="mdi-message-text-outline"
|
|
||||||
/>
|
|
||||||
<span class="subheading">
|
|
||||||
{{ news.comment.length }}
|
|
||||||
</span>
|
|
||||||
<span class="me-1">
|
|
||||||
·
|
|
||||||
</span>
|
|
||||||
<v-icon
|
|
||||||
size="x-small"
|
|
||||||
class="me-1 mb-1"
|
|
||||||
icon="mdi-image"
|
|
||||||
/>
|
|
||||||
<span class="subheading">
|
|
||||||
{{ news.gallery.length }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</template> -->
|
|
||||||
<!-- </v-list-item> -->
|
|
||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
@@ -176,6 +111,7 @@
|
|||||||
>
|
>
|
||||||
Подробнее
|
Подробнее
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
{{news.cdate}}
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|||||||
@@ -62,6 +62,7 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="py-0 pl-0 flex-grow-0 text-end align-self-center text-caption font-weight-bold text-no-wrap">
|
<v-col class="py-0 pl-0 flex-grow-0 text-end align-self-center text-caption font-weight-bold text-no-wrap">
|
||||||
Всего новостей: {{countetnews}}
|
Всего новостей: {{countetnews}}
|
||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
{{x.title}}
|
{{x.title}}
|
||||||
|
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
|
|
||||||
<!-- :to='`/news?id=${x.id}`' -->
|
<!-- :to='`/news?id=${x.id}`' -->
|
||||||
<v-btn
|
<v-btn
|
||||||
color="more_details_btn"
|
color="more_details_btn"
|
||||||
@@ -29,6 +30,7 @@
|
|||||||
>
|
>
|
||||||
Подробнее
|
Подробнее
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
|
||||||
<v-img
|
<v-img
|
||||||
:src="`${burl}${x.link}`"
|
:src="`${burl}${x.link}`"
|
||||||
height="350px"
|
height="350px"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
lg=4
|
lg=4
|
||||||
>
|
>
|
||||||
<v-row class="flex-grow-0">
|
<v-row class="flex-grow-0">
|
||||||
<v-col>
|
<v-col class="bg-orange">
|
||||||
<!-- {{ countvis() }} -->
|
<!-- {{ countvis() }} -->
|
||||||
<v-card
|
<v-card
|
||||||
class="d-flex flex-column my-2 ml-3 text-center"
|
class="d-flex flex-column my-2 ml-3 text-center"
|
||||||
@@ -36,15 +36,15 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col >
|
<v-col class="bg-red">
|
||||||
|
1
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="d-flex flex-column ">
|
<v-col class="d-flex flex-column ">
|
||||||
<v-row class="flex-grow-0">
|
<v-row class="flex-grow-0">
|
||||||
<v-col class="pa-0 pb-2">
|
<v-col class="bg-blue">
|
||||||
|
<!-- <Line :data="data" :options="options" /> -->
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-row>
|
<v-row>
|
||||||
@@ -85,13 +85,13 @@
|
|||||||
|
|
||||||
</div> -->
|
</div> -->
|
||||||
</v-col>
|
</v-col>
|
||||||
<!-- <v-col class="bg-black">
|
<v-col class="bg-black">
|
||||||
<div v-for="(val, key) in activuser()" :key = key>
|
<div v-for="(val, key) in activuser()" :key = key>
|
||||||
{{key}} : {{ val.count }} {{ val.login }}
|
{{key}} : {{ val.count }} {{ val.login }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</v-col> -->
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|||||||
@@ -119,11 +119,12 @@ class NewsCrossroadAPIView(ListAPIView):
|
|||||||
|
|
||||||
|
|
||||||
result = NewsSerializer(newsqueryset, many=True).data
|
result = NewsSerializer(newsqueryset, many=True).data
|
||||||
|
print(result, '------------------------------')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return Response({"result":result, "countpage": countpage})
|
return Response({"result":result, "countpage": countpage})
|
||||||
# round(countpage/int(request.GET.get("countpage")))
|
|
||||||
def post(self, request):
|
def post(self, request):
|
||||||
|
|
||||||
if 'scores' in request.data:
|
if 'scores' in request.data:
|
||||||
|
|||||||
Reference in new issue
Block a user