adminlte2assets-rails 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +244 -0
- data/Rakefile +2 -0
- data/adminlte2assets-rails.gemspec +42 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/adminlte2assets/rails/engine.rb +7 -0
- data/lib/adminlte2assets/rails/version.rb +5 -0
- data/lib/adminlte2assets/rails.rb +8 -0
- data/lib/adminlte2assets-rails.rb +7 -0
- data/vendor/assets/images/avatar.png +0 -0
- data/vendor/assets/images/avatar04.png +0 -0
- data/vendor/assets/images/avatar2.png +0 -0
- data/vendor/assets/images/avatar3.png +0 -0
- data/vendor/assets/images/avatar5.png +0 -0
- data/vendor/assets/images/boxed-bg.jpg +0 -0
- data/vendor/assets/images/boxed-bg.png +0 -0
- data/vendor/assets/images/credit/american-express.png +0 -0
- data/vendor/assets/images/credit/cirrus.png +0 -0
- data/vendor/assets/images/credit/mastercard.png +0 -0
- data/vendor/assets/images/credit/mestro.png +0 -0
- data/vendor/assets/images/credit/paypal.png +0 -0
- data/vendor/assets/images/credit/paypal2.png +0 -0
- data/vendor/assets/images/credit/visa.png +0 -0
- data/vendor/assets/images/default-50x50.gif +0 -0
- data/vendor/assets/images/icons.png +0 -0
- data/vendor/assets/images/ionslider/sprite-skin-flat.png +0 -0
- data/vendor/assets/images/ionslider/sprite-skin-nice.png +0 -0
- data/vendor/assets/images/photo1.png +0 -0
- data/vendor/assets/images/photo2.png +0 -0
- data/vendor/assets/images/photo3.jpg +0 -0
- data/vendor/assets/images/photo4.jpg +0 -0
- data/vendor/assets/images/user1-128x128.jpg +0 -0
- data/vendor/assets/images/user2-160x160.jpg +0 -0
- data/vendor/assets/images/user3-128x128.jpg +0 -0
- data/vendor/assets/images/user4-128x128.jpg +0 -0
- data/vendor/assets/images/user5-128x128.jpg +0 -0
- data/vendor/assets/images/user6-128x128.jpg +0 -0
- data/vendor/assets/images/user7-128x128.jpg +0 -0
- data/vendor/assets/images/user8-128x128.jpg +0 -0
- data/vendor/assets/javascript/AdminLTE/app.min.js +13 -0
- data/vendor/assets/javascript/AdminLTE/plugins/bootstrap-slider/bootstrap-slider.js +1576 -0
- data/vendor/assets/javascript/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js +14975 -0
- data/vendor/assets/javascript/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js +8 -0
- data/vendor/assets/javascript/AdminLTE/plugins/chartjs/Chart.js +3736 -0
- data/vendor/assets/javascript/AdminLTE/plugins/chartjs/Chart.min.js +11 -0
- data/vendor/assets/javascript/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.js +1079 -0
- data/vendor/assets/javascript/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/bootstrap-datepicker.js +1671 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ar.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.az.js +12 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.bg.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ca.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.cs.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.cy.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.da.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.de.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.el.js +13 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.es.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.et.js +18 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.fa.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.fi.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.fr.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.gl.js +11 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.he.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.hr.js +13 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.hu.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.id.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.is.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.it.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ja.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ka.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.kk.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.kr.js +13 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.lt.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.lv.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.mk.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ms.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.nb.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.nl-BE.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.nl.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.no.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.pl.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.pt-BR.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.pt.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ro.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.rs-latin.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.rs.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ru.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.sk.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.sl.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.sq.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.sv.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.sw.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.th.js +14 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.tr.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.ua.js +15 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.vi.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/datepicker/locales/bootstrap-datepicker.zh-TW.js +17 -0
- data/vendor/assets/javascript/AdminLTE/plugins/daterangepicker/daterangepicker.js +1542 -0
- data/vendor/assets/javascript/AdminLTE/plugins/daterangepicker/moment.js +3111 -0
- data/vendor/assets/javascript/AdminLTE/plugins/daterangepicker/moment.min.js +7 -0
- data/vendor/assets/javascript/AdminLTE/plugins/fastclick/fastclick.js +841 -0
- data/vendor/assets/javascript/AdminLTE/plugins/fastclick/fastclick.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/excanvas.js +1427 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/excanvas.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.colorhelpers.js +180 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.colorhelpers.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.canvas.js +345 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.canvas.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.categories.js +190 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.categories.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.crosshair.js +176 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.crosshair.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.errorbars.js +353 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.errorbars.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.fillbetween.js +226 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.fillbetween.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.image.js +241 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.image.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.js +3137 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.min.js +2 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.navigate.js +346 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.navigate.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.pie.js +817 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.pie.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.resize.js +60 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.resize.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.selection.js +360 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.selection.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.stack.js +188 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.stack.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.symbol.js +71 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.symbol.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.threshold.js +142 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.threshold.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.time.js +429 -0
- data/vendor/assets/javascript/AdminLTE/plugins/flot/jquery.flot.time.min.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/fullcalendar/fullcalendar.js +9732 -0
- data/vendor/assets/javascript/AdminLTE/plugins/fullcalendar/fullcalendar.min.js +8 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.date.extensions.js +488 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.extensions.js +122 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.js +1627 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.numeric.extensions.js +177 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.phone.extensions.js +50 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/jquery.inputmask.regex.extensions.js +169 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/phone-codes/phone-be.json +45 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/phone-codes/phone-codes.json +294 -0
- data/vendor/assets/javascript/AdminLTE/plugins/input-mask/phone-codes/readme.txt +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/ionslider/ion.rangeSlider.min.js +76 -0
- data/vendor/assets/javascript/AdminLTE/plugins/jQueryUI/jquery-ui.js +16617 -0
- data/vendor/assets/javascript/AdminLTE/plugins/jQueryUI/jquery-ui.min.js +13 -0
- data/vendor/assets/javascript/AdminLTE/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js +8 -0
- data/vendor/assets/javascript/AdminLTE/plugins/jvectormap/jquery-jvectormap-usa-en.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/jvectormap/jquery-jvectormap-world-mill-en.js +1 -0
- data/vendor/assets/javascript/AdminLTE/plugins/knob/jquery.knob.js +805 -0
- data/vendor/assets/javascript/AdminLTE/plugins/morris/morris.js +1892 -0
- data/vendor/assets/javascript/AdminLTE/plugins/morris/morris.min.js +7 -0
- data/vendor/assets/javascript/AdminLTE/plugins/pace/pace.js +935 -0
- data/vendor/assets/javascript/AdminLTE/plugins/pace/pace.min.js +2 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ar.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/az.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/bg.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ca.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/cs.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/da.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/de.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/el.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/en.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/es.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/et.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/eu.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/fa.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/fi.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/fr.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/gl.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/he.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/hi.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/hr.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/hu.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/id.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/is.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/it.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ja.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/km.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ko.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/lt.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/lv.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/mk.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ms.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/nb.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/nl.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/pl.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/pt-BR.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/pt.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ro.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/ru.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/sk.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/sr-Cyrl.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/sr.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/sv.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/th.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/tr.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/uk.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/vi.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/zh-CN.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/i18n/zh-TW.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/select2.full.js +6436 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/select2.full.min.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/select2.js +5725 -0
- data/vendor/assets/javascript/AdminLTE/plugins/select2/select2.min.js +3 -0
- data/vendor/assets/javascript/AdminLTE/plugins/slimScroll/jquery.slimscroll.js +474 -0
- data/vendor/assets/javascript/AdminLTE/plugins/slimScroll/jquery.slimscroll.min.js +16 -0
- data/vendor/assets/javascript/AdminLTE/plugins/sparkline/jquery.sparkline.js +3054 -0
- data/vendor/assets/javascript/AdminLTE/plugins/sparkline/jquery.sparkline.min.js +5 -0
- data/vendor/assets/javascript/AdminLTE/plugins/timepicker/bootstrap-timepicker.js +903 -0
- data/vendor/assets/javascript/AdminLTE/plugins/timepicker/bootstrap-timepicker.min.js +5 -0
- data/vendor/assets/javascript/AdminLTE.js +4 -0
- data/vendor/assets/stylesheets/AdminLTE/AdminLTE.min.css +7 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/bootstrap-slider/slider.css +282 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.css +117 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css +3 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.css +251 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/bootstrap-colorpicker.min.css +9 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/img/alpha-horizontal.png +0 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/img/alpha.png +0 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/img/hue-horizontal.png +0 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/img/hue.png +0 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/colorpicker/img/saturation.png +0 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/datepicker/datepicker3.css +790 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/daterangepicker/daterangepicker.css +232 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/fullcalendar/fullcalendar.css +977 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/fullcalendar/fullcalendar.min.css +5 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/fullcalendar/fullcalendar.print.css +202 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/ionslider/ion.rangeSlider.css +149 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/ionslider/ion.rangeSlider.skinFlat.css +106 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/ionslider/ion.rangeSlider.skinNice.css +102 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/jvectormap/jquery-jvectormap-1.2.2.css +40 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/morris/morris.css +2 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/pace/pace.css +85 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/pace/pace.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/select2/select2.css +484 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/select2/select2.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/timepicker/bootstrap-timepicker.css +121 -0
- data/vendor/assets/stylesheets/AdminLTE/plugins/timepicker/bootstrap-timepicker.min.css +10 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/_all-skins.css +1770 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/_all-skins.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-black-light.css +173 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-black-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-black.css +158 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-black.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue-light.css +164 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue.css +139 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-green-light.css +153 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-green-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-green.css +131 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-green.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple-light.css +153 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple.css +131 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-red-light.css +153 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-red-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-red.css +131 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-red.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow-light.css +153 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow-light.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow.css +131 -0
- data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow.min.css +1 -0
- data/vendor/assets/stylesheets/AdminLTE.scss +5 -0
- metadata +474 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
/* Flot plugin that adds some extra symbols for plotting points.
|
2
|
+
|
3
|
+
Copyright (c) 2007-2013 IOLA and Ole Laursen.
|
4
|
+
Licensed under the MIT license.
|
5
|
+
|
6
|
+
The symbols are accessed as strings through the standard symbol options:
|
7
|
+
|
8
|
+
series: {
|
9
|
+
points: {
|
10
|
+
symbol: "square" // or "diamond", "triangle", "cross"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
*/
|
15
|
+
|
16
|
+
(function ($) {
|
17
|
+
function processRawData(plot, series, datapoints) {
|
18
|
+
// we normalize the area of each symbol so it is approximately the
|
19
|
+
// same as a circle of the given radius
|
20
|
+
|
21
|
+
var handlers = {
|
22
|
+
square: function (ctx, x, y, radius, shadow) {
|
23
|
+
// pi * r^2 = (2s)^2 => s = r * sqrt(pi)/2
|
24
|
+
var size = radius * Math.sqrt(Math.PI) / 2;
|
25
|
+
ctx.rect(x - size, y - size, size + size, size + size);
|
26
|
+
},
|
27
|
+
diamond: function (ctx, x, y, radius, shadow) {
|
28
|
+
// pi * r^2 = 2s^2 => s = r * sqrt(pi/2)
|
29
|
+
var size = radius * Math.sqrt(Math.PI / 2);
|
30
|
+
ctx.moveTo(x - size, y);
|
31
|
+
ctx.lineTo(x, y - size);
|
32
|
+
ctx.lineTo(x + size, y);
|
33
|
+
ctx.lineTo(x, y + size);
|
34
|
+
ctx.lineTo(x - size, y);
|
35
|
+
},
|
36
|
+
triangle: function (ctx, x, y, radius, shadow) {
|
37
|
+
// pi * r^2 = 1/2 * s^2 * sin (pi / 3) => s = r * sqrt(2 * pi / sin(pi / 3))
|
38
|
+
var size = radius * Math.sqrt(2 * Math.PI / Math.sin(Math.PI / 3));
|
39
|
+
var height = size * Math.sin(Math.PI / 3);
|
40
|
+
ctx.moveTo(x - size/2, y + height/2);
|
41
|
+
ctx.lineTo(x + size/2, y + height/2);
|
42
|
+
if (!shadow) {
|
43
|
+
ctx.lineTo(x, y - height/2);
|
44
|
+
ctx.lineTo(x - size/2, y + height/2);
|
45
|
+
}
|
46
|
+
},
|
47
|
+
cross: function (ctx, x, y, radius, shadow) {
|
48
|
+
// pi * r^2 = (2s)^2 => s = r * sqrt(pi)/2
|
49
|
+
var size = radius * Math.sqrt(Math.PI) / 2;
|
50
|
+
ctx.moveTo(x - size, y - size);
|
51
|
+
ctx.lineTo(x + size, y + size);
|
52
|
+
ctx.moveTo(x - size, y + size);
|
53
|
+
ctx.lineTo(x + size, y - size);
|
54
|
+
}
|
55
|
+
};
|
56
|
+
|
57
|
+
var s = series.points.symbol;
|
58
|
+
if (handlers[s])
|
59
|
+
series.points.symbol = handlers[s];
|
60
|
+
}
|
61
|
+
|
62
|
+
function init(plot) {
|
63
|
+
plot.hooks.processDatapoints.push(processRawData);
|
64
|
+
}
|
65
|
+
|
66
|
+
$.plot.plugins.push({
|
67
|
+
init: init,
|
68
|
+
name: 'symbols',
|
69
|
+
version: '1.0'
|
70
|
+
});
|
71
|
+
})(jQuery);
|
@@ -0,0 +1 @@
|
|
1
|
+
(function($){function processRawData(plot,series,datapoints){var handlers={square:function(ctx,x,y,radius,shadow){var size=radius*Math.sqrt(Math.PI)/2;ctx.rect(x-size,y-size,size+size,size+size)},diamond:function(ctx,x,y,radius,shadow){var size=radius*Math.sqrt(Math.PI/2);ctx.moveTo(x-size,y);ctx.lineTo(x,y-size);ctx.lineTo(x+size,y);ctx.lineTo(x,y+size);ctx.lineTo(x-size,y)},triangle:function(ctx,x,y,radius,shadow){var size=radius*Math.sqrt(2*Math.PI/Math.sin(Math.PI/3));var height=size*Math.sin(Math.PI/3);ctx.moveTo(x-size/2,y+height/2);ctx.lineTo(x+size/2,y+height/2);if(!shadow){ctx.lineTo(x,y-height/2);ctx.lineTo(x-size/2,y+height/2)}},cross:function(ctx,x,y,radius,shadow){var size=radius*Math.sqrt(Math.PI)/2;ctx.moveTo(x-size,y-size);ctx.lineTo(x+size,y+size);ctx.moveTo(x-size,y+size);ctx.lineTo(x+size,y-size)}};var s=series.points.symbol;if(handlers[s])series.points.symbol=handlers[s]}function init(plot){plot.hooks.processDatapoints.push(processRawData)}$.plot.plugins.push({init:init,name:"symbols",version:"1.0"})})(jQuery);
|
@@ -0,0 +1,142 @@
|
|
1
|
+
/* Flot plugin for thresholding data.
|
2
|
+
|
3
|
+
Copyright (c) 2007-2013 IOLA and Ole Laursen.
|
4
|
+
Licensed under the MIT license.
|
5
|
+
|
6
|
+
The plugin supports these options:
|
7
|
+
|
8
|
+
series: {
|
9
|
+
threshold: {
|
10
|
+
below: number
|
11
|
+
color: colorspec
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
It can also be applied to a single series, like this:
|
16
|
+
|
17
|
+
$.plot( $("#placeholder"), [{
|
18
|
+
data: [ ... ],
|
19
|
+
threshold: { ... }
|
20
|
+
}])
|
21
|
+
|
22
|
+
An array can be passed for multiple thresholding, like this:
|
23
|
+
|
24
|
+
threshold: [{
|
25
|
+
below: number1
|
26
|
+
color: color1
|
27
|
+
},{
|
28
|
+
below: number2
|
29
|
+
color: color2
|
30
|
+
}]
|
31
|
+
|
32
|
+
These multiple threshold objects can be passed in any order since they are
|
33
|
+
sorted by the processing function.
|
34
|
+
|
35
|
+
The data points below "below" are drawn with the specified color. This makes
|
36
|
+
it easy to mark points below 0, e.g. for budget data.
|
37
|
+
|
38
|
+
Internally, the plugin works by splitting the data into two series, above and
|
39
|
+
below the threshold. The extra series below the threshold will have its label
|
40
|
+
cleared and the special "originSeries" attribute set to the original series.
|
41
|
+
You may need to check for this in hover events.
|
42
|
+
|
43
|
+
*/
|
44
|
+
|
45
|
+
(function ($) {
|
46
|
+
var options = {
|
47
|
+
series: { threshold: null } // or { below: number, color: color spec}
|
48
|
+
};
|
49
|
+
|
50
|
+
function init(plot) {
|
51
|
+
function thresholdData(plot, s, datapoints, below, color) {
|
52
|
+
var ps = datapoints.pointsize, i, x, y, p, prevp,
|
53
|
+
thresholded = $.extend({}, s); // note: shallow copy
|
54
|
+
|
55
|
+
thresholded.datapoints = { points: [], pointsize: ps, format: datapoints.format };
|
56
|
+
thresholded.label = null;
|
57
|
+
thresholded.color = color;
|
58
|
+
thresholded.threshold = null;
|
59
|
+
thresholded.originSeries = s;
|
60
|
+
thresholded.data = [];
|
61
|
+
|
62
|
+
var origpoints = datapoints.points,
|
63
|
+
addCrossingPoints = s.lines.show;
|
64
|
+
|
65
|
+
var threspoints = [];
|
66
|
+
var newpoints = [];
|
67
|
+
var m;
|
68
|
+
|
69
|
+
for (i = 0; i < origpoints.length; i += ps) {
|
70
|
+
x = origpoints[i];
|
71
|
+
y = origpoints[i + 1];
|
72
|
+
|
73
|
+
prevp = p;
|
74
|
+
if (y < below)
|
75
|
+
p = threspoints;
|
76
|
+
else
|
77
|
+
p = newpoints;
|
78
|
+
|
79
|
+
if (addCrossingPoints && prevp != p && x != null
|
80
|
+
&& i > 0 && origpoints[i - ps] != null) {
|
81
|
+
var interx = x + (below - y) * (x - origpoints[i - ps]) / (y - origpoints[i - ps + 1]);
|
82
|
+
prevp.push(interx);
|
83
|
+
prevp.push(below);
|
84
|
+
for (m = 2; m < ps; ++m)
|
85
|
+
prevp.push(origpoints[i + m]);
|
86
|
+
|
87
|
+
p.push(null); // start new segment
|
88
|
+
p.push(null);
|
89
|
+
for (m = 2; m < ps; ++m)
|
90
|
+
p.push(origpoints[i + m]);
|
91
|
+
p.push(interx);
|
92
|
+
p.push(below);
|
93
|
+
for (m = 2; m < ps; ++m)
|
94
|
+
p.push(origpoints[i + m]);
|
95
|
+
}
|
96
|
+
|
97
|
+
p.push(x);
|
98
|
+
p.push(y);
|
99
|
+
for (m = 2; m < ps; ++m)
|
100
|
+
p.push(origpoints[i + m]);
|
101
|
+
}
|
102
|
+
|
103
|
+
datapoints.points = newpoints;
|
104
|
+
thresholded.datapoints.points = threspoints;
|
105
|
+
|
106
|
+
if (thresholded.datapoints.points.length > 0) {
|
107
|
+
var origIndex = $.inArray(s, plot.getData());
|
108
|
+
// Insert newly-generated series right after original one (to prevent it from becoming top-most)
|
109
|
+
plot.getData().splice(origIndex + 1, 0, thresholded);
|
110
|
+
}
|
111
|
+
|
112
|
+
// FIXME: there are probably some edge cases left in bars
|
113
|
+
}
|
114
|
+
|
115
|
+
function processThresholds(plot, s, datapoints) {
|
116
|
+
if (!s.threshold)
|
117
|
+
return;
|
118
|
+
|
119
|
+
if (s.threshold instanceof Array) {
|
120
|
+
s.threshold.sort(function(a, b) {
|
121
|
+
return a.below - b.below;
|
122
|
+
});
|
123
|
+
|
124
|
+
$(s.threshold).each(function(i, th) {
|
125
|
+
thresholdData(plot, s, datapoints, th.below, th.color);
|
126
|
+
});
|
127
|
+
}
|
128
|
+
else {
|
129
|
+
thresholdData(plot, s, datapoints, s.threshold.below, s.threshold.color);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
plot.hooks.processDatapoints.push(processThresholds);
|
134
|
+
}
|
135
|
+
|
136
|
+
$.plot.plugins.push({
|
137
|
+
init: init,
|
138
|
+
options: options,
|
139
|
+
name: 'threshold',
|
140
|
+
version: '1.2'
|
141
|
+
});
|
142
|
+
})(jQuery);
|
@@ -0,0 +1 @@
|
|
1
|
+
(function($){var options={series:{threshold:null}};function init(plot){function thresholdData(plot,s,datapoints,below,color){var ps=datapoints.pointsize,i,x,y,p,prevp,thresholded=$.extend({},s);thresholded.datapoints={points:[],pointsize:ps,format:datapoints.format};thresholded.label=null;thresholded.color=color;thresholded.threshold=null;thresholded.originSeries=s;thresholded.data=[];var origpoints=datapoints.points,addCrossingPoints=s.lines.show;var threspoints=[];var newpoints=[];var m;for(i=0;i<origpoints.length;i+=ps){x=origpoints[i];y=origpoints[i+1];prevp=p;if(y<below)p=threspoints;else p=newpoints;if(addCrossingPoints&&prevp!=p&&x!=null&&i>0&&origpoints[i-ps]!=null){var interx=x+(below-y)*(x-origpoints[i-ps])/(y-origpoints[i-ps+1]);prevp.push(interx);prevp.push(below);for(m=2;m<ps;++m)prevp.push(origpoints[i+m]);p.push(null);p.push(null);for(m=2;m<ps;++m)p.push(origpoints[i+m]);p.push(interx);p.push(below);for(m=2;m<ps;++m)p.push(origpoints[i+m])}p.push(x);p.push(y);for(m=2;m<ps;++m)p.push(origpoints[i+m])}datapoints.points=newpoints;thresholded.datapoints.points=threspoints;if(thresholded.datapoints.points.length>0){var origIndex=$.inArray(s,plot.getData());plot.getData().splice(origIndex+1,0,thresholded)}}function processThresholds(plot,s,datapoints){if(!s.threshold)return;if(s.threshold instanceof Array){s.threshold.sort(function(a,b){return a.below-b.below});$(s.threshold).each(function(i,th){thresholdData(plot,s,datapoints,th.below,th.color)})}else{thresholdData(plot,s,datapoints,s.threshold.below,s.threshold.color)}}plot.hooks.processDatapoints.push(processThresholds)}$.plot.plugins.push({init:init,options:options,name:"threshold",version:"1.2"})})(jQuery);
|
@@ -0,0 +1,429 @@
|
|
1
|
+
/* Pretty handling of time axes.
|
2
|
+
|
3
|
+
Copyright (c) 2007-2013 IOLA and Ole Laursen.
|
4
|
+
Licensed under the MIT license.
|
5
|
+
|
6
|
+
Set axis.mode to "time" to enable. See the section "Time series data" in
|
7
|
+
API.txt for details.
|
8
|
+
|
9
|
+
*/
|
10
|
+
|
11
|
+
(function($) {
|
12
|
+
|
13
|
+
var options = {
|
14
|
+
xaxis: {
|
15
|
+
timezone: null, // "browser" for local to the client or timezone for timezone-js
|
16
|
+
timeformat: null, // format string to use
|
17
|
+
twelveHourClock: false, // 12 or 24 time in time mode
|
18
|
+
monthNames: null // list of names of months
|
19
|
+
}
|
20
|
+
};
|
21
|
+
|
22
|
+
// round to nearby lower multiple of base
|
23
|
+
|
24
|
+
function floorInBase(n, base) {
|
25
|
+
return base * Math.floor(n / base);
|
26
|
+
}
|
27
|
+
|
28
|
+
// Returns a string with the date d formatted according to fmt.
|
29
|
+
// A subset of the Open Group's strftime format is supported.
|
30
|
+
|
31
|
+
function formatDate(d, fmt, monthNames, dayNames) {
|
32
|
+
|
33
|
+
if (typeof d.strftime == "function") {
|
34
|
+
return d.strftime(fmt);
|
35
|
+
}
|
36
|
+
|
37
|
+
var leftPad = function(n, pad) {
|
38
|
+
n = "" + n;
|
39
|
+
pad = "" + (pad == null ? "0" : pad);
|
40
|
+
return n.length == 1 ? pad + n : n;
|
41
|
+
};
|
42
|
+
|
43
|
+
var r = [];
|
44
|
+
var escape = false;
|
45
|
+
var hours = d.getHours();
|
46
|
+
var isAM = hours < 12;
|
47
|
+
|
48
|
+
if (monthNames == null) {
|
49
|
+
monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
50
|
+
}
|
51
|
+
|
52
|
+
if (dayNames == null) {
|
53
|
+
dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
54
|
+
}
|
55
|
+
|
56
|
+
var hours12;
|
57
|
+
|
58
|
+
if (hours > 12) {
|
59
|
+
hours12 = hours - 12;
|
60
|
+
} else if (hours == 0) {
|
61
|
+
hours12 = 12;
|
62
|
+
} else {
|
63
|
+
hours12 = hours;
|
64
|
+
}
|
65
|
+
|
66
|
+
for (var i = 0; i < fmt.length; ++i) {
|
67
|
+
|
68
|
+
var c = fmt.charAt(i);
|
69
|
+
|
70
|
+
if (escape) {
|
71
|
+
switch (c) {
|
72
|
+
case 'a': c = "" + dayNames[d.getDay()]; break;
|
73
|
+
case 'b': c = "" + monthNames[d.getMonth()]; break;
|
74
|
+
case 'd': c = leftPad(d.getDate()); break;
|
75
|
+
case 'e': c = leftPad(d.getDate(), " "); break;
|
76
|
+
case 'h': // For back-compat with 0.7; remove in 1.0
|
77
|
+
case 'H': c = leftPad(hours); break;
|
78
|
+
case 'I': c = leftPad(hours12); break;
|
79
|
+
case 'l': c = leftPad(hours12, " "); break;
|
80
|
+
case 'm': c = leftPad(d.getMonth() + 1); break;
|
81
|
+
case 'M': c = leftPad(d.getMinutes()); break;
|
82
|
+
// quarters not in Open Group's strftime specification
|
83
|
+
case 'q':
|
84
|
+
c = "" + (Math.floor(d.getMonth() / 3) + 1); break;
|
85
|
+
case 'S': c = leftPad(d.getSeconds()); break;
|
86
|
+
case 'y': c = leftPad(d.getFullYear() % 100); break;
|
87
|
+
case 'Y': c = "" + d.getFullYear(); break;
|
88
|
+
case 'p': c = (isAM) ? ("" + "am") : ("" + "pm"); break;
|
89
|
+
case 'P': c = (isAM) ? ("" + "AM") : ("" + "PM"); break;
|
90
|
+
case 'w': c = "" + d.getDay(); break;
|
91
|
+
}
|
92
|
+
r.push(c);
|
93
|
+
escape = false;
|
94
|
+
} else {
|
95
|
+
if (c == "%") {
|
96
|
+
escape = true;
|
97
|
+
} else {
|
98
|
+
r.push(c);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
return r.join("");
|
104
|
+
}
|
105
|
+
|
106
|
+
// To have a consistent view of time-based data independent of which time
|
107
|
+
// zone the client happens to be in we need a date-like object independent
|
108
|
+
// of time zones. This is done through a wrapper that only calls the UTC
|
109
|
+
// versions of the accessor methods.
|
110
|
+
|
111
|
+
function makeUtcWrapper(d) {
|
112
|
+
|
113
|
+
function addProxyMethod(sourceObj, sourceMethod, targetObj, targetMethod) {
|
114
|
+
sourceObj[sourceMethod] = function() {
|
115
|
+
return targetObj[targetMethod].apply(targetObj, arguments);
|
116
|
+
};
|
117
|
+
}
|
118
|
+
var utc = {
|
119
|
+
date: d
|
120
|
+
};
|
121
|
+
|
122
|
+
// support strftime, if found
|
123
|
+
|
124
|
+
if (d.strftime != undefined) {
|
125
|
+
addProxyMethod(utc, "strftime", d, "strftime");
|
126
|
+
}
|
127
|
+
|
128
|
+
addProxyMethod(utc, "getTime", d, "getTime");
|
129
|
+
addProxyMethod(utc, "setTime", d, "setTime");
|
130
|
+
|
131
|
+
var props = ["Date", "Day", "FullYear", "Hours", "Milliseconds", "Minutes", "Month", "Seconds"];
|
132
|
+
|
133
|
+
for (var p = 0; p < props.length; p++) {
|
134
|
+
addProxyMethod(utc, "get" + props[p], d, "getUTC" + props[p]);
|
135
|
+
addProxyMethod(utc, "set" + props[p], d, "setUTC" + props[p]);
|
136
|
+
}
|
137
|
+
|
138
|
+
return utc;
|
139
|
+
}
|
140
|
+
// select time zone strategy. This returns a date-like object tied to the
|
141
|
+
// desired timezone
|
142
|
+
|
143
|
+
function dateGenerator(ts, opts) {
|
144
|
+
if (opts.timezone == "browser") {
|
145
|
+
return new Date(ts);
|
146
|
+
} else if (!opts.timezone || opts.timezone == "utc") {
|
147
|
+
return makeUtcWrapper(new Date(ts));
|
148
|
+
} else if (typeof timezoneJS != "undefined" && typeof timezoneJS.Date != "undefined") {
|
149
|
+
var d = new timezoneJS.Date();
|
150
|
+
// timezone-js is fickle, so be sure to set the time zone before
|
151
|
+
// setting the time.
|
152
|
+
d.setTimezone(opts.timezone);
|
153
|
+
d.setTime(ts);
|
154
|
+
return d;
|
155
|
+
} else {
|
156
|
+
return makeUtcWrapper(new Date(ts));
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
// map of app. size of time units in milliseconds
|
161
|
+
|
162
|
+
var timeUnitSize = {
|
163
|
+
"second": 1000,
|
164
|
+
"minute": 60 * 1000,
|
165
|
+
"hour": 60 * 60 * 1000,
|
166
|
+
"day": 24 * 60 * 60 * 1000,
|
167
|
+
"month": 30 * 24 * 60 * 60 * 1000,
|
168
|
+
"quarter": 3 * 30 * 24 * 60 * 60 * 1000,
|
169
|
+
"year": 365.2425 * 24 * 60 * 60 * 1000
|
170
|
+
};
|
171
|
+
|
172
|
+
// the allowed tick sizes, after 1 year we use
|
173
|
+
// an integer algorithm
|
174
|
+
|
175
|
+
var baseSpec = [
|
176
|
+
[1, "second"], [2, "second"], [5, "second"], [10, "second"],
|
177
|
+
[30, "second"],
|
178
|
+
[1, "minute"], [2, "minute"], [5, "minute"], [10, "minute"],
|
179
|
+
[30, "minute"],
|
180
|
+
[1, "hour"], [2, "hour"], [4, "hour"],
|
181
|
+
[8, "hour"], [12, "hour"],
|
182
|
+
[1, "day"], [2, "day"], [3, "day"],
|
183
|
+
[0.25, "month"], [0.5, "month"], [1, "month"],
|
184
|
+
[2, "month"]
|
185
|
+
];
|
186
|
+
|
187
|
+
// we don't know which variant(s) we'll need yet, but generating both is
|
188
|
+
// cheap
|
189
|
+
|
190
|
+
var specMonths = baseSpec.concat([[3, "month"], [6, "month"],
|
191
|
+
[1, "year"]]);
|
192
|
+
var specQuarters = baseSpec.concat([[1, "quarter"], [2, "quarter"],
|
193
|
+
[1, "year"]]);
|
194
|
+
|
195
|
+
function init(plot) {
|
196
|
+
plot.hooks.processOptions.push(function (plot, options) {
|
197
|
+
$.each(plot.getAxes(), function(axisName, axis) {
|
198
|
+
|
199
|
+
var opts = axis.options;
|
200
|
+
|
201
|
+
if (opts.mode == "time") {
|
202
|
+
axis.tickGenerator = function(axis) {
|
203
|
+
|
204
|
+
var ticks = [];
|
205
|
+
var d = dateGenerator(axis.min, opts);
|
206
|
+
var minSize = 0;
|
207
|
+
|
208
|
+
// make quarter use a possibility if quarters are
|
209
|
+
// mentioned in either of these options
|
210
|
+
|
211
|
+
var spec = (opts.tickSize && opts.tickSize[1] ===
|
212
|
+
"quarter") ||
|
213
|
+
(opts.minTickSize && opts.minTickSize[1] ===
|
214
|
+
"quarter") ? specQuarters : specMonths;
|
215
|
+
|
216
|
+
if (opts.minTickSize != null) {
|
217
|
+
if (typeof opts.tickSize == "number") {
|
218
|
+
minSize = opts.tickSize;
|
219
|
+
} else {
|
220
|
+
minSize = opts.minTickSize[0] * timeUnitSize[opts.minTickSize[1]];
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
224
|
+
for (var i = 0; i < spec.length - 1; ++i) {
|
225
|
+
if (axis.delta < (spec[i][0] * timeUnitSize[spec[i][1]]
|
226
|
+
+ spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2
|
227
|
+
&& spec[i][0] * timeUnitSize[spec[i][1]] >= minSize) {
|
228
|
+
break;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
var size = spec[i][0];
|
233
|
+
var unit = spec[i][1];
|
234
|
+
|
235
|
+
// special-case the possibility of several years
|
236
|
+
|
237
|
+
if (unit == "year") {
|
238
|
+
|
239
|
+
// if given a minTickSize in years, just use it,
|
240
|
+
// ensuring that it's an integer
|
241
|
+
|
242
|
+
if (opts.minTickSize != null && opts.minTickSize[1] == "year") {
|
243
|
+
size = Math.floor(opts.minTickSize[0]);
|
244
|
+
} else {
|
245
|
+
|
246
|
+
var magn = Math.pow(10, Math.floor(Math.log(axis.delta / timeUnitSize.year) / Math.LN10));
|
247
|
+
var norm = (axis.delta / timeUnitSize.year) / magn;
|
248
|
+
|
249
|
+
if (norm < 1.5) {
|
250
|
+
size = 1;
|
251
|
+
} else if (norm < 3) {
|
252
|
+
size = 2;
|
253
|
+
} else if (norm < 7.5) {
|
254
|
+
size = 5;
|
255
|
+
} else {
|
256
|
+
size = 10;
|
257
|
+
}
|
258
|
+
|
259
|
+
size *= magn;
|
260
|
+
}
|
261
|
+
|
262
|
+
// minimum size for years is 1
|
263
|
+
|
264
|
+
if (size < 1) {
|
265
|
+
size = 1;
|
266
|
+
}
|
267
|
+
}
|
268
|
+
|
269
|
+
axis.tickSize = opts.tickSize || [size, unit];
|
270
|
+
var tickSize = axis.tickSize[0];
|
271
|
+
unit = axis.tickSize[1];
|
272
|
+
|
273
|
+
var step = tickSize * timeUnitSize[unit];
|
274
|
+
|
275
|
+
if (unit == "second") {
|
276
|
+
d.setSeconds(floorInBase(d.getSeconds(), tickSize));
|
277
|
+
} else if (unit == "minute") {
|
278
|
+
d.setMinutes(floorInBase(d.getMinutes(), tickSize));
|
279
|
+
} else if (unit == "hour") {
|
280
|
+
d.setHours(floorInBase(d.getHours(), tickSize));
|
281
|
+
} else if (unit == "month") {
|
282
|
+
d.setMonth(floorInBase(d.getMonth(), tickSize));
|
283
|
+
} else if (unit == "quarter") {
|
284
|
+
d.setMonth(3 * floorInBase(d.getMonth() / 3,
|
285
|
+
tickSize));
|
286
|
+
} else if (unit == "year") {
|
287
|
+
d.setFullYear(floorInBase(d.getFullYear(), tickSize));
|
288
|
+
}
|
289
|
+
|
290
|
+
// reset smaller components
|
291
|
+
|
292
|
+
d.setMilliseconds(0);
|
293
|
+
|
294
|
+
if (step >= timeUnitSize.minute) {
|
295
|
+
d.setSeconds(0);
|
296
|
+
}
|
297
|
+
if (step >= timeUnitSize.hour) {
|
298
|
+
d.setMinutes(0);
|
299
|
+
}
|
300
|
+
if (step >= timeUnitSize.day) {
|
301
|
+
d.setHours(0);
|
302
|
+
}
|
303
|
+
if (step >= timeUnitSize.day * 4) {
|
304
|
+
d.setDate(1);
|
305
|
+
}
|
306
|
+
if (step >= timeUnitSize.month * 2) {
|
307
|
+
d.setMonth(floorInBase(d.getMonth(), 3));
|
308
|
+
}
|
309
|
+
if (step >= timeUnitSize.quarter * 2) {
|
310
|
+
d.setMonth(floorInBase(d.getMonth(), 6));
|
311
|
+
}
|
312
|
+
if (step >= timeUnitSize.year) {
|
313
|
+
d.setMonth(0);
|
314
|
+
}
|
315
|
+
|
316
|
+
var carry = 0;
|
317
|
+
var v = Number.NaN;
|
318
|
+
var prev;
|
319
|
+
|
320
|
+
do {
|
321
|
+
|
322
|
+
prev = v;
|
323
|
+
v = d.getTime();
|
324
|
+
ticks.push(v);
|
325
|
+
|
326
|
+
if (unit == "month" || unit == "quarter") {
|
327
|
+
if (tickSize < 1) {
|
328
|
+
|
329
|
+
// a bit complicated - we'll divide the
|
330
|
+
// month/quarter up but we need to take
|
331
|
+
// care of fractions so we don't end up in
|
332
|
+
// the middle of a day
|
333
|
+
|
334
|
+
d.setDate(1);
|
335
|
+
var start = d.getTime();
|
336
|
+
d.setMonth(d.getMonth() +
|
337
|
+
(unit == "quarter" ? 3 : 1));
|
338
|
+
var end = d.getTime();
|
339
|
+
d.setTime(v + carry * timeUnitSize.hour + (end - start) * tickSize);
|
340
|
+
carry = d.getHours();
|
341
|
+
d.setHours(0);
|
342
|
+
} else {
|
343
|
+
d.setMonth(d.getMonth() +
|
344
|
+
tickSize * (unit == "quarter" ? 3 : 1));
|
345
|
+
}
|
346
|
+
} else if (unit == "year") {
|
347
|
+
d.setFullYear(d.getFullYear() + tickSize);
|
348
|
+
} else {
|
349
|
+
d.setTime(v + step);
|
350
|
+
}
|
351
|
+
} while (v < axis.max && v != prev);
|
352
|
+
|
353
|
+
return ticks;
|
354
|
+
};
|
355
|
+
|
356
|
+
axis.tickFormatter = function (v, axis) {
|
357
|
+
|
358
|
+
var d = dateGenerator(v, axis.options);
|
359
|
+
|
360
|
+
// first check global format
|
361
|
+
|
362
|
+
if (opts.timeformat != null) {
|
363
|
+
return formatDate(d, opts.timeformat, opts.monthNames, opts.dayNames);
|
364
|
+
}
|
365
|
+
|
366
|
+
// possibly use quarters if quarters are mentioned in
|
367
|
+
// any of these places
|
368
|
+
|
369
|
+
var useQuarters = (axis.options.tickSize &&
|
370
|
+
axis.options.tickSize[1] == "quarter") ||
|
371
|
+
(axis.options.minTickSize &&
|
372
|
+
axis.options.minTickSize[1] == "quarter");
|
373
|
+
|
374
|
+
var t = axis.tickSize[0] * timeUnitSize[axis.tickSize[1]];
|
375
|
+
var span = axis.max - axis.min;
|
376
|
+
var suffix = (opts.twelveHourClock) ? " %p" : "";
|
377
|
+
var hourCode = (opts.twelveHourClock) ? "%I" : "%H";
|
378
|
+
var fmt;
|
379
|
+
|
380
|
+
if (t < timeUnitSize.minute) {
|
381
|
+
fmt = hourCode + ":%M:%S" + suffix;
|
382
|
+
} else if (t < timeUnitSize.day) {
|
383
|
+
if (span < 2 * timeUnitSize.day) {
|
384
|
+
fmt = hourCode + ":%M" + suffix;
|
385
|
+
} else {
|
386
|
+
fmt = "%b %d " + hourCode + ":%M" + suffix;
|
387
|
+
}
|
388
|
+
} else if (t < timeUnitSize.month) {
|
389
|
+
fmt = "%b %d";
|
390
|
+
} else if ((useQuarters && t < timeUnitSize.quarter) ||
|
391
|
+
(!useQuarters && t < timeUnitSize.year)) {
|
392
|
+
if (span < timeUnitSize.year) {
|
393
|
+
fmt = "%b";
|
394
|
+
} else {
|
395
|
+
fmt = "%b %Y";
|
396
|
+
}
|
397
|
+
} else if (useQuarters && t < timeUnitSize.year) {
|
398
|
+
if (span < timeUnitSize.year) {
|
399
|
+
fmt = "Q%q";
|
400
|
+
} else {
|
401
|
+
fmt = "Q%q %Y";
|
402
|
+
}
|
403
|
+
} else {
|
404
|
+
fmt = "%Y";
|
405
|
+
}
|
406
|
+
|
407
|
+
var rt = formatDate(d, fmt, opts.monthNames, opts.dayNames);
|
408
|
+
|
409
|
+
return rt;
|
410
|
+
};
|
411
|
+
}
|
412
|
+
});
|
413
|
+
});
|
414
|
+
}
|
415
|
+
|
416
|
+
$.plot.plugins.push({
|
417
|
+
init: init,
|
418
|
+
options: options,
|
419
|
+
name: 'time',
|
420
|
+
version: '1.0'
|
421
|
+
});
|
422
|
+
|
423
|
+
// Time-axis support used to be in Flot core, which exposed the
|
424
|
+
// formatDate function on the plot object. Various plugins depend
|
425
|
+
// on the function, so we need to re-expose it here.
|
426
|
+
|
427
|
+
$.plot.formatDate = formatDate;
|
428
|
+
|
429
|
+
})(jQuery);
|
@@ -0,0 +1 @@
|
|
1
|
+
(function($){var options={xaxis:{timezone:null,timeformat:null,twelveHourClock:false,monthNames:null}};function floorInBase(n,base){return base*Math.floor(n/base)}function formatDate(d,fmt,monthNames,dayNames){if(typeof d.strftime=="function"){return d.strftime(fmt)}var leftPad=function(n,pad){n=""+n;pad=""+(pad==null?"0":pad);return n.length==1?pad+n:n};var r=[];var escape=false;var hours=d.getHours();var isAM=hours<12;if(monthNames==null){monthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}if(dayNames==null){dayNames=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}var hours12;if(hours>12){hours12=hours-12}else if(hours==0){hours12=12}else{hours12=hours}for(var i=0;i<fmt.length;++i){var c=fmt.charAt(i);if(escape){switch(c){case"a":c=""+dayNames[d.getDay()];break;case"b":c=""+monthNames[d.getMonth()];break;case"d":c=leftPad(d.getDate());break;case"e":c=leftPad(d.getDate()," ");break;case"h":case"H":c=leftPad(hours);break;case"I":c=leftPad(hours12);break;case"l":c=leftPad(hours12," ");break;case"m":c=leftPad(d.getMonth()+1);break;case"M":c=leftPad(d.getMinutes());break;case"q":c=""+(Math.floor(d.getMonth()/3)+1);break;case"S":c=leftPad(d.getSeconds());break;case"y":c=leftPad(d.getFullYear()%100);break;case"Y":c=""+d.getFullYear();break;case"p":c=isAM?""+"am":""+"pm";break;case"P":c=isAM?""+"AM":""+"PM";break;case"w":c=""+d.getDay();break}r.push(c);escape=false}else{if(c=="%"){escape=true}else{r.push(c)}}}return r.join("")}function makeUtcWrapper(d){function addProxyMethod(sourceObj,sourceMethod,targetObj,targetMethod){sourceObj[sourceMethod]=function(){return targetObj[targetMethod].apply(targetObj,arguments)}}var utc={date:d};if(d.strftime!=undefined){addProxyMethod(utc,"strftime",d,"strftime")}addProxyMethod(utc,"getTime",d,"getTime");addProxyMethod(utc,"setTime",d,"setTime");var props=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"];for(var p=0;p<props.length;p++){addProxyMethod(utc,"get"+props[p],d,"getUTC"+props[p]);addProxyMethod(utc,"set"+props[p],d,"setUTC"+props[p])}return utc}function dateGenerator(ts,opts){if(opts.timezone=="browser"){return new Date(ts)}else if(!opts.timezone||opts.timezone=="utc"){return makeUtcWrapper(new Date(ts))}else if(typeof timezoneJS!="undefined"&&typeof timezoneJS.Date!="undefined"){var d=new timezoneJS.Date;d.setTimezone(opts.timezone);d.setTime(ts);return d}else{return makeUtcWrapper(new Date(ts))}}var timeUnitSize={second:1e3,minute:60*1e3,hour:60*60*1e3,day:24*60*60*1e3,month:30*24*60*60*1e3,quarter:3*30*24*60*60*1e3,year:365.2425*24*60*60*1e3};var baseSpec=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]];var specMonths=baseSpec.concat([[3,"month"],[6,"month"],[1,"year"]]);var specQuarters=baseSpec.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);function init(plot){plot.hooks.processOptions.push(function(plot,options){$.each(plot.getAxes(),function(axisName,axis){var opts=axis.options;if(opts.mode=="time"){axis.tickGenerator=function(axis){var ticks=[];var d=dateGenerator(axis.min,opts);var minSize=0;var spec=opts.tickSize&&opts.tickSize[1]==="quarter"||opts.minTickSize&&opts.minTickSize[1]==="quarter"?specQuarters:specMonths;if(opts.minTickSize!=null){if(typeof opts.tickSize=="number"){minSize=opts.tickSize}else{minSize=opts.minTickSize[0]*timeUnitSize[opts.minTickSize[1]]}}for(var i=0;i<spec.length-1;++i){if(axis.delta<(spec[i][0]*timeUnitSize[spec[i][1]]+spec[i+1][0]*timeUnitSize[spec[i+1][1]])/2&&spec[i][0]*timeUnitSize[spec[i][1]]>=minSize){break}}var size=spec[i][0];var unit=spec[i][1];if(unit=="year"){if(opts.minTickSize!=null&&opts.minTickSize[1]=="year"){size=Math.floor(opts.minTickSize[0])}else{var magn=Math.pow(10,Math.floor(Math.log(axis.delta/timeUnitSize.year)/Math.LN10));var norm=axis.delta/timeUnitSize.year/magn;if(norm<1.5){size=1}else if(norm<3){size=2}else if(norm<7.5){size=5}else{size=10}size*=magn}if(size<1){size=1}}axis.tickSize=opts.tickSize||[size,unit];var tickSize=axis.tickSize[0];unit=axis.tickSize[1];var step=tickSize*timeUnitSize[unit];if(unit=="second"){d.setSeconds(floorInBase(d.getSeconds(),tickSize))}else if(unit=="minute"){d.setMinutes(floorInBase(d.getMinutes(),tickSize))}else if(unit=="hour"){d.setHours(floorInBase(d.getHours(),tickSize))}else if(unit=="month"){d.setMonth(floorInBase(d.getMonth(),tickSize))}else if(unit=="quarter"){d.setMonth(3*floorInBase(d.getMonth()/3,tickSize))}else if(unit=="year"){d.setFullYear(floorInBase(d.getFullYear(),tickSize))}d.setMilliseconds(0);if(step>=timeUnitSize.minute){d.setSeconds(0)}if(step>=timeUnitSize.hour){d.setMinutes(0)}if(step>=timeUnitSize.day){d.setHours(0)}if(step>=timeUnitSize.day*4){d.setDate(1)}if(step>=timeUnitSize.month*2){d.setMonth(floorInBase(d.getMonth(),3))}if(step>=timeUnitSize.quarter*2){d.setMonth(floorInBase(d.getMonth(),6))}if(step>=timeUnitSize.year){d.setMonth(0)}var carry=0;var v=Number.NaN;var prev;do{prev=v;v=d.getTime();ticks.push(v);if(unit=="month"||unit=="quarter"){if(tickSize<1){d.setDate(1);var start=d.getTime();d.setMonth(d.getMonth()+(unit=="quarter"?3:1));var end=d.getTime();d.setTime(v+carry*timeUnitSize.hour+(end-start)*tickSize);carry=d.getHours();d.setHours(0)}else{d.setMonth(d.getMonth()+tickSize*(unit=="quarter"?3:1))}}else if(unit=="year"){d.setFullYear(d.getFullYear()+tickSize)}else{d.setTime(v+step)}}while(v<axis.max&&v!=prev);return ticks};axis.tickFormatter=function(v,axis){var d=dateGenerator(v,axis.options);if(opts.timeformat!=null){return formatDate(d,opts.timeformat,opts.monthNames,opts.dayNames)}var useQuarters=axis.options.tickSize&&axis.options.tickSize[1]=="quarter"||axis.options.minTickSize&&axis.options.minTickSize[1]=="quarter";var t=axis.tickSize[0]*timeUnitSize[axis.tickSize[1]];var span=axis.max-axis.min;var suffix=opts.twelveHourClock?" %p":"";var hourCode=opts.twelveHourClock?"%I":"%H";var fmt;if(t<timeUnitSize.minute){fmt=hourCode+":%M:%S"+suffix}else if(t<timeUnitSize.day){if(span<2*timeUnitSize.day){fmt=hourCode+":%M"+suffix}else{fmt="%b %d "+hourCode+":%M"+suffix}}else if(t<timeUnitSize.month){fmt="%b %d"}else if(useQuarters&&t<timeUnitSize.quarter||!useQuarters&&t<timeUnitSize.year){if(span<timeUnitSize.year){fmt="%b"}else{fmt="%b %Y"}}else if(useQuarters&&t<timeUnitSize.year){if(span<timeUnitSize.year){fmt="Q%q"}else{fmt="Q%q %Y"}}else{fmt="%Y"}var rt=formatDate(d,fmt,opts.monthNames,opts.dayNames);return rt}}})})}$.plot.plugins.push({init:init,options:options,name:"time",version:"1.0"});$.plot.formatDate=formatDate})(jQuery);
|