j1-template 2021.0.12 → 2021.1.0
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/legal_statements.proc +4 -0
- data/_includes/themes/j1/layouts/content_generator_blog_archive.html +34 -12
- data/_includes/themes/j1/layouts/content_generator_post.html +7 -5
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +1 -1
- data/_includes/themes/j1/modules/connectors/ads +1 -1
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics-legacy.html +36 -0
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +1 -1
- data/_includes/themes/j1/modules/connectors/analytics +2 -3
- data/_includes/themes/j1/modules/connectors/comment/disqus.html +1 -1
- data/_includes/themes/j1/modules/navigator/generator.html +6 -6
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +2 -0
- data/_layouts/default.html +11 -1
- data/assets/data/authclient.html +1 -1
- data/assets/data/carousel.json +1 -1
- data/assets/data/fam.html +2 -2
- data/assets/data/galleries.json +2 -2
- data/assets/data/gallery_customizer.html +2 -2
- data/assets/data/menu.html +15 -17
- data/assets/themes/j1/adapter/js/asciidoctor.js +166 -0
- data/assets/themes/j1/adapter/js/carousel.js +30 -1
- data/assets/themes/j1/adapter/js/fam.js +8 -12
- data/assets/themes/j1/adapter/js/j1.js +71 -24
- data/assets/themes/j1/adapter/js/{jf_gallery.js → justifiedGallery.js} +9 -9
- data/assets/themes/j1/adapter/js/{gallery_customizer.js → justifiedGalleryCustomizer.js} +11 -11
- data/assets/themes/j1/adapter/js/logger.js +35 -23
- data/assets/themes/j1/adapter/js/mmenu.js +9 -4
- data/assets/themes/j1/adapter/js/navigator.js +14 -18
- data/assets/themes/j1/adapter/js/themer.js +32 -27
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +25 -7
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +14 -2
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +6 -6
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +6 -6
- data/assets/themes/j1/core/js/template.min.js.map +1 -0
- data/assets/themes/j1/modules/lightbox/js/lightbox.js +1 -1
- data/assets/themes/j1/modules/lightbox/js/lightbox.min.js +1 -1
- data/assets/themes/j1/modules/log4javascript/docs/backwardsincompatibilities.html +90 -0
- data/assets/themes/j1/modules/log4javascript/docs/distribution.html +87 -0
- data/assets/themes/j1/modules/log4javascript/docs/index.html +190 -0
- data/assets/themes/j1/modules/log4javascript/docs/lite.html +182 -0
- data/assets/themes/j1/modules/log4javascript/docs/manual.html +3217 -0
- data/assets/themes/j1/modules/log4javascript/docs/manual_lite.html +383 -0
- data/assets/themes/j1/modules/log4javascript/docs/quickstart.html +230 -0
- data/assets/themes/j1/modules/log4javascript/docs/whatsnew.html +86 -0
- data/assets/themes/j1/modules/log4javascript/js/log4javascript.js +5826 -0
- data/assets/themes/j1/modules/{util/js/log4javascript.js → log4javascript/js/log4javascript.min.js} +17 -0
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +9 -4
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +1 -1
- data/exe/j1 +1 -1
- data/lib/j1/commands/generate.rb +32 -9
- data/lib/{patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6 → j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.7}/fastfilereaderext.so +0 -0
- data/lib/{patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6 → j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.7}/rubyeventmachine.so +0 -0
- data/lib/j1/patches/rubygems/execjs-2.7.0/lib/execjs/external_runtime.rb +246 -0
- data/lib/j1/version.rb +1 -1
- data/lib/j1_app.rb +1 -1
- data/lib/j1_app/j1_auth_manager/auth_manager.rb +8 -2
- data/lib/j1_app/j1_site_manager/static_site.no-cross-origin.rb +94 -0
- data/lib/j1_app/j1_site_manager/static_site.rb +13 -11
- data/lib/starter_web/Gemfile +21 -15
- data/lib/starter_web/_config.yml +7 -48
- data/lib/starter_web/_data/_defaults/j1_config.yml +460 -0
- data/lib/starter_web/_data/_defaults/private.yml +156 -0
- data/lib/starter_web/_data/_defaults/resources.yml +626 -325
- data/lib/starter_web/_data/apps/defaults/{justified_gallery.yml → justifiedGallery.yml} +2 -2
- data/lib/starter_web/_data/apps/defaults/{gallery_customizer.yml → justifiedGalleryCustomizer.yml} +0 -0
- data/lib/starter_web/_data/apps/defaults/{light_gallery.yml → lightGallery.yml} +0 -0
- data/lib/starter_web/_data/apps/{justified_gallery.yml → justifiedGallery.yml} +7 -7
- data/lib/starter_web/_data/apps/{gallery_customizer.yml → justifiedGalleryCustomizer.yml} +0 -0
- data/lib/starter_web/_data/apps/{light_gallery.yml → lightGallery.yml} +0 -0
- data/lib/starter_web/_data/blocks/banner.yml +18 -30
- data/lib/starter_web/_data/blocks/footer.yml +15 -3
- data/lib/starter_web/_data/blocks/panel.yml +4 -6
- data/lib/starter_web/_data/builder/blog_navigator.yml +4 -4
- data/lib/starter_web/_data/j1_config.yml +8 -7
- data/lib/starter_web/_data/modules/authentication.yml +11 -100
- data/lib/starter_web/_data/modules/defaults/log4javascript.yml +37 -40
- data/lib/starter_web/_data/modules/defaults/quicksearch.yml +5 -24
- data/lib/starter_web/_data/modules/fam.yml +13 -2
- data/lib/starter_web/_data/modules/log4javascript.yml +11 -83
- data/lib/starter_web/_data/modules/navigator_menu.yml +26 -7
- data/lib/starter_web/_data/modules/quicksearch.yml +5 -3
- data/lib/starter_web/_data/plugins/defaults/paginator.yml +15 -12
- data/lib/starter_web/_data/plugins/paginator.yml +5 -3
- data/lib/starter_web/_data/private.yml +29 -57
- data/lib/starter_web/_data/private@default.yml +119 -0
- data/lib/starter_web/_data/private@localhost.yml +156 -0
- data/lib/starter_web/_data/resources.yml +33 -16
- data/lib/starter_web/_data/utilities/defaults/util_srv.yml +49 -3
- data/lib/starter_web/_data/utilities/util_srv.yml +8 -65
- data/lib/starter_web/_includes/attributes.asciidoc +10 -6
- data/lib/starter_web/_plugins/asciidoctor-extensions/callout.rb +47 -5
- data/lib/starter_web/_plugins/asciidoctor-extensions/conum.rb +28 -1
- data/lib/starter_web/_plugins/lunr_index.rb +24 -5
- data/lib/starter_web/assets/images/collections/blog/featured/dynamic-web-access.png +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/jamstack-generators.gif +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/jamstack-generators.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/featured/static-web-access.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/leon-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/machine-generator-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/markus-spiske4-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/icons/j1/j1-256x256.gif +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +45 -46
- data/lib/starter_web/collections/posts/public/featured/_posts/{2020-06-01-about-cookies.adoc → 2020-01-01-about-cookies.adoc} +42 -40
- data/lib/starter_web/collections/posts/public/featured/_posts/{2020-05-01-top-site-generators.adoc → 2021-03-01-site-generators.adoc} +58 -31
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +125 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +4 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +8 -5
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +8 -5
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +8 -5
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +8 -5
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +2 -2
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +2 -2
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +2 -2
- data/lib/starter_web/dot.gitattributes +1 -1
- data/lib/starter_web/dot.gitignore +5 -1
- data/lib/starter_web/package.json +3 -2
- data/lib/starter_web/pages/public/about/about_site.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/gallery.asciidoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/200_chapter.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/200_chapter.asciidoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +9 -7
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +9 -7
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +16 -11
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +9 -7
- data/lib/starter_web/pages/public/blog/navigator/index.html +10 -11
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +44 -47
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +20 -19
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +5 -1
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +38 -34
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +37 -35
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +15 -13
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +10 -8
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +29 -26
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +50 -49
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +43 -16
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +114 -0
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +81 -0
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +70 -48
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +121 -0
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +78 -70
- data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/300_supported_languages.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +161 -591
- data/lib/starter_web/pages/public/previewer/iframer.adoc +2 -1
- data/lib/starter_web/pages/public/previewer/justified_gallery.html +4 -4
- data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +511 -0
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +10 -12
- data/lib/starter_web/pages/public/previewer/rouge.adoc +3 -3
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +3 -3
- data/lib/starter_web/utilsrv/_defaults/package.json +13 -9
- data/lib/starter_web/utilsrv/package.json +6 -2
- data/lib/starter_web/utilsrv/server.js +228 -55
- metadata +48 -210
- data/lib/starter_web/_data/_defaults/j1_light_gallery.yml +0 -110
- data/lib/starter_web/_data/_defaults/template_settings.yml +0 -258
- data/lib/starter_web/_data/plugins/defaults/notebooks.yml +0 -61
- data/lib/starter_web/_data/plugins/notebooks.yml +0 -70
- data/lib/starter_web/assets/images/collections/blog/featured/staticgen.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/aditya-joshi-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/alex-holyoake-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/anaya-katlego-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonella-lombardi-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/docker-1280x600-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/jekyll.1200x600-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/signpost-1920x800-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/water-journal-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/banner/write-1280x600-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/brandon-mowinkel-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/daniel-jensen-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/florian-olivo-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/go-up-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/ian-schneider-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/jason-rosewell-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/joel-filipe-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/library-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280-v.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/mae-mue-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/markus-spiske3-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/modules-apps-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/nicola-styles-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/no-time-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/nousnou-iwasaki-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/premium-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/responsive-text-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/robert-v-ruggiero-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/spider-web-1920x1200-bw.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/the-place-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/icons/algolia/search-by-algolia.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-256x256.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-32x32.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-512x512.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-64x64.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/favicon.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/scalable/d1.svg +0 -2025
- data/lib/starter_web/assets/images/modules/icons/netlify/nf-logo.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/favicon.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-256x256.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-32x32.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-512x512.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1-64x64.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/p1.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/p1/scalable/p1.svg +0 -2020
- data/lib/starter_web/assets/images/modules/icons/patreon/favicon-16x16.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/patreon/favicon-32x32.png +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/000_browser_console-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/001_smee_channel-1280x400.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/002_gh_repo_settings-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/003_gh_webhook_settings-1280x1000.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/004_gh_webhook_settings-post-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/005_smee_channel_ping_receive-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/006_gh_redeliver_payload-1280x900.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/007_receive_redelivered_payload-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/000_browser_console.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/000_smee_channel.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/002_gh_repo-settings.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/003_gh_webhook_settings.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/004_gh_webhook_settings-post.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/005_smee_channel_ping_received.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/006_gh_redeliver_payload.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/007_receive_redelivered_payload.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/base/webhook_flow.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/flows/webhook_flow-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/j1_webhooks/scaleable/webhook_flow.svg +0 -432
- data/lib/starter_web/assets/images/pages/j1_webhooks/uml/auth_mgmr_signin_request_flow.uxf +0 -632
- data/lib/starter_web/assets/images/pages/j1_webhooks/uml/webhook_flow.uxf +0 -648
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/get-started-1920x1280-bw.jpg +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/130_layout_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/content_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/content_inheritance_thumb.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/html_layout.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1-quickstart-windows.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1-template-theme.jpg +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/j1_layout.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/jekyll-minima-theme.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/lane_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/intro/layout_inheritance.png +0 -0
- data/lib/starter_web/assets/images/pages/kickstarter/web_in_a_day/preparations/msys_installation.jpg +0 -0
- data/lib/starter_web/assets/images/pages/log4j/apache-log4j-logo.png +0 -0
- data/lib/starter_web/assets/images/pages/log4r/code-1920x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/log4r/log4r-logo.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_000.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_001.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_002.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_003.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_004.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_005.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_006.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_007.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_008.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_009.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_010.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_011.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_012.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_013.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_014.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_015.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_016.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_017.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_018.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_019.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_020.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_021.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_022.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_023.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_024.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_025.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_026.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_027.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_028.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_029.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_030.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_031.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_032.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_033.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_034.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_035.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_036.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_037.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_038.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_039.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_040.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_041.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_042.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_043.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_044.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_045.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_046.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_047.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_048.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_049.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_050.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_051.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_052.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_053.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_054.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_055.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_056.png +0 -0
- data/lib/starter_web/assets/images/pages/log_expert/image_057.png +0 -0
- data/lib/starter_web/assets/images/pages/material/apple-touch-icon.png +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/jQuery-logo.png +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/jquery-banner-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/jquery-banner-1920x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/pen/jquery/src/JQuery-Logo.svg +0 -122
- data/lib/starter_web/assets/images/pages/pen/jquery/src/banner.psd +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/coordinate-map.png +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/kibana-powershell.jpg +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/option_ignore_outgoing.png +0 -0
- data/lib/starter_web/assets/images/pages/winlogbeat/winlogbeat-dashboard.png +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/1280px-PDCA_Process.png +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/annie-spratt-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/deming-cycle.png +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/humble-lamb-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/john-schnobrich-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/writers_guide/sigmund-1920x1280.jpg +0 -0
- data/lib/starter_web/pages/protected/site_search.adoc +0 -180
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.pdf +1 -5439
- data/lib/starter_web/pages/public/legal/en/000_copyright.adoc +0 -93
- data/lib/starter_web/pages/public/legal/en/100_impress.adoc +0 -55
- data/lib/starter_web/pages/public/legal/en/200_terms_of_use.adoc +0 -53
- data/lib/starter_web/pages/public/legal/en/eu/cookie.policy.asciidoc +0 -50
@@ -6,7 +6,7 @@ regenerate: true
|
|
6
6
|
|
7
7
|
{% comment %}
|
8
8
|
# -----------------------------------------------------------------------------
|
9
|
-
# ~/assets/themes/j1/adapter/js/
|
9
|
+
# ~/assets/themes/j1/adapter/js/justifiedGallery.js
|
10
10
|
# Liquid template to create the J1 Adapter for Justified Gallery
|
11
11
|
#
|
12
12
|
# Product/Info:
|
@@ -37,8 +37,8 @@ regenerate: true
|
|
37
37
|
|
38
38
|
{% comment %} Set config data
|
39
39
|
-------------------------------------------------------------------------------- {% endcomment %}
|
40
|
-
{% assign jf_gallery_defaults = apps.defaults.
|
41
|
-
{% assign jf_gallery_settings = apps.
|
40
|
+
{% assign jf_gallery_defaults = apps.defaults.justifiedGallery.defaults %}
|
41
|
+
{% assign jf_gallery_settings = apps.justifiedGallery.settings %}
|
42
42
|
|
43
43
|
{% comment %} Set config options
|
44
44
|
-------------------------------------------------------------------------------- {% endcomment %}
|
@@ -51,7 +51,7 @@ regenerate: true
|
|
51
51
|
|
52
52
|
/*
|
53
53
|
# -----------------------------------------------------------------------------
|
54
|
-
# ~/assets/themes/j1/adapter/js/
|
54
|
+
# ~/assets/themes/j1/adapter/js/justifiedGallery.js
|
55
55
|
# JS Adapter for JustifiedGallery
|
56
56
|
#
|
57
57
|
# Product/Info:
|
@@ -79,7 +79,7 @@ regenerate: true
|
|
79
79
|
|
80
80
|
{% comment %} Main
|
81
81
|
-------------------------------------------------------------------------------- {% endcomment %}
|
82
|
-
j1.adapter['
|
82
|
+
j1.adapter['justifiedGallery'] = (function (j1, window) {
|
83
83
|
|
84
84
|
{% comment %} Global variables
|
85
85
|
------------------------------------------------------------------------------ {% endcomment %}
|
@@ -105,8 +105,8 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
105
105
|
|
106
106
|
{% comment %} Set global variables
|
107
107
|
-------------------------------------------------------------------------- {% endcomment %}
|
108
|
-
_this = j1.adapter.
|
109
|
-
logger = log4javascript.getLogger('j1.adapter.
|
108
|
+
_this = j1.adapter.justifiedGallery;
|
109
|
+
logger = log4javascript.getLogger('j1.adapter.justifiedGallery');
|
110
110
|
|
111
111
|
// initialize state flag
|
112
112
|
_this.setState('started');
|
@@ -117,7 +117,7 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
117
117
|
// Default module settings
|
118
118
|
// -----------------------------------------------------------------------
|
119
119
|
var settings = $.extend({
|
120
|
-
module_name: 'j1.adapter.
|
120
|
+
module_name: 'j1.adapter.justifiedGallery',
|
121
121
|
generated: '{{site.time}}'
|
122
122
|
}, options);
|
123
123
|
|
@@ -144,7 +144,7 @@ j1.adapter['jf_gallery'] = (function (j1, window) {
|
|
144
144
|
// Load AJAX data and initialize the jg gallery
|
145
145
|
// -----------------------------------------------------------------------
|
146
146
|
initialize: function (options) {
|
147
|
-
logger = log4javascript.getLogger('j1.adapter.
|
147
|
+
logger = log4javascript.getLogger('j1.adapter.justifiedGallery');
|
148
148
|
|
149
149
|
_this.setState('running');
|
150
150
|
logger.info('state: ' + _this.getState());
|
@@ -6,7 +6,7 @@ regenerate: true
|
|
6
6
|
|
7
7
|
{% comment %}
|
8
8
|
# -----------------------------------------------------------------------------
|
9
|
-
# ~/assets/themes/j1/adapter/js/
|
9
|
+
# ~/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js
|
10
10
|
# Liquid template to adapt Gallery Customizer JS functions
|
11
11
|
#
|
12
12
|
# Product/Info:
|
@@ -55,10 +55,10 @@ regenerate: true
|
|
55
55
|
|
56
56
|
{% comment %} Set config data
|
57
57
|
-------------------------------------------------------------------------------- {% endcomment %}
|
58
|
-
{% assign jf_gallery_defaults = apps.defaults.
|
59
|
-
{% assign jf_gallery_settings = apps.
|
60
|
-
{% assign gallery_customizer_defaults = site.data.apps.defaults.
|
61
|
-
{% assign gallery_customizer_settings = site.data.apps.
|
58
|
+
{% assign jf_gallery_defaults = apps.defaults.justifiedGallery.defaults %}
|
59
|
+
{% assign jf_gallery_settings = apps.justifiedGallery.settings %}
|
60
|
+
{% assign gallery_customizer_defaults = site.data.apps.defaults.justifiedGalleryCustomizer.defaults %}
|
61
|
+
{% assign gallery_customizer_settings = site.data.apps.justifiedGalleryCustomizer.settings %}
|
62
62
|
|
63
63
|
{% comment %} Set config options
|
64
64
|
-------------------------------------------------------------------------------- {% endcomment %}
|
@@ -77,7 +77,7 @@ regenerate: true
|
|
77
77
|
|
78
78
|
/*
|
79
79
|
# -----------------------------------------------------------------------------
|
80
|
-
# ~/assets/themes/j1/adapter/js/
|
80
|
+
# ~/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js
|
81
81
|
# J1 Adapter for Gallery Customizer
|
82
82
|
#
|
83
83
|
# Product/Info:
|
@@ -101,7 +101,7 @@ regenerate: true
|
|
101
101
|
|
102
102
|
{% comment %} Main
|
103
103
|
-------------------------------------------------------------------------------- {% endcomment %}
|
104
|
-
j1.adapter['
|
104
|
+
j1.adapter['justifiedGalleryCustomizer'] = (function (j1, window) {
|
105
105
|
|
106
106
|
{% comment %} Set global variables
|
107
107
|
------------------------------------------------------------------------------ {% endcomment %}
|
@@ -125,8 +125,8 @@ j1.adapter['gallery_customizer'] = (function (j1, window) {
|
|
125
125
|
// -----------------------------------------------------------------------
|
126
126
|
// globals
|
127
127
|
// -----------------------------------------------------------------------
|
128
|
-
_this = j1.adapter.
|
129
|
-
logger = log4javascript.getLogger('j1.adapter.
|
128
|
+
_this = j1.adapter.justifiedGalleryCustomizer;
|
129
|
+
logger = log4javascript.getLogger('j1.adapter.justifiedGalleryCustomizer');
|
130
130
|
|
131
131
|
// initialize state flag
|
132
132
|
_this.setState('started');
|
@@ -137,7 +137,7 @@ j1.adapter['gallery_customizer'] = (function (j1, window) {
|
|
137
137
|
// Default module settings
|
138
138
|
// -----------------------------------------------------------------------
|
139
139
|
var settings = $.extend({
|
140
|
-
module_name: 'j1.adapter.
|
140
|
+
module_name: 'j1.adapter.justifiedGalleryCustomizer',
|
141
141
|
generated: '{{site.time}}'
|
142
142
|
}, options);
|
143
143
|
|
@@ -174,7 +174,7 @@ j1.adapter['gallery_customizer'] = (function (j1, window) {
|
|
174
174
|
|
175
175
|
// -------------------------------------------------------------------
|
176
176
|
// load gallery data
|
177
|
-
j1.adapter.
|
177
|
+
j1.adapter.justifiedGallery.initialize(galleryOptions);
|
178
178
|
|
179
179
|
logger.info('initialize customizer ui|forms');
|
180
180
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
regenerate:
|
2
|
+
regenerate: true
|
3
3
|
---
|
4
4
|
|
5
5
|
{% capture cache %}
|
@@ -36,17 +36,21 @@ regenerate: false
|
|
36
36
|
|
37
37
|
{% comment %} Set config files
|
38
38
|
-------------------------------------------------------------------------------- {% endcomment %}
|
39
|
-
{% assign template_config
|
40
|
-
{% assign modules
|
39
|
+
{% assign template_config = site.data.j1_config %}
|
40
|
+
{% assign modules = site.data.modules %}
|
41
|
+
{% assign utilities = site.data.utilities %}
|
41
42
|
|
42
43
|
{% comment %} Set config data
|
43
44
|
-------------------------------------------------------------------------------- {% endcomment %}
|
44
|
-
{% assign
|
45
|
-
{% assign
|
45
|
+
{% assign util_server_defaults = utilities.defaults.util_srv.defaults %}
|
46
|
+
{% assign util_server_settings = utilities.util_srv.settings %}
|
47
|
+
{% assign logger_defaults = modules.defaults.log4javascript.defaults %}
|
48
|
+
{% assign logger_settings = modules.log4javascript.settings %}
|
46
49
|
|
47
50
|
{% comment %} Set config options
|
48
51
|
-------------------------------------------------------------------------------- {% endcomment %}
|
49
|
-
{% assign logger_options
|
52
|
+
{% assign logger_options = logger_defaults | merge: logger_settings %}
|
53
|
+
{% assign util_server_options = util_server_defaults | merge: util_server_settings %}
|
50
54
|
|
51
55
|
{% assign production = false %}
|
52
56
|
{% if environment == 'prod' or environment == 'production' %}
|
@@ -83,16 +87,16 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
83
87
|
// globals
|
84
88
|
// ---------------------------------------------------------------------------
|
85
89
|
var environment = '{{environment}}';
|
86
|
-
var page_id = j1.generateId(
|
90
|
+
var page_id = j1.generateId(11);
|
87
91
|
var cookie_names = j1.getCookieNames();
|
88
92
|
var loggerRequestCallback = false;
|
89
93
|
var loggerOptions = {};
|
94
|
+
var utilServerOptions = {};
|
90
95
|
var ajaxAppenderOptions = {};
|
91
96
|
var user_session;
|
92
97
|
var appDetected;
|
93
98
|
var _this;
|
94
99
|
var logger;
|
95
|
-
var log2disk;
|
96
100
|
var ajaxAppender;
|
97
101
|
var consoleAppender;
|
98
102
|
var jsonLayout;
|
@@ -107,7 +111,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
107
111
|
|
108
112
|
// ---------------------------------------------------------------------------
|
109
113
|
// helper functions
|
110
|
-
//
|
114
|
+
//
|
111
115
|
|
112
116
|
// ---------------------------------------------------------------------------
|
113
117
|
// getCustomData
|
@@ -162,7 +166,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
162
166
|
|
163
167
|
// ---------------------------------------------------------------------------
|
164
168
|
// main object
|
165
|
-
//
|
169
|
+
//
|
166
170
|
return {
|
167
171
|
|
168
172
|
// -------------------------------------------------------------------------
|
@@ -175,15 +179,15 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
175
179
|
// load module DEFAULTS|CONFIG to js object
|
176
180
|
/* eslint-disable */
|
177
181
|
loggerOptions = $.extend({}, {{logger_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
182
|
+
utilServerOptions = $.extend({}, {{util_server_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
178
183
|
/* eslint-enable */
|
179
184
|
ajaxAppenderOptions = loggerOptions.appenders[1].appender;
|
180
185
|
|
181
186
|
// -----------------------------------------------------------------------
|
182
187
|
// setup logger instances
|
183
|
-
//
|
188
|
+
//
|
184
189
|
_this = j1.adapter.logger;
|
185
190
|
logger = log4javascript.getLogger('j1.adapter.logger');
|
186
|
-
log2disk = log4javascript.getLogger('j1.adapter.log2disk');
|
187
191
|
|
188
192
|
// wait until user_session.mode is detected by j1.init()
|
189
193
|
//
|
@@ -200,32 +204,37 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
200
204
|
} else {
|
201
205
|
payloadURL = ajaxAppenderOptions.payload_url_web;
|
202
206
|
}
|
207
|
+
payloadURL = 'http://localhost:' + utilServerOptions.port + '/log2disk?request=write';
|
203
208
|
|
204
209
|
// -------------------------------------------------------------------
|
205
210
|
// setup appenders
|
206
211
|
// -------------------------------------------------------------------
|
207
212
|
|
208
213
|
// consoleAppender (browser console)
|
214
|
+
//
|
209
215
|
consoleAppender = new log4javascript.BrowserConsoleAppender();
|
210
216
|
consoleAppender.setThreshold(log4javascript.Level.DEBUG);
|
211
217
|
|
212
218
|
// ajaxAppender (XHR)
|
213
219
|
// HTTP POST log data on the utility server (write log to disk)
|
220
|
+
//
|
214
221
|
ajaxAppender = new log4javascript.AjaxAppender(payloadURL);
|
215
222
|
ajaxAppender.setThreshold(log4javascript.Level.DEBUG);
|
216
223
|
ajaxAppender.setWaitForResponse(true);
|
217
224
|
ajaxAppender.setSendAllOnUnload(true);
|
218
225
|
ajaxAppender.addHeader('X-Page-ID', page_id);
|
226
|
+
ajaxAppender.addHeader('X-TZ-Offset', loggerOptions.tz_offset);
|
219
227
|
|
220
228
|
// success callback for testing (disabled for default)
|
229
|
+
//
|
221
230
|
if (loggerRequestCallback) {
|
222
231
|
ajaxAppender.setRequestSuccessCallback(requestCallback);
|
223
232
|
}
|
224
233
|
|
225
|
-
//
|
234
|
+
// -----------------------------------------------------------------------
|
226
235
|
// setup layouts
|
227
|
-
//
|
228
|
-
patternLayout = new log4javascript.PatternLayout('[%d{HH:mm:ss.SSS}] [%f{4}] [%-5p] [%-
|
236
|
+
//
|
237
|
+
patternLayout = new log4javascript.PatternLayout('[%d{HH:mm:ss.SSS}] [%f{4}] [%-5p] [%-60c] [%f{1}:%f{2}] %m%n[%f{3}]');
|
229
238
|
httpPostDataLayout = new log4javascript.HttpPostDataLayout();
|
230
239
|
xmlLayout = new log4javascript.XmlLayout();
|
231
240
|
jsonLayout = new log4javascript.JsonLayout();
|
@@ -233,6 +242,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
233
242
|
simpleLayout = new log4javascript.SimpleLayout();
|
234
243
|
|
235
244
|
// Use the method getLineNumber() as the value for the 0th custom field
|
245
|
+
//
|
236
246
|
patternLayout.setCustomField('file', getCustomData);
|
237
247
|
patternLayout.setCustomField('line', getCustomData);
|
238
248
|
patternLayout.setCustomField('path', getCustomData);
|
@@ -242,9 +252,9 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
242
252
|
consoleAppender.setLayout(patternLayout);
|
243
253
|
ajaxAppender.setLayout(httpPostDataLayout);
|
244
254
|
|
245
|
-
//
|
255
|
+
// -----------------------------------------------------------------------
|
246
256
|
// setup log levels
|
247
|
-
//
|
257
|
+
//
|
248
258
|
if (environment == 'production') {
|
249
259
|
log4javascript.getLogger('j1').setLevel(log4javascript.Level.WARN);
|
250
260
|
}
|
@@ -255,16 +265,19 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
255
265
|
log4javascript.getLogger('j1').setLevel(log4javascript.Level.WARN);
|
256
266
|
}
|
257
267
|
|
258
|
-
//
|
268
|
+
// -----------------------------------------------------------------------
|
259
269
|
// setup (root) loggers
|
260
|
-
//
|
270
|
+
//
|
261
271
|
log4javascript.getRootLogger().addAppender(consoleAppender);
|
262
272
|
|
273
|
+
// to use the ajaxAppender (write logs to disk), the utility server
|
274
|
+
// needs to be enabled (util_srv.yml) as well
|
275
|
+
//
|
263
276
|
if (ajaxAppenderOptions.enabled) {
|
264
277
|
log4javascript.getRootLogger().addAppender(ajaxAppender);
|
265
|
-
logger.info('ajax appender detected as: enabled');
|
278
|
+
logger.info('ajax appender/util server detected as: enabled');
|
266
279
|
} else {
|
267
|
-
logger.info('ajax appender detected as: disabled');
|
280
|
+
logger.info('ajax appender/util server detected as: disabled');
|
268
281
|
}
|
269
282
|
|
270
283
|
_this.setState('finished');
|
@@ -274,7 +287,6 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
274
287
|
return true;
|
275
288
|
}
|
276
289
|
}, 25); // END 'mode detected'
|
277
|
-
|
278
290
|
}, // END init
|
279
291
|
|
280
292
|
// -------------------------------------------------------------------------
|
@@ -289,7 +301,7 @@ j1.adapter['logger'] = (function (j1, window) {
|
|
289
301
|
|
290
302
|
// -----------------------------------------------------------------------
|
291
303
|
// process commands|actions
|
292
|
-
//
|
304
|
+
//
|
293
305
|
if (message.type === 'command' && message.action === 'module_initialized') {
|
294
306
|
//
|
295
307
|
// place handling of command|action here
|
@@ -311,10 +311,15 @@ j1.adapter['mmenu'] = (function (j1, window) {
|
|
311
311
|
|
312
312
|
// jadams, 2020-09-30: loading the menues (themes) if enabled
|
313
313
|
if (themerEnabled) {
|
314
|
-
// from Bootswatch API (
|
315
|
-
$('#remote_themes_mmenu').bootstrapThemeSwitcher({
|
316
|
-
|
317
|
-
|
314
|
+
// load REMOTE themes from Bootswatch API (localFeed EMPTY!)
|
315
|
+
$('#remote_themes_mmenu').bootstrapThemeSwitcher({
|
316
|
+
localFeed: '',
|
317
|
+
bootswatchApiVersion: themerOptions.bootswatchApiVersion
|
318
|
+
});
|
319
|
+
// load LOCAL themes from JSON data
|
320
|
+
$('#local_themes_mmenu').bootstrapThemeSwitcher({
|
321
|
+
localFeed: themerOptions.localThemes
|
322
|
+
});
|
318
323
|
}
|
319
324
|
|
320
325
|
$('#{{item.menu.content.id}}').show();
|
@@ -347,14 +347,21 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
347
347
|
logText = 'theme switcher detect: enabled';
|
348
348
|
logger.info(logText);
|
349
349
|
|
350
|
-
|
351
|
-
logText = 'load remote themes (Bootswatch API)';
|
350
|
+
logText = 'load themes';
|
352
351
|
logger.info(logText);
|
353
|
-
|
354
|
-
// load
|
352
|
+
|
353
|
+
// load REMOTE themes from Bootswatch API (localFeed EMPTY!)
|
354
|
+
$('#remote_themes').bootstrapThemeSwitcher({
|
355
|
+
localFeed: '',
|
356
|
+
bootswatchApiVersion: themerOptions.bootswatchApiVersion
|
357
|
+
});
|
358
|
+
|
359
|
+
// load LOCAL themes from JSON data
|
355
360
|
logText = 'load local themes (json file)';
|
356
361
|
logger.info(logText);
|
357
|
-
$('#local_themes').bootstrapThemeSwitcher({
|
362
|
+
$('#local_themes').bootstrapThemeSwitcher({
|
363
|
+
localFeed: themerOptions.localThemes
|
364
|
+
});
|
358
365
|
clearInterval(dependencies_met_page_finished);
|
359
366
|
}
|
360
367
|
_this.setState('initialized');
|
@@ -697,7 +704,8 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
697
704
|
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav.navbar-right .dropdown-menu .dropdown-menu { left: -' +navMenuOptions.dropdown_item_min_width+ 'rem !important; } }</style>');
|
698
705
|
|
699
706
|
// Limit last (2nd) dropdown in height (nav.navbar.navigator li.dropdown ul.dropdown-menu ul.dropdown-menu)
|
700
|
-
|
707
|
+
// !important
|
708
|
+
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator li.dropdown ul.dropdown-menu ul.dropdown-menu { top: -' +navMenuOptions.dropdown_border_top+ 'px !important; max-height: ' +navMenuOptions.dropdown_menu_max_height+ 'em; } }</style>');
|
701
709
|
|
702
710
|
// Set dropdown item colors
|
703
711
|
$('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav > li > a { color: ' +navMenuOptions.menu_item_color+ ' !important; } }</style>');
|
@@ -855,11 +863,6 @@ j1.adapter['navigator'] = (function (j1, window) {
|
|
855
863
|
}; // END return
|
856
864
|
})(j1, window);
|
857
865
|
|
858
|
-
{% comment %} process adapter COMPRESSED for production DISABLED
|
859
|
-
NOTE: for unknown reason, minifyJS detect JS/ES6 code
|
860
|
-
SyntaxError: Unexpected token: punc ())
|
861
|
-
--------------------------------------------------------------------------------
|
862
|
-
{% assign production = true %}
|
863
866
|
{% endcapture %}
|
864
867
|
{% if production %}
|
865
868
|
{{ cache | minifyJS }}
|
@@ -867,10 +870,3 @@ NOTE: for unknown reason, minifyJS detect JS/ES6 code
|
|
867
870
|
{{ cache | strip_empty_lines }}
|
868
871
|
{% endif %}
|
869
872
|
{% assign cache = nil %}
|
870
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
871
|
-
|
872
|
-
{% comment %} process adapter UNCOMPRESSED
|
873
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
874
|
-
{% endcapture %}
|
875
|
-
{{ cache | strip_empty_lines }}
|
876
|
-
{% assign cache = nil %}
|
@@ -207,38 +207,43 @@ j1.adapter['themer'] = (function (j1, window) {
|
|
207
207
|
// load list of remote themes
|
208
208
|
//
|
209
209
|
if ( $('#remote_themes').length ) {
|
210
|
+
var themes_count;
|
210
211
|
var interval_count = 0;
|
211
|
-
var max_count = themerOptions.retries;
|
212
|
+
var max_count = themerOptions.retries;
|
213
|
+
|
214
|
+
/* eslint-disable */
|
215
|
+
// initialize Bootswatch Theme Switcher
|
216
|
+
$('#remote_themes').bootstrapThemeSwitcher.defaults = {
|
217
|
+
debug: themerOptions.debug,
|
218
|
+
saveToCookie: themerOptions.saveToCookie,
|
219
|
+
cssThemeLink: themerOptions.cssThemeLink,
|
220
|
+
cookieThemeName: themerOptions.cookieThemeName,
|
221
|
+
cookieDefaultThemeName: themerOptions.cookieDefaultThemeName,
|
222
|
+
cookieThemeCss: themerOptions.cookieThemeCss,
|
223
|
+
cookieThemeExtensionCss: themerOptions.cookieThemeExtensionCss,
|
224
|
+
cookieExpiration: themerOptions.cookieExpiration,
|
225
|
+
cookiePath: themerOptions.cookiePath,
|
226
|
+
defaultCssFile: themerOptions.defaultCssFile,
|
227
|
+
bootswatchApiUrl: themerOptions.bootswatchApiUrl,
|
228
|
+
bootswatchApiVersion: themerOptions.bootswatchApiVersion,
|
229
|
+
loadFromBootswatch: themerOptions.loadFromBootswatch,
|
230
|
+
localFeed: themerOptions.localThemes,
|
231
|
+
excludeBootswatch: themerOptions.excludeBootswatch,
|
232
|
+
includeBootswatch: themerOptions.includeBootswatch,
|
233
|
+
skipIncludeBootswatch: themerOptions.skipIncludeBootswatch
|
234
|
+
}
|
235
|
+
/* eslint-enable */
|
212
236
|
|
213
237
|
var dependencies_met_remote_themes_loaded = setInterval(function() {
|
214
238
|
interval_count += 1;
|
215
|
-
|
216
|
-
|
217
|
-
// initialize Bootswatch Theme Switcher
|
218
|
-
$('#remote_themes').bootstrapThemeSwitcher.defaults = {
|
219
|
-
debug: themerOptions.debug,
|
220
|
-
saveToCookie: themerOptions.saveToCookie,
|
221
|
-
cssThemeLink: themerOptions.cssThemeLink,
|
222
|
-
cookieThemeName: themerOptions.cookieThemeName,
|
223
|
-
cookieDefaultThemeName: themerOptions.cookieDefaultThemeName,
|
224
|
-
cookieThemeCss: themerOptions.cookieThemeCss,
|
225
|
-
cookieThemeExtensionCss: themerOptions.cookieThemeExtensionCss,
|
226
|
-
cookieExpiration: themerOptions.cookieExpiration,
|
227
|
-
cookiePath: themerOptions.cookiePath,
|
228
|
-
defaultCssFile: themerOptions.defaultCssFile,
|
229
|
-
bootswatchApiUrl: themerOptions.bootswatchApiUrl,
|
230
|
-
bootswatchApiVersion: themerOptions.bootswatchApiVersion,
|
231
|
-
loadFromBootswatch: themerOptions.loadFromBootswatch,
|
232
|
-
localFeed: themerOptions.localThemes,
|
233
|
-
excludeBootswatch: themerOptions.excludeBootswatch,
|
234
|
-
includeBootswatch: themerOptions.includeBootswatch,
|
235
|
-
skipIncludeBootswatch: themerOptions.skipIncludeBootswatch
|
236
|
-
}
|
237
|
-
/* eslint-enable */
|
238
|
-
} else {
|
239
|
+
themes_count = document.getElementById("remote_themes").getElementsByTagName("li").length;
|
240
|
+
if ( themes_count > 0 ) {
|
239
241
|
logger.info('remote themes loaded: successfully');
|
240
|
-
logger.
|
242
|
+
logger.info('remote themes loaded: successfully after: ' + interval_count * 25 + ' ms');
|
243
|
+
|
241
244
|
clearInterval(dependencies_met_remote_themes_loaded);
|
245
|
+
} else {
|
246
|
+
logger.debug('wait for theme to be loaded: ' + user_state.theme_name);
|
242
247
|
}
|
243
248
|
if (interval_count > max_count) {
|
244
249
|
logger.warn('remote themes loading: failed');
|
@@ -252,7 +257,7 @@ j1.adapter['themer'] = (function (j1, window) {
|
|
252
257
|
_this.setState('finished');
|
253
258
|
logger.info('state: ' + _this.getState());
|
254
259
|
logger.info('module initialized successfully');
|
255
|
-
logger.info('met dependencies for:
|
260
|
+
logger.info('met dependencies for: j1.adapter');
|
256
261
|
}
|
257
262
|
} else {
|
258
263
|
_this.setState('finished');
|