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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 388e43431448c1a1a17fa17d35cd664791e29cb0ce0347d0305eade52beee9f2
4
- data.tar.gz: 0a3898bfe1729d1493192d7afc18ce9a1fd49b08a3bc104b50d1a1495ef8d903
3
+ metadata.gz: a3b235bc7eb066c15eb3cc01ffb5e965aec769f00ef265721c72a63c991a6eb2
4
+ data.tar.gz: 1208e0e94bda77ae530a96f709d0c40c6ebf189f76ac38ed49c21b05d4d08f24
5
5
  SHA512:
6
- metadata.gz: 38f6dda602d371891230ea523e3de04ab5175c61e35777f29383799f8271bdf3df771f77853f2c7b17d2a520d215609fa3c3138783a40e5e0cdfc8befdc8aff7
7
- data.tar.gz: 0c9cfc91e7d5f2bb9c0d9f0819cdc042daea377876a465a759e962ae08148934250e5cab74609f98631b49e06301b0fc9f77dd11eec66b8e4eb110743f3b002e
6
+ metadata.gz: 8df9480b0c8dd6a440f449fe9ac57beef25b21146759465e279ae20fa474fa3721099d76397522a4ca324209384bea6e1cff2a1ed6c8056e0f1d00e7d6abd2e9
7
+ data.tar.gz: b759e9b5e79a220ad8061cd148ba661efb4803654ffbbe038b1d1db10c3ba553b366d0e829581435893f520459eeffa99da55c2e93fdeee2caa48d2942a8a870
@@ -1,51 +1,28 @@
1
- alchemy_module = {
2
- engine_name: "spree",
3
- name: "solidus",
4
- navigation: {
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
- data: {turbolinks: false, turbo: false},
10
- sub_navigation: [
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
- Alchemy.config.user_class = "Spree::User"
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
@@ -1,5 +1,5 @@
1
1
  module Alchemy
2
2
  module Solidus
3
- VERSION = "8.4.1"
3
+ VERSION = "8.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-solidus
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.4.1
4
+ version: 8.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen