spree_backend 4.8.1 → 4.8.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc203b751097dffcd1b783fa13a58ac6b1106fde42cc0c2e450d4e12f53c0de7
|
4
|
+
data.tar.gz: c2422ced02c35b6aa74d804de3f1e6ebd11e032d24c6f6eba15619f8dcf7c4ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbdc71bc7b7adf140799626122c8e6445821240790b12457ceacb19ae0cb86de08db4f01d696c7c8e8bb21085a7ee660e54b88c779688b676e4b891d99b1bf72
|
7
|
+
data.tar.gz: 75d9c618e81a6a692adbd0037dd08237c941bd54eb623e81b3d68d9a6cc9b5f5237b8080fc66ddcc5a8bebe3fa4036ac27380533ace0858e41c9ef8cec758f28
|
@@ -1,8 +1,9 @@
|
|
1
1
|
// we need to delete select2 instances before document is saved to cache
|
2
2
|
// https://stackoverflow.com/questions/36497723/select2-with-ajax-gets-initialized-several-times-with-rails-turbolinks-events
|
3
3
|
document.addEventListener("turbo:before-cache", function() {
|
4
|
-
$('select.select2').
|
5
|
-
|
4
|
+
$('select.select2, select.select2-clear').each(function() {
|
5
|
+
$(this).select2('destroy')
|
6
|
+
})
|
6
7
|
})
|
7
8
|
|
8
9
|
document.addEventListener("spree:load", function() {
|
@@ -85,9 +85,11 @@ module Spree
|
|
85
85
|
build,
|
86
86
|
ItemBuilder.new('properties', admin_properties_path).
|
87
87
|
with_admin_ability_check(Spree::Property).
|
88
|
+
with_match_path('/properties').
|
88
89
|
build,
|
89
90
|
ItemBuilder.new('prototypes', admin_prototypes_path).
|
90
91
|
with_admin_ability_check(Spree::Prototype).
|
92
|
+
with_match_path('/prototypes').
|
91
93
|
build,
|
92
94
|
ItemBuilder.new('taxonomies', admin_taxonomies_path).
|
93
95
|
with_admin_ability_check(Spree::Taxonomy).
|
@@ -110,9 +112,11 @@ module Spree
|
|
110
112
|
items = [
|
111
113
|
ItemBuilder.new('stock_transfers', admin_stock_transfers_path).
|
112
114
|
with_manage_ability_check(Spree::StockTransfer).
|
115
|
+
with_match_path('/stock_transfers').
|
113
116
|
build,
|
114
117
|
ItemBuilder.new('stock_locations', admin_stock_locations_path).
|
115
118
|
with_manage_ability_check(Spree::StockLocation).
|
119
|
+
with_match_path('/stock_locations').
|
116
120
|
build
|
117
121
|
]
|
118
122
|
|
@@ -133,10 +137,14 @@ module Spree
|
|
133
137
|
|
134
138
|
def add_promotions_section(root)
|
135
139
|
items = [
|
136
|
-
ItemBuilder.new('promotions', admin_promotions_path).
|
140
|
+
ItemBuilder.new('promotions', admin_promotions_path).
|
141
|
+
with_admin_ability_check(Spree::Promotion).
|
142
|
+
with_match_path('/promotions').
|
143
|
+
build,
|
137
144
|
ItemBuilder.new('promotion_categories', admin_promotion_categories_path).
|
138
145
|
with_admin_ability_check(Spree::PromotionCategory).
|
139
146
|
with_label_translation_key('admin.tab.promotion_categories').
|
147
|
+
with_match_path('/promotion_categories').
|
140
148
|
build
|
141
149
|
]
|
142
150
|
|
@@ -217,35 +225,53 @@ module Spree
|
|
217
225
|
# rubocop:disable Metrics/AbcSize
|
218
226
|
def add_settings_section(root)
|
219
227
|
items = [
|
220
|
-
ItemBuilder.new('store', ->(store) { edit_admin_store_path(store) }).
|
228
|
+
ItemBuilder.new('store', ->(store) { edit_admin_store_path(store) }).
|
229
|
+
with_match_path(/\/admin\/stores\//).
|
230
|
+
build,
|
221
231
|
ItemBuilder.new('tax_categories', admin_tax_categories_path).
|
232
|
+
with_match_path('/tax_categories').
|
222
233
|
with_manage_ability_check(Spree::TaxCategory).
|
223
234
|
build,
|
224
|
-
ItemBuilder.new('tax_rates', admin_tax_rates_path).with_manage_ability_check(Spree::TaxRate).
|
225
|
-
|
226
|
-
|
235
|
+
ItemBuilder.new('tax_rates', admin_tax_rates_path).with_manage_ability_check(Spree::TaxRate).
|
236
|
+
with_match_path('/tax_rates').
|
237
|
+
build,
|
238
|
+
ItemBuilder.new('zones', admin_zones_path).with_manage_ability_check(Spree::Zone).
|
239
|
+
with_match_path('/zones').
|
240
|
+
build,
|
241
|
+
ItemBuilder.new('country', admin_countries_path).with_manage_ability_check(Spree::Country).
|
242
|
+
with_match_path(%r{^/admin/countries$}).
|
243
|
+
build,
|
227
244
|
ItemBuilder.new('states', ->(store) { admin_country_states_path(store.default_country) }).
|
245
|
+
with_match_path(/states/).
|
228
246
|
with_manage_ability_check(->(ability, store) { store.default_country && ability.can?(:manage, Spree::Country) }).
|
229
247
|
build,
|
230
248
|
ItemBuilder.new('shipping_methods', admin_shipping_methods_path).
|
249
|
+
with_match_path('/shipping_methods').
|
231
250
|
with_manage_ability_check(Spree::ShippingMethod).
|
232
251
|
build,
|
233
252
|
ItemBuilder.new('shipping_categories', admin_shipping_categories_path).
|
253
|
+
with_match_path('/shipping_categories').
|
234
254
|
with_manage_ability_check(Spree::ShippingCategory).
|
235
255
|
build,
|
236
256
|
ItemBuilder.new('store_credit_categories', admin_store_credit_categories_path).
|
257
|
+
with_match_path('/store_credit_categories').
|
237
258
|
with_manage_ability_check(Spree::StoreCreditCategory).
|
238
259
|
build,
|
239
260
|
ItemBuilder.new('refund_reasons', admin_refund_reasons_path).
|
261
|
+
with_match_path('/refund_reasons').
|
240
262
|
with_manage_ability_check(Spree::RefundReason).
|
241
263
|
build,
|
242
264
|
ItemBuilder.new('reimbursement_types', admin_reimbursement_types_path).
|
265
|
+
with_match_path('/reimbursement_types').
|
243
266
|
with_manage_ability_check(Spree::ReimbursementType).
|
244
267
|
build,
|
245
268
|
ItemBuilder.new('return_authorization_reasons', admin_return_authorization_reasons_path).
|
269
|
+
with_match_path('/return_authorization_reasons').
|
246
270
|
with_manage_ability_check(Spree::ReturnAuthorizationReason).
|
247
271
|
build,
|
248
|
-
ItemBuilder.new('roles', admin_roles_path).with_manage_ability_check(Spree::Role).
|
272
|
+
ItemBuilder.new('roles', admin_roles_path).with_manage_ability_check(Spree::Role).
|
273
|
+
with_match_path('/roles').
|
274
|
+
build
|
249
275
|
]
|
250
276
|
|
251
277
|
section = SectionBuilder.new('settings', 'gear-fill.svg').
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.8.
|
4
|
+
version: 4.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree
|
@@ -2488,9 +2488,9 @@ licenses:
|
|
2488
2488
|
- BSD-3-Clause
|
2489
2489
|
metadata:
|
2490
2490
|
bug_tracker_uri: https://github.com/spree/spree_backend/issues
|
2491
|
-
changelog_uri: https://github.com/spree/spree_backend/releases/tag/v4.8.
|
2491
|
+
changelog_uri: https://github.com/spree/spree_backend/releases/tag/v4.8.3
|
2492
2492
|
documentation_uri: https://docs.spreecommerce.org/
|
2493
|
-
source_code_uri: https://github.com/spree/spree_backend/tree/v4.8.
|
2493
|
+
source_code_uri: https://github.com/spree/spree_backend/tree/v4.8.3
|
2494
2494
|
post_install_message:
|
2495
2495
|
rdoc_options: []
|
2496
2496
|
require_paths:
|