shopapp 0.73.02 → 0.75.02

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: 1e79bda095b98390be8188e89f74151fe8aa0fe1e0b8e8463c697eb5a796577f
4
- data.tar.gz: 380eba546fb514fd597c60bdfa2c586b703033ee50fda34fccca5b2610dca471
3
+ metadata.gz: 4f7f743c98f429b42b25af9c9f6f7e7336b472a8a23a1cc81305a91fc6668a77
4
+ data.tar.gz: 81c04a4fd7a2bde73eda1ac13199a4a8589f23072f1b6e9e530d10c9540c5198
5
5
  SHA512:
6
- metadata.gz: 3556bbe835dc2690c3a2c7ce1e87e43a40529ef2a139729be2903f7846d66cb50b8c8edd51d6bc7d8b0cb90b780499d22969099763dffbf0b6fd92ca47f752d5
7
- data.tar.gz: 5dc66e60d10edb1ca6f68d43f30dbe0a5de6878aed1616beb7abce92a385c33942f19d64db31d908ba607bf516b829382765ec7a26565a26b639cf585932867d
6
+ metadata.gz: 4e0ed2f657ad6494f7e6a13b1323f9fc9b47df1e6f62c661429afaf49d54d4a085e2146baddbb39c2f94689d018e396bcbcd2d56acbf827a3d078b1c364b1dca
7
+ data.tar.gz: 2f4b8183e3656d3196c6abfdf05b2e697a9a94fb06435ca760ecb20296ee83929657d41996a2f2ca96e746bf7836256406d13de8538ff966222ba6374705994b
@@ -1,4 +1,4 @@
1
- function shopappSnackbar(message, timeout) {
1
+ window.shopappSnackbar = function(message, timeout) {
2
2
  if(timeout === undefined) {
3
3
  timeout = 5000;
4
4
  }
@@ -10,7 +10,7 @@ function shopappSnackbar(message, timeout) {
10
10
  }, timeout);
11
11
  }
12
12
 
13
- function shopappAlert(message, type) {
13
+ window.shopappAlert = function(message, type) {
14
14
  if (type === undefined) {
15
15
  type = 'danger';
16
16
  }
@@ -7,8 +7,8 @@ module Shopapp3Helper
7
7
  <<~HTML
8
8
  <li class="nav-item p-1 #{active}">
9
9
  <a class="nav-link d-flex flex-column justify-content-start align-items-center" href="#{sidebar_action[:path]}">
10
- #{image_tag sidebar_action[:icon].to_s, width: '20', class: 'img-fluid mb-1' if sidebar_action[:icon].present?}
11
- #{"<i class=\"material-icons md-16\">#{sidebar_action[:mdi] = sidebar_action[:mdi].to_s; sidebar_action[:mdi]}</i>" if sidebar_action[:mdi].present?}
10
+ #{image_tag sidebar_action[:icon].to_s, width: '20', class: 'img-fluid text-light mb-1' if sidebar_action[:icon].present?}
11
+ #{"<i class=\"material-icons text-light md-16 mb-1\">#{sidebar_action[:mdi] = sidebar_action[:mdi].to_s; sidebar_action[:mdi]}</i>" if sidebar_action[:mdi].present?}
12
12
  <label class="text-light mt-0 text-center">#{ I18n.t(sidebar_action[:tooltip], default: sidebar_action[:tooltip])}</label>
13
13
  </a>
14
14
  </li>
@@ -28,7 +28,7 @@
28
28
  .dropdown-header Change language
29
29
  %span.px-3.py-2(display="block" clear="none" style="width: 32px; margin-right: 6px;")
30
30
  - supported_locales_defined.each do |loc|
31
- = link_to change_language_path(loc), method: :post, class: 'mr-2' do
31
+ = button_to(change_language_path(loc), method: :post, class: 'mr-2', data: { turbo: false }) do
32
32
  = image_tag "flags/#{loc}.png", style: "height: 24; width: 36px;"
33
33
  - if (@current_user_json_hash['memberships'] || []).reject { |c| @current_user_json_hash['company']['code'] == c['code'] }.present?
34
34
  .dropdown-divider
@@ -44,8 +44,3 @@
44
44
  = button_to(logout_path, method: :delete, :class => 'dropdown-item', data: { turbo: false }) do
45
45
  Logout
46
46
  = yield
47
- :javascript
48
- $("#menu-toggle").click(function(e) {
49
- e.preventDefault();
50
- $("#wrapper").toggleClass("toggled");
51
- });
@@ -1 +1,25 @@
1
- Rails.application.config.assets.precompile += %w(bootstrap.min.js popper.js shopapp3)
1
+ Rails.application.config.assets.precompile += %w(bootstrap.min.js popper.js shopapp3)
2
+
3
+ %w(
4
+ avatar.jpg dot.svg logo.png
5
+ blue_icon.svg empty.svg lamppu.jpg purple_icon.svg
6
+ ).each do |img|
7
+ Rails.application.config.assets.precompile << "#{img}"
8
+ end
9
+
10
+ %w(
11
+ ad.png au.png be.png cl.png de.png fr.png it.png pr.png sr.png tr.png vn.png
12
+ ae.png ax.png bg.png cn.png dk.png ge.png jm.png sc.png td.png ua.png
13
+ am.png az.png bt.png cr.png en.png gn.png jp.png sd.png tg.png uk.png
14
+ ar.png ba.png ca.png cu.png es.png gr.png ne.png se.png th.png us.png
15
+ at.png bb.png ch.png cz.png fi.png gw.png ng.png sl.png tj.png ve.png
16
+ ).each do |flag|
17
+ Rails.application.config.assets.precompile << "flags/#{flag}"
18
+ end
19
+
20
+ %w(
21
+ avatar.png calendar.svg comment.svg icon-1.svg icon-3.svg
22
+ bg.jpg check.svg delete.svg icon-2.svg search.svg
23
+ ).each do |img|
24
+ Rails.application.config.assets.precompile << "shopapp3/#{img}"
25
+ end
data/shopapp.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopapp'
3
3
  # Version for Rails 7 / Ruby 3 start with 0.74
4
- s.version = '0.73.02'
5
- s.date = '2023-03-01'
4
+ s.version = '0.75.02'
5
+ s.date = '2024-04-23'
6
6
  s.summary = 'Do a shoplift.'
7
7
  s.description = 'Ha! Art thou Bedlam? Dost thou thirst base Trojan, to have me fold up Parca\'s fatal web? Hence!\
8
8
  I am qualmish at the smell of leek.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.73.02
4
+ version: 0.75.02
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-01 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml-rails
@@ -366,7 +366,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
366
366
  - !ruby/object:Gem::Version
367
367
  version: '0'
368
368
  requirements: []
369
- rubygems_version: 3.4.1
369
+ rubygems_version: 3.5.6
370
370
  signing_key:
371
371
  specification_version: 4
372
372
  summary: Do a shoplift.