thecore_ui_commons 2.1.12 → 2.2.3

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: d9f7aac2f4ddbb633d8dcb66dcddcbad97048fc61465a795485e54b1ea046dcc
4
- data.tar.gz: f1bcb8e2baaa71d7c51eb480d5f7ce830612691d486f4077918ffa98867b8044
3
+ metadata.gz: 9f924dcad192b5d24f2fc3a0be94d15e912cb941b5b0dfb4ce7cba3882874e2b
4
+ data.tar.gz: 38f19553b375388a0b60a95a43fe9d919088a42def92988beac0a64120f98053
5
5
  SHA512:
6
- metadata.gz: 0001dd702d33688143879408db4cdc08c0009405b9f1c23bbed90d02c33abc210f3c5f6f4e1ccaf57eb27b927efbee4cd5f6818c5224772825579c89ce97ce4e
7
- data.tar.gz: b529965589247146cf64fd6fa4075fa8bc2fc5ea63b5f6376cfc3ac5617c6ff80d3f9c18a56aa6c80dac6bc33d716cd8d21c70e31bb29554ccd6af12e10c325f
6
+ metadata.gz: 5219728df9a71e358b3c40c102413c34cd785875e0a92ee022f4d7968ae32ec685110480359a8a914721048adfa6a28cce9dec69bf44de26523117d9164f9321
7
+ data.tar.gz: 902b74b25da44917554def41bcdadb41dfc979784233b29ab11e99c30c31c0621678cf9a46b3770b2a48c3b7c8cc7e5ffd09c3ce3dc00e778160f2d7d8fa91b3
@@ -16,5 +16,6 @@
16
16
  "theme_color": "#3b4e59",
17
17
  "background_color": "#3b4e59",
18
18
  "orientation": "portrait",
19
- "display": "standalone"
19
+ "display": "standalone",
20
+ "optional_permissions": ["clipboardWrite", "clipboardRead"]
20
21
  }
@@ -9,16 +9,16 @@
9
9
  </div>
10
10
 
11
11
  <% if devise_mapping.rememberable? -%>
12
- <div class="checkbox">
13
- <label>
14
- <%= f.check_box :remember_me %>
15
- <%=t "activerecord.attributes.user.remember_me" %>
16
- </label>
12
+ <div class="form-check">
13
+ <%= f.check_box :remember_me, class: "form-check-input" %>
14
+ <label class="form-check-label" for="defaultCheck1">
15
+ <%=t "activerecord.attributes.user.remember_me" %>
16
+ </label>
17
17
  </div>
18
18
  <% end -%>
19
19
 
20
20
  <div class="actions">
21
- <%= f.submit t("devise.sessions.new.sign_in"), :class => "btn" %>
21
+ <%= f.submit t("devise.sessions.new.sign_in"), class: "btn" %>
22
22
 
23
23
  <%= render "devise/shared/links" %>
24
24
  </div>
@@ -2,15 +2,22 @@ module Helpers
2
2
  module ThecoreUiCommonsHelper
3
3
  def get_asset_tags_for(basename)
4
4
  out = []
5
+
5
6
  # Needs to reverse since Paths are traversed in the order they occur in the search path. By default, this means the files in app/assets take precedence, and will mask corresponding paths in lib and vendor.
6
7
  Rails.application.config.assets.paths.reverse.each do |basedir|
7
8
  base = "#{basedir}/**/#{basename}"
8
- base_s = Dir["#{base}.scss"]
9
+ base_s = Dir["#{base}.{css,scss}"]
9
10
  base_j = Dir["#{base}.js"]
10
- out << stylesheet_link_tag("#{get_folder base_s}/#{basename}", media: 'all', 'data-turbolinks-track' => true) if base_s.any?
11
- out << javascript_include_tag("#{get_folder base_j}/#{basename}", 'data-turbolinks-track' => true) if base_j.any?
11
+
12
+ (out << stylesheet_link_tag("#{get_folder base_s}/#{basename}", media: 'all', 'data-turbolinks-track' => true) if base_s.any?) rescue nil
13
+ (out << javascript_include_tag("#{get_folder base_j}/#{basename}", 'data-turbolinks-track' => true) if base_j.any?) rescue nil
12
14
  end
13
- out.join("\n ").html_safe
15
+
16
+ # Application level assets
17
+ (out << stylesheet_link_tag('application', media: 'all', 'data-turbolinks-track' => true)) rescue nil
18
+ (out << javascript_include_tag('application', 'data-turbolinks-track' => true)) rescue nil
19
+
20
+ out.join("\n").html_safe
14
21
  end
15
22
 
16
23
  def get_folder(base)
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiCommons
2
- VERSION = '2.1.12'
2
+ VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`}"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.12
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-26 00:00:00.000000000 Z
11
+ date: 2021-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_background_jobs