solid_queue_dashboard 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -1
- data/app/assets/stylesheets/solid_queue_dashboard/application.css +4 -17
- data/app/controllers/solid_queue_dashboard/jobs_controller.rb +1 -1
- data/app/helpers/solid_queue_dashboard/pagination_helper.rb +2 -2
- data/app/views/solid_queue_dashboard/jobs/index.html.erb +5 -5
- data/lib/solid_queue_dashboard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbfc49aa5b61cc358d9915e2e420c2c91fb2a7a414614deb8fbfb8a599d53c64
|
4
|
+
data.tar.gz: 7c6e3bcb681687f6fd3abd2e2be123161fdba3c42321612a2b911706c0bd3c59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07642bb683411c0066061d88e4b62baae2d1fc5ad13c19fc134c3118eb5375c3f581e6b420926f763540cd16a67c60e5143c75fe2d7869ed7d0dcecfc57203a0
|
7
|
+
data.tar.gz: 85b9c616797395fa97ee275465fe6a4ce6688fd2f6548f75756dd7cae6482c647a5100be34d66626785a933e7d520f09b28d2104715919958d2a52ef658b63b1
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Solid Queue Dashboard
|
1
|
+
# Solid Queue Dashboard <sup>BETA</sup>
|
2
2
|
|
3
3
|
<p align="center">
|
4
4
|
<a href="https://github.com/akodkod/solid-queue-dashboard#gh-light-mode-only">
|
@@ -21,6 +21,7 @@
|
|
21
21
|
- 🔄 Retry jobs from the UI
|
22
22
|
- 🚫 No dependencies
|
23
23
|
- 🐒 No monkey patching
|
24
|
+
- 💈 TailwindCSS
|
24
25
|
|
25
26
|
## Roadmap
|
26
27
|
- 🏊♂️ Auto-pooling
|
@@ -1561,6 +1561,10 @@ body {
|
|
1561
1561
|
margin-right: 0.375rem;
|
1562
1562
|
}
|
1563
1563
|
|
1564
|
+
.mt-0\.5 {
|
1565
|
+
margin-top: 0.125rem;
|
1566
|
+
}
|
1567
|
+
|
1564
1568
|
.mt-1 {
|
1565
1569
|
margin-top: 0.25rem;
|
1566
1570
|
}
|
@@ -1581,10 +1585,6 @@ body {
|
|
1581
1585
|
margin-top: 2rem;
|
1582
1586
|
}
|
1583
1587
|
|
1584
|
-
.mt-0\.5 {
|
1585
|
-
margin-top: 0.125rem;
|
1586
|
-
}
|
1587
|
-
|
1588
1588
|
.inline-block {
|
1589
1589
|
display: inline-block;
|
1590
1590
|
}
|
@@ -1867,19 +1867,6 @@ body {
|
|
1867
1867
|
line-height: 1rem;
|
1868
1868
|
}
|
1869
1869
|
|
1870
|
-
.text-base {
|
1871
|
-
font-size: 1rem;
|
1872
|
-
line-height: 1.5rem;
|
1873
|
-
}
|
1874
|
-
|
1875
|
-
.text-\[15px\] {
|
1876
|
-
font-size: 15px;
|
1877
|
-
}
|
1878
|
-
|
1879
|
-
.text-\[14px\] {
|
1880
|
-
font-size: 14px;
|
1881
|
-
}
|
1882
|
-
|
1883
1870
|
.font-bold {
|
1884
1871
|
font-weight: 700;
|
1885
1872
|
}
|
@@ -32,7 +32,7 @@ module SolidQueueDashboard
|
|
32
32
|
jobs = jobs.where(queue_name: params[:queue_name]) if params[:queue_name].present?
|
33
33
|
|
34
34
|
@pagination = paginate(jobs, page: params[:page].to_i, per_page: params[:per_page].to_i)
|
35
|
-
@jobs = SolidQueueDashboard.decorate(@pagination
|
35
|
+
@jobs = SolidQueueDashboard.decorate(@pagination[:records])
|
36
36
|
end
|
37
37
|
|
38
38
|
def set_job
|
@@ -10,13 +10,13 @@ module SolidQueueDashboard
|
|
10
10
|
total_count = scope.count
|
11
11
|
total_pages = (total_count.to_f / per_page).ceil
|
12
12
|
|
13
|
-
|
13
|
+
{
|
14
14
|
records: records,
|
15
15
|
current_page: page,
|
16
16
|
per_page: per_page,
|
17
17
|
total_pages: total_pages,
|
18
18
|
total_count: total_count
|
19
|
-
|
19
|
+
}
|
20
20
|
end
|
21
21
|
|
22
22
|
def page_range(current_page, total_pages, window: 2)
|
@@ -25,12 +25,12 @@
|
|
25
25
|
<% end %>
|
26
26
|
</div>
|
27
27
|
|
28
|
-
<% if @pagination
|
28
|
+
<% if @pagination[:total_pages] > 1 %>
|
29
29
|
<div class="card-footer pt-6 border-t flex justify-between">
|
30
30
|
<%= render partial: 'solid_queue_dashboard/application/pagination', locals: {
|
31
|
-
current_page: @pagination
|
32
|
-
total_pages: @pagination
|
33
|
-
per_page: @pagination
|
31
|
+
current_page: @pagination[:current_page],
|
32
|
+
total_pages: @pagination[:total_pages],
|
33
|
+
per_page: @pagination[:per_page]
|
34
34
|
} %>
|
35
35
|
|
36
36
|
<div class="flex items-center gap-2">
|
@@ -42,7 +42,7 @@
|
|
42
42
|
<%= f.hidden_field :page, value: 1 %>
|
43
43
|
<%= f.select :per_page,
|
44
44
|
[10, 25, 50, 100],
|
45
|
-
{ selected: @pagination
|
45
|
+
{ selected: @pagination[:per_page] },
|
46
46
|
class: "select w-24",
|
47
47
|
data: { auto_submit: true }
|
48
48
|
%>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solid_queue_dashboard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kodkod
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
|
-
rubygems_version: 3.5.
|
120
|
+
rubygems_version: 3.5.16
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Solid Queue Dashboard
|