j1_template 2019.4.10 → 2019.4.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/lib/j1/version.rb +1 -1
  3. data/lib/starter_web/Gemfile +1 -1
  4. data/lib/starter_web/_cc_test_data/_config.yml +1 -1
  5. data/lib/starter_web/_config.yml +1 -1
  6. data/lib/starter_web/assets/themes/j1/core/js/j1.js +9 -1
  7. data/lib/starter_web/package.json +1 -1
  8. data/lib/starter_web/pages/public/start/downloads/quickstarter/100_linux_starter.adoc +1 -1
  9. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  10. data/lib/starter_web/utilsrv/package.json +1 -1
  11. metadata +15 -50
  12. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.before_merge_added.rb +0 -1267
  13. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.new.rb +0 -1121
  14. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.no_cookie.mgmt.rb +0 -1130
  15. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.ok.rb +0 -1130
  16. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.org.2.rb +0 -1086
  17. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.org.rb +0 -1548
  18. data/lib/j1_app/j1_auth_manager/_unused/auth_manager.update.web_cookie.rb +0 -1333
  19. data/lib/j1_app/j1_auth_manager/_unused/auth_manager_ui.2.erb +0 -198
  20. data/lib/j1_app/j1_auth_manager/_unused/auth_manager_ui.additional_inits.erb +0 -254
  21. data/lib/j1_app/j1_auth_manager/_unused/auth_manager_ui.manage.cookies.erb +0 -255
  22. data/lib/starter_web/assets/_data/_temp/_banner.html +0 -421
  23. data/lib/starter_web/assets/_data/_temp/_panel.html +0 -585
  24. data/lib/starter_web/assets/_data/_temp/banner.case.snippet.html.asciidoc +0 -91
  25. data/lib/starter_web/assets/_data/_temp/banner.new.html.asciidoc +0 -559
  26. data/lib/starter_web/assets/_data/_temp/banner.with.defaults.html.asciidoc +0 -547
  27. data/lib/starter_web/assets/_data/_temp/footer.html.new +0 -228
  28. data/lib/starter_web/assets/_data/_temp/footer.html.org +0 -234
  29. data/lib/starter_web/assets/_data/_temp/footer.old.html +0 -231
  30. data/lib/starter_web/assets/_data/_temp/footer_new.html +0 -226
  31. data/lib/starter_web/assets/_data/_temp/footer_old.html +0 -222
  32. data/lib/starter_web/assets/_data/_temp/menu.old.html +0 -462
  33. data/lib/starter_web/assets/_data/_temp/panel.new.html +0 -560
  34. data/lib/starter_web/assets/_data/_temp/panel.old.html +0 -597
  35. data/lib/starter_web/assets/_data/_temp/panel.org.html +0 -597
  36. data/lib/starter_web/assets/_data/animate.json +0 -120
  37. data/lib/starter_web/assets/_data/ascii_code_table.json +0 -1794
  38. data/lib/starter_web/assets/_data/authclient.html +0 -365
  39. data/lib/starter_web/assets/_data/banner.html +0 -431
  40. data/lib/starter_web/assets/_data/carousel.json +0 -110
  41. data/lib/starter_web/assets/_data/colors.json +0 -43
  42. data/lib/starter_web/assets/_data/cookie_consent.html +0 -225
  43. data/lib/starter_web/assets/_data/countries.json +0 -974
  44. data/lib/starter_web/assets/_data/font_sizes.json +0 -43
  45. data/lib/starter_web/assets/_data/fontawesome_icons.json +0 -5525
  46. data/lib/starter_web/assets/_data/footer.html +0 -239
  47. data/lib/starter_web/assets/_data/galleries.json +0 -160
  48. data/lib/starter_web/assets/_data/mdi_icons.json +0 -14641
  49. data/lib/starter_web/assets/_data/menu.html +0 -469
  50. data/lib/starter_web/assets/_data/messages.yml +0 -130
  51. data/lib/starter_web/assets/_data/objects.json +0 -458
  52. data/lib/starter_web/assets/_data/panel.html +0 -501
  53. data/lib/starter_web/assets/_data/panel.new.html +0 -498
  54. data/lib/starter_web/assets/_data/quicklinks.html +0 -178
  55. data/lib/starter_web/assets/_data/search.yml +0 -131
  56. data/lib/starter_web/assets/_data/sidebar.html +0 -261
  57. data/lib/starter_web/assets/_data/themes.json +0 -59
  58. data/lib/starter_web/assets/_data/twa_v1.json +0 -6978
  59. data/lib/starter_web/assets/_data/twa_v2.json +0 -12812
  60. data/lib/starter_web/assets/_data/webhook.html +0 -190
@@ -1,469 +0,0 @@
1
- ---
2
- regenerate: true
3
- ---
4
-
5
- {% capture cache %}
6
-
7
- {% comment %}
8
- # -----------------------------------------------------------------------------
9
- # ~/assets/data/menu.html
10
- # Liquid procedure to generate HTML portion of the main menu bar
11
- # NOTE: Loaded dynamically by J1 NAV Manager module (AJAX)
12
- #
13
- # Product/Info:
14
- # https://jekyll.one
15
- #
16
- # Copyright (C) 2019 Juergen Adams
17
- #
18
- # J1 Template is licensed under the MIT License.
19
- # See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
20
- # -----------------------------------------------------------------------------
21
- # Test data:
22
- # {{ variable | debug }}
23
- # -----------------------------------------------------------------------------
24
- {% endcomment %}
25
-
26
- {% comment %} Liquid procedures
27
- -------------------------------------------------------------------------------- {% endcomment %}
28
- {% capture select_color %}themes/{{site.template.name}}/procedures/global/select_color.proc{% endcapture %}
29
- {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
30
-
31
-
32
- {% comment %} Liquid var initialization
33
- -------------------------------------------------------------------------------- {% endcomment %}
34
-
35
- {% comment %} Set config files
36
- -------------------------------------------------------------------------------- {% endcomment %}
37
- {% assign site_config = site %}
38
- {% assign template_config = site.data.template_settings %}
39
- {% assign modules = site.data.modules %}
40
-
41
- {% comment %} Set config data
42
- -------------------------------------------------------------------------------- {% endcomment %}
43
- {% assign navigator_settings = modules.navigator.settings %}
44
- {% assign navigator_defaults = modules.defaults.navigator.defaults %}
45
- {% assign navigator_menu_config = modules.navigator_menu %}
46
-
47
- {% assign themer_defaults = modules.defaults.themer.defaults %}
48
- {% assign themer_settings = modules.themer.settings %}
49
-
50
- {% assign nav_bar_defaults = navigator_defaults.nav_bar %}
51
- {% assign nav_bar_settings = navigator_settings.nav_bar %}
52
- {% assign nav_menu_defaults = navigator_defaults.nav_menu %}
53
- {% assign nav_menu_settings = navigator_settings.nav_menu %}
54
-
55
- {% comment %} Set config options
56
- -------------------------------------------------------------------------------- {% endcomment %}
57
- {% assign themer_options = themer_defaults | merge: themer_settings %}
58
- {% assign nav_bar_options = nav_bar_defaults | merge: nav_bar_settings %}
59
- {% assign nav_menu_options = nav_menu_defaults | merge: nav_menu_settings %}
60
- {% assign theme_preview = themer_options.preview_page %}
61
- {% assign nav_menu_id = nav_menu_options.id %}
62
-
63
- {% assign ext = '' %}
64
- {% if site.permalink == 'none' %}
65
- {% assign ext = '.html' %}
66
- {% endif %}
67
-
68
- <!-- [DEBUG ] [j1.modules.navigator.menu.html ] [detect bs type] -->
69
- {% assign bs_type = 'bmd4' %}
70
- {% if navigator_settings.bs_type == 'bs4' %}
71
- {% assign bs_type = 'bs4' %}
72
- {% endif %}
73
-
74
- {% if bs_type == 'bmd4' %}
75
- {% assign dropdown_collapse = 'collapse' %}
76
- {% elsif bs_type == 'bs4' %}
77
- {% assign dropdown_collapse = 'fake-class collapse' %}
78
- {% endif %}
79
-
80
- <!-- [DEBUG ] [j1.modules.navigator.menu.html ] [bs type detected: {{bs_type}}] -->
81
-
82
- {% comment %} Set navBarOptions
83
- -------------------------------------------------------------------------------- {% endcomment %}
84
- {% assign nav_bar_position = nav_bar_options.position %}
85
-
86
- {% comment %} Set navMenuOptions
87
- -------------------------------------------------------------------------------- {% endcomment %}
88
- {% assign nav_menu_animation = nav_menu_options.dropdown_animate %}
89
- {% if nav_menu_animation %}
90
- {% assign animate_in = nav_menu_options.dropdown_animate_in %}
91
- {% assign animate_out = nav_menu_options.dropdown_animate_out %}
92
- {% endif %}
93
-
94
- {% comment %} Set base nav features
95
- -------------------------------------------------------------------------------- {% endcomment %}
96
- {% capture nav_menu_position %}dropdown-menu-{{nav_bar_position}}{% endcapture %}
97
- {% unless nav_menu_animation %} {% assign nav_menu_animation = false %} {% endunless %}
98
-
99
- <!-- [DEBUG ] [j1.modules.navigator.menu.html ] [initialize default menu properties] -->
100
- {% if nav_menu_options.raised_level %}
101
- {% assign raised_level = nav_menu_options.raised_level %}
102
- {% else %}
103
- {% assign raised_level = 0 %}
104
- {% endif %}
105
-
106
- {% comment %} Set base icons and sizes
107
- -------------------------------------------------------------------------------- {% endcomment %}
108
- <!-- [DEBUG ] [j1.modules.navigator.menu.html ] [initialize default menu icon properties] -->
109
- {% assign nav_menu_icon_family = nav_menu_options.icon_family %}
110
- {% assign nav_menu_icon_style = nav_menu_options.icon_style %}
111
- {% assign nav_menu_icon_color = nav_menu_options.icon_color %}
112
- {% assign nav_menu_icon_size = nav_menu_options.icon_size %}
113
-
114
- {% assign icon_family = nav_menu_icon_family | strip | downcase %}
115
-
116
- {% if icon_family == 'fontawesome' or icon_family == 'fontawesome5' %}
117
- {% assign nav_menu_icon_family = 'fa' %}
118
- {% assign nav_menu_icon_style = nav_menu_icon_style %}
119
- {% elsif icon_family == 'mdi' %}
120
- {% assign nav_menu_icon_family = 'mdi' %}
121
- {% assign nav_menu_icon_style = nav_menu_icon_style %}
122
- {% else %}
123
- {% assign nav_menu_icon_family = 'mdi' %}
124
- {% assign nav_menu_icon_style = nav_menu_icon_style %}
125
- {% endif %}
126
-
127
- {% include {{select_color}} color=nav_menu_icon_color fallback="#9E9E9E" %}
128
- {% assign nav_menu_icon_color = color %}
129
-
130
- {% include {{select_icon_size}} family=nav_menu_icon_family size=nav_menu_icon_size %}
131
- {% assign nav_menu_icon_size = size %}
132
-
133
-
134
- {% comment %} Main
135
- -------------------------------------------------------------------------------- {% endcomment %}
136
-
137
- <!-- [DEBUG ] [j1.modules.navigator.menu.html ] [collect all nav links for the navigation bar (navbar)] -->
138
- <!-- div id="{{nav_menu_id}}" class="{{dropdown_collapse}}" -->
139
- <!-- div class="{{dropdown_collapse}}" -->
140
- {% if nav_menu_animation %}
141
- <ul class="nav navbar-nav navigator navbar-{{nav_bar_position}}" data-in="{{animate_in}}" data-out="{{animate_out}}">
142
- {% else %}
143
- <ul class="nav navbar-nav navigator navbar-{{nav_bar_position}}" data-in="fadeIn" data-out="fadeOut">
144
- {% endif %}
145
-
146
- {% for menu in navigator_menu_config %}
147
-
148
- {% comment %} Identify the menu (item) type
149
- ---------------------------------------------------------------------------- {% endcomment %}
150
-
151
- {% if menu.sublevel %}
152
- {% assign menu_type = 'sublevel_menu' %}
153
- {% elsif menu.megamenu %}
154
- {% assign menu_type = 'mega_menu' %}
155
- {% elsif menu.auth_client %}
156
- {% assign menu_type = 'auth_client' %}
157
- {% elsif menu.theme_select %}
158
- {% assign menu_type = 'theme_select' %}
159
- {% elsif menu.sublevel == null and menu.megamenu == null and menu.login_menu == null and menu.theme_select == null %}
160
- {% assign menu_type = 'top_level_item' %}
161
- {% endif %}
162
-
163
-
164
- {% comment %} Process all menu sections
165
- ---------------------------------------------------------------------------- {% endcomment %}
166
-
167
- {% case menu_type %}
168
-
169
- {% comment %} Collect items having a SUB menue
170
- ---------------------------------------------------------------------------- {% endcomment %}
171
- {% when 'sublevel_menu' %}
172
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [found menu-type: sub-menue] -->
173
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [submenu level 1 detected] -->
174
- <li class="dropdown nav-item">
175
- {% if menu.icon == null %}
176
- <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">{{ menu.item }}</a>
177
- {% else %}
178
- <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"> <i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{menu.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i>{{ menu.item }}</a>
179
- {% endif %}
180
-
181
- <!-- jadams, 2017-11-24: (3) ul class="dropdown-menu {{nav_menu_position}} raised-z{{raised_level}}" style="opacity: 1; display: none;" -->
182
- <ul class="dropdown-menu {{nav_menu_position}} raised-z{{raised_level}}" style="display: none;">
183
- {% for level_1 in menu.sublevel %}
184
- {% if level_1.dropdown == null %}
185
- {% if level_1.icon == null %}
186
- {% if level_1.target == null %}
187
- <li class="dropdown-item"><a href="{{ level_1.href }}{{ext}}">{{ level_1.title }}</a></li>
188
- {% else %}
189
- <li class="dropdown-item"><a href="{{ level_1.href }}{{ext}}" target="{{ level_1.target }}">{{ level_1.title }}</a></li>
190
- {% endif %}
191
- {% else %}
192
- {% if level_1.target == null %}
193
- <li class="dropdown-item"><a href="{{ level_1.href }}{{ext}}"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{level_1.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{ level_1.title }}</a></li>
194
- {% else %}
195
- <li class="dropdown-item"><a href="{{ level_1.href }}{{ext}}" target="{{ level_1.target }}"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{level_1.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{ level_1.title }}</a></li>
196
- {% endif %}
197
- {% endif %}
198
- {% endif %}
199
- {% if level_1.divider %} <li class="divider"></li> {% endif %}
200
- {% if level_1.dropdown %}
201
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [submenu level 2 (dropdown) detected] -->
202
- <li class="dropdown nav-item nav-sub-item">
203
- {% if level_1.icon == null %}
204
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ level_1.title }}</a>
205
- {% else %}
206
- <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{level_1.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{ level_1.title }}</a>
207
- {% endif %}
208
- <!-- jadams, 2017-11-24: (4) ul class="dropdown-menu {{nav_menu_position}} raised-z{{raised_level}}" style="opacity: 1;" -->
209
- <ul class="dropdown-menu {{nav_menu_position}} raised-z{{raised_level}}">
210
- {% for level_2 in level_1.dropdown %}
211
- {% if level_2.dropdown == null %}
212
- {% if level_2.icon == null %}
213
- {% if level_2.target == null %}
214
- <li class="dropdown-item"><a href="{{ level_2.href }}{{ext}}">{{ level_2.title }}</a></li>
215
- {% else %}
216
- <li class="dropdown-item"><a href="{{ level_2.href }}{{ext}}" target="{{ level_2.target }}">{{ level_2.title }}</a></li>
217
- {% endif %}
218
- {% else %}
219
- {% if level_2.target == null %}
220
- <li class="dropdown-item"><a href="{{ level_2.href }}{{ext}}"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{level_2.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{ level_2.title }}</a></li>
221
- {% else %}
222
- <li class="dropdown-item"><a href="{{ level_2.href }}{{ext}}" target="{{ level_2.target }}"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{level_2.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{ level_2.title }}</a></li>
223
- {% endif %}
224
- {% endif %}
225
- {% endif %}
226
- {% if level_2.divider %} <li class="divider"></li> {% endif %}
227
- {% if level_2.dropdown %}
228
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [submenu level 3 detected (last level supported)] -->
229
- <li class="dropdown nav-item nav-sub-item">
230
- {% if level_2.icon == null %}
231
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ level_2.title }}</a>
232
- {% else %}
233
- <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{level_2.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{ level_2.title }}</a>
234
- {% endif %}
235
- <!-- jadams, 2017-11-24: (5) ul class="dropdown-menu {{nav_menu_position}} raised-z{{raised_level}}" style="opacity: 1;" -->
236
- <ul class="dropdown-menu {{nav_menu_position}} raised-z{{raised_level}}">
237
- {% for level_3 in level_2.dropdown %}
238
- {% if level_2.icon == null %}
239
- {% if level_3.target == null %}
240
- <li class="dropdown-item"><a href="{{ level_3.href }}{{ext}}">{{ level_3.title }}</a></li>
241
- {% else %}
242
- <li class="dropdown-item"><a href="{{ level_3.href }}{{ext}}" target="{{ level_3.target }}">{{ level_3.title }}</a></li>
243
- {% endif %}
244
- {% else %}
245
- {% if level_3.target == null %}
246
- <li class="dropdown-item"><a href="{{ level_3.href }}{{ext}}"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{level_3.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{ level_3.title }}</a></li>
247
- {% else %}
248
- <li class="dropdown-item"><a href="{{ level_3.href }}{{ext}}" target="{{ level_3.target }}"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{level_3.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{ level_3.title }}</a></li>
249
- {% endif %}
250
- {% endif %}
251
- {% if level_3.divider %} <li class="divider"></li> {% endif %}
252
- {% endfor %} <!-- [INFO ] [j1.modules.navigator.menu.html ] [end processing: level 3] -->
253
- </ul>
254
- </li>
255
- {% endif %}
256
- {% endfor %} <!-- [INFO ] [j1.modules.navigator.menu.html ] [end processing: level 2] -->
257
- </ul>
258
- </li>
259
- {% endif %}
260
- {% endfor %} <!-- [INFO ] [j1.modules.navigator.menu.html ] [end processing: level 1] -->
261
- </ul>
262
- </li>
263
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [reset menu_type for next loop] -->
264
- {% assign menu_type = '' %}
265
-
266
-
267
- {% comment %} Collect items having a MEGA menu
268
- ---------------------------------------------------------------------------- {% endcomment %}
269
- {% when 'mega_menu' %}
270
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [found menu-type: megamenu-menue] -->
271
- <!-- calculate size of mm_columns -->
272
- {% assign columns = menu.megamenu | size %}
273
- {% assign columns_width_md = 12 | divided_by:columns %}
274
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [Calculated size of mm_columns: {{ columns_width_md }}] -->
275
-
276
- <li class="dropdown nav-item megamenu-fw">
277
- <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">{{menu.item}} </a>
278
- <ul class="dropdown-menu megamenu-content raised-z{{raised_level}}" style="max-height: {{nav_menu_options.max_height}}px; overflow-x: hidden; overflow-y: auto;" role="menu">
279
- <li>
280
- <div class="row">
281
- {% for megabox in menu.megamenu %}
282
- <div class="col-menu col-md-{{columns_width_md}} col-sm-6">
283
- {% if megabox.icon == null %}
284
- <div class="post-headline mt-2 mb-3">
285
- <h2 class="title" style="font-size:1.25em !important">{{megabox.title}}</h2>
286
- </div>
287
- {% else %}
288
- <div class="post-headline mt-2 mb-3">
289
- <h2 class="title" style="font-size:1.25em !important"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{megabox.icon}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{megabox.title}}</h2>
290
- </div>
291
- {% endif %}
292
- <div class="content">
293
- <ul class="menu-col">
294
- {% for links in megabox.column %}
295
- {% if links.icon == null %}
296
- <li class="dropdown-megamenu-item"><a href="{{links.href}}{{ext}}" target="{{ links.target }}">{{links.title}}</a></li>
297
- {% else %}
298
- <li class="dropdown-megamenu-item"><a href="{{links.href}}{{ext}}" target="{{ links.target }}"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{links.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{links.title}}</a></li>
299
- {% endif %}
300
- {% endfor %}
301
- </ul>
302
- </div>
303
- </div>
304
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [megamenu-menue: end megabox] -->
305
- {% endfor %}
306
- </div>
307
- </li>
308
- </ul>
309
- </li>
310
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [megamenu-menue: end mega-menu] -->
311
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [reset menu_type for next loop] -->
312
- {% assign menu_type = '' %}
313
-
314
-
315
- {% comment %}Collect TOP-LEVEL items (NO sub-menu)
316
- -------------------------------------------------------------------------- {% endcomment %}
317
- {% when 'top_level_item' %}
318
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [found menu-type: menu-top-level-only] -->
319
- {% if menu.icon == null %}
320
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [no icon for menu-item found -->
321
- {% if menu.target == null %}
322
- <li class="nav-item"> <a class="nav-link" href="{{ menu.href }}{{ext}}">{{ menu.item }}</a> </li>
323
- {% else %}
324
- <li class="nav-item"> <a class="nav-link" href="{{ menu.href }}{{ext}}" target="{{ menu.target }}">{{ menu.item }}</a> </li>
325
- {% endif %}
326
- {% elsif menu.icon %}
327
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [no icon for menu-item found -->
328
- {% if menu.target == null %}
329
- <li> <a class="nav-link" href="{{ menu.href }}{{ext}}"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{menu.icon}} {{nav_menu_icon_size}}" style="color:{{nav_menu_icon_color}}"></i> {{ menu.item }}</a> </li>
330
- {% else %}
331
- <li> <a class="nav-link" href="{{ menu.href }}{{ext}}" target="{{ menu.target }}"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{menu.icon}} {{nav_menu_icon_size}}" style="color:{{nav_menu_icon_color}}"></i> {{ menu.item }}</a> </li>
332
- {% endif %}
333
- {% else %}
334
- <!-- [FATAL ] [nav_menu.menu-top-level-only ] [processing menu item failed] -->
335
- {% endif %}
336
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [menu-top-level-only: end menu] -->
337
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [reset menu_type for next loop] -->
338
- {% assign menu_type = '' %}
339
-
340
-
341
- {% comment %} Collect items having a LOGIN menu
342
- ------------------------------------------------------------------------ {% endcomment %}
343
- {% when 'auth_client' %}
344
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [found menu-type: auth_client] -->
345
- <li id="menuBarSignInOut" class="dropdown nav-item">
346
- <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">{{menu.item}} </a>
347
-
348
- {% if nav_menu_animation %}
349
- <!-- jadams, 2017-11-24: (1) ul class="dropdown-menu {{nav_menu_position}} raised-z{{raised_level}}" style="opacity: 1; display: none;" -->
350
- <ul class="dropdown-menu {{nav_menu_position}} raised-z{{raised_level}}" style="display: none;">
351
- <!-- ul class="dropdown-menu data-in="{{nav_menu_animation}}" data-out="{{nav_menu_animation}}" -->
352
- {% else %}
353
- <!-- jadams, 2017-11-24: (2) ul class="dropdown-menu {{nav_menu_position}} raised-z{{raised_level}}" style="opacity: 1; display: none;" -->
354
- <ul class="dropdown-menu {{nav_menu_position}} raised-z{{raised_level}}" style="display: none;">
355
- {% endif %}
356
-
357
- {% assign item_found = 'false' %}
358
- {% for item in menu.auth_client %}
359
-
360
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [START: check signin] -->
361
- {% if item.mode == 'signin' %}
362
- <li class="dropdown-item">
363
- <a href="#" data-toggle="modal" data-target="#modalOmniSignIn"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{item.icon}} {{nav_menu_icon_size}}" style="color:{{nav_menu_icon_color}}"></i>{{item.title}}</a>
364
- </li>
365
- {% assign item_found = 'true' %}
366
- {% endif %}
367
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [END: check signin] -->
368
-
369
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [START: check signout] -->
370
- {% if item.mode == 'signout' %}
371
- <li class="dropdown-item">
372
- <a href="#" data-toggle="modal" data-target="#modalOmniSignOut"><i class="{{nav_menu_icon_style}} {{nav_menu_icon_family}}-{{item.icon}} {{nav_menu_icon_size}}" style="color:{{nav_menu_icon_color}}"></i>{{item.title}}</a>
373
- </li>
374
- {% assign item_found = 'true' %}
375
- {% endif %}
376
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [END: check signout] -->
377
-
378
- {% if item_found == 'false' %}
379
- <!-- [FATAL ] [j1.modules.navigator.menu.html ] [no valid menu item config found] -->
380
- <li class="dropdown-item">
381
- {% if item.title %}
382
- <a href="#" >Invalid: {{item.title}}</a>
383
- {% else %}
384
- <a href="#" >Item invalid</a>
385
- {% endif %}
386
- </li>
387
- {% endif %}
388
-
389
- {% endfor %}
390
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [login_menu: end menu] -->
391
- </ul>
392
- </li>
393
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [reset menu_type for next loop] -->
394
- {% assign menu_type = '' %}
395
-
396
- {% comment %} Collect items having a THEMES menu
397
- ---------------------------------------------------------------------- {% endcomment %}
398
- {% when 'theme_select' %}
399
- {% if themer_options.enabled %}
400
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [found menu-type: theme_select] -->
401
- <li class="dropdown nav-item">
402
- <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">{{menu.item}} </a>
403
- {% if nav_menu_animation %}
404
- <ul class="dropdown-menu raised-z{{raised_level}}">
405
- <!-- ul class="dropdown-menu data-in="{{nav_menu_animation}}" data-out="{{nav_menu_animation}}" -->
406
- {% else %}
407
- <ul class="dropdown-menu raised-z{{raised_level}}">
408
- {% endif %}
409
- {% assign item_found = 'false' %}
410
- {% for item in menu.theme_select %}
411
- <!-- check for J1 Theme selector -->
412
- {% if item.local_themes and item.local_themes == 'enabled' %}
413
- <li class="dropdown nav-item nav-sub-item">
414
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"><i class="dropdown {{nav_menu_icon_family}} {{nav_menu_icon_family}}-{{item.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{item.title}}</a>
415
- <ul class="dropdown-menu raised-z{{raised_level}}" id="ThemeSelect"> </ul>
416
- </li>
417
- {% assign item_found = 'true' %}
418
- {% endif %} <!-- end J1 theme selector -->
419
- <!-- check for BootSwatch theme selector -->
420
- {% if item.bootswatch_themes and item.bootswatch_themes == 'enabled' %}
421
- <li class="dropdown nav-item nav-sub-item">
422
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"><i class="dropdown {{nav_menu_icon_family}} {{nav_menu_icon_family}}-{{item.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{item.title}}</a>
423
- <ul class="dropdown-menu raised-z{{raised_level}}" id="ThemeList"> </ul>
424
- </li>
425
- {% assign item_found = 'true' %}
426
- {% endif %} <!-- end BootSwatch theme selector -->
427
- {% if item.preview and item.preview == 'enabled' %}
428
- <li class="dropdown-item">
429
- <a href="{{ theme_preview }}" ><i class="dropdown {{nav_menu_icon_family}} {{nav_menu_icon_family}}-{{item.icon}} {{nav_menu_icon_size}} mr-2" style="color:{{nav_menu_icon_color}}"></i> {{item.title}}</a>
430
- </li>
431
- {% assign item_found = 'true' %}
432
- {% endif %} <!-- end theme preview -->
433
- <!-- fallback if no valid config found -->
434
- {% if item_found == 'false' %}
435
- <li>
436
- {% if item.title %}
437
- <a href="#" >Invalid: {{item.title}}</a>
438
- {% else %}
439
- <a href="#" >Item invalid</a>
440
- {% endif %}
441
- </li>
442
- {% endif %} <!-- end fallback -->
443
- {% endfor %}
444
- </ul>
445
- </li>
446
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [reset menu_type for next loop] -->
447
- {% endif %}
448
- {% assign menu_type = '' %}
449
-
450
-
451
- {% comment %} Collect items failed
452
- ---------------------------------------------------------------------- {% endcomment %}
453
- {% else %}
454
- <!-- [FATAL ] [j1.modules.navigator.menu.html ] [detecting menu items|type failed] -->
455
- {% assign menu_type = '' %}
456
-
457
- {% endcase %}
458
-
459
- {% endfor %}
460
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [nav_menu_settings: end menu] -->
461
- </ul>
462
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [nav_menu_settings: end navbar] -->
463
- <!-- div -->
464
- <!-- [INFO ] [j1.modules.navigator.menu.html ] [nav_menu_settings: end processing] -->
465
-
466
- {% endcapture %}
467
-
468
- {{ cache | pretty_print | remove:'<html><body>' | remove:'</body></html>' | strip_empty_lines }}
469
- {% assign cache = nil %}
@@ -1,130 +0,0 @@
1
- ---
2
- regenerate: true
3
- ---
4
-
5
- {% capture j1_cache %}
6
-
7
- {% comment %}
8
- # -----------------------------------------------------------------------------
9
- # ~/assets/data/messages.json
10
- # Conains ALL messages used by ALL modules for logging
11
- #
12
- # Product/Info:
13
- # https://jekyll.one
14
- #
15
- # Copyright (C) 2019 Juergen Adams
16
- #
17
- # J1 Template is licensed under the MIT License.
18
- # For details, see https://jekyll.one
19
- # -----------------------------------------------------------------------------
20
- # NOTE:
21
- # Be carefull change the Liquid code. If the code is changed, check the
22
- # interity of the JSON data created. Invalid JSON data will cause modules
23
- # to fail and no valid log messages could be generated.
24
- # -----------------------------------------------------------------------------
25
- # Test data:
26
- # {{ liquid_var | debug }}
27
- # -----------------------------------------------------------------------------
28
- {% endcomment %}
29
-
30
- # ------------------------------------------------------------------------------
31
- # DEBUG messages
32
- #
33
- debug:
34
-
35
- - dataFound:
36
- short_code: D0000
37
- message:
38
- text: "Found "
39
- cookie: "cookie"
40
- cookie_user_state: "User state"
41
- data: "data"
42
-
43
-
44
- # ------------------------------------------------------------------------------
45
- # INFO messages
46
- #
47
- info:
48
-
49
- - moduleInitialization:
50
- short_code: I0000
51
- message:
52
- text: "Initialization "
53
- started: "is being started"
54
- finished: "finished successfully"
55
-
56
- - moduleState:
57
- short_code: I0001
58
- message:
59
- text: "Module state detected as "
60
- enabled: "enabled"
61
-
62
- - getData:
63
- short_code: I0002
64
- message:
65
- text: "Data for "
66
- message_catalog: "message catalog "
67
- finished: "loaded successfully"
68
-
69
- - getState:
70
- short_code: I0003
71
- message:
72
- text: "Data for "
73
- data_objects: "data objects "
74
- finished: "loaded successfully"
75
-
76
- - setState:
77
- short_code: I0004
78
- message:
79
- text: "State: "
80
- started: "started"
81
- running: "running"
82
-
83
- # ------------------------------------------------------------------------------
84
- # WARNING messages
85
- #
86
- warn:
87
-
88
- - moduleState:
89
- short_code: W0000
90
- message:
91
- text: "Module state detected as "
92
- disabled: "disabled"
93
- failed: "failed"
94
-
95
- - deleteData:
96
- short_code: W0001
97
- message:
98
- text: "Delete all "
99
- cookies: "Cookies"
100
- files: "Files"
101
-
102
- # ------------------------------------------------------------------------------
103
- # ERROR messages
104
- #
105
- error:
106
-
107
- - internalError:
108
- short_code: E0000
109
- message:
110
- text: "Internal error. "
111
- stopped: "Cannot continue"
112
-
113
-
114
- - getData:
115
- short_code: E0001
116
- message:
117
- text: "Failed to get data "
118
- xhr: "from XHR request"
119
-
120
- - missingRequired:
121
- short_code: E0002
122
- message:
123
- text: "Missing required "
124
- parameters: "parameters"
125
- options: "options"
126
-
127
-
128
- {% endcapture %}
129
- {{ j1_cache | strip_empty_lines }}
130
- {% assign j1_cache = nil %}