adminlte2-rails 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/README.md +30 -13
  4. data/lib/adminlte2/rails/version.rb +1 -1
  5. data/lib/generators/{admin_lte → admin_lte2}/USAGE +0 -0
  6. data/lib/generators/{admin_lte/admin_lte_generator.rb → admin_lte2/admin_lte2_generator.rb} +27 -10
  7. data/lib/generators/{admin_lte → admin_lte2}/templates/_admin_lte_2_header.html.erb +0 -0
  8. data/lib/generators/{admin_lte → admin_lte2}/templates/_admin_lte_2_sidebar.html.erb +0 -0
  9. data/lib/generators/{admin_lte → admin_lte2}/templates/admin_lte_2.html.erb +0 -0
  10. data/lib/generators/{admin_lte → admin_lte2}/templates/admin_lte_2_login.html.erb +0 -0
  11. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/USAGE +3 -1
  12. data/lib/generators/{admin_lte_plugins/admin_lte_plugins_generator.rb → admin_lte2_plugins/admin_lte2_plugins_generator.rb} +30 -3
  13. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/ChartJS/Chart.js +0 -0
  14. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/Sparkline/jquery.sparkline.js +0 -0
  15. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/bootstrap-slider/bootstrap-slider.js +0 -0
  16. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/bootstrap-slider/slider.css +0 -0
  17. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/bootstrap-wysihtml5/bootstrap3-wysihtml5.css +0 -0
  18. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/bootstrap-wysihtml5/bootstrap3-wysihtml5.js +0 -0
  19. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/bootstrap-colorpicker.css +0 -0
  20. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/bootstrap-colorpicker.js +0 -0
  21. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/img/alpha-horizontal.png +0 -0
  22. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/img/alpha.png +0 -0
  23. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/img/hue-horizontal.png +0 -0
  24. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/img/hue.png +0 -0
  25. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/colorpicker/img/saturation.png +0 -0
  26. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/bootstrap-datepicker.js +0 -0
  27. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/datepicker3.css +0 -0
  28. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ar.js +0 -0
  29. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.az.js +0 -0
  30. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.bg.js +0 -0
  31. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ca.js +0 -0
  32. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.cs.js +0 -0
  33. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.cy.js +0 -0
  34. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.da.js +0 -0
  35. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.de.js +0 -0
  36. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.el.js +0 -0
  37. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.es.js +0 -0
  38. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.et.js +0 -0
  39. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.fa.js +0 -0
  40. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.fi.js +0 -0
  41. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.fr.js +0 -0
  42. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.gl.js +0 -0
  43. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.he.js +0 -0
  44. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.hr.js +0 -0
  45. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.hu.js +0 -0
  46. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.id.js +0 -0
  47. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.is.js +0 -0
  48. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.it.js +0 -0
  49. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ja.js +0 -0
  50. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ka.js +0 -0
  51. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.kk.js +0 -0
  52. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.kr.js +0 -0
  53. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.lt.js +0 -0
  54. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.lv.js +0 -0
  55. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.mk.js +0 -0
  56. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ms.js +0 -0
  57. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.nb.js +0 -0
  58. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.nl-BE.js +0 -0
  59. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.nl.js +0 -0
  60. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.no.js +0 -0
  61. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.pl.js +0 -0
  62. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.pt-BR.js +0 -0
  63. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.pt.js +0 -0
  64. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ro.js +0 -0
  65. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.rs-latin.js +0 -0
  66. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.rs.js +0 -0
  67. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ru.js +0 -0
  68. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.sk.js +0 -0
  69. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.sl.js +0 -0
  70. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.sq.js +0 -0
  71. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.sv.js +0 -0
  72. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.sw.js +0 -0
  73. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.th.js +0 -0
  74. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.tr.js +0 -0
  75. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.ua.js +0 -0
  76. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.vi.js +0 -0
  77. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.zh-CN.js +0 -0
  78. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/datepicker/locales/bootstrap-datepicker.zh-TW.js +0 -0
  79. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/daterangepicker/daterangepicker-bs3.css +0 -0
  80. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/daterangepicker/daterangepicker.js +0 -0
  81. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/fullcalendar/fullcalendar.css +0 -0
  82. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/fullcalendar/fullcalendar.js +0 -0
  83. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/fullcalendar/fullcalendar.print.css +0 -0
  84. data/lib/generators/admin_lte2_plugins/templates/iCheck/all.css +61 -0
  85. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/_all.css +560 -0
  86. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/aero.css +56 -0
  87. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/aero.png +0 -0
  88. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/aero@2x.png +0 -0
  89. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/blue.css +56 -0
  90. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/blue.png +0 -0
  91. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/blue@2x.png +0 -0
  92. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/flat.css +56 -0
  93. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/flat.png +0 -0
  94. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/flat@2x.png +0 -0
  95. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/green.css +56 -0
  96. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/green.png +0 -0
  97. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/green@2x.png +0 -0
  98. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/grey.css +56 -0
  99. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/grey.png +0 -0
  100. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/grey@2x.png +0 -0
  101. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/orange.css +56 -0
  102. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/orange.png +0 -0
  103. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/orange@2x.png +0 -0
  104. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/pink.css +56 -0
  105. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/pink.png +0 -0
  106. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/pink@2x.png +0 -0
  107. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/purple.css +56 -0
  108. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/purple.png +0 -0
  109. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/purple@2x.png +0 -0
  110. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/red.css +56 -0
  111. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/red.png +0 -0
  112. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/red@2x.png +0 -0
  113. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/yellow.css +56 -0
  114. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/yellow.png +0 -0
  115. data/lib/generators/admin_lte2_plugins/templates/iCheck/flat/yellow@2x.png +0 -0
  116. data/lib/generators/admin_lte2_plugins/templates/iCheck/futurico/futurico.css +56 -0
  117. data/lib/generators/admin_lte2_plugins/templates/iCheck/futurico/futurico.png +0 -0
  118. data/lib/generators/admin_lte2_plugins/templates/iCheck/futurico/futurico@2x.png +0 -0
  119. data/lib/generators/admin_lte2_plugins/templates/iCheck/icheck.js +478 -0
  120. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/_all.css +740 -0
  121. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/aero.css +74 -0
  122. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/blue.css +74 -0
  123. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/green.css +74 -0
  124. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/grey.css +74 -0
  125. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/line.css +74 -0
  126. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/line.png +0 -0
  127. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/line@2x.png +0 -0
  128. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/orange.css +74 -0
  129. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/pink.css +74 -0
  130. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/purple.css +74 -0
  131. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/red.css +74 -0
  132. data/lib/generators/admin_lte2_plugins/templates/iCheck/line/yellow.css +74 -0
  133. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/_all.css +557 -0
  134. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/aero.css +62 -0
  135. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/aero.png +0 -0
  136. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/aero@2x.png +0 -0
  137. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/blue.css +62 -0
  138. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/blue.png +0 -0
  139. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/blue@2x.png +0 -0
  140. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/green.css +62 -0
  141. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/green.png +0 -0
  142. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/green@2x.png +0 -0
  143. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/grey.css +62 -0
  144. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/grey.png +0 -0
  145. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/grey@2x.png +0 -0
  146. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/minimal.css +62 -0
  147. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/minimal.png +0 -0
  148. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/minimal@2x.png +0 -0
  149. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/orange.css +62 -0
  150. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/orange.png +0 -0
  151. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/orange@2x.png +0 -0
  152. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/pink.css +62 -0
  153. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/pink.png +0 -0
  154. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/pink@2x.png +0 -0
  155. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/purple.css +62 -0
  156. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/purple.png +0 -0
  157. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/purple@2x.png +0 -0
  158. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/red.css +62 -0
  159. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/red.png +0 -0
  160. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/red@2x.png +0 -0
  161. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/yellow.css +62 -0
  162. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/yellow.png +0 -0
  163. data/lib/generators/admin_lte2_plugins/templates/iCheck/minimal/yellow@2x.png +0 -0
  164. data/lib/generators/admin_lte2_plugins/templates/iCheck/polaris/polaris.css +62 -0
  165. data/lib/generators/admin_lte2_plugins/templates/iCheck/polaris/polaris.png +0 -0
  166. data/lib/generators/admin_lte2_plugins/templates/iCheck/polaris/polaris@2x.png +0 -0
  167. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/_all.css +620 -0
  168. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/aero.css +62 -0
  169. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/aero.png +0 -0
  170. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/aero@2x.png +0 -0
  171. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/blue.css +62 -0
  172. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/blue.png +0 -0
  173. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/blue@2x.png +0 -0
  174. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/green.css +62 -0
  175. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/green.png +0 -0
  176. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/green@2x.png +0 -0
  177. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/grey.css +62 -0
  178. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/grey.png +0 -0
  179. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/grey@2x.png +0 -0
  180. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/orange.css +62 -0
  181. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/orange.png +0 -0
  182. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/orange@2x.png +0 -0
  183. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/pink.css +62 -0
  184. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/pink.png +0 -0
  185. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/pink@2x.png +0 -0
  186. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/purple.css +62 -0
  187. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/purple.png +0 -0
  188. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/purple@2x.png +0 -0
  189. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/red.css +62 -0
  190. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/red.png +0 -0
  191. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/red@2x.png +0 -0
  192. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/square.css +62 -0
  193. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/square.png +0 -0
  194. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/square@2x.png +0 -0
  195. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/yellow.css +62 -0
  196. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/yellow.png +0 -0
  197. data/lib/generators/admin_lte2_plugins/templates/iCheck/square/yellow@2x.png +0 -0
  198. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/jVectorMap/jquery-jvectormap-1.2.2.css +0 -0
  199. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/jVectorMap/jquery-jvectormap-1.2.2.min.js +0 -0
  200. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/jVectorMap/jquery-jvectormap-world-mill-en.js +0 -0
  201. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/knob/jquery.knob.js +0 -0
  202. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/morris/morris.css +0 -0
  203. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/morris/morris.js +0 -0
  204. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/pace/pace.js +0 -0
  205. data/lib/generators/admin_lte2_plugins/templates/slimScroll/jquery.slimscroll.js +490 -0
  206. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/timepicker/bootstrap-timepicker.css +0 -0
  207. data/lib/generators/{admin_lte_plugins → admin_lte2_plugins}/templates/timepicker/bootstrap-timepicker.js +0 -0
  208. data/vendor/assets/javascripts/app.js +70 -70
  209. data/vendor/assets/stylesheets/{AdminLTE.css → AdminLTE/AdminLTE.css} +0 -0
  210. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/_all-skins.css +0 -0
  211. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/_all-skins.min.css +0 -0
  212. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-black.css +0 -0
  213. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-black.min.css +0 -0
  214. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-blue.css +0 -0
  215. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-blue.min.css +0 -0
  216. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-green.css +0 -0
  217. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-green.min.css +0 -0
  218. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-purple.css +0 -0
  219. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-purple.min.css +0 -0
  220. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-red.css +0 -0
  221. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-red.min.css +0 -0
  222. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-yellow.css +0 -0
  223. data/vendor/assets/stylesheets/{skins → AdminLTE/skins}/skin-yellow.min.css +0 -0
  224. metadata +221 -105
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a59c95f2a105b62eecbc05d5436af6ff1a1e6f24
4
- data.tar.gz: ea0595f462e7a426ec0134ab616d81feb9fa9043
3
+ metadata.gz: e09cf5a98af9b497f3287ab8ef935cbdcfda56db
4
+ data.tar.gz: ca13a357e5dd50646e88db6d608e1d4a7b551574
5
5
  SHA512:
6
- metadata.gz: a0a375c02f3930c25c25202c227ff71352ddbd54ae673436d3c529bbc24a4ab70dd6d0e8bb2a1fdd3670149d66dcb8aa6bc42c321d71bb1f1656253089519edb
7
- data.tar.gz: 2f6f53d1f486db7b2667c3db076e7f704f1ee7cd6782f03d6f0b0a35aeb270f0305329f2887b8ae005ce11059c3d9895c2284a6566b9d4214f1d30ea3483ab05
6
+ metadata.gz: 9bb5dff0f75e190e563a1c848c38d1c5885e686864a4f6b14c7e81deb12822ba4f0350a6963ad99e349eb8ea15de2673583cdec4c91b2b8396648aff25f12538
7
+ data.tar.gz: bc0abaa444314cb71f25962fc260a3536bb1f63f3b6ac053480e7b858357a942330a04a7c0d5c9ba9ff88530a6e1c148161be2ec7d9824fc26b32a7655a1c5f7
@@ -0,0 +1,11 @@
1
+ ## 0.0.3 (In Progress)
2
+
3
+ - Install Generator:
4
+ - Create Login view without including Devise
5
+ - New plugins:
6
+ - [slimScroll](https://github.com/rochal/jQuery-slimScroll)
7
+ - [iCheck](https://github.com/fronteed/iCheck)
8
+ - FIX:
9
+ - Install Generator: Use stylesheet_engine when injecting data in file
10
+ - Plugin Generator: Use stylesheet_engine when injecting data in file
11
+
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Adminlte2::Rails
1
+ # AdminLTE 2 Rails Gem
2
2
 
3
- TODO: Write a gem description
3
+ [AdminLTE](https://github.com/almasaeed2010/AdminLTE) is a premium Bootstrap theme for backend.
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,32 +18,49 @@ Or install it yourself as:
18
18
 
19
19
  $ gem install adminlte2-rails
20
20
 
21
- ## Plugins
22
21
 
23
- # Add a new plugins
22
+ Then, generate the default template:
23
+
24
+ $ bin/rails generate admin_lte2
25
+
26
+ # Plugins
27
+
28
+ ## Add a new plugins
24
29
 
25
30
  By default, there's no plugin installed. However, I've created a generator to help you install them
26
31
 
27
- $ rails g admin_lte_plugins PLUGIN_NAME
32
+ $ rails g admin_lte2_plugins PLUGIN_NAME
33
+
34
+ # Plugins available
28
35
 
29
- # Missing plugins
36
+ - [jVectorMap](https://github.com/bjornd/jvectormap) (j_vector_map)
37
+ - [ChartJS](https://github.com/nnnick/Chart.js/) (chart_js)
38
+ - [Sparkline](https://github.com/gwatts/jquery.sparkline) (sparkline)
39
+ - [Bootstrap Slider](https://github.com/seiyria/bootstrap-slider) (bootstrap_slider)
40
+ - [Bootstrap WYSIHTML5](https://github.com/jhollingworth/bootstrap-wysihtml5/) (bootstrap_wysihtml5)
41
+ - [Full Calendar](https://github.com/arshaw/fullcalendar) (fullcalendar)
42
+ - [Knob](https://github.com/aterrien/jQuery-Knob) (knob)
43
+ - [TimePicker](https://github.com/jdewit/bootstrap-timepicker) (timepicker)
44
+ - [Pace](https://github.com/HubSpot/pace) (pace)
45
+ - [MorrisJS](https://github.com/morrisjs/morris.js/) (morris)
46
+ - [Date Range Picker](https://github.com/dangrossman/bootstrap-daterangepicker) (daterangepicker)
47
+ - [Color Picker](https://github.com/mjolnic/bootstrap-colorpicker/) (colorpicker)
48
+ - [Date Picker](https://github.com/eternicode/bootstrap-datepicker) (datepicker)
49
+ - [slimScroll](https://github.com/rochal/jQuery-slimScroll) (slimScroll)
50
+ - [iCheck](https://github.com/fronteed/iCheck) (icheck)
51
+
52
+ # Plugins missing
30
53
 
31
54
  * [ ] ckeditor
32
55
  * [ ] datatables
33
56
  * [ ] fastclick
34
57
  * [ ] flot
35
- * [ ] iCheck
36
58
  * [ ] input-mask
37
59
  * [ ] ionslider
38
- * [ ] slimScroll
39
-
40
- ## Usage
41
-
42
- TODO: Write usage instructions here
43
60
 
44
61
  ## Contributing
45
62
 
46
- 1. Fork it ( https://github.com/[my-github-username]/adminlte2-rails/fork )
63
+ 1. Fork it ( https://github.com/nicolas-besnard/adminlte2-rails/fork )
47
64
  2. Create your feature branch (`git checkout -b my-new-feature`)
48
65
  3. Commit your changes (`git commit -am 'Add some feature'`)
49
66
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,5 +1,5 @@
1
1
  module AdminLTE2
2
2
  module Rails
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
@@ -1,13 +1,16 @@
1
- class AdminLteGenerator < Rails::Generators::Base
1
+ class AdminLte2Generator < Rails::Generators::Base
2
2
  source_root File.expand_path('../templates', __FILE__)
3
+ class_option :stylesheet_engine
3
4
 
4
5
  def main
5
- inject_into_file 'app/assets/javascripts/application.js', "//= require bootstrap\n", before: '//= require_tree .'
6
- inject_into_file 'app/assets/javascripts/application.js', "//= require app\n", before: '//= require_tree .'
6
+ stylesheet_extension = options[:stylesheet_engine] || 'css'
7
7
 
8
- inject_into_file 'app/assets/stylesheets/application.css', " *= require bootstrap\n", before: ' *= require_self'
9
- inject_into_file 'app/assets/stylesheets/application.css', " *= require AdminLTE\n", before: ' *= require_self'
10
- inject_into_file 'app/assets/stylesheets/application.css', " *= require skins/skin-blue\n", before: ' *= require_self'
8
+ inject_into_application_javascript('bootstrap', before: '//= require_tree')
9
+ inject_into_application_javascript('app', before: '//= require_tree')
10
+
11
+ inject_into_application_stylesheet('bootstrap')
12
+ inject_into_application_stylesheet('AdminLTE/AdminLTE')
13
+ inject_into_application_stylesheet('AdminLTE/skins/skin-blue')
11
14
 
12
15
  copy_file '_admin_lte_2_header.html.erb', 'app/views/layouts/_admin_lte_2_header.html.erb'
13
16
  copy_file '_admin_lte_2_sidebar.html.erb', 'app/views/layouts/_admin_lte_2_sidebar.html.erb'
@@ -17,21 +20,35 @@ class AdminLteGenerator < Rails::Generators::Base
17
20
  inject_into_file 'app/controllers/application_controller.rb', "\n layout 'admin_lte_2'\n", after: 'class ApplicationController < ActionController::Base'
18
21
  end
19
22
 
23
+ if yes?('Login Page ? (y/n)')
24
+ copy_file 'admin_lte_2_login.html.erb', 'app/views/layouts/admin_lte_2_login.html.erb'
25
+ end
26
+
20
27
  if yes?('Devise ? (y/n) ')
21
28
  gem 'devise'
22
29
 
23
30
  run 'bundle install'
24
31
  generate 'devise:install'
25
32
 
33
+ inject_into_file 'app/controllers/application_controller.rb', "\n before_action :authenticate_user!\n", after: 'class ApplicationController < ActionController::Base'
34
+
26
35
  environment "
27
36
  config.to_prepare do
28
37
  Devise::SessionsController.layout 'admin_lte_2_login'
29
38
  end
30
39
  "
40
+ end
41
+ end
31
42
 
32
- inject_into_file 'app/controllers/application_controller.rb', "\n before_action :authenticate_user!\n", after: 'class ApplicationController < ActionController::Base'
43
+ private
33
44
 
34
- copy_file 'admin_lte_2_login.html.erb', 'app/views/layouts/admin_lte_2_login.html.erb'
35
- end
45
+ def inject_into_application_stylesheet(file)
46
+ stylesheet_extension = options[:stylesheet_engine] || 'css'
47
+ inject_into_file "app/assets/stylesheets/application.#{stylesheet_extension}", " *= require #{file}\n", before: ' *= require_self'
36
48
  end
37
- end
49
+
50
+ def inject_into_application_javascript(file, before: '//= require app')
51
+ inject_into_file 'app/assets/javascripts/application.js', "//= require #{file}\n", before: before
52
+ end
53
+
54
+ end
@@ -15,9 +15,11 @@ Plugins Available:
15
15
  - Date Range Picker (daterangepicker)
16
16
  - Color Picker (colorpicker)
17
17
  - Date Picker (datepicker)
18
+ - slimScroll (slimScroll)
19
+ - iCheck (icheck)
18
20
 
19
21
  Example:
20
- rails generate admin_lte_plugins colorpicker
22
+ rails generate admin_lte2_plugins colorpicker
21
23
 
22
24
  This will create:
23
25
  create vendor/assets/stylesheets/img
@@ -1,6 +1,7 @@
1
- class AdminLtePluginsGenerator < Rails::Generators::Base
1
+ class AdminLte2PluginsGenerator < Rails::Generators::Base
2
2
  source_root File.expand_path('../templates', __FILE__)
3
3
  argument :plugin_name, type: :string
4
+ class_option :stylesheet_engine
4
5
 
5
6
  #
6
7
  def main
@@ -83,17 +84,43 @@ class AdminLtePluginsGenerator < Rails::Generators::Base
83
84
  directory "#{plugin_directory}/locales", 'vendor/assets/javascripts/locales'
84
85
  end
85
86
 
87
+ def install_slimscroll
88
+ add_plugin('slimScroll', 'js', 'jquery.slimscroll')
89
+ end
90
+
91
+ def install_icheck
92
+ add_plugin('iCheck', 'js')
93
+
94
+ inject_into_application_stylesheet('iCheck/square/blue')
95
+
96
+ plugin_directory = File.expand_path('../templates', __FILE__) + '/iCheck'
97
+ %w{flat futurico line minimal polaris square}.each do |dir|
98
+ directory "#{plugin_directory}/#{dir}", "vendor/assets/stylesheets/iCheck/#{dir}"
99
+ end
100
+ end
101
+
86
102
  # ------------------------------ #
87
103
 
104
+ def inject_into_application_stylesheet(plugin)
105
+ stylesheet_extension = options[:stylesheet_engine] || 'css'
106
+ inject_into_file "app/assets/stylesheets/application.#{stylesheet_extension}", " *= require #{plugin}\n", before: ' *= require_self'
107
+ end
108
+
109
+ def inject_into_application_javascript(plugin, before: '//= require app')
110
+ inject_into_file 'app/assets/javascripts/application.js', "//= require #{plugin}\n", before: before
111
+ end
112
+
88
113
  def add_plugin(plugin_directory, type, plugin_file = nil)
89
114
  plugin_file ||= plugin_directory
90
115
  plugin_file_with_extension = "#{plugin_file}.#{type}"
91
116
 
117
+ stylesheet_extension = options[:stylesheet_engine] || 'css'
118
+
92
119
  if type == 'css'
93
- inject_into_file 'app/assets/stylesheets/application.css', " *= require #{plugin_file}\n", before: ' *= require_self'
120
+ inject_into_application_stylesheet(plugin_file)
94
121
  copy_file "#{plugin_directory}/#{plugin_file_with_extension}", "vendor/assets/stylesheets/#{plugin_file_with_extension}"
95
122
  else
96
- inject_into_file 'app/assets/javascripts/application.js', "//= require #{plugin_file}\n", before: '//= require_tree .'
123
+ inject_into_application_javascript(plugin_file)
97
124
  copy_file "#{plugin_directory}/#{plugin_file_with_extension}", "vendor/assets/javascripts/#{plugin_file_with_extension}"
98
125
  end
99
126
  end
@@ -0,0 +1,61 @@
1
+ /* iCheck plugin skins
2
+ ----------------------------------- */
3
+ @import url("minimal/_all.css");
4
+ /*
5
+ @import url("minimal/minimal.css");
6
+ @import url("minimal/red.css");
7
+ @import url("minimal/green.css");
8
+ @import url("minimal/blue.css");
9
+ @import url("minimal/aero.css");
10
+ @import url("minimal/grey.css");
11
+ @import url("minimal/orange.css");
12
+ @import url("minimal/yellow.css");
13
+ @import url("minimal/pink.css");
14
+ @import url("minimal/purple.css");
15
+ */
16
+
17
+ @import url("square/_all.css");
18
+ /*
19
+ @import url("square/square.css");
20
+ @import url("square/red.css");
21
+ @import url("square/green.css");
22
+ @import url("square/blue.css");
23
+ @import url("square/aero.css");
24
+ @import url("square/grey.css");
25
+ @import url("square/orange.css");
26
+ @import url("square/yellow.css");
27
+ @import url("square/pink.css");
28
+ @import url("square/purple.css");
29
+ */
30
+
31
+ @import url("flat/_all.css");
32
+ /*
33
+ @import url("flat/flat.css");
34
+ @import url("flat/red.css");
35
+ @import url("flat/green.css");
36
+ @import url("flat/blue.css");
37
+ @import url("flat/aero.css");
38
+ @import url("flat/grey.css");
39
+ @import url("flat/orange.css");
40
+ @import url("flat/yellow.css");
41
+ @import url("flat/pink.css");
42
+ @import url("flat/purple.css");
43
+ */
44
+
45
+ @import url("line/_all.css");
46
+ /*
47
+ @import url("line/line.css");
48
+ @import url("line/red.css");
49
+ @import url("line/green.css");
50
+ @import url("line/blue.css");
51
+ @import url("line/aero.css");
52
+ @import url("line/grey.css");
53
+ @import url("line/orange.css");
54
+ @import url("line/yellow.css");
55
+ @import url("line/pink.css");
56
+ @import url("line/purple.css");
57
+ */
58
+
59
+ @import url("polaris/polaris.css");
60
+
61
+ @import url("futurico/futurico.css");