thecore_ui_commons 2.1.9 → 2.1.14

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: ea33b6b025d99acfffd0c7409f2d43afdd08c943b1cde57a91b2ed2be2c39d6e
4
- data.tar.gz: 74316d7395c7a3837b7c65588302c749dc1a09dddd1a56bdc17eb2fa2bc1206d
3
+ metadata.gz: 335ebc71696d91bccc5f8e40c0578f4d57981f38ef3abaf32d804c852f21486b
4
+ data.tar.gz: f9449c252ca8cf444105fd45186fb3d8071c19eea5c1957f778acf2f1e83011c
5
5
  SHA512:
6
- metadata.gz: 2ecba4a7144e2797ad4fe9804f0de16206eb624e875317649fc10ade3f4c7880c4927760df332516fef7a05fdbcacb8ff6f209c18f291aae5f19c798e68c661d
7
- data.tar.gz: 7ca7ca4aaafdafa5ec1abbf2f5baecf929b66319246c9cbc6d982410cebf030d7548c9161e60d742f20b3b3cdfc22adb615332fcd8f69ca8774fbd9d30cff8dc
6
+ metadata.gz: f71388796069c082d8f8f6a3455da74dfab15c4132419f37cf3c30e1209fda5d533237f34ccf06fc4f4fa15a30e84e71141270875871063cd458e3b52a968574
7
+ data.tar.gz: f764ea7a0881c8c8a592d77b19f890cce24414a584493729409fd0f7887b86340cd04a4daa92030d35cd87d9cd6b337bc17f7cb5f31c2cbc7295851dbea75f7f
@@ -16,3 +16,7 @@
16
16
  *= require_self
17
17
  */
18
18
  @import 'actiontext.scss';
19
+
20
+ #new_user div {
21
+ margin-bottom: .5em;
22
+ }
@@ -1,26 +1,24 @@
1
1
  <div class="col-md-4 col-md-offset-4">
2
2
  <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
3
3
  <div class="field">
4
- <%= f.label :login %><br />
5
- <%= f.text_field :login, autofocus: true, :class => "form-control" %>
4
+ <%= f.text_field :login, autofocus: true, :class => "form-control", placeholder: t("devise.sessions.new.login") %>
6
5
  </div>
7
6
 
8
7
  <div class="field">
9
- <%= f.label :password %><br />
10
- <%= f.password_field :password, autocomplete: "off", :class => "form-control" %>
8
+ <%= f.password_field :password, autocomplete: "off", :class => "form-control", placeholder: t("devise.sessions.new.password") %>
11
9
  </div>
12
10
 
13
11
  <% if devise_mapping.rememberable? -%>
14
- <div class="checkbox">
15
- <label>
16
- <%= f.check_box :remember_me %>
17
- <%=t "activerecord.attributes.user.remember_me" %>
18
- </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>
19
17
  </div>
20
18
  <% end -%>
21
19
 
22
20
  <div class="actions">
23
- <%= f.submit t("devise.sessions.new.sign_in"), :class => "btn btn-warning" %>
21
+ <%= f.submit t("devise.sessions.new.sign_in"), class: "btn" %>
24
22
 
25
23
  <%= render "devise/shared/links" %>
26
24
  </div>
@@ -12,8 +12,8 @@
12
12
 
13
13
  <%# Getting all the assets needed by thecore from all the gems %>
14
14
  <%= get_asset_tags_for("thecore")%>
15
- <%= stylesheet_link_tag('application', media: 'all', 'data-turbolinks-track' => true) if ::Rails.application.assets.find_asset("application.css")%>
16
- <%= javascript_include_tag('application', 'data-turbolinks-track' => true) if ::Rails.application.assets.find_asset("application.js") %>
15
+ <%= stylesheet_link_tag('application', media: 'all', 'data-turbolinks-track' => true) if (Rails.application.assets || ::Sprockets::Railtie.build_environment(Rails.application)).find_asset("application.css")%>
16
+ <%= javascript_include_tag('application', 'data-turbolinks-track' => true) if (Rails.application.assets || ::Sprockets::Railtie.build_environment(Rails.application)).find_asset("application.js") %>
17
17
 
18
18
  <%= favicon_link_tag 'apple-touch-icon.png', rel: 'apple-touch-icon', sizes: "180x180" %>
19
19
  <%= favicon_link_tag 'favicon-32x32.png', rel: 'icon', sizes: "32x32" %>
@@ -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,5 +1,10 @@
1
1
  en:
2
2
  current_user: Current User
3
+ devise:
4
+ sessions:
5
+ new:
6
+ login: Login
7
+ password: Password
3
8
  hello: Hello World
4
9
  dashboard: Dashboard
5
10
  contact: Help us
@@ -7,6 +7,11 @@ it:
7
7
  sign_out: "Uscita"
8
8
  advanced: Impostazioni
9
9
  main_records: Anagrafiche
10
+ devise:
11
+ sessions:
12
+ new:
13
+ login: Login
14
+ password: Password
10
15
  errors:
11
16
  messages:
12
17
  invalid: contiene caratteri invalidi
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiCommons
2
- VERSION = '2.1.9'
2
+ VERSION = '2.1.14'
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.9
4
+ version: 2.1.14
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-05-29 00:00:00.000000000 Z
11
+ date: 2020-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_background_jobs