j1-template 2022.1.0 → 2022.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/content_generator_article_navigator.html +4 -5
- data/_includes/themes/j1/layouts/content_generator_blog_archive.html +4 -5
- data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +35 -19
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.0.proc +129 -0
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.1.proc +113 -0
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +3 -3
- data/_includes/themes/j1/procedures/global/create_word_cloud.proc +1 -5
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +29 -7
- data/_includes/themes/j1/procedures/posts/pager.proc +2 -3
- data/assets/data/carousel.json +2 -2
- data/assets/data/galleries.json +17 -5
- data/assets/data/gallery_customizer.html +4 -5
- data/assets/data/j1_config.json +42 -0
- data/assets/data/panel.html +17 -0
- data/assets/data/quicklinks.html +4 -4
- data/assets/themes/j1/adapter/js/advertising.js +2 -2
- data/assets/themes/j1/adapter/js/algolia.js +5 -5
- data/assets/themes/j1/adapter/js/analytics.js +1 -1
- data/assets/themes/j1/adapter/js/asciidoctor.js +2 -2
- data/assets/themes/j1/adapter/js/attic.js +5 -5
- data/assets/themes/j1/adapter/js/bmd.js +12 -12
- data/assets/themes/j1/adapter/js/carousel.js +40 -30
- data/assets/themes/j1/adapter/js/clipboard.js +2 -2
- data/assets/themes/j1/adapter/js/comments.js +2 -2
- data/assets/themes/j1/adapter/js/cookieConsent.js +2 -2
- data/assets/themes/j1/adapter/js/customFunctions.js +2 -2
- data/assets/themes/j1/adapter/js/customModule.js +2 -2
- data/assets/themes/j1/adapter/js/dropdowns.js +2 -2
- data/assets/themes/j1/adapter/js/fab.js +4 -4
- data/assets/themes/j1/adapter/js/framer.js +2 -2
- data/assets/themes/j1/adapter/js/j1.js +9 -9
- data/assets/themes/j1/adapter/js/justifiedGallery.js +42 -30
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +126 -113
- data/assets/themes/j1/adapter/js/lightbox.js +34 -30
- data/assets/themes/j1/adapter/js/logger.js +2 -2
- data/assets/themes/j1/adapter/js/{quicksearch.js → lunr.js} +17 -19
- data/assets/themes/j1/adapter/js/mmenu.js +7 -7
- data/assets/themes/j1/adapter/js/navigator.js +5 -5
- data/assets/themes/j1/adapter/js/rangeSlider.js +96 -83
- data/assets/themes/j1/adapter/js/rouge.js +26 -22
- data/assets/themes/j1/adapter/js/rtable.js +2 -2
- data/assets/themes/j1/adapter/js/rtextResizer.js +6 -22
- data/assets/themes/j1/adapter/js/scroller.js +2 -2
- data/assets/themes/j1/adapter/js/themer.js +3 -3
- data/assets/themes/j1/adapter/js/toccer.js +5 -5
- data/assets/themes/j1/adapter/js/translator.js +2 -2
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +19 -6
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +2 -2
- data/assets/themes/j1/core/css/vendor.css +2 -3
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +1 -6
- data/assets/themes/j1/core/js/template.min.js +1 -6
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.js +1 -1
- data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.js +1 -1
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.js +28 -12
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.min.js +1 -1
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.js +1 -1
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.min.js +1 -2
- data/assets/themes/j1/modules/lightbox/css/theme/uno.min.css +1 -11
- data/assets/themes/j1/modules/{lunrSearch/css/quicksearch.css → lunr/css/j1.css} +2 -2
- data/assets/themes/j1/modules/lunr/css/j1.min.css +15 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/dateformat.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/dateformat.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch/js/quicksearch.js → lunr/js/j1.js} +11 -8
- data/assets/themes/j1/modules/{lunrSearch/js/quicksearch.min.js → lunr/js/j1.min.js} +1 -1
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.language.support.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.language.support.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/lunr.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/mustache.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/mustache.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/uri.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/js/uri.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ar.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ar.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.da.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.da.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.de.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.de.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.du.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.du.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.es.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.es.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fi.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fi.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fr.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.fr.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.hu.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.hu.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.it.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.it.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ja.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ja.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.jp.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.jp.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.multi.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.multi.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.nl.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.nl.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.no.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.no.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.pt.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.pt.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ro.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ro.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ru.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.ru.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.sv.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.sv.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.th.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.tr.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.tr.min.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.vi.js +0 -0
- data/assets/themes/j1/modules/{lunrSearch → lunr}/languages/lunr.vi.min.js +0 -0
- data/assets/themes/j1/modules/mmenuLight/css/mmenu-light.min.css +2 -375
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.css +14 -5
- data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.min.css +2 -179
- data/assets/themes/j1/modules/msDropdown/css/msDropdown.min.css +1 -12
- data/assets/themes/j1/modules/msDropdown/css/themes/uno/msDropdown.css +3 -1
- data/assets/themes/j1/modules/msDropdown/css/themes/uno/msDropdown.min.css +23 -0
- data/assets/themes/j1/modules/videojs/css/video-js.css +6 -2
- data/assets/themes/j1/modules/videojs/css/video-js.min.css +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +68 -95
- data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +168 -0
- data/lib/starter_web/_data/blocks/panel.yml +2 -0
- data/lib/starter_web/_data/j1_config.yml +33 -1
- data/lib/starter_web/_data/layouts/app.yml +11 -6
- data/lib/starter_web/_data/layouts/article_navigator.yml +8 -3
- data/lib/starter_web/_data/layouts/blog_archive.yml +8 -3
- data/lib/starter_web/_data/layouts/collection.yml +14 -21
- data/lib/starter_web/_data/layouts/default.yml +11 -36
- data/lib/starter_web/_data/layouts/home.yml +14 -22
- data/lib/starter_web/_data/layouts/news_panel_posts.yml +8 -3
- data/lib/starter_web/_data/layouts/page.yml +8 -14
- data/lib/starter_web/_data/layouts/post.yml +8 -3
- data/lib/starter_web/_data/layouts/raw.yml +14 -9
- data/lib/starter_web/_data/{builder → modules}/blog_navigator.yml +4 -4
- data/lib/starter_web/_data/{apps → modules}/carousel.yml +2 -2
- data/lib/starter_web/_data/{builder → modules}/defaults/blog_navigator.yml +4 -5
- data/lib/starter_web/_data/{apps → modules}/defaults/carousel.yml +1 -1
- data/lib/starter_web/_data/{apps → modules}/defaults/justifiedGallery.yml +1 -1
- data/lib/starter_web/_data/{apps → modules}/defaults/lightGallery.yml +1 -1
- data/lib/starter_web/_data/{apps → modules}/defaults/lightbox.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/{quicksearch.yml → lunr.yml} +6 -15
- data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
- data/lib/starter_web/_data/{apps → modules}/justifiedGallery.yml +101 -50
- data/lib/starter_web/_data/{apps → modules}/lightGallery.yml +1 -1
- data/lib/starter_web/_data/{apps → modules}/lightbox.yml +2 -2
- data/lib/starter_web/_data/modules/{quicksearch.yml → lunr.yml} +4 -7
- data/lib/starter_web/_data/modules/navigator_menu.yml +1 -1
- data/lib/starter_web/_data/modules/rangeSlider.yml +2 -2
- data/lib/starter_web/_data/resources.yml +20 -21
- data/lib/starter_web/_includes/attributes.asciidoc +16 -3
- data/lib/starter_web/_plugins/asciidoctor-extensions/lightbox-block.rb +6 -4
- data/lib/starter_web/_plugins/filters.rb +53 -0
- data/lib/starter_web/_plugins/lunr_index.rb +11 -6
- data/lib/starter_web/assets/images/modules/attics/joanna-kosinska-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/dailymotion/meditation.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/dailymotion/pilates.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/video1.mp4 +0 -0
- data/lib/starter_web/assets/videos/gallery/html5/video2.mp4 +0 -0
- data/lib/starter_web/assets/videos/gallery/vk/hai.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/vk/otter.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/battle.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/ben.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/constance.jpg +0 -0
- data/lib/starter_web/assets/videos/gallery/voice_kids_de_2021/elisa.jpg +0 -0
- data/lib/starter_web/collections/asciidoc_skeletons/simple-post/{yyyy-mm-dd-your-post-name.adoc → _posts/yyyy-mm-dd-your-post-name.asciidoc} +26 -12
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-site-generators.adoc +2 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/2022-02-28-about-j1.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-wiki-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-wiki-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-wiki-series.adoc +2 -2
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/_blog/navigator/archive/categoryview.html +254 -0
- data/lib/starter_web/pages/public/_blog/navigator/archive/dateview.html +238 -0
- data/lib/starter_web/pages/public/_blog/navigator/archive/tagview.html +283 -0
- data/lib/starter_web/pages/public/_blog/navigator/archive.html +204 -0
- data/lib/starter_web/pages/public/_blog/navigator/index.html +53 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +2 -4
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +15 -3
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +15 -3
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +5 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +5 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +5 -7
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +33 -12
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +30 -11
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +28 -11
- data/lib/starter_web/pages/public/blog/navigator/archive.html +29 -11
- data/lib/starter_web/pages/public/blog/navigator/index.html +2 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +13 -17
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +99 -16
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +74 -74
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +7 -13
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +91 -77
- data/assets/themes/j1/modules/lunrSearch/css/quicksearch.min.css +0 -32
- data/lib/starter_web/_data/layouts/home.ads.yml +0 -262
- data/lib/starter_web/_data/layouts/home.no-ads.yml +0 -262
- data/lib/starter_web/_data/pages/builder.yml +0 -87
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.ads.asciidoc +0 -265
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.base.asciidoc +0 -237
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.comments.asciidoc +0 -237
data/assets/data/panel.html
CHANGED
@@ -58,6 +58,7 @@ exclude_from_search: true
|
|
58
58
|
{% comment %} Variables
|
59
59
|
-------------------------------------------------------------------------------- {% endcomment %}
|
60
60
|
{% assign truncate_words = site.excerpt_truncate_words %}
|
61
|
+
{% assign category_blacklist = template_config.posts.category_blacklist %}
|
61
62
|
|
62
63
|
{% comment %} Set HELPER variables (used by exception panel)
|
63
64
|
-------------------------------------------------------------------------------- {% endcomment %}
|
@@ -454,6 +455,7 @@ exclude_from_search: true
|
|
454
455
|
{% when 'news' %}
|
455
456
|
|
456
457
|
{% assign panel_options = panel_config_defaults.news|merge: panel_settings %}
|
458
|
+
|
457
459
|
{% if debug %}<!-- panel_options: {{panel_options}} -->{% endif %}
|
458
460
|
<!-- Panel {{panel_settings.id}} -->
|
459
461
|
<section id="{{panel_settings.id}}" class="container">
|
@@ -547,6 +549,21 @@ exclude_from_search: true
|
|
547
549
|
{% if language == "de" %}
|
548
550
|
<i class="mdi mdi-calendar-blank md-grey-900 mr-1"></i>{{post.date | localize: "%-d. %B %Y"}}
|
549
551
|
{% endif %}
|
552
|
+
|
553
|
+
<!-- Cleanup categories by given blacklist -->
|
554
|
+
{% assign my_categories = post.categories | difference: category_blacklist %}
|
555
|
+
|
556
|
+
<!-- Build element strings -->
|
557
|
+
{% assign categories = my_categories |join: " · " %}
|
558
|
+
{% assign tags = post.tags | join: " · " %}
|
559
|
+
|
560
|
+
<p class="result-item-text small text-muted mb-3">
|
561
|
+
<i class="mdi mdi-tag-text-outline mdi-18px mr-1"></i>
|
562
|
+
<span class="sr-categories">{{categories}}</span>
|
563
|
+
<br>
|
564
|
+
<i class="mdi mdi-tag mdi-18px mr-1"></i>
|
565
|
+
<span class="sr-tags">{{tags}}</span>
|
566
|
+
</p>
|
550
567
|
</div>
|
551
568
|
<a class="card-link md-grey-900 text-lowercase"
|
552
569
|
href="{{post.url}}">
|
data/assets/data/quicklinks.html
CHANGED
@@ -41,8 +41,8 @@ exclude_from_search: true
|
|
41
41
|
{% assign navigator_settings = modules.navigator.settings %}
|
42
42
|
{% assign consent_defaults = modules.defaults.cookieconsent.defaults %}
|
43
43
|
{% assign consent_settings = modules.cookieconsent.settings %}
|
44
|
-
{% assign
|
45
|
-
{% assign
|
44
|
+
{% assign lunr_search_defaults = modules.defaults.lunr.defaults %}
|
45
|
+
{% assign lunr_search_settings = modules.lunr.settings %}
|
46
46
|
|
47
47
|
{% comment %} Control Center disabled
|
48
48
|
--------------------------------------------------------------------------------
|
@@ -60,7 +60,7 @@ exclude_from_search: true
|
|
60
60
|
{% comment %} Set config options
|
61
61
|
-------------------------------------------------------------------------------- {% endcomment %}
|
62
62
|
{% assign authentication_options = authentication_defaults | merge: authentication_settings %}
|
63
|
-
{% assign
|
63
|
+
{% assign lunr_search_options = lunr_search_defaults | merge: lunr_search_settings %}
|
64
64
|
{% assign quicklinks_options = nav_quicklinks_defaults | merge: nav_quicklinks_settings %}
|
65
65
|
{% assign consent_options = consent_defaults | merge: consent_settings %}
|
66
66
|
|
@@ -140,7 +140,7 @@ exclude_from_search: true
|
|
140
140
|
|
141
141
|
{% comment %} Show|Hide Quicksearch icon
|
142
142
|
-------------------------------------------------------------------------------- {% endcomment %}
|
143
|
-
{% if
|
143
|
+
{% if lunr_search_options.enabled %}
|
144
144
|
{% assign show_quicksearch_icon = true %}
|
145
145
|
{% else %}
|
146
146
|
{% assign show_quicksearch_icon = false %}
|
@@ -151,7 +151,7 @@ var logText;
|
|
151
151
|
|
152
152
|
// initialize state flag
|
153
153
|
_this.setState('started');
|
154
|
-
logger.
|
154
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
155
155
|
logger.info('\n' + 'module is being initialized');
|
156
156
|
|
157
157
|
var dependencies_met_page_ready = setInterval(function() {
|
@@ -221,7 +221,7 @@ var logText;
|
|
221
221
|
_this.monitor_ads();
|
222
222
|
|
223
223
|
_this.setState('finished');
|
224
|
-
logger.
|
224
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
225
225
|
logger.info('\n' + 'module initialized successfully');
|
226
226
|
clearInterval(dependencies_met_tracking_check_ready);
|
227
227
|
}
|
@@ -116,7 +116,7 @@ j1.adapter.algolia = (function (j1, window) {
|
|
116
116
|
_this.state = 'pending';
|
117
117
|
|
118
118
|
_this.setState('started');
|
119
|
-
logger.
|
119
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
120
120
|
logger.info('\n' + 'module is being initialized');
|
121
121
|
|
122
122
|
{% comment %} Load module config from yml data
|
@@ -139,7 +139,7 @@ j1.adapter.algolia = (function (j1, window) {
|
|
139
139
|
|
140
140
|
var hitTemplate = function(hit) {
|
141
141
|
// state = 'start search';
|
142
|
-
// logger.
|
142
|
+
// logger.debug('\n' + 'state: ' + state);
|
143
143
|
// var re = new RegExp('^\/posts');
|
144
144
|
// var re = new RegExp('^\/pages');
|
145
145
|
var re = new RegExp('^\/pages|^\/posts|^\/collections');
|
@@ -179,7 +179,7 @@ j1.adapter.algolia = (function (j1, window) {
|
|
179
179
|
`;
|
180
180
|
}
|
181
181
|
// state = 'finished search';
|
182
|
-
// logger.
|
182
|
+
// logger.debug('\n' + 'state: ' + state);
|
183
183
|
};
|
184
184
|
|
185
185
|
if (moduleOptions.enabled == true) {
|
@@ -269,13 +269,13 @@ j1.adapter.algolia = (function (j1, window) {
|
|
269
269
|
$('#searcher').addClass('row');
|
270
270
|
|
271
271
|
_this.setState('finished');
|
272
|
-
logger.
|
272
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
273
273
|
logger.info('\n' + 'module initialized successfully');
|
274
274
|
|
275
275
|
} else {
|
276
276
|
$('#algolia-site-search').append('<p class="ml-5 mt-5 mb-5 "> <strong>Algolia Search DISABLED</strong> </p>');
|
277
277
|
_this.setState('finished');
|
278
|
-
logger.
|
278
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
279
279
|
logger.warn('\n' + 'module disabled');
|
280
280
|
}
|
281
281
|
|
@@ -138,7 +138,7 @@ var logText;
|
|
138
138
|
|
139
139
|
// initialize state flag
|
140
140
|
_this.setState('started');
|
141
|
-
logger.
|
141
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
142
142
|
logger.info('\n' + 'module is being initialized');
|
143
143
|
|
144
144
|
// remove cookies on invalid GA config or left from a previous
|
@@ -84,7 +84,7 @@ j1.adapter.asciidoctor = (function (j1, window) {
|
|
84
84
|
|
85
85
|
// initialize state flag
|
86
86
|
_this.setState('started');
|
87
|
-
logger.
|
87
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
88
88
|
logger.info('\n' + 'module is being initialized');
|
89
89
|
|
90
90
|
// -----------------------------------------------------------------------
|
@@ -100,7 +100,7 @@ j1.adapter.asciidoctor = (function (j1, window) {
|
|
100
100
|
j1.core.asciidoctor.init();
|
101
101
|
|
102
102
|
_this.setState('finished');
|
103
|
-
logger.
|
103
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
104
104
|
|
105
105
|
clearInterval(dependencies_met_j1_finished);
|
106
106
|
} // END dependencies_met_j1_finished
|
@@ -126,7 +126,7 @@ j1.adapter.attic = (function (j1, window) {
|
|
126
126
|
_this['frontmatterOptions'] = frontmatterOptions;
|
127
127
|
|
128
128
|
_this.setState('started');
|
129
|
-
logger.
|
129
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
130
130
|
logger.info('\n' + 'module is being initialized');
|
131
131
|
|
132
132
|
_this.loadHeader(frontmatterOptions);
|
@@ -238,7 +238,7 @@ j1.adapter.attic = (function (j1, window) {
|
|
238
238
|
}
|
239
239
|
}
|
240
240
|
_this.setState('finished');
|
241
|
-
logger.
|
241
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
242
242
|
logger.info('\n' + 'module initialized successfully');
|
243
243
|
});
|
244
244
|
|
@@ -499,7 +499,7 @@ j1.adapter.attic = (function (j1, window) {
|
|
499
499
|
$('head').append(attic_opacity);
|
500
500
|
|
501
501
|
_this.setState('initialized');
|
502
|
-
logger.
|
502
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
503
503
|
|
504
504
|
{% comment %} Run the image header if any
|
505
505
|
-------------------------------------------------------------------- {% endcomment %}
|
@@ -510,7 +510,7 @@ j1.adapter.attic = (function (j1, window) {
|
|
510
510
|
logger.debug('\n' + 'Load image header');
|
511
511
|
{{attic_id}}(atticOptions);
|
512
512
|
_this.setState('completed');
|
513
|
-
logger.
|
513
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
514
514
|
});
|
515
515
|
}
|
516
516
|
} // END if header id found in page
|
@@ -520,7 +520,7 @@ j1.adapter.attic = (function (j1, window) {
|
|
520
520
|
// NO header found in page
|
521
521
|
if ($('#no_header').length) {
|
522
522
|
_this.setState('completed');
|
523
|
-
logger.
|
523
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
524
524
|
logger.warn('\n' + 'no header configured or found in page');
|
525
525
|
}
|
526
526
|
|
@@ -82,23 +82,23 @@ j1.adapter.bmd = (function (j1, window) {
|
|
82
82
|
_this = j1.adapter.bmd;
|
83
83
|
logger = log4javascript.getLogger('j1.adapter.bmd');
|
84
84
|
|
85
|
-
// initialize state flag
|
86
|
-
_this.setState('started');
|
87
|
-
logger.info('\n' + 'state: ' + _this.getState());
|
88
|
-
logger.info('\n' + 'module is being initialized');
|
89
|
-
// -----------------------------------------------------------------------
|
90
|
-
// BMD initializer
|
91
|
-
// -----------------------------------------------------------------------
|
92
|
-
var log_text = '\n' + 'BMD is being initialized';
|
93
|
-
logger.info(log_text);
|
94
|
-
|
95
85
|
var dependencies_met_j1_finished = setInterval(function() {
|
96
86
|
if (j1.getState() == 'finished') {
|
87
|
+
|
88
|
+
// initialize state flag
|
89
|
+
_this.setState('started');
|
90
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
91
|
+
logger.info('\n' + 'module is being initialized');
|
92
|
+
|
93
|
+
var log_text = '\n' + 'BMD is being initialized';
|
94
|
+
logger.info(log_text);
|
95
|
+
|
96
|
+
// BMD initializer
|
97
97
|
$('body').bmd();
|
98
98
|
|
99
99
|
_this.setState('finished');
|
100
|
-
logger.
|
101
|
-
|
100
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
101
|
+
logger.info('\n' + 'initializing module finished');
|
102
102
|
clearInterval(dependencies_met_j1_finished);
|
103
103
|
} // END dependencies_met_j1_finished
|
104
104
|
}, 25);
|
@@ -44,11 +44,19 @@ regenerate: true
|
|
44
44
|
-------------------------------------------------------------------------------- {% endcomment %}
|
45
45
|
{% assign template_config = site.data.j1_config %}
|
46
46
|
{% assign apps = site.data.apps %}
|
47
|
+
{% assign modules = site.data.modules %}
|
47
48
|
|
48
49
|
{% comment %} Set config data
|
49
50
|
-------------------------------------------------------------------------------- {% endcomment %}
|
51
|
+
|
52
|
+
{% comment %}
|
53
|
+
--------------------------------------------------------------------------------
|
50
54
|
{% assign carousel_defaults = apps.defaults.carousel.defaults %}
|
51
55
|
{% assign carousel_settings = apps.carousel.settings %}
|
56
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
57
|
+
|
58
|
+
{% assign carousel_defaults = modules.defaults.carousel.defaults %}
|
59
|
+
{% assign carousel_settings = modules.carousel.settings %}
|
52
60
|
|
53
61
|
{% comment %} Set config options
|
54
62
|
-------------------------------------------------------------------------------- {% endcomment %}
|
@@ -113,26 +121,23 @@ j1.adapter.carousel = (function (j1, window) {
|
|
113
121
|
_this = j1.adapter.carousel;
|
114
122
|
logger = log4javascript.getLogger('j1.adapter.carousel');
|
115
123
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
{% comment %} Load module config from yml data
|
120
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
121
|
-
// Load module DEFAULTS|CONFIG
|
122
|
-
/* eslint-disable */
|
123
|
-
moduleOptions = $.extend({}, {{carousel_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
124
|
-
/* eslint-enable */
|
124
|
+
var dependencies_met_page_finished = setInterval(function() {
|
125
|
+
if (j1.getState() == 'finished') {
|
125
126
|
|
126
|
-
|
127
|
-
|
128
|
-
|
127
|
+
{% comment %} Load module config from yml data
|
128
|
+
-------------------------------------------------------------------------- {% endcomment %}
|
129
|
+
// Load module DEFAULTS|CONFIG
|
130
|
+
/* eslint-disable */
|
131
|
+
moduleOptions = $.extend({}, {{carousel_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
132
|
+
/* eslint-enable */
|
129
133
|
|
130
|
-
|
131
|
-
|
132
|
-
|
134
|
+
if (typeof settings !== 'undefined') {
|
135
|
+
moduleOptions = j1.mergeData(moduleOptions, settings);
|
136
|
+
}
|
133
137
|
|
134
|
-
|
135
|
-
|
138
|
+
_this.setState('started');
|
139
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
140
|
+
logger.info('\n' + 'module is being initialized');
|
136
141
|
|
137
142
|
{% for item in carousel_options.carousel %}
|
138
143
|
|
@@ -153,13 +158,9 @@ j1.adapter.carousel = (function (j1, window) {
|
|
153
158
|
// Create an Carousel INSTANCE if slider on id: {{slider_id}} exists
|
154
159
|
if ($('#{{slider_id}}').length) {
|
155
160
|
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
_this.setState('running');
|
160
|
-
logger.info('\n' + 'state: ' + _this.getState());
|
161
|
-
logger.info('\n' + 'module is being initialized');
|
162
|
-
{% endif %}
|
161
|
+
logText = '\n' + 'slider is being processed on id: #{{slider_id}}';
|
162
|
+
logger.info(logText);
|
163
|
+
_this.setState('processing');
|
163
164
|
|
164
165
|
{% if item.show.slide_height != null %}
|
165
166
|
// Set slide_height: {{item.show.slide_height}}vh
|
@@ -333,18 +334,27 @@ j1.adapter.carousel = (function (j1, window) {
|
|
333
334
|
{% endif %}
|
334
335
|
}
|
335
336
|
$('#{{slider_id}}').html(content);
|
336
|
-
|
337
|
+
_this.setState('processed');
|
338
|
+
logText = '\n' + 'processing slider finished on id: {{slider_id}}';
|
337
339
|
logger.info(logText);
|
338
340
|
} // END customDataSuccess_{{forloop.index}}
|
339
341
|
} // END if carousel exists
|
340
342
|
{% endif %}
|
341
343
|
{% endfor %}
|
344
|
+
|
342
345
|
clearInterval(dependencies_met_page_finished);
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
346
|
+
|
347
|
+
var dependencies_met_sliders_processed = setInterval(function() {
|
348
|
+
if (_this.getState() == 'processed') {
|
349
|
+
_this.setState('finished');
|
350
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
351
|
+
logger.info('\n' + 'initializing module finished');
|
352
|
+
|
353
|
+
clearInterval(dependencies_met_sliders_processed);
|
354
|
+
}
|
355
|
+
}, 25); // END 'dependencies_met_sliders_processed'
|
356
|
+
} // END if j1.getState 'finished'
|
357
|
+
}, 25); // END 'dependencies_met_page_finished'
|
348
358
|
}, // END init
|
349
359
|
|
350
360
|
// -------------------------------------------------------------------------
|
@@ -138,9 +138,9 @@ j1.adapter.clipboard = (function (j1, window) {
|
|
138
138
|
_this.initEventHandler(clipboardJS);
|
139
139
|
|
140
140
|
clearInterval(dependencies_met_j1_finished);
|
141
|
-
logger.
|
141
|
+
logger.debug('\n' + 'met dependencies for: j1');
|
142
142
|
_this.setState('finished');
|
143
|
-
logger.
|
143
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
144
144
|
logger.info('\n' + 'module initialized successfully');
|
145
145
|
}
|
146
146
|
}, 25); // END dependencies_met_j1_finished
|
@@ -182,7 +182,7 @@ var logText;
|
|
182
182
|
// initialize state flag, issue init message
|
183
183
|
// -------------------------------------------------------------------
|
184
184
|
_this.setState('started');
|
185
|
-
logger.
|
185
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
186
186
|
logger.info('\n' + 'module is being initialized for provider: ' + comments_provider);
|
187
187
|
|
188
188
|
// place|remove initialization code
|
@@ -259,7 +259,7 @@ var logText;
|
|
259
259
|
// initialize state flag, issue init message
|
260
260
|
// -------------------------------------------------------------------
|
261
261
|
_this.setState('started');
|
262
|
-
logger.
|
262
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
263
263
|
logger.info('\n' + 'module is being initialized for provider: ' + comments_provider);
|
264
264
|
|
265
265
|
// place|remove initialization code
|
@@ -201,7 +201,7 @@ j1.adapter.cookieConsent = (function (j1, window) {
|
|
201
201
|
|
202
202
|
if ( j1.getState() === 'finished' ) {
|
203
203
|
_this.setState('started');
|
204
|
-
logger.
|
204
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
205
205
|
logger.info('\n' + 'module is being initialized');
|
206
206
|
|
207
207
|
j1.cookieConsent = new CookieConsent ({
|
@@ -220,7 +220,7 @@ j1.adapter.cookieConsent = (function (j1, window) {
|
|
220
220
|
});
|
221
221
|
|
222
222
|
_this.setState('finished');
|
223
|
-
logger.
|
223
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
224
224
|
logger.debug('\n' + 'module initialized successfully');
|
225
225
|
|
226
226
|
// -------------------------------------------------------------------
|
@@ -120,7 +120,7 @@ j1.adapter.customFunctions = (function (j1, window) {
|
|
120
120
|
|
121
121
|
// initialize state flag
|
122
122
|
_this.setState('started');
|
123
|
-
logger.
|
123
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
124
124
|
logger.info('\n' + 'module is being initialized');
|
125
125
|
|
126
126
|
// create settings object from frontmatterOptions
|
@@ -145,7 +145,7 @@ j1.adapter.customFunctions = (function (j1, window) {
|
|
145
145
|
// place init code here if required
|
146
146
|
//
|
147
147
|
_this.setState('finished');
|
148
|
-
logger.
|
148
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
149
149
|
|
150
150
|
clearInterval(dependencies_met_j1_finished);
|
151
151
|
} // END dependencies_met_j1_finished
|
@@ -120,7 +120,7 @@ j1.adapter.customModule = (function (j1, window) {
|
|
120
120
|
|
121
121
|
// initialize state flag
|
122
122
|
_this.setState('started');
|
123
|
-
logger.
|
123
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
124
124
|
logger.info('\n' + 'module is being initialized');
|
125
125
|
|
126
126
|
// create settings object from frontmatterOptions
|
@@ -145,7 +145,7 @@ j1.adapter.customModule = (function (j1, window) {
|
|
145
145
|
// place init code here if required
|
146
146
|
//
|
147
147
|
_this.setState('finished');
|
148
|
-
logger.
|
148
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
149
149
|
|
150
150
|
clearInterval(dependencies_met_j1_finished);
|
151
151
|
} // END dependencies_met_j1_finished
|
@@ -119,7 +119,7 @@ j1.adapter.dropdowns = (function (j1, window) {
|
|
119
119
|
|
120
120
|
// initialize state flag
|
121
121
|
_this.setState('started');
|
122
|
-
logger.
|
122
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
123
123
|
logger.info('\n' + 'module is being initialized');
|
124
124
|
|
125
125
|
// create settings object from frontmatterOptions
|
@@ -198,7 +198,7 @@ j1.adapter.dropdowns = (function (j1, window) {
|
|
198
198
|
{% endif %} {% endfor %}
|
199
199
|
|
200
200
|
_this.setState('finished');
|
201
|
-
logger.
|
201
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
202
202
|
|
203
203
|
clearInterval(dependencies_met_j1_finished);
|
204
204
|
} // END dependencies_met_j1_finished
|
@@ -160,7 +160,7 @@ j1.adapter.fab = (function (j1, window) {
|
|
160
160
|
|
161
161
|
var dependencies_met_navigator = setInterval(function() {
|
162
162
|
if (j1.adapter.navigator.getState() == 'finished') {
|
163
|
-
logger.
|
163
|
+
logger.debug('\n' + 'met dependencies for: navigator');
|
164
164
|
_this.fabLoader(moduleOptions);
|
165
165
|
clearInterval(dependencies_met_navigator);
|
166
166
|
}
|
@@ -199,7 +199,7 @@ j1.adapter.fab = (function (j1, window) {
|
|
199
199
|
_this.buttonInitializer(fabOptions);
|
200
200
|
|
201
201
|
_this.setState('finished');
|
202
|
-
logger.
|
202
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
203
203
|
logger.info('\n' + 'module initialized successfully');
|
204
204
|
|
205
205
|
$('.fab-btn').show();
|
@@ -291,7 +291,7 @@ j1.adapter.fab = (function (j1, window) {
|
|
291
291
|
logger.info('\n' + 'found toc in page: enabled');
|
292
292
|
var dependencies_met_toccer_finished = setInterval (function () {
|
293
293
|
if ( j1.adapter.toccer.getState() == 'finished' ) {
|
294
|
-
logger.
|
294
|
+
logger.debug('\n' + 'met dependencies for: toccer');
|
295
295
|
|
296
296
|
// fabOptions.mode === 'icon'
|
297
297
|
// ? logger.info('\n' + 'FAB mode detected: icon')
|
@@ -352,7 +352,7 @@ j1.adapter.fab = (function (j1, window) {
|
|
352
352
|
logger.info('\n' + 'found toc in page: enabled');
|
353
353
|
var dependencies_met_toccer_finished = setInterval (function () {
|
354
354
|
if ( j1.adapter.toccer.getState() == 'finished' ) {
|
355
|
-
logger.
|
355
|
+
logger.debug('\n' + 'met dependencies for toccer: finished');
|
356
356
|
// change the id of the $actionButton to the already
|
357
357
|
// registered id by mmenu adapter of ('open_mmenu_toc')
|
358
358
|
// to open the TOC sidebar
|
@@ -121,7 +121,7 @@ j1.adapter.framer = (function (j1, window) {
|
|
121
121
|
|
122
122
|
// initialize state flag
|
123
123
|
_this.setState('started');
|
124
|
-
logger.
|
124
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
125
125
|
logger.info('\n' + 'module is being initialized');
|
126
126
|
|
127
127
|
{% comment %} Load module config from yml data
|
@@ -158,7 +158,7 @@ j1.adapter.framer = (function (j1, window) {
|
|
158
158
|
});
|
159
159
|
|
160
160
|
_this.setState('finished');
|
161
|
-
logger.
|
161
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
162
162
|
logger.info('\n' + 'initializing module finished');
|
163
163
|
|
164
164
|
clearInterval(dependencies_met_page_finished);
|
@@ -393,7 +393,7 @@ var j1 = (function () {
|
|
393
393
|
});
|
394
394
|
|
395
395
|
j1.setState(curr_state);
|
396
|
-
logger.
|
396
|
+
logger.debug('\n' + 'state: ' + j1.getState());
|
397
397
|
|
398
398
|
var dependencies_met_page_displayed = setInterval (function () {
|
399
399
|
if (j1.getState() == 'finished') {
|
@@ -411,7 +411,7 @@ var j1 = (function () {
|
|
411
411
|
}
|
412
412
|
logger.info('\n' + 'authentication detected as: ' + user_session.authenticated);
|
413
413
|
$('#quickLinksSignInOutButton').css('display', 'block');
|
414
|
-
logger.
|
414
|
+
logger.debug('\n' + 'met dependencies for: j1');
|
415
415
|
clearInterval(dependencies_met_page_displayed);
|
416
416
|
}
|
417
417
|
}
|
@@ -437,18 +437,18 @@ var j1 = (function () {
|
|
437
437
|
});
|
438
438
|
|
439
439
|
j1.setState(curr_state);
|
440
|
-
logger.
|
440
|
+
logger.debug('\n' + 'state: ' + j1.getState());
|
441
441
|
}, detectTimeout);
|
442
442
|
});
|
443
443
|
} else {
|
444
444
|
// web mode
|
445
445
|
state = 'started';
|
446
|
-
logger.
|
446
|
+
logger.debug('\n' + 'state: ' + state);
|
447
447
|
logger.info('\n' + 'page is being initialized');
|
448
448
|
}
|
449
449
|
|
450
450
|
state = 'started';
|
451
|
-
logger.
|
451
|
+
logger.debug('\n' + 'state: ' + state);
|
452
452
|
logger.info('\n' + 'page is being initialized');
|
453
453
|
|
454
454
|
if ( settings.scrollbar === 'false' ) {
|
@@ -503,7 +503,7 @@ var j1 = (function () {
|
|
503
503
|
j1.initFooter(settings);
|
504
504
|
|
505
505
|
state = 'running';
|
506
|
-
logger.
|
506
|
+
logger.debug('\n' + 'state: ' + state);
|
507
507
|
|
508
508
|
user_session.timestamp = timestamp_now;
|
509
509
|
logger.debug('\n' + 'write to cookie : ' + cookie_names.user_session);
|
@@ -1398,7 +1398,7 @@ var j1 = (function () {
|
|
1398
1398
|
j1.setXhrDomState(id, 'not loaded');
|
1399
1399
|
// Set processing state to 'finished' to complete module load
|
1400
1400
|
state = 'finished';
|
1401
|
-
logger.
|
1401
|
+
logger.debug('\n' + 'state: ' + state);
|
1402
1402
|
// jadams, 2020-07-21: intermediate state should DISABLED
|
1403
1403
|
// executeFunctionByName(mod + '.setState', window, state);
|
1404
1404
|
state = false;
|
@@ -1877,7 +1877,7 @@ var j1 = (function () {
|
|
1877
1877
|
});
|
1878
1878
|
|
1879
1879
|
});
|
1880
|
-
logger.
|
1880
|
+
logger.debug('\n' + 'met dependencies for: sidebarLoaded');
|
1881
1881
|
clearInterval(sidebarLoaded);
|
1882
1882
|
return true;
|
1883
1883
|
} else {
|
@@ -1935,7 +1935,7 @@ var j1 = (function () {
|
|
1935
1935
|
});
|
1936
1936
|
|
1937
1937
|
});
|
1938
|
-
logger.
|
1938
|
+
logger.debug('\n' + 'met dependencies for: sidebarLoaded');
|
1939
1939
|
clearInterval(sidebarLoaded);
|
1940
1940
|
return true;
|
1941
1941
|
} else {
|