j1-template 2020.0.1 → 2020.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +22 -18
  3. data/_includes/themes/j1/layouts/content_generator_collection.html +15 -12
  4. data/_includes/themes/j1/layouts/content_generator_page.html +16 -17
  5. data/_includes/themes/j1/layouts/content_generator_post.html +19 -24
  6. data/_includes/themes/j1/modules/navigator/generator.html +62 -40
  7. data/assets/data/menu.html +6 -5
  8. data/assets/data/mmenu.html +455 -0
  9. data/assets/data/{sidebar.html → mmenu_sidebar.html} +24 -18
  10. data/assets/data/mmenu_toc.html +45 -0
  11. data/assets/data/quicklinks.html +9 -4
  12. data/assets/data/ssm.html +227 -0
  13. data/assets/error_pages/HTTP204.html +3 -3
  14. data/assets/themes/j1/core/css/bootstrap.css +116 -93
  15. data/assets/themes/j1/core/css/bootstrap.min.css +4 -4
  16. data/assets/themes/j1/core/css/globals.css +1 -1
  17. data/assets/themes/j1/core/css/theme_extensions.css +186 -96
  18. data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
  19. data/assets/themes/j1/core/css/uno.css +186 -96
  20. data/assets/themes/j1/core/css/uno.min.css +1 -1
  21. data/assets/themes/j1/core/css/vendor.css +130 -104
  22. data/assets/themes/j1/core/css/vendor.min.css +4 -4
  23. data/assets/themes/j1/core/js/template.js +296 -24
  24. data/assets/themes/j1/core/js/template.js.map +1 -1
  25. data/assets/themes/j1/core/js/template.min.js +1 -1
  26. data/lib/j1/version.rb +1 -1
  27. data/lib/j1_app/j1_auth_manager/auth_manager.rb +21 -17
  28. data/lib/j1_app/j1_auth_manager/config.rb +13 -9
  29. data/lib/j1_app/j1_site_manager/static_site.rb +1 -1
  30. data/lib/starter_web/Gemfile +2 -2
  31. data/lib/starter_web/_config.yml +12 -139
  32. data/lib/starter_web/_data/modules/authentication.yml +1 -1
  33. data/lib/starter_web/_data/modules/defaults/navigator.yml +25 -24
  34. data/lib/starter_web/_data/modules/defaults/ssm.yml +50 -0
  35. data/lib/starter_web/_data/modules/defaults/toccer.yml +14 -15
  36. data/lib/starter_web/_data/modules/navigator.yml +164 -97
  37. data/lib/starter_web/_data/modules/ssm.yml +133 -0
  38. data/lib/starter_web/_data/modules/toccer.yml +20 -62
  39. data/lib/starter_web/_data/resources.yml +74 -51
  40. data/lib/starter_web/_data/template_settings.yml +13 -13
  41. data/lib/starter_web/_plugins/uglify.rb +41 -0
  42. data/lib/starter_web/apps/public/{cc → cc/cc.yml} +0 -0
  43. data/lib/starter_web/apps/public/cc/index.adoc +107 -0
  44. data/lib/starter_web/assets/images/modules/icons/j1/{j1..ico → j1.ico} +0 -0
  45. data/lib/starter_web/assets/themes/j1/adapter/js/algolia.js +321 -0
  46. data/lib/starter_web/assets/themes/j1/adapter/js/attic.js +4 -4
  47. data/lib/starter_web/assets/themes/j1/adapter/js/carousel.js +3 -3
  48. data/lib/starter_web/assets/themes/j1/adapter/js/framer.js +3 -3
  49. data/lib/starter_web/assets/themes/j1/adapter/js/j1.js +19 -60
  50. data/lib/starter_web/assets/themes/j1/adapter/js/mmenu.js +452 -0
  51. data/lib/starter_web/assets/themes/j1/adapter/js/navigator.js +50 -50
  52. data/lib/starter_web/assets/themes/j1/adapter/js/ssm.js +498 -0
  53. data/lib/starter_web/assets/themes/j1/adapter/js/themer.js +1 -1
  54. data/lib/starter_web/assets/themes/j1/adapter/js/toccer.js +40 -43
  55. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.css +384 -0
  56. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.min.css +384 -0
  57. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.css +153 -0
  58. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.min.css +153 -0
  59. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.js +11 -0
  60. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.min.js +11 -0
  61. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.js +118 -0
  62. data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.min.js +118 -0
  63. data/lib/starter_web/collections/posts/public/{jekyll → featured}/_posts/2018-05-01-confusion-about-base-url.adoc +0 -0
  64. data/lib/starter_web/package.json +1 -1
  65. data/lib/starter_web/pages/public/learn/floating_sidebar.adoc +199 -0
  66. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +2 -2
  67. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +2 -2
  68. data/lib/starter_web/pages/public/learn/whats_up.adoc +12 -11
  69. data/lib/starter_web/pages/public/legal/en/500_support.adoc +1 -1
  70. data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/200_rotate.asciidoc +1 -1
  71. data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +2 -3
  72. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +3 -3
  73. data/lib/starter_web/pages/public/site_search.adoc +196 -0
  74. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  75. data/lib/starter_web/utilsrv/package.json +1 -1
  76. metadata +26 -13
  77. data/assets/themes/j1/core/css/globals.scss +0 -28
  78. data/lib/starter_web/_data/modules/back2top.yml +0 -40
  79. data/lib/starter_web/_data/modules/defaults/back2top.yml +0 -147
  80. data/lib/starter_web/_data/modules/defaults/smooth_scroll.yml +0 -169
  81. data/lib/starter_web/_data/modules/smooth_scroll.yml +0 -169
  82. data/lib/starter_web/assets/themes/j1/adapter/js/back2top.js +0 -227
  83. data/lib/starter_web/assets/themes/j1/adapter/js/scroller.js +0 -177
@@ -1,227 +0,0 @@
1
- ---
2
- regenerate: false
3
- ---
4
-
5
- {% capture cache %}
6
-
7
- {% comment %}
8
- # -----------------------------------------------------------------------------
9
- # ~/assets/themes/j1/adapter/js/back2top.js
10
- # Liquid template to adapt Back2Top Core functions
11
- #
12
- # Product/Info:
13
- # https://jekyll.one
14
- # http://dynamicdrive.com/dynamicindex3/scrolltop.htm
15
- #
16
- # Copyright (C) 2020 Juergen Adams
17
- # Copyright (C) 2009 dynamicdrive.com
18
- #
19
- # J1 Template is licensed under the MIT License.
20
- # For details, see https://jekyll.one
21
- # -----------------------------------------------------------------------------
22
- # Test data:
23
- # {{ liquid_var | debug }}
24
- # -----------------------------------------------------------------------------
25
- {% endcomment %}
26
-
27
- {% comment %} Liquid procedures
28
- -------------------------------------------------------------------------------- {% endcomment %}
29
- {% capture select_color %}themes/{{site.template.name}}/procedures/global/select_color.proc{% endcapture %}
30
-
31
- {% comment %} Set global settings
32
- -------------------------------------------------------------------------------- {% endcomment %}
33
- {% assign environment = site.environment %}
34
- {% assign template_version = site.version %}
35
-
36
-
37
- {% comment %} Process YML config data
38
- ================================================================================ {% endcomment %}
39
-
40
- {% comment %} Set config files
41
- -------------------------------------------------------------------------------- {% endcomment %}
42
- {% assign template_config = site.data.template_settings %}
43
- {% assign blocks = site.data.blocks %}
44
- {% assign modules = site.data.modules %}
45
-
46
- {% comment %} Set config data
47
- -------------------------------------------------------------------------------- {% endcomment %}
48
- {% assign back2top_defaults = modules.defaults.back2top.defaults %}
49
- {% assign back2top_settings = modules.back2top.settings %}
50
-
51
- {% comment %} Set config options
52
- -------------------------------------------------------------------------------- {% endcomment %}
53
- {% assign back2top_options = back2top_defaults | merge: back2top_settings %}
54
- {% assign active_color = back2top_options.active_color %}
55
- {% assign background_color = back2top_options.background_color %}
56
- {% assign back2top_icon = back2top_options.icon %}
57
- {% assign color = back2top_options.color %}
58
-
59
- {% if back2top_options.icon_family == 'MDI' %}
60
- {% assign back2top_icon_family = 'Material Design Icons' %}
61
- {% elsif moduleOptions.icon_family == 'FA' %}
62
- {% assign back2top_icon_family = 'FontAweSome' %}
63
- {% else %}
64
- {% assign back2top_icon_family = 'Material Design Icons' %}
65
- {% endif %}
66
-
67
-
68
- /*
69
- # -----------------------------------------------------------------------------
70
- # ~/assets/themes/j1/adapter/js/back2top.js
71
- # JS Adapter for J1 Back2Top
72
- #
73
- # Product/Info:
74
- # https://jekyll.one
75
- # http://dynamicdrive.com/dynamicindex3/scrolltop.htm
76
- #
77
- # Copyright (C) 2020 Juergen Adams
78
- # Copyright (C) 2009 dynamicdrive.com
79
- #
80
- # J1 Template is licensed under the MIT License.
81
- # For details, see https://jekyll.one
82
- #
83
- # -----------------------------------------------------------------------------
84
- # Adapter generated: {{site.time}}
85
- # -----------------------------------------------------------------------------
86
- */
87
- 'use strict';
88
-
89
- {% comment %} Main
90
- -------------------------------------------------------------------------------- {% endcomment %}
91
- j1.adapter['back2top'] = (function (j1, window) {
92
-
93
- {% comment %} Set global variables
94
- ------------------------------------------------------------------------------ {% endcomment %}
95
- var environment = '{{environment}}';
96
- var moduleOptions = {};
97
- var _this;
98
- var logger;
99
- var logText;
100
-
101
- // ---------------------------------------------------------------------------
102
- // Helper functions
103
- // ---------------------------------------------------------------------------
104
-
105
- // ---------------------------------------------------------------------------
106
- // Main object
107
- // ---------------------------------------------------------------------------
108
- return {
109
-
110
- // -------------------------------------------------------------------------
111
- // Initializer
112
- // -------------------------------------------------------------------------
113
- init: function (options) {
114
- // initialize state flag
115
- j1.adapter.back2top.state = 'pending';
116
-
117
- // -----------------------------------------------------------------------
118
- // Default module settings
119
- // -----------------------------------------------------------------------
120
- var settings = $.extend({
121
- module_name: 'j1.adapter.back2top',
122
- generated: '{{site.time}}'
123
- }, options);
124
-
125
- {% comment %} Set global variables
126
- -------------------------------------------------------------------------- {% endcomment %}
127
- _this = j1.adapter.back2top;
128
- logger = log4javascript.getLogger('j1.adapter.back2top');
129
-
130
- {% comment %} Load module config from yml data
131
- -------------------------------------------------------------------------- {% endcomment %}
132
- // Load module DEFAULTS|CONFIG
133
- moduleOptions = $.extend({}, {{back2top_options | replace: '=>', ':' | replace: 'nil', '""'}});
134
-
135
- if (typeof settings !== 'undefined') {
136
- moduleOptions = j1.mergeData(moduleOptions, settings);
137
- }
138
-
139
- if (moduleOptions.enabled) {
140
- _this.setState('started');
141
- logger.info('state: ' + _this.getState());
142
- logger.info('module is being initialized');
143
-
144
- _this.setCss();
145
- j1.core.back2top.init(moduleOptions);
146
-
147
- _this.setState('finished');
148
- logger.info('state: ' + _this.getState());
149
- } else {
150
- _this.setState('finished');
151
- logger.info('state: ' + _this.getState());
152
- logger.warn('module back2top disabled');
153
- }
154
-
155
- return true;
156
- }, // END init
157
-
158
- // -------------------------------------------------------------------------
159
- // Set dynamic styles for Back2Top
160
- // -------------------------------------------------------------------------
161
- setCss: function () {
162
- var bg_primary = j1.getStyleValue('bg-primary', 'background-color');
163
-
164
- var dependencies_met_back2top_adapter = setInterval(function() {
165
- if (typeof j1.colors !== 'undefined') {
166
- $('head').append('<style>#topcontrol { background: ' + j1.colors['{{background_color}}'] + '; }</style>');
167
- // $('head').append('<style>#topcontrol:hover { background: ' + j1.colors['{{active_color}}'] + '; }</style>');
168
- $('head').append('<style>#topcontrol:hover { background: ' +bg_primary+ '; }</style>');
169
- $('head').append('<style>#topcontrol:after { content: "\\{{back2top_icon}}"; font-family: {{back2top_icon_family}}; }</style>');
170
- // clear interval checking
171
- clearInterval(dependencies_met_back2top_adapter);
172
- } // END 'getState'
173
- }, 50); // END 'dataLoaded'
174
-
175
- return true;
176
- }, // END setCss
177
-
178
- // -------------------------------------------------------------------------
179
- // messageHandler: MessageHandler for J1 CookieConsent module
180
- // Manage messages send from other J1 modules
181
- // -------------------------------------------------------------------------
182
- messageHandler: function (sender, message) {
183
- // var json_message = JSON.stringify(message, undefined, 2);
184
- var json_message = JSON.stringify(message);
185
-
186
- logText = 'received message from ' + sender + ': ' + json_message;
187
- logger.debug(logText);
188
-
189
- // -----------------------------------------------------------------------
190
- // Process commands|actions
191
- // -----------------------------------------------------------------------
192
- if (message.type === 'command' && message.action === 'module_initialized') {
193
- //
194
- // Place handling of command|action here
195
- //
196
- logger.info(message.text);
197
- }
198
-
199
- //
200
- // Place handling of other command|action here
201
- //
202
-
203
- return true;
204
- }, // END messageHandler
205
-
206
- // -------------------------------------------------------------------------
207
- // setState
208
- // Set the current (processing) state of the module
209
- // -------------------------------------------------------------------------
210
- setState: function (stat) {
211
- j1.adapter.scroller.state = stat;
212
- }, // END setState
213
-
214
- // -------------------------------------------------------------------------
215
- // getState
216
- // Returns the current (processing) state of the module
217
- // -------------------------------------------------------------------------
218
- getState: function () {
219
- return j1.adapter.scroller.state;
220
- } // END state
221
-
222
- }; // END return
223
- })(j1, window);
224
-
225
- {% endcapture %}
226
- {{ cache | strip_empty_lines }}
227
- {% assign cache = nil %}
@@ -1,177 +0,0 @@
1
- ---
2
- regenerate: false
3
- ---
4
-
5
- {% capture cache %}
6
-
7
- {% comment %}
8
- # -----------------------------------------------------------------------------
9
- # ~/assets/themes/j1/adapter/js/smooth_scroll.js
10
- # Liquid template to adapt SmoothScroll Core functions
11
- #
12
- # Product/Info:
13
- # http://jekyll.one
14
- #
15
- # Copyright (C) 2020 Juergen Adams
16
- #
17
- # J1 Template is licensed under the MIT License.
18
- # For details, see https://jekyll.one
19
- # -----------------------------------------------------------------------------
20
- # Test data:
21
- # {{ liquid_var | debug }}
22
- # -----------------------------------------------------------------------------
23
- {% endcomment %}
24
-
25
- {% comment %} Liquid procedures
26
- -------------------------------------------------------------------------------- {% endcomment %}
27
-
28
- {% comment %} Set global settings
29
- -------------------------------------------------------------------------------- {% endcomment %}
30
- {% assign environment = site.environment %}
31
- {% assign template_version = site.version %}
32
-
33
- {% comment %} Process YML config data
34
- ================================================================================ {% endcomment %}
35
-
36
- {% comment %} Set config files
37
- -------------------------------------------------------------------------------- {% endcomment %}
38
- {% assign site_config = site %}
39
- {% assign template_config = site.data.template_settings %}
40
- {% assign blocks = site.data.blocks %}
41
- {% assign modules = site.data.modules %}
42
-
43
- {% comment %} Set config data
44
- -------------------------------------------------------------------------------- {% endcomment %}
45
- {% assign smooth_scroll_defaults = modules.defaults.smooth_scroll.defaults %}
46
- {% assign smooth_scroll_settings = modules.smooth_scroll.settings %}
47
-
48
- {% comment %} Set config options
49
- -------------------------------------------------------------------------------- {% endcomment %}
50
- {% assign smooth_scroll_options = smooth_scroll_defaults | merge: smooth_scroll_settings %}
51
-
52
- /*
53
- # -----------------------------------------------------------------------------
54
- # ~/assets/themes/j1/adapter/js/smooth_scroll.js
55
- # JS Adapter for J1 Scroller (SmoothScroll)
56
- #
57
- # Product/Info:
58
- # http://jekyll.one
59
- # https://github.com/galambalazs/smoothscroll-for-websites
60
- #
61
- # Copyright (C) 2020 Juergen Adams
62
- # Copyright (C) 2010-2016 Balazs Galambosi
63
- #
64
- # J1 Template is licensed under the MIT License.
65
- # For details, see https://jekyll.one
66
- # Smooth Scroll is licensed under the MIT License.
67
- # For details, https://github.com/galambalazs/smoothscroll-for-websites
68
- # -----------------------------------------------------------------------------
69
- # Adapter generated: {{site.time}}
70
- # -----------------------------------------------------------------------------
71
- */
72
- 'use strict';
73
-
74
- {% comment %} Main
75
- -------------------------------------------------------------------------------- {% endcomment %}
76
- j1.adapter['scroller'] = (function (j1, window) {
77
-
78
- {% comment %} Set global variables
79
- ------------------------------------------------------------------------------ {% endcomment %}
80
- var environment = '{{environment}}';
81
- var moduleOptions = {};
82
- var _this;
83
- var logger;
84
- var logText;
85
-
86
- // ---------------------------------------------------------------------------
87
- // Main object
88
- // ---------------------------------------------------------------------------
89
- return {
90
-
91
- // -------------------------------------------------------------------------
92
- // Initializer
93
- // -------------------------------------------------------------------------
94
- init: function () {
95
- // initialize state flag
96
- j1.adapter.scroller.state = 'pending';
97
-
98
- {% comment %} Set global variables
99
- -------------------------------------------------------------------------- {% endcomment %}
100
- _this = j1.adapter.scroller;
101
- logger = log4javascript.getLogger('j1.adapter.scroller');
102
-
103
- _this.setState('started');
104
- logger.info('state: ' + _this.getState());
105
- logger.info('Module is being initialized');
106
-
107
- SmoothScroll({
108
- frameRate: {{ smooth_scroll_options.frameRate | json }},
109
- animationTime: {{ smooth_scroll_options.animationTime | json }},
110
- stepSize: {{ smooth_scroll_options.stepSize | json }},
111
- accelerationDelta: {{ smooth_scroll_options.accelerationDelta | json }},
112
- accelerationMax: {{ smooth_scroll_options.accelerationMax | json }},
113
- keyboardSupport: {{ smooth_scroll_options.keyboardSupport | json }},
114
- arrowScroll: {{ smooth_scroll_options.arrowScroll | json }},
115
- pulseAlgorithm: {{ smooth_scroll_options.pulseAlgorithm | json }},
116
- pulseScale: {{ smooth_scroll_options.pulseScale | json }},
117
- pulseNormalize: {{ smooth_scroll_options.pulseNormalize | json }},
118
- touchpadSupport: {{ smooth_scroll_options.touchpadSupport | json }},
119
- fixedBackground: {{ smooth_scroll_options.fixedBackground | json }},
120
- excluded: {{ smooth_scroll_options.excluded | json }},
121
- });
122
-
123
- _this.setState('finished');
124
- logger.info('state: ' + _this.getState());
125
-
126
- return true;
127
- }, // END init
128
-
129
- // -------------------------------------------------------------------------
130
- // messageHandler: MessageHandler for J1 NAV module
131
- // Manage messages (paylods) send from other J1 modules
132
- // -------------------------------------------------------------------------
133
- messageHandler: function (sender, message) {
134
- var json_message = JSON.stringify(message, undefined, 2);
135
-
136
- logText = 'received message from ' + sender + ': ' + json_message;
137
- logger.debug(logText);
138
-
139
- // -----------------------------------------------------------------------
140
- // Process commands|actions
141
- // -----------------------------------------------------------------------
142
- if (message.type === 'command' && message.action === 'module_initialized') {
143
- //
144
- // Place handling of command|action here
145
- //
146
- logger.info(message.text);
147
- }
148
-
149
- //
150
- // Place handling of other command|action here
151
- //
152
-
153
- return true;
154
- }, // END messageHandler
155
-
156
- // -------------------------------------------------------------------------
157
- // setState
158
- // Set the current (processing) state of the module
159
- // -------------------------------------------------------------------------
160
- setState: function (stat) {
161
- j1.adapter.scroller.state = stat;
162
- }, // END setState
163
-
164
- // -------------------------------------------------------------------------
165
- // getState
166
- // Returns the current (processing) state of the module
167
- // -------------------------------------------------------------------------
168
- getState: function () {
169
- return j1.adapter.scroller.state;
170
- } // END state
171
-
172
- }; // END return
173
- })(j1, window);
174
-
175
- {% endcapture %}
176
- {{ cache | strip_empty_lines }}
177
- {% assign cache = nil %}