solidus_admin 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +61 -7
- data/Rakefile +1 -0
- data/app/assets/builds/solidus_admin/tailwind.css +197 -162
- data/app/assets/stylesheets/solidus_admin/dark.css +1 -0
- data/app/assets/stylesheets/solidus_admin/dimmed.css +1 -0
- data/app/components/solidus_admin/adjustment_reasons/edit/component.html.erb +27 -0
- data/app/components/solidus_admin/adjustment_reasons/edit/component.rb +12 -0
- data/app/components/solidus_admin/adjustment_reasons/edit/component.yml +8 -0
- data/app/components/solidus_admin/adjustment_reasons/index/component.rb +26 -19
- data/app/components/solidus_admin/adjustment_reasons/new/component.html.erb +28 -0
- data/app/components/solidus_admin/adjustment_reasons/new/component.rb +12 -0
- data/app/components/solidus_admin/adjustment_reasons/new/component.yml +8 -0
- data/app/components/solidus_admin/base_component.rb +4 -1
- data/app/components/solidus_admin/option_types/index/component.rb +21 -7
- data/app/components/solidus_admin/orders/index/component.rb +28 -23
- data/app/components/solidus_admin/orders/index/component.yml +1 -1
- data/app/components/solidus_admin/orders/show/address/component.html.erb +56 -54
- data/app/components/solidus_admin/orders/show/adjustments/index/adjustable/component.rb +27 -0
- data/app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_line_item/component.rb +14 -0
- data/app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_order/component.rb +11 -0
- data/app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_shipment/component.rb +15 -0
- data/app/components/solidus_admin/orders/show/adjustments/index/component.rb +147 -0
- data/app/components/solidus_admin/orders/show/adjustments/index/component.yml +21 -0
- data/app/components/solidus_admin/orders/show/adjustments/index/source/component.rb +26 -0
- data/app/components/solidus_admin/orders/show/adjustments/index/source/spree_tax_rate/component.rb +17 -0
- data/app/components/solidus_admin/orders/show/adjustments/index/source/spree_unit_cancel/component.rb +7 -0
- data/app/components/solidus_admin/orders/show/component.html.erb +7 -3
- data/app/components/solidus_admin/orders/show/component.rb +8 -0
- data/app/components/solidus_admin/orders/show/email/component.html.erb +18 -13
- data/app/components/solidus_admin/orders/show/email/component.rb +0 -4
- data/app/components/solidus_admin/orders/show/summary/component.html.erb +1 -1
- data/app/components/solidus_admin/payment_methods/index/component.rb +29 -19
- data/app/components/solidus_admin/payment_methods/index/component.yml +0 -5
- data/app/components/solidus_admin/products/index/component.rb +25 -15
- data/app/components/solidus_admin/products/index/component.yml +0 -2
- data/app/components/solidus_admin/products/show/component.html.erb +14 -3
- data/app/components/solidus_admin/products/status/component.rb +4 -1
- data/app/components/solidus_admin/products/status/component.yml +1 -0
- data/app/components/solidus_admin/properties/index/component.rb +18 -19
- data/app/components/solidus_admin/refund_reasons/edit/component.html.erb +27 -0
- data/app/components/solidus_admin/refund_reasons/edit/component.rb +12 -0
- data/app/components/solidus_admin/refund_reasons/edit/component.yml +8 -0
- data/app/components/solidus_admin/refund_reasons/index/component.rb +26 -19
- data/app/components/solidus_admin/refund_reasons/new/component.html.erb +27 -0
- data/app/components/solidus_admin/refund_reasons/new/component.rb +12 -0
- data/app/components/solidus_admin/refund_reasons/new/component.yml +6 -0
- data/app/components/solidus_admin/refunds_and_returns/component.rb +33 -13
- data/app/components/solidus_admin/reimbursement_types/index/component.rb +7 -25
- data/app/components/solidus_admin/return_reasons/edit/component.html.erb +26 -0
- data/app/components/solidus_admin/return_reasons/edit/component.rb +12 -0
- data/app/components/solidus_admin/return_reasons/edit/component.yml +8 -0
- data/app/components/solidus_admin/return_reasons/index/component.rb +27 -19
- data/app/components/solidus_admin/return_reasons/new/component.html.erb +27 -0
- data/app/components/solidus_admin/return_reasons/new/component.rb +12 -0
- data/app/components/solidus_admin/return_reasons/new/component.yml +8 -0
- data/app/components/solidus_admin/roles/edit/component.html.erb +33 -0
- data/app/components/solidus_admin/roles/edit/component.rb +20 -0
- data/app/components/solidus_admin/roles/edit/component.yml +19 -0
- data/app/components/solidus_admin/roles/index/component.rb +70 -0
- data/app/components/solidus_admin/roles/index/component.yml +6 -0
- data/app/components/solidus_admin/roles/new/component.html.erb +33 -0
- data/app/components/solidus_admin/roles/new/component.rb +20 -0
- data/app/components/solidus_admin/roles/new/component.yml +19 -0
- data/app/components/solidus_admin/shipping/component.rb +23 -11
- data/app/components/solidus_admin/shipping_categories/edit/component.html.erb +16 -0
- data/app/components/solidus_admin/shipping_categories/edit/component.rb +12 -0
- data/app/components/solidus_admin/shipping_categories/edit/component.yml +6 -0
- data/app/components/solidus_admin/shipping_categories/index/component.rb +37 -20
- data/app/components/solidus_admin/shipping_categories/new/component.html.erb +17 -0
- data/app/components/solidus_admin/shipping_categories/new/component.rb +12 -0
- data/app/components/solidus_admin/shipping_categories/new/component.yml +6 -0
- data/app/components/solidus_admin/shipping_methods/index/component.rb +19 -19
- data/app/components/solidus_admin/stock_items/edit/component.html.erb +66 -72
- data/app/components/solidus_admin/stock_items/edit/component.rb +0 -5
- data/app/components/solidus_admin/stock_items/index/component.rb +13 -20
- data/app/components/solidus_admin/stock_locations/index/component.rb +19 -11
- data/app/components/solidus_admin/stock_locations/index/component.yml +0 -3
- data/app/components/solidus_admin/store_credit_reasons/edit/component.html.erb +26 -0
- data/app/components/solidus_admin/store_credit_reasons/edit/component.rb +12 -0
- data/app/components/solidus_admin/store_credit_reasons/edit/component.yml +8 -0
- data/app/components/solidus_admin/store_credit_reasons/index/component.rb +26 -19
- data/app/components/solidus_admin/store_credit_reasons/new/component.html.erb +27 -0
- data/app/components/solidus_admin/store_credit_reasons/new/component.rb +12 -0
- data/app/components/solidus_admin/store_credit_reasons/new/component.yml +8 -0
- data/app/components/solidus_admin/stores/index/component.rb +18 -19
- data/app/components/solidus_admin/tax_categories/edit/component.html.erb +28 -0
- data/app/components/solidus_admin/tax_categories/edit/component.rb +12 -0
- data/app/components/solidus_admin/tax_categories/edit/component.yml +8 -0
- data/app/components/solidus_admin/tax_categories/index/component.rb +28 -21
- data/app/components/solidus_admin/tax_categories/new/component.html.erb +28 -0
- data/app/components/solidus_admin/tax_categories/new/component.rb +12 -0
- data/app/components/solidus_admin/tax_categories/new/component.yml +8 -0
- data/app/components/solidus_admin/tax_rates/index/component.rb +21 -17
- data/app/components/solidus_admin/taxes/component.rb +8 -8
- data/app/components/solidus_admin/taxonomies/index/component.rb +18 -12
- data/app/components/solidus_admin/ui/button/component.rb +1 -1
- data/app/components/solidus_admin/ui/checkbox_row/component.html.erb +29 -0
- data/app/components/solidus_admin/ui/checkbox_row/component.rb +11 -0
- data/app/components/solidus_admin/ui/forms/address/component.html.erb +27 -9
- data/app/components/solidus_admin/ui/forms/address/component.js +38 -13
- data/app/components/solidus_admin/ui/forms/search/component.html.erb +2 -3
- data/app/components/solidus_admin/ui/forms/search/component.js +3 -3
- data/app/components/solidus_admin/ui/modal/component.html.erb +7 -7
- data/app/components/solidus_admin/ui/modal/component.js +7 -0
- data/app/components/solidus_admin/ui/modal/component.rb +1 -1
- data/app/components/solidus_admin/ui/pages/index/component.html.erb +44 -0
- data/app/components/solidus_admin/ui/pages/index/component.rb +105 -0
- data/app/components/solidus_admin/ui/panel/component.html.erb +5 -16
- data/app/components/solidus_admin/ui/panel/component.rb +11 -7
- data/app/components/solidus_admin/ui/table/component.html.erb +2 -1
- data/app/components/solidus_admin/ui/table/component.js +31 -2
- data/app/components/solidus_admin/ui/table/component.rb +24 -8
- data/app/components/solidus_admin/ui/table/component.yml +1 -0
- data/app/components/solidus_admin/ui/thumbnail/component.rb +1 -1
- data/app/components/solidus_admin/ui/thumbnail_with_caption/component.html.erb +17 -0
- data/app/components/solidus_admin/ui/thumbnail_with_caption/component.rb +15 -0
- data/app/components/solidus_admin/users/addresses/component.html.erb +46 -0
- data/app/components/solidus_admin/users/addresses/component.rb +61 -0
- data/app/components/solidus_admin/users/addresses/component.yml +14 -0
- data/app/components/solidus_admin/users/edit/api_access/component.html.erb +49 -0
- data/app/components/solidus_admin/users/edit/api_access/component.js +9 -0
- data/app/components/solidus_admin/users/edit/api_access/component.rb +7 -0
- data/app/components/solidus_admin/users/edit/api_access/component.yml +10 -0
- data/app/components/solidus_admin/users/edit/component.html.erb +52 -0
- data/app/components/solidus_admin/users/edit/component.rb +51 -0
- data/app/components/solidus_admin/users/edit/component.yml +12 -0
- data/app/components/solidus_admin/users/index/component.rb +25 -16
- data/app/components/solidus_admin/users/index/component.yml +0 -3
- data/app/components/solidus_admin/users/items/component.html.erb +41 -0
- data/app/components/solidus_admin/users/items/component.rb +170 -0
- data/app/components/solidus_admin/users/items/component.yml +16 -0
- data/app/components/solidus_admin/users/orders/component.html.erb +42 -0
- data/app/components/solidus_admin/users/orders/component.rb +131 -0
- data/app/components/solidus_admin/users/orders/component.yml +12 -0
- data/app/components/solidus_admin/users/stats/component.html.erb +11 -0
- data/app/components/solidus_admin/users/stats/component.rb +9 -0
- data/app/components/solidus_admin/users/stats/component.yml +2 -0
- data/app/components/solidus_admin/users_and_roles/component.rb +24 -0
- data/app/components/solidus_admin/users_and_roles/component.yml +2 -0
- data/app/components/solidus_admin/zones/index/component.rb +19 -11
- data/app/controllers/solidus_admin/addresses_controller.rb +6 -1
- data/app/controllers/solidus_admin/adjustment_reasons_controller.rb +85 -10
- data/app/controllers/solidus_admin/adjustments_controller.rb +57 -0
- data/app/controllers/solidus_admin/customers_controller.rb +5 -1
- data/app/controllers/solidus_admin/orders_controller.rb +5 -1
- data/app/controllers/solidus_admin/products_controller.rb +11 -0
- data/app/controllers/solidus_admin/properties_controller.rb +1 -1
- data/app/controllers/solidus_admin/refund_reasons_controller.rb +85 -10
- data/app/controllers/solidus_admin/reimbursement_types_controller.rb +0 -5
- data/app/controllers/solidus_admin/return_reasons_controller.rb +85 -10
- data/app/controllers/solidus_admin/roles_controller.rb +118 -0
- data/app/controllers/solidus_admin/shipping_categories_controller.rb +87 -10
- data/app/controllers/solidus_admin/shipping_methods_controller.rb +0 -5
- data/app/controllers/solidus_admin/stock_items_controller.rb +6 -6
- data/app/controllers/solidus_admin/stock_locations_controller.rb +0 -5
- data/app/controllers/solidus_admin/store_credit_reasons_controller.rb +85 -10
- data/app/controllers/solidus_admin/stores_controller.rb +0 -5
- data/app/controllers/solidus_admin/tax_categories_controller.rb +89 -10
- data/app/controllers/solidus_admin/tax_rates_controller.rb +0 -5
- data/app/controllers/solidus_admin/users_controller.rb +85 -6
- data/app/controllers/solidus_admin/zones_controller.rb +0 -5
- data/app/helpers/solidus_admin/last_login_helper.rb +16 -0
- data/app/helpers/solidus_admin/permission_sets_helper.rb +32 -0
- data/app/views/layouts/solidus_admin/application.html.erb +2 -1
- data/app/views/layouts/solidus_admin/preview.html.erb +2 -0
- data/config/initializers/view_component.rb +1 -1
- data/config/locales/adjustment_reasons.en.yml +5 -1
- data/config/locales/adjustments.en.yml +10 -0
- data/config/locales/refund_reasons.en.yml +10 -0
- data/config/locales/return_reasons.en.yml +5 -1
- data/config/locales/roles.en.yml +10 -0
- data/config/locales/shipping_categories.en.yml +4 -0
- data/config/locales/store_credit_reasons.en.yml +5 -1
- data/config/locales/tax_categories.en.yml +4 -0
- data/config/locales/users.en.yml +10 -0
- data/config/routes.rb +24 -7
- data/docs/components.md +109 -0
- data/docs/{customizing_view_components.md → customizing_components.md} +2 -7
- data/docs/index_pages.md +146 -0
- data/docs/{customizing_menu_items.md → menu_items.md} +1 -1
- data/docs/stimulusjs.md +85 -0
- data/docs/{customizing_tailwindcss.md → tailwindcss.md} +27 -8
- data/lib/solidus_admin/component_registry.rb +40 -0
- data/lib/solidus_admin/configuration.rb +5 -27
- data/lib/solidus_admin/install_tailwindcss.rb +3 -1
- data/lib/solidus_admin/testing_support/admin_assets.rb +10 -0
- data/lib/solidus_admin/testing_support/component_helpers.rb +27 -0
- data/lib/solidus_admin/testing_support/dummy_app/rake_tasks.rb +60 -0
- data/lib/solidus_admin/testing_support/feature_helpers.rb +34 -0
- data/lib/solidus_admin/version.rb +1 -1
- data/solidus_admin.gemspec +7 -3
- metadata +111 -59
- data/app/components/solidus_admin/adjustment_reasons/index/component.html.erb +0 -32
- data/app/components/solidus_admin/adjustment_reasons/index/component.yml +0 -4
- data/app/components/solidus_admin/option_types/index/component.html.erb +0 -30
- data/app/components/solidus_admin/orders/index/component.html.erb +0 -35
- data/app/components/solidus_admin/payment_methods/index/component.html.erb +0 -38
- data/app/components/solidus_admin/products/index/component.html.erb +0 -34
- data/app/components/solidus_admin/promotion_categories/index/component.html.erb +0 -26
- data/app/components/solidus_admin/promotion_categories/index/component.rb +0 -57
- data/app/components/solidus_admin/promotion_categories/index/component.yml +0 -4
- data/app/components/solidus_admin/promotions/index/component.html.erb +0 -34
- data/app/components/solidus_admin/promotions/index/component.rb +0 -97
- data/app/components/solidus_admin/promotions/index/component.yml +0 -14
- data/app/components/solidus_admin/properties/index/component.html.erb +0 -34
- data/app/components/solidus_admin/properties/index/component.yml +0 -4
- data/app/components/solidus_admin/refund_reasons/index/component.html.erb +0 -31
- data/app/components/solidus_admin/refund_reasons/index/component.yml +0 -4
- data/app/components/solidus_admin/refunds_and_returns/component.html.erb +0 -26
- data/app/components/solidus_admin/reimbursement_types/index/component.html.erb +0 -22
- data/app/components/solidus_admin/reimbursement_types/index/component.yml +0 -4
- data/app/components/solidus_admin/return_reasons/index/component.html.erb +0 -31
- data/app/components/solidus_admin/return_reasons/index/component.yml +0 -4
- data/app/components/solidus_admin/shipping/component.html.erb +0 -30
- data/app/components/solidus_admin/shipping_categories/index/component.html.erb +0 -32
- data/app/components/solidus_admin/shipping_categories/index/component.yml +0 -4
- data/app/components/solidus_admin/shipping_methods/index/component.html.erb +0 -32
- data/app/components/solidus_admin/shipping_methods/index/component.yml +0 -4
- data/app/components/solidus_admin/stock_items/index/component.html.erb +0 -26
- data/app/components/solidus_admin/stock_locations/index/component.html.erb +0 -32
- data/app/components/solidus_admin/store_credit_reasons/index/component.html.erb +0 -31
- data/app/components/solidus_admin/store_credit_reasons/index/component.yml +0 -4
- data/app/components/solidus_admin/stores/index/component.html.erb +0 -34
- data/app/components/solidus_admin/stores/index/component.yml +0 -4
- data/app/components/solidus_admin/tax_categories/index/component.html.erb +0 -32
- data/app/components/solidus_admin/tax_categories/index/component.yml +0 -6
- data/app/components/solidus_admin/tax_rates/index/component.html.erb +0 -32
- data/app/components/solidus_admin/tax_rates/index/component.yml +0 -4
- data/app/components/solidus_admin/taxes/component.html.erb +0 -24
- data/app/components/solidus_admin/taxonomies/index/component.html.erb +0 -28
- data/app/components/solidus_admin/taxonomies/index/component.yml +0 -4
- data/app/components/solidus_admin/users/index/component.html.erb +0 -34
- data/app/components/solidus_admin/zones/index/component.html.erb +0 -35
- data/app/components/solidus_admin/zones/index/component.yml +0 -4
- data/app/controllers/solidus_admin/promotion_categories_controller.rb +0 -38
- data/app/controllers/solidus_admin/promotions_controller.rb +0 -46
- data/config/locales/promotion_categories.en.yml +0 -6
- data/config/locales/promotions.en.yml +0 -6
- data/config/locales/refund_reasons_.en.yml +0 -6
- /data/app/components/solidus_admin/{option_types → ui/pages}/index/component.yml +0 -0
@@ -73,7 +73,9 @@ create_file "lib/tasks/solidus_admin/tailwind.rake", <<~RUBY
|
|
73
73
|
end
|
74
74
|
RUBY
|
75
75
|
|
76
|
-
|
76
|
+
if Rails.root.join(".gitignore").exist?
|
77
|
+
append_file ".gitignore", "app/assets/builds/solidus_admin/"
|
78
|
+
end
|
77
79
|
|
78
80
|
unless Rails.root.join("Procfile.dev").exist?
|
79
81
|
create_file "Procfile.dev", <<~YAML
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.configure do |config|
|
4
|
+
config.when_first_matching_example_defined(solidus_admin: true) do
|
5
|
+
config.before(:suite) do
|
6
|
+
system('bin/rails solidus_admin:tailwindcss:build') or abort 'Failed to build Tailwind CSS'
|
7
|
+
Rails.application.precompiled_assets
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SolidusAdmin
|
4
|
+
module TestingSupport
|
5
|
+
module ComponentHelpers
|
6
|
+
# Mocks a component class with the given definition.
|
7
|
+
#
|
8
|
+
# @param definition [Proc] the component definition
|
9
|
+
# @example
|
10
|
+
# mock_component do
|
11
|
+
# def call
|
12
|
+
# "Rendered"
|
13
|
+
# end
|
14
|
+
# end
|
15
|
+
def mock_component(&definition)
|
16
|
+
location = caller(1, 1).first
|
17
|
+
component_class = Class.new(SolidusAdmin::BaseComponent)
|
18
|
+
# ViewComponent will complain if we don't fake a class name:
|
19
|
+
# @see https://github.com/ViewComponent/view_component/blob/5decd07842c48cbad82527daefa3fe9c65a4226a/lib/view_component/base.rb#L371
|
20
|
+
component_class.define_singleton_method(:name) { "Foo" }
|
21
|
+
component_class.define_singleton_method(:to_s) { "#{name} (#{location})" }
|
22
|
+
component_class.class_eval(&definition) if definition
|
23
|
+
component_class
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
namespace :solidus_admin do
|
4
|
+
namespace :tailwindcss do
|
5
|
+
desc "Build Tailwind CSS"
|
6
|
+
task build: :dummy_environment do
|
7
|
+
require "solidus_admin"
|
8
|
+
require "tailwindcss/commands"
|
9
|
+
|
10
|
+
config_file = <<~JS
|
11
|
+
const adminRoot = "#{SolidusAdmin::Engine.root}"
|
12
|
+
const solidusAdmin = require(`${adminRoot}/config/tailwind.config.js`)
|
13
|
+
|
14
|
+
module.exports = {
|
15
|
+
// Read how to use TailwindCSS presets: https://tailwindcss.com/docs/presets.
|
16
|
+
presets: [solidusAdmin],
|
17
|
+
|
18
|
+
content: [
|
19
|
+
// Include paths coming from SolidusAdmin.
|
20
|
+
...solidusAdmin.content,
|
21
|
+
|
22
|
+
// Include paths to your own components.
|
23
|
+
`${__dirname}/../../../../app/components/admin/**/*`,
|
24
|
+
`${__dirname}/../../../../lib/components/admin/**/*`,
|
25
|
+
],
|
26
|
+
}
|
27
|
+
JS
|
28
|
+
FileUtils.mkdir_p(DummyApp::Application.root.join("config"))
|
29
|
+
File.write(DummyApp::Application.root.join("config/tailwind.config.js"), config_file)
|
30
|
+
FileUtils.mkdir_p(DummyApp::Application.root.join("app/assets/stylesheets/solidus_admin"))
|
31
|
+
FileUtils.cp(
|
32
|
+
SolidusAdmin::Engine.root.join("app/assets/stylesheets/solidus_admin/application.tailwind.css"),
|
33
|
+
DummyApp::Application.root.join("app/assets/stylesheets/solidus_admin/application.tailwind.css")
|
34
|
+
)
|
35
|
+
|
36
|
+
tailwindcss = Tailwindcss::Commands.executable
|
37
|
+
|
38
|
+
tailwindcss_command = [
|
39
|
+
tailwindcss,
|
40
|
+
"--config", DummyApp::Application.root.join("config/tailwind.config.js"),
|
41
|
+
"--input", DummyApp::Application.root.join("app/assets/stylesheets/solidus_admin/application.tailwind.css"),
|
42
|
+
"--output", DummyApp::Application.root.join("assets/builds/solidus_admin/tailwind.css")
|
43
|
+
]
|
44
|
+
|
45
|
+
sh tailwindcss_command.shelljoin
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attach Tailwind CSS build to other tasks.
|
51
|
+
%w[
|
52
|
+
assets:precompile
|
53
|
+
test:prepare
|
54
|
+
spec:prepare
|
55
|
+
db:test:prepare
|
56
|
+
].each do |task_name|
|
57
|
+
next unless Rake::Task.task_defined?(task_name)
|
58
|
+
|
59
|
+
Rake::Task[task_name].enhance(["solidus_admin:tailwindcss:build"])
|
60
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SolidusAdmin
|
4
|
+
module TestingSupport
|
5
|
+
module FeatureHelpers
|
6
|
+
def sign_in(user)
|
7
|
+
allow_any_instance_of(SolidusAdmin::BaseController).to receive(:spree_current_user).and_return(user)
|
8
|
+
end
|
9
|
+
|
10
|
+
def stub_authorization!(user)
|
11
|
+
ability = Spree::Ability.new(user)
|
12
|
+
if block_given?
|
13
|
+
yield ability
|
14
|
+
else
|
15
|
+
ability.can :manage, :all
|
16
|
+
end
|
17
|
+
allow_any_instance_of(SolidusAdmin::BaseController).to receive(:current_ability).and_return(ability)
|
18
|
+
allow_any_instance_of(Spree::Admin::BaseController).to receive(:current_ability).and_return(ability)
|
19
|
+
end
|
20
|
+
|
21
|
+
def find_row(text)
|
22
|
+
find('table tbody tr', text: text)
|
23
|
+
end
|
24
|
+
|
25
|
+
def find_row_checkbox(text)
|
26
|
+
find_row(text).find('td:first-child input[type="checkbox"]')
|
27
|
+
end
|
28
|
+
|
29
|
+
def select_row(text)
|
30
|
+
find_row_checkbox(text).check
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
data/solidus_admin.gemspec
CHANGED
@@ -12,11 +12,15 @@ Gem::Specification.new do |s|
|
|
12
12
|
|
13
13
|
s.author = 'Solidus Team'
|
14
14
|
s.email = 'contact@solidus.io'
|
15
|
-
s.homepage = '
|
15
|
+
s.homepage = 'https://github.com/solidusio/solidus/blob/main/admin/README.md'
|
16
16
|
s.license = 'BSD-3-Clause'
|
17
17
|
|
18
18
|
s.metadata['rubygems_mfa_required'] = 'true'
|
19
19
|
|
20
|
+
s.metadata["homepage_uri"] = s.homepage
|
21
|
+
s.metadata["source_code_uri"] = "https://github.com/solidusio/solidus/tree/main/api"
|
22
|
+
s.metadata["changelog_uri"] = "https://github.com/solidusio/solidus/releases?q=%22solidus_admin%2Fv0%22&expanded=true"
|
23
|
+
|
20
24
|
s.files = `git ls-files -z`.split("\x0").reject do |f|
|
21
25
|
f.match(%r{^(spec|script)/})
|
22
26
|
end + ["app/assets/builds/solidus_admin/tailwind.css"]
|
@@ -29,6 +33,6 @@ Gem::Specification.new do |s|
|
|
29
33
|
s.add_dependency 'solidus_backend'
|
30
34
|
s.add_dependency 'solidus_core', '> 4.2'
|
31
35
|
s.add_dependency 'stimulus-rails', '~> 1.2'
|
32
|
-
s.add_dependency 'turbo-rails', '~>
|
33
|
-
s.add_dependency 'view_component', '~> 3.
|
36
|
+
s.add_dependency 'turbo-rails', '~> 2.0'
|
37
|
+
s.add_dependency 'view_component', '~> 3.9'
|
34
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: geared_pagination
|
@@ -92,28 +92,28 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
95
|
+
version: '2.0'
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
102
|
+
version: '2.0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: view_component
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '3.
|
109
|
+
version: '3.9'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '3.
|
116
|
+
version: '3.9'
|
117
117
|
description: Admin interface for the Solidus e-commerce framework.
|
118
118
|
email: contact@solidus.io
|
119
119
|
executables: []
|
@@ -137,9 +137,13 @@ files:
|
|
137
137
|
- app/assets/stylesheets/solidus_admin/application.tailwind.css
|
138
138
|
- app/assets/stylesheets/solidus_admin/dark.css
|
139
139
|
- app/assets/stylesheets/solidus_admin/dimmed.css
|
140
|
-
- app/components/solidus_admin/adjustment_reasons/
|
140
|
+
- app/components/solidus_admin/adjustment_reasons/edit/component.html.erb
|
141
|
+
- app/components/solidus_admin/adjustment_reasons/edit/component.rb
|
142
|
+
- app/components/solidus_admin/adjustment_reasons/edit/component.yml
|
141
143
|
- app/components/solidus_admin/adjustment_reasons/index/component.rb
|
142
|
-
- app/components/solidus_admin/adjustment_reasons/
|
144
|
+
- app/components/solidus_admin/adjustment_reasons/new/component.html.erb
|
145
|
+
- app/components/solidus_admin/adjustment_reasons/new/component.rb
|
146
|
+
- app/components/solidus_admin/adjustment_reasons/new/component.yml
|
143
147
|
- app/components/solidus_admin/base_component.rb
|
144
148
|
- app/components/solidus_admin/layout/feedback/component.html.erb
|
145
149
|
- app/components/solidus_admin/layout/feedback/component.rb
|
@@ -157,22 +161,28 @@ files:
|
|
157
161
|
- app/components/solidus_admin/layout/page_helpers.rb
|
158
162
|
- app/components/solidus_admin/layout/skip_link/component.rb
|
159
163
|
- app/components/solidus_admin/layout/skip_link/component.yml
|
160
|
-
- app/components/solidus_admin/option_types/index/component.html.erb
|
161
164
|
- app/components/solidus_admin/option_types/index/component.rb
|
162
|
-
- app/components/solidus_admin/option_types/index/component.yml
|
163
165
|
- app/components/solidus_admin/orders/cart/component.html.erb
|
164
166
|
- app/components/solidus_admin/orders/cart/component.js
|
165
167
|
- app/components/solidus_admin/orders/cart/component.rb
|
166
168
|
- app/components/solidus_admin/orders/cart/component.yml
|
167
169
|
- app/components/solidus_admin/orders/cart/result/component.html.erb
|
168
170
|
- app/components/solidus_admin/orders/cart/result/component.rb
|
169
|
-
- app/components/solidus_admin/orders/index/component.html.erb
|
170
171
|
- app/components/solidus_admin/orders/index/component.rb
|
171
172
|
- app/components/solidus_admin/orders/index/component.yml
|
172
173
|
- app/components/solidus_admin/orders/show/address/component.html.erb
|
173
174
|
- app/components/solidus_admin/orders/show/address/component.js
|
174
175
|
- app/components/solidus_admin/orders/show/address/component.rb
|
175
176
|
- app/components/solidus_admin/orders/show/address/component.yml
|
177
|
+
- app/components/solidus_admin/orders/show/adjustments/index/adjustable/component.rb
|
178
|
+
- app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_line_item/component.rb
|
179
|
+
- app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_order/component.rb
|
180
|
+
- app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_shipment/component.rb
|
181
|
+
- app/components/solidus_admin/orders/show/adjustments/index/component.rb
|
182
|
+
- app/components/solidus_admin/orders/show/adjustments/index/component.yml
|
183
|
+
- app/components/solidus_admin/orders/show/adjustments/index/source/component.rb
|
184
|
+
- app/components/solidus_admin/orders/show/adjustments/index/source/spree_tax_rate/component.rb
|
185
|
+
- app/components/solidus_admin/orders/show/adjustments/index/source/spree_unit_cancel/component.rb
|
176
186
|
- app/components/solidus_admin/orders/show/component.html.erb
|
177
187
|
- app/components/solidus_admin/orders/show/component.js
|
178
188
|
- app/components/solidus_admin/orders/show/component.rb
|
@@ -189,10 +199,8 @@ files:
|
|
189
199
|
- app/components/solidus_admin/orders/show/summary/component.html.erb
|
190
200
|
- app/components/solidus_admin/orders/show/summary/component.rb
|
191
201
|
- app/components/solidus_admin/orders/show/summary/component.yml
|
192
|
-
- app/components/solidus_admin/payment_methods/index/component.html.erb
|
193
202
|
- app/components/solidus_admin/payment_methods/index/component.rb
|
194
203
|
- app/components/solidus_admin/payment_methods/index/component.yml
|
195
|
-
- app/components/solidus_admin/products/index/component.html.erb
|
196
204
|
- app/components/solidus_admin/products/index/component.rb
|
197
205
|
- app/components/solidus_admin/products/index/component.yml
|
198
206
|
- app/components/solidus_admin/products/show/component.html.erb
|
@@ -203,67 +211,74 @@ files:
|
|
203
211
|
- app/components/solidus_admin/products/status/component.yml
|
204
212
|
- app/components/solidus_admin/products/stock/component.rb
|
205
213
|
- app/components/solidus_admin/products/stock/component.yml
|
206
|
-
- app/components/solidus_admin/promotion_categories/index/component.html.erb
|
207
|
-
- app/components/solidus_admin/promotion_categories/index/component.rb
|
208
|
-
- app/components/solidus_admin/promotion_categories/index/component.yml
|
209
|
-
- app/components/solidus_admin/promotions/index/component.html.erb
|
210
|
-
- app/components/solidus_admin/promotions/index/component.rb
|
211
|
-
- app/components/solidus_admin/promotions/index/component.yml
|
212
|
-
- app/components/solidus_admin/properties/index/component.html.erb
|
213
214
|
- app/components/solidus_admin/properties/index/component.rb
|
214
|
-
- app/components/solidus_admin/
|
215
|
-
- app/components/solidus_admin/refund_reasons/
|
215
|
+
- app/components/solidus_admin/refund_reasons/edit/component.html.erb
|
216
|
+
- app/components/solidus_admin/refund_reasons/edit/component.rb
|
217
|
+
- app/components/solidus_admin/refund_reasons/edit/component.yml
|
216
218
|
- app/components/solidus_admin/refund_reasons/index/component.rb
|
217
|
-
- app/components/solidus_admin/refund_reasons/
|
218
|
-
- app/components/solidus_admin/
|
219
|
+
- app/components/solidus_admin/refund_reasons/new/component.html.erb
|
220
|
+
- app/components/solidus_admin/refund_reasons/new/component.rb
|
221
|
+
- app/components/solidus_admin/refund_reasons/new/component.yml
|
219
222
|
- app/components/solidus_admin/refunds_and_returns/component.rb
|
220
223
|
- app/components/solidus_admin/refunds_and_returns/component.yml
|
221
|
-
- app/components/solidus_admin/reimbursement_types/index/component.html.erb
|
222
224
|
- app/components/solidus_admin/reimbursement_types/index/component.rb
|
223
|
-
- app/components/solidus_admin/
|
224
|
-
- app/components/solidus_admin/return_reasons/
|
225
|
+
- app/components/solidus_admin/return_reasons/edit/component.html.erb
|
226
|
+
- app/components/solidus_admin/return_reasons/edit/component.rb
|
227
|
+
- app/components/solidus_admin/return_reasons/edit/component.yml
|
225
228
|
- app/components/solidus_admin/return_reasons/index/component.rb
|
226
|
-
- app/components/solidus_admin/return_reasons/
|
227
|
-
- app/components/solidus_admin/
|
229
|
+
- app/components/solidus_admin/return_reasons/new/component.html.erb
|
230
|
+
- app/components/solidus_admin/return_reasons/new/component.rb
|
231
|
+
- app/components/solidus_admin/return_reasons/new/component.yml
|
232
|
+
- app/components/solidus_admin/roles/edit/component.html.erb
|
233
|
+
- app/components/solidus_admin/roles/edit/component.rb
|
234
|
+
- app/components/solidus_admin/roles/edit/component.yml
|
235
|
+
- app/components/solidus_admin/roles/index/component.rb
|
236
|
+
- app/components/solidus_admin/roles/index/component.yml
|
237
|
+
- app/components/solidus_admin/roles/new/component.html.erb
|
238
|
+
- app/components/solidus_admin/roles/new/component.rb
|
239
|
+
- app/components/solidus_admin/roles/new/component.yml
|
228
240
|
- app/components/solidus_admin/shipping/component.rb
|
229
241
|
- app/components/solidus_admin/shipping/component.yml
|
230
|
-
- app/components/solidus_admin/shipping_categories/
|
242
|
+
- app/components/solidus_admin/shipping_categories/edit/component.html.erb
|
243
|
+
- app/components/solidus_admin/shipping_categories/edit/component.rb
|
244
|
+
- app/components/solidus_admin/shipping_categories/edit/component.yml
|
231
245
|
- app/components/solidus_admin/shipping_categories/index/component.rb
|
232
|
-
- app/components/solidus_admin/shipping_categories/
|
233
|
-
- app/components/solidus_admin/
|
246
|
+
- app/components/solidus_admin/shipping_categories/new/component.html.erb
|
247
|
+
- app/components/solidus_admin/shipping_categories/new/component.rb
|
248
|
+
- app/components/solidus_admin/shipping_categories/new/component.yml
|
234
249
|
- app/components/solidus_admin/shipping_methods/index/component.rb
|
235
|
-
- app/components/solidus_admin/shipping_methods/index/component.yml
|
236
250
|
- app/components/solidus_admin/stock_items/edit/component.html.erb
|
237
251
|
- app/components/solidus_admin/stock_items/edit/component.js
|
238
252
|
- app/components/solidus_admin/stock_items/edit/component.rb
|
239
253
|
- app/components/solidus_admin/stock_items/edit/component.yml
|
240
|
-
- app/components/solidus_admin/stock_items/index/component.html.erb
|
241
254
|
- app/components/solidus_admin/stock_items/index/component.rb
|
242
255
|
- app/components/solidus_admin/stock_items/index/component.yml
|
243
|
-
- app/components/solidus_admin/stock_locations/index/component.html.erb
|
244
256
|
- app/components/solidus_admin/stock_locations/index/component.rb
|
245
257
|
- app/components/solidus_admin/stock_locations/index/component.yml
|
246
|
-
- app/components/solidus_admin/store_credit_reasons/
|
258
|
+
- app/components/solidus_admin/store_credit_reasons/edit/component.html.erb
|
259
|
+
- app/components/solidus_admin/store_credit_reasons/edit/component.rb
|
260
|
+
- app/components/solidus_admin/store_credit_reasons/edit/component.yml
|
247
261
|
- app/components/solidus_admin/store_credit_reasons/index/component.rb
|
248
|
-
- app/components/solidus_admin/store_credit_reasons/
|
249
|
-
- app/components/solidus_admin/
|
262
|
+
- app/components/solidus_admin/store_credit_reasons/new/component.html.erb
|
263
|
+
- app/components/solidus_admin/store_credit_reasons/new/component.rb
|
264
|
+
- app/components/solidus_admin/store_credit_reasons/new/component.yml
|
250
265
|
- app/components/solidus_admin/stores/index/component.rb
|
251
|
-
- app/components/solidus_admin/
|
252
|
-
- app/components/solidus_admin/tax_categories/
|
266
|
+
- app/components/solidus_admin/tax_categories/edit/component.html.erb
|
267
|
+
- app/components/solidus_admin/tax_categories/edit/component.rb
|
268
|
+
- app/components/solidus_admin/tax_categories/edit/component.yml
|
253
269
|
- app/components/solidus_admin/tax_categories/index/component.rb
|
254
|
-
- app/components/solidus_admin/tax_categories/
|
255
|
-
- app/components/solidus_admin/
|
270
|
+
- app/components/solidus_admin/tax_categories/new/component.html.erb
|
271
|
+
- app/components/solidus_admin/tax_categories/new/component.rb
|
272
|
+
- app/components/solidus_admin/tax_categories/new/component.yml
|
256
273
|
- app/components/solidus_admin/tax_rates/index/component.rb
|
257
|
-
- app/components/solidus_admin/tax_rates/index/component.yml
|
258
|
-
- app/components/solidus_admin/taxes/component.html.erb
|
259
274
|
- app/components/solidus_admin/taxes/component.rb
|
260
275
|
- app/components/solidus_admin/taxes/component.yml
|
261
|
-
- app/components/solidus_admin/taxonomies/index/component.html.erb
|
262
276
|
- app/components/solidus_admin/taxonomies/index/component.rb
|
263
|
-
- app/components/solidus_admin/taxonomies/index/component.yml
|
264
277
|
- app/components/solidus_admin/ui/badge/component.rb
|
265
278
|
- app/components/solidus_admin/ui/badge/component.yml
|
266
279
|
- app/components/solidus_admin/ui/button/component.rb
|
280
|
+
- app/components/solidus_admin/ui/checkbox_row/component.html.erb
|
281
|
+
- app/components/solidus_admin/ui/checkbox_row/component.rb
|
267
282
|
- app/components/solidus_admin/ui/details_list/component.html.erb
|
268
283
|
- app/components/solidus_admin/ui/details_list/component.rb
|
269
284
|
- app/components/solidus_admin/ui/dropdown/component.html.erb
|
@@ -293,8 +308,12 @@ files:
|
|
293
308
|
- app/components/solidus_admin/ui/icon/component.rb
|
294
309
|
- app/components/solidus_admin/ui/icon/names.txt
|
295
310
|
- app/components/solidus_admin/ui/modal/component.html.erb
|
311
|
+
- app/components/solidus_admin/ui/modal/component.js
|
296
312
|
- app/components/solidus_admin/ui/modal/component.rb
|
297
313
|
- app/components/solidus_admin/ui/modal/component.yml
|
314
|
+
- app/components/solidus_admin/ui/pages/index/component.html.erb
|
315
|
+
- app/components/solidus_admin/ui/pages/index/component.rb
|
316
|
+
- app/components/solidus_admin/ui/pages/index/component.yml
|
298
317
|
- app/components/solidus_admin/ui/panel/component.html.erb
|
299
318
|
- app/components/solidus_admin/ui/panel/component.rb
|
300
319
|
- app/components/solidus_admin/ui/panel/component.yml
|
@@ -314,6 +333,8 @@ files:
|
|
314
333
|
- app/components/solidus_admin/ui/table/ransack_filter/component.yml
|
315
334
|
- app/components/solidus_admin/ui/table/toolbar/component.rb
|
316
335
|
- app/components/solidus_admin/ui/thumbnail/component.rb
|
336
|
+
- app/components/solidus_admin/ui/thumbnail_with_caption/component.html.erb
|
337
|
+
- app/components/solidus_admin/ui/thumbnail_with_caption/component.rb
|
317
338
|
- app/components/solidus_admin/ui/toast/component.html.erb
|
318
339
|
- app/components/solidus_admin/ui/toast/component.js
|
319
340
|
- app/components/solidus_admin/ui/toast/component.rb
|
@@ -322,15 +343,34 @@ files:
|
|
322
343
|
- app/components/solidus_admin/ui/toggletip/component.js
|
323
344
|
- app/components/solidus_admin/ui/toggletip/component.rb
|
324
345
|
- app/components/solidus_admin/ui/toggletip/component.yml
|
325
|
-
- app/components/solidus_admin/users/
|
346
|
+
- app/components/solidus_admin/users/addresses/component.html.erb
|
347
|
+
- app/components/solidus_admin/users/addresses/component.rb
|
348
|
+
- app/components/solidus_admin/users/addresses/component.yml
|
349
|
+
- app/components/solidus_admin/users/edit/api_access/component.html.erb
|
350
|
+
- app/components/solidus_admin/users/edit/api_access/component.js
|
351
|
+
- app/components/solidus_admin/users/edit/api_access/component.rb
|
352
|
+
- app/components/solidus_admin/users/edit/api_access/component.yml
|
353
|
+
- app/components/solidus_admin/users/edit/component.html.erb
|
354
|
+
- app/components/solidus_admin/users/edit/component.rb
|
355
|
+
- app/components/solidus_admin/users/edit/component.yml
|
326
356
|
- app/components/solidus_admin/users/index/component.rb
|
327
357
|
- app/components/solidus_admin/users/index/component.yml
|
328
|
-
- app/components/solidus_admin/
|
358
|
+
- app/components/solidus_admin/users/items/component.html.erb
|
359
|
+
- app/components/solidus_admin/users/items/component.rb
|
360
|
+
- app/components/solidus_admin/users/items/component.yml
|
361
|
+
- app/components/solidus_admin/users/orders/component.html.erb
|
362
|
+
- app/components/solidus_admin/users/orders/component.rb
|
363
|
+
- app/components/solidus_admin/users/orders/component.yml
|
364
|
+
- app/components/solidus_admin/users/stats/component.html.erb
|
365
|
+
- app/components/solidus_admin/users/stats/component.rb
|
366
|
+
- app/components/solidus_admin/users/stats/component.yml
|
367
|
+
- app/components/solidus_admin/users_and_roles/component.rb
|
368
|
+
- app/components/solidus_admin/users_and_roles/component.yml
|
329
369
|
- app/components/solidus_admin/zones/index/component.rb
|
330
|
-
- app/components/solidus_admin/zones/index/component.yml
|
331
370
|
- app/controllers/solidus_admin/accounts_controller.rb
|
332
371
|
- app/controllers/solidus_admin/addresses_controller.rb
|
333
372
|
- app/controllers/solidus_admin/adjustment_reasons_controller.rb
|
373
|
+
- app/controllers/solidus_admin/adjustments_controller.rb
|
334
374
|
- app/controllers/solidus_admin/authentication_adapters/backend.rb
|
335
375
|
- app/controllers/solidus_admin/base_controller.rb
|
336
376
|
- app/controllers/solidus_admin/controller_helpers/authentication.rb
|
@@ -345,12 +385,11 @@ files:
|
|
345
385
|
- app/controllers/solidus_admin/orders_controller.rb
|
346
386
|
- app/controllers/solidus_admin/payment_methods_controller.rb
|
347
387
|
- app/controllers/solidus_admin/products_controller.rb
|
348
|
-
- app/controllers/solidus_admin/promotion_categories_controller.rb
|
349
|
-
- app/controllers/solidus_admin/promotions_controller.rb
|
350
388
|
- app/controllers/solidus_admin/properties_controller.rb
|
351
389
|
- app/controllers/solidus_admin/refund_reasons_controller.rb
|
352
390
|
- app/controllers/solidus_admin/reimbursement_types_controller.rb
|
353
391
|
- app/controllers/solidus_admin/return_reasons_controller.rb
|
392
|
+
- app/controllers/solidus_admin/roles_controller.rb
|
354
393
|
- app/controllers/solidus_admin/shipping_categories_controller.rb
|
355
394
|
- app/controllers/solidus_admin/shipping_methods_controller.rb
|
356
395
|
- app/controllers/solidus_admin/stock_items_controller.rb
|
@@ -363,7 +402,9 @@ files:
|
|
363
402
|
- app/controllers/solidus_admin/users_controller.rb
|
364
403
|
- app/controllers/solidus_admin/zones_controller.rb
|
365
404
|
- app/helpers/solidus_admin/components_helper.rb
|
405
|
+
- app/helpers/solidus_admin/last_login_helper.rb
|
366
406
|
- app/helpers/solidus_admin/layout_helper.rb
|
407
|
+
- app/helpers/solidus_admin/permission_sets_helper.rb
|
367
408
|
- app/javascript/solidus_admin/application.js
|
368
409
|
- app/javascript/solidus_admin/controllers/application.js
|
369
410
|
- app/javascript/solidus_admin/controllers/components.js
|
@@ -381,6 +422,7 @@ files:
|
|
381
422
|
- config/importmap.rb
|
382
423
|
- config/initializers/view_component.rb
|
383
424
|
- config/locales/adjustment_reasons.en.yml
|
425
|
+
- config/locales/adjustments.en.yml
|
384
426
|
- config/locales/customers.en.yml
|
385
427
|
- config/locales/errors.en.yml
|
386
428
|
- config/locales/line_items.en.yml
|
@@ -389,12 +431,11 @@ files:
|
|
389
431
|
- config/locales/orders.en.yml
|
390
432
|
- config/locales/payment_methods.en.yml
|
391
433
|
- config/locales/products.en.yml
|
392
|
-
- config/locales/promotion_categories.en.yml
|
393
|
-
- config/locales/promotions.en.yml
|
394
434
|
- config/locales/properties.en.yml
|
395
|
-
- config/locales/
|
435
|
+
- config/locales/refund_reasons.en.yml
|
396
436
|
- config/locales/reimbursement_types.en.yml
|
397
437
|
- config/locales/return_reasons.en.yml
|
438
|
+
- config/locales/roles.en.yml
|
398
439
|
- config/locales/shipping_categories.en.yml
|
399
440
|
- config/locales/shipping_methods.en.yml
|
400
441
|
- config/locales/stock_items.en.yml
|
@@ -408,9 +449,12 @@ files:
|
|
408
449
|
- config/locales/zones.en.yml
|
409
450
|
- config/routes.rb
|
410
451
|
- config/tailwind.config.js
|
411
|
-
- docs/
|
412
|
-
- docs/
|
413
|
-
- docs/
|
452
|
+
- docs/components.md
|
453
|
+
- docs/customizing_components.md
|
454
|
+
- docs/index_pages.md
|
455
|
+
- docs/menu_items.md
|
456
|
+
- docs/stimulusjs.md
|
457
|
+
- docs/tailwindcss.md
|
414
458
|
- lib/generators/solidus_admin/component/USAGE
|
415
459
|
- lib/generators/solidus_admin/component/component_generator.rb
|
416
460
|
- lib/generators/solidus_admin/component/templates/component.html.erb.tt
|
@@ -424,21 +468,29 @@ files:
|
|
424
468
|
- lib/generators/solidus_admin/install/templates/config/initializers/solidus_admin.rb.tt
|
425
469
|
- lib/solidus_admin.rb
|
426
470
|
- lib/solidus_admin/admin_resources.rb
|
471
|
+
- lib/solidus_admin/component_registry.rb
|
427
472
|
- lib/solidus_admin/configuration.rb
|
428
473
|
- lib/solidus_admin/engine.rb
|
429
474
|
- lib/solidus_admin/importmap.rb
|
430
475
|
- lib/solidus_admin/install_tailwindcss.rb
|
431
476
|
- lib/solidus_admin/menu_item.rb
|
432
477
|
- lib/solidus_admin/preview.rb
|
478
|
+
- lib/solidus_admin/testing_support/admin_assets.rb
|
479
|
+
- lib/solidus_admin/testing_support/component_helpers.rb
|
480
|
+
- lib/solidus_admin/testing_support/dummy_app/rake_tasks.rb
|
481
|
+
- lib/solidus_admin/testing_support/feature_helpers.rb
|
433
482
|
- lib/solidus_admin/version.rb
|
434
483
|
- lib/tasks/importmap.rake
|
435
484
|
- lib/tasks/tailwind.rake
|
436
485
|
- solidus_admin.gemspec
|
437
|
-
homepage:
|
486
|
+
homepage: https://github.com/solidusio/solidus/blob/main/admin/README.md
|
438
487
|
licenses:
|
439
488
|
- BSD-3-Clause
|
440
489
|
metadata:
|
441
490
|
rubygems_mfa_required: 'true'
|
491
|
+
homepage_uri: https://github.com/solidusio/solidus/blob/main/admin/README.md
|
492
|
+
source_code_uri: https://github.com/solidusio/solidus/tree/main/api
|
493
|
+
changelog_uri: https://github.com/solidusio/solidus/releases?q=%22solidus_admin%2Fv0%22&expanded=true
|
442
494
|
post_install_message:
|
443
495
|
rdoc_options: []
|
444
496
|
require_paths:
|
@@ -454,7 +506,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
454
506
|
- !ruby/object:Gem::Version
|
455
507
|
version: 1.8.23
|
456
508
|
requirements: []
|
457
|
-
rubygems_version: 3.
|
509
|
+
rubygems_version: 3.5.16
|
458
510
|
signing_key:
|
459
511
|
specification_version: 4
|
460
512
|
summary: Admin interface for the Solidus e-commerce framework.
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<%= render component('refunds_and_returns').new(current_class: Spree::AdjustmentReason) do |layout| %>
|
2
|
-
<% layout.with_actions do %>
|
3
|
-
<%= render component("ui/button").new(
|
4
|
-
tag: :a,
|
5
|
-
text: t('.add'),
|
6
|
-
href: spree.new_admin_adjustment_reason_path,
|
7
|
-
icon: "add-line",
|
8
|
-
class: "align-self-end w-full",
|
9
|
-
) %>
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
<%= render component('ui/table').new(
|
13
|
-
id: stimulus_id,
|
14
|
-
data: {
|
15
|
-
class: Spree::AdjustmentReason,
|
16
|
-
rows: @page.records,
|
17
|
-
url: ->(adjustment_reason) { spree.edit_admin_adjustment_reason_path(adjustment_reason) },
|
18
|
-
prev: prev_page_path,
|
19
|
-
next: next_page_path,
|
20
|
-
columns: columns,
|
21
|
-
batch_actions: batch_actions,
|
22
|
-
},
|
23
|
-
search: {
|
24
|
-
name: :q,
|
25
|
-
value: params[:q],
|
26
|
-
url: solidus_admin.adjustment_reasons_path,
|
27
|
-
searchbar_key: :name_or_code_cont,
|
28
|
-
scopes: scopes,
|
29
|
-
filters: filters,
|
30
|
-
},
|
31
|
-
) %>
|
32
|
-
<% end %>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<%= page do %>
|
2
|
-
<%= page_header do %>
|
3
|
-
<%= page_header_title title %>
|
4
|
-
<%= page_header_actions do %>
|
5
|
-
<%= render component("ui/button").new(
|
6
|
-
tag: :a,
|
7
|
-
text: t('.add'),
|
8
|
-
href: spree.new_admin_option_type_path,
|
9
|
-
icon: "add-line",
|
10
|
-
) %>
|
11
|
-
<% end %>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<%= render component('ui/table').new(
|
15
|
-
id: stimulus_id,
|
16
|
-
data: {
|
17
|
-
class: Spree::OptionType,
|
18
|
-
rows: @page.records,
|
19
|
-
url: ->(option_type) { spree.edit_admin_option_type_path(option_type) },
|
20
|
-
prev: prev_page_path,
|
21
|
-
next: next_page_path,
|
22
|
-
columns: columns,
|
23
|
-
batch_actions: batch_actions,
|
24
|
-
},
|
25
|
-
sortable: {
|
26
|
-
url: ->(option_type) { solidus_admin.move_option_type_path(option_type) },
|
27
|
-
param: 'position',
|
28
|
-
},
|
29
|
-
) %>
|
30
|
-
<% end %>
|