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: 80addbfd5fe9f9691a5b0b37db9456e0920abb8c31907d067c8dfe60683bd6fc
4
- data.tar.gz: 1bd44fc8d34dd873c80ed5768da7d0b94d75aed63e6568370a64ba033dbb861c
3
+ metadata.gz: c61a734e5a96ba24272b92909d114e801ff0296c5069ee1da4203b66458e295c
4
+ data.tar.gz: acc01f788c4120e50a39dd257c92bcbc1ba63d5a9348339f0b6905eb6395270e
5
5
  SHA512:
6
- metadata.gz: 9a8bd33731c14f442c8857df913bb77c259c2edf64cec9a0d59a73cf22f7515f7c1a78ace886fbb46f710087d8b30ae470e26df1d176efe5b61c7fc3ba9c4e4e
7
- data.tar.gz: 2a03cdfae9a10222167c04af1b8deb133a491b1057f6796965135e3201b6e3f1d606710bf0340f646cff56726282824550918dff39391d1775710486b7c5cda0
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
@@ -11,7 +11,7 @@
11
11
  %a.small-box-footer{ href: @more_link }
12
12
  = @more_text
13
13
  %i{ class: @more_icon }
14
- - if @turbo_frame.present?
14
+ - if @src.present?
15
15
  .overlay.dark
16
16
  - if @turbo_frame.present?
17
17
  </turbo-frame>
@@ -1,3 +1,3 @@
1
1
  module Olivander
2
- VERSION = '0.1.2.28'.freeze
2
+ VERSION = '0.1.2.29'.freeze
3
3
  end
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.28
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