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