thecore_ui_commons 2.2.9 → 2.3.4

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: b638942c6068d65239ba5c426ac3d356987a9838d60e443200046df05e8387dc
4
- data.tar.gz: 180e23eba6c2454161f66c323c6d7ebd75fd286155177d77648f0291a4f0a23d
3
+ metadata.gz: 00a17cec4f9a2303e93a0a6d9f8757a8c6d3df430aa0d79b1c218f0d88831e0a
4
+ data.tar.gz: b78f6b740d795d96cde5272c959b7b4ec699be48ea66df6f260f3d5dabf99571
5
5
  SHA512:
6
- metadata.gz: be228ac7b20c0750d2e5200df0355b0c871b7b63fc6fe79fa2844e0cfa8bdfc2cfb4ab3a66e07fba9c9b8a07bffdb288d8557a956e0df9d0b396083fb299fd7e
7
- data.tar.gz: 6dcbb021f056d782ee4cefa3c9c993d492fd0270d46f0b80b023bd825ea4322e7345ded8227fe639c0056272bf8a6a0024f10d4889e54b035f801d2a71f7e840
6
+ metadata.gz: '099a64bcd24150e97436a6b336cb09b464da3cf39f4d765329c9478438d483dfdd2a0ad605a0a414670f050bedf9ecacf119dbdecb0200645beb5ebf0701a94e'
7
+ data.tar.gz: 2fde66df3905ba1ea002471dab0637a6ac06d3f19450072ef5c5beaffa44726e39fee7cc669c2bb3169da79bc9e39d97442142e436fa623df80bc1e4a340cbee
@@ -6,3 +6,12 @@
6
6
  //= require ie
7
7
  //= require timer
8
8
  //= require apexcharts
9
+
10
+ $(document).ready(function () {
11
+
12
+ window.setTimeout(function() {
13
+ $(".alert").fadeTo(1000, 0).slideUp(1000, function(){
14
+ $(this).remove();
15
+ });
16
+ }, 5000);
17
+ })
@@ -19,4 +19,13 @@
19
19
 
20
20
  #new_user div {
21
21
  margin-bottom: .5em;
22
+ }
23
+
24
+ .alert {
25
+ position:fixed;
26
+ bottom: 1em;
27
+ right: 1em;
28
+ width: 20vw;
29
+ z-index:9999;
30
+ border-radius: 1em;
22
31
  }
@@ -1,4 +1,4 @@
1
- <div class="col-md-4 col-md-offset-4">
1
+ <div class="col-md-4 col-md-offset-4" id="login-form">
2
2
  <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
3
3
  <div class="field">
4
4
  <%= f.text_field :login, autofocus: true, :class => "form-control", placeholder: t("devise.sessions.new.login") %>
data/db/seeds.rb ADDED
@@ -0,0 +1,3 @@
1
+ puts "Loading ThecoreUiCommons seeds"
2
+ Settings.ns(:importer).import_from_folder = "tmp/imports"
3
+ Settings.ns(:importer).extension = "txt"
@@ -11,7 +11,7 @@ module ThecoreUiCommonsUser
11
11
  attr_writer :login
12
12
 
13
13
  def login
14
- @login || self.username || self.email
14
+ @login || (self.username rescue self.email)
15
15
  end
16
16
  # Use login
17
17
  def self.find_first_by_auth_conditions(warden_conditions)
@@ -1,6 +1,9 @@
1
1
  module ThecoreUiCommons
2
2
  class Engine < ::Rails::Engine
3
3
  initializer 'thecore_ui_commons.add_to_migrations' do |app|
4
+ # Adds the list of Thecore Engines, so to manage seeds loading, i.e.:
5
+ # Thecore::Base.thecore_engines.each { |engine| engine.load_seed }
6
+ Thecore::Base.thecore_engines << self.class
4
7
  unless app.root.to_s.match root.to_s
5
8
  # APPEND TO MAIN APP MIGRATIONS FROM THIS GEM
6
9
  config.paths['db/migrate'].expanded.each do |expanded_path|
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.2.9
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-05 00:00:00.000000000 Z
11
+ date: 2021-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_background_jobs
@@ -180,7 +180,7 @@ files:
180
180
  - config/routes.rb
181
181
  - db/migrate/20200515070620_add_username_to_user.rb
182
182
  - db/migrate/20200515132932_add_rememberable_to_user.rb
183
- - db/migrate/20210208142646_add_settings_for_uploader.rb
183
+ - db/seeds.rb
184
184
  - lib/concerns/thecore_ui_commons_user.rb
185
185
  - lib/tasks/thecore_ui_commons_tasks.rake
186
186
  - lib/thecore_ui_commons.rb
@@ -1,6 +0,0 @@
1
- class AddSettingsForUploader < ActiveRecord::Migration[6.0]
2
- def change
3
- Settings.ns(:importer).import_from_folder = "tmp/imports"
4
- Settings.ns(:importer).extension = "txt"
5
- end
6
- end