thecore_ui_commons 2.2.7 → 2.3.2

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: 1773c485e9a7cc05938d28da606198382b7070dd18df29b233e6b77e58f2ded7
4
- data.tar.gz: 5204a76b9aaf067feef9e06bc23e1980888ad099331fba90d647516d0ba82e83
3
+ metadata.gz: 5a847b2360a8eb2635422066052787ebdcfeaa3ab9bf086a02a83ee42875fe2d
4
+ data.tar.gz: abb094253c9e0cb3fafdc7f0cb567892ad63f8b7b65cc438d8e80d3b25c9c064
5
5
  SHA512:
6
- metadata.gz: 14e4c40f8f9b144a4c04e6905457d074275491a557c150ccab410623216896affeb83141b159bfd80523274b3ed7519f71aad92ed69fb5a984f2bb8fbc82c6eb
7
- data.tar.gz: e145a22345c62517201c2cbf8ac86598e7cc760189ae034438646809368413238663f31be2e7c3363d0c5e921ed2027971ca9975d411034d53eb6d621c9e46bc
6
+ metadata.gz: 3974e204710d5ce1bc306409124c1f09abf3fc5aa55acc988489a77b0be6c6e7cca9b44cab3cd398a17ef9d48434e6da7f31c8bb50dee7bb3fcf2013c144cf9f
7
+ data.tar.gz: bfb280e8541ba96732e35a67ef528c2beadea94f6bd72d7dec7f6a8bf450e6856d3a6a4d6c6c08b77ea1b4863cbbfe7d23f12e38ac2c9888f3e5aefbd6955164
@@ -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") %>
@@ -31,7 +31,7 @@
31
31
  <div class="col-md-4 col-md-offset-4 text-center">
32
32
  <img class="main-menu-app-logo" style="width: 25%; max-width: 152px" src="<%= image_url('logo.png') %>"/>
33
33
  </div>
34
- <%- unless flash.empty? %>
34
+ <%- unless flash.blank? %>
35
35
  <div class="col-md-4 col-md-offset-4" style="margin-top: 1em;">
36
36
  <%= render partial: 'shared/flash' %>
37
37
  </div>
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)
@@ -3,6 +3,8 @@ require 'thecore_background_jobs' # This brings backend commons also.
3
3
  require 'serviceworker-rails'
4
4
  require "groupdate"
5
5
  require "apexcharts"
6
+ # require "gtk3"
7
+ require "cairo"
6
8
  require "poppler"
7
9
  require "image_processing"
8
10
 
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiCommons
2
- VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`}"
2
+ VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
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.2.7
4
+ version: 2.3.2
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-02-12 00:00:00.000000000 Z
11
+ date: 2021-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_background_jobs
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: cairo
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.17'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.17'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: poppler
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -166,7 +180,7 @@ files:
166
180
  - config/routes.rb
167
181
  - db/migrate/20200515070620_add_username_to_user.rb
168
182
  - db/migrate/20200515132932_add_rememberable_to_user.rb
169
- - db/migrate/20210208142646_add_settings_for_uploader.rb
183
+ - db/seeds.rb
170
184
  - lib/concerns/thecore_ui_commons_user.rb
171
185
  - lib/tasks/thecore_ui_commons_tasks.rake
172
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