Merge branch 'II'

This commit is contained in:
iriska-gri committed 2023-12-08 13:35:35 +03:00
commit 1c250ce12b
11 files changed
+127 -64

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "front",
"version": "0.0.34",
"version": "0.0.35",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "front",
"version": "0.0.34",
"version": "0.0.35",
"dependencies": {
"@mdi/font": "7.0.96",
"@vuelidate/core": "^2.0.3",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "front",
"version": "0.0.34",
"version": "0.0.35",
"scripts": {
"dev": "vite",
"build": "vite build",
+5 -2
View File
@@ -1,10 +1,10 @@
<template>
<div class="flex-column h-100">
<div class="flex-column h-100 ">
<v-card
:ref="i"
class="mx-auto px-3 pt-3"
class="mx-auto px-3 pt-3 elevation-0"
:class="i>0?'mt-1':''"
v-for="(x, i) in newss.result" :key= i
>
@@ -57,6 +57,9 @@
Подробнее
</v-btn>
</div>
<v-divider/>
<v-divider class="mt-1"/>
</v-card>
</div>
</template>
+56 -3
View File
@@ -56,7 +56,8 @@
<v-divider/>
<v-card-text>
{{x.text}}
<div v-html=formatText(x.text)>
</div>
</v-card-text>
@@ -308,7 +309,7 @@
</v-row>
<v-row v-else>
<v-row>
<v-col class="">
<v-card
class="h-100 flex-column d-flex"
@@ -383,9 +384,61 @@
</v-card-text>
</v-col>
</v-row>
<!-- <v-row class="flex-grow-0 ma-1">
<v-col class="bg-red">
<v-textarea
variant="solo"
hide-details
rows="2"
v-model="textcomment"
/>
</v-col>
<v-col class="flex-grow-0">
<v-btn
color="modal_btn"
variant="text"
@click="addComment"
>
Отправить
</v-btn>
</v-col>
</v-row> -->
</v-card>
</v-col>
</v-row>
<!-- <v-row v-else>
<v-col>
<v-card
class="h-100 flex-column d-flex"
>
<v-row>
<v-col
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
>
Оставьте свой коментарий...
</v-col>
<v-col>
<v-textarea
variant="solo"
hide-details
rows="5"
v-model="textcomment"
></v-textarea>
<v-btn
color="modal_btn"
variant="text"
@click="addComment"
>
Отправить
</v-btn>
</v-col>
</v-row>
</v-card>
</v-col>
</v-row> -->
</v-col>
</v-row>
</v-col>
@@ -549,7 +602,7 @@ export default {
const textcomment = ref('')
const idnews = ref(0)
const page = ref(1)
const selecnews = ref(2)
const selecnews = ref(6)
const route = useRoute()
const colors = []
@@ -15,6 +15,7 @@
:icon="rail ? 'mdi-chevron-right' : 'mdi-chevron-left'"
@click="rail = !rail"
/>
<v-card
class="bg-transparent py"
color="black_and_white"
+61 -55
View File
@@ -1,70 +1,76 @@
<template>
<v-container fluid class="d-flex mx-0 h-100">
<v-container fluid class="d-flex mx-0 ">
<v-row>
<v-col class="d-flex flex-column" lg=7>
<v-row class="flex-grow-0">
<v-col class="pr-0 pb-0">
<Carousel-list/>
</v-col>
</v-row>
<v-row>
<v-col class="pr-0 pt-0 d-flex pt-3 flex-column">
<event-calendar/>
</v-col>
</v-row>
<v-col
class="d-flex flex-column"
lg=7
md=12
cols=12
>
<v-row class="flex-grow-0">
<v-col class="pr-0 pb-0">
<Carousel-list/>
</v-col>
</v-row>
<v-row style="height:250px">
<v-col class="d-flex flex-column pr-0 pt-3" >
<event-calendar/>
</v-col>
</v-row>
</v-col>
<v-col class="flex-column d-flex ma-3">
<v-row >
<v-col cols="4" class="flex-grow-0 pa-0 pb-3" >
<digital-letna/>
</v-col>
<v-col class="flex-column d-flex pr-0 pt-0 pb-0" >
<v-card class=" flex-column pik overflow-auto">
<News-list-home />
</v-card>
<v-col class="d-flex flex-column">
<v-row>
<v-col class="d-flex flex-column">
<v-row>
<v-col
cols="4"
class="pb-0"
>
<digital-letna/>
</v-col>
<v-col class="pb-0 pl-0 d-flex flex-column">
<v-card class="h-100 d-flex flex-column">
<v-row class="d-flex h-0 overflow-auto">
<v-col>
<News-list-home />
</v-col>
</v-row>
</v-card>
</v-col>
</v-row>
</v-col>
</v-row>
<v-row class=" flex-grow-0">
<v-col class="pa-0">
<v-row class="flex-grow-0">
<v-col>
<v-card class=" flex-colmn">
<v-btn-toggle
v-model="toggle"
divided
variant="outlined"
>
<v-tooltip
v-for="x in favorit"
:key="x"
:text="x.page"
location="top"
<v-btn-toggle
v-model="toggle"
divided
variant="outlined"
>
<template v-slot:activator="{ props }">
<v-btn
v-bind="props"
:icon="x.ico"
:to="x.fullPath"
/>
</template>
</v-tooltip>
</v-btn-toggle>
<v-tooltip
v-for="x in favorit"
:key="x"
:text="x.page"
location="top"
>
<template v-slot:activator="{ props }">
<v-btn
v-bind="props"
:icon="x.ico"
:to="x.fullPath"
/>
</template>
</v-tooltip>
</v-btn-toggle>
</v-card>
</v-col>
</v-row>
</v-col>
</v-row>
</v-row>
</v-container>
</template>
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

+1 -1
View File
@@ -48,7 +48,7 @@ class NewsAPIView(ListAPIView):
newsqueryset = News.objects.filter(pk=int(request.GET.get('id')))
allnews = 1
else:
newsqueryset = News.objects.all().order_by('cdate')
newsqueryset = News.objects.all().order_by('-cdate')
allnews =newsqueryset.count()
if request.GET.get("name") == "/":