j1-template 2023.0.2 → 2023.0.3
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_post.html +8 -2
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +6 -0
- data/_includes/themes/j1/procedures/blocks/footer/boxes/social_media_icons.proc +22 -22
- data/_includes/themes/j1/procedures/posts/pager.proc +4 -0
- data/assets/data/banner.html +29 -18
- data/assets/data/panel.html +69 -12
- data/assets/themes/j1/adapter/js/navigator.js +77 -303
- data/assets/themes/j1/adapter/js/themer.js +10 -6
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +3 -3
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +10 -10
- data/lib/starter_web/_data/blocks/banner.yml +2 -1
- data/lib/starter_web/_data/blocks/panel.yml +6 -1
- data/lib/starter_web/_data/modules/defaults/navigator.yml +2 -2
- data/lib/starter_web/_data/modules/themer.yml +0 -1
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/custom/agency/portfolio.html +67 -0
- data/lib/starter_web/_includes/custom/agency/services.html +35 -0
- data/lib/starter_web/_includes/custom/agency/team.html +29 -0
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/images/agency/img/about/1.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/about/2.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/about/3.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/about/4.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/close-icon.svg +1 -0
- data/lib/starter_web/assets/images/agency/img/header-bg.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/logos/facebook.svg +34 -0
- data/lib/starter_web/assets/images/agency/img/logos/google.svg +35 -0
- data/lib/starter_web/assets/images/agency/img/logos/ibm.svg +24 -0
- data/lib/starter_web/assets/images/agency/img/logos/microsoft.svg +42 -0
- data/lib/starter_web/assets/images/agency/img/map-image.png +0 -0
- data/lib/starter_web/assets/images/agency/img/navbar-logo.svg +1 -0
- data/lib/starter_web/assets/images/agency/img/portfolio/1.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/portfolio/2.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/portfolio/3.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/portfolio/4.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/portfolio/5.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/portfolio/6.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/screenshot.png +0 -0
- data/lib/starter_web/assets/images/agency/img/team/1.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/team/2.jpg +0 -0
- data/lib/starter_web/assets/images/agency/img/team/3.jpg +0 -0
- data/lib/starter_web/package.json +2 -1
- data/lib/starter_web/pages/public/learn/mweb/mweb-tester.adoc +299 -0
- data/lib/starter_web/pages/public/learn/mweb/static/index.css +237 -0
- data/lib/starter_web/pages/public/learn/mweb/static/index.js +1138 -0
- data/lib/starter_web/pages/public/learn/mweb/static/lodash.min.js +140 -0
- data/lib/starter_web/pages/public/learn/mweb/static/socket.io/socket.io.js +4570 -0
- data/lib/starter_web/pages/public/learn/mweb/static/socket.io/socket.io.min.js +7 -0
- data/lib/starter_web/pages/public/learn/mweb/static/video-js.min.css +1 -0
- data/lib/starter_web/pages/public/learn/mweb/static/video.min.js +26 -0
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +35 -10
- data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.css +0 -1222
- data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.min.css +0 -1
- data/assets/themes/j1/core/css/icon-fonts/materialdesign.css +0 -22307
- data/assets/themes/j1/core/css/icon-fonts/materialdesign.min.css +0 -1
- data/assets/themes/j1/core/css/icon-fonts/twemoji.css +0 -9499
- data/assets/themes/j1/core/css/icon-fonts/twemoji.min.css +0 -1
- data/assets/themes/j1/core/css/themes/theme_vapor/bootstrap.css +0 -8876
- data/assets/themes/j1/core/css/themes/theme_vapor/bootstrap.min.css +0 -5
@@ -406,52 +406,34 @@ j1.adapter.navigator = (function (j1, window) {
|
|
406
406
|
// event handler|css styles
|
407
407
|
// -----------------------------------------------------------------
|
408
408
|
var dependencies_met_initialized = setInterval(function() {
|
409
|
-
if
|
410
|
-
|
411
|
-
if (j1.adapter.themer.getState() === 'finished') {
|
412
|
-
_this.setState('processing');
|
413
|
-
|
414
|
-
// apply module configuration settings
|
415
|
-
_this.applyNavigatorSettings (
|
416
|
-
navDefaults, navBarOptions, navMenuOptions,
|
417
|
-
navQuicklinksOptions
|
418
|
-
);
|
419
|
-
|
420
|
-
// (static) delay applying styles until added CSS data
|
421
|
-
// of the theme is processed by the browser
|
422
|
-
setTimeout (function() {
|
423
|
-
// set general|global theme colors
|
424
|
-
logger.info('\n' + 'initializing dynamic CSS styles');
|
425
|
-
_this.applyThemeSettings (
|
426
|
-
navDefaults, navBarOptions, navMenuOptions,
|
427
|
-
navQuicklinksOptions
|
428
|
-
);
|
429
|
-
}, 500);
|
430
|
-
|
431
|
-
logger.info('\n' + 'init auth client');
|
432
|
-
_this.initAuthClient(_this.navAuthManagerConfig);
|
433
|
-
|
434
|
-
_this.setState('finished');
|
435
|
-
logger.debug('\n' + 'state: ' + _this.getState());
|
436
|
-
logger.info('\n' + 'module initialized successfully');
|
437
|
-
logger.debug('\n' + 'met dependencies for: j1');
|
438
|
-
clearInterval(dependencies_met_initialized);
|
439
|
-
}
|
440
|
-
} else {
|
441
|
-
// no themes used
|
409
|
+
// initialize if page and themer ready
|
410
|
+
if (j1.getState() === 'finished' && j1.adapter.themer.getState() === 'finished') {
|
442
411
|
_this.setState('processing');
|
443
412
|
|
444
|
-
//
|
445
|
-
|
446
|
-
_this.applyThemeSettings (
|
413
|
+
// apply module configuration settings
|
414
|
+
_this.applyNavigatorSettings (
|
447
415
|
navDefaults, navBarOptions, navMenuOptions,
|
448
416
|
navQuicklinksOptions
|
449
417
|
);
|
450
418
|
|
419
|
+
// (static) delay applying styles until added CSS data
|
420
|
+
// of the theme is processed by the browser
|
421
|
+
setTimeout (function() {
|
422
|
+
// set general|global theme colors
|
423
|
+
logger.info('\n' + 'initializing dynamic CSS styles');
|
424
|
+
_this.applyThemeSettings (
|
425
|
+
navDefaults, navBarOptions, navMenuOptions,
|
426
|
+
navQuicklinksOptions
|
427
|
+
);
|
428
|
+
}, 500);
|
429
|
+
|
451
430
|
logger.info('\n' + 'init auth client');
|
452
431
|
_this.initAuthClient(_this.navAuthManagerConfig);
|
432
|
+
|
453
433
|
_this.setState('finished');
|
454
434
|
logger.debug('\n' + 'state: ' + _this.getState());
|
435
|
+
logger.info('\n' + 'module initialized successfully');
|
436
|
+
logger.debug('\n' + 'met dependencies for: j1');
|
455
437
|
clearInterval(dependencies_met_initialized);
|
456
438
|
}
|
457
439
|
}, 25); // END 'dependencies_met_initialized'
|
@@ -640,12 +622,55 @@ j1.adapter.navigator = (function (j1, window) {
|
|
640
622
|
// Apply CSS styles from current theme
|
641
623
|
// -------------------------------------------------------------------------
|
642
624
|
applyThemeSettings: function (navDefaults, navBarOptions, navMenuOptions, navQuicklinksOptions) {
|
625
|
+
|
643
626
|
var logger = log4javascript.getLogger('j1.adapter.navigator.applyThemeSettings');
|
644
627
|
var gridBreakpoint_lg = '992px';
|
645
628
|
var gridBreakpoint_md = '768px';
|
646
629
|
var gridBreakpoint_sm = '576px';
|
630
|
+
|
631
|
+
var navbar_scrolled_color;
|
632
|
+
var navbar_scrolled_style;
|
633
|
+
var bg_scrolled;
|
634
|
+
var bg_collapsed;
|
635
|
+
var style;
|
636
|
+
|
637
|
+
// Set dymanic styles
|
638
|
+
// -----------------------------------------------------------------------
|
639
|
+
|
640
|
+
// read current background colors
|
641
|
+
var bg_primary = $('#bg-primary').css('background-color');
|
642
|
+
var bg_table = $('body').css('background-color');
|
643
|
+
|
644
|
+
// set navbar background colors
|
645
|
+
bg_scrolled = bg_primary;
|
646
|
+
bg_collapsed = bg_primary;
|
647
|
+
|
648
|
+
// navBar styles
|
649
|
+
// -----------------------------------------------------------------------
|
650
|
+
|
647
651
|
var navPrimaryColor = navDefaults.nav_primary_color;
|
648
652
|
|
653
|
+
if (navBarOptions.background_color_scrolled == 'default' ) {
|
654
|
+
navbar_scrolled_color = bg_primary;
|
655
|
+
} else {
|
656
|
+
// navbar_scrolled_color = '#212529';
|
657
|
+
navbar_scrolled_color = navBarOptions.background_color_scrolled;
|
658
|
+
}
|
659
|
+
|
660
|
+
|
661
|
+
navbar_scrolled_style = '<style id="navbar_scrolled_color">';
|
662
|
+
navbar_scrolled_style += ' .navbar-scrolled {';
|
663
|
+
navbar_scrolled_style += ' background-color: ' + navbar_scrolled_color + ' !important;';
|
664
|
+
navbar_scrolled_style += ' }';
|
665
|
+
navbar_scrolled_style += '</style>';
|
666
|
+
|
667
|
+
$('head').append(navbar_scrolled_style);
|
668
|
+
|
669
|
+
// set current body background color for all tables
|
670
|
+
// -----------------------------------------------------------------------
|
671
|
+
$('table').css('background', bg_table);
|
672
|
+
|
673
|
+
|
649
674
|
logger.info('\n' + 'set dynamic styles for the theme loaded');
|
650
675
|
|
651
676
|
// Set|Resolve navMenuOptions
|
@@ -673,268 +698,6 @@ j1.adapter.navigator = (function (j1, window) {
|
|
673
698
|
navQuicklinksOptions.icon_color_hover = navQuicklinksOptions.icon_color_hover;
|
674
699
|
navQuicklinksOptions.background_color = navQuicklinksOptions.background_color;
|
675
700
|
|
676
|
-
// Set dymanic styles
|
677
|
-
// -----------------------------------------------------------------------
|
678
|
-
var style;
|
679
|
-
|
680
|
-
// read current background colors
|
681
|
-
var bg_primary = $('#bg-primary').css('background-color');
|
682
|
-
var bg_table = $('body').css('background-color');
|
683
|
-
|
684
|
-
// set navbar background colors
|
685
|
-
var bg_scrolled = bg_primary;
|
686
|
-
var bg_collapsed = bg_primary;
|
687
|
-
|
688
|
-
// navBar styles
|
689
|
-
// -----------------------------------------------------------------------
|
690
|
-
|
691
|
-
// set current body background color for all tables
|
692
|
-
$('table').css('background', bg_table);
|
693
|
-
|
694
|
-
// // $('head').append('<style>.mdi-bg-primary {color: ' +bg_scrolled+ ';}</style>');
|
695
|
-
// style = '<style>';
|
696
|
-
// style += ' .mdi-bg-primary {';
|
697
|
-
// style += ' color: ' + bg_scrolled;
|
698
|
-
// style += ' }';
|
699
|
-
// style += '</style>';
|
700
|
-
// $('head').append(style);
|
701
|
-
//
|
702
|
-
// // Size of brand image
|
703
|
-
// // $('head').append('<style>.navbar-brand > img { height: {{brand_image_height}}px !important; }</style>');
|
704
|
-
// style = '<style>';
|
705
|
-
// style += ' .navbar-brand > img {';
|
706
|
-
// style += ' height: {{brand_image_height}}px !important;';
|
707
|
-
// style += ' }';
|
708
|
-
// style += '</style>';
|
709
|
-
// $('head').append(style);
|
710
|
-
//
|
711
|
-
// // Navbar transparent-light (light)
|
712
|
-
// // $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator.navbar-transparent.light { background-color: ' +navBarOptions.background_color_full+ ' !important; border-bottom: solid 0px !important; } }</style>');
|
713
|
-
// style = '<style>';
|
714
|
-
// style += ' @media screen and (min-width: ' + gridBreakpoint_lg + ') {';
|
715
|
-
// style += ' nav.navbar.navigator.navbar-transparent.light {';
|
716
|
-
// style += ' background-color: ' + navBarOptions.background_color_full + ' !important;';
|
717
|
-
// style += ' border-bottom: solid 0px !important;';
|
718
|
-
// style += ' }';
|
719
|
-
// style += ' }';
|
720
|
-
// style += '</style>';
|
721
|
-
// $('head').append(style);
|
722
|
-
//
|
723
|
-
// // $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator.navbar-scrolled.light { background-color: ' +bg_scrolled+ ' !important; } }</style>');
|
724
|
-
// // style = '<style>';
|
725
|
-
// // style += ' @media screen and (min-width: ' + gridBreakpoint_lg + ') {';
|
726
|
-
// // style += ' nav.navbar.navigator.navbar-scrolled.light {';
|
727
|
-
// // style += ' background-color: ' + bg_scrolled + ' !important;';
|
728
|
-
// // style += ' }';
|
729
|
-
// // style += ' }';
|
730
|
-
// // style += '</style>';
|
731
|
-
// // $('head').append(style);
|
732
|
-
//
|
733
|
-
// // $('head').append('<style id="dynNav">@media (max-width: ' +gridBreakpoint_md+ ') { nav.navbar.navigator.navbar-transparent.light { background-color: ' +navBarOptions.background_color_full+ ' !important; border-bottom: solid 0px !important; } }</style>');
|
734
|
-
// style = '<style id="dynNav">';
|
735
|
-
// style += ' @media screen and (max-width: ' + gridBreakpoint_md + ') {';
|
736
|
-
// style += ' nav.navbar.navigator.navbar-transparent.light {';
|
737
|
-
// style += ' background-color: ' + navBarOptions.background_color_full + ' !important;';
|
738
|
-
// style += ' border-bottom: solid 0px !important;';
|
739
|
-
// style += ' }';
|
740
|
-
// style += ' }';
|
741
|
-
// style += '</style>';
|
742
|
-
// $('head').append(style);
|
743
|
-
//
|
744
|
-
// // $('head').append('<style id="dynNav">@media (max-width: ' +gridBreakpoint_md+ ') { nav.navbar.navigator.navbar-scrolled.light { background-color: ' +bg_scrolled+ ' !important; } }</style>');
|
745
|
-
// // style = '<style id="dynNav">';
|
746
|
-
// // style += ' @media screen and (max-width: ' + gridBreakpoint_md + ') {';
|
747
|
-
// // style += ' nav.navbar.navigator.navbar-scrolled.light {';
|
748
|
-
// // style += ' background-color: ' + bg_scrolled + ' !important;';
|
749
|
-
// // style += ' }';
|
750
|
-
// // style += ' }';
|
751
|
-
// // style += '</style>';
|
752
|
-
// // $('head').append(style);
|
753
|
-
//
|
754
|
-
// // $('head').append('<style id="dynNav">@media (min-width: ' +gridBreakpoint_md+ ') { nav.navbar.navigator.navbar-transparent.light { background-color: ' +navBarOptions.background_color_full+ ' !important; border-bottom: solid 0px !important; } }</style>');
|
755
|
-
// style = '<style id="dynNav">';
|
756
|
-
// style += ' @media screen and (min-width: ' + gridBreakpoint_md + ') {';
|
757
|
-
// style += ' nav.navbar.navigator.navbar-transparent.light {';
|
758
|
-
// style += ' background-color: ' + navBarOptions.background_color_full + ' !important;';
|
759
|
-
// style += ' border-bottom: solid 0px !important;';
|
760
|
-
// style += ' }';
|
761
|
-
// style += ' }';
|
762
|
-
// style += '</style>';
|
763
|
-
// $('head').append(style);
|
764
|
-
//
|
765
|
-
// // $('head').append('<style id="dynNav">@media (min-width: ' +gridBreakpoint_md+ ') { nav.navbar.navigator.navbar-scrolled.light { background-color: ' +bg_scrolled+ ' !important; } }</style>');
|
766
|
-
// // style = '<style id="dynNav">';
|
767
|
-
// // style += ' @media screen and (min-width: ' + gridBreakpoint_md + ') {';
|
768
|
-
// // style += ' nav.navbar.navigator.navbar-scrolled.light {';
|
769
|
-
// // style += ' background-color: ' + bg_scrolled + ' !important;';
|
770
|
-
// // style += ' }';
|
771
|
-
// // style += ' }';
|
772
|
-
// // style += '</style>';
|
773
|
-
// // $('head').append(style);
|
774
|
-
//
|
775
|
-
// // $('head').append('<style id="dynNav">@media (max-width: ' +gridBreakpoint_sm+ ') { nav.navbar.navigator.navbar-transparent.light { background-color: ' +navBarOptions.background_color_full+ ' !important; border-bottom: solid 0px !important; } }</style>');
|
776
|
-
// style = '<style id="dynNav">';
|
777
|
-
// style += ' @media screen and (max-width: ' + gridBreakpoint_sm + ') {';
|
778
|
-
// style += ' nav.navbar.navigator.navbar-transparent.light {';
|
779
|
-
// style += ' background-color: ' + navBarOptions.background_color_full + ' !important;';
|
780
|
-
// style += ' border-bottom: solid 0px !important;';
|
781
|
-
// style += ' }';
|
782
|
-
// style += ' }';
|
783
|
-
// style += '</style>';
|
784
|
-
// $('head').append(style);
|
785
|
-
//
|
786
|
-
// // $('head').append('<style id="dynNav">@media (max-width: ' +gridBreakpoint_sm+ ') { nav.navbar.navigator.navbar-scrolled.light { background-color: ' +bg_scrolled+ ' !important; } }</style>');
|
787
|
-
// // style = '<style id="dynNav">';
|
788
|
-
// // style += ' @media screen and (max-width: ' + gridBreakpoint_sm + ') {';
|
789
|
-
// // style += ' nav.navbar.navigator.navbar-scrolled.light {';
|
790
|
-
// // style += ' background-color: ' + bg_scrolled + ' !important;';
|
791
|
-
// // style += ' }';
|
792
|
-
// // style += ' }';
|
793
|
-
// // style += '</style>';
|
794
|
-
// // $('head').append(style);
|
795
|
-
//
|
796
|
-
//
|
797
|
-
// // navQuicklinks styles
|
798
|
-
// // -----------------------------------------------------------------------
|
799
|
-
// // $('head').append('<style>.quicklink-nav> ul > li > a { color: ' +navQuicklinksOptions.icon_color+ ' !important; }</style>');
|
800
|
-
// style = '<style>';
|
801
|
-
// style += ' .quicklink-nav> ul > li > a {';
|
802
|
-
// style += ' color: ' + navQuicklinksOptions.icon_color + ' !important;';
|
803
|
-
// style += ' }';
|
804
|
-
// style += '</style>';
|
805
|
-
// $('head').append(style);
|
806
|
-
//
|
807
|
-
// // $('head').append('<style>.quicklink-nav> ul > li > a:hover { color: ' +navQuicklinksOptions.icon_color_hover+ ' !important; }</style>');
|
808
|
-
// style = '<style>';
|
809
|
-
// style += ' .quicklink-nav> ul > li > a:hover {';
|
810
|
-
// style += ' color: ' + navQuicklinksOptions.icon_color_hover + ' !important;';
|
811
|
-
// style += ' }';
|
812
|
-
// style += '</style>';
|
813
|
-
// $('head').append(style);
|
814
|
-
//
|
815
|
-
//
|
816
|
-
// // navMenu styles
|
817
|
-
// // -----------------------------------------------------------------------
|
818
|
-
//
|
819
|
-
// // $('head').append('<style>.dropdown-menu > .active > a { background-color: transparent !important; }</style>');
|
820
|
-
// // Remove background for anchor
|
821
|
-
// style = '<style>';
|
822
|
-
// style += ' .dropdown-menu > .active > a {';
|
823
|
-
// style += ' background-color: transparent !important;';
|
824
|
-
// style += ' }';
|
825
|
-
// style += '</style>';
|
826
|
-
// $('head').append(style);
|
827
|
-
//
|
828
|
-
// // $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator .dropdown-item:focus, nav.navbar.navigator .dropdown-item:hover, nav.navbar.navigator .nav-sub-item:focus, nav.navbar.navigator .nav-sub-item:hover { background: ' +navMenuOptions.dropdown_background_color_hover+ ' !important; }}</style>');
|
829
|
-
// // hover menu-item|menu-sub-item
|
830
|
-
// style = '<style>';
|
831
|
-
// style += ' @media screen and (min-width: ' + gridBreakpoint_lg + ') {';
|
832
|
-
// style += ' nav.navbar.navigator .dropdown-item:focus,';
|
833
|
-
// style += ' nav.navbar.navigator .dropdown-item:hover,';
|
834
|
-
// style += ' nav.navbar.navigator .nav-sub-item:focus,';
|
835
|
-
// style += ' nav.navbar.navigator .nav-sub-item:hover {';
|
836
|
-
// style += ' background: ' + navMenuOptions.dropdown_background_color_hover + ' !important;';
|
837
|
-
// style += ' }';
|
838
|
-
// style += ' }';
|
839
|
-
// style += '</style>';
|
840
|
-
// $('head').append(style);
|
841
|
-
//
|
842
|
-
// // $('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>');
|
843
|
-
// // Limit 1st dropdown item width
|
844
|
-
// style = '<style>';
|
845
|
-
// style += ' @media screen and (min-width: ' + gridBreakpoint_lg + ') {';
|
846
|
-
// style += ' nav.navbar.navigator ul.nav.navbar-right .dropdown-menu .dropdown-menu {';
|
847
|
-
// style += ' left: -' + navMenuOptions.dropdown_item_min_width + 'rem !important;';
|
848
|
-
// style += ' }';
|
849
|
-
// style += ' }';
|
850
|
-
// style += '</style>';
|
851
|
-
// $('head').append(style);
|
852
|
-
//
|
853
|
-
// // $('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>');
|
854
|
-
// // Limit last (2nd) dropdown in height
|
855
|
-
// style = '<style>';
|
856
|
-
// style += ' @media screen and (min-width: ' + gridBreakpoint_lg + ') {';
|
857
|
-
// style += ' nav.navbar.navigator li.dropdown ul.dropdown-menu ul.dropdown-menu {';
|
858
|
-
// style += ' top: -' + navMenuOptions.dropdown_border_top + 'px !important;';
|
859
|
-
// style += ' max-height: ' + navMenuOptions.dropdown_menu_max_height + 'em;';
|
860
|
-
// style += ' }';
|
861
|
-
// style += ' }';
|
862
|
-
// style += '</style>';
|
863
|
-
//
|
864
|
-
// // Set dropdown item colors
|
865
|
-
// // $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav > li > a { color: ' +navMenuOptions.menu_item_color+ ' !important; } }</style>');
|
866
|
-
// style = '<style>';
|
867
|
-
// style += ' @media screen and (min-width: ' + gridBreakpoint_lg + ') {';
|
868
|
-
// style += ' nav.navbar.navigator ul.nav > li > a {';
|
869
|
-
// style += ' color: ' + navMenuOptions.menu_item_color + ' !important;';
|
870
|
-
// style += ' }';
|
871
|
-
// style += ' }';
|
872
|
-
// style += '</style>';
|
873
|
-
//
|
874
|
-
// // $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.nav > li > a:hover { color: ' +navMenuOptions.menu_item_color_hover+ ' !important; } }</style>');
|
875
|
-
// style = '<style>';
|
876
|
-
// style += ' @media screen and (min-width: ' + gridBreakpoint_lg + ') {';
|
877
|
-
// style += ' nav.navbar.navigator ul.nav > li > a:hover {';
|
878
|
-
// style += ' color: ' + navMenuOptions.menu_item_color_hover + ' !important;';
|
879
|
-
// style += ' }';
|
880
|
-
// style += ' }';
|
881
|
-
// style += '</style>';
|
882
|
-
//
|
883
|
-
// // $('head').append('<style>@media (min-width: ' + gridBreakpoint_lg + ') { nav.navbar.navigator li.dropdown ul.dropdown-menu { animation-duration: ' +navMenuOptions.dropdown_animate_duration+ 's !important; color: #616161 !important; min-width: ' +navMenuOptions.dropdown_item_min_width+ 'rem !important; border-top: solid ' +navMenuOptions.dropdown_border_top+ 'px !important; border-radius: ' +navMenuOptions.dropdown_border_radius+ 'px !important; left: 0; } }</style>');
|
884
|
-
// // Dropdown menu styles
|
885
|
-
// style = '<style>';
|
886
|
-
// style += ' @media screen and (min-width: ' + gridBreakpoint_lg + ') {';
|
887
|
-
// style += ' nav.navbar.navigator li.dropdown ul.dropdown-menu {';
|
888
|
-
// style += ' animation-duration: ' + navMenuOptions.dropdown_animate_duration + 's !important;';
|
889
|
-
// style += ' color: #616161 !important;';
|
890
|
-
// style += ' min-width: ' + navMenuOptions.dropdown_item_min_width + 'rem !important;';
|
891
|
-
// style += ' border-top: solid ' + navMenuOptions.dropdown_border_top + 'px !important;';
|
892
|
-
// style += ' border-radius: ' + navMenuOptions.dropdown_border_radius + 'px !important;';
|
893
|
-
// style += ' left: 0;';
|
894
|
-
// style += ' }';
|
895
|
-
// style += ' }';
|
896
|
-
// style += '</style>';
|
897
|
-
// $('head').append(style);
|
898
|
-
//
|
899
|
-
//
|
900
|
-
// {% if dropdown_style == 'raised' %}
|
901
|
-
// // $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator li.dropdown ul.dropdown-menu { box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2) !important; } }</style>');
|
902
|
-
// style = '<style>';
|
903
|
-
// style += ' @media screen and (min-width: ' + gridBreakpoint_lg + ') {';
|
904
|
-
// style += ' nav.navbar.navigator li.dropdown ul.dropdown-menu {';
|
905
|
-
// style += ' box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2) !important;';
|
906
|
-
// style += ' }';
|
907
|
-
// style += ' }';
|
908
|
-
// style += '</style>';
|
909
|
-
// $('head').append(style);
|
910
|
-
// {% endif %}
|
911
|
-
//
|
912
|
-
// // $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator li.dropdown ul.dropdown-menu > li > a { color: ' +navMenuOptions.dropdown_item_color+ ' !important; font-size: ' +navMenuOptions.dropdown_font_size+ ' !important; font-weight: 400; } }</style>');
|
913
|
-
// // configure dropdown_font_size|color
|
914
|
-
// style = '<style>';
|
915
|
-
// style += ' @media screen and (min-width: ' + gridBreakpoint_lg + ') {';
|
916
|
-
// style += ' nav.navbar.navigator li.dropdown ul.dropdown-menu > li > a {';
|
917
|
-
// style += ' color: ' + navMenuOptions.dropdown_item_color + ' !important;';
|
918
|
-
// style += ' font-size: ' + navMenuOptions.dropdown_font_size + ' !important;';
|
919
|
-
// style += ' font-weight: 400;';
|
920
|
-
// style += ' }';
|
921
|
-
// style += ' }';
|
922
|
-
// style += '</style>';
|
923
|
-
// $('head').append(style);
|
924
|
-
//
|
925
|
-
// // $('head').append('<style>@media (min-width: ' +gridBreakpoint_lg+ ') { nav.navbar.navigator ul.dropdown-menu.megamenu-content .content ul.menu-col li a { color: ' +navMenuOptions.dropdown_item_color+ ' !important; font-size: ' +navMenuOptions.megamenu_font_size+ ' !important; font-weight: 400; } }</style>');
|
926
|
-
// style = '<style>';
|
927
|
-
// style += ' @media screen and (min-width: ' + gridBreakpoint_lg + ') {';
|
928
|
-
// style += ' nav.navbar.navigator ul.dropdown-menu.megamenu-content .content ul.menu-col li a {';
|
929
|
-
// style += ' color: ' + navMenuOptions.dropdown_item_color + ' !important;';
|
930
|
-
// style += ' font-size: ' + navMenuOptions.megamenu_font_size + ' !important;';
|
931
|
-
// style += ' font-weight: 400;';
|
932
|
-
// style += ' }';
|
933
|
-
// style += ' }';
|
934
|
-
// style += '</style>';
|
935
|
-
// $('head').append(style);
|
936
|
-
|
937
|
-
|
938
701
|
// Timeline styles
|
939
702
|
// -----------------------------------------------------------------------
|
940
703
|
style = '<style>';
|
@@ -954,7 +717,6 @@ j1.adapter.navigator = (function (j1, window) {
|
|
954
717
|
|
955
718
|
// Heading styles
|
956
719
|
// -----------------------------------------------------------------------
|
957
|
-
// $('head').append('<style>.heading:after {background: ' +bg_scrolled+ ' !important;}</style>');
|
958
720
|
style = '<style>';
|
959
721
|
style += ' .heading:after {';
|
960
722
|
style += ' background: ' + bg_scrolled + ' !important;';
|
@@ -964,7 +726,6 @@ j1.adapter.navigator = (function (j1, window) {
|
|
964
726
|
|
965
727
|
// Tag Cloud styles
|
966
728
|
// -----------------------------------------------------------------------
|
967
|
-
// $('head').append('<style>.tag-cloud ul li a {background-color: ' +bg_scrolled+ ' !important;}</style>');
|
968
729
|
style = '<style>';
|
969
730
|
style += ' .tag-cloud ul li a {';
|
970
731
|
style += ' background: ' + bg_scrolled + ' !important;';
|
@@ -974,7 +735,6 @@ j1.adapter.navigator = (function (j1, window) {
|
|
974
735
|
|
975
736
|
// Toccer styles
|
976
737
|
// -----------------------------------------------------------------------
|
977
|
-
// $('head').append('<style>.is-active-link::before {background-color: ' +bg_scrolled+ ' !important;}</style>');
|
978
738
|
style = '<style>';
|
979
739
|
style += ' .is-active-link::before {';
|
980
740
|
style += ' background-color: ' + bg_scrolled + ' !important;';
|
@@ -984,7 +744,6 @@ j1.adapter.navigator = (function (j1, window) {
|
|
984
744
|
|
985
745
|
// BS extended Modal styles
|
986
746
|
// -----------------------------------------------------------------------
|
987
|
-
// $('head').append('<style>.modal-dialog.modal-notify.modal-primary .modal-header {background-color: ' +bg_scrolled+ ';}</style>');
|
988
747
|
style = '<style>';
|
989
748
|
style += ' .modal-dialog.modal-notify.modal-primary .modal-header {';
|
990
749
|
style += ' background-color: ' + bg_scrolled + ' !important;';
|
@@ -994,7 +753,6 @@ j1.adapter.navigator = (function (j1, window) {
|
|
994
753
|
|
995
754
|
// BS nav|pills styles
|
996
755
|
// -----------------------------------------------------------------------
|
997
|
-
// $('head').append('<style>.nav-pills .nav-link.active, .nav-pills .show > .nav-link {background-color: ' +bg_scrolled+ ' !important;}</style>');
|
998
756
|
style = '<style>';
|
999
757
|
style += ' .nav-pills .nav-link.active, .nav-pills .show > .nav-link {';
|
1000
758
|
style += ' background-color: ' + bg_scrolled + ' !important;';
|
@@ -1005,16 +763,31 @@ j1.adapter.navigator = (function (j1, window) {
|
|
1005
763
|
return true;
|
1006
764
|
}, // END applyThemeSettings
|
1007
765
|
|
766
|
+
|
1008
767
|
// -------------------------------------------------------------------------
|
1009
768
|
// applyNavigatorSettings
|
1010
769
|
// Apply settings from configuration
|
1011
770
|
// -------------------------------------------------------------------------
|
1012
771
|
applyNavigatorSettings: function (navDefaults, navBarOptions, navMenuOptions, navQuicklinksOptions) {
|
772
|
+
|
1013
773
|
var logger = log4javascript.getLogger('j1.adapter.navigator.applyThemeSettings');
|
1014
774
|
var gridBreakpoint_lg = '992px';
|
1015
775
|
var gridBreakpoint_md = '768px';
|
1016
776
|
var gridBreakpoint_sm = '576px';
|
777
|
+
|
1017
778
|
var navPrimaryColor = navDefaults.nav_primary_color;
|
779
|
+
var navbar_scrolled_style;
|
780
|
+
var navbar_scrolled_color = '#212529';
|
781
|
+
|
782
|
+
navbar_scrolled_style = '<style id="navbar_scrolled_color">';
|
783
|
+
navbar_scrolled_style += ' .navbar-scrolled {';
|
784
|
+
navbar_scrolled_style += ' background-color: ' + navbar_scrolled_color + ' !important;';
|
785
|
+
navbar_scrolled_style += ' }';
|
786
|
+
navbar_scrolled_style += '</style>';
|
787
|
+
|
788
|
+
$('head').append(navbar_scrolled_style);
|
789
|
+
|
790
|
+
|
1018
791
|
|
1019
792
|
logger.info('\n' + 'set dynamic styles for the theme loaded');
|
1020
793
|
|
@@ -1051,6 +824,7 @@ j1.adapter.navigator = (function (j1, window) {
|
|
1051
824
|
var bg_primary = $('#bg-primary').css('background-color');
|
1052
825
|
var bg_table = $('body').css('background-color');
|
1053
826
|
|
827
|
+
|
1054
828
|
// set navbar background colors
|
1055
829
|
var bg_scrolled = bg_primary;
|
1056
830
|
var bg_collapsed = bg_primary;
|
@@ -235,7 +235,7 @@ j1.adapter.themer = (function (j1, window) {
|
|
235
235
|
if (themerOptions.enabled) {
|
236
236
|
// enable BS ThemeSwitcher
|
237
237
|
logger.info('\n' + 'themes detected as: enabled');
|
238
|
-
logger.info('\n' + '
|
238
|
+
logger.info('\n' + 'remote themes are being initialized: ' + user_state.theme_name);
|
239
239
|
|
240
240
|
/* eslint-disable */
|
241
241
|
// load list of remote themes
|
@@ -259,6 +259,10 @@ j1.adapter.themer = (function (j1, window) {
|
|
259
259
|
skipIncludeBootswatch: themerOptions.skipIncludeBootswatch
|
260
260
|
};
|
261
261
|
/* eslint-enable */
|
262
|
+
} else {
|
263
|
+
logger.warn('\n' + 'themes detected as: disabled');
|
264
|
+
logger.warn('\n' + 'no remote themes are available');
|
265
|
+
}
|
262
266
|
|
263
267
|
// continue processing if page is ready
|
264
268
|
var dependencies_met_theme_applied = setInterval (function () {
|
@@ -282,11 +286,11 @@ j1.adapter.themer = (function (j1, window) {
|
|
282
286
|
}
|
283
287
|
}, 25); // END dependencies_met_theme_applied
|
284
288
|
|
285
|
-
} else {
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
}
|
289
|
+
// } else {
|
290
|
+
// _this.setState('finished');
|
291
|
+
// logger.debug('\n' + 'state: ' + _this.getState());
|
292
|
+
// logger.info('\n' + 'themes detected as: disabled');
|
293
|
+
// }
|
290
294
|
clearInterval(dependencies_met_user_state_available);
|
291
295
|
}
|
292
296
|
|
data/lib/j1/version.rb
CHANGED
data/lib/starter_web/Gemfile
CHANGED
@@ -75,11 +75,11 @@ end
|
|
75
75
|
# Specify the THEME GEM used for the project
|
76
76
|
|
77
77
|
# Loaded from RubyGems
|
78
|
-
gem 'j1-template', '~> 2023.0.
|
78
|
+
gem 'j1-template', '~> 2023.0.0'
|
79
79
|
|
80
80
|
# Loaded from gem.fury.io
|
81
81
|
#source 'https://gem.fury.io/jekyll-one-org/' do
|
82
|
-
# gem 'j1-template', '~> 2023.0.
|
82
|
+
# gem 'j1-template', '~> 2023.0.3'
|
83
83
|
#end
|
84
84
|
|
85
85
|
# ------------------------------------------------------------------------------
|
@@ -170,7 +170,7 @@ end
|
|
170
170
|
# ------------------------------------------------------------------------------
|
171
171
|
#
|
172
172
|
# Required for Heroku, see support ticket: https://help.heroku.com/tickets/1198846
|
173
|
-
gem 'sass-embedded', '~> 1.57.1'
|
173
|
+
# gem 'sass-embedded', '~> 1.57.1'
|
174
174
|
|
175
175
|
gem 'sassc', '~> 2.4'
|
176
176
|
gem 'bump', '~> 0.10'
|
data/lib/starter_web/README.md
CHANGED
@@ -380,7 +380,7 @@ This command creates a **initial** project in folder **my-starter**.
|
|
380
380
|
2022-07-30 18:12:12 - GENERATE: Resolving dependencies...
|
381
381
|
2022-07-30 18:12:12 - GENERATE: Using bundler 2.3.7
|
382
382
|
...
|
383
|
-
2022-07-30 18:12:12 - GENERATE: Using j1-template 2023.0.
|
383
|
+
2022-07-30 18:12:12 - GENERATE: Using j1-template 2023.0.3
|
384
384
|
2022-07-30 18:12:12 - GENERATE: Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
|
385
385
|
2022-07-30 18:12:12 - GENERATE: Bundled gems are installed into `../../.gem`
|
386
386
|
2022-07-30 18:12:12 - GENERATE: C:/Users/xxx/.gem/ruby/3.1.0;C:/DevTools/Ruby31-x64/lib/ruby/gems/3.1.0;
|
@@ -416,7 +416,7 @@ commands are available as well.
|
|
416
416
|
2022-07-30 18:17:48 - SETUP: Initialize the project ...
|
417
417
|
2022-07-30 18:17:48 - SETUP: Be patient, this will take a while ...
|
418
418
|
2022-07-30 18:17:49 - SETUP:
|
419
|
-
2022-07-30 18:17:49 - SETUP: > j1@2023.0.
|
419
|
+
2022-07-30 18:17:49 - SETUP: > j1@2023.0.3 setup C:\Users\xxx\j1-projects\my-starter
|
420
420
|
2022-07-30 18:17:49 - SETUP: > npm --silent run setup-start && npm --silent run setup-base && run-s -s setup:*
|
421
421
|
2022-07-30 18:17:49 - SETUP:
|
422
422
|
2022-07-30 18:17:50 - SETUP: Setup project for first use ..
|
@@ -461,7 +461,7 @@ browser. Let's start the journey ...
|
|
461
461
|
Check setup state of the J1 project ...
|
462
462
|
2022-07-30 18:26:18 - SITE: Starting up your site ...
|
463
463
|
2022-07-30 18:26:18 - SITE:
|
464
|
-
2022-07-30 18:26:18 - SITE: > j1@2023.0.
|
464
|
+
2022-07-30 18:26:18 - SITE: > j1@2023.0.3 j1-site C:\Users\jadams\j1-projects\my-starter
|
465
465
|
2022-07-30 18:26:18 - SITE: > run-p -s j1-site:*
|
466
466
|
2022-07-30 18:26:18 - SITE:
|
467
467
|
2022-07-30 18:26:20 - SITE: Startup UTILSRV ..
|
@@ -500,7 +500,7 @@ Check setup state of the J1 project ...
|
|
500
500
|
REBUILD: Rebuild the projects website ...
|
501
501
|
REBUILD: Be patient, this will take a while ...
|
502
502
|
2022-07-30 18:45:09 - REBUILD:
|
503
|
-
2022-07-30 18:45:09 - REBUILD: > j1@2023.0.
|
503
|
+
2022-07-30 18:45:09 - REBUILD: > j1@2023.0.3 rebuild C:\Users\xxx\j1-projects\my-starter
|
504
504
|
2022-07-30 18:45:09 - REBUILD: > run-s -s rebuild:* && run-s -s post-rebuild:*
|
505
505
|
2022-07-30 18:45:09 - REBUILD:
|
506
506
|
2022-07-30 18:45:10 - REBUILD: Rebuild site incremental ..
|
@@ -548,7 +548,7 @@ using Lerna for all packages:
|
|
548
548
|
2022-07-30 18:29:07 - RESET: Reset the project to factory state ...
|
549
549
|
2022-07-30 18:29:07 - RESET: Be patient, this will take a while ...
|
550
550
|
2022-07-30 18:29:08 - RESET:
|
551
|
-
2022-07-30 18:29:08 - RESET: > j1@2023.0.
|
551
|
+
2022-07-30 18:29:08 - RESET: > j1@2023.0.3 reset C:\Users\xxx\j1-projects\my-starter
|
552
552
|
2022-07-30 18:29:08 - RESET: > run-s -s reset:*
|
553
553
|
2022-07-30 18:29:08 - RESET:
|
554
554
|
2022-07-30 18:29:08 - RESET: Reset project to factory state ..
|
data/lib/starter_web/_config.yml
CHANGED
@@ -53,7 +53,7 @@ environment: development
|
|
53
53
|
# ------------------------------------------------------------------------------
|
54
54
|
# Sets the build version of J1 Theme Gem
|
55
55
|
#
|
56
|
-
version: 2023.0.
|
56
|
+
version: 2023.0.3
|
57
57
|
|
58
58
|
# version
|
59
59
|
# ------------------------------------------------------------------------------
|
@@ -412,7 +412,8 @@ strict_front_matter: false
|
|
412
412
|
#
|
413
413
|
sass:
|
414
414
|
sass_dir: _sass/scss
|
415
|
-
style: expanded
|
415
|
+
style: expanded # possible values: nested expanded compact compressed
|
416
|
+
|
416
417
|
|
417
418
|
# ------------------------------------------------------------------------------
|
418
419
|
# WEBRICK Customizations
|
@@ -689,13 +690,13 @@ defaults:
|
|
689
690
|
index: true
|
690
691
|
follow: true
|
691
692
|
|
692
|
-
personalization: false
|
693
|
-
exclude_from_search: false
|
694
|
-
series: false
|
695
|
-
|
696
693
|
toc: true
|
697
694
|
fab_menu_id: default
|
698
695
|
scrollbar: false
|
696
|
+
personalization: false
|
697
|
+
exclude_from_search: false
|
698
|
+
page_navigation: true
|
699
|
+
series: false
|
699
700
|
|
700
701
|
resource_options:
|
701
702
|
- toccer:
|
@@ -727,18 +728,17 @@ defaults:
|
|
727
728
|
index: true
|
728
729
|
follow: true
|
729
730
|
|
730
|
-
personalization: false
|
731
|
-
exclude_from_search: false
|
732
|
-
|
733
731
|
toc: true
|
734
732
|
fab_menu_id: default
|
735
733
|
scrollbar: false
|
734
|
+
personalization: false
|
735
|
+
exclude_from_search: false
|
736
|
+
page_navigation: true
|
736
737
|
|
737
738
|
resource_options:
|
738
739
|
- toccer:
|
739
740
|
collapseDepth: 3
|
740
741
|
|
741
|
-
|
742
742
|
# ==============================================================================
|
743
743
|
# 7. LAYOUT configuration
|
744
744
|
#
|