solidus_backend 4.3.3 → 4.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/spree/admin/stock_items_controller.rb +1 -1
- data/app/views/spree/admin/shared/_locale_selection.html.erb +1 -1
- data/app/views/spree/admin/shared/_theme_selection.html.erb +19 -17
- data/app/views/spree/admin/shared/_theme_selection_solidus_admin.html.erb +24 -22
- data/lib/spree/backend_configuration/menu_item.rb +11 -12
- 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: 480e44614f841840dad96177e38ead273f9b044f5b74aa81837f324d64b4307d
|
4
|
+
data.tar.gz: 0b206738d7af865103063328ee4a1293b91ada68f7d44f0c5694ebd226b99c72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40ded38c54b7f8212fcb25e9c61f17287d01d7d4b500e8745fdb09370b7af125abfae7c3f9501af48831606a676e1e17f5bb675156e8630e86759e58c3c12c00
|
7
|
+
data.tar.gz: b17d268613e1223870dff99882c0586bfe399331214ce0f9ec516bc944f0a330e0aab1e11589183176a7250c719b1f29e1daf846da5dc9fb6775a88c9e6c22d0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
}.sort %>
|
4
4
|
|
5
5
|
<% if available_locale_options_for_select.size > 1 %>
|
6
|
-
<%= form_tag(admin_set_locale_path(format: :html), method: :put, style: "width: 100%;") do %>
|
6
|
+
<%= form_tag(spree.admin_set_locale_path(format: :html), method: :put, style: "width: 100%;") do %>
|
7
7
|
<label class="admin-navbar-selection admin-locale-selection">
|
8
8
|
<i class="fa fa-globe fa-fw" title="<%= I18n.t('spree.choose_dashboard_locale') %>"></i>
|
9
9
|
<select class="custom-select fullwidth" onchange="this.form.requestSubmit()">
|
@@ -1,21 +1,23 @@
|
|
1
1
|
<% theme_options_for_select = Spree::Backend::Config.themes.keys.map { |theme| [theme.to_s.humanize, theme] }.sort %>
|
2
2
|
|
3
|
-
|
4
|
-
<%=
|
5
|
-
|
6
|
-
<
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
<% if theme_options_for_select.length > 1 %>
|
4
|
+
<%= form_tag(spree.admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "light-only") do %>
|
5
|
+
<%= hidden_field_tag :system_theme, :light %>
|
6
|
+
<label class="admin-navbar-selection">
|
7
|
+
<i class="fa fa-sun-o fa-fw" title="<%= I18n.t('spree.choose_dashboard_theme') %>"></i>
|
8
|
+
<select name="switch_to_theme" class="custom-select fullwidth" onchange="this.form.requestSubmit()">
|
9
|
+
<%= options_for_select(theme_options_for_select, session[:admin_light_theme] || Spree::Backend::Config.theme) %>
|
10
|
+
</select>
|
11
|
+
</label>
|
12
|
+
<% end %>
|
12
13
|
|
13
|
-
<%= form_tag(spree.admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "dark-only") do %>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
<%= form_tag(spree.admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "dark-only") do %>
|
15
|
+
<%= hidden_field_tag :system_theme, :dark %>
|
16
|
+
<label class="admin-navbar-selection">
|
17
|
+
<i class="fa fa-moon-o fa-fw" title="<%= I18n.t('spree.choose_dashboard_theme') %>"></i>
|
18
|
+
<select name="switch_to_theme" class="custom-select fullwidth" onchange="this.form.requestSubmit()">
|
19
|
+
<%= options_for_select(theme_options_for_select, session[:admin_dark_theme] || Spree::Backend::Config.dark_theme) %>
|
20
|
+
</select>
|
21
|
+
</label>
|
22
|
+
<% end %>
|
21
23
|
<% end %>
|
@@ -1,25 +1,27 @@
|
|
1
1
|
<% theme_options_for_select = Spree::Backend::Config.themes.keys.map { |theme| [theme.to_s.humanize, theme] }.sort %>
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
<%=
|
6
|
-
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
<% if theme_options_for_select.length > 1 %>
|
4
|
+
<li>
|
5
|
+
<%= form_tag(spree.admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "light-only") do %>
|
6
|
+
<%= hidden_field_tag :system_theme, :light %>
|
7
|
+
<label>
|
8
|
+
<svg aria-hidden="true"><use xlink:href="<%= image_path('spree/backend/themes/solidus_admin/remixicon.symbol.svg') %>#ri-sun-line"></use></svg>
|
9
|
+
<select name="switch_to_theme" onchange="this.form.requestSubmit()">
|
10
|
+
<%= options_for_select(theme_options_for_select, session[:admin_light_theme] || Spree::Backend::Config.theme) %>
|
11
|
+
</select>
|
12
|
+
<svg aria-hidden="true"><use xlink:href="<%= image_path('spree/backend/themes/solidus_admin/remixicon.symbol.svg') %>#ri-expand-up-down-line"></use></svg>
|
13
|
+
</label>
|
14
|
+
<% end %>
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
</li>
|
16
|
+
<%= form_tag(spree.admin_set_theme_path(format: :html), method: :put, style: "width: 100%;", class: "dark-only") do %>
|
17
|
+
<%= hidden_field_tag :system_theme, :dark %>
|
18
|
+
<label>
|
19
|
+
<svg aria-hidden="true"><use xlink:href="<%= image_path('spree/backend/themes/solidus_admin/remixicon.symbol.svg') %>#ri-moon-line"></use></svg>
|
20
|
+
<select name="switch_to_theme" onchange="this.form.requestSubmit()">
|
21
|
+
<%= options_for_select(theme_options_for_select, session[:admin_dark_theme] || Spree::Backend::Config.dark_theme) %>
|
22
|
+
</select>
|
23
|
+
<svg aria-hidden="true"><use xlink:href="<%= image_path('spree/backend/themes/solidus_admin/remixicon.symbol.svg') %>#ri-expand-up-down-line"></use></svg>
|
24
|
+
</label>
|
25
|
+
<% end %>
|
26
|
+
</li>
|
27
|
+
<% end %>
|
@@ -78,18 +78,17 @@ module Spree
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def match_path?(request)
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
matches
|
81
|
+
if match_path.is_a? Regexp
|
82
|
+
request.fullpath =~ match_path
|
83
|
+
elsif match_path.respond_to?(:call)
|
84
|
+
match_path.call(request)
|
85
|
+
elsif match_path
|
86
|
+
request.fullpath.starts_with?("#{spree.admin_path}#{match_path}")
|
87
|
+
elsif url.present?
|
88
|
+
request.fullpath.to_s.starts_with?(url.to_s)
|
89
|
+
elsif @sections.present?
|
90
|
+
@sections.include?(request.controller_class.controller_name.to_sym)
|
91
|
+
end
|
93
92
|
end
|
94
93
|
|
95
94
|
def url
|
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.3.
|
4
|
+
version: 4.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-24 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.3.
|
19
|
+
version: 4.3.5
|
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.3.
|
26
|
+
version: 4.3.5
|
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.3.
|
33
|
+
version: 4.3.5
|
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.3.
|
40
|
+
version: 4.3.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: font-awesome-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -919,7 +919,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
919
919
|
- !ruby/object:Gem::Version
|
920
920
|
version: 1.8.23
|
921
921
|
requirements: []
|
922
|
-
rubygems_version: 3.
|
922
|
+
rubygems_version: 3.5.9
|
923
923
|
signing_key:
|
924
924
|
specification_version: 4
|
925
925
|
summary: Admin interface for the Solidus e-commerce framework.
|