pagy 5.7.5 → 8.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/apps/calendar.ru +745 -0
- data/apps/demo.ru +435 -0
- data/apps/rails.ru +213 -0
- data/apps/repro.ru +177 -0
- data/apps/tmp/calendar.sqlite3 +0 -0
- data/apps/tmp/calendar.sqlite3-shm +0 -0
- data/apps/tmp/calendar.sqlite3-wal +0 -0
- data/apps/tmp/local_secret.txt +1 -0
- data/bin/pagy +100 -0
- data/{lib/config → config}/pagy.rb +72 -96
- data/javascripts/pagy-module.js +100 -0
- data/javascripts/pagy.d.ts +5 -0
- data/javascripts/pagy.js +4 -0
- data/javascripts/pagy.min.js +4 -0
- data/javascripts/pagy.min.js.map +10 -0
- data/javascripts/pagy.mjs +100 -0
- data/lib/optimist.rb +1022 -0
- data/lib/pagy/backend.rb +16 -4
- data/lib/pagy/calendar/day.rb +22 -10
- data/lib/pagy/calendar/month.rb +35 -9
- data/lib/pagy/calendar/quarter.rb +36 -10
- data/lib/pagy/calendar/unit.rb +106 -0
- data/lib/pagy/calendar/week.rb +16 -16
- data/lib/pagy/calendar/year.rb +15 -9
- data/lib/pagy/calendar.rb +60 -68
- data/lib/pagy/console.rb +3 -3
- data/lib/pagy/countless.rb +17 -12
- data/lib/pagy/exceptions.rb +1 -1
- data/lib/pagy/extras/arel.rb +2 -2
- data/lib/pagy/extras/array.rb +2 -2
- data/lib/pagy/extras/bootstrap.rb +57 -53
- data/lib/pagy/extras/bulma.rb +53 -57
- data/lib/pagy/extras/calendar.rb +54 -37
- data/lib/pagy/extras/countless.rb +3 -3
- data/lib/pagy/extras/elasticsearch_rails.rb +12 -11
- data/lib/pagy/extras/foundation.rb +59 -54
- data/lib/pagy/extras/gearbox.rb +32 -19
- data/lib/pagy/extras/headers.rb +11 -11
- data/lib/pagy/extras/i18n.rb +5 -5
- data/lib/pagy/extras/items.rb +34 -24
- data/lib/pagy/extras/{frontend_helpers.rb → js_tools.rb} +24 -24
- data/lib/pagy/extras/jsonapi.rb +79 -0
- data/lib/pagy/extras/materialize.rb +63 -47
- data/lib/pagy/extras/meilisearch.rb +26 -22
- data/lib/pagy/extras/metadata.rb +13 -9
- data/lib/pagy/extras/overflow.rb +13 -10
- data/lib/pagy/extras/pagy.rb +82 -0
- data/lib/pagy/extras/searchkick.rb +12 -11
- data/lib/pagy/extras/semantic.rb +57 -45
- data/lib/pagy/extras/size.rb +40 -0
- data/lib/pagy/extras/standalone.rb +12 -16
- data/lib/pagy/extras/trim.rb +13 -13
- data/lib/pagy/extras/uikit.rb +60 -46
- data/lib/pagy/frontend.rb +62 -45
- data/lib/pagy/i18n.rb +4 -3
- data/lib/pagy/url_helpers.rb +13 -25
- data/lib/pagy.rb +61 -59
- data/locales/ar.yml +28 -0
- data/locales/be.yml +25 -0
- data/locales/bg.yml +21 -0
- data/locales/bs.yml +25 -0
- data/locales/ca.yml +21 -0
- data/locales/ckb.yml +18 -0
- data/locales/cs.yml +23 -0
- data/locales/da.yml +21 -0
- data/locales/de.yml +21 -0
- data/locales/en.yml +21 -0
- data/locales/es.yml +21 -0
- data/locales/fr.yml +21 -0
- data/locales/hr.yml +25 -0
- data/locales/id.yml +19 -0
- data/locales/it.yml +21 -0
- data/locales/ja.yml +19 -0
- data/locales/km.yml +19 -0
- data/locales/ko.yml +17 -0
- data/locales/nb.yml +21 -0
- data/locales/nl.yml +21 -0
- data/locales/nn.yml +21 -0
- data/locales/pl.yml +25 -0
- data/locales/pt-BR.yml +21 -0
- data/locales/pt.yml +21 -0
- data/locales/ru.yml +25 -0
- data/locales/sr.yml +25 -0
- data/locales/sv-SE.yml +21 -0
- data/locales/sv.yml +21 -0
- data/locales/sw.yml +23 -0
- data/locales/ta.yml +23 -0
- data/locales/tr.yml +19 -0
- data/locales/uk.yml +25 -0
- data/locales/vi.yml +17 -0
- data/locales/zh-CN.yml +19 -0
- data/locales/zh-HK.yml +19 -0
- data/locales/zh-TW.yml +19 -0
- data/stylesheets/pagy.css +46 -0
- data/stylesheets/pagy.scss +48 -0
- data/stylesheets/pagy.tailwind.css +21 -0
- metadata +79 -66
- data/lib/javascripts/pagy-dev.js +0 -118
- data/lib/javascripts/pagy-module.d.ts +0 -30
- data/lib/javascripts/pagy-module.js +0 -117
- data/lib/javascripts/pagy.js +0 -1
- data/lib/locales/ar.yml +0 -26
- data/lib/locales/bg.yml +0 -22
- data/lib/locales/bs.yml +0 -24
- data/lib/locales/ca.yml +0 -22
- data/lib/locales/cs.yml +0 -22
- data/lib/locales/da.yml +0 -22
- data/lib/locales/de.yml +0 -22
- data/lib/locales/en.yml +0 -22
- data/lib/locales/es.yml +0 -22
- data/lib/locales/fr.yml +0 -22
- data/lib/locales/hr.yml +0 -24
- data/lib/locales/id.yml +0 -20
- data/lib/locales/it.yml +0 -22
- data/lib/locales/ja.yml +0 -20
- data/lib/locales/km.yml +0 -19
- data/lib/locales/ko.yml +0 -20
- data/lib/locales/nb.yml +0 -22
- data/lib/locales/nl.yml +0 -22
- data/lib/locales/pl.yml +0 -24
- data/lib/locales/pt-BR.yml +0 -22
- data/lib/locales/pt.yml +0 -22
- data/lib/locales/ru.yml +0 -24
- data/lib/locales/sr.yml +0 -23
- data/lib/locales/sv-SE.yml +0 -23
- data/lib/locales/sv.yml +0 -23
- data/lib/locales/sw.yml +0 -22
- data/lib/locales/ta.yml +0 -22
- data/lib/locales/tr.yml +0 -20
- data/lib/locales/uk.yml +0 -24
- data/lib/locales/zh-CN.yml +0 -20
- data/lib/locales/zh-HK.yml +0 -20
- data/lib/locales/zh-TW.yml +0 -20
- data/lib/pagy/calendar/month_mixin.rb +0 -49
- data/lib/pagy/extras/navs.rb +0 -63
- data/lib/pagy/extras/support.rb +0 -54
- data/lib/templates/bootstrap_nav.html.erb +0 -24
- data/lib/templates/bootstrap_nav.html.haml +0 -34
- data/lib/templates/bootstrap_nav.html.slim +0 -34
- data/lib/templates/bulma_nav.html.erb +0 -24
- data/lib/templates/bulma_nav.html.haml +0 -32
- data/lib/templates/bulma_nav.html.slim +0 -32
- data/lib/templates/foundation_nav.html.erb +0 -24
- data/lib/templates/foundation_nav.html.haml +0 -34
- data/lib/templates/foundation_nav.html.slim +0 -34
- data/lib/templates/nav.html.erb +0 -22
- data/lib/templates/nav.html.haml +0 -30
- data/lib/templates/nav.html.slim +0 -29
- data/lib/templates/uikit_nav.html.erb +0 -15
- data/lib/templates/uikit_nav.html.haml +0 -28
- data/lib/templates/uikit_nav.html.slim +0 -28
data/locales/pl.yml
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# :polish pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
pl:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
nav:
|
6
|
+
one: "Strona"
|
7
|
+
few: "Strony"
|
8
|
+
many: "Stron"
|
9
|
+
other: "Strony"
|
10
|
+
prev: "Poprzednia"
|
11
|
+
next: "Następna"
|
12
|
+
prev: "<"
|
13
|
+
next: ">"
|
14
|
+
gap: "…"
|
15
|
+
item_name:
|
16
|
+
one: "element"
|
17
|
+
few: "elementy"
|
18
|
+
many: "elementów"
|
19
|
+
other: "elementów"
|
20
|
+
info:
|
21
|
+
no_items: "Nie znaleziono %{item_name}"
|
22
|
+
single_page: "Wyświetlono %{count} %{item_name}"
|
23
|
+
multiple_pages: "Wyświetlono %{item_name} %{from}-%{to} z wszystkich %{count}"
|
24
|
+
combo_nav_js: "Strona %{page_input} z %{pages}"
|
25
|
+
items_selector_js: "Pokaż %{items_input} %{item_name} na stronie"
|
data/locales/pt-BR.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
pt-BR:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
nav:
|
6
|
+
one: "Página"
|
7
|
+
other: "Páginas"
|
8
|
+
prev: "Anterior"
|
9
|
+
next: "Próximo"
|
10
|
+
prev: "<"
|
11
|
+
next: ">"
|
12
|
+
gap: "…"
|
13
|
+
item_name:
|
14
|
+
one: "item"
|
15
|
+
other: "itens"
|
16
|
+
info:
|
17
|
+
no_items: "Sem resultados"
|
18
|
+
single_page: "Mostrando %{count} %{item_name}"
|
19
|
+
multiple_pages: "Mostrando %{item_name} %{from}-%{to} do total de %{count}"
|
20
|
+
combo_nav_js: "Página %{page_input} de %{pages}"
|
21
|
+
items_selector_js: "Mostrar %{items_input} %{item_name} por página"
|
data/locales/pt.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
pt:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
nav:
|
6
|
+
one: "Página"
|
7
|
+
other: "Páginas"
|
8
|
+
prev: "Anterior"
|
9
|
+
next: "Próximo"
|
10
|
+
prev: "<"
|
11
|
+
next: ">"
|
12
|
+
gap: "…"
|
13
|
+
item_name:
|
14
|
+
one: "item"
|
15
|
+
other: "itens"
|
16
|
+
info:
|
17
|
+
no_items: "Sem resultados"
|
18
|
+
single_page: "Mostrando %{count} %{item_name}"
|
19
|
+
multiple_pages: "Mostrando %{item_name} %{from}-%{to} de um total de %{count}"
|
20
|
+
combo_nav_js: "Página %{page_input} de %{pages}"
|
21
|
+
items_selector_js: "Mostrar %{items_input} %{item_name} por página"
|
data/locales/ru.yml
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
ru:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
nav:
|
6
|
+
one: "Страница"
|
7
|
+
few: "Страницы"
|
8
|
+
many: "Страниц"
|
9
|
+
other: "Страниц"
|
10
|
+
prev: "Назад"
|
11
|
+
next: "Вперёд"
|
12
|
+
prev: "<"
|
13
|
+
next: ">"
|
14
|
+
gap: "…"
|
15
|
+
item_name:
|
16
|
+
one: "запись"
|
17
|
+
few: "записи"
|
18
|
+
many: "записей"
|
19
|
+
other: "записей"
|
20
|
+
info:
|
21
|
+
no_items: "Пока %{item_name} нет"
|
22
|
+
single_page: "%{count} %{item_name}"
|
23
|
+
multiple_pages: "Всего %{count} %{item_name}, показаны с %{from} по %{to}"
|
24
|
+
combo_nav_js: "Страница %{page_input} из %{pages}"
|
25
|
+
items_selector_js: "Показать %{items_input} %{item_name} на странице"
|
data/locales/sr.yml
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
sr:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
nav:
|
6
|
+
one: "Страница"
|
7
|
+
few: "Странице"
|
8
|
+
many: "Страница"
|
9
|
+
other: "Странице"
|
10
|
+
prev: "Претходна"
|
11
|
+
next: "Следећa "
|
12
|
+
prev: "<"
|
13
|
+
next: ">"
|
14
|
+
gap: "…"
|
15
|
+
item_name:
|
16
|
+
one: "ставка"
|
17
|
+
few: "ставкe"
|
18
|
+
many: "ставки"
|
19
|
+
other: "ставки"
|
20
|
+
info:
|
21
|
+
no_items: "Нema пронађених %{item_name}"
|
22
|
+
single_page: "Приказује се %{count} %{item_name}"
|
23
|
+
multiple_pages: "Приказ %{item_name} %{from}-%{to} од %{count} укупно"
|
24
|
+
combo_nav_js: "Страниca %{page_input} од %{pages}"
|
25
|
+
items_selector_js: "Прикажи %{items_input} %{item_name} по страниcи"
|
data/locales/sv-SE.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
sv-SE:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
nav:
|
6
|
+
one: "Sida"
|
7
|
+
other: "Sidor"
|
8
|
+
prev: "Föregående"
|
9
|
+
next: "Nästa"
|
10
|
+
prev: "<"
|
11
|
+
next: ">"
|
12
|
+
gap: "…"
|
13
|
+
item_name:
|
14
|
+
one: "resultat"
|
15
|
+
other: "resultat"
|
16
|
+
info:
|
17
|
+
no_items: "Inga %{item_name} hittade"
|
18
|
+
single_page: "Visar %{count} %{item_name}"
|
19
|
+
multiple_pages: "Visar %{item_name} %{from}-%{to} av %{count} totalt"
|
20
|
+
combo_nav_js: "Sida %{page_input} av %{pages}"
|
21
|
+
items_selector_js: "Visa %{items_input} %{item_name} per sida"
|
data/locales/sv.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
sv:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
nav:
|
6
|
+
one: "Sida"
|
7
|
+
other: "Sidor"
|
8
|
+
prev: "Föregående"
|
9
|
+
next: "Nästa"
|
10
|
+
prev: "<"
|
11
|
+
next: ">"
|
12
|
+
gap: "…"
|
13
|
+
item_name:
|
14
|
+
one: "resultat"
|
15
|
+
other: "resultat"
|
16
|
+
info:
|
17
|
+
no_items: "Inga %{item_name} hittade"
|
18
|
+
single_page: "Visar %{count} %{item_name}"
|
19
|
+
multiple_pages: "Visar %{item_name} %{from}-%{to} av %{count} totalt"
|
20
|
+
combo_nav_js: "Sida %{page_input} av %{pages}"
|
21
|
+
items_selector_js: "Visa %{items_input} %{item_name} per sida"
|
data/locales/sw.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
sw:
|
3
|
+
pagy:
|
4
|
+
# please add a comment in the https://github.com/ddnexus/pagy/issues/603
|
5
|
+
# posting the translation of the following "Page"/"Pages" with the plurals for this locale
|
6
|
+
aria_label:
|
7
|
+
nav: "Pages"
|
8
|
+
# one: ""
|
9
|
+
# other: ""
|
10
|
+
prev: "Awali"
|
11
|
+
next: "Ifuatayo"
|
12
|
+
prev: "<"
|
13
|
+
next: ">"
|
14
|
+
gap: "…"
|
15
|
+
item_name:
|
16
|
+
one: "kifaa"
|
17
|
+
other: "vifaa"
|
18
|
+
info:
|
19
|
+
no_items: "Hamna %{item_name} vilivyopatikana"
|
20
|
+
single_page: "Inaonyesha %{item_name} %{count}"
|
21
|
+
multiple_pages: "Inaonyesha %{item_name} %{from}-%{to} ya %{count} kwa jumla"
|
22
|
+
combo_nav_js: "Kurasa %{page_input} ya %{pages}"
|
23
|
+
items_selector_js: "Onyesha %{items_input} %{item_name} kwa kila ukurasa"
|
data/locales/ta.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
ta:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
# please add a comment in the https://github.com/ddnexus/pagy/issues/604
|
6
|
+
# posting the translation of the following "Page"/"Pages" with the plurals for this locale
|
7
|
+
nav: "Pages"
|
8
|
+
# one: ""
|
9
|
+
# other: ""
|
10
|
+
prev: "முந்தையது"
|
11
|
+
next: "அடுத்தது"
|
12
|
+
prev: "<"
|
13
|
+
next: ">"
|
14
|
+
gap: "…"
|
15
|
+
item_name:
|
16
|
+
one: "பதிவு"
|
17
|
+
other: "பதிவுகள்"
|
18
|
+
info:
|
19
|
+
no_items: "%{item_name} கிடைக்கவில்லை"
|
20
|
+
single_page: "%{count} %{item_name} காட்டப்படுகின்றது"
|
21
|
+
multiple_pages: "மொத்தம் %{count} %{item_name}, காட்டப்படுபவை %{from}-%{to}"
|
22
|
+
combo_nav_js: "%{pages}-இல் %{page_input}-வது பக்கம்"
|
23
|
+
items_selector_js: "ஒரு பக்கத்திற்கு %{items_input} %{item_name} காட்டு"
|
data/locales/tr.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# :other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
tr:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
# please add a comment in the https://github.com/ddnexus/pagy/issues/605
|
6
|
+
# posting the translation of the following "Page"/"Pages" with the plurals for this locale
|
7
|
+
nav: "Pages"
|
8
|
+
prev: "Önceki"
|
9
|
+
next: "Sonraki"
|
10
|
+
prev: "<"
|
11
|
+
next: ">"
|
12
|
+
gap: "…"
|
13
|
+
item_name: "kayıt"
|
14
|
+
info:
|
15
|
+
no_items: "Hiç %{item_name} bulunamadı"
|
16
|
+
single_page: "Toplam %{count} %{item_name} gösteriliyor"
|
17
|
+
multiple_pages: "%{count} %{item_name} içerisinden %{from}-%{to} kadarı gösteriliyor"
|
18
|
+
combo_nav_js: "Sayfa %{page_input} / %{pages}"
|
19
|
+
items_selector_js: "Sayfada %{items_input} %{item_name} göster"
|
data/locales/uk.yml
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
uk:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
nav:
|
6
|
+
one: "Сторінка"
|
7
|
+
few: "Сторінки"
|
8
|
+
many: "Сторінок"
|
9
|
+
other: "Сторінки"
|
10
|
+
prev: "Назад"
|
11
|
+
next: "Далі"
|
12
|
+
prev: "<"
|
13
|
+
next: ">"
|
14
|
+
gap: "…"
|
15
|
+
item_name:
|
16
|
+
one: "запис"
|
17
|
+
few: "записів"
|
18
|
+
many: "записів"
|
19
|
+
other: "записів"
|
20
|
+
info:
|
21
|
+
no_items: "Більше %{item_name} немає"
|
22
|
+
single_page: "%{count} %{item_name}"
|
23
|
+
multiple_pages: "Загалом %{count} %{item_name}, показані з %{from} по %{to}"
|
24
|
+
combo_nav_js: "Сторінка %{page_input} з %{pages}"
|
25
|
+
items_selector_js: "Показати %{items_input} %{item_name} на сторінці"
|
data/locales/vi.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# :other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
vi:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
nav: "Trang"
|
6
|
+
prev: "Trang trước"
|
7
|
+
next: "Trang sau"
|
8
|
+
prev: "<"
|
9
|
+
next: ">"
|
10
|
+
gap: "…"
|
11
|
+
item_name: "kết quả"
|
12
|
+
info:
|
13
|
+
no_items: "Không tìm thấy %{item_name} nào"
|
14
|
+
single_page: "%{count} %{item_name}"
|
15
|
+
multiple_pages: "Đang hiển thị %{from}-%{to} trong tổng số %{count} %{item_name}"
|
16
|
+
combo_nav_js: "Trang %{page_input} trên %{pages}"
|
17
|
+
items_selector_js: "Hiển thị %{items_input} %{item_name} mỗi trang"
|
data/locales/zh-CN.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# :other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
zh-CN:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
# please add a comment in the https://github.com/ddnexus/pagy/issues/608
|
6
|
+
# posting the translation of the following "Page"/"Pages" with the plurals for this locale
|
7
|
+
nav: "Pages"
|
8
|
+
prev: "上一页"
|
9
|
+
next: "下一页"
|
10
|
+
prev: "<"
|
11
|
+
next: ">"
|
12
|
+
gap: "…"
|
13
|
+
item_name: ""
|
14
|
+
info:
|
15
|
+
no_items: "项目未找到"
|
16
|
+
single_page: "显示%{count} 项%{item_name}"
|
17
|
+
multiple_pages: "共 %{count} 项%{item_name},显示 %{from}-%{to}"
|
18
|
+
combo_nav_js: "第 %{page_input} / %{pages} 页"
|
19
|
+
items_selector_js: "每页显示 %{items_input} 条%"
|
data/locales/zh-HK.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# :other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
zh-HK:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
# please add a comment in the https://github.com/ddnexus/pagy/issues/609
|
6
|
+
# posting the translation of the following "Page"/"Pages" with the plurals for this locale
|
7
|
+
nav: "Pages"
|
8
|
+
prev: "上一頁"
|
9
|
+
next: "下一頁"
|
10
|
+
prev: "<"
|
11
|
+
next: ">"
|
12
|
+
gap: "…"
|
13
|
+
item_name: ""
|
14
|
+
info:
|
15
|
+
no_items: "記錄未搵到"
|
16
|
+
single_page: "顯示 %{count} %{item_name}"
|
17
|
+
multiple_pages: "共 %{count} %{item_name},顯示 %{from}-%{to}"
|
18
|
+
combo_nav_js: "第 %{page_input} / %{pages} 頁"
|
19
|
+
items_selector_js: "每頁顯示 %{items_input} 記錄"
|
data/locales/zh-TW.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# :other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb)
|
2
|
+
zh-TW:
|
3
|
+
pagy:
|
4
|
+
aria_label:
|
5
|
+
# please add a comment in the https://github.com/ddnexus/pagy/issues/610
|
6
|
+
# posting the translation of the following "Page"/"Pages" with the plurals for this locale
|
7
|
+
nav: "Pages"
|
8
|
+
prev: "上一頁"
|
9
|
+
next: "下一頁"
|
10
|
+
prev: "<"
|
11
|
+
next: ">"
|
12
|
+
gap: "…"
|
13
|
+
item_name: ""
|
14
|
+
info:
|
15
|
+
no_items: "沒找到項"
|
16
|
+
single_page: "顯示 %{count} 項%{item_name}"
|
17
|
+
multiple_pages: "共 %{count} 項%{item_name},顯示 %{from}-%{to}"
|
18
|
+
combo_nav_js: "第 %{page_input} / %{pages} 頁"
|
19
|
+
items_selector_js: "每頁顯示 %{items_input} 項%{item_name}"
|
@@ -0,0 +1,46 @@
|
|
1
|
+
.pagy {
|
2
|
+
display: flex;
|
3
|
+
font-family: sans-serif;
|
4
|
+
font-size: 0.875rem;
|
5
|
+
line-height: 1.25rem;
|
6
|
+
font-weight: 600;
|
7
|
+
color: #6b7280;
|
8
|
+
}
|
9
|
+
.pagy > :not([hidden]) ~ :not([hidden]) {
|
10
|
+
--space-reverse: 0;
|
11
|
+
margin-right: calc(0.25rem * var(--space-reverse));
|
12
|
+
margin-left: calc(0.25rem * calc(1 - var(--space-reverse)));
|
13
|
+
}
|
14
|
+
.pagy a:not(.gap) {
|
15
|
+
display: block;
|
16
|
+
text-decoration: none;
|
17
|
+
border-radius: 0.5rem;
|
18
|
+
background-color: #e5e7eb;
|
19
|
+
padding: 0.25rem 0.75rem;
|
20
|
+
color: inherit;
|
21
|
+
}
|
22
|
+
.pagy a:not(.gap):hover {
|
23
|
+
background-color: #d1d5db;
|
24
|
+
}
|
25
|
+
.pagy a:not(.gap):not([href]) { /* disabled links */
|
26
|
+
cursor: default;
|
27
|
+
background-color: #f3f4f6;
|
28
|
+
color: #d1d5db;
|
29
|
+
}
|
30
|
+
.pagy a:not(.gap).current {
|
31
|
+
background-color: #9ca3af;
|
32
|
+
color: white;
|
33
|
+
}
|
34
|
+
.pagy label {
|
35
|
+
white-space: nowrap;
|
36
|
+
display: inline-block;
|
37
|
+
border-radius: 0.5rem;
|
38
|
+
background-color: #e5e7eb;
|
39
|
+
padding: 0.125rem 0.75rem;
|
40
|
+
}
|
41
|
+
.pagy label input {
|
42
|
+
line-height: 1.5rem;
|
43
|
+
border-radius: 0.375rem;
|
44
|
+
border-style: none;
|
45
|
+
background-color: #f3f4f6;
|
46
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
.pagy {
|
2
|
+
display: flex;
|
3
|
+
font-family: sans-serif;
|
4
|
+
font-size: 0.875rem;
|
5
|
+
line-height: 1.25rem;
|
6
|
+
font-weight: 600;
|
7
|
+
color: rgb(107 114 128);
|
8
|
+
& > :not([hidden]) ~ :not([hidden]) {
|
9
|
+
--space-reverse: 0;
|
10
|
+
margin-right: calc(0.25rem * var(--space-reverse));
|
11
|
+
margin-left: calc(0.25rem * calc(1 - var(--space-reverse)));
|
12
|
+
}
|
13
|
+
|
14
|
+
a:not(.gap) {
|
15
|
+
display: block;
|
16
|
+
text-decoration: none;
|
17
|
+
border-radius: 0.5rem;
|
18
|
+
background-color: rgb(229 231 235);
|
19
|
+
padding: 0.25rem 0.75rem;
|
20
|
+
color: inherit;
|
21
|
+
&:hover {
|
22
|
+
background-color: rgb(209 213 219);
|
23
|
+
}
|
24
|
+
&:not([href]) { /* disabled links */
|
25
|
+
cursor: default;
|
26
|
+
background-color: rgb(243 244 246);
|
27
|
+
color: rgb(209 213 219);
|
28
|
+
}
|
29
|
+
&.current {
|
30
|
+
background-color: rgb(156 163 175);
|
31
|
+
color: rgb(255 255 255);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
label {
|
36
|
+
white-space: nowrap;
|
37
|
+
display: inline-block;
|
38
|
+
border-radius: 0.5rem;
|
39
|
+
background-color: rgb(229 231 235);
|
40
|
+
padding: 0.125rem 0.75rem;
|
41
|
+
input {
|
42
|
+
line-height: 1.5rem;
|
43
|
+
border-radius: 0.375rem;
|
44
|
+
border-style: none;
|
45
|
+
background-color: rgb(243 244 246);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
.pagy {
|
2
|
+
@apply flex space-x-1 font-semibold text-sm text-gray-500;
|
3
|
+
a:not(.gap) {
|
4
|
+
@apply block rounded-lg px-3 py-1 bg-gray-200;
|
5
|
+
&:hover {
|
6
|
+
@apply bg-gray-300;
|
7
|
+
}
|
8
|
+
&:not([href]) { /* disabled links */
|
9
|
+
@apply text-gray-300 bg-gray-100 cursor-default;
|
10
|
+
}
|
11
|
+
&.current {
|
12
|
+
@apply text-white bg-gray-400;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
label {
|
16
|
+
@apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
|
17
|
+
input {
|
18
|
+
@apply bg-gray-100 border-none rounded-md;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|