j1-template 2024.3.15 → 2024.3.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/assets/data/amplitude.html +7 -7
  3. data/assets/data/panel.html +4 -3
  4. data/assets/theme/j1/adapter/js/amplitude.js +100 -81
  5. data/assets/theme/j1/adapter/js/masonry.js +2 -2
  6. data/assets/theme/j1/adapter/js/videojs.js +212 -0
  7. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +7 -4
  8. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css.map +1 -1
  9. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  10. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css.map +1 -1
  11. data/assets/theme/j1/core/js/template.js +4 -0
  12. data/assets/theme/j1/core/js/template.min.js +2 -2
  13. data/assets/theme/j1/core/js/template.min.js.map +1 -1
  14. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +81 -1
  15. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
  16. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +3 -2
  17. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -1
  18. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +19 -4
  19. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +1 -1
  20. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/artist.svg +78 -0
  21. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/mute.svg +52 -20
  22. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/next.svg +20 -39
  23. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/now-playing.svg +24 -38
  24. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-hide.svg +85 -0
  25. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-music.svg +85 -0
  26. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-show.svg +85 -0
  27. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist.svg +85 -0
  28. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/previous.svg +18 -37
  29. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-backward.svg +33 -30
  30. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-forward.svg +33 -29
  31. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/next.svg +55 -14
  32. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/previous.svg +56 -14
  33. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/volume.svg +38 -21
  34. data/assets/theme/j1/modules/amplitudejs/js/amplitude.map +20 -20
  35. data/assets/theme/j1/modules/amplitudejs/js/tech/youtube_example.js +211 -0
  36. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +206 -122
  37. data/assets/theme/j1/modules/videojs/assets/icons/custom-icons/next.svg +82 -0
  38. data/assets/theme/j1/modules/videojs/css/font/README.md +151 -0
  39. data/assets/theme/j1/modules/videojs/css/font/VideoJS.svg +150 -0
  40. data/assets/theme/j1/modules/videojs/css/font/video-js-cdn.css +2012 -0
  41. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +32 -0
  42. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +31 -0
  43. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.css +31 -0
  44. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.min.css +21 -0
  45. data/assets/theme/j1/modules/videojs/css/themes/uno.css +14 -3
  46. data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
  47. data/assets/theme/j1/modules/videojs/css/videojs.css +1 -0
  48. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/LICENSE +13 -0
  49. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/README.md +75 -0
  50. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.js +149 -0
  51. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.min.js +21 -0
  52. data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/README.md +76 -30
  53. data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.js +64 -53
  54. data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.min.js +1 -1
  55. data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/README.md +133 -0
  56. data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.js +137 -0
  57. data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.min.js +21 -0
  58. data/assets/theme/j1/modules/videojs/js/plugins/controls/zoom/zoom.js +15 -12
  59. data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.js +43 -16
  60. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/fastfilereaderext.so +0 -0
  61. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/rubyeventmachine.so +0 -0
  62. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/fastfilereaderext.so +0 -0
  63. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/rubyeventmachine.so +0 -0
  64. data/lib/j1/version.rb +1 -1
  65. data/lib/j1_app/j1_auth_manager/config.rb +0 -4
  66. data/lib/starter_web/Gemfile +45 -22
  67. data/lib/starter_web/README.md +5 -5
  68. data/lib/starter_web/_config.yml +4 -6
  69. data/lib/starter_web/_data/modules/amplitude.yml +9 -399
  70. data/lib/starter_web/_data/modules/defaults/gallery.yml +42 -0
  71. data/lib/starter_web/_data/modules/defaults/videojs.yml +107 -0
  72. data/lib/starter_web/_data/modules/gallery.yml +30 -14
  73. data/lib/starter_web/_data/modules/masonry.yml +15 -0
  74. data/lib/starter_web/_data/modules/videojs.yml +57 -0
  75. data/lib/starter_web/_data/resources.yml +9 -27
  76. data/lib/starter_web/_data/templates/feed.xml +1 -1
  77. data/lib/starter_web/_includes/tables/jekyll_variables.asciidoc +1 -0
  78. data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +4 -1
  79. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +145 -24
  80. data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +4 -1
  81. data/lib/starter_web/_plugins/asciidoctor/wistia-block.rb +313 -0
  82. data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +192 -17
  83. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  84. data/lib/starter_web/package.json +1 -1
  85. data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +20 -7
  86. data/lib/starter_web/pages/public/manuals/integrations/amplitudejs/amplitudejs-api.adoc +1 -1
  87. data/lib/starter_web/pages/public/manuals/integrations/videojs/youtube-api.adoc +1638 -0
  88. data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +5 -6
  89. data/lib/starter_web/pages/public/tools/previewer/preview_videojs.adoc +203 -0
  90. data/lib/starter_web/pages/{tour → public/tour}/play_audio.adoc +3 -10
  91. data/lib/starter_web/pages/{tour → public/tour}/play_video.adoc +49 -40
  92. metadata +61 -41
  93. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_pause.svg +0 -19
  94. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_play.svg +0 -18
  95. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/show-playlist.svg +0 -15
  96. data/assets/theme/j1/modules/jqueryScrollbar/LICENSE +0 -20
  97. data/assets/theme/j1/modules/jqueryScrollbar/README.md +0 -28
  98. data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.css +0 -939
  99. data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.min.css +0 -20
  100. data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.js +0 -851
  101. data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.min.js +0 -36
  102. data/assets/theme/j1/modules/jqueryScrollbar/sass/scrollbar.scss +0 -806
  103. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.0.js +0 -794
  104. /data/lib/starter_web/pages/{tour → public/tour}/_includes/attributes.asciidoc +0 -0
  105. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/100_gistblock.asciidoc +0 -0
  106. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_info.asciidoc +0 -0
  107. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_left_warning.asciidoc +0 -0
  108. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_right_danger.asciidoc +0 -0
  109. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_central_success.asciidoc +0 -0
  110. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_full_height_left_info.asciidoc +0 -0
  111. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_full_height_right_success.asciidoc +0 -0
  112. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_table_bs_modal_examples.asciidoc +0 -0
  113. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_info.asciidoc +0 -0
  114. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_left_info.asciidoc +0 -0
  115. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_right_success.asciidoc +0 -0
  116. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/419_advanced_modals_demo.asciidoc +0 -0
  117. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/tables/bs_modal_examples.asciidoc +0 -0
  118. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/themes_bootstrap.asciidoc +0 -0
  119. /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/themes_rouge.asciidoc +0 -0
  120. /data/lib/starter_web/pages/{tour → public/tour}/asciidoc_extensions.adoc +0 -0
  121. /data/lib/starter_web/pages/{tour → public/tour}/bootstrap_themes.adoc +0 -0
  122. /data/lib/starter_web/pages/{tour → public/tour}/highlghter_rouge.adoc +0 -0
  123. /data/lib/starter_web/pages/{tour → public/tour}/icon_fonts.adoc +0 -0
  124. /data/lib/starter_web/pages/{tour → public/tour}/modal_extentions.adoc +0 -0
  125. /data/lib/starter_web/pages/{tour → public/tour}/present_images.adoc +0 -0
  126. /data/lib/starter_web/pages/{tour → public/tour}/quicksearch.adoc +0 -0
  127. /data/lib/starter_web/pages/{tour → public/tour}/responsive_tables.adoc +0 -0
  128. /data/lib/starter_web/pages/{tour → public/tour}/typography.adoc +0 -0
@@ -0,0 +1,212 @@
1
+ ---
2
+ regenerate: true
3
+ ---
4
+
5
+ {%- capture cache -%}
6
+
7
+ {% comment %}
8
+ # -----------------------------------------------------------------------------
9
+ # ~/assets/theme/j1/adapter/js/videojs.js
10
+ # Liquid template to adapt the videojs module
11
+ #
12
+ # Product/Info:// # https://jekyll.one
13
+ # Copyright (C) 2023, 2024 Juergen Adams
14
+ #
15
+ # J1 Template is licensed under the MIT License.
16
+ # For details, see: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
17
+ # -----------------------------------------------------------------------------
18
+ # Test data:
19
+ # {{ liquid_var | debug }}
20
+ # videojs_options: {{ videojs_options | debug }}
21
+ # --------------------------------------------------------------------------
22
+ {% endcomment %}
23
+
24
+ {% comment %} Liquid procedures
25
+ -------------------------------------------------------------------------------- {% endcomment %}
26
+
27
+ {% comment %} Set global settings
28
+ -------------------------------------------------------------------------------- {% endcomment %}
29
+ {% assign environment = site.environment %}
30
+ {% assign asset_path = "/assets/theme/j1" %}
31
+
32
+ {% comment %} Process YML config data
33
+ ================================================================================ {% endcomment %}
34
+
35
+ {% comment %} Set config files
36
+ -------------------------------------------------------------------------------- {% endcomment %}
37
+ {% assign template_config = site.data.j1_config %}
38
+ {% assign blocks = site.data.blocks %}
39
+ {% assign modules = site.data.modules %}
40
+
41
+ {% comment %} Set config data (settings only)
42
+ ------------------------------------------------------------------------------- {% endcomment %}
43
+ {% assign videojs_defaults = modules.defaults.videojs.defaults %}
44
+ {% assign videojs_settings = modules.videojs.settings %}
45
+
46
+ {% comment %} Set config options (settings only)
47
+ ------------------------------------------------------------------------------- {% endcomment %}
48
+ {% assign videojs_options = videojs_defaults | merge: videojs_settings %}
49
+
50
+
51
+ /*
52
+ # -----------------------------------------------------------------------------
53
+ # ~/assets/theme/j1/adapter/js/videojs.js
54
+ # J1 Adapter for the video module
55
+ #
56
+ # Product/Info:
57
+ # https://jekyll.one
58
+ #
59
+ # Copyright (C) 2023, 2024 Juergen Adams
60
+ #
61
+ # J1 Template is licensed under the MIT License.
62
+ # For details, see: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
63
+ # -----------------------------------------------------------------------------
64
+ # Adapter generated: {{site.time}}
65
+ # -----------------------------------------------------------------------------
66
+ */
67
+
68
+ // -----------------------------------------------------------------------------
69
+ // ESLint shimming
70
+ // -----------------------------------------------------------------------------
71
+ /* eslint indent: "off" */
72
+ // -----------------------------------------------------------------------------
73
+ "use strict";
74
+ j1.adapter.videojs = ((j1, window) => {
75
+
76
+ {% comment %} Set global variables
77
+ ------------------------------------------------------------------------------ {% endcomment %}
78
+ var vjsDefaults;
79
+ var vjsSettings;
80
+ var vjsOptions;
81
+
82
+ var _this;
83
+ var logger;
84
+ var logText;
85
+
86
+ // date|time
87
+ var startTime;
88
+ var endTime;
89
+ var startTimeModule;
90
+ var endTimeModule;
91
+ var timeSeconds;
92
+
93
+ // ---------------------------------------------------------------------------
94
+ // main
95
+ // ---------------------------------------------------------------------------
96
+ return {
97
+
98
+ // -------------------------------------------------------------------------
99
+ // adapter initializer
100
+ // -------------------------------------------------------------------------
101
+ init: (options) => {
102
+
103
+ // -----------------------------------------------------------------------
104
+ // default module settings
105
+ // -----------------------------------------------------------------------
106
+ var settings = $.extend({
107
+ module_name: 'j1.adapter.videojs',
108
+ generated: '{{site.time}}'
109
+ }, options);
110
+
111
+ // -----------------------------------------------------------------------
112
+ // global variable settings
113
+ // -----------------------------------------------------------------------
114
+
115
+ // create settings object from module options
116
+ vjsDefaults = $.extend({}, {{videojs_defaults | replace: 'nil', 'null' | replace: '=>', ':' }});
117
+ vjsSettings = $.extend({}, {{videojs_settings | replace: 'nil', 'null' | replace: '=>', ':' }});
118
+ vjsOptions = $.extend(true, {}, vjsDefaults, vjsSettings);
119
+
120
+ _this = j1.adapter.videojs;
121
+ logger = log4javascript.getLogger('j1.adapter.videojs');
122
+
123
+ // -----------------------------------------------------------------------
124
+ // module initializer
125
+ // -----------------------------------------------------------------------
126
+ var dependencies_met_page_ready = setInterval (() => {
127
+ var pageState = $('#content').css("display");
128
+ var pageVisible = (pageState === 'block') ? true : false;
129
+ var j1CoreFinished = (j1.getState() === 'finished') ? true : false;
130
+
131
+ if (j1CoreFinished && pageVisible) {
132
+ startTimeModule = Date.now();
133
+
134
+ _this.setState('started');
135
+ logger.debug('\n' + 'state: ' + _this.getState());
136
+ logger.info('\n' + 'module is being initialized');
137
+
138
+ // save vjsOptions for later access
139
+ j1.modules.videojs = {};
140
+ j1.modules.videojs.options = vjsOptions || {};
141
+
142
+ _this.setState('finished');
143
+ logger.debug('\n' + 'state: ' + _this.getState());
144
+ logger.info('\n' + 'initializing module finished');
145
+
146
+ endTimeModule = Date.now();
147
+ logger.info('\n' + 'module initializing time: ' + (endTimeModule-startTimeModule) + 'ms');
148
+
149
+ clearInterval(dependencies_met_page_ready);
150
+ } // END pageVisible
151
+ }, 10); // END dependencies_met_page_ready
152
+
153
+ }, // END init
154
+
155
+ // -------------------------------------------------------------------------
156
+ // messageHandler()
157
+ // manage messages send from other J1 modules
158
+ // -------------------------------------------------------------------------
159
+ messageHandler: (sender, message) => {
160
+ var json_message = JSON.stringify(message, undefined, 2);
161
+
162
+ logText = '\n' + 'received message from ' + sender + ': ' + json_message;
163
+ logger.debug(logText);
164
+
165
+ // -----------------------------------------------------------------------
166
+ // process commands|actions
167
+ // -----------------------------------------------------------------------
168
+ if (message.type === 'command' && message.action === 'module_initialized') {
169
+
170
+ //
171
+ // place handling of command|action here
172
+ //
173
+
174
+ logger.info('\n' + message.text);
175
+ }
176
+
177
+ //
178
+ // place handling of other command|action here
179
+ //
180
+
181
+ return true;
182
+ }, // END messageHandler
183
+
184
+ // -------------------------------------------------------------------------
185
+ // setState()
186
+ // sets the current (processing) state of the module
187
+ // -------------------------------------------------------------------------
188
+ setState: (stat) => {
189
+ _this.state = stat;
190
+ }, // END setState
191
+
192
+ // -------------------------------------------------------------------------
193
+ // getState()
194
+ // Returns the current (processing) state of the module
195
+ // -------------------------------------------------------------------------
196
+ getState: () => {
197
+ return _this.state;
198
+ } // END getState
199
+
200
+ }; // END main (return)
201
+
202
+ })(j1, window);
203
+
204
+ {%- endcapture -%}
205
+
206
+ {%- if production -%}
207
+ {{ cache|minifyJS }}
208
+ {%- else -%}
209
+ {{ cache|strip_empty_lines }}
210
+ {%- endif -%}
211
+
212
+ {%- assign cache = false -%}
@@ -27079,6 +27079,7 @@ span.badge > a {
27079
27079
  .caption {
27080
27080
  display: none; /* hidden for default */
27081
27081
  position: absolute; /* positions set by translate */
27082
+ margin-top: 1px; /* place caption top position */
27082
27083
  padding: 10px 5px 10px 5px; /* space around a caption */
27083
27084
  color: #E0E0E0; /* caption text color */
27084
27085
  background: rgb(0, 0, 0); /* caption background color */
@@ -27089,19 +27090,20 @@ span.badge > a {
27089
27090
  z-index: 1;
27090
27091
  }
27091
27092
 
27093
+ /* jadams, 2024-11-15: Unused
27092
27094
  .caption-video {
27093
27095
  display: none;
27094
27096
  position: absolute;
27095
27097
  padding: 10px 5px 10px 5px;
27096
27098
  color: #E0E0E0;
27097
- background: rgb(0, 0, 0);
27099
+ background: rgba(0, 0, 0, 1);
27098
27100
  width: 100%;
27099
27101
  font-size: 12px;
27100
27102
  font-weight: 300;
27101
27103
  font-family: sans-serif;
27102
27104
  z-index: 1;
27103
27105
  }
27104
-
27106
+ */
27105
27107
  .top .caption {
27106
27108
  top: 0;
27107
27109
  transform: translate(-100%, -50%); /* move hidden caption */
@@ -27122,8 +27124,9 @@ span.badge > a {
27122
27124
  -webkit-transition-delay: 0.25s;
27123
27125
  }
27124
27126
 
27127
+ /* jadams, 2024-11-11: ToDo (fix) */
27128
+ /* workaround: make cover images +1 pixel higher for caption text overlay */
27125
27129
  .bottom .caption {
27126
- top: 100%;
27127
27130
  transform: translate(0, 0);
27128
27131
  -moz-transform: translate(0, 0);
27129
27132
  -webkit-transform: translate(0, 0);
@@ -31790,7 +31793,7 @@ ul.scrollable-menu::-webkit-scrollbar-thumb {
31790
31793
  }
31791
31794
 
31792
31795
  .scroller-6::-webkit-scrollbar-thumb {
31793
- background-color: #ff9800;
31796
+ background-color: #3f51b5;
31794
31797
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
31795
31798
  }
31796
31799