jav 2.55.4 → 2.56.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +60 -61
- data/Gemfile.lock +88 -80
- data/Rakefile +15 -15
- data/app/components/jav/paginator_component.html.erb +2 -2
- data/app/controllers/jav/base_controller.rb +36 -25
- data/app/helpers/jav/application_helper.rb +0 -2
- data/config/initializers/pagy.rb +15 -18
- data/jav.gemspec +32 -31
- data/lib/jav/concerns/pagination.rb +27 -16
- data/lib/jav/version.rb +1 -1
- metadata +33 -33
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2428201320eb1a4db194259a0960ef0a62fb4401155849bed70e6da43cf2c81c
|
|
4
|
+
data.tar.gz: c714123c018d565214b61e96ebbbfadbc5edc9f002e2f71f7c3fa9468a0bea9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c82b33b198e4e479be5a70dca802f61fc97522a1d32f8de96065dcb09b2183ed8d8c30f25a1d267ddd7d5929b36c2fc0e96842fc8e7d0bc9204fe5cc07aaecb
|
|
7
|
+
data.tar.gz: f3786912464fff13bc6cdd5b779588b0106fbe0695283b30584ca7f079dd0a418426f496b33b28dabc0d24384106677cf7d15e696966d808f454dd3d03e0b179
|
data/Gemfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
source
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
2
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
3
3
|
|
|
4
4
|
# Declare your gem's dependencies in jav.gemspec.
|
|
@@ -14,19 +14,19 @@ gemspec
|
|
|
14
14
|
# To use a debugger
|
|
15
15
|
# gem 'byebug', group: [:development, :test]
|
|
16
16
|
|
|
17
|
-
gem 'jsbundling-rails'
|
|
18
17
|
gem 'cssbundling-rails'
|
|
18
|
+
gem 'jsbundling-rails'
|
|
19
19
|
|
|
20
20
|
#
|
|
21
21
|
# Dependencies for dummy_app
|
|
22
22
|
#
|
|
23
23
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
|
24
|
-
gem
|
|
24
|
+
gem 'rails', '~> 8.0'
|
|
25
25
|
|
|
26
26
|
# Use postgresql as the database for Active Record
|
|
27
|
-
gem
|
|
27
|
+
gem 'pg', '>= 0.18', '< 2.0'
|
|
28
28
|
# Use Puma as the app server
|
|
29
|
-
gem
|
|
29
|
+
gem 'puma', '~> 5.6.4'
|
|
30
30
|
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
|
31
31
|
# gem "jbuilder", "~> 2.7"
|
|
32
32
|
# Use Redis adapter to run Action Cable in production
|
|
@@ -35,36 +35,36 @@ gem 'redis', '~> 4.0'
|
|
|
35
35
|
# gem 'bcrypt', '~> 3.1.7'
|
|
36
36
|
|
|
37
37
|
# Reduces boot times through caching; required in config/boot.rb
|
|
38
|
-
gem
|
|
38
|
+
gem 'bootsnap', '>= 1.4.2', require: false
|
|
39
39
|
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
|
40
|
-
gem
|
|
41
|
-
gem
|
|
40
|
+
gem 'byebug', platforms: %i[mri mingw x64_mingw]
|
|
41
|
+
gem 'dotenv-rails'
|
|
42
42
|
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
|
43
|
-
gem
|
|
44
|
-
gem
|
|
43
|
+
gem 'listen', '>= 3.5.1'
|
|
44
|
+
gem 'web-console', '>= 3.3.0'
|
|
45
45
|
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
|
46
|
-
gem
|
|
46
|
+
gem 'spring'
|
|
47
47
|
|
|
48
|
-
gem
|
|
48
|
+
gem 'factory_bot_rails'
|
|
49
49
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
|
50
|
-
gem
|
|
50
|
+
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
|
|
51
51
|
|
|
52
|
-
gem
|
|
53
|
-
gem
|
|
52
|
+
gem 'database_cleaner'
|
|
53
|
+
gem 'devise'
|
|
54
54
|
|
|
55
|
-
gem
|
|
55
|
+
gem 'ruby-debug-ide', require: false
|
|
56
56
|
#
|
|
57
57
|
# END Dependencies for dummy_app
|
|
58
58
|
#
|
|
59
59
|
|
|
60
60
|
group :development do
|
|
61
|
-
gem
|
|
61
|
+
gem 'standard'
|
|
62
62
|
|
|
63
63
|
# Release helper
|
|
64
|
-
gem
|
|
65
|
-
gem
|
|
64
|
+
gem 'bump', require: false
|
|
65
|
+
gem 'gem-release', require: false
|
|
66
66
|
|
|
67
|
-
gem
|
|
67
|
+
gem 'annotate'
|
|
68
68
|
|
|
69
69
|
# gem 'rack-mini-profiler'
|
|
70
70
|
# gem 'memory_profiler'
|
|
@@ -73,51 +73,50 @@ group :development do
|
|
|
73
73
|
|
|
74
74
|
# gem 'pry-rails'
|
|
75
75
|
|
|
76
|
-
gem
|
|
77
|
-
|
|
76
|
+
gem 'htmlbeautifier'
|
|
78
77
|
|
|
79
|
-
gem
|
|
78
|
+
gem 'brakeman'
|
|
80
79
|
end
|
|
81
80
|
|
|
82
|
-
gem
|
|
81
|
+
gem 'awesome_print'
|
|
83
82
|
|
|
84
83
|
group :development, :test do
|
|
85
|
-
gem
|
|
86
|
-
gem
|
|
84
|
+
gem 'faker', require: false
|
|
85
|
+
gem 'i18n-tasks', '~> 1.0.12'
|
|
87
86
|
end
|
|
88
87
|
|
|
89
88
|
group :test do
|
|
90
|
-
gem
|
|
91
|
-
gem
|
|
89
|
+
gem 'rails-controller-testing'
|
|
90
|
+
gem 'rspec-rails', '~> 4.0.0'
|
|
92
91
|
# Adds support for Capybara system testing and selenium driver
|
|
93
|
-
gem
|
|
94
|
-
gem
|
|
92
|
+
gem 'capybara'
|
|
93
|
+
gem 'selenium-webdriver'
|
|
95
94
|
# Easy installation and use of web drivers to run system tests with browsers
|
|
96
|
-
gem
|
|
97
|
-
gem
|
|
98
|
-
gem
|
|
99
|
-
gem
|
|
100
|
-
gem
|
|
101
|
-
gem
|
|
102
|
-
gem
|
|
103
|
-
|
|
104
|
-
gem
|
|
95
|
+
gem 'fuubar'
|
|
96
|
+
gem 'launchy', require: false
|
|
97
|
+
gem 'simplecov', require: false
|
|
98
|
+
gem 'simplecov-cobertura'
|
|
99
|
+
gem 'spring-commands-rspec'
|
|
100
|
+
gem 'webdrivers', '>= 5.3.0'
|
|
101
|
+
gem 'webmock'
|
|
102
|
+
|
|
103
|
+
gem 'test-prof'
|
|
105
104
|
end
|
|
106
105
|
|
|
107
|
-
gem
|
|
108
|
-
gem
|
|
106
|
+
gem 'rubocop'
|
|
107
|
+
gem 'rubocop-shopify', require: false
|
|
109
108
|
|
|
110
|
-
gem
|
|
109
|
+
gem 'zeitwerk'
|
|
111
110
|
|
|
112
|
-
gem
|
|
111
|
+
gem 'httparty'
|
|
113
112
|
|
|
114
|
-
gem
|
|
113
|
+
gem 'iso'
|
|
115
114
|
|
|
116
|
-
gem
|
|
115
|
+
gem 'active_link_to'
|
|
117
116
|
|
|
118
|
-
gem
|
|
117
|
+
gem 'addressable'
|
|
119
118
|
|
|
120
|
-
gem
|
|
119
|
+
gem 'appraisal'
|
|
121
120
|
|
|
122
121
|
gem 'meta-tags'
|
|
123
122
|
|
|
@@ -133,38 +132,38 @@ gem 'aws-sdk-s3', require: false
|
|
|
133
132
|
gem 'net-smtp', require: false
|
|
134
133
|
|
|
135
134
|
# Dashboard charts
|
|
136
|
-
gem
|
|
137
|
-
gem
|
|
138
|
-
gem
|
|
135
|
+
gem 'active_median'
|
|
136
|
+
gem 'groupdate'
|
|
137
|
+
gem 'hightop'
|
|
139
138
|
|
|
140
139
|
gem 'acts_as_list'
|
|
141
140
|
|
|
142
|
-
gem 'acts-as-taggable-on', '~>
|
|
141
|
+
gem 'acts-as-taggable-on', '~> 13.0'
|
|
143
142
|
|
|
144
|
-
gem
|
|
143
|
+
gem 'bundler-integrity', '~> 1.0'
|
|
145
144
|
|
|
146
145
|
gem 'erb-formatter'
|
|
147
146
|
|
|
148
147
|
# Jav authorization requires this gem
|
|
149
|
-
gem
|
|
148
|
+
gem 'pundit'
|
|
150
149
|
|
|
151
150
|
# Jav country field requires this gem
|
|
152
|
-
gem
|
|
151
|
+
gem 'countries'
|
|
153
152
|
|
|
154
153
|
# Jav dashbaords requires this gem
|
|
155
|
-
gem
|
|
154
|
+
gem 'chartkick'
|
|
156
155
|
|
|
157
156
|
# Jav file filed requires this gem
|
|
158
|
-
gem
|
|
157
|
+
gem 'activestorage'
|
|
159
158
|
# Required by Jav
|
|
160
|
-
gem
|
|
159
|
+
gem 'sprockets-rails'
|
|
161
160
|
|
|
162
161
|
# Jav file filed requires this gem
|
|
163
162
|
# Use Active Storage variant
|
|
164
|
-
gem
|
|
163
|
+
gem 'image_processing', '~> 1.12'
|
|
165
164
|
|
|
166
|
-
gem
|
|
165
|
+
gem 'prefixed_ids'
|
|
167
166
|
|
|
168
|
-
gem
|
|
167
|
+
gem 'mapkick-rb', '~> 0.1.4'
|
|
169
168
|
|
|
170
|
-
#gem "turbo_power", "~> 0.6.0"
|
|
169
|
+
# gem "turbo_power", "~> 0.6.0"
|
data/Gemfile.lock
CHANGED
|
@@ -1,47 +1,49 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
jav (2.
|
|
5
|
-
actionview (
|
|
6
|
-
active_link_to
|
|
7
|
-
activerecord (
|
|
8
|
-
addressable
|
|
9
|
-
docile
|
|
10
|
-
dry-initializer
|
|
11
|
-
httparty
|
|
12
|
-
inline_svg
|
|
13
|
-
meta-tags
|
|
14
|
-
pagy
|
|
15
|
-
turbo-rails (
|
|
16
|
-
view_component (
|
|
17
|
-
zeitwerk (
|
|
4
|
+
jav (2.56.0)
|
|
5
|
+
actionview (~> 8.1)
|
|
6
|
+
active_link_to (~> 1.0.5)
|
|
7
|
+
activerecord (~> 8.1)
|
|
8
|
+
addressable (~> 2.8.7)
|
|
9
|
+
docile (~> 1.4.1)
|
|
10
|
+
dry-initializer (~> 3.1.1)
|
|
11
|
+
httparty (~> 0.22.0)
|
|
12
|
+
inline_svg (~> 1.10.0)
|
|
13
|
+
meta-tags (~> 2.22.1)
|
|
14
|
+
pagy (~> 43.0)
|
|
15
|
+
turbo-rails (~> 2.0)
|
|
16
|
+
view_component (~> 4.1)
|
|
17
|
+
zeitwerk (~> 2.7.0)
|
|
18
18
|
|
|
19
19
|
GEM
|
|
20
20
|
remote: https://rubygems.org/
|
|
21
21
|
specs:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
action_text-trix (2.1.16)
|
|
23
|
+
railties
|
|
24
|
+
actioncable (8.1.1)
|
|
25
|
+
actionpack (= 8.1.1)
|
|
26
|
+
activesupport (= 8.1.1)
|
|
25
27
|
nio4r (~> 2.0)
|
|
26
28
|
websocket-driver (>= 0.6.1)
|
|
27
29
|
zeitwerk (~> 2.6)
|
|
28
|
-
actionmailbox (8.
|
|
29
|
-
actionpack (= 8.
|
|
30
|
-
activejob (= 8.
|
|
31
|
-
activerecord (= 8.
|
|
32
|
-
activestorage (= 8.
|
|
33
|
-
activesupport (= 8.
|
|
30
|
+
actionmailbox (8.1.1)
|
|
31
|
+
actionpack (= 8.1.1)
|
|
32
|
+
activejob (= 8.1.1)
|
|
33
|
+
activerecord (= 8.1.1)
|
|
34
|
+
activestorage (= 8.1.1)
|
|
35
|
+
activesupport (= 8.1.1)
|
|
34
36
|
mail (>= 2.8.0)
|
|
35
|
-
actionmailer (8.
|
|
36
|
-
actionpack (= 8.
|
|
37
|
-
actionview (= 8.
|
|
38
|
-
activejob (= 8.
|
|
39
|
-
activesupport (= 8.
|
|
37
|
+
actionmailer (8.1.1)
|
|
38
|
+
actionpack (= 8.1.1)
|
|
39
|
+
actionview (= 8.1.1)
|
|
40
|
+
activejob (= 8.1.1)
|
|
41
|
+
activesupport (= 8.1.1)
|
|
40
42
|
mail (>= 2.8.0)
|
|
41
43
|
rails-dom-testing (~> 2.2)
|
|
42
|
-
actionpack (8.
|
|
43
|
-
actionview (= 8.
|
|
44
|
-
activesupport (= 8.
|
|
44
|
+
actionpack (8.1.1)
|
|
45
|
+
actionview (= 8.1.1)
|
|
46
|
+
activesupport (= 8.1.1)
|
|
45
47
|
nokogiri (>= 1.8.5)
|
|
46
48
|
rack (>= 2.2.4)
|
|
47
49
|
rack-session (>= 1.0.1)
|
|
@@ -49,15 +51,16 @@ GEM
|
|
|
49
51
|
rails-dom-testing (~> 2.2)
|
|
50
52
|
rails-html-sanitizer (~> 1.6)
|
|
51
53
|
useragent (~> 0.16)
|
|
52
|
-
actiontext (8.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
actiontext (8.1.1)
|
|
55
|
+
action_text-trix (~> 2.1.15)
|
|
56
|
+
actionpack (= 8.1.1)
|
|
57
|
+
activerecord (= 8.1.1)
|
|
58
|
+
activestorage (= 8.1.1)
|
|
59
|
+
activesupport (= 8.1.1)
|
|
57
60
|
globalid (>= 0.6.0)
|
|
58
61
|
nokogiri (>= 1.8.5)
|
|
59
|
-
actionview (8.
|
|
60
|
-
activesupport (= 8.
|
|
62
|
+
actionview (8.1.1)
|
|
63
|
+
activesupport (= 8.1.1)
|
|
61
64
|
builder (~> 3.1)
|
|
62
65
|
erubi (~> 1.11)
|
|
63
66
|
rails-dom-testing (~> 2.2)
|
|
@@ -67,36 +70,36 @@ GEM
|
|
|
67
70
|
addressable
|
|
68
71
|
active_median (0.4.1)
|
|
69
72
|
activesupport (>= 6.1)
|
|
70
|
-
activejob (8.
|
|
71
|
-
activesupport (= 8.
|
|
73
|
+
activejob (8.1.1)
|
|
74
|
+
activesupport (= 8.1.1)
|
|
72
75
|
globalid (>= 0.3.6)
|
|
73
|
-
activemodel (8.
|
|
74
|
-
activesupport (= 8.
|
|
75
|
-
activerecord (8.
|
|
76
|
-
activemodel (= 8.
|
|
77
|
-
activesupport (= 8.
|
|
76
|
+
activemodel (8.1.1)
|
|
77
|
+
activesupport (= 8.1.1)
|
|
78
|
+
activerecord (8.1.1)
|
|
79
|
+
activemodel (= 8.1.1)
|
|
80
|
+
activesupport (= 8.1.1)
|
|
78
81
|
timeout (>= 0.4.0)
|
|
79
|
-
activestorage (8.
|
|
80
|
-
actionpack (= 8.
|
|
81
|
-
activejob (= 8.
|
|
82
|
-
activerecord (= 8.
|
|
83
|
-
activesupport (= 8.
|
|
82
|
+
activestorage (8.1.1)
|
|
83
|
+
actionpack (= 8.1.1)
|
|
84
|
+
activejob (= 8.1.1)
|
|
85
|
+
activerecord (= 8.1.1)
|
|
86
|
+
activesupport (= 8.1.1)
|
|
84
87
|
marcel (~> 1.0)
|
|
85
|
-
activesupport (8.
|
|
88
|
+
activesupport (8.1.1)
|
|
86
89
|
base64
|
|
87
|
-
benchmark (>= 0.3)
|
|
88
90
|
bigdecimal
|
|
89
91
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
90
92
|
connection_pool (>= 2.2.5)
|
|
91
93
|
drb
|
|
92
94
|
i18n (>= 1.6, < 2)
|
|
95
|
+
json
|
|
93
96
|
logger (>= 1.4.2)
|
|
94
97
|
minitest (>= 5.1)
|
|
95
98
|
securerandom (>= 0.3)
|
|
96
99
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
97
100
|
uri (>= 0.13.1)
|
|
98
|
-
acts-as-taggable-on (
|
|
99
|
-
activerecord (>= 7.1, < 8.
|
|
101
|
+
acts-as-taggable-on (13.0.0)
|
|
102
|
+
activerecord (>= 7.1, < 8.2)
|
|
100
103
|
zeitwerk (>= 2.4, < 3.0)
|
|
101
104
|
acts_as_list (1.2.4)
|
|
102
105
|
activerecord (>= 6.1)
|
|
@@ -130,7 +133,6 @@ GEM
|
|
|
130
133
|
aws-eventstream (~> 1, >= 1.0.2)
|
|
131
134
|
base64 (0.2.0)
|
|
132
135
|
bcrypt (3.1.20)
|
|
133
|
-
benchmark (0.4.0)
|
|
134
136
|
bigdecimal (3.1.9)
|
|
135
137
|
bindex (0.8.1)
|
|
136
138
|
bootsnap (1.18.4)
|
|
@@ -269,9 +271,8 @@ GEM
|
|
|
269
271
|
mapkick-rb (0.1.5)
|
|
270
272
|
marcel (1.0.4)
|
|
271
273
|
matrix (0.4.2)
|
|
272
|
-
meta-tags (2.22.
|
|
273
|
-
actionpack (>= 6.0.0, < 8.
|
|
274
|
-
method_source (1.1.0)
|
|
274
|
+
meta-tags (2.22.2)
|
|
275
|
+
actionpack (>= 6.0.0, < 8.2)
|
|
275
276
|
mini_magick (4.13.2)
|
|
276
277
|
mini_mime (1.1.5)
|
|
277
278
|
mini_portile2 (2.8.8)
|
|
@@ -295,7 +296,10 @@ GEM
|
|
|
295
296
|
nokogiri (1.18.0-x86_64-linux-gnu)
|
|
296
297
|
racc (~> 1.4)
|
|
297
298
|
orm_adapter (0.5.0)
|
|
298
|
-
|
|
299
|
+
ostruct (0.6.3)
|
|
300
|
+
pagy (43.2.2)
|
|
301
|
+
json
|
|
302
|
+
yaml
|
|
299
303
|
parallel (1.26.3)
|
|
300
304
|
parser (3.3.6.0)
|
|
301
305
|
ast (~> 2.4.1)
|
|
@@ -322,20 +326,20 @@ GEM
|
|
|
322
326
|
rackup (1.0.1)
|
|
323
327
|
rack (< 3)
|
|
324
328
|
webrick
|
|
325
|
-
rails (8.
|
|
326
|
-
actioncable (= 8.
|
|
327
|
-
actionmailbox (= 8.
|
|
328
|
-
actionmailer (= 8.
|
|
329
|
-
actionpack (= 8.
|
|
330
|
-
actiontext (= 8.
|
|
331
|
-
actionview (= 8.
|
|
332
|
-
activejob (= 8.
|
|
333
|
-
activemodel (= 8.
|
|
334
|
-
activerecord (= 8.
|
|
335
|
-
activestorage (= 8.
|
|
336
|
-
activesupport (= 8.
|
|
329
|
+
rails (8.1.1)
|
|
330
|
+
actioncable (= 8.1.1)
|
|
331
|
+
actionmailbox (= 8.1.1)
|
|
332
|
+
actionmailer (= 8.1.1)
|
|
333
|
+
actionpack (= 8.1.1)
|
|
334
|
+
actiontext (= 8.1.1)
|
|
335
|
+
actionview (= 8.1.1)
|
|
336
|
+
activejob (= 8.1.1)
|
|
337
|
+
activemodel (= 8.1.1)
|
|
338
|
+
activerecord (= 8.1.1)
|
|
339
|
+
activestorage (= 8.1.1)
|
|
340
|
+
activesupport (= 8.1.1)
|
|
337
341
|
bundler (>= 1.15.0)
|
|
338
|
-
railties (= 8.
|
|
342
|
+
railties (= 8.1.1)
|
|
339
343
|
rails-controller-testing (1.0.5)
|
|
340
344
|
actionpack (>= 5.0.1.rc1)
|
|
341
345
|
actionview (>= 5.0.1.rc1)
|
|
@@ -350,13 +354,14 @@ GEM
|
|
|
350
354
|
rails-i18n (8.0.1)
|
|
351
355
|
i18n (>= 0.7, < 2)
|
|
352
356
|
railties (>= 8.0.0, < 9)
|
|
353
|
-
railties (8.
|
|
354
|
-
actionpack (= 8.
|
|
355
|
-
activesupport (= 8.
|
|
357
|
+
railties (8.1.1)
|
|
358
|
+
actionpack (= 8.1.1)
|
|
359
|
+
activesupport (= 8.1.1)
|
|
356
360
|
irb (~> 1.13)
|
|
357
361
|
rackup (>= 1.0.0)
|
|
358
362
|
rake (>= 12.2)
|
|
359
363
|
thor (~> 1.0, >= 1.2.2)
|
|
364
|
+
tsort (>= 0.2)
|
|
360
365
|
zeitwerk (~> 2.6)
|
|
361
366
|
rainbow (3.1.1)
|
|
362
367
|
rake (13.2.1)
|
|
@@ -462,6 +467,7 @@ GEM
|
|
|
462
467
|
test-prof (1.4.3)
|
|
463
468
|
thor (1.3.2)
|
|
464
469
|
timeout (0.4.3)
|
|
470
|
+
tsort (0.2.0)
|
|
465
471
|
turbo-rails (2.0.11)
|
|
466
472
|
actionpack (>= 6.0.0)
|
|
467
473
|
railties (>= 6.0.0)
|
|
@@ -471,10 +477,10 @@ GEM
|
|
|
471
477
|
unicode-display_width (2.6.0)
|
|
472
478
|
uri (1.0.2)
|
|
473
479
|
useragent (0.16.11)
|
|
474
|
-
view_component (
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
480
|
+
view_component (4.1.1)
|
|
481
|
+
actionview (>= 7.1.0, < 8.2)
|
|
482
|
+
activesupport (>= 7.1.0, < 8.2)
|
|
483
|
+
concurrent-ruby (~> 1)
|
|
478
484
|
warden (1.2.9)
|
|
479
485
|
rack (>= 2.0.9)
|
|
480
486
|
web-console (4.2.1)
|
|
@@ -497,6 +503,7 @@ GEM
|
|
|
497
503
|
websocket-extensions (0.1.5)
|
|
498
504
|
xpath (3.2.0)
|
|
499
505
|
nokogiri (~> 1.8)
|
|
506
|
+
yaml (0.4.0)
|
|
500
507
|
zeitwerk (2.7.1)
|
|
501
508
|
|
|
502
509
|
PLATFORMS
|
|
@@ -507,7 +514,7 @@ DEPENDENCIES
|
|
|
507
514
|
active_link_to
|
|
508
515
|
active_median
|
|
509
516
|
activestorage
|
|
510
|
-
acts-as-taggable-on (~>
|
|
517
|
+
acts-as-taggable-on (~> 13.0)
|
|
511
518
|
acts_as_list
|
|
512
519
|
addressable
|
|
513
520
|
annotate
|
|
@@ -547,6 +554,7 @@ DEPENDENCIES
|
|
|
547
554
|
mapkick-rb (~> 0.1.4)
|
|
548
555
|
meta-tags
|
|
549
556
|
net-smtp
|
|
557
|
+
ostruct
|
|
550
558
|
pg (>= 0.18, < 2.0)
|
|
551
559
|
prefixed_ids
|
|
552
560
|
puma (~> 5.6.4)
|
data/Rakefile
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
begin
|
|
2
|
-
require
|
|
2
|
+
require 'bundler/setup'
|
|
3
3
|
rescue LoadError
|
|
4
|
-
puts
|
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
|
5
5
|
end
|
|
6
6
|
|
|
7
|
-
require
|
|
7
|
+
require 'rdoc/task'
|
|
8
8
|
|
|
9
9
|
RDoc::Task.new(:rdoc) do |rdoc|
|
|
10
|
-
rdoc.rdoc_dir =
|
|
11
|
-
rdoc.title =
|
|
12
|
-
rdoc.options <<
|
|
13
|
-
rdoc.rdoc_files.include(
|
|
14
|
-
rdoc.rdoc_files.include(
|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
|
11
|
+
rdoc.title = 'Jav'
|
|
12
|
+
rdoc.options << '--line-numbers'
|
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
APP_RAKEFILE = File.expand_path(
|
|
18
|
-
load
|
|
17
|
+
APP_RAKEFILE = File.expand_path('spec/dummy/Rakefile', __dir__)
|
|
18
|
+
load 'rails/tasks/engine.rake'
|
|
19
19
|
|
|
20
|
-
load "rails/tasks/statistics.rake"
|
|
20
|
+
# load "rails/tasks/statistics.rake"
|
|
21
21
|
|
|
22
|
-
require
|
|
22
|
+
require 'bundler/gem_tasks'
|
|
23
23
|
|
|
24
|
-
require
|
|
24
|
+
require 'rake/testtask'
|
|
25
25
|
|
|
26
26
|
Rake::TestTask.new(:test) do |t|
|
|
27
|
-
t.libs <<
|
|
28
|
-
t.pattern =
|
|
27
|
+
t.libs << 'test'
|
|
28
|
+
t.pattern = 'test/**/*_test.rb'
|
|
29
29
|
t.verbose = false
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
<div class="flex">
|
|
25
25
|
<div class="flex-2 sm:flex sm:items-center sm:justify-between space-y-2 sm:space-y-0 text-center sm:text-left">
|
|
26
26
|
<% if @resource.pagination_type.default? %>
|
|
27
|
-
<div class="text-sm text-slate-600 mr-4"><%==
|
|
27
|
+
<div class="text-sm text-slate-600 mr-4"><%== @pagy.info_tag %></div>
|
|
28
28
|
<% end %>
|
|
29
29
|
|
|
30
30
|
<% if pagy.pages > 1 %>
|
|
31
31
|
<%# @todo: add first & last page. make the first and last buttons rounded-sm %>
|
|
32
|
-
<%==
|
|
32
|
+
<%== @pagy.series_nav %>
|
|
33
33
|
<% end %>
|
|
34
34
|
</div>
|
|
35
35
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require_dependency
|
|
1
|
+
require_dependency 'jav/application_controller'
|
|
2
2
|
|
|
3
3
|
module Jav
|
|
4
4
|
class BaseController < ApplicationController
|
|
@@ -13,7 +13,7 @@ module Jav
|
|
|
13
13
|
before_action :set_edit_title_and_breadcrumbs, only: %i[edit update]
|
|
14
14
|
before_action :fill_model, only: %i[create update]
|
|
15
15
|
# Don't run base authorizations for associations
|
|
16
|
-
before_action :authorize_base_action, if: -> { controller_name !=
|
|
16
|
+
before_action :authorize_base_action, if: -> { controller_name != 'associations' }
|
|
17
17
|
before_action :set_pagy_locale, only: :index
|
|
18
18
|
|
|
19
19
|
def index
|
|
@@ -51,7 +51,7 @@ module Jav
|
|
|
51
51
|
@query.order("#{@resource.model_class.table_name}.#{sort_by} #{sanitized_sort_direction}")
|
|
52
52
|
# Transform Model to ActiveRecord::Relation because Jav expects one.
|
|
53
53
|
else
|
|
54
|
-
@query.where(
|
|
54
|
+
@query.where('1=1')
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
57
|
|
|
@@ -90,7 +90,7 @@ module Jav
|
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
add_breadcrumb @resource.model_title
|
|
93
|
-
add_breadcrumb I18n.t(
|
|
93
|
+
add_breadcrumb I18n.t('jav.details').upcase_first
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
def new
|
|
@@ -98,7 +98,10 @@ module Jav
|
|
|
98
98
|
@resource = @resource.hydrate(model: @model, view: :new, user: _current_user)
|
|
99
99
|
|
|
100
100
|
# Handle special cases when creating a new record via a belongs_to relationship
|
|
101
|
-
|
|
101
|
+
if params[:via_belongs_to_resource_class].present?
|
|
102
|
+
return render turbo_stream: turbo_stream.append('attach_modal',
|
|
103
|
+
partial: 'jav/base/new_via_belongs_to')
|
|
104
|
+
end
|
|
102
105
|
|
|
103
106
|
set_actions
|
|
104
107
|
|
|
@@ -114,7 +117,7 @@ module Jav
|
|
|
114
117
|
end
|
|
115
118
|
|
|
116
119
|
add_breadcrumb @resource.plural_name.humanize, resources_path(resource: @resource)
|
|
117
|
-
add_breadcrumb t(
|
|
120
|
+
add_breadcrumb t('jav.new').humanize
|
|
118
121
|
end
|
|
119
122
|
|
|
120
123
|
def edit
|
|
@@ -148,7 +151,7 @@ module Jav
|
|
|
148
151
|
@related_record = via_resource.find_record params[:via_resource_id], params: params
|
|
149
152
|
association_name = BaseResource.valid_association_name(@model, params[:via_relation])
|
|
150
153
|
|
|
151
|
-
if params[:via_association_type] ==
|
|
154
|
+
if params[:via_association_type] == 'has_one'
|
|
152
155
|
# On has_one scenarios we should switch the @record and @related_record
|
|
153
156
|
@related_record.send(:"#{@reflection.parent_reflection.inverse_of.name}=", @model)
|
|
154
157
|
else
|
|
@@ -158,7 +161,7 @@ module Jav
|
|
|
158
161
|
end
|
|
159
162
|
|
|
160
163
|
add_breadcrumb @resource.plural_name.humanize, resources_path(resource: @resource)
|
|
161
|
-
add_breadcrumb t(
|
|
164
|
+
add_breadcrumb t('jav.new').humanize
|
|
162
165
|
set_actions
|
|
163
166
|
|
|
164
167
|
if saved
|
|
@@ -229,15 +232,17 @@ module Jav
|
|
|
229
232
|
def perform_action_and_record_errors(&block)
|
|
230
233
|
begin
|
|
231
234
|
succeeded = yield
|
|
232
|
-
rescue StandardError =>
|
|
235
|
+
rescue StandardError => e
|
|
233
236
|
# In case there's an error somewhere else than the model
|
|
234
237
|
# Example: When you save a license that should create a user for it and creating that user throws and error.
|
|
235
238
|
# Example: When you Try to delete a record and has a foreign key constraint.
|
|
236
|
-
exception_message =
|
|
239
|
+
exception_message = e.message
|
|
237
240
|
end
|
|
238
241
|
|
|
239
242
|
# Add the errors from the model
|
|
240
|
-
@errors = @model.errors.full_messages.reject
|
|
243
|
+
@errors = @model.errors.full_messages.reject do |error|
|
|
244
|
+
exception_message.include? error
|
|
245
|
+
end.unshift exception_message
|
|
241
246
|
|
|
242
247
|
succeeded
|
|
243
248
|
end
|
|
@@ -296,14 +301,15 @@ module Jav
|
|
|
296
301
|
# Sorting
|
|
297
302
|
if params[:sort_by].present?
|
|
298
303
|
@index_params[:sort_by] = params[:sort_by]
|
|
299
|
-
elsif @resource.model_class.present? && @resource.model_class.column_names.include?(
|
|
304
|
+
elsif @resource.model_class.present? && @resource.model_class.column_names.include?('created_at')
|
|
300
305
|
@index_params[:sort_by] = :created_at
|
|
301
306
|
end
|
|
302
307
|
|
|
303
308
|
@index_params[:sort_direction] = params[:sort_direction] || :desc
|
|
304
309
|
|
|
305
310
|
# View types
|
|
306
|
-
@index_params[:view_type] =
|
|
311
|
+
@index_params[:view_type] =
|
|
312
|
+
params[:view_type] || @resource.default_view_type || Jav.configuration.default_view_type
|
|
307
313
|
@index_params[:available_view_types] = @resource.available_view_types
|
|
308
314
|
end
|
|
309
315
|
|
|
@@ -380,7 +386,9 @@ module Jav
|
|
|
380
386
|
via_resource.hydrate model: via_model
|
|
381
387
|
|
|
382
388
|
add_breadcrumb via_resource.plural_name, resources_path(resource: via_resource)
|
|
383
|
-
add_breadcrumb via_resource.model_title,
|
|
389
|
+
add_breadcrumb via_resource.model_title,
|
|
390
|
+
resource_path(model: via_model, resource: via_resource,
|
|
391
|
+
active_tab_name: params[:active_tab_name])
|
|
384
392
|
|
|
385
393
|
last_crumb_args = {
|
|
386
394
|
via_resource_class: params[:via_resource_class],
|
|
@@ -390,12 +398,13 @@ module Jav
|
|
|
390
398
|
add_breadcrumb @resource.plural_name.humanize, resources_path(resource: @resource)
|
|
391
399
|
end
|
|
392
400
|
|
|
393
|
-
add_breadcrumb @resource.model_title,
|
|
394
|
-
|
|
401
|
+
add_breadcrumb @resource.model_title,
|
|
402
|
+
resource_path(model: @resource.model, resource: @resource, **last_crumb_args)
|
|
403
|
+
add_breadcrumb t('jav.edit').humanize
|
|
395
404
|
end
|
|
396
405
|
|
|
397
406
|
def create_success_action
|
|
398
|
-
return render
|
|
407
|
+
return render 'close_modal_and_reload_field' if params[:via_belongs_to_resource_class].present?
|
|
399
408
|
|
|
400
409
|
respond_to do |format|
|
|
401
410
|
format.html { redirect_to after_create_path, notice: create_success_message }
|
|
@@ -407,7 +416,7 @@ module Jav
|
|
|
407
416
|
|
|
408
417
|
respond_to do |format|
|
|
409
418
|
format.html { render :new, status: :unprocessable_entity }
|
|
410
|
-
format.turbo_stream { render
|
|
419
|
+
format.turbo_stream { render 'create_fail_action' }
|
|
411
420
|
end
|
|
412
421
|
end
|
|
413
422
|
|
|
@@ -416,7 +425,7 @@ module Jav
|
|
|
416
425
|
end
|
|
417
426
|
|
|
418
427
|
def create_fail_message
|
|
419
|
-
t
|
|
428
|
+
t 'jav.you_missed_something_check_form'
|
|
420
429
|
end
|
|
421
430
|
|
|
422
431
|
def after_create_path
|
|
@@ -453,7 +462,7 @@ module Jav
|
|
|
453
462
|
end
|
|
454
463
|
|
|
455
464
|
def update_fail_message
|
|
456
|
-
t
|
|
465
|
+
t 'jav.you_missed_something_check_form'
|
|
457
466
|
end
|
|
458
467
|
|
|
459
468
|
def after_update_path
|
|
@@ -477,20 +486,21 @@ module Jav
|
|
|
477
486
|
flash.now[:error] = destroy_fail_message
|
|
478
487
|
|
|
479
488
|
respond_to do |format|
|
|
480
|
-
format.turbo_stream { render partial:
|
|
489
|
+
format.turbo_stream { render partial: 'jav/partials/flash_alerts' }
|
|
481
490
|
end
|
|
482
491
|
end
|
|
483
492
|
|
|
484
493
|
def destroy_success_message
|
|
485
|
-
t(
|
|
494
|
+
t('jav.resource_destroyed', attachment_class: @attachment_class)
|
|
486
495
|
end
|
|
487
496
|
|
|
488
497
|
def destroy_fail_message
|
|
489
|
-
@errors.present? ? @errors.join(
|
|
498
|
+
@errors.present? ? @errors.join('. ') : t('jav.failed')
|
|
490
499
|
end
|
|
491
500
|
|
|
492
501
|
def after_destroy_path
|
|
493
|
-
params[:referrer] || resources_path(resource: @resource, turbo_frame: params[:turbo_frame],
|
|
502
|
+
params[:referrer] || resources_path(resource: @resource, turbo_frame: params[:turbo_frame],
|
|
503
|
+
view_type: params[:view_type])
|
|
494
504
|
end
|
|
495
505
|
|
|
496
506
|
def redirect_path_from_resource_option(action = :after_update_path)
|
|
@@ -511,7 +521,8 @@ module Jav
|
|
|
511
521
|
|
|
512
522
|
# Set pagy locale from params or from jav configuration, if both nil locale = "en"
|
|
513
523
|
def set_pagy_locale
|
|
514
|
-
|
|
524
|
+
pagy_locale = (locale || Jav.configuration.locale || 'en').to_s
|
|
525
|
+
Pagy.const_set(:I18n, pagy_locale)
|
|
515
526
|
end
|
|
516
527
|
|
|
517
528
|
def apply_pagination
|
data/config/initializers/pagy.rb
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
require "pagy/extras/trim"
|
|
2
|
-
require "pagy/extras/countless"
|
|
3
|
-
|
|
4
1
|
# For locales without native pagy i18n support
|
|
5
|
-
def pagy_locale_path(file_name)
|
|
6
|
-
|
|
7
|
-
end
|
|
2
|
+
# def pagy_locale_path(file_name)
|
|
3
|
+
# Jav::Engine.root.join("lib", "generators", "jav", "templates", "locales", "pagy", file_name)
|
|
4
|
+
# end
|
|
8
5
|
|
|
9
|
-
extra_locales = [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
]
|
|
6
|
+
# extra_locales = [
|
|
7
|
+
# {locale: "en"},
|
|
8
|
+
# {locale: "es"},
|
|
9
|
+
# {locale: "fr"},
|
|
10
|
+
# {locale: "nb"},
|
|
11
|
+
# {locale: "pt-BR"},
|
|
12
|
+
# {locale: "pt"},
|
|
13
|
+
# {locale: "tr"},
|
|
14
|
+
# {locale: "nn", filepath: pagy_locale_path("nn.yml")},
|
|
15
|
+
# {locale: "ro", filepath: pagy_locale_path("ro.yml")}
|
|
16
|
+
# ]
|
|
20
17
|
|
|
21
|
-
Pagy::I18n.send(:build, *extra_locales)
|
|
18
|
+
# Pagy::I18n.send(:build, *extra_locales)
|
data/jav.gemspec
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
$:.push File.expand_path(
|
|
1
|
+
$:.push File.expand_path('lib', __dir__)
|
|
2
2
|
|
|
3
3
|
# Maintain your gem's version:
|
|
4
|
-
require
|
|
4
|
+
require 'jav/version'
|
|
5
5
|
|
|
6
6
|
# Describe your gem and declare its dependencies:
|
|
7
7
|
Gem::Specification.new do |spec|
|
|
8
|
-
spec.name =
|
|
8
|
+
spec.name = 'jav'
|
|
9
9
|
spec.version = Jav::VERSION
|
|
10
|
-
spec.authors = [
|
|
11
|
-
spec.email = [
|
|
12
|
-
spec.homepage =
|
|
13
|
-
spec.summary =
|
|
14
|
-
spec.description =
|
|
15
|
-
spec.license =
|
|
10
|
+
spec.authors = ['javy_liu']
|
|
11
|
+
spec.email = ['javy_liu@163.com']
|
|
12
|
+
spec.homepage = 'https://github.com/javyliu/jav'
|
|
13
|
+
spec.summary = 'Admin panel framework and Content Management System for Ruby on Rails.'
|
|
14
|
+
spec.description = 'Jav is a very custom Content Management System for Ruby on Rails that saves development time by building user interfaces and logic using configuration rather than traditional coding; When configuration is not enough, you can fallback to familiar Ruby on Rails code.'
|
|
15
|
+
spec.license = 'MIT'
|
|
16
16
|
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
|
18
18
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
|
19
19
|
if spec.respond_to?(:metadata)
|
|
20
|
-
spec.metadata[
|
|
21
|
-
spec.metadata[
|
|
22
|
-
spec.metadata[
|
|
23
|
-
spec.metadata[
|
|
20
|
+
spec.metadata['bug_tracker_uri'] = 'https://github.com/javyliu/jav/issues'
|
|
21
|
+
spec.metadata['changelog_uri'] = 'https://github.com/javyliu/jav/releases'
|
|
22
|
+
spec.metadata['homepage_uri'] = 'https://github.com/javyliu/jav'
|
|
23
|
+
spec.metadata['source_code_uri'] = 'https://github.com/javyliu/jav'
|
|
24
24
|
else
|
|
25
|
-
raise
|
|
26
|
-
|
|
25
|
+
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
|
26
|
+
'public gem pushes.'
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
spec.required_ruby_version =
|
|
30
|
-
spec.post_install_message =
|
|
29
|
+
spec.required_ruby_version = '>= 2.6.0'
|
|
30
|
+
spec.post_install_message = 'Thank you for using Jav '
|
|
31
31
|
|
|
32
|
-
spec.files = Dir[
|
|
32
|
+
spec.files = Dir['{bin,app,config,db,lib,public}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.md', 'jav.gemspec',
|
|
33
|
+
'Gemfile', 'Gemfile.lock']
|
|
33
34
|
|
|
34
|
-
spec.add_dependency
|
|
35
|
-
spec.add_dependency
|
|
36
|
-
spec.add_dependency
|
|
37
|
-
spec.add_dependency
|
|
38
|
-
spec.add_dependency
|
|
39
|
-
spec.add_dependency
|
|
40
|
-
spec.add_dependency
|
|
41
|
-
spec.add_dependency
|
|
35
|
+
spec.add_dependency 'actionview', '~> 8.1'
|
|
36
|
+
spec.add_dependency 'active_link_to', '~>1.0.5'
|
|
37
|
+
spec.add_dependency 'activerecord', '~> 8.1'
|
|
38
|
+
spec.add_dependency 'httparty', '~>0.22.0'
|
|
39
|
+
spec.add_dependency 'pagy', '~> 43.0'
|
|
40
|
+
spec.add_dependency 'turbo-rails', '~> 2.0'
|
|
41
|
+
spec.add_dependency 'view_component', '~> 4.1'
|
|
42
|
+
spec.add_dependency 'zeitwerk', '~> 2.7.0'
|
|
42
43
|
# spec.add_dependency "turbo_power", "~> 0.6.0"
|
|
43
|
-
spec.add_dependency
|
|
44
|
-
spec.add_dependency
|
|
45
|
-
spec.add_dependency
|
|
46
|
-
spec.add_dependency
|
|
47
|
-
spec.add_dependency
|
|
44
|
+
spec.add_dependency 'addressable', '~>2.8.7'
|
|
45
|
+
spec.add_dependency 'docile', '~>1.4.1'
|
|
46
|
+
spec.add_dependency 'dry-initializer', '~>3.1.1'
|
|
47
|
+
spec.add_dependency 'inline_svg', '~>1.10.0'
|
|
48
|
+
spec.add_dependency 'meta-tags', '~>2.22.1'
|
|
48
49
|
end
|
|
@@ -4,21 +4,21 @@ module Jav
|
|
|
4
4
|
extend ActiveSupport::Concern
|
|
5
5
|
|
|
6
6
|
included do
|
|
7
|
-
include Pagy::
|
|
7
|
+
include Pagy::Method
|
|
8
8
|
|
|
9
9
|
class_attribute :pagination, default: {}
|
|
10
10
|
|
|
11
|
-
unless defined? PAGINATION_METHOD
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
end
|
|
11
|
+
# unless defined? PAGINATION_METHOD
|
|
12
|
+
# PAGINATION_METHOD = {
|
|
13
|
+
# default: :pagy,
|
|
14
|
+
# countless: :pagy_countless
|
|
15
|
+
# }
|
|
16
|
+
# end
|
|
17
17
|
|
|
18
18
|
unless defined? PAGINATION_DEFAULTS
|
|
19
19
|
PAGINATION_DEFAULTS = {
|
|
20
20
|
type: :default,
|
|
21
|
-
|
|
21
|
+
slots: 7
|
|
22
22
|
}
|
|
23
23
|
end
|
|
24
24
|
end
|
|
@@ -31,14 +31,25 @@ module Jav
|
|
|
31
31
|
extra_pagy_params = {}
|
|
32
32
|
|
|
33
33
|
# Reset open filters when a user navigates to a new page
|
|
34
|
-
extra_pagy_params[:keep_filters_panel_open] = (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
extra_pagy_params[:keep_filters_panel_open] = ('0' if params[:keep_filters_panel_open] == '1')
|
|
35
|
+
|
|
36
|
+
case PAGINATION_METHOD[pagination_type.to_sym]
|
|
37
|
+
when :pagy_countless
|
|
38
|
+
send pagy,
|
|
39
|
+
:countless,
|
|
40
|
+
query,
|
|
41
|
+
limit: index_params[:per_page],
|
|
42
|
+
anchor_string: "data-turbo-frame=\"#{params[:turbo_frame]}\"",
|
|
43
|
+
querify: ->(p) { p.merge! extra_pagy_params },
|
|
44
|
+
slots: pagination_hash[:slots]
|
|
45
|
+
else
|
|
46
|
+
send pagy,
|
|
47
|
+
query,
|
|
48
|
+
limit: index_params[:per_page],
|
|
49
|
+
anchor_string: "data-turbo-frame=\"#{params[:turbo_frame]}\"",
|
|
50
|
+
querify: ->(p) { p.merge! extra_pagy_params },
|
|
51
|
+
slots: pagination_hash[:slots]
|
|
52
|
+
end
|
|
42
53
|
end
|
|
43
54
|
|
|
44
55
|
private
|
data/lib/jav/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jav
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.56.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- javy_liu
|
|
@@ -10,117 +10,117 @@ cert_chain: []
|
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
|
-
name:
|
|
13
|
+
name: actionview
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '8.
|
|
18
|
+
version: '8.1'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '8.
|
|
25
|
+
version: '8.1'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
|
-
name:
|
|
27
|
+
name: active_link_to
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version:
|
|
32
|
+
version: 1.0.5
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version:
|
|
39
|
+
version: 1.0.5
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
|
-
name:
|
|
41
|
+
name: activerecord
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
46
|
+
version: '8.1'
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
53
|
+
version: '8.1'
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
|
-
name:
|
|
55
|
+
name: httparty
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version:
|
|
60
|
+
version: 0.22.0
|
|
61
61
|
type: :runtime
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - "~>"
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version:
|
|
67
|
+
version: 0.22.0
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
|
-
name:
|
|
69
|
+
name: pagy
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - "~>"
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version:
|
|
74
|
+
version: '43.0'
|
|
75
75
|
type: :runtime
|
|
76
76
|
prerelease: false
|
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
79
|
- - "~>"
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version:
|
|
81
|
+
version: '43.0'
|
|
82
82
|
- !ruby/object:Gem::Dependency
|
|
83
|
-
name:
|
|
83
|
+
name: turbo-rails
|
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
|
86
86
|
- - "~>"
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
|
-
version:
|
|
88
|
+
version: '2.0'
|
|
89
89
|
type: :runtime
|
|
90
90
|
prerelease: false
|
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
|
93
93
|
- - "~>"
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version:
|
|
95
|
+
version: '2.0'
|
|
96
96
|
- !ruby/object:Gem::Dependency
|
|
97
97
|
name: view_component
|
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version:
|
|
102
|
+
version: '4.1'
|
|
103
103
|
type: :runtime
|
|
104
104
|
prerelease: false
|
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - "~>"
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version:
|
|
109
|
+
version: '4.1'
|
|
110
110
|
- !ruby/object:Gem::Dependency
|
|
111
|
-
name:
|
|
111
|
+
name: zeitwerk
|
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
|
114
114
|
- - "~>"
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: 2.0
|
|
116
|
+
version: 2.7.0
|
|
117
117
|
type: :runtime
|
|
118
118
|
prerelease: false
|
|
119
119
|
version_requirements: !ruby/object:Gem::Requirement
|
|
120
120
|
requirements:
|
|
121
121
|
- - "~>"
|
|
122
122
|
- !ruby/object:Gem::Version
|
|
123
|
-
version: 2.0
|
|
123
|
+
version: 2.7.0
|
|
124
124
|
- !ruby/object:Gem::Dependency
|
|
125
125
|
name: addressable
|
|
126
126
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -136,19 +136,19 @@ dependencies:
|
|
|
136
136
|
- !ruby/object:Gem::Version
|
|
137
137
|
version: 2.8.7
|
|
138
138
|
- !ruby/object:Gem::Dependency
|
|
139
|
-
name:
|
|
139
|
+
name: docile
|
|
140
140
|
requirement: !ruby/object:Gem::Requirement
|
|
141
141
|
requirements:
|
|
142
142
|
- - "~>"
|
|
143
143
|
- !ruby/object:Gem::Version
|
|
144
|
-
version:
|
|
144
|
+
version: 1.4.1
|
|
145
145
|
type: :runtime
|
|
146
146
|
prerelease: false
|
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
|
148
148
|
requirements:
|
|
149
149
|
- - "~>"
|
|
150
150
|
- !ruby/object:Gem::Version
|
|
151
|
-
version:
|
|
151
|
+
version: 1.4.1
|
|
152
152
|
- !ruby/object:Gem::Dependency
|
|
153
153
|
name: dry-initializer
|
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -164,33 +164,33 @@ dependencies:
|
|
|
164
164
|
- !ruby/object:Gem::Version
|
|
165
165
|
version: 3.1.1
|
|
166
166
|
- !ruby/object:Gem::Dependency
|
|
167
|
-
name:
|
|
167
|
+
name: inline_svg
|
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
|
169
169
|
requirements:
|
|
170
170
|
- - "~>"
|
|
171
171
|
- !ruby/object:Gem::Version
|
|
172
|
-
version: 1.
|
|
172
|
+
version: 1.10.0
|
|
173
173
|
type: :runtime
|
|
174
174
|
prerelease: false
|
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
|
176
176
|
requirements:
|
|
177
177
|
- - "~>"
|
|
178
178
|
- !ruby/object:Gem::Version
|
|
179
|
-
version: 1.
|
|
179
|
+
version: 1.10.0
|
|
180
180
|
- !ruby/object:Gem::Dependency
|
|
181
|
-
name:
|
|
181
|
+
name: meta-tags
|
|
182
182
|
requirement: !ruby/object:Gem::Requirement
|
|
183
183
|
requirements:
|
|
184
184
|
- - "~>"
|
|
185
185
|
- !ruby/object:Gem::Version
|
|
186
|
-
version:
|
|
186
|
+
version: 2.22.1
|
|
187
187
|
type: :runtime
|
|
188
188
|
prerelease: false
|
|
189
189
|
version_requirements: !ruby/object:Gem::Requirement
|
|
190
190
|
requirements:
|
|
191
191
|
- - "~>"
|
|
192
192
|
- !ruby/object:Gem::Version
|
|
193
|
-
version:
|
|
193
|
+
version: 2.22.1
|
|
194
194
|
description: Jav is a very custom Content Management System for Ruby on Rails that
|
|
195
195
|
saves development time by building user interfaces and logic using configuration
|
|
196
196
|
rather than traditional coding; When configuration is not enough, you can fallback
|