sail 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05fca866e54ba0e38f8d78010f0cbe328b694b7f09619b36a2d533d3c5ed8f92
4
- data.tar.gz: 9f95a6750ae40d4086d46fa56ff75323532ffd72cf109ee6a6425589d2220f4e
3
+ metadata.gz: 16b44189cf3b110f2f889319509c1592644f6dde05b0d598c58a1ca38141a2c4
4
+ data.tar.gz: 9f908bbfa06fc4a92a173e9e0d5487301ee59159638ba44992f4b6fb0f3f35e0
5
5
  SHA512:
6
- metadata.gz: bfb372c20ab721d43af3f0d692ba0b1f5ff7d1c9185a4fe7a997c4e966589b1892b8027fecfed329328dce602f17516b3280030c39a67cf5a4de1c21135d3f0b
7
- data.tar.gz: 0f238303cd0b2797649996dcf26b1df9a3299f34cc9fb987edf7fa71336ce2bee21bca2c7d416598b208bb87da8c0d45e1784a355e9612d0e1d1cd0960d19bfc
6
+ metadata.gz: d3db0a5ea82f5f2feb06e53e155e32d9f3dd5bf94e64cd681b1f57a4aa50c20c71dd3c7e6dd7031fe47547b0e5d10688897d304806afe1433868d9a27faf7863
7
+ data.tar.gz: 958d60d9fd6a5f3ac52a4d1a40d9688e6fcb5ea499121c17b96d998e55936f29079e7689c967ab70f3073cc186c5fb775b5b69a39cd905578c11f6fad7fa6726
data/Rakefile CHANGED
@@ -24,4 +24,4 @@ task all: :environment do
24
24
  system("brakeman --no-pager && rake && rubocop --auto-correct && rails_best_practices")
25
25
  end
26
26
 
27
- system("cd ./spec/dummy; RAILS_ENV=test rails db:environment:set; cd ../..") if Rails::VERSION::MAJOR >= 5
27
+ system("cd ./spec/dummy; RAILS_ENV=test rails db:environment:set; cd ../..")
@@ -10,14 +10,5 @@
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
- <%
14
- if Rails::VERSION::MAJOR >= 5
15
- require_asset("rails-ujs")
16
- else
17
- require_asset("jquery")
18
- require_asset("jquery_ujs")
19
- end
20
-
21
- require_asset("settings")
22
- %>
13
+ //= require rails-ujs
23
14
  //= require_tree .
@@ -6,7 +6,7 @@ Search related functions
6
6
 
7
7
  let submitTimer, submitInterval, intervals = 1;
8
8
  let queryElement = document.getElementById("query");
9
- let autoSearchEnabled = "<%= Sail.configuration.enable_search_auto_submit %>";
9
+ let autoSearchEnabled = document.getElementById("auto_search_enabled").value;
10
10
  let progress = document.getElementById("search-submit-progress");
11
11
  let sortMenu = document.getElementById("sort-menu");
12
12
  let orderButton = document.getElementById("btn-order");
@@ -16,7 +16,7 @@ let dashboardBody = document.getElementById("settings-dashboard");
16
16
  let guideButton = document.getElementById("btn-guide");
17
17
  let guide = document.getElementById("guide-modal");
18
18
  let guideSections = guide.getElementsByTagName("summary");
19
- var i;
19
+ let i;
20
20
 
21
21
  function submitSearch() {
22
22
  document.getElementById("search-form").submit();
@@ -0,0 +1,456 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
16
+
17
+ :root {
18
+ --main-black: #0B0C10;
19
+ --dark-green: #306B34;
20
+ --light-green: #44AF69;
21
+ --cerulean: #4484CE;
22
+ --aluminium: #D9D9D9;
23
+ --dark-aluminium: #8D8D8D;
24
+ --darker-aluminium: #666666;
25
+ --light-yellow: #F9CF00;
26
+ --tangerine: #F19F4D;
27
+ --dark-tangerine: #C86C10;
28
+ --lead: #003049;
29
+ --bright-red: #E63946;
30
+ }
31
+
32
+ @-webkit-keyframes fadeIn {
33
+ from { opacity: 0; }
34
+ to { opacity: 1; }
35
+ }
36
+
37
+ @keyframes fadeIn {
38
+ from { opacity: 0; }
39
+ to { opacity: 1; }
40
+ }
41
+
42
+ * {
43
+ font-family: 'Open Sans', sans-serif;
44
+ -webkit-font-smoothing: antialiased;
45
+ -moz-osx-font-smoothing: grayscale;
46
+ }
47
+
48
+ .title {
49
+ font-family: 'Montserrat', sans-serif;
50
+ }
51
+
52
+ html, body {
53
+ height: 100vh;
54
+ margin: 0;
55
+ padding: 0;
56
+ background-color: var(--cerulean);
57
+ }
58
+
59
+ .clearfix {
60
+ clear: both;
61
+ }
62
+
63
+ @media (max-width: 413px) {
64
+ .clear-xs {
65
+ clear: both;
66
+ margin-top: 8px;
67
+ }
68
+ }
69
+
70
+ #nav-bar {
71
+ background-color: var(--lead);
72
+ box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15), 0 5px 12px rgba(0, 0, 0, 0.1);
73
+ }
74
+
75
+ #nav-bar .home-link {
76
+ -webkit-transition : color .25s ease-in;
77
+ -moz-transition : color .25s ease-in;
78
+ -o-transition : color .25s ease-in;
79
+ transition : color .25s ease-in;
80
+ color: white;
81
+ text-decoration: none;
82
+ }
83
+
84
+ #nav-bar .home-link:visited {
85
+ color: white;
86
+ }
87
+
88
+ #nav-bar .home-link:hover {
89
+ color: var(--tangerine);
90
+ }
91
+
92
+ #nav-bar .home-link .title {
93
+ margin: 0;
94
+ text-align: center;
95
+ font-size: 3rem;
96
+ padding: .75rem 0;
97
+ }
98
+
99
+ #nav-bar .nav-button {
100
+ float: right;
101
+ position: relative;
102
+ bottom: 50px;
103
+ font-size: 20px;
104
+ outline: none;
105
+ background: transparent;
106
+ border: none;
107
+ -webkit-transition : color .25s ease-in;
108
+ -moz-transition : color .25s ease-in;
109
+ -o-transition : color .25s ease-in;
110
+ transition : color .25s ease-in;
111
+ color: white;
112
+ text-decoration: none;
113
+ }
114
+
115
+ #nav-bar .nav-button:visited {
116
+ color: white;
117
+ }
118
+
119
+ #nav-bar .nav-button:hover {
120
+ color: var(--tangerine);
121
+ }
122
+
123
+ #nav-bar .nav-button:hover {
124
+ cursor: pointer;
125
+ }
126
+
127
+ #nav-bar #btn-guide {
128
+ right: 70px;
129
+ padding: 0;
130
+ margin: 0;
131
+ }
132
+
133
+ @media (min-width: 1200px) {
134
+ #nav-bar #btn-guide {
135
+ right: 110px;
136
+ }
137
+ }
138
+
139
+ @media (max-width: 991px) {
140
+ #nav-bar .nav-button {
141
+ display: none;
142
+ }
143
+ }
144
+
145
+ #nav-bar #btn-monitor-mode,
146
+ #nav-bar #btn-regular-mode {
147
+ right: 80px;
148
+ padding: 1px 7px 2px 7px;
149
+ }
150
+
151
+ @media (min-width: 1200px) {
152
+ #nav-bar #btn-monitor-mode,
153
+ #nav-bar #btn-regular-mode {
154
+ right: 120px;
155
+ }
156
+ }
157
+
158
+ #pagination {
159
+ text-align: center;
160
+ margin-top: 2rem;
161
+ }
162
+
163
+ #pagination a {
164
+ color: var(--main-black);
165
+ text-decoration: none;
166
+ background-color: white;
167
+ padding: 20px;
168
+ -webkit-border-radius: 5px;
169
+ -moz-border-radius: 5px;
170
+ border-radius: 5px;
171
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
172
+ font-weight: bold;
173
+ }
174
+
175
+ #pagination a.active {
176
+ background-color: var(--tangerine);
177
+ color: white;
178
+ }
179
+
180
+ #pagination .page-links a {
181
+ font-size: 1.2rem;
182
+ margin: 0 2px 0 2px;
183
+ }
184
+
185
+ #pagination .page-links #angle-left-link {
186
+ background: white url(<%= asset_url("sail/angle-left.svg") %>) center no-repeat;
187
+ margin-right: 6px;
188
+ padding: 20px 24px 20px 24px;
189
+ }
190
+
191
+ #pagination .page-links #angle-right-link {
192
+ background: white url(<%= asset_url("sail/angle-right.svg") %>) center no-repeat;
193
+ margin-left: 6px;
194
+ padding: 20px 24px 20px 24px;
195
+ }
196
+
197
+ #profiles-modal, #guide-modal {
198
+ position: fixed;
199
+ height: 70%;
200
+ width: 70%;
201
+ top: 15%;
202
+ left: 15%;
203
+ background-color: white;
204
+ z-index: 1;
205
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
206
+ -webkit-border-radius: 5px;
207
+ -moz-border-radius: 5px;
208
+ border-radius: 5px;
209
+ -webkit-animation: fadeIn 0.5s;
210
+ animation: fadeIn 0.5s;
211
+ padding: 15px;
212
+ overflow: scroll;
213
+ }
214
+
215
+ @media (max-width: 1200px) {
216
+ #profiles-modal, #guide-modal {
217
+ width: 90%;
218
+ left: 3%;
219
+ }
220
+ }
221
+
222
+ @media (max-width: 767px) {
223
+ #profiles-modal, #guide-modal {
224
+ width: 90%;
225
+ left: 1%;
226
+ }
227
+ }
228
+
229
+ #profiles-modal {
230
+ text-align: center;
231
+ }
232
+
233
+ #profiles-modal h1 {
234
+ margin-left: 35px;
235
+ }
236
+
237
+ #profiles-modal h1 #response-message {
238
+ float: right;
239
+ font-size: 18px;
240
+ margin-right: 3px;
241
+ position: relative;
242
+ top: 5px;
243
+ min-width: 50px;
244
+ min-height: 20px;
245
+ color: var(--dark-green);
246
+ }
247
+
248
+ #profiles-modal .profile-entry {
249
+ padding: 10px;
250
+ font-size: 20px;
251
+ border-bottom: 2px solid transparent;
252
+ margin-bottom: 15px;
253
+ -webkit-transition : border .25s ease-in;
254
+ -moz-transition : border .25s ease-in;
255
+ -o-transition : border .25s ease-in;
256
+ transition : border .25s ease-in;
257
+ outline: none;
258
+ }
259
+
260
+ #profiles-modal .profile-entry:focus,
261
+ #profiles-modal .profile-entry:hover {
262
+ border-color: var(--tangerine);
263
+ outline: none;
264
+ }
265
+
266
+ #profiles-modal .profile-entry .inline-form {
267
+ float: right;
268
+ }
269
+
270
+ #profiles-modal .profile-entry button {
271
+ float: right;
272
+ margin-left: 5px;
273
+ padding: 10px;
274
+ }
275
+
276
+ #profiles-modal .profile-entry .entry-name {
277
+ position: relative;
278
+ top: 10px;
279
+ }
280
+
281
+ @media (max-width: 1199px) {
282
+ #profiles-modal .profile-entry .entry-name {
283
+ float: left;
284
+ }
285
+ }
286
+
287
+ @media (min-width: 1200px) {
288
+ #profiles-modal .profile-entry .entry-name {
289
+ margin-left: 250px;
290
+ }
291
+ }
292
+
293
+ @media (max-width: 767px) {
294
+ #profiles-modal .profile-entry .inline-form {
295
+ margin-right: 3%;
296
+ }
297
+
298
+ #profiles-modal .profile-entry .inline-form:first-child {
299
+ clear: both;
300
+ }
301
+
302
+ #profiles-modal .profile-entry .entry-name {
303
+ width: 90%;
304
+ margin-bottom: 15px;
305
+ }
306
+
307
+ #profiles-modal #new-profile-input {
308
+ width: 70%;
309
+ }
310
+ }
311
+
312
+ #profiles-modal .profile-entry .active-indicator {
313
+ float: left;
314
+ position: relative;
315
+ top: 7px;
316
+ }
317
+
318
+ #profiles-modal .profile-entry .active-indicator.yellow {
319
+ color: var(--light-yellow);
320
+ }
321
+
322
+ #profiles-modal .profile-entry .active-indicator.green {
323
+ color: var(--light-green);
324
+ }
325
+
326
+ #profiles-modal .profile-entry .errors-indicator {
327
+ float: left;
328
+ position: relative;
329
+ top: 9px;
330
+ left: 15px;
331
+ font-style: italic;
332
+ color: var(--dark-aluminium);
333
+ }
334
+
335
+ #profiles-modal #new-profile-input {
336
+ height: 100%;
337
+ border: none;
338
+ font-size: 20px;
339
+ width: 90%;
340
+ position: relative;
341
+ top: 10px;
342
+ text-overflow: ellipsis;
343
+
344
+ }
345
+
346
+ #profiles-modal #new-profile-input:focus {
347
+ outline: none;
348
+ }
349
+
350
+ @media (max-width: 1200px) {
351
+ #profiles-modal #new-profile-input {
352
+ width: 88%;
353
+ }
354
+ }
355
+
356
+ #guide-modal h1 {
357
+ text-align: center;
358
+ }
359
+
360
+ #guide-modal details {
361
+ padding: 15px;
362
+ }
363
+
364
+ #guide-modal details summary {
365
+ font-size: 20px;
366
+ outline: none;
367
+ border-bottom: 1px solid transparent;
368
+ -webkit-transition : border .25s ease-in;
369
+ -moz-transition : border .25s ease-in;
370
+ -o-transition : border .25s ease-in;
371
+ transition : border .25s ease-in;
372
+ outline: none;
373
+ }
374
+
375
+ #guide-modal details summary:focus,
376
+ #guide-modal details summary:hover {
377
+ border-color: var(--tangerine);
378
+ outline: none;
379
+ }
380
+
381
+ #guide-modal details summary div {
382
+ padding-bottom: 10px;
383
+ }
384
+
385
+ #guide-modal details summary label {
386
+ color: var(--dark-aluminium);
387
+ font-size: 18px;
388
+ float: right;
389
+ }
390
+
391
+ #guide-modal details summary img {
392
+ display: none;
393
+ }
394
+
395
+ #guide-modal details summary::-webkit-details-marker,
396
+ #guide-modal details summary::marker {
397
+ display: none;
398
+ font-size: 0;
399
+ }
400
+
401
+ #guide-modal details summary:hover {
402
+ cursor: pointer;
403
+ }
404
+
405
+ #guide-modal details summary:focus {
406
+ border-color: transparent;
407
+ }
408
+
409
+ #guide-modal details[open] p p ~ * {
410
+ -webkit-animation: fadeIn 0.5s;
411
+ animation: fadeIn 0.5s;
412
+ }
413
+
414
+ #guide-modal details[open] summary {
415
+ border-bottom: 1px solid var(--tangerine);
416
+ }
417
+
418
+ #guide-modal details[open] summary div {
419
+ font-size: 28px;
420
+ text-align: center;
421
+ }
422
+
423
+ #guide-modal details[open] summary label {
424
+ display: none;
425
+ }
426
+
427
+ #guide-modal details[open] summary img {
428
+ display: block;
429
+ height: 20px;
430
+ width: 20px;
431
+ float: left;
432
+ position: relative;
433
+ top: 10px;
434
+ }
435
+
436
+ #guide-modal details p, .items-container {
437
+ text-align: center;
438
+ font-size: 20px;
439
+ }
440
+
441
+ #guide-modal details p ul,
442
+ .items-container ul {
443
+ list-style-type: none;
444
+ }
445
+
446
+ #guide-modal details p ul li,
447
+ .items-container ul li {
448
+ padding: 10px;
449
+ }
450
+
451
+ hr {
452
+ border: 0;
453
+ height: 1px;
454
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
455
+ border-bottom: 1px solid rgba(255, 255, 255, 0.3);
456
+ }