j1-template 2021.1.11 → 2021.1.16
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/blocks/footer/boxes/issue.proc +28 -5
- data/_includes/themes/j1/blocks/footer/boxes/legal_statements.proc +66 -23
- data/_includes/themes/j1/blocks/footer/boxes/links_box.proc +0 -1
- data/_includes/themes/j1/blocks/footer/boxes/news_box.proc +16 -1
- data/_includes/themes/j1/layouts/content_generator_app.html +1 -1
- data/_includes/themes/j1/layouts/content_generator_blog_archive.html +197 -219
- data/_includes/themes/j1/layouts/content_generator_collection.html +4 -2
- data/_includes/themes/j1/layouts/content_generator_page.html +4 -1
- data/_includes/themes/j1/layouts/content_generator_post.html +31 -23
- data/_includes/themes/j1/layouts/content_generator_raw.html +1 -1
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +55 -0
- data/_includes/themes/j1/modules/connectors/comment/commento.html +31 -0
- data/_includes/themes/j1/modules/connectors/comment/custom-provider.html +7 -8
- data/_includes/themes/j1/modules/connectors/comment/disqus.html +12 -54
- data/_includes/themes/j1/modules/connectors/comment/facebook.html +7 -8
- data/_includes/themes/j1/modules/connectors/comment/hyvor.html +33 -0
- data/_includes/themes/j1/modules/connectors/comment/just-comments.html +31 -0
- data/_includes/themes/j1/modules/connectors/comments +3 -0
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +27 -5
- data/_includes/themes/j1/procedures/posts/pager.proc +123 -0
- data/_layouts/default.html +52 -1
- data/assets/data/cookieconsent.html +0 -2
- data/assets/data/disqus.js +81 -0
- data/assets/data/hyvor.js +72 -0
- data/assets/data/menu.html +1 -1
- data/assets/data/mmenu_toc.html +20 -1
- data/assets/data/panel.html +28 -7
- data/assets/error_pages/HTTP204.html +2 -1
- data/assets/error_pages/HTTP400.html +2 -1
- data/assets/error_pages/HTTP401.html +2 -1
- data/assets/error_pages/HTTP403.html +2 -1
- data/assets/error_pages/HTTP404.html +2 -1
- data/assets/error_pages/HTTP444.html +93 -0
- data/assets/error_pages/HTTP500.html +2 -1
- data/assets/error_pages/HTTP501.html +2 -1
- data/assets/error_pages/HTTP502.html +2 -1
- data/assets/error_pages/HTTP503.html +2 -1
- data/assets/themes/j1/adapter/js/algolia.js +10 -10
- data/assets/themes/j1/adapter/js/asciidoctor.js +6 -6
- data/assets/themes/j1/adapter/js/attic.js +17 -17
- data/assets/themes/j1/adapter/js/bmd.js +6 -6
- data/assets/themes/j1/adapter/js/carousel.js +10 -10
- data/assets/themes/j1/adapter/js/clipboard.js +10 -10
- data/assets/themes/j1/adapter/js/cookieConsent.js +58 -47
- data/assets/themes/j1/adapter/js/fam.js +34 -34
- data/assets/themes/j1/adapter/js/framer.js +6 -6
- data/assets/themes/j1/adapter/js/j1.js +520 -252
- data/assets/themes/j1/adapter/js/justifiedGallery.js +11 -11
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +19 -19
- data/assets/themes/j1/adapter/js/lightbox.js +6 -6
- data/assets/themes/j1/adapter/js/logger.js +7 -7
- data/assets/themes/j1/adapter/js/mmenu.js +25 -25
- data/assets/themes/j1/adapter/js/navigator.js +55 -48
- data/assets/themes/j1/adapter/js/quicksearch.js +6 -6
- data/assets/themes/j1/adapter/js/rouge.js +7 -7
- data/assets/themes/j1/adapter/js/rtable.js +6 -6
- data/assets/themes/j1/adapter/js/themer.js +43 -47
- data/assets/themes/j1/adapter/js/toccer.js +9 -9
- data/assets/themes/j1/modules/backstretch/js/backstretch.js +3 -3
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +35 -23
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +2 -2
- data/assets/themes/j1/modules/lunrSearch/js/quicksearch.js +1 -1
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +74 -55
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +75 -57
- data/lib/j1/version.rb +3 -3
- data/lib/starter_web/Gemfile +4 -5
- data/lib/starter_web/_config.yml +42 -24
- data/lib/starter_web/_data/blocks/footer.yml +52 -20
- data/lib/starter_web/_data/blocks/panel.yml +4 -4
- data/lib/starter_web/_data/builder/blog_navigator.yml +9 -192
- data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +389 -0
- data/lib/starter_web/_data/j1_config.yml +24 -10
- data/lib/starter_web/_data/locales/be.yml +269 -0
- data/lib/starter_web/_data/locales/cs.yml +218 -0
- data/lib/starter_web/_data/locales/da.yml +213 -0
- data/lib/starter_web/_data/locales/de.yml +222 -0
- data/lib/starter_web/_data/locales/el.yml +215 -0
- data/lib/starter_web/_data/locales/en.yml +215 -0
- data/lib/starter_web/_data/locales/es.yml +219 -0
- data/lib/starter_web/_data/locales/et.yml +207 -0
- data/lib/starter_web/_data/locales/fi.yml +211 -0
- data/lib/starter_web/_data/locales/fr.yml +219 -0
- data/lib/starter_web/_data/locales/hr.yml +240 -0
- data/lib/starter_web/_data/locales/hu.yml +196 -0
- data/lib/starter_web/_data/locales/it.yml +215 -0
- data/lib/starter_web/_data/locales/lv.yml +233 -0
- data/lib/starter_web/_data/locales/nl.yml +213 -0
- data/lib/starter_web/_data/locales/pl.yml +241 -0
- data/lib/starter_web/_data/locales/pt.yml +217 -0
- data/lib/starter_web/_data/locales/readme +4 -0
- data/lib/starter_web/_data/locales/ro.yml +209 -0
- data/lib/starter_web/_data/locales/ru.yml +269 -0
- data/lib/starter_web/_data/locales/sk.yml +211 -0
- data/lib/starter_web/_data/locales/sl.yml +209 -0
- data/lib/starter_web/_data/locales/sv.yml +207 -0
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +11 -10
- data/lib/starter_web/_data/modules/defaults/themer.yml +1 -0
- data/lib/starter_web/_data/modules/themer.yml +1 -0
- data/lib/starter_web/_data/plugins/defaults/paginator.yml +7 -6
- data/lib/starter_web/_data/plugins/paginator.yml +3 -0
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_plugins/date-i18n.rb +67 -0
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/markus-spiske-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/matthew-dockery-1920x1280.jpg +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2020-01-01-about-cookies.adoc +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-01-site-generators.adoc +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +1 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +2 -2
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +1 -1
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +1 -1
- data/lib/starter_web/index.html +3 -3
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +3 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +3 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +3 -0
- data/lib/starter_web/pages/public/blog/navigator/archive.html +80 -12
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +94 -26
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +81 -12
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +95 -37
- data/lib/starter_web/pages/public/blog/navigator/index.html +4 -0
- data/lib/starter_web/pages/public/cookieConsent.adoc +3 -0
- data/lib/starter_web/pages/public/learn/quickstart.adoc +473 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +2 -1
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +0 -2
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +0 -2
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +0 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +0 -1
- data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +116 -0
- data/lib/starter_web/pages/public/legal/de/100_impress.adoc +94 -0
- data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +320 -0
- data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +123 -0
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +3 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +3 -1
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +81 -20
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +34 -16
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +41 -4
- data/_includes/themes/j1/procedures/global/pager.proc +0 -79
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.org.asciidoc +0 -244
@@ -110,8 +110,8 @@ j1.adapter['justifiedGallery'] = (function (j1, window) {
|
|
110
110
|
|
111
111
|
// initialize state flag
|
112
112
|
_this.setState('started');
|
113
|
-
logger.info('state: ' + _this.getState());
|
114
|
-
logger.info('module is being initialized');
|
113
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
114
|
+
logger.info('\n' + 'module is being initialized');
|
115
115
|
|
116
116
|
// -----------------------------------------------------------------------
|
117
117
|
// Default module settings
|
@@ -136,8 +136,8 @@ j1.adapter['justifiedGallery'] = (function (j1, window) {
|
|
136
136
|
_this.initialize(moduleOptions);
|
137
137
|
|
138
138
|
_this.setState('finished');
|
139
|
-
logger.info('state: ' + _this.getState());
|
140
|
-
logger.info('module initialized successfully');
|
139
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
140
|
+
logger.info('\n' + 'module initialized successfully');
|
141
141
|
},
|
142
142
|
|
143
143
|
// -----------------------------------------------------------------------
|
@@ -147,7 +147,7 @@ j1.adapter['justifiedGallery'] = (function (j1, window) {
|
|
147
147
|
logger = log4javascript.getLogger('j1.adapter.justifiedGallery');
|
148
148
|
|
149
149
|
_this.setState('running');
|
150
|
-
logger.info('state: ' + _this.getState());
|
150
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
151
151
|
|
152
152
|
{% for item in jf_gallery_options.galleries %}
|
153
153
|
{% if item.gallery.enabled %}
|
@@ -192,14 +192,14 @@ j1.adapter['justifiedGallery'] = (function (j1, window) {
|
|
192
192
|
{% if lb_options.video.enabled %} {% assign lb_video = lb_options.video.enabled %} {% endif %}
|
193
193
|
|
194
194
|
{% if lb_options.video.enabled %}
|
195
|
-
logText = '
|
195
|
+
logText = '\n' + 'type video not supported';
|
196
196
|
logger.error(logText);
|
197
197
|
{% endif %}
|
198
198
|
|
199
199
|
// Create an gallery instance if id: {{gallery_id}} exists
|
200
200
|
if ($('#{{gallery_id}}').length) {
|
201
201
|
|
202
|
-
logText = 'gallery is being initialized on id: #{{gallery_id}}';
|
202
|
+
logText = '\n' + 'gallery is being initialized on id: #{{gallery_id}}';
|
203
203
|
logger.info(logText);
|
204
204
|
|
205
205
|
// Place HTML markup for the title
|
@@ -332,7 +332,7 @@ j1.adapter['justifiedGallery'] = (function (j1, window) {
|
|
332
332
|
// lightbox is initialized (delayed)
|
333
333
|
setTimeout(function() {
|
334
334
|
$('#{{gallery_id}}').show();
|
335
|
-
logText = 'initializing gallery finished on id: #{{gallery_id}}';
|
335
|
+
logText = '\n' + 'initializing gallery finished on id: #{{gallery_id}}';
|
336
336
|
logger.info(logText);
|
337
337
|
}, {{show_delay}});
|
338
338
|
});
|
@@ -360,7 +360,7 @@ j1.adapter['justifiedGallery'] = (function (j1, window) {
|
|
360
360
|
// lightbox is initialized (delayed)
|
361
361
|
setTimeout(function() {
|
362
362
|
$('#{{gallery_id}}').show();
|
363
|
-
logText = 'initializing gallery finished on id: #{{gallery_id}}';
|
363
|
+
logText = '\n' + 'initializing gallery finished on id: #{{gallery_id}}';
|
364
364
|
logger.info(logText);
|
365
365
|
}, {{show_delay}});
|
366
366
|
});
|
@@ -384,7 +384,7 @@ j1.adapter['justifiedGallery'] = (function (j1, window) {
|
|
384
384
|
messageHandler: function (sender, message) {
|
385
385
|
var json_message = JSON.stringify(message, undefined, 2);
|
386
386
|
|
387
|
-
logText = 'received message from ' + sender + ': ' + json_message;
|
387
|
+
logText = '\n' + 'received message from ' + sender + ': ' + json_message;
|
388
388
|
logger.debug(logText);
|
389
389
|
|
390
390
|
// -----------------------------------------------------------------------
|
@@ -392,7 +392,7 @@ j1.adapter['justifiedGallery'] = (function (j1, window) {
|
|
392
392
|
// -----------------------------------------------------------------------
|
393
393
|
if (message.type === 'command' && message.action === 'module_initialized') {
|
394
394
|
_this.setState('finished');
|
395
|
-
logger.info(message.text);
|
395
|
+
logger.info('\n' + message.text);
|
396
396
|
}
|
397
397
|
|
398
398
|
//
|
@@ -130,8 +130,8 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
130
130
|
|
131
131
|
// initialize state flag
|
132
132
|
_this.setState('started');
|
133
|
-
logger.info('state: ' + _this.getState());
|
134
|
-
logger.info('module is being initialized');
|
133
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
134
|
+
logger.info('\n' + 'module is being initialized');
|
135
135
|
|
136
136
|
// -----------------------------------------------------------------------
|
137
137
|
// Default module settings
|
@@ -151,7 +151,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
151
151
|
// ---------------------------------------------------------------------
|
152
152
|
// data loader
|
153
153
|
// ---------------------------------------------------------------------
|
154
|
-
j1.
|
154
|
+
j1.loadHTML ({
|
155
155
|
xhr_container_id: customizerOptions.xhr_container_id,
|
156
156
|
xhr_data_path: customizerOptions.xhr_data_path,
|
157
157
|
xhr_data_element: customizerOptions.xhr_data_element },
|
@@ -171,13 +171,13 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
171
171
|
var kbdDelay = 750;
|
172
172
|
var imageHeightMin = 40;
|
173
173
|
|
174
|
-
logger.info('loading customizer finished on id: #' + customizerOptions.xhr_container_id);
|
174
|
+
logger.info('\n' + 'loading customizer finished on id: #' + customizerOptions.xhr_container_id);
|
175
175
|
|
176
176
|
// -------------------------------------------------------------------
|
177
177
|
// load gallery data
|
178
178
|
j1.adapter.justifiedGallery.initialize(galleryOptions);
|
179
179
|
|
180
|
-
logger.info('initialize customizer ui|forms');
|
180
|
+
logger.info('\n' + 'initialize customizer ui|forms');
|
181
181
|
|
182
182
|
if ($formId.length) {
|
183
183
|
var timerid;
|
@@ -194,7 +194,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
194
194
|
timerid = setTimeout(function() {
|
195
195
|
$instance.justifiedGallery({rowHeight: value});
|
196
196
|
if (environment === 'development') {
|
197
|
-
logText = '
|
197
|
+
logText = '\n' + 'gallery on ID ' +galleryId+ ' changed rowHeight to: ' +value;
|
198
198
|
logger.info(logText);
|
199
199
|
}
|
200
200
|
}, kbdDelay);
|
@@ -212,7 +212,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
212
212
|
timerid = setTimeout(function() {
|
213
213
|
$instance.justifiedGallery({maxRowHeight: value});
|
214
214
|
if(environment === 'development') {
|
215
|
-
logText = '
|
215
|
+
logText = '\n' + 'gallery on ID ' +galleryId+ ' changed maxRowHeight to: ' +value;
|
216
216
|
logger.info(logText);
|
217
217
|
}
|
218
218
|
}, kbdDelay);
|
@@ -230,7 +230,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
230
230
|
timerid = setTimeout(function() {
|
231
231
|
$instance.justifiedGallery({margins: value});
|
232
232
|
if(environment === 'development') {
|
233
|
-
logText = '
|
233
|
+
logText = '\n' + 'gallery on ID ' +galleryId+ ' changed margins to: ' +value;
|
234
234
|
logger.info(logText);
|
235
235
|
}
|
236
236
|
}, kbdDelay);
|
@@ -248,7 +248,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
248
248
|
timerid = setTimeout(function() {
|
249
249
|
$instance.justifiedGallery({border: value});
|
250
250
|
if(environment === 'development') {
|
251
|
-
logText = '
|
251
|
+
logText = '\n' + 'gallery on ID ' +galleryId+ ' changed padding to: ' +value;
|
252
252
|
logger.info(logText);
|
253
253
|
}
|
254
254
|
}, kbdDelay);
|
@@ -261,7 +261,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
261
261
|
|
262
262
|
$instance.justifiedGallery({captions: value});
|
263
263
|
if(environment === 'development') {
|
264
|
-
logText = '
|
264
|
+
logText = '\n' + 'gallery on ID ' +galleryId+ ' changed captions to: ' +value;
|
265
265
|
logger.info(logText);
|
266
266
|
}
|
267
267
|
e.stopPropagation();
|
@@ -272,7 +272,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
272
272
|
|
273
273
|
$instance.justifiedGallery({randomize: value});
|
274
274
|
if(environment === 'development') {
|
275
|
-
logText = '
|
275
|
+
logText = '\n' + 'gallery on ID ' +galleryId+ ' changed randomize to: ' +value;
|
276
276
|
logger.info(logText);
|
277
277
|
}
|
278
278
|
e.stopPropagation();
|
@@ -289,7 +289,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
289
289
|
$instance.justifiedGallery({lastRow: value});
|
290
290
|
}
|
291
291
|
if(environment === 'development') {
|
292
|
-
logText = '
|
292
|
+
logText = '\n' + 'gallery on ID ' +galleryId+ ' changed lastRow to: ' +value;
|
293
293
|
logger.info(logText);
|
294
294
|
}
|
295
295
|
e.stopPropagation();
|
@@ -306,7 +306,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
306
306
|
$instance.justifiedGallery({lastRow: value});
|
307
307
|
}
|
308
308
|
if(environment === 'development') {
|
309
|
-
logText = '
|
309
|
+
logText = '\n' + 'gallery on ID ' +galleryId+ ' changed lastRow to: ' +value;
|
310
310
|
logger.info(logText);
|
311
311
|
}
|
312
312
|
e.stopPropagation();
|
@@ -338,7 +338,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
338
338
|
});
|
339
339
|
|
340
340
|
if(environment === 'development') {
|
341
|
-
logText = '
|
341
|
+
logText = '\n' + 'gallery on ID ' +galleryId+ ' reset to default values';
|
342
342
|
logger.info(logText);
|
343
343
|
}
|
344
344
|
e.stopPropagation();
|
@@ -355,9 +355,9 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
355
355
|
});
|
356
356
|
|
357
357
|
_this.setState('finished');
|
358
|
-
logger.info('state: ' + _this.getState());
|
359
|
-
logger.info('initializing module finished');
|
360
|
-
logger.info('met dependencies for:
|
358
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
359
|
+
logger.info('\n' + 'initializing module finished');
|
360
|
+
logger.info('\n' + 'met dependencies for: loadHTML');
|
361
361
|
clearInterval(dependencies_met_data_loaded);
|
362
362
|
} // END dependencies_met_data_loaded
|
363
363
|
}, 25);
|
@@ -370,7 +370,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
370
370
|
messageHandler: function (sender, message) {
|
371
371
|
var json_message = JSON.stringify(message, undefined, 2);
|
372
372
|
|
373
|
-
logText = 'received message from ' + sender + ': ' + json_message;
|
373
|
+
logText = '\n' + 'received message from ' + sender + ': ' + json_message;
|
374
374
|
logger.debug(logText);
|
375
375
|
|
376
376
|
// -----------------------------------------------------------------------
|
@@ -380,7 +380,7 @@ j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
|
380
380
|
//
|
381
381
|
// Place handling of command|action here
|
382
382
|
//
|
383
|
-
logger.info(message.text);
|
383
|
+
logger.info('\n' + message.text);
|
384
384
|
}
|
385
385
|
|
386
386
|
//
|
@@ -117,8 +117,8 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
117
117
|
logger = log4javascript.getLogger('j1.adapter.lightbox');
|
118
118
|
|
119
119
|
_this.setState('started');
|
120
|
-
logger.info('state: ' + _this.getState());
|
121
|
-
logger.info('module is being initialized');
|
120
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
121
|
+
logger.info('\n' + 'module is being initialized');
|
122
122
|
|
123
123
|
/* eslint-disable */
|
124
124
|
lightbox.option({
|
@@ -138,8 +138,8 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
138
138
|
/* eslint-enable */
|
139
139
|
|
140
140
|
_this.setState('finished');
|
141
|
-
logger.info('state: ' + _this.getState());
|
142
|
-
logger.info('initializing module finished');
|
141
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
142
|
+
logger.info('\n' + 'initializing module finished');
|
143
143
|
|
144
144
|
return true;
|
145
145
|
}, // END init lightbox
|
@@ -151,7 +151,7 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
151
151
|
messageHandler: function (sender, message) {
|
152
152
|
var json_message = JSON.stringify(message, undefined, 2);
|
153
153
|
|
154
|
-
logText = 'received message from ' + sender + ': ' + json_message;
|
154
|
+
logText = '\n' + 'received message from ' + sender + ': ' + json_message;
|
155
155
|
logger.debug(logText);
|
156
156
|
|
157
157
|
// -----------------------------------------------------------------------
|
@@ -161,7 +161,7 @@ j1.adapter['lightbox'] = (function (j1, window) {
|
|
161
161
|
//
|
162
162
|
// Place handling of command|action here
|
163
163
|
//
|
164
|
-
logger.info(message.text);
|
164
|
+
logger.info('\n' + message.text);
|
165
165
|
}
|
166
166
|
|
167
167
|
//
|
@@ -196,7 +196,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
196
196
|
|
197
197
|
if (user_session.mode !== 'na') {
|
198
198
|
clearInterval(dependencies_met_mode_detected);
|
199
|
-
logger.info('met dependencies for: mode detected');
|
199
|
+
logger.info('\n' + 'met dependencies for: mode detected');
|
200
200
|
appDetected = user_session.mode === 'app' ? true : false;
|
201
201
|
|
202
202
|
if (appDetected) {
|
@@ -275,14 +275,14 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
275
275
|
//
|
276
276
|
if (ajaxAppenderOptions.enabled) {
|
277
277
|
log4javascript.getRootLogger().addAppender(ajaxAppender);
|
278
|
-
logger.info('ajax appender/util server detected as: enabled');
|
278
|
+
logger.info('\n' + 'ajax appender/util server detected as: enabled');
|
279
279
|
} else {
|
280
|
-
logger.info('ajax appender/util server detected as: disabled');
|
280
|
+
logger.info('\n' + 'ajax appender/util server detected as: disabled');
|
281
281
|
}
|
282
282
|
|
283
283
|
_this.setState('finished');
|
284
|
-
logger.info('state: ' + _this.getState());
|
285
|
-
logger.info('module initialized successfully');
|
284
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
285
|
+
logger.info('\n' + 'module initialized successfully');
|
286
286
|
|
287
287
|
return true;
|
288
288
|
}
|
@@ -296,7 +296,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
296
296
|
messageHandler: function (sender, message) {
|
297
297
|
var json_message = JSON.stringify(message, undefined, 2);
|
298
298
|
|
299
|
-
logText = 'received message from ' + sender + ': ' + json_message;
|
299
|
+
logText = '\n' + 'received message from ' + sender + ': ' + json_message;
|
300
300
|
logger.debug(logText);
|
301
301
|
|
302
302
|
// -----------------------------------------------------------------------
|
@@ -306,7 +306,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
306
306
|
//
|
307
307
|
// place handling of command|action here
|
308
308
|
//
|
309
|
-
logger.info(message.text);
|
309
|
+
logger.info('\n' + message.text);
|
310
310
|
}
|
311
311
|
|
312
312
|
//
|
@@ -143,8 +143,8 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
143
143
|
|
144
144
|
// initialize state flag
|
145
145
|
_this.setState('started');
|
146
|
-
logger.info('state: ' + _this.getState());
|
147
|
-
logger.info('module is being initialized');
|
146
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
147
|
+
logger.info('\n' + 'module is being initialized');
|
148
148
|
|
149
149
|
// -----------------------------------------------------------------------
|
150
150
|
// defaults
|
@@ -173,8 +173,8 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
173
173
|
if (options != null) { var frontmatterOptions = $.extend({}, options); }
|
174
174
|
|
175
175
|
_this.setState('started');
|
176
|
-
logger.info('state: ' + _this.getState());
|
177
|
-
logger.info('module is being initialized');
|
176
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
177
|
+
logger.info('\n' + 'module is being initialized');
|
178
178
|
_this.mmenuLoader(navMenuOptions);
|
179
179
|
}, // END init
|
180
180
|
|
@@ -186,8 +186,8 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
186
186
|
var xhr_data_path;
|
187
187
|
|
188
188
|
_this.setState('loading');
|
189
|
-
logger.info('status: ' + _this.getState());
|
190
|
-
logger.info('load HTML data for navs and drawers');
|
189
|
+
logger.info('\n' + 'status: ' + _this.getState());
|
190
|
+
logger.info('\n' + 'load HTML data for navs and drawers');
|
191
191
|
|
192
192
|
{% assign id_list = "" %}
|
193
193
|
|
@@ -216,7 +216,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
216
216
|
{% assign xhr_data_path = item.menu.xhr_data_path %}
|
217
217
|
{% assign xhr_data_element = item.menu.xhr_data_element %}
|
218
218
|
|
219
|
-
j1.
|
219
|
+
j1.loadHTML ({
|
220
220
|
xhr_container_id: '{{menu_id}}',
|
221
221
|
xhr_data_path: '{{xhr_data_path}}',
|
222
222
|
xhr_data_element: '{{xhr_data_element}}' },
|
@@ -227,11 +227,11 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
227
227
|
{% capture id_list %}{{id_list}}{{menu_id}}{% if forloop.last %}{% else %},{% endif %} {% endcapture %}
|
228
228
|
{% endfor %} // ENDFOR menus
|
229
229
|
|
230
|
-
logger.info('initialize navs and drawers');
|
230
|
+
logger.info('\n' + 'initialize navs and drawers');
|
231
231
|
_this.mmenuInitializer(mmOptions);
|
232
232
|
_this.setState('finished');
|
233
|
-
logger.info('state: ' + _this.getState());
|
234
|
-
logger.info('module initialized successfully');
|
233
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
234
|
+
logger.info('\n' + 'module initialized successfully');
|
235
235
|
|
236
236
|
}, // END dataLoader
|
237
237
|
|
@@ -251,20 +251,20 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
251
251
|
// Create an mmenu instance if id exists: {{menu_id}}
|
252
252
|
if ($('#{{menu_id}}').length) {
|
253
253
|
|
254
|
-
logger.info('mmenu is being initialized on id: {{menu_id}}');
|
254
|
+
logger.info('\n' + 'mmenu is being initialized on id: {{menu_id}}');
|
255
255
|
|
256
256
|
{% if item.menu.content.type == "navigation" %}
|
257
257
|
// Create an mmenu instance of type NAVIGATION
|
258
|
-
logger.info('found content type: NAVIGATION');
|
258
|
+
logger.info('\n' + 'found content type: NAVIGATION');
|
259
259
|
// ---------------------------------------------------------------------
|
260
260
|
// menu initializer (NAVIGATION)
|
261
261
|
// ---------------------------------------------------------------------
|
262
262
|
// NOTE: Run load check (j1.xhrDataState) before initialization
|
263
263
|
//
|
264
|
-
logger.info('initialize mmenu on id: #{{menu_id}}');
|
264
|
+
logger.info('\n' + 'initialize mmenu on id: #{{menu_id}}');
|
265
265
|
var dependencies_met_{{menu_id}}_loaded = setInterval (function () {
|
266
266
|
if (j1.xhrDataState['#{{menu_id}}'] == 'success' ) {
|
267
|
-
logger.info('met dependencies for:
|
267
|
+
logger.info('\n' + 'met dependencies for: {{menu_id}}');
|
268
268
|
const menu_selector = document.querySelector('#{{menu_id}}');
|
269
269
|
const mmenu_{{menu_id}} = new MmenuLight (
|
270
270
|
menu_selector,
|
@@ -327,29 +327,29 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
327
327
|
}
|
328
328
|
|
329
329
|
$('#{{item.menu.content.id}}').show();
|
330
|
-
logger.info('initializing mmenu finished on id: #{{menu_id}}');
|
331
|
-
logger.info('met dependencies for: {{menu_id}} loaded');
|
330
|
+
logger.info('\n' + 'initializing mmenu finished on id: #{{menu_id}}');
|
331
|
+
logger.info('\n' + 'met dependencies for: {{menu_id}} loaded');
|
332
332
|
clearInterval(dependencies_met_{{menu_id}}_loaded);
|
333
333
|
$('#{{item.menu.content.id}}').show();
|
334
|
-
logger.info('initializing mmenu finished on id: #{{menu_id}}');
|
334
|
+
logger.info('\n' + 'initializing mmenu finished on id: #{{menu_id}}');
|
335
335
|
}; // END mmenu_loaded
|
336
336
|
}, 25); // END dependencies_met_mmenu_loaded
|
337
337
|
{% endif %} // ENDIF content_type: NAVIGATION
|
338
338
|
|
339
339
|
{% if item.menu.content.type == "drawer" %}
|
340
340
|
// Create an mmenu instance of type HTML
|
341
|
-
logger.info('found content type: DRAWER');
|
341
|
+
logger.info('\n' + 'found content type: DRAWER');
|
342
342
|
// -------------------------------------------------------------------
|
343
343
|
// menu initializer (DRAWER)
|
344
344
|
// -------------------------------------------------------------------
|
345
345
|
// TODO: Check if Toggle button make sense/should be implemented
|
346
346
|
// NOTE: Run load check (j1.xhrDataState) before initialization
|
347
347
|
//
|
348
|
-
logger.info('initialize mmenu on id: #{{menu_id}}');
|
348
|
+
logger.info('\n' + 'initialize mmenu on id: #{{menu_id}}');
|
349
349
|
var dependencies_met_{{menu_id}}_loaded = setInterval (function () {
|
350
350
|
if (j1.xhrDataState['#{{menu_id}}'] == 'success' &&
|
351
351
|
$('{{item.menu.content.button}}').length) {
|
352
|
-
logger.info('met dependencies for: xhrData/{{menu_id}}');
|
352
|
+
logger.info('\n' + 'met dependencies for: xhrData/{{menu_id}}');
|
353
353
|
|
354
354
|
const menu_selector = document.querySelector('#{{menu_id}}');
|
355
355
|
const mmenu_{{menu_id}} = new MmenuLight (
|
@@ -395,12 +395,12 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
395
395
|
} // END if hasclass
|
396
396
|
});
|
397
397
|
});
|
398
|
-
logger.info('met dependencies for: {{menu_id}} loaded');
|
398
|
+
logger.info('\n' + 'met dependencies for: {{menu_id}} loaded');
|
399
399
|
clearInterval(dependencies_met_{{menu_id}}_loaded);
|
400
400
|
$('#{{item.menu.content.id}}').show();
|
401
401
|
}; // END if menu_loaded
|
402
402
|
}, 25); // END dependencies_met_mmenu_loaded
|
403
|
-
logger.info('initializing mmenu finished on id: #{{menu_id}}');
|
403
|
+
logger.info('\n' + 'initializing mmenu finished on id: #{{menu_id}}');
|
404
404
|
{% endif %} // ENDIF content_type: DRAWER
|
405
405
|
} // END menus|drawers
|
406
406
|
{% endif %} // ENDIF menu enabled
|
@@ -415,7 +415,7 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
415
415
|
// var json_message = JSON.stringify(message, undefined, 2); // multiline
|
416
416
|
var json_message = JSON.stringify(message);
|
417
417
|
|
418
|
-
logText = 'received message from ' + sender + ': ' + json_message;
|
418
|
+
logText = '\n' + 'received message from ' + sender + ': ' + json_message;
|
419
419
|
logger.debug(logText);
|
420
420
|
|
421
421
|
// -----------------------------------------------------------------------
|
@@ -425,10 +425,10 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
425
425
|
//
|
426
426
|
// Place handling of command|action here
|
427
427
|
//
|
428
|
-
logger.info(message.text);
|
428
|
+
logger.info('\n' + message.text);
|
429
429
|
}
|
430
430
|
if (message.type === 'command' && message.action === 'status') {
|
431
|
-
logger.info('messageHandler: received - ' + message.action);
|
431
|
+
logger.info('\n' + 'messageHandler: received - ' + message.action);
|
432
432
|
}
|
433
433
|
|
434
434
|
//
|