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 +4 -4
- data/app/assets/javascripts/spree/backend/components/admin_nav.js +23 -21
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6267a01ab8a45958e1f7df1632238e14de1544ac777187e7e2eaa58d36ec054
|
4
|
+
data.tar.gz: 01b2e9db90f1474080ede9a684eda4b5fc958fbba0899c6a1fc32bea8a3b8b9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6017f2fa9ea50ca39efaf4e1110236404be68cd5a06b318804ffae31e53d634fa27de2d1acc655fc0e20472335384baba4d49bd6e3c05ab858356a3df17038f
|
7
|
+
data.tar.gz: 1c62f8dbc04d83d7a90d3e0b1034a6bf2c48e740859a21891d28348cc1cda0c590cd9f9407a85055fa6d4e0981a37820c2b05ec9948be3b6bb1eb535706132ee
|
@@ -1,25 +1,27 @@
|
|
1
1
|
Spree.ready(function() {
|
2
|
-
if (
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|