diff --git a/Gemfile b/Gemfile index 8b799101eb..35badf7f11 100644 --- a/Gemfile +++ b/Gemfile @@ -30,7 +30,7 @@ gem 'octokit', '~> 8.1' gem 'omniauth-github', '~> 2.0.1' gem 'omniauth-google-oauth2', '~> 1.1.1' gem 'omniauth-rails_csrf_protection', '~> 1.0' -gem 'pagy', '~> 6.2' +gem 'pagy', '~> 9.0' gem 'pg', '~> 1.5' gem 'propshaft', '~> 0.9' gem 'public_activity', '~> 3.0' diff --git a/Gemfile.lock b/Gemfile.lock index 746920c70d..e44954cd16 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -344,7 +344,7 @@ GEM actionpack (>= 4.2) omniauth (~> 2.0) orm_adapter (0.5.0) - pagy (6.5.0) + pagy (9.0.5) parallel (1.26.1) parallel_tests (4.7.1) parallel @@ -631,7 +631,7 @@ DEPENDENCIES omniauth-github (~> 2.0.1) omniauth-google-oauth2 (~> 1.1.1) omniauth-rails_csrf_protection (~> 1.0) - pagy (~> 6.2) + pagy (~> 9.0) parallel_tests (~> 4.7) pg (~> 1.5) propshaft (~> 0.9) diff --git a/app/assets/stylesheets/application.tailwind.css b/app/assets/stylesheets/application.tailwind.css index 86b0f28ce9..a9d0419df5 100644 --- a/app/assets/stylesheets/application.tailwind.css +++ b/app/assets/stylesheets/application.tailwind.css @@ -9,7 +9,6 @@ @import './custom_styles/lesson-content.css'; @import './custom_styles/lesson-notes.css'; @import './custom_styles/prism-theme.css'; -@import './custom_styles/pagy.css'; @import './custom_styles/animations.css'; @import './custom_styles/static-pages.css'; @import './custom_styles/charts.css'; diff --git a/app/assets/stylesheets/custom_styles/pagy.css b/app/assets/stylesheets/custom_styles/pagy.css deleted file mode 100644 index 4a493295e9..0000000000 --- a/app/assets/stylesheets/custom_styles/pagy.css +++ /dev/null @@ -1,71 +0,0 @@ -.pagy-nav { - @apply flex space-x-2 my-8 mx-auto w-fit; -} - -.pagy-nav .page a, -.pagy-nav .page.active, -.pagy-nav .page.prev.disabled, -.pagy-nav .page.next.disabled, -.pagy-nav-js .page a, -.pagy-nav-js .page.active, -.pagy-nav-js .page.prev.disabled, -.pagy-nav-js .page.next.disabled { - @apply block px-3 py-1 text-gray-500 dark:text-gray-400 font-semibold; - - &:hover{ - @apply text-gray-700 dark:text-gray-200; - } - - &:active{ - @apply text-gray-700 dark:text-gray-200; - } -} - -.pagy-nav .page.prev.disabled, -.pagy-nav .page.next.disabled, -.pagy-nav-js .page.prev.disabled, -.pagy-nav-js .page.next.disabled { - @apply text-gray-400 dark:text-gray-700 first-letter:cursor-default; - - &:hover { - @apply text-gray-400 dark:text-gray-700; - } - - &:active { - @apply text-gray-400 dark:text-gray-700; - } -} - -.pagy-nav .page.active, -.pagy-nav-js .page.active { - @apply cursor-default text-gold-500 dark:text-gold-500; - - &:hover { - @apply text-gold-500 dark:text-gold-500; - } - - &:active { - @apply text-gold-500 dark:text-gold-500; - } -} - - -.pagy-combo-nav-js .pagy-combo-input { - @apply bg-white px-2 rounded-sm -} - -.pagy-combo-nav-js .page.prev, -.pagy-combo-nav-js .page.next { - &:hover { - @apply text-gray-800 dark:text-gray-200; - } - - &:active { - @apply text-gray-800 dark:text-gray-200; - } -} - -.pagy-combo-nav-js .page.prev.disabled, -.pagy-combo-nav-js .page.next.disabled { - @apply text-gray-400 cursor-default; -} diff --git a/app/components/admin/pagination_component.html.erb b/app/components/pagination_component.html.erb similarity index 90% rename from app/components/admin/pagination_component.html.erb rename to app/components/pagination_component.html.erb index 2a1075b4f0..43bc0137e2 100644 --- a/app/components/admin/pagination_component.html.erb +++ b/app/components/pagination_component.html.erb @@ -1,4 +1,4 @@ -