thecore_dataentry_commons 2.0.2 → 2.1.1

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: 98cf537394cb413a353796313e4244682d652b6ac2e99a7b58312b4338ec3ae0
4
- data.tar.gz: 6161a1a38897ed7c2164b75aca068436f33a1a201f41e3afc717a93efba0caa1
3
+ metadata.gz: 65de3dec084035d8c289cca7cff463d7184b016917405dd75f6d0f8b03d2ce27
4
+ data.tar.gz: 006d2cc96db4c61edae16e7fa4a3c31eba5cc373edaeed34082fd3d69a55cd9a
5
5
  SHA512:
6
- metadata.gz: caae373573cb3779a99a56dbca2854c49a75925f18c9b3db7c521f7c3a2a597e8252418087a76a1178754245d4131d71c37b33bf1e85a9b7c81c5c1e7ca075b6
7
- data.tar.gz: f6bd40ed3859fb50a797c3625f1bf62c1ba54bdbab4628b3e121d315f5f31815c0dc4bba3735b15b6d78bd0d28e059c7fe25d351d102b996c5a74c3aa0d62be8
6
+ metadata.gz: da788845de440271dda9ca0a5ccd8a341b27c8ba13cfcd9458203cc97a3e0d697954e20885a5320e3dcd7575419c7ef4b10a89bc62ab7534c1276522773a9388
7
+ data.tar.gz: e13fe08b073bdb1ae1d1e1901a7cce86f7f5a59c6180ae54d65c906ab233a8429d06fcfe1a788b6ed048f9aaf03299a80406715b88277cc5a3ed2c618f32812c
@@ -9,10 +9,10 @@
9
9
  var returnedData;
10
10
  var additionalData = {};
11
11
  var disableKeyManagement = false;
12
+ var cleanBarcode = true;
12
13
 
13
14
  function resetInfo() {
14
15
  returnedData = code = undefined;
15
- $("#barcode").empty();
16
16
  $("#data-info").empty().hide();
17
17
  $("#data-content").empty().hide();
18
18
  <%-unless (hide_action rescue true)%>
@@ -2,7 +2,7 @@
2
2
  function resetCurrentBtn() {
3
3
  $("#send").button('reset');
4
4
  $("#barcode").prop('disabled', false);
5
- $("#barcode").val('');
5
+ if (cleanBarcode) $("#barcode").empty();
6
6
  // sendMessageToServer(msg_input_plugin_enable); clickedBtn = code = null;
7
7
  }
8
8
  </script>
@@ -13,13 +13,13 @@
13
13
  allowInputToggle: true,
14
14
  sideBySide: true,
15
15
  icons: {
16
- time: 'fa fa-clock',
16
+ time: 'fa fa-clock-o',
17
17
  date: 'fa fa-calendar',
18
18
  up: 'fa fa-chevron-up',
19
19
  down: 'fa fa-chevron-down',
20
20
  previous: 'fa fa-chevron-left',
21
21
  next: 'fa fa-chevron-right',
22
- today: 'fa fa-calendar-check',
22
+ today: 'fa fa-calendar-check-o',
23
23
  clear: 'fa fa-trash',
24
24
  close: 'fa fa-times'
25
25
  }
@@ -45,13 +45,13 @@
45
45
  allowInputToggle: true,
46
46
  format: 'L',
47
47
  icons: {
48
- time: 'fa fa-clock',
48
+ time: 'fa fa-clock-o',
49
49
  date: 'fa fa-calendar',
50
50
  up: 'fa fa-chevron-up',
51
51
  down: 'fa fa-chevron-down',
52
52
  previous: 'fa fa-chevron-left',
53
53
  next: 'fa fa-chevron-right',
54
- today: 'fa fa-calendar-check',
54
+ today: 'fa fa-calendar-check-o',
55
55
  clear: 'fa fa-trash',
56
56
  close: 'fa fa-times'
57
57
  }
data/db/seeds.rb ADDED
@@ -0,0 +1,5 @@
1
+ puts "Loading ThecoreDataentryCommons seeds"
2
+ Settings.datawedge_kp_mode = "keypress"
3
+ # ws: WebSocket
4
+ # kp: KeyPress
5
+ Settings.datawedge_scan_mode = "auto" # or "kp"
@@ -8,6 +8,9 @@ module ThecoreDataentryCommons
8
8
  # app.middleware.use ::ActionDispatch::Static, "#{root}/app"
9
9
  # end
10
10
  initializer 'thecore_dataentry_commons.add_to_migrations' do |app|
11
+ # Adds the list of Thecore Engines, so to manage seeds loading, i.e.:
12
+ # Thecore::Base.thecore_engines.each { |engine| engine.load_seed }
13
+ Thecore::Base.thecore_engines << self.class
11
14
  unless app.root.to_s.match root.to_s
12
15
  # APPEND TO MAIN APP MIGRATIONS FROM THIS GEM
13
16
  config.paths['db/migrate'].expanded.each do |expanded_path|
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryCommons
2
- VERSION = '2.0.2'.freeze
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_dataentry_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.1.1
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-10-06 00:00:00.000000000 Z
11
+ date: 2021-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_rails_admin
@@ -58,8 +58,7 @@ files:
58
58
  - app/views/thecore_utils/_html_helpers.html.erb
59
59
  - config/locales/en.thecore_datawedge_websocket_helpers.yml
60
60
  - config/locales/it.thecore_datawedge_websocket_helpers.yml
61
- - db/migrate/20170913192906_add_keymode_to_settings.rb
62
- - db/migrate/20171005162605_replace_with_auto_to_settings.rb
61
+ - db/seeds.rb
63
62
  - lib/thecore_dataentry_commons.rb
64
63
  - lib/thecore_dataentry_commons/engine.rb
65
64
  - lib/thecore_dataentry_commons/version.rb
@@ -1,7 +0,0 @@
1
- class AddKeymodeToSettings < ActiveRecord::Migration[5.1]
2
- def change
3
- # keyup
4
- # keypress
5
- Settings.datawedge_kp_mode = "keypress"
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- class ReplaceWithAutoToSettings < ActiveRecord::Migration[5.1]
2
- def change
3
- # ws: WebSocket
4
- # kp: KeyPress
5
- Settings.datawedge_scan_mode = "auto" # or "kp"
6
- end
7
- end