adminlte_assets 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +153 -0
  4. data/lib/adminlte_assets/version.rb +3 -0
  5. data/lib/adminlte_assets.rb +11 -0
  6. data/lib/tasks/adminlte_assets_tasks.rake +4 -0
  7. data/vendor/assets/images/adminlte/avatar.png +0 -0
  8. data/vendor/assets/images/adminlte/avatar04.png +0 -0
  9. data/vendor/assets/images/adminlte/avatar2.png +0 -0
  10. data/vendor/assets/images/adminlte/avatar3.png +0 -0
  11. data/vendor/assets/images/adminlte/avatar5.png +0 -0
  12. data/vendor/assets/images/adminlte/boxed-bg.jpg +0 -0
  13. data/vendor/assets/images/adminlte/boxed-bg.png +0 -0
  14. data/vendor/assets/images/adminlte/credit/american-express.png +0 -0
  15. data/vendor/assets/images/adminlte/credit/cirrus.png +0 -0
  16. data/vendor/assets/images/adminlte/credit/mastercard.png +0 -0
  17. data/vendor/assets/images/adminlte/credit/mestro.png +0 -0
  18. data/vendor/assets/images/adminlte/credit/paypal.png +0 -0
  19. data/vendor/assets/images/adminlte/credit/paypal2.png +0 -0
  20. data/vendor/assets/images/adminlte/credit/visa.png +0 -0
  21. data/vendor/assets/images/adminlte/default-50x50.gif +0 -0
  22. data/vendor/assets/images/adminlte/icons.png +0 -0
  23. data/vendor/assets/images/adminlte/photo1.png +0 -0
  24. data/vendor/assets/images/adminlte/photo2.png +0 -0
  25. data/vendor/assets/images/adminlte/plugins/colorpicker/img/alpha-horizontal.png +0 -0
  26. data/vendor/assets/images/adminlte/plugins/colorpicker/img/alpha.png +0 -0
  27. data/vendor/assets/images/adminlte/plugins/colorpicker/img/hue-horizontal.png +0 -0
  28. data/vendor/assets/images/adminlte/plugins/colorpicker/img/hue.png +0 -0
  29. data/vendor/assets/images/adminlte/plugins/colorpicker/img/saturation.png +0 -0
  30. data/vendor/assets/images/adminlte/user1-128x128.jpg +0 -0
  31. data/vendor/assets/images/adminlte/user2-160x160.jpg +0 -0
  32. data/vendor/assets/images/adminlte/user3-128x128.jpg +0 -0
  33. data/vendor/assets/images/adminlte/user4-128x128.jpg +0 -0
  34. data/vendor/assets/images/adminlte/user5-128x128.jpg +0 -0
  35. data/vendor/assets/images/adminlte/user6-128x128.jpg +0 -0
  36. data/vendor/assets/images/adminlte/user7-128x128.jpg +0 -0
  37. data/vendor/assets/images/adminlte/user8-128x128.jpg +0 -0
  38. data/vendor/assets/javascripts/adminlte/app.js +731 -0
  39. data/vendor/assets/javascripts/adminlte/plugin_options.js +42 -0
  40. data/vendor/assets/javascripts/adminlte/plugins/colorpicker/all.js +12 -0
  41. data/vendor/assets/javascripts/adminlte/plugins/colorpicker/bootstrap-colorpicker.js +949 -0
  42. data/vendor/assets/javascripts/adminlte/plugins/daterangepicker/all.js +13 -0
  43. data/vendor/assets/javascripts/adminlte/plugins/daterangepicker/daterangepicker.js +1304 -0
  44. data/vendor/assets/javascripts/adminlte/plugins/daterangepicker/moment.js +3043 -0
  45. data/vendor/assets/javascripts/adminlte/plugins/select2/all.js +11 -0
  46. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/az.js +3 -0
  47. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/bg.js +3 -0
  48. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/ca.js +3 -0
  49. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/cs.js +3 -0
  50. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/da.js +3 -0
  51. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/de.js +3 -0
  52. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/en.js +3 -0
  53. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/es.js +3 -0
  54. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/et.js +3 -0
  55. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/eu.js +3 -0
  56. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/fa.js +3 -0
  57. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/fi.js +3 -0
  58. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/fr.js +3 -0
  59. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/gl.js +3 -0
  60. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/he.js +3 -0
  61. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/hi.js +3 -0
  62. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/hr.js +3 -0
  63. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/hu.js +3 -0
  64. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/id.js +3 -0
  65. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/is.js +3 -0
  66. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/it.js +3 -0
  67. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/ko.js +3 -0
  68. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/lt.js +3 -0
  69. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/lv.js +3 -0
  70. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/mk.js +3 -0
  71. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/nb.js +3 -0
  72. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/nl.js +3 -0
  73. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/pl.js +3 -0
  74. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/pt-BR.js +3 -0
  75. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/pt.js +3 -0
  76. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/ro.js +3 -0
  77. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/ru.js +3 -0
  78. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/sk.js +3 -0
  79. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/sr.js +3 -0
  80. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/sv.js +3 -0
  81. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/th.js +3 -0
  82. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/tr.js +3 -0
  83. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/uk.js +3 -0
  84. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/vi.js +3 -0
  85. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/zh-CN.js +3 -0
  86. data/vendor/assets/javascripts/adminlte/plugins/select2/i18n/zh-TW.js +3 -0
  87. data/vendor/assets/javascripts/adminlte/plugins/select2/select2.full.js +6114 -0
  88. data/vendor/assets/javascripts/adminlte/plugins/select2/select2.js +5403 -0
  89. data/vendor/assets/javascripts/adminlte/plugins/slimScroll/jquery.slimscroll.js +490 -0
  90. data/vendor/assets/script_css.rb +38 -0
  91. data/vendor/assets/script_js.rb +38 -0
  92. data/vendor/assets/stylesheets/adminlte/app.css +4215 -0
  93. data/vendor/assets/stylesheets/adminlte/plugins/colorpicker/bootstrap-colorpicker.scss +214 -0
  94. data/vendor/assets/stylesheets/adminlte/plugins/daterangepicker/daterangepicker-bs3.css +335 -0
  95. data/vendor/assets/stylesheets/adminlte/plugins/select2/select2.css +431 -0
  96. data/vendor/assets/stylesheets/adminlte/skins/_all-skins.css +1787 -0
  97. data/vendor/assets/stylesheets/adminlte/skins/_all-skins.min.css +1 -0
  98. data/vendor/assets/stylesheets/adminlte/skins/skin-black-light.css +175 -0
  99. data/vendor/assets/stylesheets/adminlte/skins/skin-black-light.min.css +1 -0
  100. data/vendor/assets/stylesheets/adminlte/skins/skin-black.css +153 -0
  101. data/vendor/assets/stylesheets/adminlte/skins/skin-black.min.css +1 -0
  102. data/vendor/assets/stylesheets/adminlte/skins/skin-blue-light.css +166 -0
  103. data/vendor/assets/stylesheets/adminlte/skins/skin-blue-light.min.css +1 -0
  104. data/vendor/assets/stylesheets/adminlte/skins/skin-blue.css +141 -0
  105. data/vendor/assets/stylesheets/adminlte/skins/skin-blue.min.css +1 -0
  106. data/vendor/assets/stylesheets/adminlte/skins/skin-green-light.css +155 -0
  107. data/vendor/assets/stylesheets/adminlte/skins/skin-green-light.min.css +1 -0
  108. data/vendor/assets/stylesheets/adminlte/skins/skin-green.css +133 -0
  109. data/vendor/assets/stylesheets/adminlte/skins/skin-green.min.css +1 -0
  110. data/vendor/assets/stylesheets/adminlte/skins/skin-purple-light.css +155 -0
  111. data/vendor/assets/stylesheets/adminlte/skins/skin-purple-light.min.css +1 -0
  112. data/vendor/assets/stylesheets/adminlte/skins/skin-purple.css +133 -0
  113. data/vendor/assets/stylesheets/adminlte/skins/skin-purple.min.css +1 -0
  114. data/vendor/assets/stylesheets/adminlte/skins/skin-red-light.css +155 -0
  115. data/vendor/assets/stylesheets/adminlte/skins/skin-red-light.min.css +1 -0
  116. data/vendor/assets/stylesheets/adminlte/skins/skin-red.css +133 -0
  117. data/vendor/assets/stylesheets/adminlte/skins/skin-red.min.css +1 -0
  118. data/vendor/assets/stylesheets/adminlte/skins/skin-yellow-light.css +155 -0
  119. data/vendor/assets/stylesheets/adminlte/skins/skin-yellow-light.min.css +1 -0
  120. data/vendor/assets/stylesheets/adminlte/skins/skin-yellow.css +133 -0
  121. data/vendor/assets/stylesheets/adminlte/skins/skin-yellow.min.css +1 -0
  122. metadata +248 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 26af8a4662584389d61ce23562fd17584cb232a9
4
+ data.tar.gz: c00af86298764fd57853274a4f344539e40a2488
5
+ SHA512:
6
+ metadata.gz: 90db2d50cd38d305fa729ac515af114bb9e0745997060ee362e8d10413f5e3305354c64a913c1485537616fe659178bf49aefbed5b921ea7517f914acf913840
7
+ data.tar.gz: ddb1634a34689e48e53948974ed4613b3174f1860ee43d764dab648b3d8e01b95bbb21db0d89e3a8caa640ac856784f1d790e27f574b82a040c04736849d0a81
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2015 Walter Juan
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,153 @@
1
+ # AdminlteAssets
2
+
3
+ Easy integration for Bootstrap AdminLTE template into Rails assests pipeline.
4
+
5
+ This gem was based on [adminlte2-rails](https://github.com/nicolas-besnard/adminlte2-rails) (we found that this gem isn't updated)
6
+
7
+ Current AdminLTE version: **AdminLTE 2.2.0**
8
+
9
+ ***IMPORTANT ::*** If you update this gem is very important that don't download files from master, for **use the current AdminLTE version** supported by this gem. **Download from correspondent tag.**
10
+
11
+
12
+ AdminLTE resources:
13
+
14
+ - [AlmsaeedStudio](https://almsaeedstudio.com/)
15
+ - [Demo](https://almsaeedstudio.com/AdminLTE)
16
+ - [Docs](https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html)
17
+ - [GitHub](https://github.com/almasaeed2010/AdminLTE)
18
+
19
+ ## TODO
20
+ - Treure les images que sobren, com per exemple les d'avatar, usuaris, ... **ULL** hi ha imatges que segurament fan falta, com les icones
21
+ - Add jquery and jqueryui to gempspec as requirements?
22
+
23
+ ## Add to Gemfile
24
+ This add the version in master branch
25
+
26
+ ~~~
27
+ gem 'adminlte_assets', :git => 'ssh://git@gitlab.coditdev.net:534/gems/adminlte_assets.git'
28
+ ~~~
29
+
30
+ ## Required things to add
31
+
32
+ ### Javscripts
33
+ This template require JQuery, JQueryUI, Bootstrap and AdminLTE and slimScroll plugin.
34
+
35
+ This is an example with all default JS including `tree` and `self` (such as Rails do by default)
36
+
37
+ ~~~
38
+ //= require jquery
39
+ //= require jquery_ujs
40
+ //= require bootstrap
41
+ //= require adminlte/plugins/slimScroll/jquery.slimscroll
42
+ //= require adminlte/app
43
+ //= require adminlte/plugin_options
44
+ //= require_tree .
45
+ //= require_self
46
+ ~~~
47
+
48
+ ### Stylesheets
49
+ This template require Boostrap, default AdminLTE and custom skin if you like. This is an example with blue skin:
50
+
51
+ ~~~
52
+ /*
53
+ *= require_self
54
+ */
55
+
56
+ @import "bootstrap-sprockets";
57
+ @import "bootstrap";
58
+ @import "adminlte/app";
59
+ @import "adminlte/skins/skin-blue"; // custom skin there are a lot of skins!!
60
+ ~~~
61
+
62
+ ## Plugins
63
+ This template include some plugins by default such there are all plugins included in this gem.
64
+
65
+ ### Custom options for plugins
66
+ This is a javascript to rewrite default options for other plugins.
67
+ You can find this file in `javascripts/adminlte/plugin_options.js`
68
+ For example:
69
+ ~~~
70
+ $.PluginsOptions.daterangepicker = {
71
+ multiple: {
72
+ showDropdowns: true
73
+ }
74
+ }
75
+ ~~~
76
+
77
+
78
+ ### DateRangePicker
79
+ This is a date picker this can be used as **range date picker** or **single date picker**.
80
+
81
+ #### Javscripts
82
+ DateRangePicker require the `moment` JS library, we create `all.js` that automatically add this requirement and some other things.
83
+
84
+ This means that you only need add `all` and this will be include `daterangepicker` and `moment`:
85
+
86
+ ~~~
87
+ //= require adminlte/plugins/daterangepicker/all
88
+ ~~~
89
+
90
+ Also `all.js` include by default these few lines of JavaScript:
91
+
92
+ ~~~
93
+ $('input[data-behaviour="daterange"]').daterangepicker($.PluginsOptions.daterangepicker.single);
94
+
95
+ $('input[data-behaviour="daterange-single"]').daterangepicker($.PluginsOptions.daterangepicker.single);
96
+ ~~~
97
+
98
+ And this means that you can add `data-behaviour` attribute with `daterange` or `daterange-single` :
99
+
100
+ ~~~
101
+ <%= f.text_field :test_created_at, 'data-behaviour'=> 'daterange' %>
102
+ <%= f.text_field :test_created_at, 'data-behaviour'=> 'daterange-single' %>
103
+ ~~~
104
+
105
+ #### Stylesheets
106
+
107
+ ~~~
108
+ /*
109
+ *= require adminlte/plugins/daterangepicker/daterangepicker-bs3
110
+ */
111
+ ~~~
112
+
113
+ ### Colorpicker
114
+
115
+ #### Javscripts
116
+ We create `all.js` that includes the `colorpicker` and some lines of JS.
117
+
118
+ This is an example of requirement:
119
+
120
+ ~~~
121
+ //= require adminlte/plugins/colorpicker/all
122
+ ~~~
123
+
124
+ This are the lines included:
125
+
126
+ ~~~
127
+ $('input[data-behaviour="colorpicker"]').colorpicker($.PluginsOptions.colorpicker);
128
+ $('div[data-behaviour="colorpicker"]').colorpicker($.PluginsOptions.colorpicker);
129
+ ~~~
130
+
131
+ And this means that you can add `data-behaviour` attribute with `colorpicker` in `input` or `div`. **This are from oficial docs** :
132
+
133
+ ~~~
134
+ <!-- default -->
135
+ <input type="text" class="demo1" value="#5367ce" />
136
+
137
+ <!-- as component -->
138
+ <div class="input-group demo2">
139
+ <input type="text" value="" class="form-control" />
140
+ <span class="input-group-addon"><i></i></span>
141
+ </div>
142
+
143
+ <!-- with Rails form helper -->
144
+ <%= f.text_field :master_color, 'data-behaviour' => "colorpicker" %>
145
+ ~~~
146
+
147
+ #### Stylesheets
148
+
149
+ ~~~
150
+ /*
151
+ *= require adminlte/plugins/colorpicker/bootstrap-colorpicker
152
+ */
153
+ ~~~
@@ -0,0 +1,3 @@
1
+ module AdminlteAssets
2
+ VERSION = "0.0.33"
3
+ end
@@ -0,0 +1,11 @@
1
+ require "adminlte_assets/version"
2
+
3
+ module AdminlteAssets
4
+ class Engine < ::Rails::Engine
5
+ initializer 'adminlte_assets.assets.precompile' do |app|
6
+ %w(stylesheets javascripts img).each do |sub|
7
+ app.config.assets.paths << root.join('vendor', 'assets', sub)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :adminlte_assets do
3
+ # # Task goes here
4
+ # end