alchemy-solidus 8.4.1 → 8.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/initializers/alchemy.rb +23 -46
- data/config/locales/alchemy_solidus.en.yml +11 -0
- data/lib/alchemy/solidus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3b235bc7eb066c15eb3cc01ffb5e965aec769f00ef265721c72a63c991a6eb2
|
|
4
|
+
data.tar.gz: 1208e0e94bda77ae530a96f709d0c40c6ebf189f76ac38ed49c21b05d4d08f24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8df9480b0c8dd6a440f449fe9ac57beef25b21146759465e279ae20fa474fa3721099d76397522a4ca324209384bea6e1cff2a1ed6c8056e0f1d00e7d6abd2e9
|
|
7
|
+
data.tar.gz: b759e9b5e79a220ad8061cd148ba661efb4803654ffbbe038b1d1db10c3ba553b366d0e829581435893f520459eeffa99da55c2e93fdeee2caa48d2942a8a870
|
|
@@ -1,51 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
engine_name: "spree",
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
store_menu_children = [
|
|
2
|
+
{title: "Orders", engine_name: "spree", controller: "/spree/admin/orders", action: "index"},
|
|
3
|
+
{title: "Products", engine_name: "spree", controller: "/spree/admin/products", action: "index"},
|
|
4
|
+
{title: "Stock", engine_name: "spree", controller: "/spree/admin/stock_items", action: "index"}
|
|
5
|
+
]
|
|
6
|
+
|
|
7
|
+
Alchemy.configure do |config|
|
|
8
|
+
if defined?(Spree::Auth::Engine)
|
|
9
|
+
store_menu_children.push(
|
|
10
|
+
{title: "Users", engine_name: "spree", controller: "/spree/admin/users", action: "index"}
|
|
11
|
+
)
|
|
12
|
+
config.user_class = "Spree::User"
|
|
13
|
+
config.current_user_method = :spree_current_user
|
|
14
|
+
config.logout_method = Devise.sign_out_via.to_s
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
config.menu.add(
|
|
18
|
+
name: "solidus",
|
|
19
|
+
title: "Store",
|
|
20
|
+
engine_name: "spree",
|
|
5
21
|
controller: "/spree/admin/orders",
|
|
6
22
|
action: "index",
|
|
7
|
-
name: "Store",
|
|
8
23
|
icon: "shopping-cart",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
controller: "/spree/admin/orders",
|
|
13
|
-
action: "index",
|
|
14
|
-
name: "Orders"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
controller: "/spree/admin/products",
|
|
18
|
-
action: "index",
|
|
19
|
-
name: "Products"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
controller: "/spree/admin/stock_items",
|
|
23
|
-
action: "index",
|
|
24
|
-
name: "Stock"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if defined?(Spree::Auth::Engine)
|
|
31
|
-
alchemy_module[:navigation][:sub_navigation].push(
|
|
32
|
-
{
|
|
33
|
-
controller: "/spree/admin/users",
|
|
34
|
-
action: "index",
|
|
35
|
-
name: "Users"
|
|
36
|
-
}
|
|
24
|
+
turbo: false,
|
|
25
|
+
children: store_menu_children
|
|
37
26
|
)
|
|
38
|
-
|
|
39
|
-
Alchemy.config.current_user_method = :spree_current_user
|
|
40
|
-
Rails.application.config.after_initialize do
|
|
41
|
-
Alchemy.config.logout_method = Devise.sign_out_via.to_s
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
Rails.application.config.to_prepare do
|
|
46
|
-
Alchemy::Modules.register_module(alchemy_module)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
Alchemy.configure do |config|
|
|
50
|
-
Alchemy.config.link_dialog_tabs.add("Alchemy::Admin::LinkDialog::ProductTab")
|
|
27
|
+
config.link_dialog_tabs.add("Alchemy::Admin::LinkDialog::ProductTab")
|
|
51
28
|
end
|
|
@@ -31,3 +31,14 @@ en:
|
|
|
31
31
|
<li><kbd>Editor</kbd> grants access to fully manage pages and languages.</li>
|
|
32
32
|
<li><kbd>Admin</kbd> grants access <strong>to manage everything</strong>.</li>
|
|
33
33
|
</ul>
|
|
34
|
+
activerecord:
|
|
35
|
+
models:
|
|
36
|
+
alchemy/ingredients/spree_product:
|
|
37
|
+
one: Product
|
|
38
|
+
other: Products
|
|
39
|
+
alchemy/ingredients/spree_taxon:
|
|
40
|
+
one: Taxon
|
|
41
|
+
other: Taxons
|
|
42
|
+
alchemy/ingredients/spree_variant:
|
|
43
|
+
one: Variant
|
|
44
|
+
other: Variants
|