diff --git a/db.sqlite3 b/db.sqlite3 index 62e90d981..ea0cc073d 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/front/src/components/news-list.vue b/front/src/components/news-list.vue index 2e20e16c4..b49d3fbf2 100644 --- a/front/src/components/news-list.vue +++ b/front/src/components/news-list.vue @@ -6,125 +6,35 @@ class="mx-auto mb-0 " v-for="(x, i) in newss" :key= i > + + + + {{x.author.fio}} + + Участник + + + {{x.title}} + - - {{x.title}} - - + {{limitText(x.text)}} - + - - - {{x.author.fio}} - - - - - - - - - -
- - - - {{x.text}} - - - - - - - - {{x.scores.filter(e=> e.score==true).length}} - - - - - - {{ x.comment.length }} - - - - - - - {{x.scores.filter(e=> e.score==false).length}} - - - - - - - - - - - -
- -
- -
-
- -
{{dateformat(y.cdate)}} - -
- - -
- -
-
+ @@ -216,7 +126,7 @@ :border="accountStore.user.login==y.author.login?'end':'start'" :border-color="accountStore.user.login==y.author.login?'success':'deep-purple accent-4'" - elevation="" + elevation=0 > {{ y.text }} @@ -235,53 +145,7 @@ - - - - - - - - + @@ -390,7 +254,10 @@ export default { } const limitText=(text)=> { - return text.split(' ').slice(0, 10).join(' ') + const t = text.split(' ').slice(0, 25) + console.log(text.split(' ').slice(0, 25).join(' ')); + console.log(t.length<25?'':'...'); + return `${text.split(' ').slice(0, 25).join(' ')} ${t.length<25?'':'...'}` } const splitname = (name) => {