biovision 0.12.211124.0 → 0.12.211128.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 +1 -2
- data/app/assets/stylesheets/biovision/components/carousel.scss +24 -24
- data/app/lib/biovision/components/base_component.rb +2 -2
- data/app/views/my/index/index.html.erb +7 -5
- data/app/views/shared/entity/edit.html.erb +9 -7
- data/app/views/shared/entity/new.html.erb +4 -2
- data/lib/biovision/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96079542e17de0ab507ecc2fd0636afa47cd5164e8d46d1e45432d5e679c6cb6
|
4
|
+
data.tar.gz: f1f71b7d4704de6d44f6c8a1feacf5b118a1286ca7d5247cd585f324e7d7dd46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f610aca3a5e06fa83bdd1c34b75a8da77bf84136b5653dcccb012cb4ed8347adf859de402559257d8370a138c771b17cae088195277eef2a31ced1dc3f07033f
|
7
|
+
data.tar.gz: aa56a7851be4b9463f6c3ace77a47338feec2f9ebd17dc4166615b5ea657259be1698977542a896220193aa70312ee5eef2fbc564d86d640555a853f35fbdbb8
|
data/README.md
CHANGED
@@ -134,8 +134,7 @@ concern :search do
|
|
134
134
|
end
|
135
135
|
|
136
136
|
concern :stories do
|
137
|
-
post 'stories/:slug' => :
|
138
|
-
post 'stories/:slug' => :member_story, on: :member, as: :story
|
137
|
+
post 'stories/:slug' => :story, on: :collection, as: :story
|
139
138
|
end
|
140
139
|
|
141
140
|
root 'index#index'
|
@@ -1,37 +1,37 @@
|
|
1
1
|
.js-biovision-carousel {
|
2
2
|
position: relative;
|
3
|
+
}
|
3
4
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
5
|
+
.carousel-button {
|
6
|
+
-webkit-backdrop-filter: blur(.5rem) grayscale(.75);
|
7
|
+
backdrop-filter: blur(.5rem) grayscale(.75);
|
8
|
+
background: rgba(255, 255, 255, .5) no-repeat center / auto 1.6rem;
|
9
|
+
border: none;
|
10
|
+
border-radius: 50%;
|
11
|
+
box-shadow: 0 0 .4rem rgba(0, 0, 0, .25);
|
12
|
+
cursor: pointer;
|
13
|
+
display: inline-block;
|
14
|
+
height: 3.2rem;
|
15
|
+
position: absolute;
|
16
|
+
top: 50%;
|
17
|
+
transform: translate(0, -50%);
|
18
|
+
transition: .25s;
|
19
|
+
width: 3.2rem;
|
20
|
+
z-index: 4;
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
}
|
22
|
+
&:active,
|
23
|
+
&:focus,
|
24
|
+
&:hover {
|
25
|
+
background-color: rgba(255, 255, 255, .75);
|
26
|
+
box-shadow: 0 0 .4rem rgba(0, 0, 0, .75);
|
27
27
|
}
|
28
28
|
|
29
|
-
|
29
|
+
&.prev {
|
30
30
|
background-image: image_url('biovision/components/carousel/arrow-left.svg');
|
31
31
|
left: var(--spacer-xxs);
|
32
32
|
}
|
33
33
|
|
34
|
-
|
34
|
+
&.next {
|
35
35
|
background-image: image_url('biovision/components/carousel/arrow-right.svg');
|
36
36
|
right: var(--spacer-xxs);
|
37
37
|
}
|
@@ -17,9 +17,9 @@ module Biovision
|
|
17
17
|
# @param [User|nil] user
|
18
18
|
def initialize(component, user = nil)
|
19
19
|
@component = component
|
20
|
-
|
20
|
+
@slug = component&.slug || 'base'
|
21
21
|
self.user = user
|
22
|
-
|
22
|
+
@name = I18n.t("biovision.components.#{slug}.name", default: slug)
|
23
23
|
end
|
24
24
|
|
25
25
|
# Receive component-specific handler by component slug
|
@@ -3,10 +3,12 @@
|
|
3
3
|
<span><%= t('.nav_text') %></span>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<article
|
7
|
-
<
|
6
|
+
<article>
|
7
|
+
<div class="content-wrapper">
|
8
|
+
<h1><%= t('.heading') %></h1>
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
10
|
+
<%= render partial: 'my/index/email', locals: { handler: component_handler } %>
|
11
|
+
<%= render 'my/index/navigation' %>
|
12
|
+
<%= render 'my/index/cards' %>
|
13
|
+
</div>
|
12
14
|
</article>
|
@@ -11,13 +11,15 @@
|
|
11
11
|
<% end %>
|
12
12
|
|
13
13
|
<article>
|
14
|
-
<
|
14
|
+
<div class="content-wrapper">
|
15
|
+
<h1><%= t("#{prefix}.edit.heading", default: default_title) %></h1>
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
<% if component_handler.permit?('edit', @entity) %>
|
18
|
+
<nav class="entity-actions">
|
19
|
+
<%= destroy_icon(@entity) %>
|
20
|
+
</nav>
|
21
|
+
<% end %>
|
21
22
|
|
22
|
-
|
23
|
+
<%= render partial: "#{controller_path}/form", locals: { entity: @entity } %>
|
24
|
+
</div>
|
23
25
|
</article>
|
@@ -10,7 +10,9 @@
|
|
10
10
|
<% end %>
|
11
11
|
|
12
12
|
<article>
|
13
|
-
<
|
13
|
+
<div class="content-wrapper">
|
14
|
+
<h1><%= t("#{prefix}.new.heading", default: default_title) %></h1>
|
14
15
|
|
15
|
-
|
16
|
+
<%= render partial: "#{controller_path}/form", locals: { entity: @entity } %>
|
17
|
+
</div>
|
16
18
|
</article>
|
data/lib/biovision/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: biovision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.211128.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxim Khan-Magomedov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|