j1-template 2021.2.12 → 2021.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/compress.html +12 -4
  3. data/assets/data/private.json +49 -0
  4. data/assets/themes/j1/adapter/js/{j1scroll.js → scroller.js} +285 -304
  5. data/assets/themes/j1/core/js/template.js +4098 -223
  6. data/assets/themes/j1/core/js/template.min.js +9 -8
  7. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  8. data/assets/themes/j1/modules/{j1Deepl/js/j1deepl.js → deeplAPI/js/deeplAPI.js} +36 -11
  9. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.min.js +18 -0
  10. data/assets/themes/j1/modules/{j1Scroll → scroller}/css/theme/uno.css +2 -2
  11. data/assets/themes/j1/modules/{j1Scroll → scroller}/css/theme/uno.min.css +0 -0
  12. data/assets/themes/j1/modules/scroller/js/scroller.js +346 -0
  13. data/assets/themes/j1/modules/scroller/js/scroller.min.js +15 -0
  14. data/lib/j1/version.rb +1 -1
  15. data/lib/starter_web/Gemfile +1 -1
  16. data/lib/starter_web/_config.yml +6 -2
  17. data/lib/starter_web/_data/modules/{j1scroll.yml → scroller.yml} +30 -5
  18. data/lib/starter_web/_data/private.default.yml +8 -1
  19. data/lib/starter_web/_data/private.yml +8 -1
  20. data/lib/starter_web/_data/resources.yml +14 -35
  21. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  22. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  23. data/lib/starter_web/index.html +2 -1
  24. data/lib/starter_web/package.json +1 -1
  25. data/lib/starter_web/pages/public/blog/navigator/index.html +1 -1
  26. data/lib/starter_web/pages/public/manuals/dropdown-help.adoc +743 -743
  27. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  28. data/lib/starter_web/utilsrv/package.json +1 -1
  29. metadata +11 -12
  30. data/assets/themes/j1/modules/j1Deepl/js/j1deepl.min.js +0 -18
  31. data/assets/themes/j1/modules/j1Scroll/js/j1scroll.js +0 -280
  32. data/assets/themes/j1/modules/j1Scroll/js/j1scroll.min.js +0 -15
  33. data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.js +0 -73
  34. data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.min.js +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc8666c815c37519761dd07ea6a21e4080949181594855a5db0a77adbb8d7e09
4
- data.tar.gz: a840e7c6bb697051f258e41803a3e2fd31cc6ef7f0cf2fbc07dc95826ef4791c
3
+ metadata.gz: d1c7f01465b93814082ec3f21b25135c803935314f340fbb0f4ca89bfc9053d6
4
+ data.tar.gz: 80c566b64f19c99be9814546433e3dd61bf6c6750ccb3f3eea8d950d3fdbf2a2
5
5
  SHA512:
6
- metadata.gz: c638e481dda7633165a6a9f0a8694b20bb640c1a7676f6c34d41c2beb579ef91f3df0421048c6feee392823fd3827babf6972fc145462eeb5590b005e5bbeb90
7
- data.tar.gz: 408f0ea0914cb805255e9ec9bc35bce4f4c31343f6e7d863557ca4b31b4fd62a3710ba9a1012d0094164fc063edf0faae82b7c71131491a5be3415cb5076e6e9
6
+ metadata.gz: 4a621f22cc6924261c73913db01e7071c78803cca2891e9dcccf325fcc541af5a6d6fd6d3ec03750b206dfe4f0aff407c426619b99daee20a4ea80435dd7ee38
7
+ data.tar.gz: bba857f75b050b61d0dee0654b3039f2e2e2e02d8b149df5ba76424b54331730b26fe72b3ac87330b5467f31d71a6108fa35439f5937ff5e81c2cac91e6ba5ce
@@ -32,7 +32,13 @@
32
32
  # -----------------------------------------------------------------------------
33
33
  {% endcomment %}
34
34
 
35
- {% assign environment = site.environment %}
35
+ {% assign environment = site.environment %}
36
+
37
+ {% if page.compress %}
38
+ {% assign compress_page = 'enabled' %}
39
+ {% else %}
40
+ {% assign compress_page = 'disabled' %}
41
+ {% endif %}
36
42
 
37
43
  {% case environment %}
38
44
 
@@ -40,13 +46,15 @@
40
46
  ---------------------------------------------------------------------------- {% endcomment %}
41
47
  {% when 'production' or 'prod' %}
42
48
 
49
+ {% if compress_page == 'enabled' %}
43
50
  {% capture _LINE_FEED %}
44
51
  {% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
52
+ {% else %}
53
+ {{content|strip_empty_lines}}
54
+ {% endif %}
45
55
 
46
56
  {% comment %} ALL OTHER modes (no compression)
47
57
  --------------------------------------------------------------------------- {% endcomment %}
48
58
  {% else %}
49
-
50
- {{ content | strip_empty_lines }}
51
-
59
+ {{content|strip_empty_lines}}
52
60
  {% endcase %}
@@ -0,0 +1,49 @@
1
+ ---
2
+ regenerate: true
3
+ exclude_from_search: true
4
+ ---
5
+
6
+ {% capture cache %}
7
+
8
+ {% comment %}
9
+ # ------------------------------------------------------------------------------
10
+ # ~/assets/data/private.json
11
+ # The private.yml file is used to set sensitive private data used by
12
+ # J1 components to configure security and authentication settings
13
+ #
14
+ # Product/Info:
15
+ # https://jekyll.one
16
+ #
17
+ # Copyright (C) 2021 Juergen Adams
18
+ #
19
+ # J1 Template is licensed under the MIT License.
20
+ # See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
21
+ # ------------------------------------------------------------------------------
22
+ # NOTE:
23
+ # As this file contains very confidential data, a productive private.yml
24
+ # file should ALWAYS be excluded from ANY source published to the public
25
+ # (e.g. a repo at Github)
26
+ # ------------------------------------------------------------------------------
27
+
28
+ {% endcomment %}
29
+
30
+ {% comment %} Process YML config data
31
+ ================================================================================ {% endcomment %}
32
+
33
+ {% comment %} Set config files
34
+ -------------------------------------------------------------------------------- {% endcomment %}
35
+ {% assign data = site.data %}
36
+
37
+ {% comment %} Set config data
38
+ -------------------------------------------------------------------------------- {% endcomment %}
39
+ {% assign private_settings = data.private %}
40
+
41
+
42
+ {% comment %} Write config data as JSON string
43
+ -------------------------------------------------------------------------------- {% endcomment %}
44
+
45
+ {{ private_settings | json }}
46
+
47
+ {% endcapture %}
48
+ {{ cache | strip_empty_lines }}
49
+ {% assign cache = nil %}