five-two-nw-olivander 0.1.2.28 → 0.1.2.29
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c61a734e5a96ba24272b92909d114e801ff0296c5069ee1da4203b66458e295c
|
4
|
+
data.tar.gz: acc01f788c4120e50a39dd257c92bcbc1ba63d5a9348339f0b6905eb6395270e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e568cb13335373644accbe7546189f47ceae111d72b9dd77de4cc1d79cdae2f48c1cf619dee2823e763f0ce403a36f4e05b94bd617bee6d09cf4a89d44b16de
|
7
|
+
data.tar.gz: 6e1ecbeed3877a5bc9a2da54f0f2bbe71410f78d3b5ca341b37f79fe7f0891376f20019619d5d3db0fe90a9542b1445e7963bfc96bda4ef84a6b1c8f86cb5517
|
@@ -0,0 +1,15 @@
|
|
1
|
+
- if @turbo_frame.present?
|
2
|
+
<turbo-frame id="#{@turbo_frame}" src="#{@src}" loading="#{@loading}">
|
3
|
+
|
4
|
+
.card{ class: @background }
|
5
|
+
.card-header{ class: @header_background }
|
6
|
+
%h3.card-title= @title
|
7
|
+
.card-body
|
8
|
+
= content
|
9
|
+
.card-footer
|
10
|
+
- if @src.present?
|
11
|
+
.overlay.dark
|
12
|
+
%i.fas.fa-sync-alt.fa-spin.fa-lg
|
13
|
+
|
14
|
+
- if @turbo_frame.present?
|
15
|
+
</turbo-frame>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Olivander
|
4
|
+
module Components
|
5
|
+
class PortletComponent < ViewComponent::Base
|
6
|
+
def initialize(title, background: nil, header_background: 'bg-info', turbo_frame: nil, src: nil, loading: nil)
|
7
|
+
super
|
8
|
+
@title = title
|
9
|
+
@background = background
|
10
|
+
@header_background = header_background
|
11
|
+
@turbo_frame = turbo_frame
|
12
|
+
@src = src
|
13
|
+
@loading = loading
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/olivander/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: five-two-nw-olivander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.2.
|
4
|
+
version: 0.1.2.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Dennis
|
@@ -184,6 +184,8 @@ files:
|
|
184
184
|
- app/assets/stylesheets/olivander/application.css
|
185
185
|
- app/components/olivander/components/menu_item_component.html.haml
|
186
186
|
- app/components/olivander/components/menu_item_component.rb
|
187
|
+
- app/components/olivander/components/portlet_component.html.haml
|
188
|
+
- app/components/olivander/components/portlet_component.rb
|
187
189
|
- app/components/olivander/components/resource_form_component.html.haml
|
188
190
|
- app/components/olivander/components/resource_form_component.rb
|
189
191
|
- app/components/olivander/components/resource_show_component.html.haml
|