vime_view_components 0.1.0 → 0.1.1
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: da0e6c7dd8c2ad864070d41b8bd3b21924877ddb8d8c2e827e905b3d954ad756
|
4
|
+
data.tar.gz: 0a22517b5a4310d6678527e8faa8028fce65eb7917157a9215c52c41e0bd5084
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b07ee2dd74970cae6a532f37f650a7c17a0106eb775d442c32d44124cc6bb32ccbdef4d69d49256b77645ba86b40b143ac6d4f486d01afdd2ee473377866971
|
7
|
+
data.tar.gz: ea62889b422d43a20db499fb6a2d28b60dffe9154327d1277d5623695b31fc8e9bb6139efe592d7b65720af11cffbf6fa99e094f91a39bd8e892acbe40a23051
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# vime_view_components
|
2
2
|
|
3
|
-
![
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/vime_view_components.svg)](https://rubygems.org/gems/vime_view_components)
|
4
|
+
![Tests](https://github.com/asgerb/vime_view_components/workflows/Tests/badge.svg)
|
4
5
|
|
5
6
|
ViewComponents for vime.js
|
6
7
|
|
data/lib/vime/component.rb
CHANGED
@@ -10,7 +10,6 @@ module Vime
|
|
10
10
|
include Dry.Types()
|
11
11
|
|
12
12
|
CrossOrigin = String.enum("", "anonymous", "use-credentials")
|
13
|
-
Pin = String.enum("bottomLeft", "bottomRight", "topLeft", "topRight")
|
14
13
|
Preload = String.enum("", "auto", "metadata", "none")
|
15
14
|
TooltipDirection = String.enum("left", "right")
|
16
15
|
TooltipPosition = String.enum("bottom", "top")
|
@@ -15,7 +15,7 @@ module Vime
|
|
15
15
|
option :hide_on_mouse_leave, type: Types::Bool, default: -> { false }
|
16
16
|
option :hide_when_paused, type: Types::Bool, default: -> { false }
|
17
17
|
option :justify, type: Types::String.enum("center", "end", "space-around", "space-between", "space-evenly", "start"), default: -> { "start" }
|
18
|
-
option :pin, type: Types::
|
18
|
+
option :pin, type: Types::String.enum("bottomLeft", "bottomRight", "center", "topLeft", "topRight"), default: -> { "bottomLeft" }
|
19
19
|
option :wait_for_playback_start, type: Types::Bool, default: -> { false }
|
20
20
|
|
21
21
|
def call
|
@@ -6,7 +6,7 @@ module Vime
|
|
6
6
|
module Ui
|
7
7
|
module Settings
|
8
8
|
class DefaultSettings < Component
|
9
|
-
option :pin, type: Types::
|
9
|
+
option :pin, type: Types::String.enum("bottomLeft", "bottomRight", "topLeft", "topRight"), default: -> { "bottomRight" }
|
10
10
|
|
11
11
|
def call
|
12
12
|
tag "vime-default-settings", process_attrs(dom_attrs)
|
@@ -8,7 +8,7 @@ module Vime
|
|
8
8
|
class Settings < Component
|
9
9
|
option :active, type: Types::Bool, default: -> { false }
|
10
10
|
option :controls_height, type: Types::Integer, default: -> { 0 }
|
11
|
-
option :pin, type: Types::
|
11
|
+
option :pin, type: Types::String.enum("bottomLeft", "bottomRight", "topLeft", "topRight"), default: -> { "bottomRight" }
|
12
12
|
|
13
13
|
def call
|
14
14
|
content_tag "vime-settings", content, process_attrs(dom_attrs)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vime_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Asger Behncke Jacobsen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-11-
|
12
|
+
date: 2020-11-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dry-initializer
|