solidus_backend 4.2.1 → 4.2.3

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: a7db3f451c0685fe7a0eb38fff3774abbb307616a864bedb9529a30036706818
4
- data.tar.gz: b836056e4243ec71c11fba5558a378e7fce27d9585498533cc5744f589802ace
3
+ metadata.gz: b6267a01ab8a45958e1f7df1632238e14de1544ac777187e7e2eaa58d36ec054
4
+ data.tar.gz: 01b2e9db90f1474080ede9a684eda4b5fc958fbba0899c6a1fc32bea8a3b8b9f
5
5
  SHA512:
6
- metadata.gz: ffc195204ec714690a4c5f4aed3dd0ee23ba9e1cbb9dbb504d063365943715759105d273fae914d60fe8ba2a3d2c6a3f468e3043d530b567b647cfd028ab7930
7
- data.tar.gz: 2fd77964dddbf7732f60e2037fdf093ae87c14b2387c477ee6b2d661a00a032075d5896815b199d6ae7b5ac32b1c05a02321ba2191f6c9bc20cb866fe1390657
6
+ metadata.gz: b6017f2fa9ea50ca39efaf4e1110236404be68cd5a06b318804ffae31e53d634fa27de2d1acc655fc0e20472335384baba4d49bd6e3c05ab858356a3df17038f
7
+ data.tar.gz: 1c62f8dbc04d83d7a90d3e0b1034a6bf2c48e740859a21891d28348cc1cda0c590cd9f9407a85055fa6d4e0981a37820c2b05ec9948be3b6bb1eb535706132ee
@@ -1,25 +1,27 @@
1
1
  Spree.ready(function() {
2
- if (window.screen.width <= 1024 && !document.cookie.includes("admin_nav_hidden")) {
3
- // Set default nav to collapse on small screens - but don't override user preference
4
- document.body.classList.add("admin-nav-hidden");
5
- document.cookie = "admin_nav_hidden=true; expires=Fri, 31 Dec 9999 23:59:59 GMT";
6
- }
7
-
8
- var adminNavToggle = document.querySelector("#admin-nav-toggle");
9
-
10
- if (adminNavToggle) {
11
- adminNavToggle.addEventListener("click", function(e) {
12
- e.preventDefault();
13
- document.body.classList.toggle("admin-nav-hidden");
14
- $(document.body).trigger("sticky_kit:recalc");
15
- adminNavToggle.classList.toggle("fa-chevron-circle-left");
16
- adminNavToggle.classList.toggle("fa-chevron-circle-right");
17
- document.cookie = "admin_nav_hidden=" + document.body.classList.contains("admin-nav-hidden") + "; expires=Fri, 31 Dec 9999 23:59:59 GMT";
18
- });
19
- }
20
-
21
- if (document.body.classList.contains('admin-nav-hidden')) {
22
- $(adminNavToggle).removeClass('fa-chevron-circle-left').addClass('fa-chevron-circle-right');
2
+ if (!document.querySelector(".solidus-admin--nav")) {
3
+ if (window.screen.width <= 1024 && !document.cookie.includes("admin_nav_hidden")) {
4
+ // Set default nav to collapse on small screens - but don't override user preference
5
+ document.body.classList.add("admin-nav-hidden");
6
+ document.cookie = "admin_nav_hidden=true; expires=Fri, 31 Dec 9999 23:59:59 GMT";
7
+ }
8
+
9
+ var adminNavToggle = document.querySelector("#admin-nav-toggle");
10
+
11
+ if (adminNavToggle) {
12
+ adminNavToggle.addEventListener("click", function(e) {
13
+ e.preventDefault();
14
+ document.body.classList.toggle("admin-nav-hidden");
15
+ $(document.body).trigger("sticky_kit:recalc");
16
+ adminNavToggle.classList.toggle("fa-chevron-circle-left");
17
+ adminNavToggle.classList.toggle("fa-chevron-circle-right");
18
+ document.cookie = "admin_nav_hidden=" + document.body.classList.contains("admin-nav-hidden") + "; expires=Fri, 31 Dec 9999 23:59:59 GMT";
19
+ });
20
+ }
21
+
22
+ if (document.body.classList.contains('admin-nav-hidden')) {
23
+ $(adminNavToggle).removeClass('fa-chevron-circle-left').addClass('fa-chevron-circle-right');
24
+ }
23
25
  }
24
26
 
25
27
  let solidusAdminSwitch = document.querySelector("#solidus-admin-switch");
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-04 00:00:00.000000000 Z
11
+ date: 2023-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.1
19
+ version: 4.2.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.1
26
+ version: 4.2.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: solidus_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 4.2.1
33
+ version: 4.2.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 4.2.1
40
+ version: 4.2.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: font-awesome-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -930,7 +930,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
930
930
  - !ruby/object:Gem::Version
931
931
  version: 1.8.23
932
932
  requirements: []
933
- rubygems_version: 3.3.23
933
+ rubygems_version: 3.4.17
934
934
  signing_key:
935
935
  specification_version: 4
936
936
  summary: Admin interface for the Solidus e-commerce framework.