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
@@ -8,7 +8,7 @@
8
8
  # https://github.com/FrDH/mmenu-light
9
9
  #
10
10
  # Copyright (C) 2021 Juergen Adams
11
- # Copyright (C) 2015-2020 Fred Heusschen
11
+ # Copyright (C) 2015-2021 Fred Heusschen
12
12
  #
13
13
  # J1 Template is licensed under the MIT License.
14
14
  # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
@@ -19,7 +19,7 @@
19
19
 
20
20
  /*!
21
21
  * Mmenu Light
22
- * mmenujs.com/mmenu-light v3.0.5
22
+ * mmenujs.com/mmenu-light v3.0.8
23
23
  *
24
24
  * Copyright (c) Fred Heusschen
25
25
  * www.frebsite.nl
@@ -1,14 +1,14 @@
1
1
  /*
2
2
  # -----------------------------------------------------------------------------
3
3
  # ~/assets/themes/j1/modules/mmenu_light/js/mmenu.js
4
- # Mobile Menu v3.0.5 implementation for J1 Template
4
+ # Mobile Menu v3.0.8 implementation for J1 Template
5
5
  #
6
6
  # Product/Info:
7
7
  # https://jekyll.one
8
8
  # https://github.com/FrDH/mmenu-light
9
9
  #
10
10
  # Copyright (C) 2021 Juergen Adams
11
- # Copyright (C) 2015-2020 Fred Heusschen
11
+ # Copyright (C) 2015-2021 Fred Heusschen
12
12
  #
13
13
  # J1 Template is licensed under the MIT License.
14
14
  # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
@@ -19,7 +19,7 @@
19
19
 
20
20
  /*!
21
21
  * Mmenu Light
22
- * mmenujs.com/mmenu-light v3.0.5
22
+ * mmenujs.com/mmenu-light v3.0.8
23
23
  *
24
24
  * Copyright (c) Fred Heusschen
25
25
  * www.frebsite.nl
@@ -143,11 +143,11 @@ div.copied {
143
143
  left: 50%;
144
144
  width: 200px;
145
145
  text-align: center;
146
- color: $grey-50;
147
- background-color: $blue;
148
- // border: 1px solid $indigo;
146
+ color: #FAFAFA;
147
+ background-color: #2196F3;
148
+ border: 1px solid #0D47A1;
149
149
  padding: 10px 15px;
150
150
  border-radius: 4px;
151
151
  margin-left: -100px;
152
- // box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
152
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
153
153
  }
@@ -16,4 +16,4 @@
16
16
  # For details, https://github.com/xLs51/Twemoji-Picker
17
17
  # -----------------------------------------------------------------------------
18
18
  */
19
- ul.emoji-list *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ul.emoji-list li{font-size:36px;float:left;display:inline-block;padding:2px;margin:4px}img.emoji{cursor:pointer;height:1em;width:1em;margin:0 .05em 0 .1em;vertical-align:-0.1em}.twemoji-wrap{position:relative}.twemoji-wrap img{margin:0 .05em 0 .1em;vertical-align:-0.1em}.twemoji-textarea{background-color:#FFF;border:1px solid #ccc;border-radius:3px;height:100%;padding:6px 30px 6px 12px;overflow-y:auto}.twemoji-textarea[contentEditable=true]:empty:before{content:attr(placeholder);color:#9e9e9e}.twemoji-picker{background-color:#fff;border:1px solid #e7e7e7;border-radius:3px;box-shadow:0 1px 1px rgba(0,0,0,0.05);position:absolute;right:0;z-index:1}.twemoji-icon-picker{margin-top:.5rem;margin-bottom:.5rem}.twemoji-icon-picker img{//position:absolute;right:21px;top:6px}.twemoji-icon-picker img,.twemoji-picker img{cursor:pointer;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.twemoji-picker-category{background-color:#e7e7e7}.twemoji-picker-category img{padding:5px}.twemoji-picker-category .active,.twemoji-picker-category span:hover{border-bottom:2px solid #728691;line-height:22px}.twemoji-picker-category .close{cursor:pointer;float:right;font-size:25px;font-weight:700;line-height:1;margin-right:2px;opacity:.5}.twemoji-picker-category .close:hover{opacity:.3}.twemoji-list{//overflow-y:scroll;margin-top:1.5rem;margin-left:1.5rem;overflow-y:auto}.twemoji-list img{margin-top:2px;padding:5px}.twemoji-list img:hover{background-color:#e7e7e7}div.copied{position:fixed;top:100px;left:50%;width:200px;text-align:center;color:$grey-50;background-color:$blue;// border:1px solid $indigo;padding:10px 15px;border-radius:4px;margin-left:-100px;// box-shadow:0 0 10px rgba(0,0,0,0.2)}
19
+ ul.emoji-list *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ul.emoji-list li{font-size:36px;float:left;display:inline-block;padding:2px;margin:4px}img.emoji{cursor:pointer;height:1em;width:1em;margin:0 .05em 0 .1em;vertical-align:-0.1em}.twemoji-wrap{position:relative}.twemoji-wrap img{margin:0 .05em 0 .1em;vertical-align:-0.1em}.twemoji-textarea{background-color:#FFF;border:1px solid #ccc;border-radius:3px;height:100%;padding:6px 30px 6px 12px;overflow-y:auto}.twemoji-textarea[contentEditable=true]:empty:before{content:attr(placeholder);color:#9e9e9e}.twemoji-picker{background-color:#fff;border:1px solid #e7e7e7;border-radius:3px;box-shadow:0 1px 1px rgba(0,0,0,0.05);position:absolute;right:0;z-index:1}.twemoji-icon-picker{margin-top:.5rem;margin-bottom:.5rem}.twemoji-icon-picker img{//position:absolute;right:21px;top:6px}.twemoji-icon-picker img,.twemoji-picker img{cursor:pointer;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.twemoji-picker-category{background-color:#e7e7e7}.twemoji-picker-category img{padding:5px}.twemoji-picker-category .active,.twemoji-picker-category span:hover{border-bottom:2px solid #728691;line-height:22px}.twemoji-picker-category .close{cursor:pointer;float:right;font-size:25px;font-weight:700;line-height:1;margin-right:2px;opacity:.5}.twemoji-picker-category .close:hover{opacity:.3}.twemoji-list{//overflow-y:scroll;margin-top:1.5rem;margin-left:1.5rem;overflow-y:auto}.twemoji-list img{margin-top:2px;padding:5px}.twemoji-list img:hover{background-color:#e7e7e7}div.copied{position:fixed;top:100px;left:50%;width:200px;text-align:center;color:#fafafa;background-color:#2196f3;border:1px solid #0d47a1;padding:10px 15px;border-radius:4px;margin-left:-100px;box-shadow:0 0 10px rgba(0,0,0,0.2)}
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2018 Twitter, Inc and other contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Twitter, Inc and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 xLs51
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 xLs51
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -16,18 +16,19 @@
16
16
  # For details, https://github.com/xLs51/Twemoji-Picker
17
17
  # -----------------------------------------------------------------------------
18
18
  */
19
- (function (e, c, g) {
19
+ (function ($, window, undefined) {
20
20
  var b = 150;
21
21
  var d = {};
22
- var a = "/assets/data/twa_v1.json";
23
- e.TwemojiPicker = function (j, i) {
22
+ var twa_database = "/assets/data/twa_v1.json";
23
+
24
+ $.TwemojiPicker = function (element, options) {
24
25
  var h = this;
25
- e.when(h._loadDatabase()).done(function (k) {
26
- h.$el = e(j);
27
- h._init(i)
26
+ $.when(this._loadDatabase()).done(function (e) {
27
+ h.$el = $(element);
28
+ h._init(options)
28
29
  })
29
30
  };
30
- e.TwemojiPicker.defaults = {
31
+ $.TwemojiPicker.defaults = {
31
32
  init: null,
32
33
  size: 25,
33
34
  icon: "grinning",
@@ -41,9 +42,9 @@
41
42
  pickerWidth: null,
42
43
  placeholder: "",
43
44
  };
44
- e.TwemojiPicker.prototype = {
45
+ $.TwemojiPicker.prototype = {
45
46
  _init: function (h) {
46
- this.options = e.extend(true, {}, e.TwemojiPicker.defaults, h);
47
+ this.options = $.extend(true, {}, $.TwemojiPicker.defaults, h);
47
48
  this._initPicker();
48
49
  this._initCategory();
49
50
  this._initTwemoji();
@@ -52,8 +53,8 @@
52
53
  this._initEvents()
53
54
  },
54
55
  _loadDatabase: function f() {
55
- return e.ajax({
56
- url: a,
56
+ return $.ajax({
57
+ url: twa_database,
57
58
  success: function (h) {
58
59
  if (typeof h == "string") {
59
60
  d = JSON.parse(h)
@@ -87,16 +88,16 @@
87
88
  this.categoryName = ["people", "nature", "object", "place", "symbol"];
88
89
  this.$picker.append('<div class="twemoji-picker-category"></div>');
89
90
  this.$pickerCategory = this.$picker.find(".twemoji-picker-category");
90
- e.each(this.categoryName, function (j, k) {
91
+ $.each(this.categoryName, function (j, k) {
91
92
  h.$pickerCategory.append('<span data-category="' + k + '">' + h.imageFromName(i[j]) + "</span>")
92
93
  });
93
94
  this.$pickerCategory.find("span:first").addClass("active")
94
95
  },
95
96
  _initTwemoji: function () {
96
97
  var h = this;
97
- e.each(this.categoryName, function (j, k) {
98
+ $.each(this.categoryName, function (j, k) {
98
99
  h.$picker.append('<div class="twemoji-list ' + k + '"></div>');
99
- e.each(d, function (i, l) {
100
+ $.each(d, function (i, l) {
100
101
  if (l.category === k) {
101
102
  h.$wrapper.find(".twemoji-picker ." + k).append('<span><img class="emoji" draggable="false" src="' + l.base64 + '" alt="' + l.value + '" title="' + l.name + '"></span>')
102
103
  }
@@ -146,27 +147,27 @@
146
147
  _initEvents: function () {
147
148
  var h = this;
148
149
  this.$textarea.on("keyup", function () {
149
- h.copyTextArea(e(this).html())
150
+ h.copyTextArea($(this).html())
150
151
  });
151
152
  this.$iconPicker.on("click", function () {
152
- var i = e(".twemoji-picker").height() + b;
153
- e("#picker").height(i);
154
- e(".toggle-button").toggleClass("mdi-toggle-switch-off mdi-toggle-switch");
153
+ var i = $(".twemoji-picker").height() + b;
154
+ $("#picker").height(i);
155
+ $(".toggle-button").toggleClass("mdi-toggle-switch-off mdi-toggle-switch");
155
156
  if (!h.openedPicker) {
156
157
  h.openPicker()
157
158
  } else {
158
159
  h.closePicker();
159
- e("#picker").height(h.$pickerHeigth)
160
+ $("#picker").height(h.$pickerHeigth)
160
161
  }
161
162
  });
162
163
  this.$clearTextarea.on("click", function () {
163
164
  h.copyTextArea("");
164
- e(h.$id).val("");
165
- e(".twemoji-textarea > .emoji-span").remove()
165
+ $(h.$id).val("");
166
+ $(".twemoji-textarea > .emoji-span").remove()
166
167
  });
167
168
  this.$pickerCategory.find("span").on("click", function () {
168
- var i = e(this).data("category");
169
- h.openCategory(e(this), i)
169
+ var i = $(this).data("category");
170
+ h.openCategory($(this), i)
170
171
  });
171
172
  this.$pickerCategory.find(".close").on("click", function () {
172
173
  if (h.openedPicker) {
@@ -174,24 +175,24 @@
174
175
  }
175
176
  });
176
177
  this.$twemojiList.find("img").on("click", function () {
177
- h.copyTwemoji(e(this))
178
+ h.copyTwemoji($(this))
178
179
  })
179
180
  },
180
- copyText: function (j) {
181
- var i = document.createElement("textarea");
182
- i.setAttribute("style", "position:fixed;opacity:0;top:100px;left:100px");
183
- i.value = j;
184
- document.body.appendChild(i);
185
- i.select();
186
- document.execCommand("copy");
187
- var h = document.createElement("div");
188
- h.setAttribute("class", "copied");
189
- h.appendChild(document.createTextNode("Copied to Clipboard"));
190
- document.body.appendChild(h);
191
- setTimeout(function () {
192
- document.body.removeChild(i);
193
- document.body.removeChild(h)
194
- }, 1500)
181
+ copyText: function (text) {
182
+ var copyFrom = document.createElement('textarea');
183
+ copyFrom.setAttribute("style", "position:fixed;opacity:0;top:100px;left:100px;");
184
+ copyFrom.value = text;
185
+ document.body.appendChild(copyFrom);
186
+ copyFrom.select();
187
+ document.execCommand('copy');
188
+ var copied = document.createElement('div');
189
+ copied.setAttribute('class', 'copied');
190
+ copied.appendChild(document.createTextNode('Copied to Clipboard'));
191
+ document.body.appendChild(copied);
192
+ setTimeout(function () {
193
+ document.body.removeChild(copyFrom);
194
+ document.body.removeChild(copied);
195
+ }, 1500);
195
196
  },
196
197
  openPicker: function () {
197
198
  this.$picker.show();
@@ -226,7 +227,7 @@
226
227
  this.$el.text(i)
227
228
  },
228
229
  imageFromName: function (i, j) {
229
- var h = e.grep(d, function (k) {
230
+ var h = $.grep(d, function (k) {
230
231
  return k.name == i
231
232
  });
232
233
  if (j) {
@@ -236,8 +237,8 @@
236
237
  },
237
238
  pasteAtCursor: function (m) {
238
239
  var l, h;
239
- if (c.getSelection) {
240
- l = c.getSelection();
240
+ if (window.getSelection) {
241
+ l = window.getSelection();
241
242
  if (l.getRangeAt && l.rangeCount) {
242
243
  h = l.getRangeAt(0);
243
244
  h.deleteContents();
@@ -264,10 +265,10 @@
264
265
  }
265
266
  }
266
267
  };
267
- e.fn.twemojiPicker = function (i) {
268
- var h = e.data(this, "twemojiPicker");
268
+ $.fn.twemojiPicker = function (i) {
269
+ var h = $.data(this, "twemojiPicker");
269
270
  this.each(function () {
270
- h ? h._init() : h = e.data(this, "twemojiPicker", new e.TwemojiPicker(this, i))
271
+ h ? h._init() : h = $.data(this, "twemojiPicker", new $.TwemojiPicker(this, i))
271
272
  });
272
273
  return h
273
274
  }
@@ -16,4 +16,4 @@
16
16
  # For details, https://github.com/xLs51/Twemoji-Picker
17
17
  # -----------------------------------------------------------------------------
18
18
  */
19
- (function(l,n,j){var h=150;var m={};var i="/assets/data/twa_v1.json";l.TwemojiPicker=function(a,b){var c=this;l.when(c._loadDatabase()).done(function(d){c.$el=l(a);c._init(b)})};l.TwemojiPicker.defaults={init:null,size:25,icon:"grinning",iconSize:25,height:100,width:null,category:["smile","cherry-blossom","video-game","oncoming-automobile","symbols"],categorySize:20,pickerPosition:null,pickerHeight:150,pickerWidth:null,placeholder:"",};l.TwemojiPicker.prototype={_init:function(a){this.options=l.extend(true,{},l.TwemojiPicker.defaults,a);this._initPicker();this._initCategory();this._initTwemoji();this._initText();this._initStyle();this._initEvents()},_loadDatabase:function k(){return l.ajax({url:i,success:function(a){if(typeof a=="string"){m=JSON.parse(a)}if(typeof a=="object"){m=a}}})},_initPicker:function(){var a=this;a.$id="#"+a.$el["0"].id;a.$pickerHeigth=a.options.height.replace("px","");a.$pickerHeigth=Number(a.$pickerHeigth);a.$wrapper=a.$el.wrap('<div class="twemoji-wrap"></div>').parent();a.$wrapper.append('<div class="twemoji-textarea" contentEditable="true" placeholder="'+a.options.placeholder+'"></div>');a.$wrapper.append('<div class="twemoji-textarea-duplicate"></div>');a.$wrapper.append('<div class="twemoji-icon-picker"> <span id="open-group" class="mr-2"><button type="button" name="open-group" class="btn btn-raised btn-flex btn-info mr-2"><i class="toggle-button mdi mdi-lg mr-1 mdi-toggle-switch-off"></i> Picker </button></span><span id="clear-textarea"><button type="button" name="clear-textarea" class="btn btn-raised btn-flex btn-secondary"><i class="mdi mdi-sticker-emoji mdi-lg mr-1"></i> Clear </button></span></div>');a.$wrapper.append('<div class="twemoji-picker"></div>');a.$el.hide();a.$textarea=a.$wrapper.find(".twemoji-textarea");a.$textareaDuplicate=a.$wrapper.find(".twemoji-textarea-duplicate").hide();a.$iconPicker=a.$wrapper.find("#open-group");a.$clearTextarea=a.$wrapper.find("#clear-textarea");a.$picker=a.$wrapper.find(".twemoji-picker").hide()},_initCategory:function(){var b=this;var a=this.options.category;this.categoryName=["people","nature","object","place","symbol"];this.$picker.append('<div class="twemoji-picker-category"></div>');this.$pickerCategory=this.$picker.find(".twemoji-picker-category");l.each(this.categoryName,function(d,c){b.$pickerCategory.append('<span data-category="'+c+'">'+b.imageFromName(a[d])+"</span>")});this.$pickerCategory.find("span:first").addClass("active")},_initTwemoji:function(){var a=this;l.each(this.categoryName,function(c,b){a.$picker.append('<div class="twemoji-list '+b+'"></div>');l.each(m,function(e,d){if(d.category===b){a.$wrapper.find(".twemoji-picker ."+b).append('<span><img class="emoji" draggable="false" src="'+d.base64+'" alt="'+d.value+'" title="'+d.name+'"></span>')}})});this.$twemojiList=this.$picker.find(".twemoji-list");this.$twemojiList.not(":first").hide()},_initText:function(){if(this.options.init){var a=this.options.init;var b=/:([\w-]+):/g;var c;while(c==b.exec(a)){a=a.replace(c[0],this.imageFromName(c[1],true))}this.$textarea.html(a);this.copyTextArea(this.$textarea.html())}},_initStyle:function(){this.$wrapper.css({width:this.options.width?this.options.width:"100%",height:this.options.height?this.options.height:"",});this.$wrapper.find("img").css({width:this.options.size,height:this.options.size,});this.$iconPicker.css({width:this.options.iconSize,height:this.options.iconSize,});this.$pickerCategory.find("img").css({width:this.options.categorySize,height:this.options.categorySize,});this.$twemojiList.css({width:this.options.pickerWidth?this.options.pickerWidth:"100%",height:this.options.pickerHeight,});this.$picker.css({width:this.options.pickerWidth?this.options.pickerWidth:"100%",top:this.options.pickerPosition==="top"?"-"+this.$picker.outerHeight()+"px":"",})},_initEvents:function(){var a=this;this.$textarea.on("keyup",function(){a.copyTextArea(l(this).html())});this.$iconPicker.on("click",function(){var b=l(".twemoji-picker").height()+h;l("#picker").height(b);l(".toggle-button").toggleClass("mdi-toggle-switch-off mdi-toggle-switch");if(!a.openedPicker){a.openPicker()}else{a.closePicker();l("#picker").height(a.$pickerHeigth)}});this.$clearTextarea.on("click",function(){a.copyTextArea("");l(a.$id).val("");l(".twemoji-textarea > .emoji-span").remove()});this.$pickerCategory.find("span").on("click",function(){var b=l(this).data("category");a.openCategory(l(this),b)});this.$pickerCategory.find(".close").on("click",function(){if(a.openedPicker){a.closePicker()}});this.$twemojiList.find("img").on("click",function(){a.copyTwemoji(l(this))})},copyText:function(a){var b=document.createElement("textarea");b.setAttribute("style","position:fixed;opacity:0;top:100px;left:100px");b.value=a;document.body.appendChild(b);b.select();document.execCommand("copy");var c=document.createElement("div");c.setAttribute("class","copied");c.appendChild(document.createTextNode("Copied to Clipboard"));document.body.appendChild(c);setTimeout(function(){document.body.removeChild(b);document.body.removeChild(c)},1500)},openPicker:function(){this.$picker.show();this.openedPicker=true},closePicker:function(){this.$picker.hide();this.openedPicker=false},openCategory:function(b,a){this.$pickerCategory.find("span").removeClass("active");b.addClass("active");this.$twemojiList.not(".twemoji-picker ."+a).hide();this.$twemojiList.filter(".twemoji-picker ."+a).show()},copyTwemoji:function(a){var d=a.attr("alt");var b=a.attr("src");var c=a.attr("title");var e="emoji:"+c+"[]";this.copyText(e);this.$textarea.focus();this.pasteAtCursor('<span class="emoji-span"><img class="emoji" src="'+b+'" title="'+c+'" alt="'+d+'" width="'+this.options.size+'" height="'+this.options.size+'"> '+e+"</span> ");this.copyTextArea(this.$textarea.html())},copyTextArea:function(a){var c=this.$textareaDuplicate.html(a);c.find("img").replaceWith(function(){return this.alt});var b=c.html();this.$el.text(b)},imageFromName:function(b,a){var c=l.grep(m,function(d){return d.name==b});if(a){return'<img class="emoji" src="'+c[0].base64+'" alt="'+c[0].value+'" width="'+this.options.size+'" height="'+this.options.size+'">'}return'<img class="emoji" draggable="false" src="'+c[0].base64+'" alt="'+b+'">'},pasteAtCursor:function(a){var b,f;if(n.getSelection){b=n.getSelection();if(b.getRangeAt&&b.rangeCount){f=b.getRangeAt(0);f.deleteContents();var e=document.createElement("div");e.innerHTML=a;var g=document.createDocumentFragment(),c,d;while((c=e.firstChild)){d=g.appendChild(c)}f.insertNode(g);if(d){f=f.cloneRange();f.setStartAfter(d);f.collapse(true);b.removeAllRanges();b.addRange(f)}}}else{if(document.selection&&document.selection.type!="Control"){document.selection.createRange().pasteHTML(a)}}}};l.fn.twemojiPicker=function(a){var b=l.data(this,"twemojiPicker");this.each(function(){b?b._init():b=l.data(this,"twemojiPicker",new l.TwemojiPicker(this,a))});return b}})(jQuery,window);
19
+ (function(i,g,k){var c=150;var j={};var e="/assets/data/twa_v1.json";i.TwemojiPicker=function(b,a){var d=this;i.when(this._loadDatabase()).done(function(f){d.$el=i(b);d._init(a)})};i.TwemojiPicker.defaults={init:null,size:25,icon:"grinning",iconSize:25,height:100,width:null,category:["smile","cherry-blossom","video-game","oncoming-automobile","symbols"],categorySize:20,pickerPosition:null,pickerHeight:150,pickerWidth:null,placeholder:"",};i.TwemojiPicker.prototype={_init:function(a){this.options=i.extend(true,{},i.TwemojiPicker.defaults,a);this._initPicker();this._initCategory();this._initTwemoji();this._initText();this._initStyle();this._initEvents()},_loadDatabase:function h(){return i.ajax({url:e,success:function(a){if(typeof a=="string"){j=JSON.parse(a)}if(typeof a=="object"){j=a}}})},_initPicker:function(){var a=this;a.$id="#"+a.$el["0"].id;a.$pickerHeigth=a.options.height.replace("px","");a.$pickerHeigth=Number(a.$pickerHeigth);a.$wrapper=a.$el.wrap('<div class="twemoji-wrap"></div>').parent();a.$wrapper.append('<div class="twemoji-textarea" contentEditable="true" placeholder="'+a.options.placeholder+'"></div>');a.$wrapper.append('<div class="twemoji-textarea-duplicate"></div>');a.$wrapper.append('<div class="twemoji-icon-picker"><span id="open-group" class="mr-2" style="width: 2rem; height: 2rem;"><button type="button" name="open-group" class="btn btn-raised btn-flex btn-primary mr-2"><i class="toggle-button mdi mdi-lg mr-1 mdi-toggle-switch-off"></i> Picker <div class="ripple-container"></div></button></span><span id="clear-textarea" style="width: 2rem; height: 2rem;"><button type="button" name="clear-textarea" class="btn btn-raised btn-flex btn-primary"><i class="mdi mdi-close mdi-lg mr-1"></i> Clear </button></span></div>');a.$wrapper.append('<div class="twemoji-picker"></div>');a.$el.hide();a.$textarea=a.$wrapper.find(".twemoji-textarea");a.$textareaDuplicate=a.$wrapper.find(".twemoji-textarea-duplicate").hide();a.$iconPicker=a.$wrapper.find("#open-group");a.$clearTextarea=a.$wrapper.find("#clear-textarea");a.$picker=a.$wrapper.find(".twemoji-picker").hide()},_initCategory:function(){var b=this;var a=this.options.category;this.categoryName=["people","nature","object","place","symbol"];this.$picker.append('<div class="twemoji-picker-category"></div>');this.$pickerCategory=this.$picker.find(".twemoji-picker-category");i.each(this.categoryName,function(f,d){b.$pickerCategory.append('<span data-category="'+d+'">'+b.imageFromName(a[f])+"</span>")});this.$pickerCategory.find("span:first").addClass("active")},_initTwemoji:function(){var a=this;i.each(this.categoryName,function(d,b){a.$picker.append('<div class="twemoji-list '+b+'"></div>');i.each(j,function(m,f){if(f.category===b){a.$wrapper.find(".twemoji-picker ."+b).append('<span><img class="emoji" draggable="false" src="'+f.base64+'" alt="'+f.value+'" title="'+f.name+'"></span>')}})});this.$twemojiList=this.$picker.find(".twemoji-list");this.$twemojiList.not(":first").hide()},_initText:function(){if(this.options.init){var a=this.options.init;var b=/:([\w-]+):/g;var d;while(d==b.exec(a)){a=a.replace(d[0],this.imageFromName(d[1],true))}this.$textarea.html(a);this.copyTextArea(this.$textarea.html())}},_initStyle:function(){this.$wrapper.css({width:this.options.width?this.options.width:"100%",height:this.options.height?this.options.height:"",});this.$wrapper.find("img").css({width:this.options.size,height:this.options.size,});this.$iconPicker.css({width:this.options.iconSize,height:this.options.iconSize,});this.$pickerCategory.find("img").css({width:this.options.categorySize,height:this.options.categorySize,});this.$twemojiList.css({width:this.options.pickerWidth?this.options.pickerWidth:"100%",height:this.options.pickerHeight,});this.$picker.css({width:this.options.pickerWidth?this.options.pickerWidth:"100%",top:this.options.pickerPosition==="top"?"-"+this.$picker.outerHeight()+"px":"",})},_initEvents:function(){var a=this;this.$textarea.on("keyup",function(){a.copyTextArea(i(this).html())});this.$iconPicker.on("click",function(){var b=i(".twemoji-picker").height()+c;i("#picker").height(b);i(".toggle-button").toggleClass("mdi-toggle-switch-off mdi-toggle-switch");if(!a.openedPicker){a.openPicker()}else{a.closePicker();i("#picker").height(a.$pickerHeigth)}});this.$clearTextarea.on("click",function(){a.copyTextArea("");i(a.$id).val("");i(".twemoji-textarea > .emoji-span").remove()});this.$pickerCategory.find("span").on("click",function(){var b=i(this).data("category");a.openCategory(i(this),b)});this.$pickerCategory.find(".close").on("click",function(){if(a.openedPicker){a.closePicker()}});this.$twemojiList.find("img").on("click",function(){a.copyTwemoji(i(this))})},copyText:function(d){var b=document.createElement("textarea");b.setAttribute("style","position:fixed;opacity:0;top:100px;left:100px;");b.value=d;document.body.appendChild(b);b.select();document.execCommand("copy");var a=document.createElement("div");a.setAttribute("class","copied");a.appendChild(document.createTextNode("Copied to Clipboard"));document.body.appendChild(a);setTimeout(function(){document.body.removeChild(b);document.body.removeChild(a)},1500)},openPicker:function(){this.$picker.show();this.openedPicker=true},closePicker:function(){this.$picker.hide();this.openedPicker=false},openCategory:function(b,a){this.$pickerCategory.find("span").removeClass("active");b.addClass("active");this.$twemojiList.not(".twemoji-picker ."+a).hide();this.$twemojiList.filter(".twemoji-picker ."+a).show()},copyTwemoji:function(a){var f=a.attr("alt");var b=a.attr("src");var d=a.attr("title");var m="emoji:"+d+"[]";this.copyText(m);this.$textarea.focus();this.pasteAtCursor('<span class="emoji-span"><img class="emoji" src="'+b+'" title="'+d+'" alt="'+f+'" width="'+this.options.size+'" height="'+this.options.size+'"> '+m+"</span> ");this.copyTextArea(this.$textarea.html())},copyTextArea:function(a){var d=this.$textareaDuplicate.html(a);d.find("img").replaceWith(function(){return this.alt});var b=d.html();this.$el.text(b)},imageFromName:function(b,a){var d=i.grep(j,function(f){return f.name==b});if(a){return'<img class="emoji" src="'+d[0].base64+'" alt="'+d[0].value+'" width="'+this.options.size+'" height="'+this.options.size+'">'}return'<img class="emoji" draggable="false" src="'+d[0].base64+'" alt="'+b+'">'},pasteAtCursor:function(a){var b,p;if(g.getSelection){b=g.getSelection();if(b.getRangeAt&&b.rangeCount){p=b.getRangeAt(0);p.deleteContents();var o=document.createElement("div");o.innerHTML=a;var q=document.createDocumentFragment(),d,f;while((d=o.firstChild)){f=q.appendChild(d)}p.insertNode(q);if(f){p=p.cloneRange();p.setStartAfter(f);p.collapse(true);b.removeAllRanges();b.addRange(p)}}}else{if(document.selection&&document.selection.type!="Control"){document.selection.createRange().pasteHTML(a)}}}};i.fn.twemojiPicker=function(a){var b=i.data(this,"twemojiPicker");this.each(function(){b?b._init():b=i.data(this,"twemojiPicker",new i.TwemojiPicker(this,a))});return b}})(jQuery,window);
data/exe/j1 CHANGED
@@ -17,6 +17,8 @@ Mercenary.program(:j1) do |p|
17
17
  c.description 'Generates a starter site scaffold in PATH'
18
18
  c.option 'force', '--force', 'Force a site to be created even the PATH already exists'
19
19
  c.option "skip-bundle", "--skip-bundle", "Skip 'bundle install'"
20
+ c.option "skip-patches", "--skip-patches", "Skip to install any PATCHES buildin with J1"
21
+ c.option "system", "--system", "Run 'bundle install' for the Ruby SYSTEM gem folder"
20
22
  c.action do |args, options|
21
23
  J1::Commands::Generate.process(args, options)
22
24
  end
@@ -1,4 +1,6 @@
1
1
  require 'erb'
2
+ require 'rbconfig'
3
+ require 'fileutils'
2
4
 
3
5
  module J1
4
6
  module Commands
@@ -11,7 +13,8 @@ module J1
11
13
  c.description 'Generates a starter site scaffold in PATH'
12
14
  c.option 'force', '--force', 'Force a site to be created even the PATH already exists'
13
15
  c.option 'skip-bundle', '--skip-bundle', "Skip 'bundle install'"
14
-
16
+ c.option "skip-patches", "--skip-patches", "Skip to install any PATCHES buildin with J1"
17
+ c.option "system", "--system", "Run 'bundle install' for the Ruby SYSTEM gem folder"
15
18
  c.action do |args, options|
16
19
  J1::Commands::Generate.process(args, options)
17
20
  end
@@ -19,6 +22,10 @@ module J1
19
22
 
20
23
  end
21
24
 
25
+ def is_windows?
26
+ RbConfig::CONFIG["host_os"] =~ %r!mswin|mingw|cygwin!i
27
+ end
28
+
22
29
  def process(args, options = {})
23
30
  raise ArgumentError, 'You must specify a path.' if args.empty?
24
31
  new_blog_path = File.expand_path(args.join(' '), Dir.pwd)
@@ -48,7 +55,6 @@ module J1
48
55
  end
49
56
 
50
57
  # Internal: Gets the filename of the sample post to be created
51
- #
52
58
  # Returns the filename of the sample post, as a String
53
59
  def initialized_post_name
54
60
  "collections/posts/public/featured/_posts/#{Time.now.strftime("%Y-%m-%d")}-welcome-to-j1-template.adoc"
@@ -56,53 +62,12 @@ module J1
56
62
 
57
63
  private
58
64
 
59
- def gemfile_contents
60
- <<-RUBY
61
- source "https://rubygems.org"
62
- #ruby RUBY_VERSION
63
-
64
- # Hello! This is where you manage which Jekyll version is used to run.
65
- # When you want to use a different version, change it below, save the
66
- # file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
67
- #
68
- # bundle exec jekyll serve
69
- #
70
- # This will help ensure the proper Jekyll version is running.
71
- # Happy Jekylling!
72
- # jadams
73
- #gem "jekyll", "#{Jekyll::VERSION}"
74
- gem "jekyll", "~> 3.8"
75
-
76
- # This is the default theme for generate Jekyll sites. You may change this to anything you like.
77
- gem "minima", "~> 2.0"
78
-
79
- # If you want to use GitHub Pages, remove the "gem "jekyll"" above and
80
- # uncomment the line below. To upgrade, run `bundle update github-pages`.
81
- # gem "github-pages", group: :jekyll_plugins
82
-
83
- # If you have any plugins, put them here!
84
- group :jekyll_plugins do
85
- gem "jekyll-feed", "~> 0.6"
86
- end
87
-
88
- # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
89
- gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
90
-
91
- RUBY
92
- end
93
-
94
65
  def create_site(new_blog_path)
95
66
  create_sample_files new_blog_path
96
67
 
97
68
  File.open(File.expand_path(initialized_post_name, new_blog_path), 'w') do |f|
98
69
  f.write(scaffold_post_content)
99
70
  end
100
-
101
- # jadams, do NOT generate a buildin Gemfile
102
- #
103
- # File.open(File.expand_path("Gemfile", new_blog_path), "w") do |f|
104
- # f.write(gemfile_contents)
105
- # end
106
71
  end
107
72
 
108
73
  def preserve_source_location?(path, options)
@@ -125,23 +90,33 @@ module J1
125
90
  # After a generate blog has been created, print a success notification and
126
91
  # then automatically execute bundle install from within the generate blog dir
127
92
  # unless the user opts to generate a blank blog or skip 'bundle install'.
128
-
129
93
  def after_install(path, options = {})
130
94
  unless options['skip-bundle']
131
- bundle_install path
95
+ bundle_install(path, options)
96
+ unless options['skip-patches']
97
+ patch_install(options)
98
+ else
99
+ J1.logger.info "Install patches skipped ..."
100
+ end
132
101
  end
133
102
  unless options['force']
134
103
  J1.logger.info "Generated Jekyll site installed in folder #{path}"
135
104
  else
136
105
  J1.logger.info "Generated Jekyll site force installed in folder #{path}"
137
106
  end
138
- J1.logger.info 'Installation of RubyGems (bundle) skipped' if options['skip-bundle']
107
+ J1.logger.info 'Installation (bundle) of RubyGems skipped' if options['skip-bundle']
139
108
  end
140
109
 
141
- def bundle_install(path)
110
+ def bundle_install(path, options)
142
111
  J1::External.require_with_graceful_fail 'bundler'
143
112
  J1.logger.info "Running bundle install in #{path} ..."
144
113
  Dir.chdir(path) do
114
+ if options['system']
115
+ J1.logger.info "Install bundle in Ruby gem SYSTEM folder ..."
116
+ else
117
+ J1.logger.info "Install bundle in USER gem folder ~/.gem ..."
118
+ process, output = J1::Utils::Exec.run('bundle', 'config', 'set', '--local', 'path', '~/.gem')
119
+ end
145
120
  process, output = J1::Utils::Exec.run('bundle', 'install')
146
121
  output.to_s.each_line do |line|
147
122
  J1.logger.info('Bundler:', line.strip) unless line.to_s.empty?
@@ -149,6 +124,31 @@ module J1
149
124
  raise SystemExit unless process.success?
150
125
  end
151
126
  end
127
+
128
+ def patch_install(options)
129
+ if is_windows?
130
+ curr_path = File.expand_path(File.dirname(File.dirname(__FILE__)))
131
+ patch_gem = 'eventmachine-1.2.7-x64-mingw32'
132
+ patch_source_path = curr_path + '/../patches/rubygems' + '/' + patch_gem + '/lib/2.6'
133
+
134
+ J1.logger.info "Install patches in USER gem folder ~/.gem ..."
135
+ process, output = J1::Utils::Exec.run('gem', 'env', 'gempath')
136
+ raise SystemExit unless process.success?
137
+
138
+ result = output.split(';')
139
+ user_path = result[0]
140
+ system_path = result[1]
141
+ if options['system']
142
+ J1.logger.info "Install patches on path #{system_path} ..."
143
+ else
144
+ J1.logger.info "Install patches on path #{user_path} ..."
145
+ src = patch_source_path
146
+ dest = user_path + '/gems/' + patch_gem + '/lib'
147
+ FileUtils.cp_r(src, dest)
148
+ end
149
+ end
150
+ end
151
+
152
152
  end
153
153
  end
154
154
  end