From 2e7ad1b7b2524febf1eb84fe2a1fd895f0da15c9 Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Tue, 26 Oct 2021 18:03:49 +0200 Subject: [PATCH] Don't display "count" text for pagination --- src/languages/bg-BG.js | 3 --- src/languages/de-DE.js | 3 --- src/languages/en.js | 3 --- src/languages/es-ES.js | 3 --- src/languages/fa.js | 5 ----- src/languages/pl.js | 3 --- src/languages/ru-RU.js | 3 --- src/pages/DashboardHome.vue | 25 ++++++++++--------------- src/pages/Details.vue | 13 ++++--------- 9 files changed, 14 insertions(+), 47 deletions(-) diff --git a/src/languages/bg-BG.js b/src/languages/bg-BG.js index 0bb590777..f6c85179e 100644 --- a/src/languages/bg-BG.js +++ b/src/languages/bg-BG.js @@ -299,8 +299,5 @@ export default { BodyInvalidFormat: "Заявеното съобщение не е валиден JSON: ", "Monitor History": "История на мониторите", clearDataOlderThan: "Ще се съхранява за {0} дни.", - records: "записа", - "One record": "Един запис", - "Showing {from} to {to} of {count} records": "Показване на {from} до {to} от {count} записа", steamApiKeyDescription: "За да мониторирате Steam Gameserver се нуждаете от Steam Web-API ключ. Може да регистрирате Вашия API ключ тук: ", }; diff --git a/src/languages/de-DE.js b/src/languages/de-DE.js index 11176eff9..5327d6cf9 100644 --- a/src/languages/de-DE.js +++ b/src/languages/de-DE.js @@ -300,8 +300,5 @@ export default { "Monitor History": "Monitor Verlauf", clearDataOlderThan: "Bewahre die Monitor-Verlaufsdaten für {0} Tage auf.", PasswordsDoNotMatch: "Passwörter stimmen nicht überein.", - records: "Einträge", - "One record": "Ein Eintrag", - "Showing {from} to {to} of {count} records": "Zeige {from} zu {to} von {count} Einträge", steamApiKeyDescription: "Um einen Steam Game Server zu überwachen, wird ein Steam Web-API-Schlüssel benötigt. Dieser kann hier registriert werden: ", }; diff --git a/src/languages/en.js b/src/languages/en.js index 58207d4dc..90fbe24d8 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -302,8 +302,5 @@ export default { "Monitor History": "Monitor History", clearDataOlderThan: "Keep monitor history data for {0} days.", PasswordsDoNotMatch: "Passwords do not match.", - records: "records", - "One record": "One record", - "Showing {from} to {to} of {count} records": "Showing {from} to {to} of {count} records", steamApiKeyDescription: "For monitoring a Steam Game Server you need a Steam Web-API key. You can register your API key here: ", }; diff --git a/src/languages/es-ES.js b/src/languages/es-ES.js index 2f238cdce..59f791ef3 100644 --- a/src/languages/es-ES.js +++ b/src/languages/es-ES.js @@ -200,8 +200,5 @@ export default { mattermost: "Mattermost", "Monitor History": "Historial de monitor", clearDataOlderThan: "Mantener los datos del historial del monitor durante {0} días.", - records: "registros", - "One record": "Un registro", - "Showing {from} to {to} of {count} records": "Mostrando desde {from} a {to} de {count} registros", steamApiKeyDescription: "Para monitorear un servidor de juegos de Steam, necesita una clave Steam Web-API. Puede registrar su clave API aquí: ", }; diff --git a/src/languages/fa.js b/src/languages/fa.js index 7eed151ad..fab50ca5e 100644 --- a/src/languages/fa.js +++ b/src/languages/fa.js @@ -180,11 +180,6 @@ export default { "Status Page": "صفحه وضعیت", "Go to Dashboard": "رفتن به پیشخوان", "Uptime Kuma": "آپتایم کوما", - records: "مورد", - "One record": "یک مورد", - "Showing {from} to {to} of {count} records": "نمایش از {from} تا {to} از {count} مورد", - First: "اولین", - Last: "آخرین", Info: "اطلاعات", "Powered by": "نیرو گرفته از", telegram: "Telegram", diff --git a/src/languages/pl.js b/src/languages/pl.js index b71885551..eb909e9db 100644 --- a/src/languages/pl.js +++ b/src/languages/pl.js @@ -300,8 +300,5 @@ export default { "Monitor History": "Historia monitorów", clearDataOlderThan: "Przechowuj dane dotyczące historii monitorowania {0} dni.", PasswordsDoNotMatch: "Hasła nie pasują.", - records: "rekordy", - "One record": "Jeden rekord", - "Showing {from} to {to} of {count} records": "Wyświetlanie {from} do {to} z {count} rekordów", steamApiKeyDescription: "Do monitorowania serwera gier Steam potrzebny jest klucz Steam Web-API. Możesz zarejestrować swój klucz API tutaj: ", }; diff --git a/src/languages/ru-RU.js b/src/languages/ru-RU.js index 1b0da54fd..372bba70b 100644 --- a/src/languages/ru-RU.js +++ b/src/languages/ru-RU.js @@ -305,8 +305,5 @@ export default { "Monitor History": "История мониторов", clearDataOlderThan: "Сохранять историю мониторов в течение {0} дней.", PasswordsDoNotMatch: "Пароли не совпадают.", - records: "записей", - "One record": "Одна запись", - "Showing {from} to {to} of {count} records": "Показывается от {from} до {to} из {count} записей", steamApiKeyDescription: "Для мониторинга игрового сервера Steam вам необходим Web-API ключ Steam. Зарегистрировать его можно здесь: ", }; diff --git a/src/pages/DashboardHome.vue b/src/pages/DashboardHome.vue index 9a9e2a828..2832b1c7f 100644 --- a/src/pages/DashboardHome.vue +++ b/src/pages/DashboardHome.vue @@ -83,17 +83,12 @@ export default { perPage: 25, heartBeatList: [], paginationConfig: { - texts:{ - count:`${this.$t("Showing {from} to {to} of {count} records")}|{count} ${this.$t("records")}|${this.$t("One record")}`, - first:this.$t("First"), - last:this.$t("Last"), - nextPage:'>', - nextChunk:'>>', - prevPage:'<', - prevChunk:'<<' - } - } - } + texts: { + count: "", + }, + chunksNavigation: "scroll", + }, + }; }, computed: { stats() { @@ -106,7 +101,7 @@ export default { for (let monitorID in this.$root.monitorList) { let beat = this.$root.lastHeartbeatList[monitorID]; - let monitor = this.$root.monitorList[monitorID] + let monitor = this.$root.monitorList[monitorID]; if (monitor && ! monitor.active) { result.pause++; @@ -132,7 +127,7 @@ export default { let result = []; for (let monitorID in this.$root.importantHeartbeatList) { - let list = this.$root.importantHeartbeatList[monitorID] + let list = this.$root.importantHeartbeatList[monitorID]; result = result.concat(list); } @@ -140,7 +135,7 @@ export default { let monitor = this.$root.monitorList[beat.monitorID]; if (monitor) { - beat.name = monitor.name + beat.name = monitor.name; } } @@ -167,7 +162,7 @@ export default { return this.heartBeatList.slice(startIndex, endIndex); }, }, -} +};