From 54e0dd04780256108bf7cebca980196ac6afc373 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Mon, 21 Dec 2020 18:08:35 +0700 Subject: [PATCH] =?UTF-8?q?=D0=92=20=D1=81=D0=BF=D0=B8=D1=81=D0=BE=D0=BA?= =?UTF-8?q?=20=D0=BD=D0=B5=D0=B4=D0=B0=D0=B2=D0=BD=D0=B8=D1=85=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D0=BE=D1=81=D0=BA=D0=B0=20=D0=BF=D1=80=D0=BE=D1=87=D0=B8?= =?UTF-8?q?=D1=82=D0=B0=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Reader/RecentBooksPage/RecentBooksPage.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/components/Reader/RecentBooksPage/RecentBooksPage.vue b/client/components/Reader/RecentBooksPage/RecentBooksPage.vue index ceebe551..6eb0b65a 100644 --- a/client/components/Reader/RecentBooksPage/RecentBooksPage.vue +++ b/client/components/Reader/RecentBooksPage/RecentBooksPage.vue @@ -56,6 +56,7 @@
{{ props.row.desc.author }}
{{ props.row.desc.title }}
+
@@ -203,11 +204,13 @@ class RecentBooksPage extends Vue { d.setTime(book.touchTime); const t = utils.formatDate(d).split(' '); + let readPart = 0; let perc = ''; let textLen = ''; const p = (book.bookPosSeen ? book.bookPosSeen : (book.bookPos ? book.bookPos : 0)); if (book.textLength) { - perc = ` [${((p/book.textLength)*100).toFixed(2)}%]`; + readPart = p/book.textLength; + perc = ` [${(readPart*100).toFixed(2)}%]`; textLen = ` ${Math.round(book.textLength/1000)}k`; } @@ -226,6 +229,7 @@ class RecentBooksPage extends Vue { author, title: `${title}${perc}${textLen}`, }, + readPart, descString: `${author}${title}${perc}${textLen}`,//для сортировки url: book.url, path: book.path, @@ -354,6 +358,10 @@ class RecentBooksPage extends Vue { white-space: normal; } +.read-bar { + height: 3px; + background-color: #aaaaaa; +}