Module: SolidQueueDashboard::IconsHelper

Defined in:
app/helpers/solid_queue_dashboard/icons_helper.rb

Instance Method Summary collapse

Instance Method Details

#icon_chart_scatter(options = {}) ⇒ Object



231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 231

def icon_chart_scatter(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.circle(cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor")
    concat tag.circle(cx: "18.5", cy: "5.5", r: ".5", fill: "currentColor")
    concat tag.circle(cx: "11.5", cy: "11.5", r: ".5", fill: "currentColor")
    concat tag.circle(cx: "7.5", cy: "16.5", r: ".5", fill: "currentColor")
    concat tag.circle(cx: "17.5", cy: "14.5", r: ".5", fill: "currentColor")
    concat tag.path(d: "M3 3v16a2 2 0 0 0 2 2h16")
  end
end

#icon_clock(options = {}) ⇒ Object



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 112

def icon_clock(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.circle(cx: "12", cy: "12", r: "10")
    concat tag.polyline(points: "12 6 12 12 16 14")
  end
end

#icon_github(options = {}) ⇒ Object



131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 131

def icon_github(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.path(d: "M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4")
    concat tag.path(d: "M9 18c-4.51 2-5-2-7-2")
  end
end

#icon_layout_dashboard(options = {}) ⇒ Object



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 65

def icon_layout_dashboard(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.rect(width: "7", height: "9", x: "3", y: "3", rx: "1")
    concat tag.rect(width: "7", height: "5", x: "14", y: "3", rx: "1")
    concat tag.rect(width: "7", height: "9", x: "14", y: "12", rx: "1")
    concat tag.rect(width: "7", height: "5", x: "3", y: "16", rx: "1")
  end
end

#icon_logs(options = {}) ⇒ Object



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 86

def icon_logs(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.path(d: "M13 12h8")
    concat tag.path(d: "M13 18h8")
    concat tag.path(d: "M13 6h8")
    concat tag.path(d: "M3 12h1")
    concat tag.path(d: "M3 18h1")
    concat tag.path(d: "M3 6h1")
    concat tag.path(d: "M8 12h1")
    concat tag.path(d: "M8 18h1")
    concat tag.path(d: "M8 6h1")
  end
end

#icon_moon(options = {}) ⇒ Object



169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 169

def icon_moon(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.path(d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z")
  end
end

#icon_play(options = {}) ⇒ Object



213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 213

def icon_play(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.polygon(points: "6 3 20 12 6 21 6 3")
  end
end

#icon_refresh_cw(options = {}) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 3

def icon_refresh_cw(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.path(d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8")
    concat tag.path(d: "M21 3v5h-5")
    concat tag.path(d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16")
    concat tag.path(d: "M8 16H3v5")
  end
end

#icon_server(options = {}) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 44

def icon_server(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.rect(width: "20", height: "8", x: "2", y: "2", rx: "2", ry: "2")
    concat tag.rect(width: "20", height: "8", x: "2", y: "14", rx: "2", ry: "2")
    concat tag.line(x1: "6", x2: "6.01", y1: "6", y2: "6")
    concat tag.line(x1: "6", x2: "6.01", y1: "18", y2: "18")
  end
end

#icon_sun(options = {}) ⇒ Object



187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 187

def icon_sun(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.circle(cx: "12", cy: "12", r: "4")
    concat tag.path(d: "M12 2v2")
    concat tag.path(d: "M12 20v2")
    concat tag.path(d: "m4.93 4.93 1.41 1.41")
    concat tag.path(d: "m17.66 17.66 1.41 1.41")
    concat tag.path(d: "M2 12h2")
    concat tag.path(d: "M20 12h2")
    concat tag.path(d: "m6.34 17.66-1.41 1.41")
    concat tag.path(d: "m19.07 4.93-1.41 1.41")
  end
end

#icon_triangle_alert(options = {}) ⇒ Object



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 24

def icon_triangle_alert(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.path(d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3")
    concat tag.path(d: "M12 9v4")
    concat tag.path(d: "M12 17h.01")
  end
end

#icon_x(options = {}) ⇒ Object



150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'app/helpers/solid_queue_dashboard/icons_helper.rb', line 150

def icon_x(options = {})
  svg_options = {
    xmlns: "http://www.w3.org/2000/svg",
    width: "24",
    height: "24",
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    "stroke-width": "2",
    "stroke-linecap": "round",
    "stroke-linejoin": "round"
  }.merge(options)

  tag.svg(**svg_options) do
    concat tag.path(d: "M18 6 6 18")
    concat tag.path(d: "m6 6 12 12")
  end
end