Заливка
This commit is contained in:
1 parent
87856b27fe
commit
182f643b5c
6 files changed
+33
-13
No files matched your search
BIN
Binary file not shown.
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "front",
|
"name": "front",
|
||||||
"version": "0.0.13",
|
"version": "0.0.14",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "front",
|
"name": "front",
|
||||||
"version": "0.0.13",
|
"version": "0.0.14",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fullcalendar/core": "^6.1.8",
|
"@fullcalendar/core": "^6.1.8",
|
||||||
"@fullcalendar/daygrid": "^6.1.8",
|
"@fullcalendar/daygrid": "^6.1.8",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "front",
|
"name": "front",
|
||||||
"version": "0.0.13",
|
"version": "0.0.14",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-container class="py-0 newsVH px-0 bg-transparent overflow-auto">
|
<v-container class="py-0 newsVH px-0 bg-transparent overflow-auto">
|
||||||
|
<!-- <v-btn v-scroll-to="{element:'#g'}">
|
||||||
|
j
|
||||||
|
</v-btn> -->
|
||||||
<v-card
|
<v-card
|
||||||
v-show="pages=='home'"
|
v-show="pages=='home'"
|
||||||
:ref="i"
|
:ref="i"
|
||||||
@@ -56,7 +58,7 @@
|
|||||||
color="#3E8890"
|
color="#3E8890"
|
||||||
variant="text"
|
variant="text"
|
||||||
:to="'/news'"
|
:to="'/news'"
|
||||||
>
|
>
|
||||||
Подробнее
|
Подробнее
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
@@ -65,6 +67,7 @@
|
|||||||
|
|
||||||
|
|
||||||
</v-card>
|
</v-card>
|
||||||
|
<!-- <div ref="#g">hello</div> -->
|
||||||
|
|
||||||
<!-- ------------------------------ @click="scrollMeTo('porto')"---------------------------------------------------- -->
|
<!-- ------------------------------ @click="scrollMeTo('porto')"---------------------------------------------------- -->
|
||||||
|
|
||||||
@@ -73,9 +76,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<v-card v-show="pages=='news'"
|
<v-card v-show="pages=='news'"
|
||||||
class="mx-auto rounded-0"
|
class="mx-auto rounded-0 gggggggggggggggggggggggggg"
|
||||||
:ref="i"
|
|
||||||
v-for="(x, i) in newss" :key= i
|
:ref="el => { if (el) divs[i] = el }"
|
||||||
|
v-for="(x, i) in newss" :key=i
|
||||||
>
|
>
|
||||||
<v-list-item class="w-100 pl-4 py-2 pt-3">
|
<v-list-item class="w-100 pl-4 py-2 pt-3">
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
@@ -85,7 +89,7 @@
|
|||||||
:image=accountStore.user.photo></v-avatar>
|
:image=accountStore.user.photo></v-avatar>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
|
<v-list-item-title>{{x.author.fio}} {{ i }}</v-list-item-title>
|
||||||
|
|
||||||
<v-list-item-subtitle>Участник</v-list-item-subtitle>
|
<v-list-item-subtitle>Участник</v-list-item-subtitle>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
@@ -105,6 +109,9 @@
|
|||||||
|
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<div class="justify-self-end">
|
<div class="justify-self-end">
|
||||||
|
<!-- <v-btn v-scroll-to="{element:'#nh'}">
|
||||||
|
2
|
||||||
|
</v-btn> -->
|
||||||
<v-icon class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.id && e.score == true).length>0?'mdi-thumb-up':'mdi-thumb-up-outline'" @click="toggleIncrementLike(x.id, true)"></v-icon>
|
<v-icon class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.id && e.score == true).length>0?'mdi-thumb-up':'mdi-thumb-up-outline'" @click="toggleIncrementLike(x.id, true)"></v-icon>
|
||||||
<span class="subheading me-2">{{x.scores.filter(e=> e.score==true).length}}</span>
|
<span class="subheading me-2">{{x.scores.filter(e=> e.score==true).length}}</span>
|
||||||
<span class="me-1">·</span>
|
<span class="me-1">·</span>
|
||||||
@@ -213,7 +220,7 @@
|
|||||||
|
|
||||||
|
|
||||||
</v-card>
|
</v-card>
|
||||||
|
<!-- <div id="nh">ss</div> -->
|
||||||
|
|
||||||
<v-row justify="center">
|
<v-row justify="center">
|
||||||
<v-dialog
|
<v-dialog
|
||||||
@@ -261,7 +268,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import { ref, watch } from 'vue'
|
import { ref, watch, onBeforeUpdate } from 'vue'
|
||||||
import {useAccountStore} from '@/store/AccountStore'
|
import {useAccountStore} from '@/store/AccountStore'
|
||||||
import {getfromserver} from '@/utils/universal_functions'
|
import {getfromserver} from '@/utils/universal_functions'
|
||||||
import { baseURL } from '@/utils/axios-api'
|
import { baseURL } from '@/utils/axios-api'
|
||||||
@@ -283,6 +290,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
setup(props){
|
setup(props){
|
||||||
|
const divs = ref([])
|
||||||
|
onBeforeUpdate(() => {
|
||||||
|
divs.value = []
|
||||||
|
})
|
||||||
const newss=ref([])
|
const newss=ref([])
|
||||||
const dialogCommentShow = ref(false)
|
const dialogCommentShow = ref(false)
|
||||||
const burl = baseURL.slice(0,-1)
|
const burl = baseURL.slice(0,-1)
|
||||||
@@ -365,7 +376,8 @@ export default {
|
|||||||
addComment,
|
addComment,
|
||||||
idnews,
|
idnews,
|
||||||
deletComment,
|
deletComment,
|
||||||
newses
|
newses,
|
||||||
|
divs
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ components.forEach((component) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
app.component('vue3-autocounter', Vue3Autocounter)
|
app.component('vue3-autocounter', Vue3Autocounter)
|
||||||
app.component('vue-scrollto', VueScrollTo)
|
app.use(VueScrollTo)
|
||||||
// Vue.use(VueScrollTo)
|
// Vue.use(VueScrollTo)
|
||||||
|
|
||||||
registerPlugins(app)
|
registerPlugins(app)
|
||||||
|
|||||||
@@ -6,6 +6,14 @@
|
|||||||
Структура
|
Структура
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
<!-- <div>
|
||||||
|
<a href="#" v-scroll-to="'#element'">Scroll to #element</a>
|
||||||
|
|
||||||
|
<div ref="element">
|
||||||
|
Hi. I'm #element.
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in new issue
Block a user