j1-template 2024.3.14 → 2024.3.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/assets/data/amplitude.html +111 -58
  3. data/assets/data/cookieconsent.html +8 -8
  4. data/assets/data/panel.html +4 -3
  5. data/assets/data/speak2me.html +11 -11
  6. data/assets/data/translator.html +29 -29
  7. data/assets/theme/j1/adapter/js/amplitude.js +112 -88
  8. data/assets/theme/j1/adapter/js/j1.js +4 -4
  9. data/assets/theme/j1/adapter/js/masonry.js +2 -2
  10. data/assets/theme/j1/adapter/js/themes.js +42 -4
  11. data/assets/theme/j1/adapter/js/videojs.js +212 -0
  12. data/assets/theme/j1/core/css/icon-fonts/mdib.css +24 -4
  13. data/assets/theme/j1/core/css/icon-fonts/mdib.css.map +1 -1
  14. data/assets/theme/j1/core/css/icon-fonts/mdib.min.css +1 -1
  15. data/assets/theme/j1/core/css/icon-fonts/mdib.min.css.map +1 -1
  16. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +9 -6
  17. data/assets/theme/j1/core/css/themes/unolight/bootstrap.css.map +1 -1
  18. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  19. data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css.map +1 -1
  20. data/assets/theme/j1/core/js/template.js +262 -275
  21. data/assets/theme/j1/core/js/template.min.js +7 -7
  22. data/assets/theme/j1/core/js/template.min.js.map +1 -1
  23. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +131 -24
  24. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
  25. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +102 -76
  26. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -1
  27. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +109 -78
  28. data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +1 -1
  29. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/artist.svg +78 -0
  30. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/mute.svg +52 -20
  31. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/next.svg +20 -39
  32. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/now-playing.svg +24 -38
  33. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-hide.svg +85 -0
  34. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-music.svg +85 -0
  35. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-show.svg +85 -0
  36. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist.svg +85 -0
  37. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/previous.svg +18 -37
  38. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-backward.svg +33 -30
  39. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-forward.svg +33 -29
  40. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/next.svg +55 -14
  41. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/previous.svg +56 -14
  42. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/volume.svg +38 -21
  43. data/assets/theme/j1/modules/amplitudejs/js/amplitude.map +20 -20
  44. data/assets/theme/j1/modules/amplitudejs/js/tech/youtube_example.js +211 -0
  45. data/assets/theme/j1/modules/gemini/js/gemini.js.map +1 -1
  46. data/assets/theme/j1/modules/jquery/js/jquery.min.map +1 -1
  47. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +206 -122
  48. data/assets/theme/j1/modules/videojs/assets/icons/custom-icons/next.svg +82 -0
  49. data/assets/theme/j1/modules/videojs/css/font/README.md +151 -0
  50. data/assets/theme/j1/modules/videojs/css/font/VideoJS.svg +150 -0
  51. data/assets/theme/j1/modules/videojs/css/font/video-js-cdn.css +2012 -0
  52. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +32 -0
  53. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +31 -0
  54. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.css +31 -0
  55. data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.min.css +21 -0
  56. data/assets/theme/j1/modules/videojs/css/themes/uno.css +14 -3
  57. data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
  58. data/assets/theme/j1/modules/videojs/css/videojs.css +1 -0
  59. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/LICENSE +13 -0
  60. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/README.md +75 -0
  61. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.js +149 -0
  62. data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.min.js +21 -0
  63. data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/README.md +76 -30
  64. data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.js +64 -53
  65. data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.min.js +1 -1
  66. data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/README.md +133 -0
  67. data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.js +137 -0
  68. data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.min.js +21 -0
  69. data/assets/theme/j1/modules/videojs/js/plugins/controls/zoom/zoom.js +15 -12
  70. data/assets/theme/j1/modules/videojs/js/plugins/players/dm/dailymotion.js +2 -2
  71. data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.js +43 -16
  72. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/fastfilereaderext.so +0 -0
  73. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/rubyeventmachine.so +0 -0
  74. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/fastfilereaderext.so +0 -0
  75. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/rubyeventmachine.so +0 -0
  76. data/lib/j1/version.rb +1 -1
  77. data/lib/j1_app/j1_auth_manager/config.rb +0 -4
  78. data/lib/starter_web/Gemfile +45 -22
  79. data/lib/starter_web/README.md +5 -5
  80. data/lib/starter_web/_config.yml +4 -6
  81. data/lib/starter_web/_data/modules/amplitude.yml +67 -37
  82. data/lib/starter_web/_data/modules/defaults/amplitude.yml +1 -0
  83. data/lib/starter_web/_data/modules/defaults/gallery.yml +42 -0
  84. data/lib/starter_web/_data/modules/defaults/videojs.yml +107 -0
  85. data/lib/starter_web/_data/modules/gallery.yml +30 -14
  86. data/lib/starter_web/_data/modules/lazyLoader.yml +8 -8
  87. data/lib/starter_web/_data/modules/masonry.yml +15 -0
  88. data/lib/starter_web/_data/modules/masterslider.yml +6 -6
  89. data/lib/starter_web/_data/modules/videojs.yml +57 -0
  90. data/lib/starter_web/_data/resources.yml +9 -26
  91. data/lib/starter_web/_data/templates/feed.xml +1 -1
  92. data/lib/starter_web/_includes/tables/jekyll_variables.asciidoc +1 -0
  93. data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +2 -1
  94. data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +4 -1
  95. data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +1 -1
  96. data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +1 -1
  97. data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +2 -1
  98. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +145 -24
  99. data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +4 -1
  100. data/lib/starter_web/_plugins/asciidoctor/wistia-block.rb +313 -0
  101. data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +192 -17
  102. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  103. data/lib/starter_web/assets/audio/cover/spontanorama/spontanorama.jpg +0 -0
  104. data/lib/starter_web/assets/audio/cover/spontanorama/src/spontanorama.png +0 -0
  105. data/lib/starter_web/assets/audio/cover/spontanorama/src/spontanorama.psd +0 -0
  106. data/lib/starter_web/package.json +1 -1
  107. data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +20 -7
  108. data/lib/starter_web/pages/public/manuals/integrations/amplitudejs/amplitudejs-api.adoc +1 -1
  109. data/lib/starter_web/pages/public/manuals/integrations/videojs/youtube-api.adoc +1638 -0
  110. data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +5 -6
  111. data/lib/starter_web/pages/public/tools/previewer/preview_videojs.adoc +203 -0
  112. data/lib/starter_web/pages/public/tour/asciidoc_extensions.adoc +1 -1
  113. data/lib/starter_web/pages/public/tour/bootstrap_themes.adoc +1 -1
  114. data/lib/starter_web/pages/public/tour/highlghter_rouge.adoc +1 -1
  115. data/lib/starter_web/pages/public/tour/modal_extentions.adoc +1 -1
  116. data/lib/starter_web/pages/public/tour/play_audio.adoc +30 -29
  117. data/lib/starter_web/pages/public/tour/play_video.adoc +65 -39
  118. data/lib/starter_web/pages/public/tour/present_images.adoc +17 -16
  119. data/lib/starter_web/pages/public/tour/quicksearch.adoc +1 -1
  120. data/lib/starter_web/pages/public/tour/responsive_tables.adoc +1 -1
  121. data/lib/starter_web/pages/public/tour/typography.adoc +1 -1
  122. metadata +37 -20
  123. data/assets/data/amplitude.28.html +0 -887
  124. data/assets/data/amplitude.29.html +0 -923
  125. data/assets/theme/j1/adapter/js/amplitude.23.js +0 -1165
  126. data/assets/theme/j1/adapter/js/amplitude.24.js +0 -1164
  127. data/assets/theme/j1/adapter/js/amplitude.25.js +0 -1268
  128. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_pause.svg +0 -19
  129. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_play.svg +0 -18
  130. data/assets/theme/j1/modules/amplitudejs/icons/player/dark/show-playlist.svg +0 -15
  131. data/assets/theme/j1/modules/jqueryScrollbar/LICENSE +0 -20
  132. data/assets/theme/j1/modules/jqueryScrollbar/README.md +0 -28
  133. data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.css +0 -939
  134. data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.min.css +0 -20
  135. data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.js +0 -851
  136. data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.min.js +0 -36
  137. data/assets/theme/j1/modules/jqueryScrollbar/sass/scrollbar.scss +0 -806
  138. data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.0.js +0 -794
  139. data/lib/starter_web/_data/modules/lazyLoader.0.yml +0 -118
@@ -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 -%}
@@ -7248,6 +7248,26 @@
7248
7248
  content: "\F039F";
7249
7249
  }
7250
7250
 
7251
+ .mdib-numeric-1:before {
7252
+ content: "\F0B3A";
7253
+ }
7254
+
7255
+ .mdib-numeric-2:before {
7256
+ content: "\F0B3B";
7257
+ }
7258
+
7259
+ .mdib-numeric-3:before {
7260
+ content: "\F0B3C";
7261
+ }
7262
+
7263
+ .mdib-numeric-4:before {
7264
+ content: "\F0B3D";
7265
+ }
7266
+
7267
+ .mdib-numeric-5:before {
7268
+ content: "\F0B3E";
7269
+ }
7270
+
7251
7271
  .mdib-npm:before {
7252
7272
  content: "\F06F7";
7253
7273
  }
@@ -9444,6 +9464,10 @@
9444
9464
  content: "\F0E67";
9445
9465
  }
9446
9466
 
9467
+ .mdib-star:before {
9468
+ content: "\F04CE";
9469
+ }
9470
+
9447
9471
  .mdib-squeegee:before {
9448
9472
  content: "\F0AE1";
9449
9473
  }
@@ -9500,10 +9524,6 @@
9500
9524
  content: "\F07EF";
9501
9525
  }
9502
9526
 
9503
- .mdib-star:before {
9504
- content: "\F04CE";
9505
- }
9506
-
9507
9527
  .mdib-state-machine:before {
9508
9528
  content: "\F11EF";
9509
9529
  }