spree_admin 5.2.0 → 5.2.1

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: 1084b5032793070ddd529dffb5ef08cff577830d4b4cd7836b3ebaa879a8f3fe
4
- data.tar.gz: 9899a67d432f5d0e9edc8bd15dd44652a3550d43f54f0c8f9173ece2a3bf33ec
3
+ metadata.gz: 4fbe916123c69564e83e4b3943d25188e326f1712ed7ca7501a4e7e81ce30ac1
4
+ data.tar.gz: 7f0f900204efffa95aaede9f07c57df78e4a1dff7eb880edcad84ba654e5493d
5
5
  SHA512:
6
- metadata.gz: d39e9737153c19ff657e3bc812b1164a303ae3d129cb0f0c1ad3c472c6e7bbd71328fd62156f22763c1b2944d8473b1c9aaba3e885a709ac3c6963e812e35b05
7
- data.tar.gz: a8e26462ee6cc31561f17c271b845f939b0ba98f1ec6aed080bd6a222ba5fb1cef50d4d4d2e277d6ccbb918cca4d73ad0f130c8d7cdc3837a8fc28c84ba728a2
6
+ metadata.gz: 9e075a5a762975bcd3ff53ee9638e54cc0c9ba677802775a990b330c97f696d369d80757e99ba3f51dc09d91f4906e89854c95eb36614edef03c7902a4d490ec
7
+ data.tar.gz: 70608538f458e741c268e4f95e913b33d4b5cf75220782efb7bc9a689d4898469df1cd586fba0224f616a31de1117f02a442c06b6db2ba8b5e32322cd5d9a448
data/README.md CHANGED
@@ -1,4 +1,21 @@
1
1
  # Spree Admin Dashboard
2
2
 
3
- Welcome to the Spree Admin Dashboard repository. This is a new, shiny admin dashboard for Spree Commerce which will replace the old admin dashboard in Spree 5.0.
3
+ Welcome to the Spree Admin Dashboard repository. This is a new, shiny admin dashboard for Spree Commerce 5.
4
4
 
5
+ ## Installation
6
+
7
+ To install the Spree Admin Dashboard, run the following command:
8
+
9
+ ```bash
10
+ bundle add spree_admin
11
+ ```
12
+
13
+ Run the install generator:
14
+
15
+ ```bash
16
+ bin/rails g spree:admin:install
17
+ ```
18
+
19
+ This will create the necessary files for the admin dashboard.
20
+
21
+ You will need to restart your web server and run `bin/dev` to start the development server for the admin dashboard.
@@ -80,7 +80,7 @@ dialog:open {
80
80
 
81
81
  .alerts-container {
82
82
  position: absolute;
83
- }
83
+ }
84
84
 
85
85
  @media (max-width: 991.98px) {
86
86
  max-width: 100vw;
@@ -93,6 +93,7 @@ dialog:open {
93
93
  height: 100%;
94
94
  flex-direction: column;
95
95
  justify-content: space-between;
96
+ overflow: hidden;
96
97
  }
97
98
 
98
99
  .drawer-header {
@@ -110,8 +111,6 @@ dialog:open {
110
111
  }
111
112
 
112
113
  .drawer-footer {
113
- position: sticky;
114
- bottom: 0;
115
114
  padding: $modal-inner-padding;
116
115
  display: flex;
117
116
  justify-content: space-between;
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
  <div class="w-5">
25
25
  <% if can?(:edit, line_item) %>
26
- <%= dropdown do %>
26
+ <%= dropdown portal: false do %>
27
27
  <%= dropdown_toggle class: 'btn-light btn-sm' do %>
28
28
  <%= icon "dots-vertical", class: "mr-0" %>
29
29
  <% end %>
@@ -1,10 +1,10 @@
1
1
  <%= form_for section.blocks.new, url: spree.admin_page_section_blocks_path(section), html: { class: 'list-group-item sidebar-page-block px-0 py-1 border-0 rounded'}, data: { controller: 'block-form', block_form_target: :form } do |f| %>
2
2
  <%= f.hidden_field :type, data: { block_form_target: 'type' } %>
3
3
 
4
- <%= dropdown do %>
4
+ <%= dropdown portal: false do %>
5
5
  <%= dropdown_toggle class: 'btn-sm btn-secondary d-flex-inline' do %>
6
6
  <%= icon("circle-plus") %>
7
- Add block
7
+ <%= Spree.t(:add_page_block) %>
8
8
  <% end %>
9
9
  <%= dropdown_menu do %>
10
10
  <% section.available_blocks_to_add.each do |block_class| %>
@@ -4,7 +4,7 @@
4
4
  <h5 class="card-title"><%= promotion_action.human_name %></h5>
5
5
 
6
6
  <% if can?(:update, promotion_action) || can?(:destroy, promotion_action) %>
7
- <%= dropdown do %>
7
+ <%= dropdown portal: false do %>
8
8
  <%= dropdown_toggle class: 'btn-light btn-sm px-1' do %>
9
9
  <%= icon('dots-vertical', class: 'mr-0') %>
10
10
  <% end %>
@@ -4,7 +4,7 @@
4
4
  <h5 class="card-title"><%= promotion_rule.human_name %></h5>
5
5
 
6
6
  <% if can?(:update, promotion_rule) || can?(:destroy, promotion_rule) %>
7
- <%= dropdown do %>
7
+ <%= dropdown portal: false do %>
8
8
  <%= dropdown_toggle class: 'btn-light btn-sm px-1' do %>
9
9
  <%= icon('dots-vertical', class: 'mr-0') %>
10
10
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vendo Connect Inc.
@@ -15,28 +15,28 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 5.2.0
18
+ version: 5.2.1
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: 5.2.0
25
+ version: 5.2.1
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: spree_api
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 5.2.0
32
+ version: 5.2.1
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 5.2.0
39
+ version: 5.2.1
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: active_link_to
42
42
  requirement: !ruby/object:Gem::Requirement
@@ -1271,9 +1271,9 @@ licenses:
1271
1271
  - AGPL-3.0-or-later
1272
1272
  metadata:
1273
1273
  bug_tracker_uri: https://github.com/spree/spree/issues
1274
- changelog_uri: https://github.com/spree/spree/releases/tag/v5.2.0
1274
+ changelog_uri: https://github.com/spree/spree/releases/tag/v5.2.1
1275
1275
  documentation_uri: https://docs.spreecommerce.org/
1276
- source_code_uri: https://github.com/spree/spree/tree/v5.2.0
1276
+ source_code_uri: https://github.com/spree/spree/tree/v5.2.1
1277
1277
  rdoc_options: []
1278
1278
  require_paths:
1279
1279
  - lib