spree_backend 4.2.7 → 4.3.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/app/assets/config/spree_backend_manifest.js +129 -0
- data/app/assets/images/backend-arrows-fullscreen.svg +3 -0
- data/app/assets/images/backend-box.svg +3 -0
- data/app/assets/images/backend-circle-fill.svg +3 -0
- data/app/assets/images/backend-circle.svg +3 -0
- data/app/assets/images/backend-default-layout.svg +6 -0
- data/app/assets/images/backend-eye-slash-fill.svg +4 -0
- data/app/assets/images/backend-file-richtext.svg +4 -0
- data/app/assets/images/backend-fullscreen-exit.svg +3 -0
- data/app/assets/images/backend-fullscreen.svg +3 -0
- data/app/assets/images/backend-mobile.svg +5 -0
- data/app/assets/images/backend-pages.svg +10 -0
- data/app/assets/images/backend-phone.svg +4 -0
- data/app/assets/images/backend-reversed-layout.svg +6 -0
- data/app/assets/images/backend-spree-icon.svg +1 -0
- data/app/assets/images/backend-spree-logo.svg +6 -0
- data/app/assets/images/backend-store.svg +2 -13
- data/app/assets/images/backend-translate.svg +4 -0
- data/app/assets/images/backend-users.svg +2 -5
- data/app/assets/images/backend-window-sidebar.svg +4 -0
- data/app/assets/images/noimage/large.png +0 -0
- data/app/assets/images/noimage/mini.png +0 -0
- data/app/assets/images/noimage/product.png +0 -0
- data/app/assets/images/noimage/small.png +0 -0
- data/app/assets/javascripts/spree/backend/address_states.es6 +44 -0
- data/app/assets/javascripts/spree/backend/admin.js +45 -307
- data/app/assets/javascripts/spree/backend/checkouts/edit.js +22 -13
- data/app/assets/javascripts/spree/backend/cms/_index.es6 +4 -0
- data/app/assets/javascripts/spree/backend/cms/links.es6 +25 -0
- data/app/assets/javascripts/spree/backend/cms/live_preview.es6 +34 -0
- data/app/assets/javascripts/spree/backend/cms/page.es6 +133 -0
- data/app/assets/javascripts/spree/backend/cms/section.es6 +43 -0
- data/app/assets/javascripts/spree/backend/global/_index.js +11 -0
- data/app/assets/javascripts/spree/backend/global/alerts.es6 +66 -0
- data/app/assets/javascripts/spree/backend/global/api_functions.es6 +5 -0
- data/app/assets/javascripts/spree/backend/global/bootstrap.es6 +15 -0
- data/app/assets/javascripts/spree/backend/global/flatpickr.es6 +22 -0
- data/app/assets/javascripts/spree/backend/global/info_alert.es6 +38 -0
- data/app/assets/javascripts/spree/backend/global/radio_panel_toggle.es6 +18 -0
- data/app/assets/javascripts/spree/backend/global/ransack.es6 +108 -0
- data/app/assets/javascripts/spree/backend/global/responsive_menus.es6 +56 -0
- data/app/assets/javascripts/spree/backend/global/select2_autocomplete.es6 +143 -0
- data/app/assets/javascripts/spree/backend/global/select2_populate.es6 +61 -0
- data/app/assets/javascripts/spree/backend/global/side_scroll_indication.es6 +137 -0
- data/app/assets/javascripts/spree/backend/global/sortable.es6 +35 -0
- data/app/assets/javascripts/spree/backend/global/tinymce.es6 +11 -0
- data/app/assets/javascripts/spree/backend/menus/_index.es6 +2 -0
- data/app/assets/javascripts/spree/backend/menus/menu.es6 +58 -0
- data/app/assets/javascripts/spree/backend/menus/menu_item.es6 +26 -0
- data/app/assets/javascripts/spree/backend/option_type_autocomplete.js +7 -17
- data/app/assets/javascripts/spree/backend/option_value_picker.js +10 -22
- data/app/assets/javascripts/spree/backend/payments/edit.js +1 -1
- data/app/assets/javascripts/spree/backend/payments/new.js +18 -5
- data/app/assets/javascripts/spree/backend/spree-select2.js +19 -1
- data/app/assets/javascripts/spree/backend/stock_location.js +1 -2
- data/app/assets/javascripts/spree/backend/taxons.js +74 -73
- data/app/assets/javascripts/spree/backend/user_picker.js +7 -10
- data/app/assets/javascripts/spree/backend.js +28 -1
- data/app/assets/javascripts/spree.js +78 -0
- data/app/assets/stylesheets/spree/backend/components/_filters.scss +1 -3
- data/app/assets/stylesheets/spree/backend/components/_main.scss +0 -1
- data/app/assets/stylesheets/spree/backend/components/_navbar.scss +35 -0
- data/app/assets/stylesheets/spree/backend/components/_navigation.scss +13 -0
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +0 -1
- data/app/assets/stylesheets/spree/backend/components/_tables.scss +4 -5
- data/app/assets/stylesheets/spree/backend/global/_mixins.scss +59 -0
- data/app/assets/stylesheets/spree/backend/plugins/_nav_x.scss +95 -0
- data/app/assets/stylesheets/spree/backend/plugins/_sweetalert2_custom.scss +100 -0
- data/app/assets/stylesheets/spree/backend/plugins/_tinymce_custom.scss +4 -0
- data/app/assets/stylesheets/spree/backend/shared/_base.scss +28 -26
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +8 -0
- data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +5 -0
- data/app/assets/stylesheets/spree/backend/views/_cms_pages.scss +148 -0
- data/app/assets/stylesheets/spree/backend/views/_menus.scss +61 -0
- data/app/controllers/concerns/spree/admin/order_concern.rb +24 -0
- data/app/controllers/concerns/spree/admin/product_concern.rb +11 -0
- data/app/controllers/spree/admin/base_controller.rb +63 -3
- data/app/controllers/spree/admin/cms_pages_controller.rb +29 -0
- data/app/controllers/spree/admin/cms_sections_controller.rb +15 -0
- data/app/controllers/spree/admin/customer_returns_controller.rb +4 -5
- data/app/controllers/spree/admin/errors_controller.rb +11 -0
- data/app/controllers/spree/admin/general_settings_controller.rb +1 -1
- data/app/controllers/spree/admin/images_controller.rb +8 -22
- data/app/controllers/spree/admin/log_entries_controller.rb +4 -3
- data/app/controllers/spree/admin/menu_items_controller.rb +33 -0
- data/app/controllers/spree/admin/menus_controller.rb +32 -0
- data/app/controllers/spree/admin/option_types_controller.rb +1 -1
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +6 -11
- data/app/controllers/spree/admin/orders_controller.rb +22 -30
- data/app/controllers/spree/admin/payment_methods_controller.rb +17 -4
- data/app/controllers/spree/admin/payments_controller.rb +5 -10
- data/app/controllers/spree/admin/prices_controller.rb +2 -2
- data/app/controllers/spree/admin/products_controller.rb +21 -10
- data/app/controllers/spree/admin/promotion_actions_controller.rb +1 -1
- data/app/controllers/spree/admin/promotion_rules_controller.rb +1 -1
- data/app/controllers/spree/admin/promotions_controller.rb +3 -3
- data/app/controllers/spree/admin/prototypes_controller.rb +1 -1
- data/app/controllers/spree/admin/reimbursements_controller.rb +1 -1
- data/app/controllers/spree/admin/reports_controller.rb +5 -1
- data/app/controllers/spree/admin/resource_controller.rb +35 -5
- data/app/controllers/spree/admin/return_index_controller.rb +1 -1
- data/app/controllers/spree/admin/state_changes_controller.rb +2 -7
- data/app/controllers/spree/admin/stock_items_controller.rb +2 -2
- data/app/controllers/spree/admin/stock_locations_controller.rb +2 -2
- data/app/controllers/spree/admin/stock_movements_controller.rb +1 -1
- data/app/controllers/spree/admin/stock_transfers_controller.rb +1 -1
- data/app/controllers/spree/admin/store_credits_controller.rb +13 -8
- data/app/controllers/spree/admin/stores_controller.rb +14 -17
- data/app/controllers/spree/admin/taxons_controller.rb +9 -5
- data/app/controllers/spree/admin/users_controller.rb +9 -7
- data/app/controllers/spree/admin/variants_controller.rb +16 -15
- data/app/helpers/spree/admin/base_helper.rb +52 -14
- data/app/helpers/spree/admin/cms_helper.rb +15 -0
- data/app/helpers/spree/admin/menu_helper.rb +30 -0
- data/app/helpers/spree/admin/stores_helper.rb +21 -0
- data/app/models/spree/backend_configuration.rb +2 -0
- data/app/views/spree/admin/adjustments/_adjustment.html.erb +7 -5
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +2 -2
- data/app/views/spree/admin/cms_pages/_form.html.erb +135 -0
- data/app/views/spree/admin/cms_pages/_live_preview_area.html.erb +61 -0
- data/app/views/spree/admin/cms_pages/_section_template.html.erb +16 -0
- data/app/views/spree/admin/cms_pages/edit.html.erb +21 -0
- data/app/views/spree/admin/cms_pages/index.html.erb +84 -0
- data/app/views/spree/admin/cms_pages/new.html.erb +8 -0
- data/app/views/spree/admin/cms_sections/_form.html.erb +69 -0
- data/app/views/spree/admin/cms_sections/edit.html.erb +19 -0
- data/app/views/spree/admin/cms_sections/new.html.erb +11 -0
- data/app/views/spree/admin/cms_sections/types/_featured_article.html.erb +50 -0
- data/app/views/spree/admin/cms_sections/types/_hero_image.html.erb +62 -0
- data/app/views/spree/admin/cms_sections/types/_image_gallery.html.erb +177 -0
- data/app/views/spree/admin/cms_sections/types/_product_carousel.html.erb +5 -0
- data/app/views/spree/admin/cms_sections/types/_rich_text_content.html.erb +4 -0
- data/app/views/spree/admin/cms_sections/types/_side_by_side_images.html.erb +121 -0
- data/app/views/spree/admin/countries/index.html.erb +5 -3
- data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +6 -4
- data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +9 -7
- data/app/views/spree/admin/customer_returns/index.html.erb +4 -2
- data/app/views/spree/admin/errors/forbidden.html.erb +0 -0
- data/app/views/spree/admin/images/index.html.erb +5 -3
- data/app/views/spree/admin/menu_items/_form.html.erb +115 -0
- data/app/views/spree/admin/menu_items/edit.html.erb +11 -0
- data/app/views/spree/admin/menu_items/new.html.erb +11 -0
- data/app/views/spree/admin/menus/_form.html.erb +19 -0
- data/app/views/spree/admin/menus/edit.html.erb +57 -0
- data/app/views/spree/admin/menus/index.html.erb +90 -0
- data/app/views/spree/admin/menus/nested_menu_items/_item_bar.html.erb +30 -0
- data/app/views/spree/admin/menus/new.html.erb +22 -0
- data/app/views/spree/admin/option_types/_form.html.erb +3 -0
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +5 -1
- data/app/views/spree/admin/option_types/index.html.erb +5 -3
- data/app/views/spree/admin/orders/_channel_form.html.erb +2 -2
- data/app/views/spree/admin/orders/_line_items.html.erb +9 -7
- data/app/views/spree/admin/orders/_shipment.html.erb +26 -18
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +10 -8
- data/app/views/spree/admin/orders/customer_details/_autocomplete.js.erb +2 -2
- data/app/views/spree/admin/orders/index.html.erb +100 -101
- data/app/views/spree/admin/payment_methods/_form.html.erb +6 -4
- data/app/views/spree/admin/payment_methods/edit.html.erb +1 -1
- data/app/views/spree/admin/payment_methods/index.html.erb +22 -3
- data/app/views/spree/admin/payment_methods/new.html.erb +1 -1
- data/app/views/spree/admin/payments/_list.html.erb +9 -7
- data/app/views/spree/admin/prices/_variant_prices.html.erb +7 -14
- data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +9 -7
- data/app/views/spree/admin/products/_autocomplete.js.erb +5 -5
- data/app/views/spree/admin/products/_form.html.erb +24 -5
- data/app/views/spree/admin/products/index.html.erb +14 -13
- data/app/views/spree/admin/products/new.html.erb +6 -1
- data/app/views/spree/admin/products/stock.html.erb +71 -68
- data/app/views/spree/admin/promotion_categories/index.html.erb +5 -3
- data/app/views/spree/admin/promotions/_form.html.erb +7 -0
- data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +1 -0
- data/app/views/spree/admin/promotions/calculators/_default_fields.html.erb +2 -1
- data/app/views/spree/admin/promotions/index.html.erb +33 -34
- data/app/views/spree/admin/properties/_form.html.erb +6 -0
- data/app/views/spree/admin/properties/index.html.erb +9 -3
- data/app/views/spree/admin/prototypes/_form.html.erb +1 -1
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +8 -6
- data/app/views/spree/admin/prototypes/index.html.erb +5 -3
- data/app/views/spree/admin/reimbursement_types/index.html.erb +5 -3
- data/app/views/spree/admin/reports/index.html.erb +1 -1
- data/app/views/spree/admin/reports/sales_total.html.erb +1 -1
- data/app/views/spree/admin/return_authorizations/_form.html.erb +2 -2
- data/app/views/spree/admin/return_authorizations/index.html.erb +7 -5
- data/app/views/spree/admin/return_index/customer_returns.html.erb +4 -2
- data/app/views/spree/admin/return_index/return_authorizations.html.erb +5 -3
- data/app/views/spree/admin/roles/index.html.erb +5 -3
- data/app/views/spree/admin/shared/_account_nav.html.erb +5 -5
- data/app/views/spree/admin/shared/_address_form.html.erb +5 -4
- data/app/views/spree/admin/shared/_content_header.html.erb +20 -6
- data/app/views/spree/admin/shared/_head.html.erb +2 -1
- data/app/views/spree/admin/shared/_header.html.erb +7 -10
- data/app/views/spree/admin/shared/_link_fields.html.erb +22 -0
- data/app/views/spree/admin/shared/_main_menu.html.erb +19 -4
- data/app/views/spree/admin/shared/_order_tabs.html.erb +1 -10
- data/app/views/spree/admin/shared/_paths.html.erb +8 -0
- data/app/views/spree/admin/shared/_refunds.html.erb +4 -2
- data/app/views/spree/admin/shared/_sidebar.html.erb +1 -1
- data/app/views/spree/admin/shared/_store_switcher.html.erb +23 -0
- data/app/views/spree/admin/shared/_table_filter.html.erb +6 -6
- data/app/views/spree/admin/shared/_translations.html.erb +2 -0
- data/app/views/spree/admin/shared/cms/_spree_product.html.erb +14 -0
- data/app/views/spree/admin/shared/cms/_spree_taxon.html.erb +14 -0
- data/app/views/spree/admin/shared/linkables/_home_page.html.erb +3 -0
- data/app/views/spree/admin/shared/linkables/_spree_cms_page.erb +28 -0
- data/app/views/spree/admin/shared/linkables/_spree_product.html.erb +20 -0
- data/app/views/spree/admin/shared/linkables/_spree_taxon.html.erb +22 -0
- data/app/views/spree/admin/shared/linkables/_url.html.erb +16 -0
- data/app/views/spree/admin/shared/named_types/_index.html.erb +7 -5
- data/app/views/spree/admin/shared/sub_menu/_configuration.html.erb +1 -3
- data/app/views/spree/admin/shared/sub_menu/_content.html.erb +4 -0
- data/app/views/spree/admin/shared/sub_menu/_stock.html.erb +4 -0
- data/app/views/spree/admin/shipping_categories/index.html.erb +5 -3
- data/app/views/spree/admin/shipping_methods/index.html.erb +5 -3
- data/app/views/spree/admin/states/_state_list.html.erb +5 -3
- data/app/views/spree/admin/stock_locations/index.html.erb +5 -3
- data/app/views/spree/admin/stock_transfers/index.html.erb +5 -4
- data/app/views/spree/admin/stock_transfers/new.html.erb +9 -7
- data/app/views/spree/admin/store_credit_categories/index.html.erb +5 -3
- data/app/views/spree/admin/store_credits/index.html.erb +7 -5
- data/app/views/spree/admin/stores/_form.html.erb +12 -2
- data/app/views/spree/admin/stores/index.html.erb +12 -10
- data/app/views/spree/admin/tax_categories/index.html.erb +5 -3
- data/app/views/spree/admin/tax_rates/index.html.erb +5 -3
- data/app/views/spree/admin/taxonomies/_list.html.erb +5 -3
- data/app/views/spree/admin/taxons/_form.html.erb +1 -1
- data/app/views/spree/admin/users/_addresses_form.html.erb +2 -4
- data/app/views/spree/admin/users/index.html.erb +5 -3
- data/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb +18 -12
- data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +12 -8
- data/app/views/spree/admin/variants/_split.js.erb +9 -7
- data/app/views/spree/admin/variants/index.html.erb +8 -5
- data/app/views/spree/admin/zones/index.html.erb +5 -3
- data/app/views/spree/layouts/admin.html.erb +16 -16
- data/config/initializers/assets.rb +5 -1
- data/config/routes.rb +16 -4
- data/lib/generators/spree/backend/install/install_generator.rb +22 -0
- data/lib/generators/spree/backend/install/templates/vendor/assets/javascripts/spree/backend/all.js +8 -0
- data/lib/generators/spree/backend/install/templates/vendor/assets/stylesheets/spree/backend/all.css +9 -0
- data/lib/spree/backend/engine.rb +4 -11
- data/lib/spree/backend.rb +7 -4
- data/lib/spree_backend.rb +0 -2
- data/spec/fixtures/files/favicon.ico +0 -0
- data/spec/fixtures/files/icon_512x512.png +0 -0
- data/spree_backend.gemspec +9 -4
- data/vendor/assets/javascripts/cleave.js +8 -0
- data/vendor/assets/javascripts/jsonapi-serializer.min.js +8 -0
- data/vendor/assets/javascripts/jsuri.js +458 -0
- data/vendor/assets/javascripts/sortable.js +2 -3709
- data/vendor/assets/javascripts/sweetalert2.js +2 -0
- metadata +193 -22
- data/app/assets/javascripts/spree/backend/address_states.js +0 -44
- data/app/assets/javascripts/spree/frontend/backend.js +0 -1
- data/app/assets/stylesheets/spree/frontend/backend.css +0 -1
- data/app/views/spree/admin/orders/_store_form.html.erb +0 -18
- /data/app/assets/stylesheets/spree/backend/plugins/{select2_bootstrap4.scss → _select2_bootstrap4.scss} +0 -0
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.
|
4
|
+
version: 4.3.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
@@ -9,36 +9,50 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_api
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 4.
|
20
|
+
version: 4.3.0.rc1
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 4.
|
27
|
+
version: 4.3.0.rc1
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: spree_core
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 4.
|
34
|
+
version: 4.3.0.rc1
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 4.
|
41
|
+
version: 4.3.0.rc1
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: babel-transpiler
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0.7'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0.7'
|
42
56
|
- !ruby/object:Gem::Dependency
|
43
57
|
name: bootstrap
|
44
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,6 +137,34 @@ dependencies:
|
|
123
137
|
- - "~>"
|
124
138
|
- !ruby/object:Gem::Version
|
125
139
|
version: '6.0'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: responders
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
type: :runtime
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: sass-rails
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '5'
|
161
|
+
type: :runtime
|
162
|
+
prerelease: false
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '5'
|
126
168
|
- !ruby/object:Gem::Dependency
|
127
169
|
name: select2-rails
|
128
170
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,7 +179,35 @@ dependencies:
|
|
137
179
|
- - "~>"
|
138
180
|
- !ruby/object:Gem::Version
|
139
181
|
version: '4.0'
|
140
|
-
|
182
|
+
- !ruby/object:Gem::Dependency
|
183
|
+
name: sprockets
|
184
|
+
requirement: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - "~>"
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '4.0'
|
189
|
+
type: :runtime
|
190
|
+
prerelease: false
|
191
|
+
version_requirements: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - "~>"
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '4.0'
|
196
|
+
- !ruby/object:Gem::Dependency
|
197
|
+
name: tinymce-rails
|
198
|
+
requirement: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
type: :runtime
|
204
|
+
prerelease: false
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - ">="
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '0'
|
210
|
+
description: Admin Dashboard for Spree eCommerce platform
|
141
211
|
email: hello@spreecommerce.org
|
142
212
|
executables: []
|
143
213
|
extensions: []
|
@@ -145,6 +215,7 @@ extra_rdoc_files: []
|
|
145
215
|
files:
|
146
216
|
- Gemfile
|
147
217
|
- Rakefile
|
218
|
+
- app/assets/config/spree_backend_manifest.js
|
148
219
|
- app/assets/images/admin/logo.png
|
149
220
|
- app/assets/images/backend-add.svg
|
150
221
|
- app/assets/images/backend-adjust.svg
|
@@ -153,6 +224,8 @@ files:
|
|
153
224
|
- app/assets/images/backend-arrow-left.svg
|
154
225
|
- app/assets/images/backend-arrow-right.svg
|
155
226
|
- app/assets/images/backend-arrow-up.svg
|
227
|
+
- app/assets/images/backend-arrows-fullscreen.svg
|
228
|
+
- app/assets/images/backend-box.svg
|
156
229
|
- app/assets/images/backend-calendar.svg
|
157
230
|
- app/assets/images/backend-cancel.svg
|
158
231
|
- app/assets/images/backend-capture.svg
|
@@ -161,8 +234,11 @@ files:
|
|
161
234
|
- app/assets/images/backend-chevron-left.svg
|
162
235
|
- app/assets/images/backend-chevron-right.svg
|
163
236
|
- app/assets/images/backend-chevron-up.svg
|
237
|
+
- app/assets/images/backend-circle-fill.svg
|
238
|
+
- app/assets/images/backend-circle.svg
|
164
239
|
- app/assets/images/backend-clone.svg
|
165
240
|
- app/assets/images/backend-close.svg
|
241
|
+
- app/assets/images/backend-default-layout.svg
|
166
242
|
- app/assets/images/backend-delete.svg
|
167
243
|
- app/assets/images/backend-double-chevron-left.svg
|
168
244
|
- app/assets/images/backend-double-chevron-right.svg
|
@@ -172,9 +248,13 @@ files:
|
|
172
248
|
- app/assets/images/backend-exit.svg
|
173
249
|
- app/assets/images/backend-extensions.svg
|
174
250
|
- app/assets/images/backend-eye-open.svg
|
251
|
+
- app/assets/images/backend-eye-slash-fill.svg
|
252
|
+
- app/assets/images/backend-file-richtext.svg
|
175
253
|
- app/assets/images/backend-file.svg
|
176
254
|
- app/assets/images/backend-filter.svg
|
177
255
|
- app/assets/images/backend-folder.svg
|
256
|
+
- app/assets/images/backend-fullscreen-exit.svg
|
257
|
+
- app/assets/images/backend-fullscreen.svg
|
178
258
|
- app/assets/images/backend-images.svg
|
179
259
|
- app/assets/images/backend-info.svg
|
180
260
|
- app/assets/images/backend-items.svg
|
@@ -182,12 +262,15 @@ files:
|
|
182
262
|
- app/assets/images/backend-list.svg
|
183
263
|
- app/assets/images/backend-location.svg
|
184
264
|
- app/assets/images/backend-menu.svg
|
265
|
+
- app/assets/images/backend-mobile.svg
|
185
266
|
- app/assets/images/backend-money.svg
|
186
267
|
- app/assets/images/backend-move.svg
|
187
268
|
- app/assets/images/backend-ok.svg
|
269
|
+
- app/assets/images/backend-pages.svg
|
188
270
|
- app/assets/images/backend-pagination-double-arrow-right.svg
|
189
271
|
- app/assets/images/backend-payments.svg
|
190
272
|
- app/assets/images/backend-pencil.svg
|
273
|
+
- app/assets/images/backend-phone.svg
|
191
274
|
- app/assets/images/backend-products.svg
|
192
275
|
- app/assets/images/backend-promotion.svg
|
193
276
|
- app/assets/images/backend-recycle.svg
|
@@ -195,6 +278,7 @@ files:
|
|
195
278
|
- app/assets/images/backend-report.svg
|
196
279
|
- app/assets/images/backend-resume.svg
|
197
280
|
- app/assets/images/backend-returns.svg
|
281
|
+
- app/assets/images/backend-reversed-layout.svg
|
198
282
|
- app/assets/images/backend-save.svg
|
199
283
|
- app/assets/images/backend-search.svg
|
200
284
|
- app/assets/images/backend-settings.svg
|
@@ -202,25 +286,56 @@ files:
|
|
202
286
|
- app/assets/images/backend-slack.svg
|
203
287
|
- app/assets/images/backend-sort.svg
|
204
288
|
- app/assets/images/backend-split.svg
|
289
|
+
- app/assets/images/backend-spree-icon.svg
|
290
|
+
- app/assets/images/backend-spree-logo.svg
|
205
291
|
- app/assets/images/backend-store.svg
|
206
292
|
- app/assets/images/backend-tick.svg
|
293
|
+
- app/assets/images/backend-translate.svg
|
207
294
|
- app/assets/images/backend-update.svg
|
208
295
|
- app/assets/images/backend-user.svg
|
209
296
|
- app/assets/images/backend-users.svg
|
210
297
|
- app/assets/images/backend-view.svg
|
211
298
|
- app/assets/images/backend-void.svg
|
299
|
+
- app/assets/images/backend-window-sidebar.svg
|
212
300
|
- app/assets/images/credit_cards/credit_card.gif
|
301
|
+
- app/assets/images/noimage/large.png
|
302
|
+
- app/assets/images/noimage/mini.png
|
303
|
+
- app/assets/images/noimage/product.png
|
304
|
+
- app/assets/images/noimage/small.png
|
305
|
+
- app/assets/javascripts/spree.js
|
213
306
|
- app/assets/javascripts/spree/backend.js
|
214
|
-
- app/assets/javascripts/spree/backend/address_states.
|
307
|
+
- app/assets/javascripts/spree/backend/address_states.es6
|
215
308
|
- app/assets/javascripts/spree/backend/adjustments.js
|
216
309
|
- app/assets/javascripts/spree/backend/admin.js
|
217
310
|
- app/assets/javascripts/spree/backend/calculator.js
|
218
311
|
- app/assets/javascripts/spree/backend/checkouts/edit.js
|
312
|
+
- app/assets/javascripts/spree/backend/cms/_index.es6
|
313
|
+
- app/assets/javascripts/spree/backend/cms/links.es6
|
314
|
+
- app/assets/javascripts/spree/backend/cms/live_preview.es6
|
315
|
+
- app/assets/javascripts/spree/backend/cms/page.es6
|
316
|
+
- app/assets/javascripts/spree/backend/cms/section.es6
|
219
317
|
- app/assets/javascripts/spree/backend/gateway.js
|
220
318
|
- app/assets/javascripts/spree/backend/general_settings.js
|
319
|
+
- app/assets/javascripts/spree/backend/global/_index.js
|
320
|
+
- app/assets/javascripts/spree/backend/global/alerts.es6
|
321
|
+
- app/assets/javascripts/spree/backend/global/api_functions.es6
|
322
|
+
- app/assets/javascripts/spree/backend/global/bootstrap.es6
|
323
|
+
- app/assets/javascripts/spree/backend/global/flatpickr.es6
|
324
|
+
- app/assets/javascripts/spree/backend/global/info_alert.es6
|
325
|
+
- app/assets/javascripts/spree/backend/global/radio_panel_toggle.es6
|
326
|
+
- app/assets/javascripts/spree/backend/global/ransack.es6
|
327
|
+
- app/assets/javascripts/spree/backend/global/responsive_menus.es6
|
328
|
+
- app/assets/javascripts/spree/backend/global/select2_autocomplete.es6
|
329
|
+
- app/assets/javascripts/spree/backend/global/select2_populate.es6
|
330
|
+
- app/assets/javascripts/spree/backend/global/side_scroll_indication.es6
|
331
|
+
- app/assets/javascripts/spree/backend/global/sortable.es6
|
332
|
+
- app/assets/javascripts/spree/backend/global/tinymce.es6
|
221
333
|
- app/assets/javascripts/spree/backend/handlebar_extensions.js
|
222
334
|
- app/assets/javascripts/spree/backend/line_items.js
|
223
335
|
- app/assets/javascripts/spree/backend/line_items_on_order_edit.js
|
336
|
+
- app/assets/javascripts/spree/backend/menus/_index.es6
|
337
|
+
- app/assets/javascripts/spree/backend/menus/menu.es6
|
338
|
+
- app/assets/javascripts/spree/backend/menus/menu_item.es6
|
224
339
|
- app/assets/javascripts/spree/backend/multi_currency.js
|
225
340
|
- app/assets/javascripts/spree/backend/option_type_autocomplete.js
|
226
341
|
- app/assets/javascripts/spree/backend/option_value_picker.js
|
@@ -249,7 +364,6 @@ files:
|
|
249
364
|
- app/assets/javascripts/spree/backend/variant_autocomplete.js
|
250
365
|
- app/assets/javascripts/spree/backend/variant_management.js
|
251
366
|
- app/assets/javascripts/spree/backend/zone.js
|
252
|
-
- app/assets/javascripts/spree/frontend/backend.js
|
253
367
|
- app/assets/stylesheets/spree/backend.css
|
254
368
|
- app/assets/stylesheets/spree/backend/components/_badges.scss
|
255
369
|
- app/assets/stylesheets/spree/backend/components/_buttons.scss
|
@@ -268,23 +382,34 @@ files:
|
|
268
382
|
- app/assets/stylesheets/spree/backend/global/_variables.scss
|
269
383
|
- app/assets/stylesheets/spree/backend/plugins/_flatpickr.scss
|
270
384
|
- app/assets/stylesheets/spree/backend/plugins/_jquery_ui.scss
|
385
|
+
- app/assets/stylesheets/spree/backend/plugins/_nav_x.scss
|
386
|
+
- app/assets/stylesheets/spree/backend/plugins/_select2_bootstrap4.scss
|
271
387
|
- app/assets/stylesheets/spree/backend/plugins/_select2_custom.scss
|
272
|
-
- app/assets/stylesheets/spree/backend/plugins/
|
388
|
+
- app/assets/stylesheets/spree/backend/plugins/_sweetalert2_custom.scss
|
389
|
+
- app/assets/stylesheets/spree/backend/plugins/_tinymce_custom.scss
|
273
390
|
- app/assets/stylesheets/spree/backend/shared/_base.scss
|
274
391
|
- app/assets/stylesheets/spree/backend/shared/_forms.scss
|
275
392
|
- app/assets/stylesheets/spree/backend/shared/_glyphicons_urls_fix.scss
|
276
393
|
- app/assets/stylesheets/spree/backend/spree_admin.css.scss
|
394
|
+
- app/assets/stylesheets/spree/backend/views/_cms_pages.scss
|
395
|
+
- app/assets/stylesheets/spree/backend/views/_menus.scss
|
277
396
|
- app/assets/stylesheets/spree/backend/views/_order_payments.scss
|
278
397
|
- app/assets/stylesheets/spree/backend/views/_product_properties.scss
|
279
398
|
- app/assets/stylesheets/spree/backend/views/prototypes.scss
|
280
|
-
- app/
|
399
|
+
- app/controllers/concerns/spree/admin/order_concern.rb
|
400
|
+
- app/controllers/concerns/spree/admin/product_concern.rb
|
281
401
|
- app/controllers/spree/admin/adjustments_controller.rb
|
282
402
|
- app/controllers/spree/admin/base_controller.rb
|
403
|
+
- app/controllers/spree/admin/cms_pages_controller.rb
|
404
|
+
- app/controllers/spree/admin/cms_sections_controller.rb
|
283
405
|
- app/controllers/spree/admin/countries_controller.rb
|
284
406
|
- app/controllers/spree/admin/customer_returns_controller.rb
|
407
|
+
- app/controllers/spree/admin/errors_controller.rb
|
285
408
|
- app/controllers/spree/admin/general_settings_controller.rb
|
286
409
|
- app/controllers/spree/admin/images_controller.rb
|
287
410
|
- app/controllers/spree/admin/log_entries_controller.rb
|
411
|
+
- app/controllers/spree/admin/menu_items_controller.rb
|
412
|
+
- app/controllers/spree/admin/menus_controller.rb
|
288
413
|
- app/controllers/spree/admin/option_types_controller.rb
|
289
414
|
- app/controllers/spree/admin/option_values_controller.rb
|
290
415
|
- app/controllers/spree/admin/orders/customer_details_controller.rb
|
@@ -332,8 +457,10 @@ files:
|
|
332
457
|
- app/controllers/spree/admin/zones_controller.rb
|
333
458
|
- app/helpers/spree/admin/adjustments_helper.rb
|
334
459
|
- app/helpers/spree/admin/base_helper.rb
|
460
|
+
- app/helpers/spree/admin/cms_helper.rb
|
335
461
|
- app/helpers/spree/admin/customer_returns_helper.rb
|
336
462
|
- app/helpers/spree/admin/images_helper.rb
|
463
|
+
- app/helpers/spree/admin/menu_helper.rb
|
337
464
|
- app/helpers/spree/admin/navigation_helper.rb
|
338
465
|
- app/helpers/spree/admin/orders_helper.rb
|
339
466
|
- app/helpers/spree/admin/payments_helper.rb
|
@@ -359,6 +486,21 @@ files:
|
|
359
486
|
- app/views/spree/admin/adjustments/edit.html.erb
|
360
487
|
- app/views/spree/admin/adjustments/index.html.erb
|
361
488
|
- app/views/spree/admin/adjustments/new.html.erb
|
489
|
+
- app/views/spree/admin/cms_pages/_form.html.erb
|
490
|
+
- app/views/spree/admin/cms_pages/_live_preview_area.html.erb
|
491
|
+
- app/views/spree/admin/cms_pages/_section_template.html.erb
|
492
|
+
- app/views/spree/admin/cms_pages/edit.html.erb
|
493
|
+
- app/views/spree/admin/cms_pages/index.html.erb
|
494
|
+
- app/views/spree/admin/cms_pages/new.html.erb
|
495
|
+
- app/views/spree/admin/cms_sections/_form.html.erb
|
496
|
+
- app/views/spree/admin/cms_sections/edit.html.erb
|
497
|
+
- app/views/spree/admin/cms_sections/new.html.erb
|
498
|
+
- app/views/spree/admin/cms_sections/types/_featured_article.html.erb
|
499
|
+
- app/views/spree/admin/cms_sections/types/_hero_image.html.erb
|
500
|
+
- app/views/spree/admin/cms_sections/types/_image_gallery.html.erb
|
501
|
+
- app/views/spree/admin/cms_sections/types/_product_carousel.html.erb
|
502
|
+
- app/views/spree/admin/cms_sections/types/_rich_text_content.html.erb
|
503
|
+
- app/views/spree/admin/cms_sections/types/_side_by_side_images.html.erb
|
362
504
|
- app/views/spree/admin/countries/_form.html.erb
|
363
505
|
- app/views/spree/admin/countries/edit.html.erb
|
364
506
|
- app/views/spree/admin/countries/index.html.erb
|
@@ -369,12 +511,21 @@ files:
|
|
369
511
|
- app/views/spree/admin/customer_returns/edit.html.erb
|
370
512
|
- app/views/spree/admin/customer_returns/index.html.erb
|
371
513
|
- app/views/spree/admin/customer_returns/new.html.erb
|
514
|
+
- app/views/spree/admin/errors/forbidden.html.erb
|
372
515
|
- app/views/spree/admin/general_settings/edit.html.erb
|
373
516
|
- app/views/spree/admin/images/_form.html.erb
|
374
517
|
- app/views/spree/admin/images/edit.html.erb
|
375
518
|
- app/views/spree/admin/images/index.html.erb
|
376
519
|
- app/views/spree/admin/images/new.html.erb
|
377
520
|
- app/views/spree/admin/log_entries/index.html.erb
|
521
|
+
- app/views/spree/admin/menu_items/_form.html.erb
|
522
|
+
- app/views/spree/admin/menu_items/edit.html.erb
|
523
|
+
- app/views/spree/admin/menu_items/new.html.erb
|
524
|
+
- app/views/spree/admin/menus/_form.html.erb
|
525
|
+
- app/views/spree/admin/menus/edit.html.erb
|
526
|
+
- app/views/spree/admin/menus/index.html.erb
|
527
|
+
- app/views/spree/admin/menus/nested_menu_items/_item_bar.html.erb
|
528
|
+
- app/views/spree/admin/menus/new.html.erb
|
378
529
|
- app/views/spree/admin/option_types/_form.html.erb
|
379
530
|
- app/views/spree/admin/option_types/_option_value_fields.html.erb
|
380
531
|
- app/views/spree/admin/option_types/edit.html.erb
|
@@ -391,7 +542,6 @@ files:
|
|
391
542
|
- app/views/spree/admin/orders/_risk_analysis.html.erb
|
392
543
|
- app/views/spree/admin/orders/_shipment.html.erb
|
393
544
|
- app/views/spree/admin/orders/_shipment_manifest.html.erb
|
394
|
-
- app/views/spree/admin/orders/_store_form.html.erb
|
395
545
|
- app/views/spree/admin/orders/cart.html.erb
|
396
546
|
- app/views/spree/admin/orders/channel.html.erb
|
397
547
|
- app/views/spree/admin/orders/customer_details/_autocomplete.js.erb
|
@@ -510,27 +660,39 @@ files:
|
|
510
660
|
- app/views/spree/admin/shared/_head.html.erb
|
511
661
|
- app/views/spree/admin/shared/_header.html.erb
|
512
662
|
- app/views/spree/admin/shared/_index_table_options.html.erb
|
663
|
+
- app/views/spree/admin/shared/_link_fields.html.erb
|
513
664
|
- app/views/spree/admin/shared/_main_menu.html.erb
|
514
665
|
- app/views/spree/admin/shared/_new_resource_links.html.erb
|
515
666
|
- app/views/spree/admin/shared/_order_summary.html.erb
|
516
667
|
- app/views/spree/admin/shared/_order_tabs.html.erb
|
668
|
+
- app/views/spree/admin/shared/_paths.html.erb
|
517
669
|
- app/views/spree/admin/shared/_product_tabs.html.erb
|
518
670
|
- app/views/spree/admin/shared/_refunds.html.erb
|
519
671
|
- app/views/spree/admin/shared/_report_order_criteria.html.erb
|
520
672
|
- app/views/spree/admin/shared/_sidebar.html.erb
|
673
|
+
- app/views/spree/admin/shared/_store_switcher.html.erb
|
521
674
|
- app/views/spree/admin/shared/_table_filter.html.erb
|
522
675
|
- app/views/spree/admin/shared/_translations.html.erb
|
523
676
|
- app/views/spree/admin/shared/_update_order_state.js.erb
|
524
677
|
- app/views/spree/admin/shared/_update_store_credit.js.erb
|
525
678
|
- app/views/spree/admin/shared/_version.html.erb
|
679
|
+
- app/views/spree/admin/shared/cms/_spree_product.html.erb
|
680
|
+
- app/views/spree/admin/shared/cms/_spree_taxon.html.erb
|
681
|
+
- app/views/spree/admin/shared/linkables/_home_page.html.erb
|
682
|
+
- app/views/spree/admin/shared/linkables/_spree_cms_page.erb
|
683
|
+
- app/views/spree/admin/shared/linkables/_spree_product.html.erb
|
684
|
+
- app/views/spree/admin/shared/linkables/_spree_taxon.html.erb
|
685
|
+
- app/views/spree/admin/shared/linkables/_url.html.erb
|
526
686
|
- app/views/spree/admin/shared/named_types/_edit.html.erb
|
527
687
|
- app/views/spree/admin/shared/named_types/_form.html.erb
|
528
688
|
- app/views/spree/admin/shared/named_types/_index.html.erb
|
529
689
|
- app/views/spree/admin/shared/named_types/_new.html.erb
|
530
690
|
- app/views/spree/admin/shared/sub_menu/_configuration.html.erb
|
691
|
+
- app/views/spree/admin/shared/sub_menu/_content.html.erb
|
531
692
|
- app/views/spree/admin/shared/sub_menu/_product.html.erb
|
532
693
|
- app/views/spree/admin/shared/sub_menu/_promotion.html.erb
|
533
694
|
- app/views/spree/admin/shared/sub_menu/_returns.html.erb
|
695
|
+
- app/views/spree/admin/shared/sub_menu/_stock.html.erb
|
534
696
|
- app/views/spree/admin/shipping_categories/_form.html.erb
|
535
697
|
- app/views/spree/admin/shipping_categories/edit.html.erb
|
536
698
|
- app/views/spree/admin/shipping_categories/index.html.erb
|
@@ -623,20 +785,29 @@ files:
|
|
623
785
|
- config/initializers/ransack.rb
|
624
786
|
- config/routes.rb
|
625
787
|
- lib/generators/spree/backend/copy_views/copy_views_generator.rb
|
788
|
+
- lib/generators/spree/backend/install/install_generator.rb
|
789
|
+
- lib/generators/spree/backend/install/templates/vendor/assets/javascripts/spree/backend/all.js
|
790
|
+
- lib/generators/spree/backend/install/templates/vendor/assets/stylesheets/spree/backend/all.css
|
626
791
|
- lib/spree/backend.rb
|
627
792
|
- lib/spree/backend/action_callbacks.rb
|
628
793
|
- lib/spree/backend/callbacks.rb
|
629
794
|
- lib/spree/backend/engine.rb
|
630
795
|
- lib/spree_backend.rb
|
631
796
|
- script/rails
|
797
|
+
- spec/fixtures/files/favicon.ico
|
798
|
+
- spec/fixtures/files/icon_512x512.png
|
632
799
|
- spec/fixtures/thinking-cat.jpg
|
633
800
|
- spree_backend.gemspec
|
801
|
+
- vendor/assets/javascripts/cleave.js
|
634
802
|
- vendor/assets/javascripts/handlebars.js
|
635
803
|
- vendor/assets/javascripts/jquery.jstree/jquery.jstree.js
|
636
804
|
- vendor/assets/javascripts/js.cookie.js
|
805
|
+
- vendor/assets/javascripts/jsonapi-serializer.min.js
|
806
|
+
- vendor/assets/javascripts/jsuri.js
|
637
807
|
- vendor/assets/javascripts/modernizr.js
|
638
808
|
- vendor/assets/javascripts/purify.js
|
639
809
|
- vendor/assets/javascripts/sortable.js
|
810
|
+
- vendor/assets/javascripts/sweetalert2.js
|
640
811
|
- vendor/assets/javascripts/underscore-min.js
|
641
812
|
- vendor/assets/stylesheets/animate.css
|
642
813
|
- vendor/assets/stylesheets/jquery.jstree/themes/spree/style.scss
|
@@ -646,9 +817,9 @@ licenses:
|
|
646
817
|
- BSD-3-Clause
|
647
818
|
metadata:
|
648
819
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
649
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.
|
820
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.0.rc1
|
650
821
|
documentation_uri: https://guides.spreecommerce.org/
|
651
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.
|
822
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.3.0.rc1
|
652
823
|
post_install_message:
|
653
824
|
rdoc_options: []
|
654
825
|
require_paths:
|
@@ -660,13 +831,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
660
831
|
version: '2.5'
|
661
832
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
662
833
|
requirements:
|
663
|
-
- - "
|
834
|
+
- - ">"
|
664
835
|
- !ruby/object:Gem::Version
|
665
|
-
version:
|
836
|
+
version: 1.3.1
|
666
837
|
requirements:
|
667
838
|
- none
|
668
|
-
rubygems_version: 3.
|
839
|
+
rubygems_version: 3.2.3
|
669
840
|
signing_key:
|
670
841
|
specification_version: 4
|
671
|
-
summary:
|
842
|
+
summary: Admin Dashboard for Spree eCommerce platform
|
672
843
|
test_files: []
|
@@ -1,44 +0,0 @@
|
|
1
|
-
// eslint-disable-next-line camelcase, no-unused-vars
|
2
|
-
function update_state(region, done) {
|
3
|
-
'use strict'
|
4
|
-
|
5
|
-
var countryId = $('#' + region + 'country select').val()
|
6
|
-
var stateContainer = $('#' + region + 'state').parent()
|
7
|
-
var stateSelect = $('#' + region + 'state select')
|
8
|
-
var stateInput = $('#' + region + 'state input.state_name')
|
9
|
-
|
10
|
-
$.get(Spree.routes.states_search + '?country_id=' + countryId, function (data) {
|
11
|
-
var states = data.states
|
12
|
-
var statesRequired = data.states_required
|
13
|
-
if (states.length > 0) {
|
14
|
-
stateSelect.html('')
|
15
|
-
var statesWithBlank = [{
|
16
|
-
name: '',
|
17
|
-
id: ''
|
18
|
-
}].concat(states)
|
19
|
-
$.each(statesWithBlank, function (_pos, state) {
|
20
|
-
var opt = $(document.createElement('option'))
|
21
|
-
.prop('value', state.id)
|
22
|
-
.html(state.name)
|
23
|
-
stateSelect.append(opt).trigger('change')
|
24
|
-
})
|
25
|
-
stateSelect.prop('disabled', false).show()
|
26
|
-
stateSelect.select2()
|
27
|
-
stateInput.hide().prop('disabled', true)
|
28
|
-
stateContainer.show()
|
29
|
-
} else {
|
30
|
-
stateSelect.val(null).trigger('change')
|
31
|
-
if (stateSelect.data('select2')) {
|
32
|
-
stateSelect.select2('destroy')
|
33
|
-
}
|
34
|
-
stateSelect.hide()
|
35
|
-
if (statesRequired) {
|
36
|
-
stateInput.prop('disabled', false).show()
|
37
|
-
} else {
|
38
|
-
stateContainer.hide()
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
|
-
if (done) done()
|
43
|
-
})
|
44
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
// Placeholder for backend dummy application
|
@@ -1 +0,0 @@
|
|
1
|
-
/* Placeholder for backend dummy app */
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<div data-hook="store-form-container">
|
2
|
-
<%= form_for [:admin, order], method: :put, url: set_store_admin_order_url do |f| %>
|
3
|
-
<fieldset>
|
4
|
-
<div data-hook="admin_order_store_field">
|
5
|
-
<%= f.field_container :store_id, class: ['form-group'] do %>
|
6
|
-
<%= f.label :store_id, Spree.t(:store) %>
|
7
|
-
<%= f.collection_select(:store_id, @stores, :id, :unique_name, { include_blank: false }, { class: "select2" }) %>
|
8
|
-
<%= f.error_message_on :store_id %>
|
9
|
-
<% end %>
|
10
|
-
</div>
|
11
|
-
<div class="form-actions" data-hook="buttons">
|
12
|
-
<%= button Spree.t('actions.update'), 'recycle.svg', 'submit', {class: 'btn-success', data: { disable_with: "#{ Spree.t(:saving) }..." }} %>
|
13
|
-
<span class="or"><%= Spree.t(:or) %></span>
|
14
|
-
<%= button_link_to Spree.t('actions.cancel'), edit_admin_order_url(order), icon: 'cancel.svg' %>
|
15
|
-
</div>
|
16
|
-
<fieldset>
|
17
|
-
<% end %>
|
18
|
-
</div>
|
File without changes
|