j1-template 2021.0.1 → 2021.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (348) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/modules/navigator/generator.html +6 -6
  3. data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +11 -11
  4. data/_layouts/raw.html +1 -1
  5. data/assets/data/fam.html +1 -1
  6. data/assets/data/gallery_customizer.html +1 -1
  7. data/assets/data/mdi_icons.json +69582 -14640
  8. data/assets/data/mmenu_toc.html +1 -1
  9. data/assets/data/quicklinks.html +2 -2
  10. data/assets/themes/j1/adapter/js/fam.js +2 -2
  11. data/assets/themes/j1/adapter/js/j1.js +34 -7
  12. data/assets/themes/j1/adapter/js/mmenu.js +18 -22
  13. data/assets/themes/j1/adapter/js/{lunr_search.js → quicksearch.js} +11 -11
  14. data/assets/themes/j1/core/css/animate.min.css +1 -7
  15. data/assets/themes/j1/core/css/icon-fonts/fontawesome.css +3 -10
  16. data/assets/themes/j1/core/css/icon-fonts/fontawesome.min.css +1 -1
  17. data/assets/themes/j1/core/css/icon-fonts/materialdesign.css +12505 -4812
  18. data/assets/themes/j1/core/css/icon-fonts/materialdesign.min.css +1 -1
  19. data/assets/themes/j1/core/css/icon-fonts/twemoji.min.css +1 -1
  20. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +79 -49
  21. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.min.css +1 -6
  22. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +78 -48
  23. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -6
  24. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +102 -50
  25. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -8
  26. data/assets/themes/j1/core/css/vendor.css +2 -2
  27. data/assets/themes/j1/core/css/vendor.min.css +1 -1
  28. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-brands-400.eot → eot/fa-brands-400.eot} +0 -0
  29. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-regular-400.eot → eot/fa-regular-400.eot} +0 -0
  30. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-solid-900.eot → eot/fa-solid-900.eot} +0 -0
  31. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-brands-400.svg → svg/fa-brands-400.svg} +0 -0
  32. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-regular-400.svg → svg/fa-regular-400.svg} +0 -0
  33. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-solid-900.svg → svg/fa-solid-900.svg} +0 -0
  34. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-brands-400.ttf → ttf/fa-brands-400.ttf} +0 -0
  35. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-regular-400.ttf → ttf/fa-regular-400.ttf} +0 -0
  36. data/assets/themes/j1/core/fonts/fontawesome_5/fonts/{fa-solid-900.ttf → ttf/fa-solid-900.ttf} +0 -0
  37. data/assets/themes/j1/core/fonts/{materialdesign_icons/fonts → material_design_icons/fonts/_versions/v3.3.92/eot}/materialdesignicons-webfont.eot +0 -0
  38. data/assets/themes/j1/core/fonts/{materialdesign_icons/fonts → material_design_icons/fonts/_versions/v3.3.92}/materialdesignicons-webfont.woff +0 -0
  39. data/assets/themes/j1/core/fonts/{materialdesign_icons/fonts → material_design_icons/fonts/_versions/v3.3.92}/materialdesignicons-webfont.woff2 +0 -0
  40. data/assets/themes/j1/core/fonts/{materialdesign_icons/fonts → material_design_icons/fonts/_versions/v3.3.92/svg}/materialdesignicons-webfont.svg +0 -0
  41. data/assets/themes/j1/core/fonts/{materialdesign_icons/fonts → material_design_icons/fonts/_versions/v3.3.92/ttf}/materialdesignicons-webfont.ttf +0 -0
  42. data/assets/themes/j1/core/fonts/material_design_icons/fonts/_versions/v5.9.55/eot/materialdesignicons-webfont.eot +0 -0
  43. data/assets/themes/j1/core/fonts/material_design_icons/fonts/_versions/v5.9.55/materialdesignicons-webfont.woff +0 -0
  44. data/assets/themes/j1/core/fonts/material_design_icons/fonts/_versions/v5.9.55/materialdesignicons-webfont.woff2 +0 -0
  45. data/assets/themes/j1/core/fonts/material_design_icons/fonts/_versions/v5.9.55/preview.html +717 -0
  46. data/assets/themes/j1/core/fonts/material_design_icons/fonts/_versions/v5.9.55/svg/materialdesignicons-webfont.svg +10188 -0
  47. data/assets/themes/j1/core/fonts/material_design_icons/fonts/_versions/v5.9.55/ttf/materialdesignicons-webfont.ttf +0 -0
  48. data/assets/themes/j1/core/fonts/material_design_icons/fonts/eot/materialdesignicons-webfont.eot +0 -0
  49. data/assets/themes/j1/core/fonts/material_design_icons/fonts/materialdesignicons-webfont.woff +0 -0
  50. data/assets/themes/j1/core/fonts/material_design_icons/fonts/materialdesignicons-webfont.woff2 +0 -0
  51. data/assets/themes/j1/core/fonts/material_design_icons/fonts/svg/materialdesignicons-webfont.svg +10188 -0
  52. data/assets/themes/j1/core/fonts/material_design_icons/fonts/ttf/materialdesignicons-webfont.ttf +0 -0
  53. data/assets/themes/j1/core/fonts/{materialdesign_icons → material_design_icons}/metadata/icons.json +0 -0
  54. data/assets/themes/j1/core/fonts/{materialdesign_icons → material_design_icons}/metadata/icons.yml +0 -0
  55. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Bold.eot → eot/Roboto-Bold.eot} +0 -0
  56. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Light.eot → eot/Roboto-Light.eot} +0 -0
  57. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Medium.eot → eot/Roboto-Medium.eot} +0 -0
  58. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Regular.eot → eot/Roboto-Regular.eot} +0 -0
  59. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Thin.eot → eot/Roboto-Thin.eot} +0 -0
  60. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Black.ttf → ttf/Roboto-Black.ttf} +0 -0
  61. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-BlackItalic.ttf → ttf/Roboto-BlackItalic.ttf} +0 -0
  62. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Bold.ttf → ttf/Roboto-Bold.ttf} +0 -0
  63. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-BoldItalic.ttf → ttf/Roboto-BoldItalic.ttf} +0 -0
  64. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Italic.ttf → ttf/Roboto-Italic.ttf} +0 -0
  65. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Light.ttf → ttf/Roboto-Light.ttf} +0 -0
  66. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-LightItalic.ttf → ttf/Roboto-LightItalic.ttf} +0 -0
  67. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Medium.ttf → ttf/Roboto-Medium.ttf} +0 -0
  68. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-MediumItalic.ttf → ttf/Roboto-MediumItalic.ttf} +0 -0
  69. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Regular.ttf → ttf/Roboto-Regular.ttf} +0 -0
  70. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-Thin.ttf → ttf/Roboto-Thin.ttf} +0 -0
  71. data/assets/themes/j1/core/fonts/roboto/fonts/{Roboto-ThinItalic.ttf → ttf/Roboto-ThinItalic.ttf} +0 -0
  72. data/assets/themes/j1/core/js/template.min.js +23 -1
  73. data/assets/themes/j1/modules/datatables/css/DataTables-1.10.16/images/sort_asc.png +0 -0
  74. data/assets/themes/j1/modules/datatables/css/DataTables-1.10.16/images/sort_asc_disabled.png +0 -0
  75. data/assets/themes/j1/modules/datatables/css/DataTables-1.10.16/images/sort_both.png +0 -0
  76. data/assets/themes/j1/modules/datatables/css/DataTables-1.10.16/images/sort_desc.png +0 -0
  77. data/assets/themes/j1/modules/datatables/css/DataTables-1.10.16/images/sort_desc_disabled.png +0 -0
  78. data/assets/themes/j1/modules/datatables/css/datatables.css +1113 -0
  79. data/assets/themes/j1/modules/datatables/css/datatables.min.css +136 -0
  80. data/assets/themes/j1/modules/datatables/css/theme/uno.css +473 -0
  81. data/assets/themes/j1/modules/datatables/js/datatables.js +95360 -0
  82. data/assets/themes/j1/modules/datatables/js/datatables.min.js +533 -0
  83. data/assets/themes/j1/modules/iframeResizer/LICENSE +21 -21
  84. data/assets/themes/j1/modules/jquery/js/jquery-3.5.1.min.map +1 -0
  85. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/css/justifiedGallery.css +110 -0
  86. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/css/justifiedGallery.min.css +110 -0
  87. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/js/jquery.justifiedGallery.js +1245 -0
  88. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/js/jquery.justifiedGallery.min.js +8 -0
  89. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/justifiedGallery.min.zip +0 -0
  90. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/justifiedGallery.zip +0 -0
  91. data/assets/themes/j1/modules/justifiedGallery/css/_archived/justifiedGallery.css +110 -0
  92. data/assets/themes/j1/modules/justifiedGallery/css/_archived/justifiedGallery.min.css +110 -0
  93. data/assets/themes/j1/modules/justifiedGallery/css/justifiedGallery.css +11 -10
  94. data/assets/themes/j1/modules/justifiedGallery/css/justifiedGallery.min.css +3 -106
  95. data/assets/themes/j1/modules/justifiedGallery/js/justifiedGallery.js +147 -146
  96. data/assets/themes/j1/modules/justifiedGallery/js/justifiedGallery.min.js +3 -3
  97. data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.min.js +1 -2
  98. data/assets/themes/j1/modules/lightbox/LICENSE +22 -22
  99. data/assets/themes/j1/modules/lightbox/js/lightbox.js +1 -1
  100. data/assets/themes/j1/modules/lunrSearch/css/{lunr_search.css → quicksearch.css} +0 -0
  101. data/assets/themes/j1/modules/lunrSearch/css/{lunr_search.min.css → quicksearch.min.css} +0 -0
  102. data/assets/themes/j1/modules/lunrSearch/js/lunr.language.support.js +304 -0
  103. data/assets/themes/j1/modules/lunrSearch/js/lunr.language.support.min.js +1 -0
  104. data/assets/themes/j1/modules/lunrSearch/js/{lunr_search.js → quicksearch.js} +22 -3
  105. data/assets/themes/j1/modules/lunrSearch/js/quicksearch.min.js +17 -0
  106. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ar.js +381 -0
  107. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ar.min.js +1 -0
  108. data/assets/themes/j1/modules/lunrSearch/languages/lunr.da.js +284 -0
  109. data/assets/themes/j1/modules/lunrSearch/languages/lunr.da.min.js +18 -0
  110. data/assets/themes/j1/modules/lunrSearch/languages/lunr.de.js +384 -0
  111. data/assets/themes/j1/modules/lunrSearch/languages/lunr.de.min.js +18 -0
  112. data/assets/themes/j1/modules/lunrSearch/languages/lunr.du.js +450 -0
  113. data/assets/themes/j1/modules/lunrSearch/languages/lunr.du.min.js +18 -0
  114. data/assets/themes/j1/modules/lunrSearch/languages/lunr.es.js +599 -0
  115. data/assets/themes/j1/modules/lunrSearch/languages/lunr.es.min.js +18 -0
  116. data/assets/themes/j1/modules/lunrSearch/languages/lunr.fi.js +541 -0
  117. data/assets/themes/j1/modules/lunrSearch/languages/lunr.fi.min.js +18 -0
  118. data/assets/themes/j1/modules/lunrSearch/languages/lunr.fr.js +703 -0
  119. data/assets/themes/j1/modules/lunrSearch/languages/lunr.fr.min.js +18 -0
  120. data/assets/themes/j1/modules/lunrSearch/languages/lunr.hu.js +565 -0
  121. data/assets/themes/j1/modules/lunrSearch/languages/lunr.hu.min.js +18 -0
  122. data/assets/themes/j1/modules/lunrSearch/languages/lunr.it.js +617 -0
  123. data/assets/themes/j1/modules/lunrSearch/languages/lunr.it.min.js +18 -0
  124. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ja.js +188 -0
  125. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ja.min.js +1 -0
  126. data/assets/themes/j1/modules/lunrSearch/languages/lunr.jp.js +5 -0
  127. data/assets/themes/j1/modules/lunrSearch/languages/lunr.jp.min.js +1 -0
  128. data/assets/themes/j1/modules/lunrSearch/languages/lunr.multi.js +79 -0
  129. data/assets/themes/j1/modules/lunrSearch/languages/lunr.multi.min.js +1 -0
  130. data/assets/themes/j1/modules/lunrSearch/languages/lunr.nl.js +448 -0
  131. data/assets/themes/j1/modules/lunrSearch/languages/lunr.nl.min.js +18 -0
  132. data/assets/themes/j1/modules/lunrSearch/languages/lunr.no.js +258 -0
  133. data/assets/themes/j1/modules/lunrSearch/languages/lunr.no.min.js +18 -0
  134. data/assets/themes/j1/modules/lunrSearch/languages/lunr.pt.js +570 -0
  135. data/assets/themes/j1/modules/lunrSearch/languages/lunr.pt.min.js +18 -0
  136. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ro.js +558 -0
  137. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ro.min.js +18 -0
  138. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ru.js +391 -0
  139. data/assets/themes/j1/modules/lunrSearch/languages/lunr.ru.min.js +18 -0
  140. data/assets/themes/j1/modules/lunrSearch/languages/lunr.sv.js +256 -0
  141. data/assets/themes/j1/modules/lunrSearch/languages/lunr.sv.min.js +18 -0
  142. data/assets/themes/j1/modules/lunrSearch/languages/lunr.th.js +97 -0
  143. data/assets/themes/j1/modules/lunrSearch/languages/lunr.tr.js +1087 -0
  144. data/assets/themes/j1/modules/lunrSearch/languages/lunr.tr.min.js +18 -0
  145. data/assets/themes/j1/modules/lunrSearch/languages/lunr.vi.js +84 -0
  146. data/assets/themes/j1/modules/lunrSearch/languages/lunr.vi.min.js +1 -0
  147. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +20 -5
  148. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +1 -1
  149. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.js +115 -0
  150. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js +15 -0
  151. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.new.js +111 -0
  152. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.old.js +103 -0
  153. data/assets/themes/j1/modules/mmenuLight/js/mmenu.js +2 -2
  154. data/assets/themes/j1/modules/mmenuLight/js/mmenu.min.js +3 -3
  155. data/assets/themes/j1/modules/twemoji/css/picker/twemoji-picker.css +4 -4
  156. data/assets/themes/j1/modules/twemoji/css/picker/twemoji-picker.min.css +1 -1
  157. data/assets/themes/j1/modules/twemoji/js/LICENSE +21 -21
  158. data/assets/themes/j1/modules/twemoji/js/picker/LICENSE +21 -21
  159. data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.js +46 -45
  160. data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.min.js +1 -1
  161. data/exe/j1 +2 -0
  162. data/lib/j1/commands/generate.rb +47 -47
  163. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6/fastfilereaderext.so +0 -0
  164. data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6/rubyeventmachine.so +0 -0
  165. data/lib/j1/utils/exec.rb +1 -1
  166. data/lib/j1/version.rb +1 -1
  167. data/lib/j1_app/j1_auth_manager/commands.rb +1 -1
  168. data/lib/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6/fastfilereaderext.so +0 -0
  169. data/lib/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/2.6/rubyeventmachine.so +0 -0
  170. data/lib/starter_web/Gemfile +28 -18
  171. data/lib/starter_web/_config.yml +4 -4
  172. data/lib/starter_web/_data/apps/light_gallery.yml +1 -1
  173. data/lib/starter_web/_data/asciidoc2pdf/fonts/ABOUT-mplus1mn-subset +26 -0
  174. data/lib/starter_web/_data/asciidoc2pdf/fonts/ABOUT-mplus1p-subset +26 -0
  175. data/lib/starter_web/_data/asciidoc2pdf/fonts/ABOUT-notoemoji-subset +3 -0
  176. data/lib/starter_web/_data/asciidoc2pdf/fonts/ABOUT-notoserif-subset +26 -0
  177. data/lib/starter_web/_data/asciidoc2pdf/fonts/LICENSE-mplus +16 -0
  178. data/lib/starter_web/_data/asciidoc2pdf/fonts/LICENSE-notoemoji +201 -0
  179. data/lib/starter_web/_data/asciidoc2pdf/fonts/LICENSE-notoserif +201 -0
  180. data/lib/starter_web/_data/asciidoc2pdf/fonts/LICENSE-roboto +11 -0
  181. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Black.ttf +0 -0
  182. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-BlackItalic.ttf +0 -0
  183. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Bold.ttf +0 -0
  184. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-BoldItalic.ttf +0 -0
  185. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Italic.ttf +0 -0
  186. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Light.ttf +0 -0
  187. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-LightItalic.ttf +0 -0
  188. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Medium.ttf +0 -0
  189. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-MediumItalic.ttf +0 -0
  190. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Regular.ttf +0 -0
  191. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-Thin.ttf +0 -0
  192. data/lib/starter_web/_data/asciidoc2pdf/fonts/Roboto-ThinItalic.ttf +0 -0
  193. data/lib/starter_web/_data/asciidoc2pdf/fonts/mplus1mn-bold-subset.ttf +0 -0
  194. data/lib/starter_web/_data/asciidoc2pdf/fonts/mplus1mn-bold_italic-subset.ttf +0 -0
  195. data/lib/starter_web/_data/asciidoc2pdf/fonts/mplus1mn-italic-subset.ttf +0 -0
  196. data/lib/starter_web/_data/asciidoc2pdf/fonts/mplus1mn-regular-subset.ttf +0 -0
  197. data/{assets/themes/j1/core/fonts/roboto → lib/starter_web/_data/asciidoc2pdf}/fonts/mplus1p-regular-fallback.ttf +0 -0
  198. data/lib/starter_web/_data/asciidoc2pdf/fonts/notoemoji-subset.ttf +0 -0
  199. data/{assets/themes/j1/core/fonts/roboto → lib/starter_web/_data/asciidoc2pdf}/fonts/notoserif-bold-subset.ttf +0 -0
  200. data/{assets/themes/j1/core/fonts/roboto → lib/starter_web/_data/asciidoc2pdf}/fonts/notoserif-bold_italic-subset.ttf +0 -0
  201. data/{assets/themes/j1/core/fonts/roboto → lib/starter_web/_data/asciidoc2pdf}/fonts/notoserif-italic-subset.ttf +0 -0
  202. data/{assets/themes/j1/core/fonts/roboto → lib/starter_web/_data/asciidoc2pdf}/fonts/notoserif-regular-subset.ttf +0 -0
  203. data/lib/starter_web/_data/asciidoc2pdf/themes/base-theme.yml +130 -0
  204. data/lib/starter_web/_data/asciidoc2pdf/themes/default-for-print-theme.yml +36 -0
  205. data/lib/starter_web/_data/asciidoc2pdf/themes/default-for-print-with-fallback-font-theme.yml +15 -0
  206. data/lib/starter_web/_data/asciidoc2pdf/themes/default-theme.yml +298 -0
  207. data/lib/starter_web/_data/asciidoc2pdf/themes/default-with-fallback-font-theme.yml +21 -0
  208. data/lib/starter_web/_data/asciidoc2pdf/themes/j1-theme.yml +315 -0
  209. data/lib/starter_web/_data/j1_config.yml +3 -3
  210. data/lib/starter_web/_data/modules/defaults/authentication.yml +44 -42
  211. data/lib/starter_web/_data/modules/defaults/quicksearch.yml +82 -0
  212. data/lib/starter_web/_data/modules/navigator.yml +4 -6
  213. data/lib/starter_web/_data/modules/navigator_menu.yml +2 -64
  214. data/lib/starter_web/_data/modules/{lunr_search.yml → quicksearch.yml} +3 -3
  215. data/lib/starter_web/_data/modules/themer.yml +1 -96
  216. data/lib/starter_web/_data/resources.yml +34 -60
  217. data/lib/starter_web/_includes/attributes.asciidoc +278 -90
  218. data/lib/starter_web/_includes/documents/licenses/mit.asciidoc +19 -19
  219. data/lib/starter_web/_includes/tables/jekyll_variables.asciidoc +45 -45
  220. data/lib/starter_web/_includes/tables/template_variables.asciidoc +46 -46
  221. data/lib/starter_web/_plugins/lunr_index.rb +38 -8
  222. data/lib/starter_web/_plugins/minifyJS.rb +3 -0
  223. data/lib/starter_web/assets/images/modules/attics/machine-generator-1920x1280.jpg +0 -0
  224. data/lib/starter_web/assets/images/modules/attics/modules-apps-1920x1280.jpg +0 -0
  225. data/lib/starter_web/assets/images/modules/attics/no-time-1920x1280.jpg +0 -0
  226. data/lib/starter_web/assets/images/modules/attics/responsive-text-1920x1280.jpg +0 -0
  227. data/lib/starter_web/assets/images/modules/icons/d1/scalable/d1.svg +1 -1
  228. data/lib/starter_web/assets/images/pages/j1_webhooks/uml/auth_mgmr_signin_request_flow.uxf +632 -632
  229. data/lib/starter_web/assets/images/pages/j1_webhooks/uml/webhook_flow.uxf +648 -648
  230. data/lib/starter_web/assets/images/pages/panels/modules-apps-1920x800.jpg +0 -0
  231. data/lib/starter_web/assets/images/pages/panels/no-time-1920x800.jpg +0 -0
  232. data/lib/starter_web/assets/images/pages/panels/the-place-1920x800.jpg +0 -0
  233. data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_icon-800x200.jpg +0 -0
  234. data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_icon.jpg +0 -0
  235. data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_input-800x200.jpg +0 -0
  236. data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_input.jpg +0 -0
  237. data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_results_jekyll-.jpg +0 -0
  238. data/lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_results_jekyll.jpg +0 -0
  239. data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1-template.adoc.erb +10 -13
  240. data/lib/starter_web/collections/posts/public/featured/_posts/{2018-05-01-confusion-about-base-url.adoc → 2020-04-01-confusion-about-base-url.adoc} +6 -4
  241. data/lib/starter_web/collections/posts/public/featured/_posts/{2019-05-01-top-open-source-static-site-generators.adoc → 2020-05-01-top-open-source-static-site-generators.adoc} +15 -13
  242. data/lib/starter_web/collections/posts/public/featured/_posts/{2019-06-01-about-cookies.adoc → 2020-06-01-about-cookies.adoc} +184 -198
  243. data/lib/starter_web/collections/posts/public/featured/_posts/_includes/documents/readme +1 -0
  244. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +6 -17
  245. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +6 -16
  246. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +6 -16
  247. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +6 -16
  248. data/{assets/themes/j1/modules/mdiPreviewer/js → lib/starter_web/collections/posts/public/series/_posts/_includes/documents}/readme +0 -0
  249. data/lib/starter_web/collections/posts/public/series/_posts/_includes/tables/debug_variables.asciidoc +47 -48
  250. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +5 -4
  251. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +13 -3
  252. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +13 -3
  253. data/lib/starter_web/config.ru +23 -24
  254. data/lib/starter_web/dot.gitattributes +2 -16
  255. data/lib/starter_web/dot.nojekyll +19 -19
  256. data/lib/starter_web/favicon.ico +0 -0
  257. data/lib/starter_web/index.html +1 -1
  258. data/lib/starter_web/package.json +48 -42
  259. data/lib/starter_web/pages/protected/site_search.adoc +2 -7
  260. data/lib/starter_web/pages/public/about/about_site.adoc +1827 -9
  261. data/lib/starter_web/pages/public/about/become_a_patron.adoc +26 -1
  262. data/lib/starter_web/pages/public/blog/navigator/archive.html +2 -0
  263. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +3 -1
  264. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +2 -0
  265. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +2 -0
  266. data/lib/starter_web/pages/public/blog/navigator/index.html +2 -0
  267. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/100_meet_and_greet_jekyll.adoc +3 -3
  268. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/200_preparations.adoc +2 -2
  269. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/300_first_awesome_web.adoc +2 -2
  270. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/_includes/documents/300_first_awesome_web.asciidoc +11 -12
  271. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/_includes/tables/debug_variables.asciidoc +47 -48
  272. data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/_includes/tables/readme +1 -0
  273. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +6 -2
  274. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +2 -3
  275. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +1 -1
  276. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +5 -4
  277. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +1 -1
  278. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
  279. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +1 -1
  280. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +39 -19
  281. data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +417 -0
  282. data/lib/starter_web/pages/public/learn/roundtrip/610_fam.adoc +2 -2
  283. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +3 -0
  284. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_info.asciidoc +14 -14
  285. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_left_warning.asciidoc +11 -11
  286. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_right_danger.asciidoc +11 -11
  287. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_central_success.asciidoc +11 -11
  288. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_full_height_left_info.asciidoc +11 -11
  289. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_full_height_right_success.asciidoc +11 -11
  290. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_info.asciidoc +11 -11
  291. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_left_info.asciidoc +11 -11
  292. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_right_success.asciidoc +11 -11
  293. data/lib/starter_web/pages/public/learn/where_to_go.adoc +1 -1
  294. data/lib/starter_web/pages/public/legal/en/000_copyright.adoc +1 -1
  295. data/lib/starter_web/pages/public/legal/en/100_impress.adoc +1 -1
  296. data/lib/starter_web/pages/public/legal/en/200_terms_of_use.adoc +1 -1
  297. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +1 -1
  298. data/lib/starter_web/pages/public/legal/en/400_license_agreement.adoc +1 -1
  299. data/lib/starter_web/pages/public/legal/en/500_support.adoc +1 -1
  300. data/lib/starter_web/pages/public/legal/en/eu/cookie.policy.asciidoc +50 -55
  301. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +16 -5
  302. data/lib/starter_web/pages/public/previewer/_includes/attributes.asciidoc +5 -81
  303. data/lib/starter_web/pages/public/previewer/_includes/documents/licenses/mit.asciidoc +19 -19
  304. data/lib/starter_web/pages/public/previewer/_includes/documents/rouge/100_language_examples.asciidoc +119 -0
  305. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/100_absolute_sizes.asciidoc +1 -1
  306. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/110_bs_grid_sizes.asciidoc +1 -1
  307. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/120_relative_sizes.asciidoc +1 -1
  308. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/200_rotate.asciidoc +1 -1
  309. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/300_flip.asciidoc +1 -1
  310. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/400_spin_pulsed.asciidoc +4 -4
  311. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/500_bw_color_palette.asciidoc +1 -1
  312. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/510_bs_color_palette.asciidoc +1 -1
  313. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/600_md_color_palette.asciidoc +1 -1
  314. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/601_md_color_palette_indigo.asciidoc +1 -1
  315. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/602_md_color_palette_pink.asciidoc +1 -1
  316. data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/200_rouge_attributes.asciidoc +41 -0
  317. data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/300_supported_languages.asciidoc +857 -0
  318. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_bs_sizes.asciidoc +1 -1
  319. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_relative_sizes.asciidoc +1 -1
  320. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/200_rotate.asciidoc +1 -1
  321. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/300_flip.asciidoc +1 -1
  322. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/400_spin_pulsed.asciidoc +1 -1
  323. data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +116 -78
  324. data/lib/starter_web/pages/public/previewer/iframer.adoc +1 -1
  325. data/lib/starter_web/pages/public/previewer/justified_gallery.html +1 -1
  326. data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +41 -108
  327. data/lib/starter_web/pages/public/previewer/rouge.adoc +38 -353
  328. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +2 -2
  329. data/lib/starter_web/utilsrv/_defaults/package.json +2 -2
  330. data/lib/starter_web/utilsrv/package.json +3 -3
  331. metadata +209 -95
  332. data/assets/themes/j1/core/fonts/materialdesign_icons/license.md +0 -97
  333. data/assets/themes/j1/core/fonts/roboto/fonts/OpenSansEmoji.ttf +0 -0
  334. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-bold-ascii.ttf +0 -0
  335. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-bold_italic-ascii.ttf +0 -0
  336. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-italic-ascii.ttf +0 -0
  337. data/assets/themes/j1/core/fonts/roboto/fonts/mplus1mn-regular-ascii-conums.ttf +0 -0
  338. data/assets/themes/j1/modules/lunrSearch/js/lunr_search.min.js +0 -17
  339. data/lib/j1_app/j1_auth_manager/views/auth_manager_ui.erb.kapott +0 -234
  340. data/lib/j1_app/j1_auth_manager/views/auth_manager_ui.new.erb +0 -297
  341. data/lib/starter_web/_data/modules/defaults/jekyll_search.yml +0 -151
  342. data/lib/starter_web/_data/modules/defaults/lunr_search.yml +0 -171
  343. data/lib/starter_web/_data/modules/jekyll_search.yml +0 -33
  344. data/lib/starter_web/_plugins/simple_search_filter.rb +0 -32
  345. data/lib/starter_web/collections/posts/public/featured/_posts/_includes/documents/unsplash-badge.asciidoc +0 -31
  346. data/lib/starter_web/collections/posts/public/series/_posts/_includes/documents/100-docker-using-shared-folders.asciidoc +0 -430
  347. data/lib/starter_web/collections/posts/public/series/_posts/_includes/documents/loop.sh +0 -28
  348. data/lib/starter_web/pages/public/learn/roundtrip/600_lunr.adoc +0 -236
@@ -1,97 +0,0 @@
1
- Copyright (C) 2014, Austin Andrews (http://materialdesignicons.com/),
2
- with Reserved Font Name Material Design Icons.
3
-
4
- Copyright (C) 2014, Google (http://www.google.com/design/)
5
- uses the license at https://github.com/google/material-design-icons/blob/master/LICENSE
6
-
7
- This Font Software is licensed under the SIL Open Font License, Version 1.1.
8
- This license is copied below, and is also available with a FAQ at:
9
- http://scripts.sil.org/OFL
10
-
11
-
12
- -----------------------------------------------------------
13
- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
14
- -----------------------------------------------------------
15
-
16
- PREAMBLE
17
- The goals of the Open Font License (OFL) are to stimulate worldwide
18
- development of collaborative font projects, to support the font creation
19
- efforts of academic and linguistic communities, and to provide a free and
20
- open framework in which fonts may be shared and improved in partnership
21
- with others.
22
-
23
- The OFL allows the licensed fonts to be used, studied, modified and
24
- redistributed freely as long as they are not sold by themselves. The
25
- fonts, including any derivative works, can be bundled, embedded,
26
- redistributed and/or sold with any software provided that any reserved
27
- names are not used by derivative works. The fonts and derivatives,
28
- however, cannot be released under any other type of license. The
29
- requirement for fonts to remain under this license does not apply
30
- to any document created using the fonts or their derivatives.
31
-
32
- DEFINITIONS
33
- "Font Software" refers to the set of files released by the Copyright
34
- Holder(s) under this license and clearly marked as such. This may
35
- include source files, build scripts and documentation.
36
-
37
- "Reserved Font Name" refers to any names specified as such after the
38
- copyright statement(s).
39
-
40
- "Original Version" refers to the collection of Font Software components as
41
- distributed by the Copyright Holder(s).
42
-
43
- "Modified Version" refers to any derivative made by adding to, deleting,
44
- or substituting -- in part or in whole -- any of the components of the
45
- Original Version, by changing formats or by porting the Font Software to a
46
- new environment.
47
-
48
- "Author" refers to any designer, engineer, programmer, technical
49
- writer or other person who contributed to the Font Software.
50
-
51
- PERMISSION & CONDITIONS
52
- Permission is hereby granted, free of charge, to any person obtaining
53
- a copy of the Font Software, to use, study, copy, merge, embed, modify,
54
- redistribute, and sell modified and unmodified copies of the Font
55
- Software, subject to the following conditions:
56
-
57
- 1) Neither the Font Software nor any of its individual components,
58
- in Original or Modified Versions, may be sold by itself.
59
-
60
- 2) Original or Modified Versions of the Font Software may be bundled,
61
- redistributed and/or sold with any software, provided that each copy
62
- contains the above copyright notice and this license. These can be
63
- included either as stand-alone text files, human-readable headers or
64
- in the appropriate machine-readable metadata fields within text or
65
- binary files as long as those fields can be easily viewed by the user.
66
-
67
- 3) No Modified Version of the Font Software may use the Reserved Font
68
- Name(s) unless explicit written permission is granted by the corresponding
69
- Copyright Holder. This restriction only applies to the primary font name as
70
- presented to the users.
71
-
72
- 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
73
- Software shall not be used to promote, endorse or advertise any
74
- Modified Version, except to acknowledge the contribution(s) of the
75
- Copyright Holder(s) and the Author(s) or with their explicit written
76
- permission.
77
-
78
- 5) The Font Software, modified or unmodified, in part or in whole,
79
- must be distributed entirely under this license, and must not be
80
- distributed under any other license. The requirement for fonts to
81
- remain under this license does not apply to any document created
82
- using the Font Software.
83
-
84
- TERMINATION
85
- This license becomes null and void if any of the above conditions are
86
- not met.
87
-
88
- DISCLAIMER
89
- THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
90
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
91
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
92
- OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
93
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
94
- INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
95
- DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
96
- FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
97
- OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,17 +0,0 @@
1
- /*
2
- # -----------------------------------------------------------------------------
3
- # ~/assets/themes/j1/modules/lunr/js/jquery.lunr.search.js
4
- # jQuery plugin to use with J1LunrSearch
5
- #
6
- # Product/Info:
7
- # https://jekyll.one
8
- #
9
- # Copyright (C) 2021 Juergen Adams
10
- #
11
- # J1 Template is licensed under the MIT License.
12
- # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
13
- # -----------------------------------------------------------------------------
14
- # TODO:
15
- # -----------------------------------------------------------------------------
16
- */
17
- "use strict";!function(t){var e=function(t){var e=t.match(/(\d+)/g);return new Date(e[0],e[1]-1,e[2])},n=function(){function n(e,n){this.$elem=e,this.$results=t(n.results),this.indexDataUrl=n.indexUrl,this.template=this.compileTemplate(t(n.template)),this.titleMsg=n.titleMsg,this.emptyMsg=n.emptyMsg,this.onAfterResultShow=n.onAfterResultShow,this.initialize()}return n.prototype.initialize=function(){var e=this;this.loadIndexData(function(n){e.docs=t.map(n.docs,e.createEntry),e.index=lunr.Index.load(n.index),e.populateSearchFromQuery(),e.bindKeypress()})},n.prototype.compileTemplate=function(t){var e=t.text();return Mustache.parse(e),function(t,n){return Mustache.render(e,t,n)}},n.prototype.loadIndexData=function(e){t.getJSON(this.indexDataUrl,e)},n.prototype.createEntry=function(n,r){var s=t.extend({id:r+1},n);return n.date&&t.extend(s,{date:e(n.date),pubdate:function(){return dateFormat(e(n.date),"yyyy-mm-dd")},displaydate:function(){return dateFormat(e(n.date),"mmm dd, yyyy")}}),s},n.prototype.bindKeypress=function(){var t,e,n,r=this,s=this.$elem.val();this.$elem.bind("keyup",(t=function(){var t=r.$elem.val();t!==s&&r.search(t),s=t},n=Array.prototype.slice,function(){var r=n.call(arguments),s=this;clearTimeout(e),e=setTimeout(function(){t.apply(s,r)},100)}))},n.prototype.search=function(e){var n=this.docs;if(e.length<3)this.$results.hide().empty();else{var r=t.map(this.index.search(e),function(e){return t.grep(n,function(t){return t.id===parseInt(e.ref,10)})[0]});this.displayResults(r),this.onAfterResultShow()}},n.prototype.displayResults=function(t){var e=this.$results;e.empty(),0===t.length?e.append(this.emptyMsg):(this.titleMsg&&0!==this.titleMsg.length&&e.append(this.titleMsg),e.append(this.template({docs:t}))),e.show()},n.prototype.populateSearchFromQuery=function(){var t=new URI(window.location.search.toString()).search(!0);t.hasOwnProperty("q")&&(this.$elem.val(t.q),this.search(t.q.toString()))},n}();t.fn.lunrSearch=function(e){return e=t.extend({},t.fn.lunrSearch.defaults,e),new n(this,e),this},t.fn.lunrSearch.defaults={indexUrl:"/assets/data/lunr-index.json",results:"#search-results",template:"#search-results-template",titleMsg:"<h1>Search results<h1>",emptyMsg:"<p>Nothing found.</p>",onAfterResultShow:function(){}}}(jQuery);
@@ -1,234 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <title>AuthManager</title>
7
- <meta name="description" content="J1 Template">
8
- <meta name="author" content="jelyll-one">
9
-
10
- <link rel="stylesheet" type="text/css" href="/assets/themes/j1/core/css/uno.min.css">
11
- <link rel="stylesheet" type="text/css" href="/assets/themes/j1/core/css/vendor.min.css">
12
- <link rel="stylesheet" type="text/css" href="/assets/themes/j1/core/css/globals.min.css">
13
- <script src="/assets/themes/j1/adapter/js/j1.js"></script>
14
- </head>
15
-
16
- <body class="r-text-300">
17
-
18
- <!-- Modal Central Success -->
19
- <div id="centralModalInfo" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
20
- <div class="modal-dialog modal-notify modal-<%= @info_type %>" role="document">
21
- <!-- Content -->
22
- <div class="modal-content">
23
- <!--Header-->
24
- <div class="modal-header">
25
- <p class="lead">
26
- <i class="mdi mdi-2x mdi-dark mdi-<%= @modal_icon %>"></i>
27
- <%= @modal_title %></p>
28
- <!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
29
- <i class="mdi mdi-dark mdi-48px mdi-close"></i>
30
- </button> -->
31
- </div>
32
- <!-- Body -->
33
- <div class="modal-body">
34
- <div class="text-center">
35
- <p style="text-align: justify"><%= @modal_description %></p>
36
- </div>
37
- </div>
38
- <!-- Footer -->
39
- <div class="modal-footer justify-content-center">
40
- <a type="button" id="okButton" class="btn btn btn-raised btn-flex btn-md btn-info" data-dismiss="modal"><%= @modal_ok_text %></a>
41
- </div>
42
- </div>
43
- <!-- END Content -->
44
- </div>
45
- </div>
46
- <!-- END Central Success -->
47
-
48
- <!-- Modal TopInfo -->
49
- <div id="topInfo" class="modal fade top" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="false">
50
- <div class="modal-dialog modal-frame modal-top modal-notify modal-info" role="document">
51
- <!-- Content -->
52
- <div class="modal-content">
53
-
54
- <!-- Body -->
55
- <div class="modal-body">
56
- <div class="row px-4">
57
- <p class="pt-1 pr-2"><%= @modal_description %></p>
58
- </div>
59
- <div class="row px-4">
60
- <a type="button" id="okButton" class="btn btn btn-raised btn-flex btn-md btn-info" data-dismiss="modal"><%= @modal_ok_text %></a>
61
- </div>
62
- </div> <!-- END Body -->
63
-
64
- </div>
65
- <!-- END Content -->
66
- </div>
67
- </div>
68
- <!-- END Modal TopInfo -->
69
-
70
- <!-- Modal SignInProtectedContent -->
71
- <div id="signInProtectedContent" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
72
- <div class="modal-dialog modal-lg modal-notify modal-info" role="document">
73
- <!-- Content -->
74
- <div class="modal-content">
75
-
76
- <!--Header-->
77
- <div class="modal-header">
78
- <p class="lead">
79
- <i class="mdi mdi-2x mdi-dark mdi-account"></i>
80
- <%= @modal_title %>
81
- </p>
82
- <!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
83
- <i class="mdi mdi-dark mdi-48px mdi-close"></i>
84
- </button> -->
85
- </div>
86
-
87
- <!-- Body -->
88
- <div class="modal-body">
89
- <div class="text-center">
90
- <p style="text-align: justify"><%= @modal_description %></p>
91
- </div>
92
- <!-- img src="<%= @modal_image %>" alt="<%= @modal_title %>" class="img-fluid" -->
93
- </div>
94
-
95
- <!-- Footer -->
96
- <div class="modal-footer justify-content-center">
97
- <a type="button" id="signInButton" class="btn btn btn-raised btn-flex btn-md btn-info g-mr-5" data-dismiss="modal">
98
- <i class="mdi mdi-18px mdi-dark mdi-login"></i>
99
- <%= @modal_agreed_text %>
100
- </a>
101
- <a type="button" id="exitButton" class="btn btn btn-raised btn-flex btn-md btn-secondary" data-dismiss="modal">
102
- <i class="mdi mdi-18px mdi-dark mdi-close"></i>
103
- <%= @modal_disagreed_text %>
104
- </a>
105
- </div>
106
-
107
- </div> <!-- END Content -->
108
- </div>
109
- </div>
110
- <!-- END Modal SignInProtectedContent -->
111
-
112
- </body>
113
-
114
- <!--
115
- # Loaded J1|JS resources late to not conflict with the IFFE J1 Adapter
116
- # that creates the j1 object (window)
117
- ------------------------------------------------------------------------------ -->
118
- <script src="/assets/themes/j1/core/js/template.js"></script>
119
-
120
- <!--
121
- # Dialog (modal) management
122
- ------------------------------------------------------------------------------ -->
123
- <script>
124
- var cookie_names = j1.getCookieNames();
125
- var user_session = j1.readCookie(cookie_names.user_session);
126
- var route = user_session.requested_page;
127
- var provider;
128
- var providerPermissions;
129
- var categoryAllowed;
130
- var logger;
131
-
132
- // Collect $.selectors for all dialog (modal) buttons
133
- // -------------------------------------------------------------------------
134
- var allModalButtons = document.querySelectorAll('a.btn');
135
-
136
- // -------------------------------------------------------------------------
137
- // Initialize ACTION objects ALL modals
138
- // -------------------------------------------------------------------------
139
- var signIn = {
140
- provider: "<%= @provider %>",
141
- do: "na"
142
- }
143
-
144
- // Present dialog (modal)
145
- // -------------------------------------------------------------------------
146
- $(window).on('load', function() {
147
- $("#<%= @modal %>").modal("show")
148
- });
149
-
150
- // -------------------------------------------------------------------------
151
- // eventHandler ALL modals
152
- // -------------------------------------------------------------------------
153
-
154
- // Manage PRE SHOW events
155
- // -------------------------------------------------------------------------
156
- $(document).on('show.bs.modal','#<%= @modal %>', function () {
157
- console.log('J1AuthManager: entered modal SHOW from <%= @modal %>');
158
- });
159
-
160
-
161
- console.log('J1AuthManager: entered modal SHOWN from <%= @modal %>');
162
-
163
- allModalButtons.forEach(function(button, index) {
164
- button.addEventListener('click', function() {
165
-
166
- // Modal topInfo|centralModalInfo
167
- // -------------------------------------------------------------------
168
- if (this.id === "okButton") {
169
- console.log('J1AuthManager: clicked OK button on modal: <%= @modal %>');
170
- // route = user_session.previous_page;
171
- // route = user_session.requested_page;
172
-
173
- console.log('J1AuthManager: pass user to page: ' + route);
174
- window.location.href = route;
175
- }
176
-
177
- // Modal SignInProtectedContent
178
- // -------------------------------------------------------------------
179
- if (this.id === "signInButton") {
180
- console.log('J1AuthManager: clicked signInButton button on modal: <%= @modal %>');
181
- signIn.do = true;
182
- return;
183
- } else {
184
- signIn.do = false;
185
- return;
186
- }
187
-
188
- });
189
- });
190
-
191
- return;
192
- });
193
-
194
- // -------------------------------------------------------------------------
195
- // actionHandler ALL modals (HIDDEN event)
196
- // process action objects
197
- // -------------------------------------------------------------------------
198
- // $(document).on('hide.bs.modal','#<%= @modal %>', function () {
199
- $(document).on('hidden.bs.modal','#<%= @modal %>', function () {
200
- console.log('J1AuthManager: entered modal HIDDEN from <%= @modal %>');
201
- user_session = j1.readCookie(user_session_cookie_name);
202
-
203
- // Manage SignIn actions
204
- // -----------------------------------------------------------------------
205
- if (signIn.do == true) {
206
- // pass to authentication
207
- route = "<%= @route %>"
208
- } else if (signIn.do == false) {
209
- // pass to (unchanged) current page
210
- route = user_session.current_page;
211
- } else {
212
- route = user_session.current_page;
213
- }
214
-
215
- // Redirect detected route
216
- // -----------------------------------------------------------------------
217
- providerPermissions = user_session.provider_permissions;
218
- providerPermissions.push('public');
219
- categoryAllowed = providerPermissions.includes(user_session.page_permission);
220
-
221
- // Make sure that protected pages are ALWAYS checked for permissions
222
- // except on signIn
223
- // -------------------------------------------------------------------
224
- if (!categoryAllowed && !signIn.do) {
225
- // pass to home page
226
- route = '/';
227
- }
228
- console.log('J1AuthManager: pass to ' + route);
229
- window.location.href = route;
230
-
231
- });
232
- </script>
233
-
234
- </html>
@@ -1,297 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <title>AuthManager</title>
7
- <meta name="description" content="J1 Template">
8
- <meta name="author" content="jelyll-one">
9
-
10
- <link rel="stylesheet" type="text/css" href="/assets/themes/j1/core/css/uno.min.css">
11
- <link rel="stylesheet" type="text/css" href="/assets/themes/j1/core/css/vendor.min.css">
12
- <link rel="stylesheet" type="text/css" href="/assets/themes/j1/core/css/globals.min.css">
13
- <script src="/assets/themes/j1/adapter/js/j1.js"></script>
14
- </head>
15
-
16
- <body class="r-text-300">
17
-
18
- <!-- Modal Central Success -->
19
- <div id="centralModalInfo" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
20
- <div class="modal-dialog modal-notify modal-<%= @info_type %>" role="document">
21
- <!-- Content -->
22
- <div class="modal-content">
23
- <!--Header-->
24
- <div class="modal-header">
25
- <p class="lead">
26
- <i class="mdi mdi-2x mdi-dark mdi-<%= @modal_icon %>"></i>
27
- <%= @modal_title %></p>
28
- <!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
29
- <i class="mdi mdi-dark mdi-48px mdi-close"></i>
30
- </button> -->
31
- </div>
32
- <!-- Body -->
33
- <div class="modal-body">
34
- <div class="text-center">
35
- <p style="text-align: justify"><%= @modal_description %></p>
36
- </div>
37
- </div>
38
- <!-- Footer -->
39
- <div class="modal-footer justify-content-center">
40
- <a type="button" id="okButton" class="btn btn btn-raised btn-flex btn-md btn-info" data-dismiss="modal"><%= @modal_ok_text %></a>
41
- </div>
42
- </div>
43
- <!-- END Content -->
44
- </div>
45
- </div>
46
- <!-- END Central Success -->
47
-
48
- <!-- Modal TopInfo -->
49
- <div id="topInfo" class="modal fade top" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="false">
50
- <div class="modal-dialog modal-frame modal-top modal-notify modal-info" role="document">
51
- <!-- Content -->
52
- <div class="modal-content">
53
-
54
- <!-- Body -->
55
- <div class="modal-body">
56
- <div class="row px-4">
57
- <p class="pt-1 pr-2"><%= @modal_description %></p>
58
- </div>
59
- <div class="row px-4">
60
- <a type="button" id="okButton" class="btn btn btn-raised btn-flex btn-md btn-info" data-dismiss="modal"><%= @modal_ok_text %></a>
61
- </div>
62
- </div> <!-- END Body -->
63
-
64
- </div>
65
- <!-- END Content -->
66
- </div>
67
- </div>
68
- <!-- END Modal TopInfo -->
69
-
70
- <!-- Modal SignInProtectedContent -->
71
- <div id="signInProtectedContent" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
72
- <div class="modal-dialog modal-lg modal-notify modal-info" role="document">
73
- <!-- Content -->
74
- <div class="modal-content">
75
-
76
- <!--Header-->
77
- <div class="modal-header">
78
- <p class="lead">
79
- <i class="mdi mdi-2x mdi-dark mdi-account"></i>
80
- <%= @modal_title %>
81
- </p>
82
- <!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
83
- <i class="mdi mdi-dark mdi-48px mdi-close"></i>
84
- </button> -->
85
- </div>
86
-
87
- <!-- Body -->
88
- <div class="modal-body">
89
- <div class="text-center">
90
- <p style="text-align: justify"><%= @modal_description %></p>
91
- </div>
92
- <!-- img src="<%= @modal_image %>" alt="<%= @modal_title %>" class="img-fluid" -->
93
- </div>
94
-
95
- <!-- Footer -->
96
- <div class="modal-footer justify-content-center">
97
- <a type="button" id="signInButton" class="btn btn btn-raised btn-flex btn-md btn-info g-mr-5" data-dismiss="modal">
98
- <i class="mdi mdi-18px mdi-dark mdi-login"></i>
99
- <%= @modal_agreed_text %>
100
- </a>
101
- <a type="button" id="exitButton" class="btn btn btn-raised btn-flex btn-md btn-secondary" data-dismiss="modal">
102
- <i class="mdi mdi-18px mdi-dark mdi-close"></i>
103
- <%= @modal_disagreed_text %>
104
- </a>
105
- </div>
106
-
107
- </div> <!-- END Content -->
108
- </div>
109
- </div>
110
- <!-- END Modal SignInProtectedContent -->
111
-
112
- </body>
113
-
114
- <!--
115
- # Loaded J1|JS resources late to not conflict with the IFFE J1 Adapter
116
- # that creates the j1 object (window)
117
- ------------------------------------------------------------------------------ -->
118
- <script src="/assets/themes/j1/core/js/template.js"></script>
119
-
120
- <!--
121
- # Dialog (modal) management
122
- ------------------------------------------------------------------------------ -->
123
- <script>
124
- var cookie_names = j1.getCookieNames();
125
- const user_session_cookie_name = cookie_names.user_session;
126
- var user_state = j1.readCookie(user_session_cookie_name);
127
- var route = user_state.requested_page;
128
- var provider;
129
- var providerPermissions;
130
- var categoryAllowed;
131
- var user_state;
132
- var logger;
133
-
134
- // Collect $.selectors for all dialog (modal) buttons
135
- // -------------------------------------------------------------------------
136
- var allModalButtons = document.querySelectorAll('a.btn');
137
-
138
- // -------------------------------------------------------------------------
139
- // Initialize ACTION objects ALL modals
140
- // -------------------------------------------------------------------------
141
- var signIn = {
142
- provider: "<%= @provider %>",
143
- do: "disabled"
144
- }
145
- var passBack = {
146
- provider: "<%= @provider %>",
147
- do: "disabled"
148
- }
149
-
150
- // Present dialog (modal)
151
- // -------------------------------------------------------------------------
152
- $(window).on('load', function() {
153
- $("#<%= @modal %>").modal("show")
154
- });
155
-
156
- // -------------------------------------------------------------------------
157
- // eventHandler ALL modals
158
- // -------------------------------------------------------------------------
159
-
160
- // Manage PRE SHOW events
161
- // -------------------------------------------------------------------------
162
- $(document).on('show.bs.modal','#<%= @modal %>', function () {
163
- console.log('J1AuthManager: entered modal SHOW from <%= @modal %>');
164
- });
165
-
166
- // Manage POST SHOW events (button click events)
167
- // -------------------------------------------------------------------------
168
- $(document).on('shown.bs.modal','#<%= @modal %>', function () {
169
- console.log('J1AuthManager: entered modal SHOWN from <%= @modal %>');
170
-
171
- allModalButtons.forEach(function(button, index) {
172
- button.addEventListener('click', function() {
173
-
174
- // Modal topInfo|centralModalInfo
175
- // -------------------------------------------------------------------
176
- if (this.id === 'okButton') {
177
- console.log('J1AuthManager: clicked OK button on modal: <%= @modal %>');
178
- // jadams, 2019-09-06: to be clarified why 'route' is
179
- // 'requested_page' but not 'previous_page'
180
- // route = user_state.previous_page;
181
- // route = user_state.requested_page;
182
- // jadams, 2019-09-06: seems needed to read the cookie
183
- // setTimeout(function () {
184
- // window.location.replace = user_state.previous_page;
185
- // }, 100 );
186
- signIn.do = false;
187
- }
188
-
189
- // Modal SignInProtectedContent
190
- // -------------------------------------------------------------------
191
- if (this.id === 'signInButton') {
192
- console.log('J1AuthManager: user clicked signInButton button on modal: <%= @modal %>');
193
- signIn.do = true;
194
- // return;
195
- }
196
-
197
- if (this.id === 'exitButton') {
198
- console.log('J1AuthManager: user clicked exitButton button on modal: <%= @modal %>');
199
- passBack.do = true;
200
- // route = user_state.previous_page;
201
- // window.location.href = route;
202
- //return;
203
- } else {
204
- console.log('J1AuthManager: user clicked NO button on modal: <%= @modal %>');
205
- console.log('J1AuthManager: set default action on modal <%= @modal %> to: passBack');
206
- passBack.do = true;
207
- }
208
-
209
- });
210
- });
211
-
212
- return;
213
- });
214
-
215
- // -------------------------------------------------------------------------
216
- // actionHandler ALL modals (HIDDEN event)
217
- // process action objects
218
- // -------------------------------------------------------------------------
219
- // $(document).on('hide.bs.modal','#<%= @modal %>', function () {
220
- $(document).on('hidden.bs.modal','#<%= @modal %>', function () {
221
- var current_page = window.location.href;
222
- var providerPermissions = [];
223
- var pagePermission = 'na';
224
- var categoryAllowed;
225
- var user_session;
226
-
227
-
228
- console.log('J1AuthManager: entered modal HIDDEN from <%= @modal %>');
229
- console.log('J1AuthManager: current page detected as: ' + current_page);
230
-
231
- user_session = j1.readCookie(user_session_cookie_name);
232
- providerPermissions = user_session.provider_permissions;
233
-
234
- if (providerPermissions.indexOf('public') > -1) {
235
- console.log('J1AuthManager: current provider permissions contains: public');
236
- } else {
237
- console.log('J1AuthManager: add missing provider permission: public');
238
- providerPermissions.push('public');
239
- }
240
-
241
- if (user_session.requested_page === '/') {
242
- pagePermission = 'public';
243
- } else if (user_session.requested_page.indexOf('public') > -1) {
244
- pagePermission = 'public';
245
- } else if (user_session.requested_page.indexOf('protected') > -1) {
246
- pagePermission = 'protected';
247
- } if (user_session.requested_page.indexOf('private') > -1) {
248
- pagePermission = 'private';
249
- }
250
-
251
- categoryAllowed = providerPermissions.includes(pagePermission);
252
-
253
- console.log('J1AuthManager: provider permissions detected: ' + providerPermissions);
254
- console.log('J1AuthManager: page permissions detected: ' + pagePermission);
255
- console.log('J1AuthManager: category allowed: ' + categoryAllowed);
256
-
257
- // Manage actions
258
- // -----------------------------------------------------------------------
259
- if (signIn.do == true) {
260
- // pass to authentication
261
- route = "<%= @route %>"
262
- } else if (signIn.do == false) {
263
- // pass to (unchanged) current page
264
- route = user_state.current_page;
265
- } else if (passBack.do == true) {
266
- // calculate possible route to pass
267
- route = categoryAllowed ? user_state.requested_page : user_state.current_page;
268
- } else {
269
- // Modal closed w/o clear action, default route calculated|taken
270
- console.warn('J1AuthManager: no action detected');
271
- route = categoryAllowed ? user_state.requested_page : user_state.current_page;
272
- }
273
-
274
- // Redirect detected route
275
- // -----------------------------------------------------------------------
276
- // providerPermissions = user_state.provider_permissions;
277
- // providerPermissions.push('public');
278
- // categoryAllowed = providerPermissions.includes(user_state.page_permission);
279
-
280
- // Make sure that protected pages are ALWAYS checked for permissions
281
- // except on signIn
282
- // -------------------------------------------------------------------
283
- // if (!categoryAllowed && !signIn.do) {
284
- // // pass to home page
285
- // route = '/';
286
- // }
287
-
288
- // Redirect detected route
289
- // -----------------------------------------------------------------------
290
- console.log('J1AuthManager: pass to route: ' + route);
291
- // window.location.href = route;
292
- location.replace(route);
293
-
294
- });
295
- </script>
296
-
297
- </html>