Merge branch 'II'
This commit is contained in:
commit
1c250ce12b
11 files changed
+91
-28
No files matched your search
Generated
+2
-2
@@ -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,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",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<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,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"
|
||||||
|
|||||||
@@ -1,36 +1,49 @@
|
|||||||
<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
|
||||||
|
class="d-flex flex-column"
|
||||||
|
lg=7
|
||||||
|
md=12
|
||||||
|
cols=12
|
||||||
|
>
|
||||||
<v-row class="flex-grow-0">
|
<v-row class="flex-grow-0">
|
||||||
<v-col class="pr-0 pb-0">
|
<v-col class="pr-0 pb-0">
|
||||||
<Carousel-list/>
|
<Carousel-list/>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
<v-row style="height:250px">
|
||||||
<v-row>
|
<v-col class="d-flex flex-column pr-0 pt-3" >
|
||||||
<v-col class="pr-0 pt-0 d-flex pt-3 flex-column">
|
|
||||||
<event-calendar/>
|
<event-calendar/>
|
||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</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">
|
||||||
|
<v-row>
|
||||||
|
<v-col
|
||||||
|
cols="4"
|
||||||
|
class="pb-0"
|
||||||
|
>
|
||||||
<digital-letna/>
|
<digital-letna/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="flex-column d-flex pr-0 pt-0 pb-0" >
|
<v-col class="pb-0 pl-0 d-flex flex-column">
|
||||||
<v-card class=" flex-column pik overflow-auto">
|
<v-card class="h-100 d-flex flex-column">
|
||||||
|
|
||||||
|
|
||||||
|
<v-row class="d-flex h-0 overflow-auto">
|
||||||
|
<v-col>
|
||||||
<News-list-home />
|
<News-list-home />
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
</v-card>
|
</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"
|
||||||
@@ -51,18 +64,11 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</v-btn-toggle>
|
</v-btn-toggle>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
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 |
@@ -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") == "/":
|
||||||
|
|||||||
Reference in new issue
Block a user