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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 918bc7b56d28dc6fe52851a0c9fbd20c50842aa39c25cb71378a0c8a7c7011e6
4
- data.tar.gz: 1ac25364f77b4e6d2dc8cbdd100a86710c97dc20d31ad498d28edf1931e1cbb2
3
+ metadata.gz: 325d38d0b70d65b0a0e2cb57d916f5092bb49190198a67dd1d595406e42a11ef
4
+ data.tar.gz: cd6c6b96ad821df190b60a0ff7d4b4bb5187bf394963394dd1253de5935260be
5
5
  SHA512:
6
- metadata.gz: 310b6d57b205d6b84b81821f63cae55bc852364c56592a9bf2268bd16d31da2bd2231e93188151abb7ae41166c114b9287c85712cc6051b04edb219007e81ff8
7
- data.tar.gz: 536ee25c6dccfc09ee0abe18f52bf9e2ce519b6fe836a28504fb0d8acc895d0027335326b07f08a83113afcf74376df38d6b28c1f9f6a88b124f8cfb944221b1
6
+ metadata.gz: 88bd1d72d2e6a4a998e61c204f297b7b31f9c8a8a6ac05513ecfdf13b911f3329afb94d10af4a49c401d37a4506a1a6384fb4e0666820b100f193aad10330851
7
+ data.tar.gz: cdd4fe9065206cff0342845517fe870cf9570ae0a09e08e5ae46836a8a4b7ca4f1d5c3e48f4c5eda592ae01a666d1a873277d5fa03c0ac676c3af4cbe27c57ea
@@ -10,4 +10,5 @@
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
- //= require rails-ujs
13
+ //= require rails-ujs
14
+ //= require ./navbar.js
@@ -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
+ });
@@ -11,4 +11,4 @@
11
11
  * It is generally better to create a new file per style scope.
12
12
  *
13
13
  *= require_tree .
14
- */
14
+ */
@@ -0,0 +1,2 @@
1
+ table { word-break: break-word; }
2
+ table td { max-width: 200px; }
@@ -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: 100 %></td>
33
- <td><%= link_to truncate(cache[:cache_value].to_s, length: 100), cache_path(cache[:cache_key]) %></td>
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>
@@ -1,3 +1,3 @@
1
1
  module Fastentry
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.14'
3
3
  end
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.13
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-08 00:00:00.000000000 Z
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