From 82677a90bab4322e299ada33b3df77cecf437478 Mon Sep 17 00:00:00 2001 From: sinisaos Date: Fri, 19 Dec 2025 11:08:59 +0100 Subject: [PATCH 1/5] enable better pagination for large datasets --- admin_ui/src/components/Pagination.vue | 116 ++++++++++++++----------- admin_ui/src/views/RowListing.vue | 10 --- piccolo_admin/translations/data.py | 60 ------------- 3 files changed, 67 insertions(+), 119 deletions(-) diff --git a/admin_ui/src/components/Pagination.vue b/admin_ui/src/components/Pagination.vue index dc665738..1d68f597 100644 --- a/admin_ui/src/components/Pagination.vue +++ b/admin_ui/src/components/Pagination.vue @@ -1,23 +1,32 @@ @@ -30,7 +39,7 @@ export default defineComponent({ }, data() { return { - pageDropdownValue: 0 + pageInput: 1 } }, computed: { @@ -44,32 +53,56 @@ export default defineComponent({ const count = Math.ceil(this.rowCount / this.pageSize) return count < 1 ? 1 : count }, - currentTableName() { - return this.$store.state.currentTableName + currentPageNumber() { + return this.$store.state.currentPageNumber || 1 }, - filterParams() { - return this.$store.state.filterParams + + prevPages(): number[] { + const start = Math.max(1, this.currentPageNumber - 2) + const end = this.currentPageNumber - 1 + return this.range(start, end) }, - currentPageNumber() { - return this.$store.state.currentPageNumber + + nextPages(): number[] { + const start = this.currentPageNumber + 1 + const end = Math.min(this.pageCount, this.currentPageNumber + 2) + return this.range(start, end) } }, methods: { - async changePage(pageNumber: number) { - if (this.currentPageNumber != pageNumber) { - console.log("Navigating to " + pageNumber) - this.$store.commit("updateCurrentPageNumber", pageNumber) - await this.$store.dispatch("fetchRows") - } + range(start: number, end: number): number[] { + if (start > end) return [] + // return rows for correct page + return Array.from({ length: end - start + 1 }, (_, i) => start + i) + }, + + async changePage(page: number) { + // return first or last page + if (page < 1 || page > this.pageCount) return + // return current page + if (page === this.currentPageNumber) return + + this.$store.commit("updateCurrentPageNumber", page) + await this.$store.dispatch("fetchRows") + }, + + async goToPage() { + let page = this.pageInput + + if (!page || page < 1) page = 1 + if (page > this.pageCount) page = this.pageCount + + this.pageInput = page + await this.changePage(page) } }, watch: { - pageDropdownValue(value) { - this.changePage(value) + currentPageNumber(val) { + this.pageInput = val } }, mounted() { - this.pageDropdownValue = this.currentPageNumber + this.pageInput = this.currentPageNumber } }) @@ -84,7 +117,6 @@ div#pagination { padding: 0; li { - border: 1px solid rgba(255, 255, 255, 0.2); display: inline-block; font-size: 0.8rem; margin-bottom: 0.5rem; @@ -109,22 +141,8 @@ div#pagination { } } } - - div.page_select { - select, - label { - display: inline-block; - } - - label { - font-size: 0.9rem; - margin-right: 1rem; - } - - select { - width: auto; - padding-right: 1.5rem; - } + span.count { + padding-right: 0.5rem; } } diff --git a/admin_ui/src/views/RowListing.vue b/admin_ui/src/views/RowListing.vue index 8550fb57..9eb8399b 100644 --- a/admin_ui/src/views/RowListing.vue +++ b/admin_ui/src/views/RowListing.vue @@ -395,13 +395,6 @@ -

- {{ $t("Showing") }} {{ rows.length }} - {{ $t("of") }} - {{ rowCount }} - {{ $t("result(s)") }} -

-
@@ -552,9 +545,6 @@ export default defineComponent({ return Object.fromEntries(orderBy.map((i) => [i.column, i])) }, - rowCount() { - return this.$store.state.rowCount - }, currentPageNumber() { return this.$store.state.currentPageNumber }, diff --git a/piccolo_admin/translations/data.py b/piccolo_admin/translations/data.py index 0d84841f..1bddfa75 100644 --- a/piccolo_admin/translations/data.py +++ b/piccolo_admin/translations/data.py @@ -52,7 +52,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "For timestamps which are timezone aware, they will be displayed in this timezone by default.", "Form submitted": "Form submitted", "Forms": "Forms", - "Go to page": "Go to page", "Hide Filters": "Hide Filters", "Hide referencing tables": "Hide referencing tables", "Home": "Home", @@ -71,10 +70,8 @@ "No results found": "No results found", "Note: Large data sets may take a while.": "Note: Large data sets may take a while.", "Note: They are converted to UTC when stored in the database.": "Note: They are converted to UTC when stored in the database.", - "of": "of", "page": "page", "Password": "Password", - "result(s)": "result(s)", "rows": "rows", "Save": "Save", "Seconds": "Seconds", @@ -86,7 +83,6 @@ "Set Timezone": "Set Timezone", "Show Filters": "Show filters", "Show referencing tables": "Show referencing tables", - "Showing": "Showing", "Sort by": "Sort by", "Sort": "Sort", "Submit": "Submit", @@ -135,7 +131,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Ar gyfer stampiau amser sy'n ymwybodol o gylchfa amser, byddant yn cael eu harddangos yn y gylchfa amser hon yn ddiofyn.", "Form submitted": "Ffurflen wedi'i chyflwyno", "Forms": "Ffurflenni", - "Go to page": "Ewch i'r dudalen", "Hide Filters": "Cuddio hidlwyr", "Hide referencing tables": "Cuddio tablau cyfeirio", "Home": "Cartref", @@ -154,10 +149,8 @@ "No results found": "Heb ganfod canlyniadau", "Note: Large data sets may take a while.": "Nodyn: Gall setiau data mawr gymryd peth amser.", "Note: They are converted to UTC when stored in the database.": "Nodyn: Maent yn cael eu trosi i UTC pan gânt eu storio yn y gronfa ddata.", - "of": "o", "page": "tudalen", "Password": "Cyfrinair", - "result(s)": "canlyniad(au)", "rows": "rhesi", "Save": "Arbed", "Seconds": "Eiliadau", @@ -169,7 +162,6 @@ "Set Timezone": "Gosod Cylchfa Amser", "Show Filters": "Dangos hidlwyr", "Show referencing tables": "Dangos tablau cyfeirio", - "Showing": "Yn dangos", "Sort by": "Trefnu yn ôl", "Sort": "Didoli", "Submit": "Cyflwyno", @@ -217,7 +209,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Za vremenske oznake koje su svjesne vremenske zone, one će prema zadanim postavkama biti prikazane u ovoj vremenskoj zoni.", "Form submitted": "Obrazac poslan", "Forms": "Forme", - "Go to page": "Idi na stranicu", "Hide Filters": "Sakrij filtre", "Hide referencing tables": "Sakrij referentne tablice", "Home": "Početna", @@ -236,10 +227,8 @@ "No results found": "Nema rezultata", "Note: Large data sets may take a while.": "Napomena: Veliki skupovi podataka mogu potrajati.", "Note: They are converted to UTC when stored in the database.": "Napomena: Konvertiraju se u UTC kada se pohranjuju u bazu podataka.", - "of": "od", "page": "stranici", "Password": "Zaporka", - "result(s)": "rezultat(a)", "rows": "redaka", "Save": "Spremi", "Seconds": "Sekunde", @@ -251,7 +240,6 @@ "Set Timezone": "Postavite vremensku zonu", "Show Filters": "Prikaži filtere", "Show referencing tables": "Prikaži referentne tablice", - "Showing": "Pokazuje", "Sort by": "Sortiraj po", "Sort": "Sortiraj", "Submit": "Podnijeti", @@ -300,7 +288,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Para carimbos de data/hora que reconhecem o fuso horário, eles serão exibidos nesse fuso horário por padrão.", "Form submitted": "Formulário enviado", "Forms": "Formulários", - "Go to page": "Ir para página", "Hide Filters": "Ocultar filtros", "Hide referencing tables": "Ocultar tabelas de referência", "Home": "Página inicial", @@ -319,10 +306,8 @@ "No results found": "Nenhum resultado encontrado", "Note: Large data sets may take a while.": "Nota: Grandes conjuntos de dados podem demorar um pouco.", "Note: They are converted to UTC when stored in the database.": "Nota: Eles são convertidos para UTC quando armazenados no banco de dados.", - "of": "do", "page": "página", "Password": "Senha", - "result(s)": "resultado(s)", "rows": "linhas", "Save": "Guardar", "Seconds": "Segundos", @@ -334,7 +319,6 @@ "Set Timezone": "Definir fuso horário", "Show Filters": "Mostrar filtros", "Show referencing tables": "Mostrar tabelas de referência", - "Showing": "Mostrando", "Sort by": "Ordenar por", "Sort": "Ordenar", "Submit": "Enviar", @@ -383,7 +367,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Zeitstempel, die die Zeitzone berücksichtigen, werden standardmäßig in dieser Zeitzone angezeigt.", "Form submitted": "Formular eingereicht", "Forms": "Formulare", - "Go to page": "Gehen Sie zur Seite", "Hide Filters": "Filter ausblenden", "Hide referencing tables": "Referenzierungstabellen ausblenden", "Home": "Startseite", @@ -402,10 +385,8 @@ "No results found": "keine Ergebnisse gefunden", "Note: Large data sets may take a while.": "Hinweis: Bei großen Datensätzen kann es eine Weile dauern.", "Note: They are converted to UTC when stored in the database.": "Hinweis: Sie werden beim Speichern in der Datenbank in UTC konvertiert.", - "of": "von", "page": "Seite", "Password": "Passwort", - "result(s)": "Ergebnis(se)", "rows": "Zeilen", "Save": "Speichern", "Seconds": "Sekunden", @@ -417,7 +398,6 @@ "Set Timezone": "Zeitzone einstellen", "Show Filters": "Filter anzeigen", "Show referencing tables": "Referenzierungstabellen anzeigen", - "Showing": "Zeigen", "Sort by": "Sortieren nach", "Sort": "Sortieren", "Submit": "Abschicken", @@ -466,7 +446,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Pour les horodatages prenant en compte le fuseau horaire, ils seront affichés par défaut dans ce fuseau horaire.", "Form submitted": "Formulaire soumis", "Forms": "Formulaires", - "Go to page": "Aller à la page", "Hide Filters": "Masquer les filtres", "Hide referencing tables": "Masquer les tables de référence", "Home": "Accueil", @@ -485,10 +464,8 @@ "No results found": "Aucun résultat trouvé", "Note: Large data sets may take a while.": "Remarque : Les ensembles de données volumineux peuvent prendre un certain temps.", "Note: They are converted to UTC when stored in the database.": "Remarque : Ils sont convertis en UTC lorsqu'ils sont stockés dans la base de données.", - "of": "de", "page": "page", "Password": "Mot de passe", - "result(s)": "résultat(s)", "rows": "lignes", "Save": "Sauvegarder", "Seconds": "Secondes", @@ -500,7 +477,6 @@ "Set Timezone": "Définir le fuseau horaire", "Show Filters": "Montrer les filtres", "Show referencing tables": "Afficher les tables de référence", - "Showing": "Projection", "Sort by": "Trier par", "Sort": "Trier", "Submit": "Soumettre", @@ -549,7 +525,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Para las marcas de tiempo que tienen en cuenta la zona horaria, se mostrarán en esta zona horaria de forma predeterminada.", "Form submitted": "Formulario enviado", "Forms": "Formularios", - "Go to page": "Ir a la página", "Hide Filters": "Ocultar filtros", "Hide referencing tables": "Ocultar tablas de referencia", "Home": "Hogar", @@ -568,10 +543,8 @@ "No results found": "No se han encontrado resultados", "Note: Large data sets may take a while.": "Nota: Los conjuntos de datos grandes pueden tardar algún tiempo.", "Note: They are converted to UTC when stored in the database.": "Nota: Se convierten a UTC cuando se almacenan en la base de datos.", - "of": "de", "page": "página", "Password": "Clave", - "result(s)": "resultado(s)", "rows": "hilera", "Save": "Ahorrar", "Seconds": "Segundos", @@ -583,7 +556,6 @@ "Set Timezone": "Establecer zona horaria", "Show Filters": "Mostrar filtros", "Show referencing tables": "Mostrar tablas de referencia", - "Showing": "Demostración", "Sort by": "Ordenar por", "Sort": "Clasificar", "Submit": "Enviar", @@ -631,7 +603,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Aikavyöhyketietoiset aikaleimat näytetään oletusarvoisesti tällä aikavyöhykkeellä.", "Form submitted": "Lomake lähetetty", "Forms": "Lomakkeet", - "Go to page": "Mene sivulle", "Hide Filters": "Piilota suodattimet", "Hide referencing tables": "Piilota viitetaulukot", "Home": "Koti", @@ -650,10 +621,8 @@ "No results found": "Ei löytynyt tuloksia", "Note: Large data sets may take a while.": "Huomautus: Suuret tietojoukot voivat kestää hetken.", "Note: They are converted to UTC when stored in the database.": "Huomautus: Ne muunnetaan UTC-muotoon, kun ne tallennetaan tietokantaan.", - "of": "osa", "page": "sivu", "Password": "Salasana", - "result(s)": "tulokset", "rows": "rivit", "Save": "Tallenna", "Seconds": "Sekunnit", @@ -665,7 +634,6 @@ "Set Timezone": "Aseta aikavyöhyke", "Show Filters": "Näytä suodattimet", "Show referencing tables": "Näytä viitetaulut", - "Showing": "Näkyvissä", "Sort by": "Lajittele jnkn mukaan", "Sort": "Lajittele", "Submit": "Lähetä", @@ -713,7 +681,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Временные метки, которые учитывают часовой пояс, по умолчанию будут отображаться в этом часовом поясе.", "Form submitted": "Форма отправлена", "Forms": "Формы", - "Go to page": "Перейти к странице", "Hide Filters": "Скрыть фильтры", "Hide referencing tables": "Скрыть связаные таблицы", "Home": "Главная", @@ -732,10 +699,8 @@ "No results found": "Ничего не найдено", "Note: Large data sets may take a while.": "Примечание. Большие наборы данных могут занять некоторое время.", "Note: They are converted to UTC when stored in the database.": "Примечание. При сохранении в базе данных они преобразуются в формат UTC.", - "of": "из", "page": "страницу(е)", "Password": "Пароль", - "result(s)": "строк(и)", "rows": "строки", "Save": "Сохранить", "Seconds": "Секунды", @@ -747,7 +712,6 @@ "Set Timezone": "Установить часовой пояс", "Show Filters": "Показать фильтры", "Show referencing tables": "Показать связанные таблицы", - "Showing": "Показано", "Sort by": "Сортировать по", "Sort": "Сортировка", "Submit": "Отправить", @@ -795,7 +759,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Для часових позначок, які враховують часовий пояс, вони відображатимуться в цьому часовому поясі за умовчанням.", "Form submitted": "Форму відправлено", "Forms": "Форми", - "Go to page": "Перейти на сторінку", "Hide Filters": "Приховати фільтри", "Hide referencing tables": "Приховати пов'язані таблиці", "Home": "Головна", @@ -814,10 +777,8 @@ "No results found": "Нічого не знайдено", "Note: Large data sets may take a while.": "Примітка: великі набори даних можуть зайняти деякий час.", "Note: They are converted to UTC when stored in the database.": "Примітка. Під час зберігання в базі даних вони перетворюються на UTC.", - "of": "з", "page": "сторінки", "Password": "Пароль", - "result(s)": "результат(ів)", "rows": "рядки", "Save": "Зберегти", "Seconds": "Секунди", @@ -829,7 +790,6 @@ "Set Timezone": "Установити часовий пояс", "Show Filters": "Показати фільтри", "Show referencing tables": "Показати пов'язані таблиці", - "Showing": "Показано", "Sort by": "Сортувати за", "Sort": "Сортування", "Submit": "Відправити", @@ -877,7 +837,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "对于时区感知的时间戳,默认情况下它们将显示在该时区中。", "Form submitted": "已提交的表单", "Forms": "表单", - "Go to page": "转到页面", "Hide Filters": "隐藏过滤器", "Hide referencing tables": "隐藏引用的表", "Home": "主页", @@ -896,10 +855,8 @@ "No results found": "没有找到结果", "Note: Large data sets may take a while.": "注意:大型数据集可能需要一段时间。", "Note: They are converted to UTC when stored in the database.": "注意:它们存储在数据库中时会转换为 UTC。", - "of": "于", # prep. is hard to translate in Chinese "page": "页", "Password": "密码", - "result(s)": "结果", "rows": "行", "Save": "保存", "Seconds": "秒", @@ -911,7 +868,6 @@ "Set Timezone": "设置时区", "Show Filters": "显示过滤器", "Show referencing tables": "显示引用的表", - "Showing": "正在显示", "Sort by": "使用排序", # it should be 使用...排序 "Sort": "排序", "Submit": "提交", @@ -960,7 +916,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "對於具有時區的時間戳記,將會顯示於此時區所對應的時間。", "Form submitted": "表單已提交", "Forms": "表單", - "Go to page": "跳轉頁面", "Hide Filters": "隱藏篩選器", "Hide referencing tables": "隱藏引用的表格", "Home": "首頁", @@ -979,10 +934,8 @@ "No results found": "沒有找到結果", "Note: Large data sets may take a while.": "注意:大型資料集可能需要一段時間。", "Note: They are converted to UTC when stored in the database.": "注意:它們在儲存至資料庫時會轉換為 UTC。", - "of": "的", "page": "頁面", "Password": "密碼", - "result(s)": "結果", "rows": "行", "Save": "儲存", "Seconds": "秒", @@ -994,7 +947,6 @@ "Set Timezone": "設定時區", "Show Filters": "顯示篩選器", "Show referencing tables": "顯示引用的表格", - "Showing": "正在顯示", "Sort by": "使用排序", "Sort": "排序", "Submit": "提交", @@ -1042,7 +994,6 @@ "Form submitted": "Form gönderildi", "Forms": "Formlar", "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Zaman dilimine duyarlı zaman damgaları varsayılan olarak bu zaman diliminde görüntülenecektir.", - "Go to page": "Sayfaya git", "Hide Filters": "Filtreleri Gizle", "Hide referencing tables": "Referans tablolarını gizle", "Home": "Ana Sayfa", @@ -1061,10 +1012,8 @@ "No results found": "Sonuç bulunamadı", "Note: Large data sets may take a while.": "Not: Büyük veri kümelerinin oluşturulması biraz zaman alabilir.", "Note: They are converted to UTC when stored in the database.": "Not: Veritabanında saklandıklarında UTC'ye dönüştürülürler.", - "of": "of", "page": "sayfa", "Password": "Şifre", - "result(s)": "kayıt(lar)", "rows": "satır", "Save": "Kaydet", "Seconds": "Saniyeler", @@ -1076,7 +1025,6 @@ "Set Timezone": "Saat Dilimini Ayarla", "Show Filters": "Filtreleri Göster", "Show referencing tables": "Referans tablolarını göster", - "Showing": "Gösterilen", "Sort by": "Sırala", "Sort": "Sırala", "Submit": "Gönder", @@ -1124,7 +1072,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "برای مهرهای زمانی دارای اطلاعات منطقه زمانی، به‌طور پیش‌فرض در این منطقه زمانی نمایش داده می‌شوند.", "Form submitted": "فرم ارسال شد", "Forms": "فرم‌ها", - "Go to page": "رفتن به صفحه", "Hide Filters": "پنهان کردن فیلترها", "Hide referencing tables": "پنهان کردن جدول‌های مرتبط", "Home": "خانه", @@ -1143,10 +1090,8 @@ "No results found": "نتیجه‌ای یافت نشد", "Note: Large data sets may take a while.": "توجه: مجموعه داده‌های بزرگ ممکن است زمان‌بر باشند.", "Note: They are converted to UTC when stored in the database.": "توجه: هنگام ذخیره در پایگاه داده، به زمان UTC تبدیل می‌شوند.", - "of": "از", "page": "صفحه", "Password": "رمز عبور", - "result(s)": "(ها)نتیجه", "rows": "ردیف", "Save": "ذخیره", "Seconds": "ثانیه", @@ -1158,7 +1103,6 @@ "Set Timezone": "تنظیم منطقه زمانی", "Show Filters": "نمایش فیلترها", "Show referencing tables": "نمایش جدول‌های مرتبط", - "Showing": "در حال نمایش", "Sort by": "مرتب‌سازی بر اساس", "Sort": "مرتب‌سازی", "Submit": "ارسال", @@ -1207,7 +1151,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "I timestamp che tengono conto del fuso orario verranno visualizzati in questo fuso orario di default.", "Form submitted": "Modulo inviato", "Forms": "Moduli", - "Go to page": "Vai alla pagina", "Hide Filters": "Nascondi filtri", "Hide referencing tables": "Nascondi tabelle di riferimento", "Home": "Home", @@ -1226,10 +1169,8 @@ "No results found": "Nessun risultato trovato", "Note: Large data sets may take a while.": "Nota: i set di dati di grandi dimensioni possono richiedere del tempo.", "Note: They are converted to UTC when stored in the database.": "Nota: Vengono convertiti in UTC quando vengono memorizzati nel database.", - "of": "di", "page": "pagina", "Password": "Password", - "result(s)": "risultato(i)", "rows": "righe", "Save": "Salva", "Seconds": "Secondi", @@ -1241,7 +1182,6 @@ "Set Timezone": "Imposta fuso orario", "Show Filters": "Mostra filtri", "Show referencing tables": "Mostra tabelle di riferimento", - "Showing": "Mostrando", "Sort by": "Ordina per", "Sort": "Ordina", "Submit": "Invia", From dfc58d85cae64acc1a9fceaaacdd74b593d183e4 Mon Sep 17 00:00:00 2001 From: sinisaos Date: Fri, 19 Dec 2025 14:37:02 +0100 Subject: [PATCH 2/5] change styling for smaller screens --- admin_ui/src/components/Pagination.vue | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/admin_ui/src/components/Pagination.vue b/admin_ui/src/components/Pagination.vue index 1d68f597..d9f66764 100644 --- a/admin_ui/src/components/Pagination.vue +++ b/admin_ui/src/components/Pagination.vue @@ -4,7 +4,7 @@
  • - {{ n }} +
  • @@ -18,12 +18,12 @@ v-on:keyup.enter="goToPage" /> - of {{ pageCount }} +
  • of {{ pageCount }}
  • - {{ n }} +
  • @@ -58,14 +58,14 @@ export default defineComponent({ }, prevPages(): number[] { - const start = Math.max(1, this.currentPageNumber - 2) + const start = Math.max(1, this.currentPageNumber - 1) const end = this.currentPageNumber - 1 return this.range(start, end) }, nextPages(): number[] { const start = this.currentPageNumber + 1 - const end = Math.min(this.pageCount, this.currentPageNumber + 2) + const end = Math.min(this.pageCount, this.currentPageNumber + 1) return this.range(start, end) } }, @@ -97,8 +97,8 @@ export default defineComponent({ } }, watch: { - currentPageNumber(val) { - this.pageInput = val + currentPageNumber(value: number) { + this.pageInput = value } }, mounted() { @@ -113,7 +113,7 @@ export default defineComponent({ div#pagination { ul.pages { list-style: none; - margin: 0.5rem 0; + margin: 0.3rem 0; padding: 0; li { @@ -145,4 +145,14 @@ div#pagination { padding-right: 0.5rem; } } + +@media (max-width: 480px) { + div#pagination { + ul.pages { + li { + font-size: 0.6rem; + } + } + } +} From 7da1cbd00b098c5e0db81d589f4e50961e164d98 Mon Sep 17 00:00:00 2001 From: sinisaos Date: Sat, 20 Dec 2025 10:56:40 +0100 Subject: [PATCH 3/5] page changes on input field change event --- admin_ui/src/components/Pagination.vue | 4 ++ admin_ui/src/views/RowListing.vue | 12 +++++- piccolo_admin/translations/data.py | 60 ++++++++++++++++++++++++++ 3 files changed, 75 insertions(+), 1 deletion(-) diff --git a/admin_ui/src/components/Pagination.vue b/admin_ui/src/components/Pagination.vue index d9f66764..555be948 100644 --- a/admin_ui/src/components/Pagination.vue +++ b/admin_ui/src/components/Pagination.vue @@ -16,6 +16,7 @@ :max="pageCount" v-model.number="pageInput" v-on:keyup.enter="goToPage" + v-on:change="goToPage" />
  • of {{ pageCount }}
  • @@ -144,6 +145,9 @@ div#pagination { span.count { padding-right: 0.5rem; } + input { + text-align: center; + } } @media (max-width: 480px) { diff --git a/admin_ui/src/views/RowListing.vue b/admin_ui/src/views/RowListing.vue index 9eb8399b..13ede35a 100644 --- a/admin_ui/src/views/RowListing.vue +++ b/admin_ui/src/views/RowListing.vue @@ -395,6 +395,13 @@ +

    + {{ $t("Showing") }} {{ rows.length }} + {{ $t("of") }} + {{ rowCount }} + {{ $t("result(s)") }} +

    +
    @@ -545,6 +552,9 @@ export default defineComponent({ return Object.fromEntries(orderBy.map((i) => [i.column, i])) }, + rowCount() { + return this.$store.state.rowCount + }, currentPageNumber() { return this.$store.state.currentPageNumber }, @@ -972,4 +982,4 @@ div.wrapper { } } } - + \ No newline at end of file diff --git a/piccolo_admin/translations/data.py b/piccolo_admin/translations/data.py index 1bddfa75..0d84841f 100644 --- a/piccolo_admin/translations/data.py +++ b/piccolo_admin/translations/data.py @@ -52,6 +52,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "For timestamps which are timezone aware, they will be displayed in this timezone by default.", "Form submitted": "Form submitted", "Forms": "Forms", + "Go to page": "Go to page", "Hide Filters": "Hide Filters", "Hide referencing tables": "Hide referencing tables", "Home": "Home", @@ -70,8 +71,10 @@ "No results found": "No results found", "Note: Large data sets may take a while.": "Note: Large data sets may take a while.", "Note: They are converted to UTC when stored in the database.": "Note: They are converted to UTC when stored in the database.", + "of": "of", "page": "page", "Password": "Password", + "result(s)": "result(s)", "rows": "rows", "Save": "Save", "Seconds": "Seconds", @@ -83,6 +86,7 @@ "Set Timezone": "Set Timezone", "Show Filters": "Show filters", "Show referencing tables": "Show referencing tables", + "Showing": "Showing", "Sort by": "Sort by", "Sort": "Sort", "Submit": "Submit", @@ -131,6 +135,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Ar gyfer stampiau amser sy'n ymwybodol o gylchfa amser, byddant yn cael eu harddangos yn y gylchfa amser hon yn ddiofyn.", "Form submitted": "Ffurflen wedi'i chyflwyno", "Forms": "Ffurflenni", + "Go to page": "Ewch i'r dudalen", "Hide Filters": "Cuddio hidlwyr", "Hide referencing tables": "Cuddio tablau cyfeirio", "Home": "Cartref", @@ -149,8 +154,10 @@ "No results found": "Heb ganfod canlyniadau", "Note: Large data sets may take a while.": "Nodyn: Gall setiau data mawr gymryd peth amser.", "Note: They are converted to UTC when stored in the database.": "Nodyn: Maent yn cael eu trosi i UTC pan gânt eu storio yn y gronfa ddata.", + "of": "o", "page": "tudalen", "Password": "Cyfrinair", + "result(s)": "canlyniad(au)", "rows": "rhesi", "Save": "Arbed", "Seconds": "Eiliadau", @@ -162,6 +169,7 @@ "Set Timezone": "Gosod Cylchfa Amser", "Show Filters": "Dangos hidlwyr", "Show referencing tables": "Dangos tablau cyfeirio", + "Showing": "Yn dangos", "Sort by": "Trefnu yn ôl", "Sort": "Didoli", "Submit": "Cyflwyno", @@ -209,6 +217,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Za vremenske oznake koje su svjesne vremenske zone, one će prema zadanim postavkama biti prikazane u ovoj vremenskoj zoni.", "Form submitted": "Obrazac poslan", "Forms": "Forme", + "Go to page": "Idi na stranicu", "Hide Filters": "Sakrij filtre", "Hide referencing tables": "Sakrij referentne tablice", "Home": "Početna", @@ -227,8 +236,10 @@ "No results found": "Nema rezultata", "Note: Large data sets may take a while.": "Napomena: Veliki skupovi podataka mogu potrajati.", "Note: They are converted to UTC when stored in the database.": "Napomena: Konvertiraju se u UTC kada se pohranjuju u bazu podataka.", + "of": "od", "page": "stranici", "Password": "Zaporka", + "result(s)": "rezultat(a)", "rows": "redaka", "Save": "Spremi", "Seconds": "Sekunde", @@ -240,6 +251,7 @@ "Set Timezone": "Postavite vremensku zonu", "Show Filters": "Prikaži filtere", "Show referencing tables": "Prikaži referentne tablice", + "Showing": "Pokazuje", "Sort by": "Sortiraj po", "Sort": "Sortiraj", "Submit": "Podnijeti", @@ -288,6 +300,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Para carimbos de data/hora que reconhecem o fuso horário, eles serão exibidos nesse fuso horário por padrão.", "Form submitted": "Formulário enviado", "Forms": "Formulários", + "Go to page": "Ir para página", "Hide Filters": "Ocultar filtros", "Hide referencing tables": "Ocultar tabelas de referência", "Home": "Página inicial", @@ -306,8 +319,10 @@ "No results found": "Nenhum resultado encontrado", "Note: Large data sets may take a while.": "Nota: Grandes conjuntos de dados podem demorar um pouco.", "Note: They are converted to UTC when stored in the database.": "Nota: Eles são convertidos para UTC quando armazenados no banco de dados.", + "of": "do", "page": "página", "Password": "Senha", + "result(s)": "resultado(s)", "rows": "linhas", "Save": "Guardar", "Seconds": "Segundos", @@ -319,6 +334,7 @@ "Set Timezone": "Definir fuso horário", "Show Filters": "Mostrar filtros", "Show referencing tables": "Mostrar tabelas de referência", + "Showing": "Mostrando", "Sort by": "Ordenar por", "Sort": "Ordenar", "Submit": "Enviar", @@ -367,6 +383,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Zeitstempel, die die Zeitzone berücksichtigen, werden standardmäßig in dieser Zeitzone angezeigt.", "Form submitted": "Formular eingereicht", "Forms": "Formulare", + "Go to page": "Gehen Sie zur Seite", "Hide Filters": "Filter ausblenden", "Hide referencing tables": "Referenzierungstabellen ausblenden", "Home": "Startseite", @@ -385,8 +402,10 @@ "No results found": "keine Ergebnisse gefunden", "Note: Large data sets may take a while.": "Hinweis: Bei großen Datensätzen kann es eine Weile dauern.", "Note: They are converted to UTC when stored in the database.": "Hinweis: Sie werden beim Speichern in der Datenbank in UTC konvertiert.", + "of": "von", "page": "Seite", "Password": "Passwort", + "result(s)": "Ergebnis(se)", "rows": "Zeilen", "Save": "Speichern", "Seconds": "Sekunden", @@ -398,6 +417,7 @@ "Set Timezone": "Zeitzone einstellen", "Show Filters": "Filter anzeigen", "Show referencing tables": "Referenzierungstabellen anzeigen", + "Showing": "Zeigen", "Sort by": "Sortieren nach", "Sort": "Sortieren", "Submit": "Abschicken", @@ -446,6 +466,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Pour les horodatages prenant en compte le fuseau horaire, ils seront affichés par défaut dans ce fuseau horaire.", "Form submitted": "Formulaire soumis", "Forms": "Formulaires", + "Go to page": "Aller à la page", "Hide Filters": "Masquer les filtres", "Hide referencing tables": "Masquer les tables de référence", "Home": "Accueil", @@ -464,8 +485,10 @@ "No results found": "Aucun résultat trouvé", "Note: Large data sets may take a while.": "Remarque : Les ensembles de données volumineux peuvent prendre un certain temps.", "Note: They are converted to UTC when stored in the database.": "Remarque : Ils sont convertis en UTC lorsqu'ils sont stockés dans la base de données.", + "of": "de", "page": "page", "Password": "Mot de passe", + "result(s)": "résultat(s)", "rows": "lignes", "Save": "Sauvegarder", "Seconds": "Secondes", @@ -477,6 +500,7 @@ "Set Timezone": "Définir le fuseau horaire", "Show Filters": "Montrer les filtres", "Show referencing tables": "Afficher les tables de référence", + "Showing": "Projection", "Sort by": "Trier par", "Sort": "Trier", "Submit": "Soumettre", @@ -525,6 +549,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Para las marcas de tiempo que tienen en cuenta la zona horaria, se mostrarán en esta zona horaria de forma predeterminada.", "Form submitted": "Formulario enviado", "Forms": "Formularios", + "Go to page": "Ir a la página", "Hide Filters": "Ocultar filtros", "Hide referencing tables": "Ocultar tablas de referencia", "Home": "Hogar", @@ -543,8 +568,10 @@ "No results found": "No se han encontrado resultados", "Note: Large data sets may take a while.": "Nota: Los conjuntos de datos grandes pueden tardar algún tiempo.", "Note: They are converted to UTC when stored in the database.": "Nota: Se convierten a UTC cuando se almacenan en la base de datos.", + "of": "de", "page": "página", "Password": "Clave", + "result(s)": "resultado(s)", "rows": "hilera", "Save": "Ahorrar", "Seconds": "Segundos", @@ -556,6 +583,7 @@ "Set Timezone": "Establecer zona horaria", "Show Filters": "Mostrar filtros", "Show referencing tables": "Mostrar tablas de referencia", + "Showing": "Demostración", "Sort by": "Ordenar por", "Sort": "Clasificar", "Submit": "Enviar", @@ -603,6 +631,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Aikavyöhyketietoiset aikaleimat näytetään oletusarvoisesti tällä aikavyöhykkeellä.", "Form submitted": "Lomake lähetetty", "Forms": "Lomakkeet", + "Go to page": "Mene sivulle", "Hide Filters": "Piilota suodattimet", "Hide referencing tables": "Piilota viitetaulukot", "Home": "Koti", @@ -621,8 +650,10 @@ "No results found": "Ei löytynyt tuloksia", "Note: Large data sets may take a while.": "Huomautus: Suuret tietojoukot voivat kestää hetken.", "Note: They are converted to UTC when stored in the database.": "Huomautus: Ne muunnetaan UTC-muotoon, kun ne tallennetaan tietokantaan.", + "of": "osa", "page": "sivu", "Password": "Salasana", + "result(s)": "tulokset", "rows": "rivit", "Save": "Tallenna", "Seconds": "Sekunnit", @@ -634,6 +665,7 @@ "Set Timezone": "Aseta aikavyöhyke", "Show Filters": "Näytä suodattimet", "Show referencing tables": "Näytä viitetaulut", + "Showing": "Näkyvissä", "Sort by": "Lajittele jnkn mukaan", "Sort": "Lajittele", "Submit": "Lähetä", @@ -681,6 +713,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Временные метки, которые учитывают часовой пояс, по умолчанию будут отображаться в этом часовом поясе.", "Form submitted": "Форма отправлена", "Forms": "Формы", + "Go to page": "Перейти к странице", "Hide Filters": "Скрыть фильтры", "Hide referencing tables": "Скрыть связаные таблицы", "Home": "Главная", @@ -699,8 +732,10 @@ "No results found": "Ничего не найдено", "Note: Large data sets may take a while.": "Примечание. Большие наборы данных могут занять некоторое время.", "Note: They are converted to UTC when stored in the database.": "Примечание. При сохранении в базе данных они преобразуются в формат UTC.", + "of": "из", "page": "страницу(е)", "Password": "Пароль", + "result(s)": "строк(и)", "rows": "строки", "Save": "Сохранить", "Seconds": "Секунды", @@ -712,6 +747,7 @@ "Set Timezone": "Установить часовой пояс", "Show Filters": "Показать фильтры", "Show referencing tables": "Показать связанные таблицы", + "Showing": "Показано", "Sort by": "Сортировать по", "Sort": "Сортировка", "Submit": "Отправить", @@ -759,6 +795,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Для часових позначок, які враховують часовий пояс, вони відображатимуться в цьому часовому поясі за умовчанням.", "Form submitted": "Форму відправлено", "Forms": "Форми", + "Go to page": "Перейти на сторінку", "Hide Filters": "Приховати фільтри", "Hide referencing tables": "Приховати пов'язані таблиці", "Home": "Головна", @@ -777,8 +814,10 @@ "No results found": "Нічого не знайдено", "Note: Large data sets may take a while.": "Примітка: великі набори даних можуть зайняти деякий час.", "Note: They are converted to UTC when stored in the database.": "Примітка. Під час зберігання в базі даних вони перетворюються на UTC.", + "of": "з", "page": "сторінки", "Password": "Пароль", + "result(s)": "результат(ів)", "rows": "рядки", "Save": "Зберегти", "Seconds": "Секунди", @@ -790,6 +829,7 @@ "Set Timezone": "Установити часовий пояс", "Show Filters": "Показати фільтри", "Show referencing tables": "Показати пов'язані таблиці", + "Showing": "Показано", "Sort by": "Сортувати за", "Sort": "Сортування", "Submit": "Відправити", @@ -837,6 +877,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "对于时区感知的时间戳,默认情况下它们将显示在该时区中。", "Form submitted": "已提交的表单", "Forms": "表单", + "Go to page": "转到页面", "Hide Filters": "隐藏过滤器", "Hide referencing tables": "隐藏引用的表", "Home": "主页", @@ -855,8 +896,10 @@ "No results found": "没有找到结果", "Note: Large data sets may take a while.": "注意:大型数据集可能需要一段时间。", "Note: They are converted to UTC when stored in the database.": "注意:它们存储在数据库中时会转换为 UTC。", + "of": "于", # prep. is hard to translate in Chinese "page": "页", "Password": "密码", + "result(s)": "结果", "rows": "行", "Save": "保存", "Seconds": "秒", @@ -868,6 +911,7 @@ "Set Timezone": "设置时区", "Show Filters": "显示过滤器", "Show referencing tables": "显示引用的表", + "Showing": "正在显示", "Sort by": "使用排序", # it should be 使用...排序 "Sort": "排序", "Submit": "提交", @@ -916,6 +960,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "對於具有時區的時間戳記,將會顯示於此時區所對應的時間。", "Form submitted": "表單已提交", "Forms": "表單", + "Go to page": "跳轉頁面", "Hide Filters": "隱藏篩選器", "Hide referencing tables": "隱藏引用的表格", "Home": "首頁", @@ -934,8 +979,10 @@ "No results found": "沒有找到結果", "Note: Large data sets may take a while.": "注意:大型資料集可能需要一段時間。", "Note: They are converted to UTC when stored in the database.": "注意:它們在儲存至資料庫時會轉換為 UTC。", + "of": "的", "page": "頁面", "Password": "密碼", + "result(s)": "結果", "rows": "行", "Save": "儲存", "Seconds": "秒", @@ -947,6 +994,7 @@ "Set Timezone": "設定時區", "Show Filters": "顯示篩選器", "Show referencing tables": "顯示引用的表格", + "Showing": "正在顯示", "Sort by": "使用排序", "Sort": "排序", "Submit": "提交", @@ -994,6 +1042,7 @@ "Form submitted": "Form gönderildi", "Forms": "Formlar", "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Zaman dilimine duyarlı zaman damgaları varsayılan olarak bu zaman diliminde görüntülenecektir.", + "Go to page": "Sayfaya git", "Hide Filters": "Filtreleri Gizle", "Hide referencing tables": "Referans tablolarını gizle", "Home": "Ana Sayfa", @@ -1012,8 +1061,10 @@ "No results found": "Sonuç bulunamadı", "Note: Large data sets may take a while.": "Not: Büyük veri kümelerinin oluşturulması biraz zaman alabilir.", "Note: They are converted to UTC when stored in the database.": "Not: Veritabanında saklandıklarında UTC'ye dönüştürülürler.", + "of": "of", "page": "sayfa", "Password": "Şifre", + "result(s)": "kayıt(lar)", "rows": "satır", "Save": "Kaydet", "Seconds": "Saniyeler", @@ -1025,6 +1076,7 @@ "Set Timezone": "Saat Dilimini Ayarla", "Show Filters": "Filtreleri Göster", "Show referencing tables": "Referans tablolarını göster", + "Showing": "Gösterilen", "Sort by": "Sırala", "Sort": "Sırala", "Submit": "Gönder", @@ -1072,6 +1124,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "برای مهرهای زمانی دارای اطلاعات منطقه زمانی، به‌طور پیش‌فرض در این منطقه زمانی نمایش داده می‌شوند.", "Form submitted": "فرم ارسال شد", "Forms": "فرم‌ها", + "Go to page": "رفتن به صفحه", "Hide Filters": "پنهان کردن فیلترها", "Hide referencing tables": "پنهان کردن جدول‌های مرتبط", "Home": "خانه", @@ -1090,8 +1143,10 @@ "No results found": "نتیجه‌ای یافت نشد", "Note: Large data sets may take a while.": "توجه: مجموعه داده‌های بزرگ ممکن است زمان‌بر باشند.", "Note: They are converted to UTC when stored in the database.": "توجه: هنگام ذخیره در پایگاه داده، به زمان UTC تبدیل می‌شوند.", + "of": "از", "page": "صفحه", "Password": "رمز عبور", + "result(s)": "(ها)نتیجه", "rows": "ردیف", "Save": "ذخیره", "Seconds": "ثانیه", @@ -1103,6 +1158,7 @@ "Set Timezone": "تنظیم منطقه زمانی", "Show Filters": "نمایش فیلترها", "Show referencing tables": "نمایش جدول‌های مرتبط", + "Showing": "در حال نمایش", "Sort by": "مرتب‌سازی بر اساس", "Sort": "مرتب‌سازی", "Submit": "ارسال", @@ -1151,6 +1207,7 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "I timestamp che tengono conto del fuso orario verranno visualizzati in questo fuso orario di default.", "Form submitted": "Modulo inviato", "Forms": "Moduli", + "Go to page": "Vai alla pagina", "Hide Filters": "Nascondi filtri", "Hide referencing tables": "Nascondi tabelle di riferimento", "Home": "Home", @@ -1169,8 +1226,10 @@ "No results found": "Nessun risultato trovato", "Note: Large data sets may take a while.": "Nota: i set di dati di grandi dimensioni possono richiedere del tempo.", "Note: They are converted to UTC when stored in the database.": "Nota: Vengono convertiti in UTC quando vengono memorizzati nel database.", + "of": "di", "page": "pagina", "Password": "Password", + "result(s)": "risultato(i)", "rows": "righe", "Save": "Salva", "Seconds": "Secondi", @@ -1182,6 +1241,7 @@ "Set Timezone": "Imposta fuso orario", "Show Filters": "Mostra filtri", "Show referencing tables": "Mostra tabelle di riferimento", + "Showing": "Mostrando", "Sort by": "Ordina per", "Sort": "Ordina", "Submit": "Invia", From 0d90d2da62b1fa62c65d40790a4ed3d72fb05652 Mon Sep 17 00:00:00 2001 From: sinisaos Date: Sat, 20 Dec 2025 11:35:52 +0100 Subject: [PATCH 4/5] fix translations --- piccolo_admin/translations/data.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/piccolo_admin/translations/data.py b/piccolo_admin/translations/data.py index 0d84841f..47a388dc 100644 --- a/piccolo_admin/translations/data.py +++ b/piccolo_admin/translations/data.py @@ -52,7 +52,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "For timestamps which are timezone aware, they will be displayed in this timezone by default.", "Form submitted": "Form submitted", "Forms": "Forms", - "Go to page": "Go to page", "Hide Filters": "Hide Filters", "Hide referencing tables": "Hide referencing tables", "Home": "Home", @@ -135,7 +134,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Ar gyfer stampiau amser sy'n ymwybodol o gylchfa amser, byddant yn cael eu harddangos yn y gylchfa amser hon yn ddiofyn.", "Form submitted": "Ffurflen wedi'i chyflwyno", "Forms": "Ffurflenni", - "Go to page": "Ewch i'r dudalen", "Hide Filters": "Cuddio hidlwyr", "Hide referencing tables": "Cuddio tablau cyfeirio", "Home": "Cartref", @@ -217,7 +215,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Za vremenske oznake koje su svjesne vremenske zone, one će prema zadanim postavkama biti prikazane u ovoj vremenskoj zoni.", "Form submitted": "Obrazac poslan", "Forms": "Forme", - "Go to page": "Idi na stranicu", "Hide Filters": "Sakrij filtre", "Hide referencing tables": "Sakrij referentne tablice", "Home": "Početna", @@ -300,7 +297,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Para carimbos de data/hora que reconhecem o fuso horário, eles serão exibidos nesse fuso horário por padrão.", "Form submitted": "Formulário enviado", "Forms": "Formulários", - "Go to page": "Ir para página", "Hide Filters": "Ocultar filtros", "Hide referencing tables": "Ocultar tabelas de referência", "Home": "Página inicial", @@ -383,7 +379,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Zeitstempel, die die Zeitzone berücksichtigen, werden standardmäßig in dieser Zeitzone angezeigt.", "Form submitted": "Formular eingereicht", "Forms": "Formulare", - "Go to page": "Gehen Sie zur Seite", "Hide Filters": "Filter ausblenden", "Hide referencing tables": "Referenzierungstabellen ausblenden", "Home": "Startseite", @@ -466,7 +461,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Pour les horodatages prenant en compte le fuseau horaire, ils seront affichés par défaut dans ce fuseau horaire.", "Form submitted": "Formulaire soumis", "Forms": "Formulaires", - "Go to page": "Aller à la page", "Hide Filters": "Masquer les filtres", "Hide referencing tables": "Masquer les tables de référence", "Home": "Accueil", @@ -549,7 +543,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Para las marcas de tiempo que tienen en cuenta la zona horaria, se mostrarán en esta zona horaria de forma predeterminada.", "Form submitted": "Formulario enviado", "Forms": "Formularios", - "Go to page": "Ir a la página", "Hide Filters": "Ocultar filtros", "Hide referencing tables": "Ocultar tablas de referencia", "Home": "Hogar", @@ -631,7 +624,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Aikavyöhyketietoiset aikaleimat näytetään oletusarvoisesti tällä aikavyöhykkeellä.", "Form submitted": "Lomake lähetetty", "Forms": "Lomakkeet", - "Go to page": "Mene sivulle", "Hide Filters": "Piilota suodattimet", "Hide referencing tables": "Piilota viitetaulukot", "Home": "Koti", @@ -713,7 +705,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Временные метки, которые учитывают часовой пояс, по умолчанию будут отображаться в этом часовом поясе.", "Form submitted": "Форма отправлена", "Forms": "Формы", - "Go to page": "Перейти к странице", "Hide Filters": "Скрыть фильтры", "Hide referencing tables": "Скрыть связаные таблицы", "Home": "Главная", @@ -795,7 +786,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Для часових позначок, які враховують часовий пояс, вони відображатимуться в цьому часовому поясі за умовчанням.", "Form submitted": "Форму відправлено", "Forms": "Форми", - "Go to page": "Перейти на сторінку", "Hide Filters": "Приховати фільтри", "Hide referencing tables": "Приховати пов'язані таблиці", "Home": "Головна", @@ -877,7 +867,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "对于时区感知的时间戳,默认情况下它们将显示在该时区中。", "Form submitted": "已提交的表单", "Forms": "表单", - "Go to page": "转到页面", "Hide Filters": "隐藏过滤器", "Hide referencing tables": "隐藏引用的表", "Home": "主页", @@ -960,7 +949,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "對於具有時區的時間戳記,將會顯示於此時區所對應的時間。", "Form submitted": "表單已提交", "Forms": "表單", - "Go to page": "跳轉頁面", "Hide Filters": "隱藏篩選器", "Hide referencing tables": "隱藏引用的表格", "Home": "首頁", @@ -1042,7 +1030,6 @@ "Form submitted": "Form gönderildi", "Forms": "Formlar", "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Zaman dilimine duyarlı zaman damgaları varsayılan olarak bu zaman diliminde görüntülenecektir.", - "Go to page": "Sayfaya git", "Hide Filters": "Filtreleri Gizle", "Hide referencing tables": "Referans tablolarını gizle", "Home": "Ana Sayfa", @@ -1124,7 +1111,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "برای مهرهای زمانی دارای اطلاعات منطقه زمانی، به‌طور پیش‌فرض در این منطقه زمانی نمایش داده می‌شوند.", "Form submitted": "فرم ارسال شد", "Forms": "فرم‌ها", - "Go to page": "رفتن به صفحه", "Hide Filters": "پنهان کردن فیلترها", "Hide referencing tables": "پنهان کردن جدول‌های مرتبط", "Home": "خانه", @@ -1207,7 +1193,6 @@ "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "I timestamp che tengono conto del fuso orario verranno visualizzati in questo fuso orario di default.", "Form submitted": "Modulo inviato", "Forms": "Moduli", - "Go to page": "Vai alla pagina", "Hide Filters": "Nascondi filtri", "Hide referencing tables": "Nascondi tabelle di riferimento", "Home": "Home", From 59a0b734af6a710c7aec15b3ed8dc49eed29848e Mon Sep 17 00:00:00 2001 From: sinisaos Date: Sat, 7 Feb 2026 18:10:40 +0100 Subject: [PATCH 5/5] fix translations --- piccolo_admin/translations/data.py | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/piccolo_admin/translations/data.py b/piccolo_admin/translations/data.py index 80458b6d..e11d832b 100644 --- a/piccolo_admin/translations/data.py +++ b/piccolo_admin/translations/data.py @@ -1264,11 +1264,9 @@ "Edit": "Szerkesztés", "Export CSV": "CSV exportálása", "Filter": "Szűrés", - "For timestamps which are timezone aware, they will be displayed in this timezone by default.": - "Az időzóna-érzékeny időbélyegek alapértelmezés szerint ebben az időzónában jelennek meg.", + "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Az időzóna-érzékeny időbélyegek alapértelmezés szerint ebben az időzónában jelennek meg.", "Form submitted": "Űrlap elküldve", "Forms": "Űrlapok", - "Go to page": "Ugrás az oldalra", "Hide Filters": "Szűrők elrejtése", "Hide referencing tables": "Hivatkozó táblák elrejtése", "Home": "Főoldal", @@ -1285,10 +1283,8 @@ "New password": "Új jelszó", "New value": "Új érték", "No results found": "Nincs találat", - "Note: Large data sets may take a while.": - "Megjegyzés: Nagy adathalmazok feldolgozása eltarthat egy ideig.", - "Note: They are converted to UTC when stored in the database.": - "Megjegyzés: Az adatbázisban UTC időzónára vannak konvertálva.", + "Note: Large data sets may take a while.": "Megjegyzés: Nagy adathalmazok feldolgozása eltarthat egy ideig.", + "Note: They are converted to UTC when stored in the database.": "Megjegyzés: Az adatbázisban UTC időzónára vannak konvertálva.", "of": "/", "page": "oldal", "Password": "Jelszó", @@ -1298,8 +1294,7 @@ "Seconds": "Másodpercek", "Select a column to update": "Válasszon egy frissítendő oszlopot", "Select a Column": "Oszlop kiválasztása", - "Select a table in the sidebar to get started.": - "A kezdéshez válasszon egy táblát az oldalsávban.", + "Select a table in the sidebar to get started.": "A kezdéshez válasszon egy táblát az oldalsávban.", "selected result(s) on": "kiválasztott találat itt:", "Semicolon": "Pontosvessző", "Set Timezone": "Időzóna beállítása", @@ -1319,7 +1314,7 @@ "Weeks": "Hetek", "Welcome to": "Üdvözöljük itt:", "with a matching": "egyező értékkel", - } + }, ) SLOVAK = Translation( @@ -1350,11 +1345,9 @@ "Edit": "Upraviť", "Export CSV": "Exportovať CSV", "Filter": "Filter", - "For timestamps which are timezone aware, they will be displayed in this timezone by default.": - "Časové značky s informáciou o časovom pásme sa predvolene zobrazujú v tomto časovom pásme.", + "For timestamps which are timezone aware, they will be displayed in this timezone by default.": "Časové značky s informáciou o časovom pásme sa predvolene zobrazujú v tomto časovom pásme.", "Form submitted": "Formulár odoslaný", "Forms": "Formuláre", - "Go to page": "Prejsť na stránku", "Hide Filters": "Skryť filtre", "Hide referencing tables": "Skryť odkazujúce tabuľky", "Home": "Domov", @@ -1371,10 +1364,8 @@ "New password": "Nové heslo", "New value": "Nová hodnota", "No results found": "Neboli nájdené žiadne výsledky", - "Note: Large data sets may take a while.": - "Poznámka: Spracovanie veľkých dátových súborov môže chvíľu trvať.", - "Note: They are converted to UTC when stored in the database.": - "Poznámka: Pri ukladaní do databázy sa konvertujú na UTC.", + "Note: Large data sets may take a while.": "Poznámka: Spracovanie veľkých dátových súborov môže chvíľu trvať.", + "Note: They are converted to UTC when stored in the database.": "Poznámka: Pri ukladaní do databázy sa konvertujú na UTC.", "of": "z", "page": "strana", "Password": "Heslo", @@ -1384,8 +1375,7 @@ "Seconds": "Sekundy", "Select a column to update": "Vyberte stĺpec na aktualizáciu", "Select a Column": "Vybrať stĺpec", - "Select a table in the sidebar to get started.": - "Ak chcete začať, vyberte tabuľku na bočnom paneli.", + "Select a table in the sidebar to get started.": "Ak chcete začať, vyberte tabuľku na bočnom paneli.", "selected result(s) on": "vybrané výsledky na", "Semicolon": "Bodkočiarka", "Set Timezone": "Nastaviť časové pásmo", @@ -1405,7 +1395,7 @@ "Weeks": "Týždne", "Welcome to": "Vitajte v", "with a matching": "so zhodou", - } + }, ) TRANSLATIONS: list[Translation] = [