Merge branch 'II'

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

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "front", "name": "front",
"version": "0.0.34", "version": "0.0.35",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "front", "name": "front",
"version": "0.0.34", "version": "0.0.35",
"dependencies": { "dependencies": {
"@mdi/font": "7.0.96", "@mdi/font": "7.0.96",
"@vuelidate/core": "^2.0.3", "@vuelidate/core": "^2.0.3",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "front", "name": "front",
"version": "0.0.34", "version": "0.0.35",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
+5 -2
View File
@@ -1,10 +1,10 @@
<template> <template>
<div class="flex-column h-100"> <div class="flex-column h-100 ">
<v-card <v-card
:ref="i" :ref="i"
class="mx-auto px-3 pt-3" class="mx-auto px-3 pt-3 elevation-0"
:class="i>0?'mt-1':''" :class="i>0?'mt-1':''"
v-for="(x, i) in newss.result" :key= i v-for="(x, i) in newss.result" :key= i
> >
@@ -57,6 +57,9 @@
Подробнее Подробнее
</v-btn> </v-btn>
</div> </div>
<v-divider/>
<v-divider class="mt-1"/>
</v-card> </v-card>
</div> </div>
</template> </template>
+56 -3
View File
@@ -56,7 +56,8 @@
<v-divider/> <v-divider/>
<v-card-text> <v-card-text>
{{x.text}} <div v-html=formatText(x.text)>
</div>
</v-card-text> </v-card-text>
@@ -308,7 +309,7 @@
</v-row> </v-row>
<v-row v-else> <v-row>
<v-col class=""> <v-col class="">
<v-card <v-card
class="h-100 flex-column d-flex" class="h-100 flex-column d-flex"
@@ -383,9 +384,61 @@
</v-card-text> </v-card-text>
</v-col> </v-col>
</v-row> </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-card>
</v-col> </v-col>
</v-row> </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-col>
</v-row> </v-row>
</v-col> </v-col>
@@ -549,7 +602,7 @@ export default {
const textcomment = ref('') const textcomment = ref('')
const idnews = ref(0) const idnews = ref(0)
const page = ref(1) const page = ref(1)
const selecnews = ref(2) const selecnews = ref(6)
const route = useRoute() const route = useRoute()
const colors = [] const colors = []
@@ -15,6 +15,7 @@
:icon="rail ? 'mdi-chevron-right' : 'mdi-chevron-left'" :icon="rail ? 'mdi-chevron-right' : 'mdi-chevron-left'"
@click="rail = !rail" @click="rail = !rail"
/> />
<v-card <v-card
class="bg-transparent py" class="bg-transparent py"
color="black_and_white" color="black_and_white"
+59 -53
View File
@@ -1,69 +1,75 @@
<template> <template>
<v-container fluid class="d-flex mx-0 h-100"> <v-container fluid class="d-flex mx-0 ">
<v-row> <v-row>
<v-col class="d-flex flex-column" lg=7> <v-col
<v-row class="flex-grow-0"> class="d-flex flex-column"
<v-col class="pr-0 pb-0"> lg=7
<Carousel-list/> md=12
</v-col> cols=12
</v-row> >
<v-row class="flex-grow-0">
<v-row> <v-col class="pr-0 pb-0">
<v-col class="pr-0 pt-0 d-flex pt-3 flex-column"> <Carousel-list/>
<event-calendar/> </v-col>
</v-row>
</v-col> <v-row style="height:250px">
</v-row> <v-col class="d-flex flex-column pr-0 pt-3" >
<event-calendar/>
</v-col>
</v-row>
</v-col> </v-col>
<v-col class="flex-column d-flex ma-3"> <v-col class="d-flex flex-column">
<v-row > <v-row>
<v-col cols="4" class="flex-grow-0 pa-0 pb-3" > <v-col class="d-flex flex-column">
<digital-letna/> <v-row>
</v-col> <v-col
<v-col class="flex-column d-flex pr-0 pt-0 pb-0" > cols="4"
<v-card class=" flex-column pik overflow-auto"> 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">
<News-list-home />
</v-card>
<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-col>
</v-row> </v-row>
<v-row class=" flex-grow-0"> <v-row class="flex-grow-0">
<v-col class="pa-0"> <v-col>
<v-card class=" flex-colmn"> <v-card class=" flex-colmn">
<v-btn-toggle <v-btn-toggle
v-model="toggle" v-model="toggle"
divided divided
variant="outlined" variant="outlined"
>
<v-tooltip
v-for="x in favorit"
:key="x"
:text="x.page"
location="top"
> >
<template v-slot:activator="{ props }"> <v-tooltip
<v-btn v-for="x in favorit"
v-bind="props" :key="x"
:icon="x.ico" :text="x.page"
:to="x.fullPath" location="top"
/> >
</template> <template v-slot:activator="{ props }">
</v-tooltip> <v-btn
v-bind="props"
:icon="x.ico"
:to="x.fullPath"
/>
</template>
</v-btn-toggle> </v-tooltip>
</v-btn-toggle>
</v-card> </v-card>
</v-col> </v-col>
</v-row> </v-row>
</v-col> </v-col>
</v-row>
</v-row>
</v-container> </v-container>
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'))) newsqueryset = News.objects.filter(pk=int(request.GET.get('id')))
allnews = 1 allnews = 1
else: else:
newsqueryset = News.objects.all().order_by('cdate') newsqueryset = News.objects.all().order_by('-cdate')
allnews =newsqueryset.count() allnews =newsqueryset.count()
if request.GET.get("name") == "/": if request.GET.get("name") == "/":