vime_view_components 0.1.1 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vime/core/embed.rb +1 -1
- data/lib/vime/core/player.rb +1 -1
- data/lib/vime/core/playground.rb +1 -1
- data/lib/vime/providers/audio.rb +1 -1
- data/lib/vime/providers/dailymotion.rb +1 -1
- data/lib/vime/providers/dash.rb +1 -1
- data/lib/vime/providers/file.rb +1 -1
- data/lib/vime/providers/hls.rb +1 -1
- data/lib/vime/providers/video.rb +1 -1
- data/lib/vime/providers/vimeo.rb +1 -1
- data/lib/vime/providers/youtube.rb +1 -1
- data/lib/vime/ui/captions.rb +1 -1
- data/lib/vime/ui/click_to_play.rb +1 -1
- data/lib/vime/ui/controls/caption_control.rb +1 -1
- data/lib/vime/ui/controls/control.rb +1 -1
- data/lib/vime/ui/controls/control_group.rb +1 -1
- data/lib/vime/ui/controls/control_spacer.rb +1 -1
- data/lib/vime/ui/controls/controls.rb +1 -1
- data/lib/vime/ui/controls/default_controls.rb +1 -1
- data/lib/vime/ui/controls/fullscreen_control.rb +1 -1
- data/lib/vime/ui/controls/mute_control.rb +1 -1
- data/lib/vime/ui/controls/pip_control.rb +1 -1
- data/lib/vime/ui/controls/playback_control.rb +1 -1
- data/lib/vime/ui/controls/scrubber_control.rb +1 -1
- data/lib/vime/ui/controls/settings_control.rb +1 -1
- data/lib/vime/ui/controls/volume_control.rb +1 -1
- data/lib/vime/ui/dbl_click_fullscreen.rb +1 -1
- data/lib/vime/ui/default_ui.rb +1 -1
- data/lib/vime/ui/icon.rb +3 -3
- data/lib/vime/ui/icon_library.rb +21 -0
- data/lib/vime/ui/live_indicator.rb +1 -1
- data/lib/vime/ui/poster.rb +1 -1
- data/lib/vime/ui/scrim.rb +1 -1
- data/lib/vime/ui/settings/default_settings.rb +1 -1
- data/lib/vime/ui/settings/menu.rb +1 -1
- data/lib/vime/ui/settings/menu_item.rb +1 -1
- data/lib/vime/ui/settings/menu_radio.rb +1 -1
- data/lib/vime/ui/settings/menu_radio_group.rb +1 -1
- data/lib/vime/ui/settings/settings.rb +1 -1
- data/lib/vime/ui/settings/submenu.rb +1 -1
- data/lib/vime/ui/skeleton.rb +1 -1
- data/lib/vime/ui/slider.rb +1 -1
- data/lib/vime/ui/spinner.rb +1 -1
- data/lib/vime/ui/time/current_time.rb +1 -1
- data/lib/vime/ui/time/end_time.rb +1 -1
- data/lib/vime/ui/time/time.rb +1 -1
- data/lib/vime/ui/time/time_progress.rb +1 -1
- data/lib/vime/ui/tooltip.rb +1 -1
- data/lib/vime/ui/ui.rb +1 -1
- data/lib/vime_view_components.rb +10 -57
- data/lib/vime_view_components/version.rb +1 -1
- metadata +18 -4
- data/lib/vime/ui/icons.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7ac352241cd826bb3414c177a7123dda84c8dcf7f6b5b527b098913b28d2ee0
|
4
|
+
data.tar.gz: e8f897ae64ede55f8113e28bd51d3549ec329cdf9c74b31b6a0b2afe7260180c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2443de93a58b00da41814dd4d60c363b564f43b648aed52f85f351972e55d9c46bc994d7cbfd9444677757932c12781325cb5470ccbc0888ad34c988b5fc50b9
|
7
|
+
data.tar.gz: 6d36599a1247755b214ba812643de606f26a627ee58d4605dc8a96bd8cb5e6dd65e426a4ff1be0e27ad9df619f7dfc4f033c5d29807f9ee312795d5195af448d
|
data/lib/vime/core/embed.rb
CHANGED
data/lib/vime/core/player.rb
CHANGED
data/lib/vime/core/playground.rb
CHANGED
@@ -12,7 +12,7 @@ module Vime
|
|
12
12
|
option :theme, type: Types::String.enum("", "dark", "light"), default: -> { "" }
|
13
13
|
|
14
14
|
def call
|
15
|
-
content_tag "
|
15
|
+
content_tag "vm-playground", content, process_attrs(dom_attrs)
|
16
16
|
end
|
17
17
|
|
18
18
|
def dom_attrs
|
data/lib/vime/providers/audio.rb
CHANGED
data/lib/vime/providers/dash.rb
CHANGED
data/lib/vime/providers/file.rb
CHANGED
data/lib/vime/providers/hls.rb
CHANGED
data/lib/vime/providers/video.rb
CHANGED
data/lib/vime/providers/vimeo.rb
CHANGED
data/lib/vime/ui/captions.rb
CHANGED
@@ -9,7 +9,7 @@ module Vime
|
|
9
9
|
option :space, type: Types::String.enum("both", "bottom", "none", "top"), default: -> { "none" }
|
10
10
|
|
11
11
|
def call
|
12
|
-
content_tag "
|
12
|
+
content_tag "vm-control-group", content, process_attrs(dom_attrs)
|
13
13
|
end
|
14
14
|
|
15
15
|
def dom_attrs
|
@@ -19,7 +19,7 @@ module Vime
|
|
19
19
|
option :wait_for_playback_start, type: Types::Bool, default: -> { false }
|
20
20
|
|
21
21
|
def call
|
22
|
-
content_tag "
|
22
|
+
content_tag "vm-controls", content, process_attrs(dom_attrs)
|
23
23
|
end
|
24
24
|
|
25
25
|
def dom_attrs
|
data/lib/vime/ui/default_ui.rb
CHANGED
data/lib/vime/ui/icon.rb
CHANGED
@@ -5,15 +5,15 @@
|
|
5
5
|
module Vime
|
6
6
|
module Ui
|
7
7
|
class Icon < Component
|
8
|
-
option :
|
8
|
+
option :src, type: Types::String, optional: true
|
9
9
|
|
10
10
|
def call
|
11
|
-
content_tag "
|
11
|
+
content_tag "vm-icon", content, process_attrs(dom_attrs)
|
12
12
|
end
|
13
13
|
|
14
14
|
def dom_attrs
|
15
15
|
super.merge({
|
16
|
-
|
16
|
+
src: src,
|
17
17
|
})
|
18
18
|
end
|
19
19
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# @see https://vimejs.com/components/ui/icon-library
|
4
|
+
|
5
|
+
module Vime
|
6
|
+
module Ui
|
7
|
+
class IconLibrary < Component
|
8
|
+
option :name, type: Types::String, optional: true
|
9
|
+
|
10
|
+
def call
|
11
|
+
tag "vm-icons", process_attrs(dom_attrs)
|
12
|
+
end
|
13
|
+
|
14
|
+
def dom_attrs
|
15
|
+
super.merge({
|
16
|
+
name: name,
|
17
|
+
})
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/vime/ui/poster.rb
CHANGED
data/lib/vime/ui/scrim.rb
CHANGED
@@ -9,7 +9,7 @@ module Vime
|
|
9
9
|
option :pin, type: Types::String.enum("bottomLeft", "bottomRight", "topLeft", "topRight"), default: -> { "bottomRight" }
|
10
10
|
|
11
11
|
def call
|
12
|
-
tag "
|
12
|
+
tag "vm-default-settings", process_attrs(dom_attrs)
|
13
13
|
end
|
14
14
|
|
15
15
|
def dom_attrs
|
@@ -11,7 +11,7 @@ module Vime
|
|
11
11
|
option :pin, type: Types::String.enum("bottomLeft", "bottomRight", "topLeft", "topRight"), default: -> { "bottomRight" }
|
12
12
|
|
13
13
|
def call
|
14
|
-
content_tag "
|
14
|
+
content_tag "vm-settings", content, process_attrs(dom_attrs)
|
15
15
|
end
|
16
16
|
|
17
17
|
def dom_attrs
|
data/lib/vime/ui/skeleton.rb
CHANGED
data/lib/vime/ui/slider.rb
CHANGED
data/lib/vime/ui/spinner.rb
CHANGED
data/lib/vime/ui/time/time.rb
CHANGED
data/lib/vime/ui/tooltip.rb
CHANGED
@@ -11,7 +11,7 @@ module Vime
|
|
11
11
|
option :position, type: Types::String.enum("top", "bottom"), default: -> { "top" }
|
12
12
|
|
13
13
|
def call
|
14
|
-
content_tag "
|
14
|
+
content_tag "vm-tooltip", content, process_attrs(dom_attrs)
|
15
15
|
end
|
16
16
|
|
17
17
|
def dom_attrs
|
data/lib/vime/ui/ui.rb
CHANGED
data/lib/vime_view_components.rb
CHANGED
@@ -4,65 +4,18 @@ require "dry-initializer"
|
|
4
4
|
require "dry-types"
|
5
5
|
require "rails"
|
6
6
|
require "view_component"
|
7
|
-
|
8
|
-
require "vime/component"
|
9
|
-
|
10
|
-
require "vime/core/embed"
|
11
|
-
require "vime/core/player"
|
12
|
-
require "vime/core/playground"
|
13
|
-
|
14
|
-
require "vime/providers/audio"
|
15
|
-
require "vime/providers/dailymotion"
|
16
|
-
require "vime/providers/dash"
|
17
|
-
require "vime/providers/file"
|
18
|
-
require "vime/providers/hls"
|
19
|
-
require "vime/providers/video"
|
20
|
-
require "vime/providers/vimeo"
|
21
|
-
require "vime/providers/youtube"
|
22
|
-
|
23
|
-
require "vime/ui/controls/caption_control"
|
24
|
-
require "vime/ui/controls/control"
|
25
|
-
require "vime/ui/controls/control_group"
|
26
|
-
require "vime/ui/controls/control_spacer"
|
27
|
-
require "vime/ui/controls/controls"
|
28
|
-
require "vime/ui/controls/default_controls"
|
29
|
-
require "vime/ui/controls/fullscreen_control"
|
30
|
-
require "vime/ui/controls/mute_control"
|
31
|
-
require "vime/ui/controls/pip_control"
|
32
|
-
require "vime/ui/controls/playback_control"
|
33
|
-
require "vime/ui/controls/scrubber_control"
|
34
|
-
require "vime/ui/controls/settings_control"
|
35
|
-
require "vime/ui/controls/volume_control"
|
36
|
-
|
37
|
-
require "vime/ui/time/current_time"
|
38
|
-
require "vime/ui/time/end_time"
|
39
|
-
require "vime/ui/time/time"
|
40
|
-
require "vime/ui/time/time_progress"
|
41
|
-
|
42
|
-
require "vime/ui/settings/default_settings"
|
43
|
-
require "vime/ui/settings/menu"
|
44
|
-
require "vime/ui/settings/menu_item"
|
45
|
-
require "vime/ui/settings/menu_radio"
|
46
|
-
require "vime/ui/settings/menu_radio_group"
|
47
|
-
require "vime/ui/settings/settings"
|
48
|
-
require "vime/ui/settings/submenu"
|
49
|
-
|
50
|
-
require "vime/ui/captions"
|
51
|
-
require "vime/ui/click_to_play"
|
52
|
-
require "vime/ui/dbl_click_fullscreen"
|
53
|
-
require "vime/ui/default_ui"
|
54
|
-
require "vime/ui/icon"
|
55
|
-
require "vime/ui/icons"
|
56
|
-
require "vime/ui/live_indicator"
|
57
|
-
require "vime/ui/poster"
|
58
|
-
require "vime/ui/scrim"
|
59
|
-
require "vime/ui/skeleton"
|
60
|
-
require "vime/ui/slider"
|
61
|
-
require "vime/ui/spinner"
|
62
|
-
require "vime/ui/tooltip"
|
63
|
-
require "vime/ui/ui"
|
7
|
+
require "zeitwerk"
|
64
8
|
|
65
9
|
require "vime_view_components/version"
|
66
10
|
|
67
11
|
module VimeViewComponents
|
68
12
|
end
|
13
|
+
|
14
|
+
module Vime
|
15
|
+
end
|
16
|
+
|
17
|
+
Zeitwerk::Loader.new.tap do |loader|
|
18
|
+
loader.push_dir("#{__dir__}/vime", namespace: Vime)
|
19
|
+
loader.setup
|
20
|
+
loader.eager_load
|
21
|
+
end
|
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.
|
4
|
+
version: 5.0.0
|
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-
|
12
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dry-initializer
|
@@ -59,6 +59,20 @@ dependencies:
|
|
59
59
|
- - "<"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '3.0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: zeitwerk
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.4'
|
69
|
+
type: :runtime
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.4'
|
62
76
|
- !ruby/object:Gem::Dependency
|
63
77
|
name: minitest
|
64
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,7 +170,7 @@ files:
|
|
156
170
|
- lib/vime/ui/dbl_click_fullscreen.rb
|
157
171
|
- lib/vime/ui/default_ui.rb
|
158
172
|
- lib/vime/ui/icon.rb
|
159
|
-
- lib/vime/ui/
|
173
|
+
- lib/vime/ui/icon_library.rb
|
160
174
|
- lib/vime/ui/live_indicator.rb
|
161
175
|
- lib/vime/ui/poster.rb
|
162
176
|
- lib/vime/ui/scrim.rb
|
@@ -197,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
211
|
- !ruby/object:Gem::Version
|
198
212
|
version: '0'
|
199
213
|
requirements: []
|
200
|
-
rubygems_version: 3.
|
214
|
+
rubygems_version: 3.1.2
|
201
215
|
signing_key:
|
202
216
|
specification_version: 4
|
203
217
|
summary: ViewComponents for vime.js
|
data/lib/vime/ui/icons.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# @see https://vimejs.com/components/ui/icons
|
4
|
-
|
5
|
-
module Vime
|
6
|
-
module Ui
|
7
|
-
class Icons < Component
|
8
|
-
option :href, type: Types::String, optional: true
|
9
|
-
|
10
|
-
def call
|
11
|
-
tag "vime-icons", process_attrs(dom_attrs)
|
12
|
-
end
|
13
|
-
|
14
|
-
def dom_attrs
|
15
|
-
super.merge({
|
16
|
-
href: href,
|
17
|
-
})
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|