solidus_backend 2.11.3 → 2.11.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of solidus_backend might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cff51310e9c979590ce028d47a2ade2d4f5bd6d2f1e27f3caed79654d2128c98
4
- data.tar.gz: 86ad8a72ef9e123905882a3137605f80349d821bd1d15becf0f314538a6aa69f
3
+ metadata.gz: f154797f26add4a007c753f802918666a17c1c8e22ca45ec121387f26ae6dc58
4
+ data.tar.gz: 2d6574a272cf0ae1667f9bdb5bab5a7058ac9f6050f955cf98b6e778818c78c4
5
5
  SHA512:
6
- metadata.gz: 6f256f85b420c0dc13d811db50df72ed7cd53267d4d11c730ac1099a20d939e03c1970c2017229935a023c85b03ed870d8207355f1c092017c4669fe03f2da54
7
- data.tar.gz: e9f17702ec6cfe6692ef13c8c63037137517ffc162c67b6d1d698f805e8f8271a9f3985532e8fe217d3bd2db5c6ae6734aa6e580e8cdefb32e8bce0811d7a7e8
6
+ metadata.gz: a1fdd05a1bbda7bf56ba8855d73d7dfe02a664b44529a5e098228784745d40c21b36e1c40a40407d56650a1e0c774b066bb4e90fab48d53dbe932f0b1654a87c
7
+ data.tar.gz: ff314cb4ffcdb0a9dce6d0981656e4ecc96909b409486b73c467867510090de7b84bf46b8982da76488c8be0bf9e8a6c8dbb8e6e099b980c745cfa04a319efc3
@@ -13,7 +13,7 @@ $secondary: $color-dark-accent !default;
13
13
  $blue: $color-primary !default;
14
14
  $red: $color-red !default;
15
15
  $orange: $color-yellow !default;
16
- $green: $color-success !default;
16
+ $green: $color-green !default;
17
17
 
18
18
  // Body
19
19
  //
@@ -1,3 +1,65 @@
1
+ $color-action-success-bg: theme-color-level(success, -10) !default;
2
+ $color-action-success-brd: theme-color-level(success, -9) !default;
3
+ $color-action-warning-bg: theme-color-level(warning, -10) !default;
4
+ $color-action-warning-brd: theme-color-level(warning, -9) !default;
5
+ $color-action-danger-bg: theme-color-level(danger, -10) !default;
6
+ $color-action-danger-brd: theme-color-level(danger, -9) !default;
7
+
8
+ $color-action-edit-bg: $color-action-success-bg !default;
9
+ $color-action-edit-brd: $color-action-success-brd !default;
10
+ $color-action-clone-bg: $color-action-warning-bg !default;
11
+ $color-action-clone-brd: $color-action-warning-brd !default;
12
+ $color-action-remove-bg: $color-action-danger-bg !default;
13
+ $color-action-remove-brd: $color-action-danger-brd !default;
14
+ $color-action-void-bg: $color-action-danger-bg !default;
15
+ $color-action-void-brd: $color-action-danger-brd !default;
16
+ $color-action-cancel-bg: $color-action-warning-bg !default;
17
+ $color-action-cancel-brd: $color-action-warning-brd !default;
18
+ $color-action-capture-bg: $color-action-success-bg !default;
19
+ $color-action-capture-brd: $color-action-success-brd !default;
20
+ $color-action-save-bg: $color-action-success-bg !default;
21
+ $color-action-save-brd: $color-action-success-brd !default;
22
+ $color-action-mail-bg: $color-action-success-bg !default;
23
+ $color-action-mail-brd: $color-action-success-brd !default;
24
+ $color-action-failure-bg: $color-action-danger-bg !default;
25
+ $color-action-failure-brd: $color-action-danger-brd !default;
26
+
27
+ $actions: (
28
+ edit,
29
+ clone,
30
+ remove,
31
+ void,
32
+ capture,
33
+ save,
34
+ cancel,
35
+ mail,
36
+ failure
37
+ ) !default;
38
+
39
+ $actions-bg-colors: (
40
+ $color-action-edit-bg,
41
+ $color-action-clone-bg,
42
+ $color-action-remove-bg,
43
+ $color-action-void-bg,
44
+ $color-action-capture-bg,
45
+ $color-action-save-bg,
46
+ $color-action-cancel-bg,
47
+ $color-action-mail-bg,
48
+ $color-action-failure-bg
49
+ ) !default;
50
+
51
+ $actions-brd-colors: (
52
+ $color-action-edit-brd,
53
+ $color-action-clone-brd,
54
+ $color-action-remove-brd,
55
+ $color-action-void-brd,
56
+ $color-action-capture-brd,
57
+ $color-action-save-brd,
58
+ $color-action-cancel-brd,
59
+ $color-action-mail-brd,
60
+ $color-action-failure-brd
61
+ ) !default;
62
+
1
63
  table tbody tr {
2
64
  &.highlight {
3
65
 
@@ -44,16 +44,16 @@
44
44
  color: $body-color;
45
45
 
46
46
  &.notice {
47
- background-color: rgba(lighten($color-notice, 15), .95);
48
- border-top-color: $color-notice;
47
+ background-color: rgba(theme-color-level(warning, -8), .95);
48
+ border-top-color: theme-color(warning);
49
49
  }
50
50
  &.success {
51
- background-color: rgba(lighten($color-success, 30), .95);
52
- border-top-color: $color-success;
51
+ background-color: rgba(theme-color-level(success, -10), .95);
52
+ border-top-color: theme-color(success);
53
53
  }
54
54
  &.error {
55
- background-color: rgba(lighten($color-error, 30), .95);
56
- border-top-color: $color-error;
55
+ background-color: rgba(theme-color-level(danger, -8), .95);
56
+ border-top-color: theme-color(danger);
57
57
  }
58
58
  }
59
59
 
@@ -11,7 +11,7 @@ $output-solidus-deprecation-warnings: true !default;
11
11
  @if $output-solidus-deprecation-warnings == true {
12
12
  @if global-variable-exists($variable) {
13
13
  @warn "[Solidus] [Deprecation] `$#{$variable}` is deprecated and will be " +
14
- "removed in 3.0.0. Please use Bootstraps $#{$replacement} instead";
14
+ "removed in 3.0.0. Please use Bootstraps #{$replacement} instead";
15
15
  }
16
16
  }
17
17
  }
@@ -62,11 +62,11 @@ $color-tab-active-bg: $color-white !default;
62
62
  $color-tab-active-border: $color-white !default;
63
63
 
64
64
  // Basic flash colors
65
- @include bs-deprecated-variable("color-success", "brand-success");
65
+ @include bs-deprecated-variable("color-success", "theme-color(success)");
66
66
  $color-success: $color-green !default;
67
- @include bs-deprecated-variable("color-notice", "brand-warning");
67
+ @include bs-deprecated-variable("color-notice", "theme-color(warning)");
68
68
  $color-notice: $color-yellow !default;
69
- @include bs-deprecated-variable("color-error", "brand-danger");
69
+ @include bs-deprecated-variable("color-error", "theme-color(danger)");
70
70
  $color-error: $color-red !default;
71
71
 
72
72
  // Breadcrumb custom variable
@@ -113,26 +113,6 @@ $color-pill-warning-text: $color-pill-text;
113
113
  $color-pill-error: #ff967b;
114
114
  $color-pill-error-text: $color-pill-text;
115
115
 
116
- // Actions colors
117
- $color-action-edit-bg: lighten($color-success, (5 * 5) ) !default;
118
- $color-action-edit-brd: lighten($color-success, (20 * 5) ) !default;
119
- $color-action-clone-bg: lighten($color-notice, (5 * 5) ) !default;
120
- $color-action-clone-brd: lighten($color-notice, (15 * 5) ) !default;
121
- $color-action-remove-bg: lighten($color-error, (5 * 5) ) !default;
122
- $color-action-remove-brd: lighten($color-error, (10 * 5) ) !default;
123
- $color-action-void-bg: lighten($color-error, (10 * 5) ) !default;
124
- $color-action-void-brd: lighten($color-error, (20 * 5) ) !default;
125
- $color-action-cancel-bg: lighten($color-notice, (10 * 5) ) !default;
126
- $color-action-cancel-brd: lighten($color-notice, (20 * 5) ) !default;
127
- $color-action-capture-bg: lighten($color-success, (5 * 5) ) !default;
128
- $color-action-capture-brd: lighten($color-success, (20 * 5) ) !default;
129
- $color-action-save-bg: lighten($color-success, (5 * 5) ) !default;
130
- $color-action-save-brd: lighten($color-success, (20 * 5) ) !default;
131
- $color-action-mail-bg: lighten($color-success, (5 * 5) ) !default;
132
- $color-action-mail-brd: lighten($color-success, (20 * 5) ) !default;
133
- $color-action-failure-bg: lighten($color-error, (10 * 5) ) !default;
134
- $color-action-failure-brd: lighten($color-error, (20 * 5) ) !default;
135
-
136
116
  // Available states
137
117
  $states: (
138
118
  active,
@@ -160,11 +140,6 @@ $states: (
160
140
  void
161
141
  ) !default;
162
142
 
163
- // Available actions
164
- $actions: edit, clone, remove, void, capture, save, cancel, mail, failure !default;
165
- $actions-bg-colors: $color-action-edit-bg, $color-action-clone-bg, $color-action-remove-bg, $color-action-void-bg, $color-action-capture-bg, $color-action-save-bg, $color-action-cancel-bg, $color-action-mail-bg, $color-action-failure-bg !default;
166
- $actions-brd-colors: $color-action-edit-brd, $color-action-clone-brd, $color-action-remove-brd, $color-action-void-brd, $color-action-capture-brd, $color-action-save-brd, $color-action-cancel-brd, $color-action-mail-brd, $color-action-failure-brd !default;
167
-
168
143
  // Sidebar
169
144
  //--------------------------------------------------------------
170
145
  $width-sidebar: 200px !default;
@@ -39,17 +39,17 @@ colors = [
39
39
  used_for: 'Buttons primary actions, links, active states.'
40
40
  },
41
41
  {
42
- name: '$color-success',
42
+ name: 'theme-color(success)',
43
43
  value: '#52B73B',
44
44
  used_for: 'Success actions.'
45
45
  },
46
46
  {
47
- name: '$color-error',
47
+ name: 'theme-color(danger)',
48
48
  value: '#CE452A',
49
49
  used_for: 'Errors, destructive action warnings.'
50
50
  },
51
51
  {
52
- name: '$color-notice',
52
+ name: 'theme-color(warning)',
53
53
  value: '#FFDD59',
54
54
  used_for: 'Warnings actions.'
55
55
  }
@@ -2,7 +2,7 @@
2
2
  <%= f.field_container attachment do %>
3
3
  <%= f.label attachment %><br>
4
4
  <%= f.file_field attachment %>
5
- <% if f.object.send(attachment).exists? %>
5
+ <% if f.object.send(attachment).present? %>
6
6
  <%= image_tag f.object.send(attachment, definition[:default_style]) %>
7
7
  <%= link_to t('spree.actions.remove'),
8
8
  admin_taxonomy_taxon_attachment_path(@taxonomy,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.3
4
+ version: 2.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-18 00:00:00.000000000 Z
11
+ date: 2021-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.11.3
19
+ version: 2.11.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.11.3
26
+ version: 2.11.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: solidus_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.11.3
33
+ version: 2.11.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.11.3
40
+ version: 2.11.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: coffee-rails
43
43
  requirement: !ruby/object:Gem::Requirement