Merge branch 'razrab'

This commit is contained in:
iriska-gri committed 2024-01-23 16:08:06 +03:00
commit 8f0208e6b5
9 files changed
+24 -86

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "front", "name": "front",
"version": "0.0.42", "version": "0.0.43",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "front", "name": "front",
"version": "0.0.42", "version": "0.0.43",
"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.42", "version": "0.0.43",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
+10 -5
View File
@@ -30,11 +30,16 @@
</template> </template>
</v-textarea> </v-textarea>
</template> </template>
<v-date-picker <v-locale-provider locale="ru">
v-model="selectedDate" <v-date-picker
show-adjacent-months v-model="selectedDate"
@update:modelValue="dateStart" show-adjacent-months
/> hide-header
@update:modelValue="dateStart"
border
/>
</v-locale-provider>
</v-menu> </v-menu>
</template> </template>
+3 -3
View File
@@ -5,7 +5,7 @@
width="600" width="600"
class="mx-auto" class="mx-auto"
> >
<v-card height="440"> <v-card height="480">
<v-card-title class="pl-6"> <v-card-title class="pl-6">
Информация Информация
</v-card-title> </v-card-title>
@@ -18,8 +18,8 @@
<v-col lg=4> <v-col lg=4>
<v-img <v-img
cover cover
min-height="180px" min-height="222px"
max-height="180px" max-height="222px"
:src="checkremote(`${spravURL}${userlinks.login}.jpg`)" :src="checkremote(`${spravURL}${userlinks.login}.jpg`)"
/> />
</v-col> </v-col>
+5 -13
View File
@@ -74,15 +74,7 @@ class="px-3 ddd" >
</v-btn> </v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
<v-dialog
v-model="menuGetUserDialog"
persistent width="800">
<Card-users
:menuGetUserDialog="menuGetUserDialog"
:loging="iduser"
@menusClose="menuGetUserDialog = false" />
</v-dialog>
</div> </div>
</template> </template>
@@ -91,13 +83,13 @@ import { ref,watch, onMounted, computed } from 'vue'
import {checkremote} from '@/utils/universal_functions' import {checkremote} from '@/utils/universal_functions'
import { spravURL } from '@/utils/axios-api' import { spravURL } from '@/utils/axios-api'
import { axiosApiInstance } from '@/utils/axios-api' import { axiosApiInstance } from '@/utils/axios-api'
import CardUsers from '@/components/cardUsers.vue'
import VcardUser from '@/components/UI/fiousercard/vcardUser.vue' import VcardUser from '@/components/UI/fiousercard/vcardUser.vue'
import listUser from '@/components/UI//fiousercard/listUser.vue' import listUser from '@/components/UI//fiousercard/listUser.vue'
export default { export default {
components: { components: {
CardUsers, VcardUser,listUser VcardUser,listUser
}, },
props: { props: {
@@ -114,7 +106,7 @@ export default {
}, },
setup(props, {emit}){ setup(props, {emit}){
const menuGetUserDialog = ref(false)
const t_dailyRound = ref({}) const t_dailyRound = ref({})
// const result = ref({}) // const result = ref({})
const iduser = ref('') const iduser = ref('')
@@ -137,7 +129,7 @@ export default {
const getcard = async (idus) => { const getcard = async (idus) => {
menuGetUserDialog.value = true
iduser.value = idus iduser.value = idus
} }
@@ -167,7 +159,7 @@ export default {
spravURL, spravURL,
t_dailyRound, t_dailyRound,
result, result,
menuGetUserDialog,
getcard, getcard,
iduser iduser
+1 -1
View File
@@ -30,7 +30,7 @@
@click="detailRound(x.position, x.position__name)" @click="detailRound(x.position, x.position__name)"
class="numstyle mt-2 py-0 font-weight-bold pointer bg-black_and_white" class="numstyle mt-2 py-0 font-weight-bold pointer bg-black_and_white"
> >
<!-- <my-helper :pretext="x"/> -->
<vue3-autocounter <vue3-autocounter
ref='counter' ref='counter'
:startAmount='0' :startAmount='0'
@@ -6,66 +6,7 @@
> >
<news-card :news="x"/> <news-card :news="x"/>
</div> </div>
<!-- <v-card
:ref="i"
style="width:421px"
class="mx-auto px-3 pt-3 elevation-0"
:class="i>0?'mt-1':''"
v-for="(x, i) in newss.result" :key= i
>
<v-card-title class="py-1">
{{x.title}}
</v-card-title>
<v-img
:src="`${burl}${x.link}`"
height="175px"
cover
width="92%"
class="mx-auto"
/>
<v-list-item class="w-100">
<div class="justify-self-start mt-1">
<v-icon size="x-small" class="me-1" icon="mdi-account" ></v-icon>
<span class="text-caption me-2">{{splitname(x.author)}}</span>
</div>
<template v-slot:append>
<div class="justify-self-end">
<v-icon size="x-small" class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.login && 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>
<v-icon size="x-small" class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.login && e.score == false).length>0?'mdi-thumb-down':'mdi-thumb-down-outline'" @click="toggleIncrementLike(x.id, false)"/>
<span class="subheading me-2">{{x.scores.filter(e=> e.score==false).length}}</span>
<span class="me-1">·</span>
<v-icon size="x-small" class="me-1" icon="mdi-message-text-outline"/>
<span class="subheading">{{ x.comment.length }}</span>
</div>
</template>
</v-list-item>
<v-divider/>
<v-card-text class="pb-0">
<div v-html=limitText(x.text)>
</div>
</v-card-text>
<div class="pt-1 pl-1 pb-2">
<v-btn
color="more_details_btn"
variant="text"
:to='`/news?id=${x.id}`'
size="small"
append-icon="mdi-step-forward-2"
>
Подробнее
</v-btn>
</div>
<v-divider/>
<v-divider class="mt-1"/>
</v-card> -->
</div> </div>
</template> </template>
+1
View File
@@ -21,6 +21,7 @@ import Vue3Autocounter from 'vue3-autocounter'
const app = createApp(App) const app = createApp(App)
components.forEach((component) => { components.forEach((component) => {
app.component(component.name, component); app.component(component.name, component);
}) })
+1 -2
View File
@@ -94,8 +94,7 @@
<v-row no-gutters class="gap"> <v-row no-gutters class="gap">
<v-col lg=3> <v-col lg=3>
<feedmodul <feedmodul :feedback="feedback"/>
:feedback="feedback"/>
</v-col> </v-col>
<v-col class="d-flex flex-column"> <v-col class="d-flex flex-column">
<v-row no-gutters class="ma-0 pb-1"> <v-row no-gutters class="ma-0 pb-1">