fastentry 0.1.13 → 0.1.14
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/app/assets/javascripts/fastentry/application.js +2 -1
- data/app/assets/javascripts/fastentry/navbar.js +25 -0
- data/app/assets/stylesheets/fastentry/application.css +1 -1
- data/app/assets/stylesheets/fastentry/table.css +2 -0
- data/app/views/fastentry/dashboard/index.html.erb +4 -5
- data/lib/fastentry/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 325d38d0b70d65b0a0e2cb57d916f5092bb49190198a67dd1d595406e42a11ef
|
4
|
+
data.tar.gz: cd6c6b96ad821df190b60a0ff7d4b4bb5187bf394963394dd1253de5935260be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88bd1d72d2e6a4a998e61c204f297b7b31f9c8a8a6ac05513ecfdf13b911f3329afb94d10af4a49c401d37a4506a1a6384fb4e0666820b100f193aad10330851
|
7
|
+
data.tar.gz: cdd4fe9065206cff0342845517fe870cf9570ae0a09e08e5ae46836a8a4b7ca4f1d5c3e48f4c5eda592ae01a666d1a873277d5fa03c0ac676c3af4cbe27c57ea
|
@@ -0,0 +1,25 @@
|
|
1
|
+
document.addEventListener('DOMContentLoaded', () => {
|
2
|
+
|
3
|
+
// Get all "navbar-burger" elements
|
4
|
+
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
|
5
|
+
|
6
|
+
// Check if there are any navbar burgers
|
7
|
+
if ($navbarBurgers.length > 0) {
|
8
|
+
|
9
|
+
// Add a click event on each of them
|
10
|
+
$navbarBurgers.forEach( el => {
|
11
|
+
el.addEventListener('click', () => {
|
12
|
+
|
13
|
+
// Get the target from the "data-target" attribute
|
14
|
+
const target = el.dataset.target;
|
15
|
+
const $target = document.getElementById(target);
|
16
|
+
|
17
|
+
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
|
18
|
+
el.classList.toggle('is-active');
|
19
|
+
$target.classList.toggle('is-active');
|
20
|
+
|
21
|
+
});
|
22
|
+
});
|
23
|
+
}
|
24
|
+
|
25
|
+
});
|
@@ -1,6 +1,5 @@
|
|
1
1
|
<section class="section">
|
2
2
|
<div class="container">
|
3
|
-
<form action="">
|
4
3
|
<%= form_tag(root_path, method: "get") do %>
|
5
4
|
<div class="field has-addons">
|
6
5
|
<div class="control is-expanded">
|
@@ -14,11 +13,11 @@
|
|
14
13
|
</div>
|
15
14
|
<% end %>
|
16
15
|
<br>
|
17
|
-
<%= form_tag(invalidate_multiple_keys_path, method: "delete", id: "checkbox-form") do %>
|
16
|
+
<%= form_tag(invalidate_multiple_keys_path, method: "delete", id: "checkbox-form", class: "wrapper") do %>
|
18
17
|
<table class="table is-hoverable is-fullwidth">
|
19
18
|
<thead>
|
20
19
|
<tr>
|
21
|
-
<th><input type="checkbox" id="select-all-checkboxes"></th>
|
20
|
+
<th width=10><input type="checkbox" id="select-all-checkboxes"></th>
|
22
21
|
<th>Key</th>
|
23
22
|
<th>Value</th>
|
24
23
|
<th>Expires at</th>
|
@@ -29,8 +28,8 @@
|
|
29
28
|
<% @cached.each do |cache| %>
|
30
29
|
<tr>
|
31
30
|
<td><input type="checkbox" name="invalidate_cache_keys[]" value="<%= cache[:cache_key] %>"></td>
|
32
|
-
<td><%= truncate cache[:cache_key], length:
|
33
|
-
<td><%= link_to truncate(cache[:cache_value].to_s, length:
|
31
|
+
<td><%= truncate cache[:cache_key], length: 80 %></td>
|
32
|
+
<td><%= link_to truncate(cache[:cache_value].to_s, length: 80), cache_path(cache[:cache_key]) %></td>
|
34
33
|
<td><%= cache[:expiration] %></td>
|
35
34
|
<td><%= link_to "Invalidate", invalidate_key_path(cache[:cache_key]), method: :delete, data: { confirm: 'Are you sure?' }, class: "button is-danger is-small is-outlined" %></td>
|
36
35
|
</tr>
|
data/lib/fastentry/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastentry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Alves
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -93,8 +93,10 @@ files:
|
|
93
93
|
- app/assets/config/fastentry_manifest.js
|
94
94
|
- app/assets/images/fastentry/logo.png
|
95
95
|
- app/assets/javascripts/fastentry/application.js
|
96
|
+
- app/assets/javascripts/fastentry/navbar.js
|
96
97
|
- app/assets/stylesheets/fastentry/application.css
|
97
98
|
- app/assets/stylesheets/fastentry/bulma.css
|
99
|
+
- app/assets/stylesheets/fastentry/table.css
|
98
100
|
- app/controllers/fastentry/application_controller.rb
|
99
101
|
- app/controllers/fastentry/cache_controller.rb
|
100
102
|
- app/controllers/fastentry/dashboard_controller.rb
|