работа с цветами на портале

This commit is contained in:
Alex committed 2023-10-18 17:50:16 +03:00
1 parent e4e4d874eb
commit f35b2b544c
5 files changed
+67 -122

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@
<v-card-actions class="align-self-end pt-0">
<v-btn
color="blue-darken-1"
color="modal_btn"
variant="text"
@click="menusCloses"
>
+9 -18
View File
@@ -1,15 +1,12 @@
<template>
<div>
<v-card
:ref="i"
class="mx-auto px-3 pt-3"
:class="i>0?'mt-1':''"
v-for="(x, i) in newss.result" :key= i
>
<v-card-title class="py-1">
{{x.title}}
</v-card-title>
@@ -40,28 +37,22 @@
</template>
</v-list-item>
<v-divider/>
<v-card-text class="pb-0">
{{limitText(x.text)}}
</v-card-text>
<div class="pt-1 pl-1 pb-2">
<v-btn
color="light-blue-darken-4"
variant="text"
:to='`/news?id=${x.id}`'
size="small"
append-icon="mdi-step-forward-2"
>
Подробнее
</v-btn>
color="more_details_btn"
variant="text"
:to='`/news?id=${x.id}`'
size="small"
append-icon="mdi-step-forward-2"
>
Подробнее
</v-btn>
</div>
</v-card>
</div>
</template>
+25 -39
View File
@@ -3,23 +3,21 @@
<div class="d-flex flex-column py-3">
<v-row>
<v-col class="bg-red overflow-auto pa-0">
<v-card
class=" rounded-0"
v-for="(x, i) in newss.result" :key=i
>
<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="grey-darken-3"
:image=accountStore.user.photo></v-avatar>
</template>
<template v-slot:prepend>
<v-avatar
color="loading_avatar"
:image=accountStore.user.photo>
</v-avatar>
</template>
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
<v-list-item-subtitle>Участник {{route.path}} {{route.query}}</v-list-item-subtitle>
<v-list-item-subtitle>Участник {{route.path}} {{route.query}}</v-list-item-subtitle>
</v-list-item>
<v-card-title class="pt-0 pb-1">
@@ -91,24 +89,18 @@
</v-row>
<div class="text-subtitle-2">
</div>
<v-row>
<v-col class="pr-0">
<v-alert
color="white"
rounded=0
:border="accountStore.user.login==y.author.login?'end':'start'"
:border-color="accountStore.user.login==y.author.login?'success':'deep-purple accent-4'"
elevation=0
>
{{ y.text }}
</v-alert>
color="bg_comments"
rounded=0
:border="accountStore.user.login==y.author.login?'end':'start'"
:border-color="accountStore.user.login==y.author.login?'success':'deep-purple accent-4'"
elevation=0>
{{ y.text }}
</v-alert>
</v-col>
<v-col class="flex-grow-0 d-flex pa-0 align-center"
:class="accountStore.user.login==y.author.login?'pa-0':'pa-5'"
@@ -118,21 +110,15 @@
variant="text"
size="small"
icon='mdi-delete'
color="blue-grey-darken-1"
color="delete_btn"
@click="deletComment(y.id, x.id)"
/>
</v-col>
</v-row>
</div>
</div>
</div>
</v-expand-transition>
</div>
</div>
@@ -160,14 +146,14 @@
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="blue-darken-1"
color="modal_btn"
variant="text"
@click="dialogCommentShow = false"
>
Отмена
</v-btn>
<v-btn
color="blue-darken-1"
color="modal_btn"
variant="text"
@click="addComment"
>
+23 -62
View File
@@ -46,22 +46,14 @@
<div class="pt-1 pl-1 pb-2">
<v-btn
color="light-blue-darken-4"
variant="text"
:to='`/news?id=${x.id}`'
size="small"
append-icon="mdi-step-forward-2"
>
Подробнее
</v-btn>
color="light-blue-darken-4"
variant="text"
:to='`/news?id=${x.id}`'
size="small"
append-icon="mdi-step-forward-2">
Подробнее
</v-btn>
</div>
</v-card>
@@ -79,15 +71,12 @@
>
<v-list-item class="w-100 pl-4 py-2 pt-3">
<template v-slot:prepend>
<v-avatar
color="grey-darken-3"
:image=accountStore.user.photo></v-avatar>
<v-avatar
color="loading_avatar"
:image=accountStore.user.photo></v-avatar>
</template>
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
<v-list-item-subtitle>Участник</v-list-item-subtitle>
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
<v-list-item-subtitle>Участник</v-list-item-subtitle>
</v-list-item>
<v-card-title class="pt-0 pb-1">
@@ -116,9 +105,6 @@
</div>
</template>
</v-list-item>
<div >
<v-divider/>
@@ -135,48 +121,33 @@
:key="key"
class="d-flex flex-column pa-3"
>
<v-row
class="justify-space-between ma-0 align-center bgchat mr-7"
:class="accountStore.user.login==y.author.login?'bgchatnot':'bgchat'"
>
<v-col class="flex-grow-1 text-subtitle-2 pl-2 pa-0 "
>
{{ accountStore.user.login==y.author.login?'':splitname(y.author) }}
</v-col>
<v-col class="pa-0 text-center text-subtitle-2 ">
{{dateformat(y.cdate)}}
</v-col>
<v-col class="pa-0 pr-2 text-end text-subtitle-2 ">
{{ accountStore.user.login!=y.author.login?'':splitname(y.author) }}
</v-col>
</v-row>
<div class="text-subtitle-2">
</div>
<v-row>
<v-col class="pr-0">
<v-alert
color="white"
rounded=0
:border="accountStore.user.login==y.author.login?'end':'start'"
:border-color="accountStore.user.login==y.author.login?'success':'deep-purple accent-4'"
elevation=0
>
{{ y.text }}
</v-alert>
color="white"
rounded=0
:border="accountStore.user.login==y.author.login?'end':'start'"
:border-color="accountStore.user.login==y.author.login?'success':'deep-purple accent-4'"
elevation=0>
{{ y.text }}
</v-alert>
</v-col>
<v-col class="flex-grow-0 d-flex pa-0 align-center"
:class="accountStore.user.login==y.author.login?'pa-0':'pa-5'"
@@ -186,34 +157,24 @@
variant="text"
size="small"
icon='mdi-delete'
color="blue-grey-darken-1"
color="delete_btn"
@click="deletComment(y.id, x.id)"
/>
</v-col>
</v-row>
</div>
</div>
</div>
</v-expand-transition>
</div>
</div>
</v-card>
</div>
<v-row justify="center">
<v-dialog
v-model="dialogCommentShow"
persistent
width="550"
>
width="550">
<v-card>
<v-card-title class="text-h5">
Прокоментировать новость