j1-template 2024.3.19 → 2024.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_layouts/page.html +1 -0
- data/assets/data/amplitude_app.html +192 -163
- data/assets/data/swiper_app.2.html +757 -0
- data/assets/data/swiper_app.4.html +769 -0
- data/assets/data/swiper_app.html +171 -27
- data/assets/theme/j1/adapter/js/amplitude.js +1104 -216
- data/assets/theme/j1/adapter/js/swiper.js +63 -15
- data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.css +111 -101
- data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.min.css +1 -1
- data/assets/theme/j1/core/css/themes/unodark/bootstrap.css +111 -101
- data/assets/theme/j1/core/css/themes/unodark/bootstrap.min.css +1 -1
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +111 -101
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +177 -216
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +220 -339
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -2
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +324 -491
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +1 -2
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/mini.css +70 -60
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/mini.min.css +2 -1
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +2074 -843
- data/assets/theme/j1/modules/amplitudejs/scss/theme/uno/dark/player/large.scss +439 -264
- data/assets/theme/j1/modules/swiperjs/css/modules/layoutBase.css +16 -0
- data/assets/theme/j1/modules/swiperjs/css/modules/layoutBase.min.css +16 -0
- data/assets/theme/j1/modules/swiperjs/css/modules/layoutExpanding.css +24 -24
- data/assets/theme/j1/modules/swiperjs/css/modules/layoutExpanding.min.css +1 -235
- data/assets/theme/j1/modules/swiperjs/css/modules/layoutNeighbor.min.css +2 -2
- data/assets/theme/j1/modules/swiperjs/css/modules/layoutParallax.css +16 -0
- data/assets/theme/j1/modules/swiperjs/css/modules/layoutParallax.min.css +16 -0
- data/assets/theme/j1/modules/swiperjs/css/modules/layoutStacked.css +6 -7
- data/assets/theme/j1/modules/swiperjs/css/modules/layoutStacked.min.css +1 -82
- data/assets/theme/j1/modules/swiperjs/css/modules/layoutThumbs.min.css +2 -29
- data/assets/theme/j1/modules/swiperjs/css/theme/uno.css +29 -12
- data/assets/theme/j1/modules/swiperjs/css/theme/uno.min.css +1 -1
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutBase.js +25 -0
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutBase.min.js +25 -0
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutExpanding.js +1 -5
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutExpanding.min.js +1 -5
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutNeighbor.js +12 -14
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutNeighbor.min.js +1 -17
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutPanorama.js +0 -1
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutParallax.js +25 -0
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutParallax.min.js +25 -0
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutStacked.0.js +114 -0
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutStacked.1.js +93 -0
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutStacked.js +42 -13
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutStacked.min.js +17 -0
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutThumbs.js +76 -25
- data/assets/theme/j1/modules/swiperjs/js/modules/layoutThumbs.min.js +1 -17
- data/assets/theme/j1/modules/swiperjs/js/swiper-bundle.js +9152 -9131
- data/assets/theme/j1/modules/swiperjs/js/swiper-bundle.min.js +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/modules/amplitude_app.yml +206 -23
- data/lib/starter_web/_data/modules/amplitude_playlists.yml +1122 -19
- data/lib/starter_web/_data/modules/defaults/{amplitude_app.yml → amplitude.yml} +73 -26
- data/lib/starter_web/_data/modules/swiper_app.yml +356 -155
- data/lib/starter_web/_data/modules/swiper_playlists.yml +77 -1
- data/lib/starter_web/_data/resources.yml +6 -2
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/attributes.asciidoc +5 -4
- data/lib/starter_web/_plugins/filter/filters.rb +1 -11
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/image/icon/bokeh/bokeh-32x32.ico +0 -0
- data/lib/starter_web/assets/image/icon/bokeh/bokeh.ico +0 -0
- data/lib/starter_web/assets/image/icon/bokeh/logo-160x160.png +0 -0
- data/lib/starter_web/assets/image/icon/hyvor-talk/hyvore-talk.ico +0 -0
- data/lib/starter_web/assets/image/icon/hyvor-talk/jpg/hyvor-logo.512x512.jpg +0 -0
- data/lib/starter_web/assets/image/icon/hyvor-talk/png/hyvor-logo.24x24.jpg +0 -0
- data/lib/starter_web/assets/image/icon/hyvor-talk/png/hyvor-logo.24x24.png +0 -0
- data/lib/starter_web/assets/image/icon/hyvor-talk/png/hyvor-logo.512x512.png +0 -0
- data/lib/starter_web/assets/image/icon/hyvor-talk/scalable/hyvor-logo.svg +81 -0
- data/lib/starter_web/assets/image/icon/jupyter/jupyter-32x32.ico +0 -0
- data/lib/starter_web/assets/image/icon/jupyter/jupyter.ico +0 -0
- data/lib/starter_web/assets/image/icon/jupyter/logo.png +0 -0
- data/lib/starter_web/assets/image/icon/mdi/mdi.svg +1 -0
- data/lib/starter_web/assets/image/icon/mdi/mdil.svg +1 -0
- data/lib/starter_web/assets/image/icon/scalable/facebook.svg +34 -0
- data/lib/starter_web/assets/image/icon/scalable/google.svg +35 -0
- data/lib/starter_web/assets/image/icon/scalable/ibm.svg +24 -0
- data/lib/starter_web/assets/image/icon/scalable/microsoft.svg +42 -0
- data/lib/starter_web/assets/image/module/swiper/avatar/avatar-1.png +0 -0
- data/lib/starter_web/assets/image/module/swiper/avatar/avatar-2.png +0 -0
- data/lib/starter_web/assets/image/module/swiper/avatar/avatar-3.png +0 -0
- data/lib/starter_web/assets/image/module/swiper/avatar/avatar-4.png +0 -0
- data/lib/starter_web/assets/image/module/swiper/avatar/avatar-5.png +0 -0
- data/lib/starter_web/assets/image/module/swiper/simple/test/image/diana_krall.jpg +0 -0
- data/lib/starter_web/index.html +3 -3
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +1 -1
- data/lib/starter_web/pages/public/tools/previewer/preview_amplitudejs.adoc +69 -36
- data/lib/starter_web/pages/public/tools/tester/app_tester_amplitudejs_yt.adoc +65 -18
- data/lib/starter_web/pages/public/tools/tester/app_tester_swiper.adoc +87 -0
- data/lib/starter_web/pages/public/tools/tester/app_tester_swiperjs.adoc +121 -36
- data/lib/starter_web/pages/public/tour/_includes/attributes.asciidoc +3 -3
- data/lib/starter_web/pages/public/tour/{play_audio.adoc → audio_data.adoc} +51 -86
- data/lib/starter_web/pages/public/tour/{present_images.adoc → image_data.adoc} +4 -5
- data/lib/starter_web/pages/public/tour/{play_video.adoc → video_data.adoc} +18 -17
- metadata +52 -17
- data/assets/theme/j1/modules/swiperjs/js/highlightJS.js +0 -13376
- data/assets/theme/j1/modules/swiperjs/js/highlightJS.min.js +0 -1246
- data/assets/theme/j1/modules/swiperjs/js/modules/!readme +0 -3
- /data/lib/starter_web/assets/image/module/swiper/extended/{poster → stacked}/!info/!readme +0 -0
- /data/lib/starter_web/assets/image/module/swiper/extended/{poster → stacked}/image/!readme +0 -0
- /data/lib/starter_web/assets/image/module/swiper/extended/{poster → stacked}/image/1.jpg +0 -0
- /data/lib/starter_web/assets/image/module/swiper/extended/{poster → stacked}/image/2.jpg +0 -0
- /data/lib/starter_web/assets/image/module/swiper/extended/{poster → stacked}/image/3.jpg +0 -0
- /data/lib/starter_web/assets/image/module/swiper/extended/{poster → stacked}/image/4.jpg +0 -0
- /data/lib/starter_web/assets/image/module/swiper/extended/{poster → stacked}/image/5.jpg +0 -0
- /data/lib/starter_web/assets/image/module/swiper/extended/{poster → stacked}/image/6.jpg +0 -0
@@ -92,6 +92,7 @@ j1.adapter.swiper = ((j1, window) => {
|
|
92
92
|
var swiperDefaults;
|
93
93
|
var swiperSettings;
|
94
94
|
var swiperOptions;
|
95
|
+
var swiperLayout;
|
95
96
|
var frontmatterOptions;
|
96
97
|
var themes_allowed;
|
97
98
|
var theme_enabled;
|
@@ -162,7 +163,7 @@ j1.adapter.swiper = ((j1, window) => {
|
|
162
163
|
if (j1CoreFinished && pageVisible && atticFinished) {
|
163
164
|
startTimeModule = Date.now();
|
164
165
|
|
165
|
-
// load HTML portion for all
|
166
|
+
// load HTML portion for all swipers
|
166
167
|
_this.loadSwiperHTML(swiperOptions, swiperOptions.swipers);
|
167
168
|
|
168
169
|
_this.setState('started');
|
@@ -172,11 +173,11 @@ j1.adapter.swiper = ((j1, window) => {
|
|
172
173
|
{% for swiper in swipers %}{% if swiper.enabled %}
|
173
174
|
logger.info ('\n' + 'initialize swiper on id: ' + '{{swiper.id}}');
|
174
175
|
|
175
|
-
// create dynamic loader variable
|
176
|
+
// create dynamic loader variable
|
176
177
|
dependency = 'dependencies_met_html_loaded_{{swiper.id}}';
|
177
178
|
load_dependencies[dependency] = '';
|
178
179
|
|
179
|
-
// initialize the swiper if the HTML portion of the slider
|
180
|
+
// initialize the swiper if the HTML portion of the slider successfully loaded
|
180
181
|
load_dependencies['dependencies_met_html_loaded_{{swiper.id}}'] = setInterval (() => {
|
181
182
|
// check if HTML portion of the swiper is loaded successfully
|
182
183
|
xhrLoadState = j1.xhrDOMState['#{{swiper.id}}_app'];
|
@@ -184,16 +185,22 @@ j1.adapter.swiper = ((j1, window) => {
|
|
184
185
|
|
185
186
|
logger.info ('\n' + 'HTML portion loaded for swiper on id: ' + '{{swiper.id}}');
|
186
187
|
|
187
|
-
|
188
|
+
{% comment %} Set Swiper Layout
|
189
|
+
------------------------------------------------------------------ {% endcomment %}
|
190
|
+
{% assign type_layout = swiper.layout | split: "/" %}
|
191
|
+
{% assign swiper_layout = type_layout[1] | capitalize %}
|
192
|
+
|
193
|
+
// setup slider {{swiper.id}}
|
188
194
|
// ---------------------------------------------------------------
|
189
195
|
logger.info ('\n' + 'swiper is being setup on id: ' + '{{swiper.id}}');
|
190
196
|
|
191
197
|
const slider = document.querySelector('#{{swiper.id}}');
|
192
198
|
const swiperEl = slider.querySelector('.swiper');
|
193
|
-
const {{swiper.id}} = new Swiper(swiperEl, {
|
194
199
|
|
200
|
+
{% if swiper_layout != 'Stacked' %}
|
201
|
+
const {{swiper.id}} = new Swiper(swiperEl, {
|
202
|
+
// set swiper CORE parameter settings
|
195
203
|
{% if swiper.parameters %}
|
196
|
-
// parameters (core)
|
197
204
|
{% for setting in swiper.parameters %}
|
198
205
|
{% if setting[0] == 'direction' or setting[0] == 'effect' or setting[0] == 'slideHeight' %}
|
199
206
|
{{setting[0]}}: {{ setting[1] | replace: '=>', ':' | json }},
|
@@ -202,29 +209,45 @@ j1.adapter.swiper = ((j1, window) => {
|
|
202
209
|
{% endif %}
|
203
210
|
{% endfor %}
|
204
211
|
{% endif %}
|
212
|
+
// end swiper CORE parameter settings
|
213
|
+
|
214
|
+
// set swiper LAYOUT module settings
|
215
|
+
// -------------------------------------------------------------
|
216
|
+
{% if swiper_layout != 'Base' or swiper_layout != 'Parallax' %}
|
217
|
+
modules: [Layout{{swiper_layout}}],
|
218
|
+
{% endif %}
|
219
|
+
// end swiper LAYOUT module settings
|
205
220
|
|
221
|
+
// set swiper DEFAULT module settings
|
222
|
+
// -------------------------------------------------------------
|
206
223
|
{% if swiper.module_settings %}
|
207
|
-
// module settings
|
208
224
|
{% for setting in swiper.module_settings %}
|
209
|
-
{% if setting[0] == 'modules' %}
|
210
|
-
{{setting[0]}}: {{ setting[1] | replace: '=>', ':' | replace: '"', ' ' }},
|
211
|
-
{% else %}
|
212
225
|
{{setting[0]}}: {{ setting[1] | replace: '=>', ':' }},
|
213
|
-
{% endif %}
|
214
226
|
{% endfor %}
|
215
227
|
{% endif %}
|
228
|
+
// end swiper DEFAULT module settings
|
216
229
|
|
230
|
+
// set swiper EVENT settings
|
217
231
|
{% if swiper.events and swiper.events.enabled %}
|
218
|
-
// events
|
219
232
|
on: {
|
220
233
|
{% for setting in swiper.events %}
|
221
234
|
{% if setting[0] == 'enabled' %} {% continue %} {% endif %}
|
222
235
|
{{setting[0]}}: {{ setting[1] }},
|
223
236
|
{% endfor %}
|
224
|
-
}
|
237
|
+
}
|
225
238
|
{% endif %}
|
226
|
-
|
227
|
-
|
239
|
+
// end swiper EVENT settings
|
240
|
+
|
241
|
+
}); // end setup slider
|
242
|
+
{% else %}
|
243
|
+
const {{swiper.id}} = new Swiper(swiperEl, {
|
244
|
+
// set swiper LAYOUT module settings
|
245
|
+
// -------------------------------------------------------------
|
246
|
+
{% if swiper_layout != 'Base' or swiper_layout != 'Parallax' %}
|
247
|
+
modules: [Layout{{swiper_layout}}],
|
248
|
+
{% endif %}
|
249
|
+
}); // end setup slider
|
250
|
+
{% endif %}
|
228
251
|
|
229
252
|
{% if swiper.lightbox.enabled %}
|
230
253
|
// ---------------------------------------------------------------
|
@@ -303,6 +326,23 @@ j1.adapter.swiper = ((j1, window) => {
|
|
303
326
|
});
|
304
327
|
{% endif %}
|
305
328
|
|
329
|
+
// workaround for swiper pagination placed 'outer'
|
330
|
+
// ---------------------------------------------------------------
|
331
|
+
{% assign init_swiper_delay = 500 %}
|
332
|
+
{% assign pagination_el = swiper.module_settings.pagination.el | split: '-' %}
|
333
|
+
{% assign pagination_position = pagination_el[2] %}
|
334
|
+
|
335
|
+
{% if swiper.module_settings.pagination and pagination_position == 'outer' %}
|
336
|
+
setTimeout(() => {
|
337
|
+
const sourceEl = document.getElementById('{{swiper.id}}_pagination');
|
338
|
+
const targetEl = document.getElementById('{{swiper.id}}');
|
339
|
+
targetEl.appendChild(sourceEl);
|
340
|
+
|
341
|
+
logger.debug('\n' + 'pagination elements (outer) moved');
|
342
|
+
}, {{init_swiper_delay}});
|
343
|
+
{% endif %}
|
344
|
+
// ---------------------------------------------------------------
|
345
|
+
|
306
346
|
clearInterval (load_dependencies['dependencies_met_html_loaded_{{swiper.id}}']);
|
307
347
|
} // END if xhrLoadState success
|
308
348
|
}, 10); // END dependencies_met_html_loaded swiper.id
|
@@ -356,6 +396,14 @@ j1.adapter.swiper = ((j1, window) => {
|
|
356
396
|
_this.setState('data_loaded');
|
357
397
|
}, // END loadSwiperHTML
|
358
398
|
|
399
|
+
// -------------------------------------------------------------------------
|
400
|
+
// findModuleByName(array, functionName)
|
401
|
+
//
|
402
|
+
// -------------------------------------------------------------------------
|
403
|
+
findModuleByName: (moduleArray, moduleName) => {
|
404
|
+
return moduleArray.find(func => func.name === moduleName);
|
405
|
+
}, // END findModuleByName
|
406
|
+
|
359
407
|
// -------------------------------------------------------------------------
|
360
408
|
// pluginManager()
|
361
409
|
//
|