j1-template 2023.3.0 → 2023.3.2
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_news_panel_posts.html +11 -9
- data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +0 -3
- data/_includes/themes/j1/modules/navigator/generator.html +3 -3
- data/_includes/themes/j1/modules/searcher/procedures/topsearch.proc +5 -5
- data/_includes/themes/j1/procedures/collections/create_collection_article_preview.proc +3 -3
- data/_includes/themes/j1/procedures/global/select_icon_size.proc +9 -2
- data/_includes/themes/j1/procedures/layouts/default_writer.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +8 -8
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +2 -2
- data/_layouts/category.html +2 -2
- data/assets/data/authclient.html +10 -12
- data/assets/data/banner.html +3 -3
- data/assets/data/fab.html +11 -8
- data/assets/data/footer.html +2 -3
- data/assets/data/gallery_customizer.html +2 -2
- data/assets/data/masonry.html +5 -5
- data/assets/data/masterslider.html +1 -1
- data/assets/data/menu.html +9 -6
- data/assets/data/panel.html +8 -8
- data/assets/data/quicklinks.html +3 -1
- data/assets/data/rtext_resizer.html +1 -1
- data/assets/data/slick.html +2 -2
- data/assets/data/translator.html +1 -1
- data/assets/themes/j1/adapter/js/advertising.js +302 -96
- data/assets/themes/j1/adapter/js/carousel.js +2 -2
- data/assets/themes/j1/adapter/js/j1.js +92 -25
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +1 -1
- data/assets/themes/j1/adapter/js/lazyLoader.js +221 -0
- data/assets/themes/j1/adapter/js/lunr.js +3 -3
- data/assets/themes/j1/adapter/js/navigator.js +3 -5
- data/assets/themes/j1/adapter/js/themeToggler.js +3 -3
- data/assets/themes/j1/adapter/js/themer.js +55 -21
- data/assets/themes/j1/core/css/icon-fonts/mdi.css +3 -7
- data/assets/themes/j1/core/css/icon-fonts/mdi.min.css +1 -1
- data/assets/themes/j1/core/css/icon-fonts/mdib.css +8337 -0
- data/assets/themes/j1/core/css/icon-fonts/mdib.min.css +1 -0
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +104 -30
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +19 -5
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +98 -31
- data/assets/themes/j1/core/js/template.min.js +2 -2
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-base.json +2690 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-base.min.json +1 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-light.json +2 -2
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-light.min.json +1 -1
- data/assets/themes/j1/modules/materialize/scss/components/_global.scss +1 -1
- data/assets/themes/j1/modules/materialize/scss/components/_navbar.scss +2 -2
- data/assets/themes/j1/modules/materialize/scss/components/_sidenav.scss +1 -1
- data/assets/themes/j1/modules/materialize/scss/components/forms/_input-fields.scss +2 -2
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +1 -1
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +2 -2
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +2 -2
- data/lib/starter_web/_data/blocks/banner.yml +1 -1
- data/lib/starter_web/_data/blocks/defaults/footer.yml +1 -1
- data/lib/starter_web/_data/blocks/footer.yml +4 -1
- data/lib/starter_web/_data/blocks/panel.yml +47 -47
- data/lib/starter_web/_data/layouts/default.yml +1 -1
- data/lib/starter_web/_data/layouts/home.yml +29 -0
- data/lib/starter_web/_data/modules/advertising.yml +120 -42
- data/lib/starter_web/_data/modules/defaults/advertising.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/attics.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/blog_navigator.yml +20 -20
- data/lib/starter_web/_data/modules/defaults/fab.yml +3 -3
- data/lib/starter_web/_data/modules/defaults/iconPicker.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/lazyLoader.yml +33 -0
- data/lib/starter_web/_data/modules/defaults/lunr.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/masterslider.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/navigator.yml +18 -18
- data/lib/starter_web/_data/modules/defaults/themer.yml +2 -2
- data/lib/starter_web/_data/modules/fab.yml +7 -7
- data/lib/starter_web/_data/modules/iconPicker.yml +3 -3
- data/lib/starter_web/_data/modules/lazyLoader.yml +93 -0
- data/lib/starter_web/_data/modules/masonry.yml +2 -2
- data/lib/starter_web/_data/modules/navigator_menu.yml +190 -148
- data/lib/starter_web/_data/modules/slick.yml +47 -86
- data/lib/starter_web/_data/resources.yml +68 -70
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/attributes.0.asciidoc +626 -0
- data/lib/starter_web/_includes/attributes.asciidoc +26 -24
- data/lib/starter_web/_includes/custom/templates/collection_panel.html +2 -2
- data/lib/starter_web/_includes/google/static/google_ad_5128488466.html +19 -0
- data/lib/starter_web/_includes/google/static/google_ad_7284712660.html +19 -0
- data/lib/starter_web/_includes/google/templates/google_ads.html +55 -0
- data/lib/starter_web/_plugins/asciidoctor/fab-icon-inline.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/fas-icon-inline.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/mdil-icon-inline.rb +1 -1
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/images/badges/configBinder.jpg +0 -0
- data/lib/starter_web/assets/images/badges/docsBinder.jpg +0 -0
- data/lib/starter_web/assets/images/badges/notebookBinder.jpg +0 -0
- data/lib/starter_web/assets/images/badges/scaleable/configBinder.svg +1 -1
- data/lib/starter_web/assets/images/badges/scaleable/docsBinder.svg +1 -1
- data/lib/starter_web/assets/images/badges/scaleable/myBinder.svg +1 -1
- data/lib/starter_web/assets/images/badges/scaleable/notebookBinder.svg +1 -1
- data/lib/starter_web/assets/images/icons/hyvor-talk/jpg/hyvor-logo.512x512.jpg +0 -0
- data/lib/starter_web/assets/images/icons/hyvor-talk/png/hyvor-logo.24x24.jpg +0 -0
- data/lib/starter_web/assets/images/icons/hyvor-talk/scalable/hyvor-logo.svg +1 -1
- data/lib/starter_web/assets/images/icons/j1/jpg/j1-256x256.jpg +0 -0
- data/lib/starter_web/assets/images/icons/j1/jpg/j1-512x512.jpg +0 -0
- data/lib/starter_web/assets/images/icons/j1/jpg/j1-64x64.jpg +0 -0
- data/lib/starter_web/assets/images/icons/j1/png/j1-256x256.png +0 -0
- data/lib/starter_web/assets/images/icons/j1/png/j1-512x512.jpg +0 -0
- data/lib/starter_web/assets/images/icons/j1/png/j1-512x512.jpg.png +0 -0
- data/lib/starter_web/assets/images/icons/j1/png/j1-512x512.png +0 -0
- data/lib/starter_web/assets/images/icons/j1/png/j1-64x64.png +0 -0
- data/lib/starter_web/assets/images/icons/j1/scalable/j1.svg +1 -1
- data/lib/starter_web/assets/images/modules/attics/1920x1280/brigitta-schneiter.jpg +0 -0
- data/lib/starter_web/assets/images/modules/icons/j1/scalable/j1.svg +1 -1
- data/lib/starter_web/assets/images/pages/asciidoc_skeletons/example-pdf-screenshot.jpg +0 -0
- data/lib/starter_web/assets/images/pages/core_web_vitals/200-create-a-link-1.jpg +0 -0
- data/lib/starter_web/assets/images/pages/core_web_vitals/core_web_vitals_best.jpg +0 -0
- data/lib/starter_web/assets/images/pages/core_web_vitals/core_web_vitals_best_full.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/bootswatch-themes-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/global-mobile-traffic-1920x1080.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/google-lighthouse-1080x300.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/mobile-navigation-600x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/native-speakers-by-language.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/dynamic-web-access.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/jamstack-generators.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/jekyll.1200x400.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/jekyll.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/static-web-access.jpg +0 -0
- data/lib/starter_web/assets/images/promo/home/screenshot.jpg +0 -0
- data/lib/starter_web/assets/images/promo/jekyll/jekyll-faq.jpg +0 -0
- data/lib/starter_web/assets/images/promo/jekyll/jekyll-generator.jpg +0 -0
- data/lib/starter_web/assets/images/promo/jekyll/jekyll-generator.png +0 -0
- data/lib/starter_web/assets/images/promo/jekyll/jekyll-og.png +0 -0
- data/lib/starter_web/assets/images/promo/jekyll/scalable/jekyll-faq.psd +0 -0
- data/lib/starter_web/collections/_biography/a-life-in-questions.adoc +1 -1
- data/lib/starter_web/collections/_biography/becoming.adoc +1 -1
- data/lib/starter_web/collections/_biography/born-to-run.adoc +1 -1
- data/lib/starter_web/collections/_biography/forty-autumns.adoc +1 -1
- data/lib/starter_web/collections/_biography/not-dead-yet.adoc +1 -1
- data/lib/starter_web/collections/_biography/princess-diarist-the.adoc +1 -1
- data/lib/starter_web/collections/_biography/when-breath-becomes-air.adoc +1 -1
- data/lib/starter_web/collections/_fantasy/harry-potter-deathly-hallows.adoc +1 -1
- data/lib/starter_web/collections/_fantasy/harry-potter-philosophers-stone.adoc +1 -1
- data/lib/starter_web/collections/_fantasy/mistborn-trilogy.adoc +26 -1
- data/lib/starter_web/collections/_fantasy/ready-player-one.adoc +1 -1
- data/lib/starter_web/collections/_fantasy/sword-of-destiny.adoc +17 -2
- data/lib/starter_web/collections/_fantasy/terry-pratchet-diary.adoc +24 -1
- data/lib/starter_web/collections/_romance/{breath-of-snow-and-ashes-a.adoc → breath-of-snow-and-ashes.adoc} +13 -1
- data/lib/starter_web/collections/_romance/dressmaker-the.adoc +13 -1
- data/lib/starter_web/collections/_romance/fiery-cross-the.adoc +1 -1
- data/lib/starter_web/collections/_romance/it-ends-with-us.adoc +1 -1
- data/lib/starter_web/collections/_romance/outlander-novel.adoc +1 -1
- data/lib/starter_web/collections/_romance/virgins-outlander-short-story.adoc +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +4 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +4 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-static-site-generators.adoc +5 -3
- data/lib/starter_web/collections/posts/public/featured/_posts/2022-02-01-about-j1.adoc +4 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/index.html +0 -9
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/212_values.asciidoc +4 -4
- data/lib/starter_web/pages/public/learn/bs_sass_variables/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/core_web_vitals/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.0.asciidoc +112 -0
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_rouge.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +152 -12
- data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +28 -4
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +11 -13
- data/lib/starter_web/pages/public/{learn → tools}/cheatsheet/gem.adoc +5 -5
- data/lib/starter_web/pages/public/{learn → tools}/cheatsheet/git.adoc +14 -14
- data/lib/starter_web/pages/public/{learn → tools}/cheatsheet/j1.adoc +1 -1
- data/lib/starter_web/pages/public/{learn → tools}/cheatsheet/yaml.adoc +1 -1
- data/lib/starter_web/pages/public/{previewer → tools/previewer}/preview_bootstrap_theme.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +58 -88
- data/assets/data/nbinteract.html +0 -129
- data/assets/themes/j1/adapter/js/nbinteract.js +0 -1485
- data/assets/themes/j1/modules/advertising/js/adInitializer.js +0 -160
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-regular.json +0 -7312
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-regular.min.json +0 -1
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.css +0 -1315
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.min.css +0 -7
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.structure.css +0 -886
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.structure.min.css +0 -5
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.theme.css +0 -446
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.theme.min.css +0 -5
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/hasClass.js +0 -37
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/hasClass.min.js +0 -17
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/removeClass.js +0 -42
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/removeClass.min.js +0 -17
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery-ui.js +0 -19057
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery-ui.min.js +0 -6
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.js +0 -10872
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.min.js +0 -2
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.min.map +0 -1
- data/assets/themes/j1/modules/jquery-3.5.1/js/require.js +0 -2145
- data/assets/themes/j1/modules/jquery-3.5.1/js/require.min.js +0 -5
- data/assets/themes/j1/modules/nbinteract-core/LICENSE.txt +0 -60
- data/assets/themes/j1/modules/nbinteract-core/README.md +0 -226
- data/assets/themes/j1/modules/nbinteract-core/css/nbinteract.css +0 -191
- data/assets/themes/j1/modules/nbinteract-core/css/nbinteract.min.css +0 -19
- data/assets/themes/j1/modules/nbinteract-core/css/theme/uno/nbinteract.css +0 -250
- data/assets/themes/j1/modules/nbinteract-core/css/theme/uno/nbinteract.min.css +0 -15
- data/assets/themes/j1/modules/nbinteract-core/js/mathjax/latest.js +0 -19
- data/assets/themes/j1/modules/nbinteract-core/js/mathjax/tex-chtml-full.js +0 -34
- data/assets/themes/j1/modules/nbinteract-core/js/mathjax/tex-chtml.js +0 -1
- data/assets/themes/j1/modules/nbinteract-core/js/mathjax/tex-mml-chtml.js +0 -1
- data/assets/themes/j1/modules/nbinteract-core/js/nbinteract/README +0 -1
- data/assets/themes/j1/modules/nbinteract-core/js/nbinteract/j1-nbinteract-core.js +0 -94
- data/assets/themes/j1/modules/nbinteract-core/js/nbinteract/j1-nbinteract-core.js.map +0 -1
- data/assets/themes/j1/modules/nbinteract-core/js/requireJS/require.js +0 -2068
- data/assets/themes/j1/modules/nbinteract-core/js/requireJS/require.min.js +0 -36
- data/lib/starter_web/_data/modules/defaults/nbinteract.yml +0 -281
- data/lib/starter_web/assets/images/icons/j1/j1-256x256.gif +0 -0
- data/lib/starter_web/assets/images/pages/asciidoc_skeletons/example-pdf-screenshot.png +0 -0
- data/lib/starter_web/assets/images/pages/core_web_vitals/core_web_vitals_best.png +0 -0
- data/lib/starter_web/assets/images/pages/core_web_vitals/core_web_vitals_best_full.png +0 -0
- data/lib/starter_web/assets/images/pages/features/bootswatch-themes-1280x800.png +0 -0
- data/lib/starter_web/assets/images/pages/features/global-mobile-traffic-1920x1080.png +0 -0
- data/lib/starter_web/assets/images/pages/features/google-lighthouse-1080x300.png +0 -0
- data/lib/starter_web/assets/images/pages/features/mobile-navigation-600x800.png +0 -0
- data/lib/starter_web/assets/images/pages/features/native-speakers-by-language.png +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/binderhub-architecture.jpg +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/jupyterlab-architecture.jpg +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/mandelbrot-menge-1920x1200.jpg +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/mandelbrot-menge.png +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi-textbook-example.jpg +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_bar.jpg +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_hist.jpg +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_line.jpg +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_multiple_choice.jpg +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_scatter.jpg +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_scatter_drag.jpg +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_short_answer.jpg +0 -0
- data/lib/starter_web/assets/images/pages/nbinteract/nbi-textbook-example.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/dynamic-web-access.png +0 -0
- data/lib/starter_web/assets/images/posts/featured/jamstack-generators.png +0 -0
- data/lib/starter_web/assets/images/posts/featured/jekyll.1200x400.png +0 -0
- data/lib/starter_web/assets/images/posts/featured/jekyll.png +0 -0
- data/lib/starter_web/assets/images/posts/featured/post-1.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/post-2.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/post-3.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/post-4.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/post-5.jpg +0 -0
- data/lib/starter_web/assets/images/posts/featured/static-web-access.png +0 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2022-08-01-organize-your-life.adoc +0 -118
- data/lib/starter_web/collections/posts/public/series/_posts/2022-08-02-organize-your-life.adoc +0 -118
- data/lib/starter_web/collections/posts/public/series/_posts/2022-08-03-organize-your-life.adoc +0 -118
- data/lib/starter_web/collections/posts/public/series/_posts/2022-09-01-organize-your-life.adoc +0 -117
- data/lib/starter_web/collections/posts/public/series/_posts/2022-09-02-organize-your-life.adoc +0 -117
- /data/lib/starter_web/assets/images/badges/{configBinder.png → png/configBinder.png} +0 -0
- /data/lib/starter_web/assets/images/badges/{docsBinder.png → png/docsBinder.png} +0 -0
- /data/lib/starter_web/assets/images/badges/{notebookBinder.png → png/notebookBinder.png} +0 -0
- /data/lib/starter_web/assets/images/icons/hyvor-talk/{hyvor-logo.24x24.png → png/hyvor-logo.24x24.png} +0 -0
- /data/lib/starter_web/assets/images/icons/hyvor-talk/{hyvor-logo.512x512.png → png/hyvor-logo.512x512.png} +0 -0
@@ -52,18 +52,21 @@ regenerate: true
|
|
52
52
|
-------------------------------------------------------------------------------- {% endcomment %}
|
53
53
|
{% assign themer_options = themer_defaults| merge: themer_settings %}
|
54
54
|
{% assign footer_options = footer_defaults | merge: footer_settings %}
|
55
|
+
{% assign footer = 'active_footer' %}
|
55
56
|
{% assign footer_id = footer_options.active_footer %}
|
56
57
|
{% assign default_theme = template_config.theme %}
|
57
58
|
{% assign theme_base = "core/css/themes" %}
|
58
59
|
|
60
|
+
|
61
|
+
{% comment %} Detect prod mode
|
62
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
63
|
+
|
59
64
|
{% if environment == "development" or environment == "test" %}
|
60
65
|
{% assign theme_ext = "css" %}
|
61
66
|
{% else %}
|
62
67
|
{% assign theme_ext = "min.css" %}
|
63
68
|
{% endif %}
|
64
69
|
|
65
|
-
{% comment %} Detect prod mode
|
66
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
67
70
|
{% assign production = false %}
|
68
71
|
{% if environment == 'prod' or environment == 'production' %}
|
69
72
|
{% assign production = true %}
|
@@ -108,6 +111,7 @@ j1.adapter.themer = (function (j1, window) {
|
|
108
111
|
// globals
|
109
112
|
// ---------------------------------------------------------------------------
|
110
113
|
var environment = '{{environment}}';
|
114
|
+
var development = (environment.includes('dev') ? true : false);
|
111
115
|
var url = new liteURL(window.location.href);
|
112
116
|
var secure = (url.protocol.includes('https')) ? true : false;
|
113
117
|
var user_state = {};
|
@@ -116,7 +120,7 @@ j1.adapter.themer = (function (j1, window) {
|
|
116
120
|
var user_state_detected = false;
|
117
121
|
var styleLoaded = false;
|
118
122
|
var id = 'default';
|
119
|
-
var cssExtension = (
|
123
|
+
var cssExtension = (development) ? '.css' : '.min.css';
|
120
124
|
var default_theme_name = '{{default_theme.name}}';
|
121
125
|
var default_theme_author = '{{default_theme.author}}';
|
122
126
|
var default_theme_author_url = '{{default_theme.author_url}}';
|
@@ -204,11 +208,13 @@ j1.adapter.themer = (function (j1, window) {
|
|
204
208
|
baseUrl = url.origin;
|
205
209
|
error_page = url.origin + '/204.html';
|
206
210
|
j1Cookies = j1.findCookie('j1');
|
207
|
-
gaCookies = j1.findCookie('
|
211
|
+
gaCookies = j1.findCookie('__g');
|
208
212
|
|
209
213
|
// initialize state flag
|
210
214
|
_this.state = 'started';
|
211
|
-
|
215
|
+
if (development) {
|
216
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
217
|
+
}
|
212
218
|
|
213
219
|
// hide page until 'theme' is loaded
|
214
220
|
$('#no_flicker').hide();
|
@@ -217,7 +223,7 @@ j1.adapter.themer = (function (j1, window) {
|
|
217
223
|
// Find conterpart (show) in the j1.adapter
|
218
224
|
// hide content|footer until 'page' is loaded
|
219
225
|
$('#content').hide();
|
220
|
-
$('{{
|
226
|
+
$('.{{footer}}').hide();
|
221
227
|
|
222
228
|
// jadams, 2021-07-25: problem seems NOT an timing issue on the iPad
|
223
229
|
// platform. (General) Dependency should be REMOVED!!!
|
@@ -235,7 +241,9 @@ j1.adapter.themer = (function (j1, window) {
|
|
235
241
|
user_state = j1.readCookie(cookie_names.user_state);
|
236
242
|
user_consent = j1.readCookie(cookie_names.user_consent);
|
237
243
|
|
238
|
-
|
244
|
+
if (development) {
|
245
|
+
logger.debug('\n' + 'cookie ' + cookie_names.user_state + ' successfully loaded after: ' + interval_count * 25 + ' ms');
|
246
|
+
}
|
239
247
|
|
240
248
|
// initial theme data
|
241
249
|
if (user_state.theme_css === '') {
|
@@ -252,7 +260,9 @@ j1.adapter.themer = (function (j1, window) {
|
|
252
260
|
});
|
253
261
|
|
254
262
|
if (!cookie_written) {
|
255
|
-
|
263
|
+
if (development) {
|
264
|
+
logger.error('\n' + 'failed to write cookie: ' + cookie_names.user_consent);
|
265
|
+
}
|
256
266
|
}
|
257
267
|
}
|
258
268
|
|
@@ -260,8 +270,10 @@ j1.adapter.themer = (function (j1, window) {
|
|
260
270
|
user_state.theme_switcher = themerOptions.enabled;
|
261
271
|
if (themerOptions.enabled) {
|
262
272
|
// enable BS ThemeSwitcher
|
263
|
-
|
264
|
-
|
273
|
+
if (development) {
|
274
|
+
logger.info('\n' + 'themes detected as: ' + themerOptions.enabled);
|
275
|
+
logger.info('\n' + 'remote themes are being initialized');
|
276
|
+
}
|
265
277
|
|
266
278
|
/* eslint-disable */
|
267
279
|
// load list of remote themes
|
@@ -286,8 +298,10 @@ j1.adapter.themer = (function (j1, window) {
|
|
286
298
|
};
|
287
299
|
/* eslint-enable */
|
288
300
|
} else {
|
289
|
-
|
290
|
-
|
301
|
+
if (development) {
|
302
|
+
logger.warn('\n' + 'themes detected as: disabled');
|
303
|
+
logger.warn('\n' + 'no remote themes are available');
|
304
|
+
}
|
291
305
|
}
|
292
306
|
|
293
307
|
// validate theme to be loaded
|
@@ -304,10 +318,17 @@ j1.adapter.themer = (function (j1, window) {
|
|
304
318
|
}, 10); // END dependencies_met_theme_loaded
|
305
319
|
} else {
|
306
320
|
// invalid theme, fallback on default
|
307
|
-
|
321
|
+
if (development) {
|
322
|
+
logger.warn('\n' + 'themes CSS invalid: ' + user_state.theme_css);
|
323
|
+
}
|
324
|
+
|
308
325
|
theme_css_html = '<link rel="stylesheet" id="' + id + '" href="' + default_theme_css + '" type="text/css" />';
|
309
|
-
|
310
|
-
|
326
|
+
|
327
|
+
if (development) {
|
328
|
+
logger.warn('\n' + 'set default theme :' + default_theme_name);
|
329
|
+
logger.debug('\n' + 'theme CSS loaded: ' + default_theme_css);
|
330
|
+
}
|
331
|
+
|
311
332
|
$('head').append(theme_css_html);
|
312
333
|
|
313
334
|
// write theme defaults to cookie
|
@@ -344,11 +365,17 @@ j1.adapter.themer = (function (j1, window) {
|
|
344
365
|
// show page (theme is loaded)
|
345
366
|
$('#no_flicker').show();
|
346
367
|
|
347
|
-
|
348
|
-
|
368
|
+
if (development) {
|
369
|
+
logger.info('\n' + 'theme loaded successfully: ' + user_state.theme_name);
|
370
|
+
logger.debug('\n' + 'theme CSS loaded: ' + user_state.theme_css);
|
371
|
+
}
|
372
|
+
|
349
373
|
_this.setState('finished');
|
350
|
-
|
351
|
-
|
374
|
+
|
375
|
+
if (development) {
|
376
|
+
logger.debug('\n' + 'state: ' + _this.getState());
|
377
|
+
logger.info('\n' + 'module initialized successfully');
|
378
|
+
}
|
352
379
|
|
353
380
|
clearInterval(dependencies_met_theme_applied);
|
354
381
|
}
|
@@ -365,13 +392,20 @@ j1.adapter.themer = (function (j1, window) {
|
|
365
392
|
var json_message = JSON.stringify(message, undefined, 2);
|
366
393
|
|
367
394
|
logText = '\n' + 'received message from ' + sender + ': ' + json_message;
|
368
|
-
|
395
|
+
|
396
|
+
if (development) {
|
397
|
+
logger.info(logText);
|
398
|
+
}
|
369
399
|
|
370
400
|
// -----------------------------------------------------------------------
|
371
401
|
// Process commands|actions
|
372
402
|
// -----------------------------------------------------------------------
|
373
403
|
if (message.type === 'command' && message.action === 'module_initialized') {
|
374
|
-
|
404
|
+
|
405
|
+
if (development) {
|
406
|
+
logger.info('\n' + message.text);
|
407
|
+
}
|
408
|
+
|
375
409
|
//
|
376
410
|
// Place handling of other command|action here
|
377
411
|
//
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
# -----------------------------------------------------------------------------
|
3
|
-
# ~/packages/100_theme_css/
|
3
|
+
# ~/packages/100_theme_css/material_design_icons_regular.scss
|
4
4
|
# CSS index file for Material Design Icons v5.9.55
|
5
5
|
#
|
6
6
|
# Product/Info:
|
@@ -65,15 +65,11 @@
|
|
65
65
|
# -----------------------------------------------------------------------------
|
66
66
|
*/
|
67
67
|
@font-face {
|
68
|
-
src: url("/assets/themes/j1/core/fonts/material_design_icons/fonts/materialdesignicons-webfont.woff") format("woff");
|
69
68
|
src: url("/assets/themes/j1/core/fonts/material_design_icons/fonts/materialdesignicons-webfont.woff2") format("woff2");
|
70
|
-
src: url("/assets/themes/j1/core/fonts/material_design_icons/fonts/eot/materialdesignicons-webfont.eot?v=6.9.96");
|
71
|
-
src: url("/assets/themes/j1/core/fonts/material_design_icons/fonts/eot/materialdesignicons-webfont.eot?#iefix&v=6.9.96") format("embedded-opentype");
|
72
|
-
src: url("/assets/themes/j1/core/fonts/material_design_icons/fonts/svg/materialdesignicons-webfont.svg?v=6.9.96#materialdesigniconsregular") format("svg");
|
73
|
-
src: url("/assets/themes/j1/core/fonts/material_design_icons/fonts/ttf/materialdesignicons-webfont.ttf?v=6.9.96") format("truetype");
|
74
69
|
font-family: "Material Design Icons";
|
75
70
|
font-weight: normal;
|
76
|
-
font-style: normal;
|
71
|
+
font-style: normal;
|
72
|
+
font-display: block; }
|
77
73
|
|
78
74
|
/*
|
79
75
|
# -----------------------------------------------------------------------------
|