kiso_themes 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG +12 -0
- data/LICENSE +170 -0
- data/README.rdoc +6 -0
- data/Rakefile +516 -0
- data/VERSION +1 -0
- data/app/assets/fonts/font-awesome/FontAwesome.otf +0 -0
- data/app/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/font-awesome/fontawesome-webfont.svg +2671 -0
- data/app/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
- data/app/assets/fonts/ionicons/ionicons.eot +0 -0
- data/app/assets/fonts/ionicons/ionicons.svg +2230 -0
- data/app/assets/fonts/ionicons/ionicons.ttf +0 -0
- data/app/assets/fonts/ionicons/ionicons.woff +0 -0
- data/app/assets/fonts/mdiicons/LICENSE.txt +428 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.eot +0 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.ijmap +1 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.svg +2373 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.ttf +0 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.woff +0 -0
- data/app/assets/fonts/mdiicons/MaterialIcons-Regular.woff2 +0 -0
- data/app/assets/fonts/mdiicons/README.md +9 -0
- data/app/assets/fonts/mdiicons/codepoints +932 -0
- data/app/assets/fonts/themify/themify.eot +0 -0
- data/app/assets/fonts/themify/themify.svg +362 -0
- data/app/assets/fonts/themify/themify.ttf +0 -0
- data/app/assets/fonts/themify/themify.woff +0 -0
- data/app/assets/images/kiso_themes/app_video_placeholder.png +0 -0
- data/app/assets/images/kiso_themes/arrow-1.svg +8 -0
- data/app/assets/images/kiso_themes/arrow-2.svg +7 -0
- data/app/assets/images/kiso_themes/creditcards/amex.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/credit.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/dankort.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/diners.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/discover.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/forbru.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/google.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/jcb.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/laser.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/maestro.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/mastercard.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/money.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/paypa.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/shopify.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/solo.png +0 -0
- data/app/assets/images/kiso_themes/creditcards/visa.png +0 -0
- data/app/assets/images/kiso_themes/header_1.jpg +0 -0
- data/app/assets/images/kiso_themes/icons/check.png +0 -0
- data/app/assets/images/kiso_themes/landing_bg.jpg +0 -0
- data/app/assets/images/kiso_themes/pyrrmid_128.png +0 -0
- data/app/assets/images/kiso_themes/pyrrmid_200.png +0 -0
- data/app/assets/images/kiso_themes/pyrrmid_32.png +0 -0
- data/app/assets/images/kiso_themes/pyrrmid_64.png +0 -0
- data/app/assets/images/kiso_themes/stock/1.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/2.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/3.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/4.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/acme_1.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_2.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_3.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_4.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_5.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_6.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_7.png +0 -0
- data/app/assets/images/kiso_themes/stock/acme_8.png +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_1.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_10.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_12.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_13.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_14.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_2.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_3.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_4.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_5.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_6.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_7.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_8.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/landscape_9.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/us_landscape_1.jpg +0 -0
- data/app/assets/images/kiso_themes/stock/us_landscape_2.jpg +0 -0
- data/app/assets/images/kiso_themes/ui_placeholder_desktop.png +0 -0
- data/app/assets/javascripts/kiso_themes/bootstrap.js +20 -0
- data/app/assets/javascripts/kiso_themes/bootstrap_switch.js +23 -0
- data/app/assets/javascripts/kiso_themes/chartjs.js +11 -0
- data/app/assets/javascripts/kiso_themes/clipboard.js +12 -0
- data/app/assets/javascripts/kiso_themes/countTo.js +1 -0
- data/app/assets/javascripts/kiso_themes/countdown.js +28 -0
- data/app/assets/javascripts/kiso_themes/demo/chartjs.js +102 -0
- data/app/assets/javascripts/kiso_themes/demo/dashboard.js +229 -0
- data/app/assets/javascripts/kiso_themes/demo/data_generator.js +25 -0
- data/app/assets/javascripts/kiso_themes/demo/easypiechart.js +41 -0
- data/app/assets/javascripts/kiso_themes/demo/flot.js +258 -0
- data/app/assets/javascripts/kiso_themes/demo/gmaps.js +163 -0
- data/app/assets/javascripts/kiso_themes/demo/jqvectormap.js +65 -0
- data/app/assets/javascripts/kiso_themes/demo/sparklines.js +156 -0
- data/app/assets/javascripts/kiso_themes/easypiechart.js +12 -0
- data/app/assets/javascripts/kiso_themes/fastclick.js +16 -0
- data/app/assets/javascripts/kiso_themes/fitie.js +14 -0
- data/app/assets/javascripts/kiso_themes/flot.js +11 -0
- data/app/assets/javascripts/kiso_themes/forms.js +13 -0
- data/app/assets/javascripts/kiso_themes/gmaps.js +9 -0
- data/app/assets/javascripts/kiso_themes/header.js +33 -0
- data/app/assets/javascripts/kiso_themes/inspect_mode/inspect_mode.js +581 -0
- data/app/assets/javascripts/kiso_themes/jasny.js +13 -0
- data/app/assets/javascripts/kiso_themes/jqvectormaps.js +24 -0
- data/app/assets/javascripts/kiso_themes/kernel.js +48 -0
- data/app/assets/javascripts/kiso_themes/metis_menu.js +16 -0
- data/app/assets/javascripts/kiso_themes/parallax.js +14 -0
- data/app/assets/javascripts/kiso_themes/popper.js +1 -0
- data/app/assets/javascripts/kiso_themes/prettify.js +12 -0
- data/app/assets/javascripts/kiso_themes/prism.js +10 -0
- data/app/assets/javascripts/kiso_themes/sheets.js +98 -0
- data/app/assets/javascripts/kiso_themes/sidenav.js +77 -0
- data/app/assets/javascripts/kiso_themes/slimscroll.js +1 -0
- data/app/assets/javascripts/kiso_themes/sparklines.js +1 -0
- data/app/assets/javascripts/kiso_themes.js +39 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/alert.js +198 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/button.js +186 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/carousel.js +667 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/collapse.js +427 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/dropdown.js +594 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/index.js +22 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/modal.js +649 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/popover.js +260 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/scrollspy.js +374 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/tab.js +268 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/toast.js +282 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/tooltip.js +906 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap/util.js +171 -0
- data/app/assets/javascripts/vendor/bootstrap/bootstrap.js +13 -0
- data/app/assets/javascripts/vendor/bootstrap_switch/bootstrap_switch.js +744 -0
- data/app/assets/javascripts/vendor/chartjs/Chart.bundle.min.js +10 -0
- data/app/assets/javascripts/vendor/chartjs/Chart.min.js +10 -0
- data/app/assets/javascripts/vendor/clipboardjs/clipboard.js +7 -0
- data/app/assets/javascripts/vendor/countTo/countTo.js +130 -0
- data/app/assets/javascripts/vendor/countdown/countdown.js +22 -0
- data/app/assets/javascripts/vendor/easypiechart/jquery.easypiechart.js +364 -0
- data/app/assets/javascripts/vendor/fastclick/fastclick.js +841 -0
- data/app/assets/javascripts/vendor/fitie/fitie.js +1 -0
- data/app/assets/javascripts/vendor/flot/flot-chart-resize.js +59 -0
- data/app/assets/javascripts/vendor/flot/flot-chart-stack.js +188 -0
- data/app/assets/javascripts/vendor/flot/flot-chart-time.js +432 -0
- data/app/assets/javascripts/vendor/flot/flot-chart.js +3168 -0
- data/app/assets/javascripts/vendor/gmaps/gmaps.js +2418 -0
- data/app/assets/javascripts/vendor/jasny/jasny_bootstrap.js +1020 -0
- data/app/assets/javascripts/vendor/jqvectormaps/jquery-jvectormap.css +135 -0
- data/app/assets/javascripts/vendor/jqvectormaps/jquery-jvectormap.js +3375 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/More maps.txt +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-au-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-ca-mill.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-cn-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-de-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-europe-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-fr-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-in-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-us-aea-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-world-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/jqvectormaps/maps/jquery-jvectormap-za-mill-en.js +1 -0
- data/app/assets/javascripts/vendor/metis_menu/metis_menu.js +337 -0
- data/app/assets/javascripts/vendor/modernizr/modernizr.2.8.3.min.js +1 -0
- data/app/assets/javascripts/vendor/parallax/parallax.js +6 -0
- data/app/assets/javascripts/vendor/popper/popper.js +4 -0
- data/app/assets/javascripts/vendor/prettify/prettify.js +1655 -0
- data/app/assets/javascripts/vendor/prism/prism-normalize-whitespace.js +190 -0
- data/app/assets/javascripts/vendor/prism/prism.js +819 -0
- data/app/assets/javascripts/vendor/slimscroll/slimscroll.js +288 -0
- data/app/assets/javascripts/vendor/sparklines/jquery.sparkline.js +3054 -0
- data/app/assets/stylesheets/kiso_themes/auriga/blue.css.erb +31497 -0
- data/app/assets/stylesheets/kiso_themes/auriga/green.css.erb +31497 -0
- data/app/assets/stylesheets/kiso_themes/auriga/red.css.erb +31497 -0
- data/app/assets/stylesheets/kiso_themes/auriga/yellow.css.erb +31497 -0
- data/app/assets/stylesheets/kiso_themes/carbon/black.css.erb +0 -0
- data/app/assets/stylesheets/kiso_themes/gemini/amber.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/gemini/blue.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/gemini/granite.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/gemini/ocean.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/lyra/azure.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/lyra/charcoal.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/lyra/lime.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/lyra/raspberry.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/orion/blue.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/orion/green.css.erb +31469 -0
- data/app/assets/stylesheets/kiso_themes/orion/orange.css.erb +31464 -0
- data/app/assets/stylesheets/kiso_themes/orion/purple.css.erb +31469 -0
- data/app/helpers/content_block_helper.rb +2 -0
- data/app/helpers/devices_helper.rb +67 -0
- data/app/helpers/dropdown_helper.rb +50 -0
- data/app/helpers/email_template_helper.rb +66 -0
- data/app/helpers/form_errors_helper.rb +50 -0
- data/app/helpers/form_group_helper.rb +48 -0
- data/app/helpers/html_helper.rb +57 -0
- data/app/helpers/icons_helper.rb +56 -0
- data/app/helpers/metrics_helper.rb +90 -0
- data/app/views/content_blocks/app_navs/_1.html.erb +124 -0
- data/app/views/content_blocks/app_navs/_1.html.haml +83 -0
- data/app/views/content_blocks/app_navs/_1.html.slim +83 -0
- data/app/views/content_blocks/app_navs/_2.html.erb +124 -0
- data/app/views/content_blocks/app_navs/_2.html.haml +81 -0
- data/app/views/content_blocks/app_navs/_2.html.slim +81 -0
- data/app/views/content_blocks/app_navs/_3.html.erb +129 -0
- data/app/views/content_blocks/app_navs/_3.html.haml +84 -0
- data/app/views/content_blocks/app_navs/_3.html.slim +84 -0
- data/app/views/content_blocks/app_navs/_4.html.erb +127 -0
- data/app/views/content_blocks/app_navs/_4.html.haml +82 -0
- data/app/views/content_blocks/app_navs/_4.html.slim +82 -0
- data/app/views/content_blocks/app_navs/_5.html.erb +47 -0
- data/app/views/content_blocks/app_navs/_5.html.haml +30 -0
- data/app/views/content_blocks/app_navs/_5.html.slim +30 -0
- data/app/views/content_blocks/basic/_1.html.erb +12 -0
- data/app/views/content_blocks/basic/_1.html.haml +8 -0
- data/app/views/content_blocks/basic/_1.html.slim +8 -0
- data/app/views/content_blocks/basic/_2.html.erb +12 -0
- data/app/views/content_blocks/basic/_2.html.haml +8 -0
- data/app/views/content_blocks/basic/_2.html.slim +8 -0
- data/app/views/content_blocks/basic/_3.html.erb +12 -0
- data/app/views/content_blocks/basic/_3.html.haml +8 -0
- data/app/views/content_blocks/basic/_3.html.slim +8 -0
- data/app/views/content_blocks/basic/_4.html.erb +20 -0
- data/app/views/content_blocks/basic/_4.html.haml +14 -0
- data/app/views/content_blocks/basic/_4.html.slim +14 -0
- data/app/views/content_blocks/basic/_5.html.erb +16 -0
- data/app/views/content_blocks/basic/_5.html.haml +11 -0
- data/app/views/content_blocks/basic/_5.html.slim +11 -0
- data/app/views/content_blocks/basic/_6.html.erb +11 -0
- data/app/views/content_blocks/basic/_6.html.haml +7 -0
- data/app/views/content_blocks/basic/_6.html.slim +7 -0
- data/app/views/content_blocks/basic/_7.html.erb +11 -0
- data/app/views/content_blocks/basic/_7.html.haml +7 -0
- data/app/views/content_blocks/basic/_7.html.slim +7 -0
- data/app/views/content_blocks/basic/_8.html.erb +19 -0
- data/app/views/content_blocks/basic/_8.html.haml +14 -0
- data/app/views/content_blocks/basic/_8.html.slim +14 -0
- data/app/views/content_blocks/general/_1.html.erb +14 -0
- data/app/views/content_blocks/general/_1.html.haml +14 -0
- data/app/views/content_blocks/general/_1.html.slim +14 -0
- data/app/views/content_blocks/general/_10.html.erb +11 -0
- data/app/views/content_blocks/general/_10.html.haml +9 -0
- data/app/views/content_blocks/general/_10.html.slim +9 -0
- data/app/views/content_blocks/general/_11.html.erb +11 -0
- data/app/views/content_blocks/general/_11.html.haml +9 -0
- data/app/views/content_blocks/general/_11.html.slim +9 -0
- data/app/views/content_blocks/general/_12.html.erb +60 -0
- data/app/views/content_blocks/general/_12.html.haml +40 -0
- data/app/views/content_blocks/general/_12.html.slim +40 -0
- data/app/views/content_blocks/general/_13.html.erb +11 -0
- data/app/views/content_blocks/general/_13.html.haml +8 -0
- data/app/views/content_blocks/general/_13.html.slim +8 -0
- data/app/views/content_blocks/general/_14.html.erb +18 -0
- data/app/views/content_blocks/general/_14.html.haml +11 -0
- data/app/views/content_blocks/general/_14.html.slim +11 -0
- data/app/views/content_blocks/general/_15.html.erb +50 -0
- data/app/views/content_blocks/general/_15.html.haml +30 -0
- data/app/views/content_blocks/general/_15.html.slim +30 -0
- data/app/views/content_blocks/general/_16.html.erb +54 -0
- data/app/views/content_blocks/general/_16.html.haml +34 -0
- data/app/views/content_blocks/general/_16.html.slim +34 -0
- data/app/views/content_blocks/general/_17.html.erb +11 -0
- data/app/views/content_blocks/general/_17.html.haml +9 -0
- data/app/views/content_blocks/general/_17.html.slim +9 -0
- data/app/views/content_blocks/general/_18.html.erb +11 -0
- data/app/views/content_blocks/general/_18.html.haml +10 -0
- data/app/views/content_blocks/general/_18.html.slim +10 -0
- data/app/views/content_blocks/general/_19.html.erb +11 -0
- data/app/views/content_blocks/general/_19.html.haml +9 -0
- data/app/views/content_blocks/general/_19.html.slim +9 -0
- data/app/views/content_blocks/general/_2.html.erb +14 -0
- data/app/views/content_blocks/general/_2.html.haml +14 -0
- data/app/views/content_blocks/general/_2.html.slim +14 -0
- data/app/views/content_blocks/general/_20.html.erb +9 -0
- data/app/views/content_blocks/general/_20.html.haml +6 -0
- data/app/views/content_blocks/general/_20.html.slim +6 -0
- data/app/views/content_blocks/general/_21.html.erb +9 -0
- data/app/views/content_blocks/general/_21.html.haml +6 -0
- data/app/views/content_blocks/general/_21.html.slim +6 -0
- data/app/views/content_blocks/general/_22.html.erb +13 -0
- data/app/views/content_blocks/general/_22.html.haml +8 -0
- data/app/views/content_blocks/general/_22.html.slim +8 -0
- data/app/views/content_blocks/general/_23.html.erb +13 -0
- data/app/views/content_blocks/general/_23.html.haml +8 -0
- data/app/views/content_blocks/general/_23.html.slim +8 -0
- data/app/views/content_blocks/general/_24.html.erb +60 -0
- data/app/views/content_blocks/general/_24.html.haml +40 -0
- data/app/views/content_blocks/general/_24.html.slim +40 -0
- data/app/views/content_blocks/general/_25.html.erb +60 -0
- data/app/views/content_blocks/general/_25.html.haml +40 -0
- data/app/views/content_blocks/general/_25.html.slim +40 -0
- data/app/views/content_blocks/general/_26.html.erb +11 -0
- data/app/views/content_blocks/general/_26.html.haml +7 -0
- data/app/views/content_blocks/general/_26.html.slim +7 -0
- data/app/views/content_blocks/general/_27.html.erb +13 -0
- data/app/views/content_blocks/general/_27.html.haml +8 -0
- data/app/views/content_blocks/general/_27.html.slim +8 -0
- data/app/views/content_blocks/general/_28.html.erb +13 -0
- data/app/views/content_blocks/general/_28.html.haml +8 -0
- data/app/views/content_blocks/general/_28.html.slim +8 -0
- data/app/views/content_blocks/general/_29.html.erb +13 -0
- data/app/views/content_blocks/general/_29.html.haml +8 -0
- data/app/views/content_blocks/general/_29.html.slim +8 -0
- data/app/views/content_blocks/general/_3.html.erb +12 -0
- data/app/views/content_blocks/general/_3.html.haml +8 -0
- data/app/views/content_blocks/general/_3.html.slim +8 -0
- data/app/views/content_blocks/general/_30.html.erb +40 -0
- data/app/views/content_blocks/general/_30.html.haml +38 -0
- data/app/views/content_blocks/general/_30.html.slim +38 -0
- data/app/views/content_blocks/general/_31.html.erb +19 -0
- data/app/views/content_blocks/general/_31.html.haml +17 -0
- data/app/views/content_blocks/general/_31.html.slim +17 -0
- data/app/views/content_blocks/general/_32.html.erb +51 -0
- data/app/views/content_blocks/general/_32.html.haml +45 -0
- data/app/views/content_blocks/general/_32.html.slim +45 -0
- data/app/views/content_blocks/general/_33.html.erb +10 -0
- data/app/views/content_blocks/general/_33.html.haml +6 -0
- data/app/views/content_blocks/general/_33.html.slim +6 -0
- data/app/views/content_blocks/general/_34.html.erb +23 -0
- data/app/views/content_blocks/general/_34.html.haml +18 -0
- data/app/views/content_blocks/general/_34.html.slim +18 -0
- data/app/views/content_blocks/general/_35.html.erb +86 -0
- data/app/views/content_blocks/general/_35.html.haml +63 -0
- data/app/views/content_blocks/general/_35.html.slim +63 -0
- data/app/views/content_blocks/general/_36.html.erb +87 -0
- data/app/views/content_blocks/general/_36.html.haml +67 -0
- data/app/views/content_blocks/general/_36.html.slim +67 -0
- data/app/views/content_blocks/general/_37.html.erb +68 -0
- data/app/views/content_blocks/general/_37.html.haml +52 -0
- data/app/views/content_blocks/general/_37.html.slim +52 -0
- data/app/views/content_blocks/general/_38.html.erb +61 -0
- data/app/views/content_blocks/general/_38.html.haml +54 -0
- data/app/views/content_blocks/general/_38.html.slim +54 -0
- data/app/views/content_blocks/general/_39.html.erb +16 -0
- data/app/views/content_blocks/general/_39.html.haml +10 -0
- data/app/views/content_blocks/general/_39.html.slim +10 -0
- data/app/views/content_blocks/general/_4.html.erb +12 -0
- data/app/views/content_blocks/general/_4.html.haml +8 -0
- data/app/views/content_blocks/general/_4.html.slim +8 -0
- data/app/views/content_blocks/general/_40!dark.html.erb +9 -0
- data/app/views/content_blocks/general/_40!dark.html.haml +6 -0
- data/app/views/content_blocks/general/_40!dark.html.slim +6 -0
- data/app/views/content_blocks/general/_5.html.erb +28 -0
- data/app/views/content_blocks/general/_5.html.haml +19 -0
- data/app/views/content_blocks/general/_5.html.slim +19 -0
- data/app/views/content_blocks/general/_6.html.erb +49 -0
- data/app/views/content_blocks/general/_6.html.haml +34 -0
- data/app/views/content_blocks/general/_6.html.slim +34 -0
- data/app/views/content_blocks/general/_7.html.erb +21 -0
- data/app/views/content_blocks/general/_7.html.haml +14 -0
- data/app/views/content_blocks/general/_7.html.slim +14 -0
- data/app/views/content_blocks/general/_8.html.erb +21 -0
- data/app/views/content_blocks/general/_8.html.haml +14 -0
- data/app/views/content_blocks/general/_8.html.slim +14 -0
- data/app/views/content_blocks/general/_9.html.erb +31 -0
- data/app/views/content_blocks/general/_9.html.haml +21 -0
- data/app/views/content_blocks/general/_9.html.slim +21 -0
- data/app/views/content_blocks/headers/_1.html.erb +59 -0
- data/app/views/content_blocks/headers/_1.html.haml +42 -0
- data/app/views/content_blocks/headers/_1.html.slim +42 -0
- data/app/views/content_blocks/headers/_10.html.erb +57 -0
- data/app/views/content_blocks/headers/_10.html.haml +41 -0
- data/app/views/content_blocks/headers/_10.html.slim +41 -0
- data/app/views/content_blocks/headers/_2.html.erb +51 -0
- data/app/views/content_blocks/headers/_2.html.haml +37 -0
- data/app/views/content_blocks/headers/_2.html.slim +37 -0
- data/app/views/content_blocks/headers/_3.html.erb +51 -0
- data/app/views/content_blocks/headers/_3.html.haml +37 -0
- data/app/views/content_blocks/headers/_3.html.slim +37 -0
- data/app/views/content_blocks/headers/_4.html.erb +78 -0
- data/app/views/content_blocks/headers/_4.html.haml +55 -0
- data/app/views/content_blocks/headers/_4.html.slim +55 -0
- data/app/views/content_blocks/headers/_5.html.erb +77 -0
- data/app/views/content_blocks/headers/_5.html.haml +55 -0
- data/app/views/content_blocks/headers/_5.html.slim +55 -0
- data/app/views/content_blocks/headers/_6.html.erb +50 -0
- data/app/views/content_blocks/headers/_6.html.haml +37 -0
- data/app/views/content_blocks/headers/_6.html.slim +37 -0
- data/app/views/content_blocks/headers/_7.html.erb +54 -0
- data/app/views/content_blocks/headers/_7.html.haml +39 -0
- data/app/views/content_blocks/headers/_7.html.slim +39 -0
- data/app/views/content_blocks/headers/_8.html.erb +77 -0
- data/app/views/content_blocks/headers/_8.html.haml +56 -0
- data/app/views/content_blocks/headers/_8.html.slim +56 -0
- data/app/views/content_blocks/headers/_9.html.erb +76 -0
- data/app/views/content_blocks/headers/_9.html.haml +53 -0
- data/app/views/content_blocks/headers/_9.html.slim +53 -0
- data/app/views/content_blocks/landing_navs/_1.html.erb +22 -0
- data/app/views/content_blocks/landing_navs/_1.html.haml +16 -0
- data/app/views/content_blocks/landing_navs/_1.html.slim +16 -0
- data/app/views/content_blocks/landing_navs/_2.html.erb +25 -0
- data/app/views/content_blocks/landing_navs/_2.html.haml +18 -0
- data/app/views/content_blocks/landing_navs/_2.html.slim +18 -0
- data/app/views/content_blocks/landing_navs/_3.html.erb +28 -0
- data/app/views/content_blocks/landing_navs/_3.html.haml +20 -0
- data/app/views/content_blocks/landing_navs/_3.html.slim +20 -0
- data/app/views/content_blocks/landing_navs/_4.html.erb +31 -0
- data/app/views/content_blocks/landing_navs/_4.html.haml +24 -0
- data/app/views/content_blocks/landing_navs/_4.html.slim +24 -0
- data/app/views/content_blocks/landing_navs/_5.html.erb +31 -0
- data/app/views/content_blocks/landing_navs/_5.html.haml +24 -0
- data/app/views/content_blocks/landing_navs/_5.html.slim +24 -0
- data/app/views/devise/erb/confirmations/new.html.erb +36 -0
- data/app/views/devise/erb/invitations/edit.html.erb +41 -0
- data/app/views/devise/erb/invitations/new.html.erb +37 -0
- data/app/views/devise/erb/mailer/confirmation_instructions.html.erb +18 -0
- data/app/views/devise/erb/mailer/invitation_instructions.html.erb +20 -0
- data/app/views/devise/erb/mailer/reset_password_instructions.html.erb +18 -0
- data/app/views/devise/erb/mailer/unlock_instructions.html.erb +19 -0
- data/app/views/devise/erb/passwords/edit.html.erb +44 -0
- data/app/views/devise/erb/passwords/new.html.erb +37 -0
- data/app/views/devise/erb/registrations/edit.html.erb +73 -0
- data/app/views/devise/erb/registrations/new.html.erb +48 -0
- data/app/views/devise/erb/sessions/new.html.erb +79 -0
- data/app/views/devise/erb/unlocks/new.html.erb +36 -0
- data/app/views/devise/haml/confirmations/new.html.haml +22 -0
- data/app/views/devise/haml/invitations/edit.html.haml +29 -0
- data/app/views/devise/haml/invitations/new.html.haml +21 -0
- data/app/views/devise/haml/mailer/confirmation_instructions.html.haml +10 -0
- data/app/views/devise/haml/mailer/invitation_instructions.html.haml +11 -0
- data/app/views/devise/haml/mailer/reset_password_instructions.html.haml +10 -0
- data/app/views/devise/haml/mailer/unlock_instructions.html.haml +10 -0
- data/app/views/devise/haml/passwords/edit.html.haml +27 -0
- data/app/views/devise/haml/passwords/new.html.haml +22 -0
- data/app/views/devise/haml/registrations/edit.html.haml +44 -0
- data/app/views/devise/haml/registrations/new.html.haml +30 -0
- data/app/views/devise/haml/sessions/new.html.haml +44 -0
- data/app/views/devise/haml/unlocks/new.html.haml +23 -0
- data/app/views/devise/slim/confirmations/new.html.haml +24 -0
- data/app/views/devise/slim/invitations/edit.html.haml +24 -0
- data/app/views/devise/slim/invitations/new.html.haml +20 -0
- data/app/views/devise/slim/mailer/confirmation_instructions.html.haml +26 -0
- data/app/views/devise/slim/mailer/invitation_instructions.html.haml +25 -0
- data/app/views/devise/slim/mailer/reset_password_instructions.html.haml +27 -0
- data/app/views/devise/slim/mailer/unlock_instructions.html.haml +27 -0
- data/app/views/devise/slim/passwords/edit.html.haml +26 -0
- data/app/views/devise/slim/passwords/new.html.haml +25 -0
- data/app/views/devise/slim/registrations/edit.html.haml +40 -0
- data/app/views/devise/slim/registrations/new.html.haml +32 -0
- data/app/views/devise/slim/sessions/new.html.haml +43 -0
- data/app/views/devise/slim/unlocks/new.html.haml +24 -0
- data/app/views/kaminari/_first_page.html.erb +15 -0
- data/app/views/kaminari/_gap.html.erb +8 -0
- data/app/views/kaminari/_gap.html.haml +2 -0
- data/app/views/kaminari/_last_page.html.erb +15 -0
- data/app/views/kaminari/_next_page.html.erb +15 -0
- data/app/views/kaminari/_next_page.html.haml +2 -0
- data/app/views/kaminari/_page.html.erb +12 -0
- data/app/views/kaminari/_page.html.haml +2 -0
- data/app/views/kaminari/_paginator.html.erb +27 -0
- data/app/views/kaminari/_paginator.html.haml +10 -0
- data/app/views/kaminari/_prev_page.html.erb +15 -0
- data/app/views/kaminari/_prev_page.html.haml +2 -0
- data/kiso_themes.gemspec +37 -0
- data/lib/generators/kiso_themes/analytics_dashboard_pages_generator.rb +16 -0
- data/lib/generators/kiso_themes/analytics_detail_pages_generator.rb +16 -0
- data/lib/generators/kiso_themes/app_pages_generator.rb +33 -0
- data/lib/generators/kiso_themes/blog_archive_pages_generator.rb +16 -0
- data/lib/generators/kiso_themes/blog_post_pages_generator.rb +16 -0
- data/lib/generators/kiso_themes/content_blocks_generator.rb +30 -0
- data/lib/generators/kiso_themes/customize_generator.rb +52 -0
- data/lib/generators/kiso_themes/dashboard_pages_generator.rb +37 -0
- data/lib/generators/kiso_themes/devise_generator.rb +45 -0
- data/lib/generators/kiso_themes/email_layout_generator.rb +41 -0
- data/lib/generators/kiso_themes/error_pages_generator.rb +19 -0
- data/lib/generators/kiso_themes/faq_pages_generator.rb +17 -0
- data/lib/generators/kiso_themes/handler_support.rb +27 -0
- data/lib/generators/kiso_themes/install_generator.rb +246 -0
- data/lib/generators/kiso_themes/landing_pages_generator.rb +16 -0
- data/lib/generators/kiso_themes/legal_pages_generator.rb +25 -0
- data/lib/generators/kiso_themes/page_generator.rb +37 -0
- data/lib/generators/kiso_themes/pricing_pages_generator.rb +10 -0
- data/lib/generators/kiso_themes/templates/README.tt +58 -0
- data/lib/generators/kiso_themes/templates/README_CUSTOMIZE +38 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/auriga/blue.css.scss +120 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/auriga/green.css.scss +120 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/auriga/red.css.scss +120 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/auriga/yellow.css.scss +120 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/gemini/amber.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/gemini/blue.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/gemini/granite.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/gemini/ocean.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/lyra/azure.css.scss +119 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/lyra/charcoal.css.scss +119 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/lyra/lime.css.scss +119 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/lyra/raspberry.css.scss +119 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/orion/blue.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/orion/green.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/orion/orange.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/customizations/styles/orion/purple.css.scss +118 -0
- data/lib/generators/kiso_themes/templates/error_pages/403.html.erb +66 -0
- data/lib/generators/kiso_themes/templates/error_pages/404.html.erb +67 -0
- data/lib/generators/kiso_themes/templates/error_pages/422.html.erb +66 -0
- data/lib/generators/kiso_themes/templates/error_pages/500.html.erb +67 -0
- data/lib/generators/kiso_themes/templates/kiso_themes.css +31 -0
- data/lib/generators/kiso_themes/templates/layouts/_app_nav.html.erb +124 -0
- data/lib/generators/kiso_themes/templates/layouts/_app_nav.html.haml +81 -0
- data/lib/generators/kiso_themes/templates/layouts/_app_nav.html.slim +81 -0
- data/lib/generators/kiso_themes/templates/layouts/_base.html.erb +34 -0
- data/lib/generators/kiso_themes/templates/layouts/_base.html.haml +19 -0
- data/lib/generators/kiso_themes/templates/layouts/_base.html.slim +19 -0
- data/lib/generators/kiso_themes/templates/layouts/_dashboard_top_nav.html.erb +134 -0
- data/lib/generators/kiso_themes/templates/layouts/_dashboard_top_nav.html.haml +87 -0
- data/lib/generators/kiso_themes/templates/layouts/_dashboard_top_nav.html.slim +87 -0
- data/lib/generators/kiso_themes/templates/layouts/_external_js_libs.html.erb +30 -0
- data/lib/generators/kiso_themes/templates/layouts/_external_js_libs.html.haml +17 -0
- data/lib/generators/kiso_themes/templates/layouts/_external_js_libs.html.slim +17 -0
- data/lib/generators/kiso_themes/templates/layouts/_flashes.html.erb +13 -0
- data/lib/generators/kiso_themes/templates/layouts/_flashes.html.haml +10 -0
- data/lib/generators/kiso_themes/templates/layouts/_flashes.html.slim +10 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu.html.erb +66 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu.html.haml +42 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu.html.slim +42 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_header.html.erb +25 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_header.html.haml +16 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_header.html.slim +16 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_main_content.html.erb +0 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_main_content.html.haml +0 -0
- data/lib/generators/kiso_themes/templates/layouts/_side_menu_main_content.html.slim +1 -0
- data/lib/generators/kiso_themes/templates/layouts/application.html.erb +4 -0
- data/lib/generators/kiso_themes/templates/layouts/application.html.haml +3 -0
- data/lib/generators/kiso_themes/templates/layouts/application.html.slim +3 -0
- data/lib/generators/kiso_themes/templates/layouts/devise.html.erb +3 -0
- data/lib/generators/kiso_themes/templates/layouts/devise.html.haml +5 -0
- data/lib/generators/kiso_themes/templates/layouts/devise.html.slim +5 -0
- data/lib/generators/kiso_themes/templates/layouts/email.html.erb +68 -0
- data/lib/generators/kiso_themes/templates/layouts/email.html.haml +40 -0
- data/lib/generators/kiso_themes/templates/layouts/email.html.slim +40 -0
- data/lib/generators/kiso_themes/templates/layouts/landing.html.erb +3 -0
- data/lib/generators/kiso_themes/templates/layouts/landing.html.haml +2 -0
- data/lib/generators/kiso_themes/templates/layouts/landing.html.slim +2 -0
- data/lib/generators/kiso_themes/templates/layouts/scaffold.html.erb +25 -0
- data/lib/generators/kiso_themes/templates/layouts/scaffold.html.haml +15 -0
- data/lib/generators/kiso_themes/templates/layouts/scaffold.html.slim +15 -0
- data/lib/generators/kiso_themes/templates/layouts/sidenav.html.erb +33 -0
- data/lib/generators/kiso_themes/templates/layouts/sidenav.html.haml +19 -0
- data/lib/generators/kiso_themes/templates/layouts/sidenav.html.slim +19 -0
- data/lib/generators/kiso_themes/templates/rails6/index.js +39 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/bootstrap.js +20 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/bootstrap_switch.js +23 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/chartjs.js +11 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/clipboard.js +12 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/countTo.js +1 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/countdown.js +28 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/chartjs.js +101 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/dashboard.js +229 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/data_generator.js +27 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/easypiechart.js +41 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/flot.js +258 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/gmaps.js +163 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/jqvectormap.js +65 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/demo/sparklines.js +156 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/easypiechart.js +12 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/fastclick.js +16 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/fitie.js +14 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/flot.js +11 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/forms.js +13 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/gmaps.js +9 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/header.js +33 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/inspect_mode/inspect_mode.js +580 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/jasny.js +13 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/jqvectormaps.js +24 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/kernel.js +48 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/metis_menu.js +16 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/parallax.js +14 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/popper.js +1 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/prettify.js +12 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/prism.js +10 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/sheets.js +98 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/sidenav.js +77 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/slimscroll.js +1 -0
- data/lib/generators/kiso_themes/templates/rails6/kiso_themes/sparklines.js +1 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_dashboard_1.html.erb +55 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_dashboard_1.html.haml +36 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_dashboard_1.html.slim +36 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_detail_1.html.erb +52 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_detail_1.html.haml +44 -0
- data/lib/generators/kiso_themes/templates/views/analytics/analytics_detail_1.html.slim +44 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_avatar_upload.html.erb +15 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_avatar_upload.html.haml +10 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_avatar_upload.html.slim +10 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_billing.html.erb +48 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_billing.html.haml +34 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_billing.html.slim +34 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_notifications.html.erb +59 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_notifications.html.haml +42 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_notifications.html.slim +42 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_plan.html.erb +70 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_plan.html.haml +47 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_plan.html.slim +47 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_profile.html.erb +65 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_profile.html.haml +51 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_profile.html.slim +51 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_support.html.erb +76 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_support.html.haml +50 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/_user_account/_support.html.slim +50 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/billing.html.erb +76 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/billing.html.haml +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/billing.html.slim +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/notifications.html.erb +76 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/notifications.html.haml +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/notifications.html.slim +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/plan.html.erb +76 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/plan.html.haml +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/plan.html.slim +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/profile.html.erb +75 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/profile.html.haml +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/profile.html.slim +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/support.html.erb +76 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/support.html.haml +41 -0
- data/lib/generators/kiso_themes/templates/views/app_pages/user_account/support.html.slim +41 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_bs_table.html.erb +61 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_bs_table.html.haml +50 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_bs_table.html.slim +50 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metric_charts.html.erb +38 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metric_charts.html.haml +25 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metric_charts.html.slim +25 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metrics_cards.html.erb +74 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metrics_cards.html.haml +45 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_metrics_cards.html.slim +45 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_most_active_users.html.erb +137 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_most_active_users.html.haml +135 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_most_active_users.html.slim +135 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_online_users.html.erb +11 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_online_users.html.haml +7 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_online_users.html.slim +7 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_sales_refunds.html.erb +54 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_sales_refunds.html.haml +36 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_sales_refunds.html.slim +36 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_server_activity.html.erb +102 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_server_activity.html.haml +80 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/_server_activity.html.slim +80 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_1.html.erb +11 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_1.html.haml +321 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_1.html.slim +321 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_2.html.erb +437 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_2.html.haml +306 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_2.html.slim +306 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_3.html.erb +148 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_3.html.haml +96 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_3.html.slim +96 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_4.html.erb +126 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_4.html.haml +77 -0
- data/lib/generators/kiso_themes/templates/views/dashboards/dashboard_4.html.slim +77 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_footer.html.erb +16 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_footer.html.haml +15 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_footer.html.slim +15 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_header.html.erb +20 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_header.html.haml +13 -0
- data/lib/generators/kiso_themes/templates/views/emails/_email_header.html.slim +13 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_archive_1.html.erb +92 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_archive_1.html.haml +80 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_archive_1.html.slim +80 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_post_1.html.erb +227 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_post_1.html.haml +168 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/blog_pages/blog_post_1.html.slim +168 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/403.html.erb +17 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/403.html.haml +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/403.html.slim +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/404.html.erb +18 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/404.html.haml +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/404.html.slim +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/422.html.erb +18 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/422.html.haml +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/422.html.slim +11 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/500.html.erb +16 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/500.html.haml +10 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/error_pages/500.html.slim +10 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_1.html.erb +103 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_1.html.haml +88 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_1.html.slim +88 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_2.html.erb +89 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_2.html.haml +57 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/faq_pages/faq_page_2.html.slim +57 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_1.html.erb +41 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_1.html.haml +26 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_1.html.slim +26 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_2.html.erb +38 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_2.html.haml +23 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_2.html.slim +23 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_3.html.erb +185 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_3.html.haml +138 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_3.html.slim +138 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_4.html.erb +96 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_4.html.haml +58 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_4.html.slim +58 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_5.html.erb +26 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_5.html.haml +13 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/landing_pages/landing_page_5.html.slim +13 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/privacy_page.html.erb +159 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/privacy_page.html.haml +100 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/privacy_page.html.slim +100 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/terms_of_service_page.html.erb +205 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/terms_of_service_page.html.haml +206 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/legal_pages/terms_of_service_page.html.slim +206 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_1.html.erb +64 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_1.html.haml +37 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_1.html.slim +37 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_2.html.erb +63 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_2.html.haml +36 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_2.html.slim +36 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_3.html.erb +63 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_3.html.haml +36 -0
- data/lib/generators/kiso_themes/templates/views/frontend_pages/pricing_pages/pricing_page_3.html.slim +36 -0
- data/lib/generators/kiso_themes/user_account_pages_generator.rb +47 -0
- data/lib/generators/rails/scaffold_controller_generator.rb +37 -0
- data/lib/generators/rails/templates/controller.rb +70 -0
- data/lib/kiso_themes/compatibility.rb +9 -0
- data/lib/kiso_themes/engine.rb +87 -0
- data/lib/kiso_themes/extensions/simple_form/errors_component.rb +13 -0
- data/lib/kiso_themes/extensions/simple_form/form_builder.rb +17 -0
- data/lib/kiso_themes/extensions/simple_form/required_component.rb +21 -0
- data/lib/kiso_themes/extensions/simple_form/setup.rb +201 -0
- data/lib/kiso_themes/extensions/simple_form.rb +4 -0
- data/lib/kiso_themes/extensions/will_paginate.rb +30 -0
- data/lib/kiso_themes/kiso_themes.rb +3 -0
- data/lib/kiso_themes/railtie.rb +7 -0
- data/lib/kiso_themes/version.rb +41 -0
- data/lib/kiso_themes.rb +1 -0
- data/lib/sass/kiso_themes/_core/_accordion.scss +27 -0
- data/lib/sass/kiso_themes/_core/_alerts.scss +150 -0
- data/lib/sass/kiso_themes/_core/_backgrounds.scss +108 -0
- data/lib/sass/kiso_themes/_core/_badges.scss +45 -0
- data/lib/sass/kiso_themes/_core/_blog.scss +17 -0
- data/lib/sass/kiso_themes/_core/_borders.scss +34 -0
- data/lib/sass/kiso_themes/_core/_breadcrumbs.scss +82 -0
- data/lib/sass/kiso_themes/_core/_buttons.scss +202 -0
- data/lib/sass/kiso_themes/_core/_cards.scss +166 -0
- data/lib/sass/kiso_themes/_core/_carousel.scss +15 -0
- data/lib/sass/kiso_themes/_core/_checkboxes-radio.scss +240 -0
- data/lib/sass/kiso_themes/_core/_dropdown.scss +225 -0
- data/lib/sass/kiso_themes/_core/_font_family.scss +1 -0
- data/lib/sass/kiso_themes/_core/_footers.scss +44 -0
- data/lib/sass/kiso_themes/_core/_grid.scss +9 -0
- data/lib/sass/kiso_themes/_core/_images.scss +7 -0
- data/lib/sass/kiso_themes/_core/_input_groups.scss +139 -0
- data/lib/sass/kiso_themes/_core/_inputs.scss +280 -0
- data/lib/sass/kiso_themes/_core/_landing_headers.scss +15 -0
- data/lib/sass/kiso_themes/_core/_listgroups.scss +16 -0
- data/lib/sass/kiso_themes/_core/_loaders.scss +690 -0
- data/lib/sass/kiso_themes/_core/_misc.scss +239 -0
- data/lib/sass/kiso_themes/_core/_mixins.scss +18 -0
- data/lib/sass/kiso_themes/_core/_modals.scss +190 -0
- data/lib/sass/kiso_themes/_core/_navbar.scss +260 -0
- data/lib/sass/kiso_themes/_core/_navs.scss +123 -0
- data/lib/sass/kiso_themes/_core/_page_components.scss +275 -0
- data/lib/sass/kiso_themes/_core/_pagination.scss +152 -0
- data/lib/sass/kiso_themes/_core/_pills.scss +131 -0
- data/lib/sass/kiso_themes/_core/_popover.scss +59 -0
- data/lib/sass/kiso_themes/_core/_pricing_tables.scss +111 -0
- data/lib/sass/kiso_themes/_core/_progress.scss +138 -0
- data/lib/sass/kiso_themes/_core/_responsive.scss +237 -0
- data/lib/sass/kiso_themes/_core/_scaffold.scss +6 -0
- data/lib/sass/kiso_themes/_core/_sidenav.scss +433 -0
- data/lib/sass/kiso_themes/_core/_simple_animations.scss +116 -0
- data/lib/sass/kiso_themes/_core/_tables.scss +22 -0
- data/lib/sass/kiso_themes/_core/_tabs.scss +162 -0
- data/lib/sass/kiso_themes/_core/_timelines.scss +54 -0
- data/lib/sass/kiso_themes/_core/_tooltips.scss +28 -0
- data/lib/sass/kiso_themes/_core/_typography.scss +400 -0
- data/lib/sass/kiso_themes/_core/_variables.scss +431 -0
- data/lib/sass/kiso_themes/_core/cards/_card_activity_feed.scss +84 -0
- data/lib/sass/kiso_themes/_core/cards/_card_chat.scss +93 -0
- data/lib/sass/kiso_themes/_core/cards/_card_images.scss +114 -0
- data/lib/sass/kiso_themes/_core/cards/_card_items.scss +72 -0
- data/lib/sass/kiso_themes/_core/cards/_card_metric.scss +134 -0
- data/lib/sass/kiso_themes/_core/cards/_card_sheet.scss +31 -0
- data/lib/sass/kiso_themes/_core/cards/_card_table.scss +28 -0
- data/lib/sass/kiso_themes/_core/cards/_card_tiles.scss +27 -0
- data/lib/sass/kiso_themes/_core/cards/_cards_mini.scss +142 -0
- data/lib/sass/kiso_themes/_core/devise/1.scss +40 -0
- data/lib/sass/kiso_themes/_core/landing_pages/landing_1.scss +6 -0
- data/lib/sass/kiso_themes/_core/landing_pages/landing_2.scss +35 -0
- data/lib/sass/kiso_themes/_core/landing_pages/landing_3.scss +11 -0
- data/lib/sass/kiso_themes/_core/landing_pages/landing_4.scss +10 -0
- data/lib/sass/kiso_themes/_core/landing_pages/landing_5.scss +11 -0
- data/lib/sass/kiso_themes/_core/mixins/_badges.scss +4 -0
- data/lib/sass/kiso_themes/_core/mixins/_buttons.scss +128 -0
- data/lib/sass/kiso_themes/_core/mixins/_colors.scss +17 -0
- data/lib/sass/kiso_themes/_core/mixins/_datepicker.scss +121 -0
- data/lib/sass/kiso_themes/_core/mixins/_dropdown.scss +30 -0
- data/lib/sass/kiso_themes/_core/mixins/_inputs.scss +117 -0
- data/lib/sass/kiso_themes/_core/mixins/_modals.scss +12 -0
- data/lib/sass/kiso_themes/_core/mixins/_navbar.scss +261 -0
- data/lib/sass/kiso_themes/_core/mixins/_pages.scss +7 -0
- data/lib/sass/kiso_themes/_core/mixins/_popovers.scss +29 -0
- data/lib/sass/kiso_themes/_core/mixins/_theme.scss +239 -0
- data/lib/sass/kiso_themes/_core/mixins/_transparency.scss +8 -0
- data/lib/sass/kiso_themes/_core/mixins/_vendor-prefixes.scss +317 -0
- data/lib/sass/kiso_themes/_core/plugins/_easy_pie_chart.scss +21 -0
- data/lib/sass/kiso_themes/_core/plugins/_jasny_bootstrap.scss +7 -0
- data/lib/sass/kiso_themes/_core/plugins/_jquery_sparklines.scss +6 -0
- data/lib/sass/kiso_themes/_core/plugins/_jqvectormap.scss +135 -0
- data/lib/sass/kiso_themes/_core/plugins/_plugin-bootstrap-switch.scss +220 -0
- data/lib/sass/kiso_themes/_core/plugins/_plugin-datepicker.scss +554 -0
- data/lib/sass/kiso_themes/_core/plugins/_plugin-nouislider.scss +351 -0
- data/lib/sass/kiso_themes/auriga/_cards.scss +3 -0
- data/lib/sass/kiso_themes/auriga/_font_family.scss +1 -0
- data/lib/sass/kiso_themes/auriga/_tables.scss +54 -0
- data/lib/sass/kiso_themes/auriga/styles/_blue_variables.scss +102 -0
- data/lib/sass/kiso_themes/auriga/styles/_green_variables.scss +82 -0
- data/lib/sass/kiso_themes/auriga/styles/_red_variables.scss +82 -0
- data/lib/sass/kiso_themes/auriga/styles/_yellow_variables.scss +82 -0
- data/lib/sass/kiso_themes/gemini/_font_family.scss +1 -0
- data/lib/sass/kiso_themes/gemini/styles/_amber_variables.scss +54 -0
- data/lib/sass/kiso_themes/gemini/styles/_blue_variables.scss +52 -0
- data/lib/sass/kiso_themes/gemini/styles/_granite_variables.scss +55 -0
- data/lib/sass/kiso_themes/gemini/styles/_ocean_variables.scss +54 -0
- data/lib/sass/kiso_themes/lyra/_font_family.scss +1 -0
- data/lib/sass/kiso_themes/lyra/styles/_azure_variables.scss +56 -0
- data/lib/sass/kiso_themes/lyra/styles/_charcoal_variables.scss +56 -0
- data/lib/sass/kiso_themes/lyra/styles/_lime_variables.scss +56 -0
- data/lib/sass/kiso_themes/lyra/styles/_raspberry_variables.scss +56 -0
- data/lib/sass/kiso_themes/orion/_font_family.scss +1 -0
- data/lib/sass/kiso_themes/orion/styles/_blue_variables.scss +71 -0
- data/lib/sass/kiso_themes/orion/styles/_green_variables.scss +56 -0
- data/lib/sass/kiso_themes/orion/styles/_orange_variables.scss +48 -0
- data/lib/sass/kiso_themes/orion/styles/_purple_variables.scss +57 -0
- data/lib/sass/vendor/bootstrap/_alert.scss +51 -0
- data/lib/sass/vendor/bootstrap/_badge.scss +54 -0
- data/lib/sass/vendor/bootstrap/_breadcrumb.scss +41 -0
- data/lib/sass/vendor/bootstrap/_button-group.scss +163 -0
- data/lib/sass/vendor/bootstrap/_buttons.scss +137 -0
- data/lib/sass/vendor/bootstrap/_card.scss +289 -0
- data/lib/sass/vendor/bootstrap/_carousel.scss +197 -0
- data/lib/sass/vendor/bootstrap/_close.scss +41 -0
- data/lib/sass/vendor/bootstrap/_code.scss +48 -0
- data/lib/sass/vendor/bootstrap/_custom-forms.scss +507 -0
- data/lib/sass/vendor/bootstrap/_dropdown.scss +191 -0
- data/lib/sass/vendor/bootstrap/_forms.scss +330 -0
- data/lib/sass/vendor/bootstrap/_functions.scss +86 -0
- data/lib/sass/vendor/bootstrap/_grid.scss +52 -0
- data/lib/sass/vendor/bootstrap/_images.scss +42 -0
- data/lib/sass/vendor/bootstrap/_input-group.scss +193 -0
- data/lib/sass/vendor/bootstrap/_jumbotron.scss +17 -0
- data/lib/sass/vendor/bootstrap/_list-group.scss +149 -0
- data/lib/sass/vendor/bootstrap/_media.scss +8 -0
- data/lib/sass/vendor/bootstrap/_mixins.scss +47 -0
- data/lib/sass/vendor/bootstrap/_modal.scss +229 -0
- data/lib/sass/vendor/bootstrap/_nav.scss +120 -0
- data/lib/sass/vendor/bootstrap/_navbar.scss +294 -0
- data/lib/sass/vendor/bootstrap/_pagination.scss +83 -0
- data/lib/sass/vendor/bootstrap/_popover.scss +171 -0
- data/lib/sass/vendor/bootstrap/_print.scss +141 -0
- data/lib/sass/vendor/bootstrap/_progress.scss +43 -0
- data/lib/sass/vendor/bootstrap/_reboot.scss +483 -0
- data/lib/sass/vendor/bootstrap/_root.scss +19 -0
- data/lib/sass/vendor/bootstrap/_spinners.scss +55 -0
- data/lib/sass/vendor/bootstrap/_tables.scss +185 -0
- data/lib/sass/vendor/bootstrap/_toasts.scss +44 -0
- data/lib/sass/vendor/bootstrap/_tooltip.scss +115 -0
- data/lib/sass/vendor/bootstrap/_transitions.scss +20 -0
- data/lib/sass/vendor/bootstrap/_type.scss +125 -0
- data/lib/sass/vendor/bootstrap/_utilities.scss +17 -0
- data/lib/sass/vendor/bootstrap/_variables.scss +1123 -0
- data/lib/sass/vendor/bootstrap/bootstrap-grid.scss +29 -0
- data/lib/sass/vendor/bootstrap/bootstrap-reboot.scss +12 -0
- data/lib/sass/vendor/bootstrap/bootstrap.scss +44 -0
- data/lib/sass/vendor/bootstrap/mixins/_alert.scss +13 -0
- data/lib/sass/vendor/bootstrap/mixins/_background-variant.scss +21 -0
- data/lib/sass/vendor/bootstrap/mixins/_badge.scss +17 -0
- data/lib/sass/vendor/bootstrap/mixins/_border-radius.scss +63 -0
- data/lib/sass/vendor/bootstrap/mixins/_box-shadow.scss +20 -0
- data/lib/sass/vendor/bootstrap/mixins/_breakpoints.scss +123 -0
- data/lib/sass/vendor/bootstrap/mixins/_buttons.scss +107 -0
- data/lib/sass/vendor/bootstrap/mixins/_caret.scss +62 -0
- data/lib/sass/vendor/bootstrap/mixins/_clearfix.scss +7 -0
- data/lib/sass/vendor/bootstrap/mixins/_deprecate.scss +10 -0
- data/lib/sass/vendor/bootstrap/mixins/_float.scss +14 -0
- data/lib/sass/vendor/bootstrap/mixins/_forms.scss +192 -0
- data/lib/sass/vendor/bootstrap/mixins/_gradients.scss +45 -0
- data/lib/sass/vendor/bootstrap/mixins/_grid-framework.scss +66 -0
- data/lib/sass/vendor/bootstrap/mixins/_grid.scss +51 -0
- data/lib/sass/vendor/bootstrap/mixins/_hover.scss +37 -0
- data/lib/sass/vendor/bootstrap/mixins/_image.scss +36 -0
- data/lib/sass/vendor/bootstrap/mixins/_list-group.scss +21 -0
- data/lib/sass/vendor/bootstrap/mixins/_lists.scss +7 -0
- data/lib/sass/vendor/bootstrap/mixins/_nav-divider.scss +10 -0
- data/lib/sass/vendor/bootstrap/mixins/_pagination.scss +22 -0
- data/lib/sass/vendor/bootstrap/mixins/_reset-text.scss +17 -0
- data/lib/sass/vendor/bootstrap/mixins/_resize.scss +6 -0
- data/lib/sass/vendor/bootstrap/mixins/_screen-reader.scss +33 -0
- data/lib/sass/vendor/bootstrap/mixins/_size.scss +7 -0
- data/lib/sass/vendor/bootstrap/mixins/_table-row.scss +39 -0
- data/lib/sass/vendor/bootstrap/mixins/_text-emphasis.scss +16 -0
- data/lib/sass/vendor/bootstrap/mixins/_text-hide.scss +11 -0
- data/lib/sass/vendor/bootstrap/mixins/_text-truncate.scss +8 -0
- data/lib/sass/vendor/bootstrap/mixins/_transition.scss +16 -0
- data/lib/sass/vendor/bootstrap/mixins/_visibility.scss +8 -0
- data/lib/sass/vendor/bootstrap/utilities/_align.scss +8 -0
- data/lib/sass/vendor/bootstrap/utilities/_background.scss +19 -0
- data/lib/sass/vendor/bootstrap/utilities/_borders.scss +75 -0
- data/lib/sass/vendor/bootstrap/utilities/_clearfix.scss +3 -0
- data/lib/sass/vendor/bootstrap/utilities/_display.scss +26 -0
- data/lib/sass/vendor/bootstrap/utilities/_embed.scss +39 -0
- data/lib/sass/vendor/bootstrap/utilities/_flex.scss +51 -0
- data/lib/sass/vendor/bootstrap/utilities/_float.scss +11 -0
- data/lib/sass/vendor/bootstrap/utilities/_overflow.scss +5 -0
- data/lib/sass/vendor/bootstrap/utilities/_position.scss +32 -0
- data/lib/sass/vendor/bootstrap/utilities/_screenreaders.scss +11 -0
- data/lib/sass/vendor/bootstrap/utilities/_shadows.scss +6 -0
- data/lib/sass/vendor/bootstrap/utilities/_sizing.scss +20 -0
- data/lib/sass/vendor/bootstrap/utilities/_spacing.scss +73 -0
- data/lib/sass/vendor/bootstrap/utilities/_stretched-link.scss +19 -0
- data/lib/sass/vendor/bootstrap/utilities/_text.scss +72 -0
- data/lib/sass/vendor/bootstrap/utilities/_visibility.scss +13 -0
- data/lib/sass/vendor/bootstrap/vendor/_rfs.scss +204 -0
- data/lib/sass/vendor/font_awesome/_animated.scss +34 -0
- data/lib/sass/vendor/font_awesome/_bordered-pulled.scss +25 -0
- data/lib/sass/vendor/font_awesome/_core.scss +12 -0
- data/lib/sass/vendor/font_awesome/_fixed-width.scss +6 -0
- data/lib/sass/vendor/font_awesome/_icons.scss +789 -0
- data/lib/sass/vendor/font_awesome/_larger.scss +13 -0
- data/lib/sass/vendor/font_awesome/_list.scss +19 -0
- data/lib/sass/vendor/font_awesome/_mixins.scss +60 -0
- data/lib/sass/vendor/font_awesome/_path.scss +14 -0
- data/lib/sass/vendor/font_awesome/_rotated-flipped.scss +20 -0
- data/lib/sass/vendor/font_awesome/_screen-reader.scss +5 -0
- data/lib/sass/vendor/font_awesome/_stacked.scss +20 -0
- data/lib/sass/vendor/font_awesome/_variables.scss +800 -0
- data/lib/sass/vendor/font_awesome/font-awesome.scss +18 -0
- data/lib/sass/vendor/ionicons/_ionicons-font.scss +27 -0
- data/lib/sass/vendor/ionicons/_ionicons-icons.scss +1473 -0
- data/lib/sass/vendor/ionicons/_ionicons-variables.scss +741 -0
- data/lib/sass/vendor/ionicons/ionicons.scss +15 -0
- data/lib/sass/vendor/mdiicons/_icons-material-design.scss +42 -0
- data/lib/sass/vendor/prism/twilight.css +198 -0
- data/lib/sass/vendor/themify/themify-icons.css +1082 -0
- data/lib/templates/erb/scaffold/_form.html.erb +50 -0
- data/lib/templates/erb/scaffold/edit.html.erb +37 -0
- data/lib/templates/erb/scaffold/index.html.erb +80 -0
- data/lib/templates/erb/scaffold/new.html.erb +37 -0
- data/lib/templates/erb/scaffold/show.html.erb +53 -0
- data/lib/templates/haml/scaffold/_form.html.haml +29 -0
- data/lib/templates/haml/scaffold/edit.html.haml +6 -0
- data/lib/templates/haml/scaffold/index.html.haml +41 -0
- data/lib/templates/haml/scaffold/new.html.haml +6 -0
- data/lib/templates/haml/scaffold/show.html.haml +16 -0
- data/lib/templates/slim/scaffold/_form.html.haml +29 -0
- data/lib/templates/slim/scaffold/edit.html.haml +6 -0
- data/lib/templates/slim/scaffold/index.html.haml +41 -0
- data/lib/templates/slim/scaffold/new.html.haml +6 -0
- data/lib/templates/slim/scaffold/show.html.haml +16 -0
- data/support/content_block_rewriter.rb +25 -0
- data/support/css_rewriter.rb +76 -0
- data/support/page_rewriter.rb +27 -0
- metadata +1091 -0
@@ -0,0 +1,744 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* bootstrap-switch - v3.3.2
|
3
|
+
* http://www.bootstrap-switch.org
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2012-2013 Mattia Larentis
|
6
|
+
*
|
7
|
+
* ========================================================================
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
* ========================================================================
|
20
|
+
*/
|
21
|
+
|
22
|
+
(function() {
|
23
|
+
var slice = [].slice;
|
24
|
+
|
25
|
+
(function($, window) {
|
26
|
+
"use strict";
|
27
|
+
var BootstrapSwitch;
|
28
|
+
BootstrapSwitch = (function() {
|
29
|
+
function BootstrapSwitch(element, options) {
|
30
|
+
if (options == null) {
|
31
|
+
options = {};
|
32
|
+
}
|
33
|
+
this.$element = $(element);
|
34
|
+
this.options = $.extend({}, $.fn.bootstrapSwitch.defaults, {
|
35
|
+
state: this.$element.is(":checked"),
|
36
|
+
size: this.$element.data("size"),
|
37
|
+
animate: this.$element.data("animate"),
|
38
|
+
disabled: this.$element.is(":disabled"),
|
39
|
+
readonly: this.$element.is("[readonly]"),
|
40
|
+
indeterminate: this.$element.data("indeterminate"),
|
41
|
+
inverse: this.$element.data("inverse"),
|
42
|
+
radioAllOff: this.$element.data("radio-all-off"),
|
43
|
+
onColor: this.$element.data("on-color"),
|
44
|
+
offColor: this.$element.data("off-color"),
|
45
|
+
onText: this.$element.data("on-text"),
|
46
|
+
offText: this.$element.data("off-text"),
|
47
|
+
labelText: this.$element.data("label-text"),
|
48
|
+
handleWidth: this.$element.data("handle-width"),
|
49
|
+
labelWidth: this.$element.data("label-width"),
|
50
|
+
baseClass: this.$element.data("base-class"),
|
51
|
+
wrapperClass: this.$element.data("wrapper-class")
|
52
|
+
}, options);
|
53
|
+
this.prevOptions = {};
|
54
|
+
this.$wrapper = $("<div>", {
|
55
|
+
"class": (function(_this) {
|
56
|
+
return function() {
|
57
|
+
var classes;
|
58
|
+
classes = ["" + _this.options.baseClass].concat(_this._getClasses(_this.options.wrapperClass));
|
59
|
+
classes.push(_this.options.state ? _this.options.baseClass + "-on" : _this.options.baseClass + "-off");
|
60
|
+
if (_this.options.size != null) {
|
61
|
+
classes.push(_this.options.baseClass + "-" + _this.options.size);
|
62
|
+
}
|
63
|
+
if (_this.options.disabled) {
|
64
|
+
classes.push(_this.options.baseClass + "-disabled");
|
65
|
+
}
|
66
|
+
if (_this.options.readonly) {
|
67
|
+
classes.push(_this.options.baseClass + "-readonly");
|
68
|
+
}
|
69
|
+
if (_this.options.indeterminate) {
|
70
|
+
classes.push(_this.options.baseClass + "-indeterminate");
|
71
|
+
}
|
72
|
+
if (_this.options.inverse) {
|
73
|
+
classes.push(_this.options.baseClass + "-inverse");
|
74
|
+
}
|
75
|
+
if (_this.$element.attr("id")) {
|
76
|
+
classes.push(_this.options.baseClass + "-id-" + (_this.$element.attr("id")));
|
77
|
+
}
|
78
|
+
return classes.join(" ");
|
79
|
+
};
|
80
|
+
})(this)()
|
81
|
+
});
|
82
|
+
this.$container = $("<div>", {
|
83
|
+
"class": this.options.baseClass + "-container"
|
84
|
+
});
|
85
|
+
this.$on = $("<span>", {
|
86
|
+
html: this.options.onText,
|
87
|
+
"class": this.options.baseClass + "-handle-on " + this.options.baseClass + "-" + this.options.onColor
|
88
|
+
});
|
89
|
+
this.$off = $("<span>", {
|
90
|
+
html: this.options.offText,
|
91
|
+
"class": this.options.baseClass + "-handle-off " + this.options.baseClass + "-" + this.options.offColor
|
92
|
+
});
|
93
|
+
this.$label = $("<span>", {
|
94
|
+
html: this.options.labelText,
|
95
|
+
"class": this.options.baseClass + "-label"
|
96
|
+
});
|
97
|
+
this.$element.on("init.bootstrapSwitch", (function(_this) {
|
98
|
+
return function() {
|
99
|
+
return _this.options.onInit.apply(element, arguments);
|
100
|
+
};
|
101
|
+
})(this));
|
102
|
+
this.$element.on("switchChange.bootstrapSwitch", (function(_this) {
|
103
|
+
return function(e) {
|
104
|
+
if (false === _this.options.onSwitchChange.apply(element, arguments)) {
|
105
|
+
if (_this.$element.is(":radio")) {
|
106
|
+
return $("[name='" + (_this.$element.attr('name')) + "']").trigger("previousState.bootstrapSwitch", true);
|
107
|
+
} else {
|
108
|
+
return _this.$element.trigger("previousState.bootstrapSwitch", true);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
};
|
112
|
+
})(this));
|
113
|
+
this.$container = this.$element.wrap(this.$container).parent();
|
114
|
+
this.$wrapper = this.$container.wrap(this.$wrapper).parent();
|
115
|
+
this.$element.before(this.options.inverse ? this.$off : this.$on).before(this.$label).before(this.options.inverse ? this.$on : this.$off);
|
116
|
+
if (this.options.indeterminate) {
|
117
|
+
this.$element.prop("indeterminate", true);
|
118
|
+
}
|
119
|
+
this._init();
|
120
|
+
this._elementHandlers();
|
121
|
+
this._handleHandlers();
|
122
|
+
this._labelHandlers();
|
123
|
+
this._formHandler();
|
124
|
+
this._externalLabelHandler();
|
125
|
+
this.$element.trigger("init.bootstrapSwitch", this.options.state);
|
126
|
+
}
|
127
|
+
|
128
|
+
BootstrapSwitch.prototype._constructor = BootstrapSwitch;
|
129
|
+
|
130
|
+
BootstrapSwitch.prototype.setPrevOptions = function() {
|
131
|
+
return this.prevOptions = $.extend(true, {}, this.options);
|
132
|
+
};
|
133
|
+
|
134
|
+
BootstrapSwitch.prototype.state = function(value, skip) {
|
135
|
+
if (typeof value === "undefined") {
|
136
|
+
return this.options.state;
|
137
|
+
}
|
138
|
+
if (this.options.disabled || this.options.readonly) {
|
139
|
+
return this.$element;
|
140
|
+
}
|
141
|
+
if (this.options.state && !this.options.radioAllOff && this.$element.is(":radio")) {
|
142
|
+
return this.$element;
|
143
|
+
}
|
144
|
+
if (this.$element.is(":radio")) {
|
145
|
+
$("[name='" + (this.$element.attr('name')) + "']").trigger("setPreviousOptions.bootstrapSwitch");
|
146
|
+
} else {
|
147
|
+
this.$element.trigger("setPreviousOptions.bootstrapSwitch");
|
148
|
+
}
|
149
|
+
if (this.options.indeterminate) {
|
150
|
+
this.indeterminate(false);
|
151
|
+
}
|
152
|
+
value = !!value;
|
153
|
+
this.$element.prop("checked", value).trigger("change.bootstrapSwitch", skip);
|
154
|
+
return this.$element;
|
155
|
+
};
|
156
|
+
|
157
|
+
BootstrapSwitch.prototype.toggleState = function(skip) {
|
158
|
+
if (this.options.disabled || this.options.readonly) {
|
159
|
+
return this.$element;
|
160
|
+
}
|
161
|
+
if (this.options.indeterminate) {
|
162
|
+
this.indeterminate(false);
|
163
|
+
return this.state(true);
|
164
|
+
} else {
|
165
|
+
return this.$element.prop("checked", !this.options.state).trigger("change.bootstrapSwitch", skip);
|
166
|
+
}
|
167
|
+
};
|
168
|
+
|
169
|
+
BootstrapSwitch.prototype.size = function(value) {
|
170
|
+
if (typeof value === "undefined") {
|
171
|
+
return this.options.size;
|
172
|
+
}
|
173
|
+
if (this.options.size != null) {
|
174
|
+
this.$wrapper.removeClass(this.options.baseClass + "-" + this.options.size);
|
175
|
+
}
|
176
|
+
if (value) {
|
177
|
+
this.$wrapper.addClass(this.options.baseClass + "-" + value);
|
178
|
+
}
|
179
|
+
this._width();
|
180
|
+
this._containerPosition();
|
181
|
+
this.options.size = value;
|
182
|
+
return this.$element;
|
183
|
+
};
|
184
|
+
|
185
|
+
BootstrapSwitch.prototype.animate = function(value) {
|
186
|
+
if (typeof value === "undefined") {
|
187
|
+
return this.options.animate;
|
188
|
+
}
|
189
|
+
value = !!value;
|
190
|
+
if (value === this.options.animate) {
|
191
|
+
return this.$element;
|
192
|
+
}
|
193
|
+
return this.toggleAnimate();
|
194
|
+
};
|
195
|
+
|
196
|
+
BootstrapSwitch.prototype.toggleAnimate = function() {
|
197
|
+
this.options.animate = !this.options.animate;
|
198
|
+
this.$wrapper.toggleClass(this.options.baseClass + "-animate");
|
199
|
+
return this.$element;
|
200
|
+
};
|
201
|
+
|
202
|
+
BootstrapSwitch.prototype.disabled = function(value) {
|
203
|
+
if (typeof value === "undefined") {
|
204
|
+
return this.options.disabled;
|
205
|
+
}
|
206
|
+
value = !!value;
|
207
|
+
if (value === this.options.disabled) {
|
208
|
+
return this.$element;
|
209
|
+
}
|
210
|
+
return this.toggleDisabled();
|
211
|
+
};
|
212
|
+
|
213
|
+
BootstrapSwitch.prototype.toggleDisabled = function() {
|
214
|
+
this.options.disabled = !this.options.disabled;
|
215
|
+
this.$element.prop("disabled", this.options.disabled);
|
216
|
+
this.$wrapper.toggleClass(this.options.baseClass + "-disabled");
|
217
|
+
return this.$element;
|
218
|
+
};
|
219
|
+
|
220
|
+
BootstrapSwitch.prototype.readonly = function(value) {
|
221
|
+
if (typeof value === "undefined") {
|
222
|
+
return this.options.readonly;
|
223
|
+
}
|
224
|
+
value = !!value;
|
225
|
+
if (value === this.options.readonly) {
|
226
|
+
return this.$element;
|
227
|
+
}
|
228
|
+
return this.toggleReadonly();
|
229
|
+
};
|
230
|
+
|
231
|
+
BootstrapSwitch.prototype.toggleReadonly = function() {
|
232
|
+
this.options.readonly = !this.options.readonly;
|
233
|
+
this.$element.prop("readonly", this.options.readonly);
|
234
|
+
this.$wrapper.toggleClass(this.options.baseClass + "-readonly");
|
235
|
+
return this.$element;
|
236
|
+
};
|
237
|
+
|
238
|
+
BootstrapSwitch.prototype.indeterminate = function(value) {
|
239
|
+
if (typeof value === "undefined") {
|
240
|
+
return this.options.indeterminate;
|
241
|
+
}
|
242
|
+
value = !!value;
|
243
|
+
if (value === this.options.indeterminate) {
|
244
|
+
return this.$element;
|
245
|
+
}
|
246
|
+
return this.toggleIndeterminate();
|
247
|
+
};
|
248
|
+
|
249
|
+
BootstrapSwitch.prototype.toggleIndeterminate = function() {
|
250
|
+
this.options.indeterminate = !this.options.indeterminate;
|
251
|
+
this.$element.prop("indeterminate", this.options.indeterminate);
|
252
|
+
this.$wrapper.toggleClass(this.options.baseClass + "-indeterminate");
|
253
|
+
this._containerPosition();
|
254
|
+
return this.$element;
|
255
|
+
};
|
256
|
+
|
257
|
+
BootstrapSwitch.prototype.inverse = function(value) {
|
258
|
+
if (typeof value === "undefined") {
|
259
|
+
return this.options.inverse;
|
260
|
+
}
|
261
|
+
value = !!value;
|
262
|
+
if (value === this.options.inverse) {
|
263
|
+
return this.$element;
|
264
|
+
}
|
265
|
+
return this.toggleInverse();
|
266
|
+
};
|
267
|
+
|
268
|
+
BootstrapSwitch.prototype.toggleInverse = function() {
|
269
|
+
var $off, $on;
|
270
|
+
this.$wrapper.toggleClass(this.options.baseClass + "-inverse");
|
271
|
+
$on = this.$on.clone(true);
|
272
|
+
$off = this.$off.clone(true);
|
273
|
+
this.$on.replaceWith($off);
|
274
|
+
this.$off.replaceWith($on);
|
275
|
+
this.$on = $off;
|
276
|
+
this.$off = $on;
|
277
|
+
this.options.inverse = !this.options.inverse;
|
278
|
+
return this.$element;
|
279
|
+
};
|
280
|
+
|
281
|
+
BootstrapSwitch.prototype.onColor = function(value) {
|
282
|
+
var color;
|
283
|
+
color = this.options.onColor;
|
284
|
+
if (typeof value === "undefined") {
|
285
|
+
return color;
|
286
|
+
}
|
287
|
+
if (color != null) {
|
288
|
+
this.$on.removeClass(this.options.baseClass + "-" + color);
|
289
|
+
}
|
290
|
+
this.$on.addClass(this.options.baseClass + "-" + value);
|
291
|
+
this.options.onColor = value;
|
292
|
+
return this.$element;
|
293
|
+
};
|
294
|
+
|
295
|
+
BootstrapSwitch.prototype.offColor = function(value) {
|
296
|
+
var color;
|
297
|
+
color = this.options.offColor;
|
298
|
+
if (typeof value === "undefined") {
|
299
|
+
return color;
|
300
|
+
}
|
301
|
+
if (color != null) {
|
302
|
+
this.$off.removeClass(this.options.baseClass + "-" + color);
|
303
|
+
}
|
304
|
+
this.$off.addClass(this.options.baseClass + "-" + value);
|
305
|
+
this.options.offColor = value;
|
306
|
+
return this.$element;
|
307
|
+
};
|
308
|
+
|
309
|
+
BootstrapSwitch.prototype.onText = function(value) {
|
310
|
+
if (typeof value === "undefined") {
|
311
|
+
return this.options.onText;
|
312
|
+
}
|
313
|
+
this.$on.html(value);
|
314
|
+
this._width();
|
315
|
+
this._containerPosition();
|
316
|
+
this.options.onText = value;
|
317
|
+
return this.$element;
|
318
|
+
};
|
319
|
+
|
320
|
+
BootstrapSwitch.prototype.offText = function(value) {
|
321
|
+
if (typeof value === "undefined") {
|
322
|
+
return this.options.offText;
|
323
|
+
}
|
324
|
+
this.$off.html(value);
|
325
|
+
this._width();
|
326
|
+
this._containerPosition();
|
327
|
+
this.options.offText = value;
|
328
|
+
return this.$element;
|
329
|
+
};
|
330
|
+
|
331
|
+
BootstrapSwitch.prototype.labelText = function(value) {
|
332
|
+
if (typeof value === "undefined") {
|
333
|
+
return this.options.labelText;
|
334
|
+
}
|
335
|
+
this.$label.html(value);
|
336
|
+
this._width();
|
337
|
+
this.options.labelText = value;
|
338
|
+
return this.$element;
|
339
|
+
};
|
340
|
+
|
341
|
+
BootstrapSwitch.prototype.handleWidth = function(value) {
|
342
|
+
if (typeof value === "undefined") {
|
343
|
+
return this.options.handleWidth;
|
344
|
+
}
|
345
|
+
this.options.handleWidth = value;
|
346
|
+
this._width();
|
347
|
+
this._containerPosition();
|
348
|
+
return this.$element;
|
349
|
+
};
|
350
|
+
|
351
|
+
BootstrapSwitch.prototype.labelWidth = function(value) {
|
352
|
+
if (typeof value === "undefined") {
|
353
|
+
return this.options.labelWidth;
|
354
|
+
}
|
355
|
+
this.options.labelWidth = value;
|
356
|
+
this._width();
|
357
|
+
this._containerPosition();
|
358
|
+
return this.$element;
|
359
|
+
};
|
360
|
+
|
361
|
+
BootstrapSwitch.prototype.baseClass = function(value) {
|
362
|
+
return this.options.baseClass;
|
363
|
+
};
|
364
|
+
|
365
|
+
BootstrapSwitch.prototype.wrapperClass = function(value) {
|
366
|
+
if (typeof value === "undefined") {
|
367
|
+
return this.options.wrapperClass;
|
368
|
+
}
|
369
|
+
if (!value) {
|
370
|
+
value = $.fn.bootstrapSwitch.defaults.wrapperClass;
|
371
|
+
}
|
372
|
+
this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(" "));
|
373
|
+
this.$wrapper.addClass(this._getClasses(value).join(" "));
|
374
|
+
this.options.wrapperClass = value;
|
375
|
+
return this.$element;
|
376
|
+
};
|
377
|
+
|
378
|
+
BootstrapSwitch.prototype.radioAllOff = function(value) {
|
379
|
+
if (typeof value === "undefined") {
|
380
|
+
return this.options.radioAllOff;
|
381
|
+
}
|
382
|
+
value = !!value;
|
383
|
+
if (value === this.options.radioAllOff) {
|
384
|
+
return this.$element;
|
385
|
+
}
|
386
|
+
this.options.radioAllOff = value;
|
387
|
+
return this.$element;
|
388
|
+
};
|
389
|
+
|
390
|
+
BootstrapSwitch.prototype.onInit = function(value) {
|
391
|
+
if (typeof value === "undefined") {
|
392
|
+
return this.options.onInit;
|
393
|
+
}
|
394
|
+
if (!value) {
|
395
|
+
value = $.fn.bootstrapSwitch.defaults.onInit;
|
396
|
+
}
|
397
|
+
this.options.onInit = value;
|
398
|
+
return this.$element;
|
399
|
+
};
|
400
|
+
|
401
|
+
BootstrapSwitch.prototype.onSwitchChange = function(value) {
|
402
|
+
if (typeof value === "undefined") {
|
403
|
+
return this.options.onSwitchChange;
|
404
|
+
}
|
405
|
+
if (!value) {
|
406
|
+
value = $.fn.bootstrapSwitch.defaults.onSwitchChange;
|
407
|
+
}
|
408
|
+
this.options.onSwitchChange = value;
|
409
|
+
return this.$element;
|
410
|
+
};
|
411
|
+
|
412
|
+
BootstrapSwitch.prototype.destroy = function() {
|
413
|
+
var $form;
|
414
|
+
$form = this.$element.closest("form");
|
415
|
+
if ($form.length) {
|
416
|
+
$form.off("reset.bootstrapSwitch").removeData("bootstrap-switch");
|
417
|
+
}
|
418
|
+
this.$container.children().not(this.$element).remove();
|
419
|
+
this.$element.unwrap().unwrap().off(".bootstrapSwitch").removeData("bootstrap-switch");
|
420
|
+
return this.$element;
|
421
|
+
};
|
422
|
+
|
423
|
+
BootstrapSwitch.prototype._width = function() {
|
424
|
+
var $handles, handleWidth;
|
425
|
+
$handles = this.$on.add(this.$off);
|
426
|
+
$handles.add(this.$label).css("width", "");
|
427
|
+
handleWidth = this.options.handleWidth === "auto" ? Math.max(this.$on.width(), this.$off.width()) : this.options.handleWidth;
|
428
|
+
$handles.width(handleWidth);
|
429
|
+
this.$label.width((function(_this) {
|
430
|
+
return function(index, width) {
|
431
|
+
if (_this.options.labelWidth !== "auto") {
|
432
|
+
return _this.options.labelWidth;
|
433
|
+
}
|
434
|
+
if (width < handleWidth) {
|
435
|
+
return handleWidth;
|
436
|
+
} else {
|
437
|
+
return width;
|
438
|
+
}
|
439
|
+
};
|
440
|
+
})(this));
|
441
|
+
this._handleWidth = this.$on.outerWidth();
|
442
|
+
this._labelWidth = this.$label.outerWidth();
|
443
|
+
this.$container.width((this._handleWidth * 2) + this._labelWidth);
|
444
|
+
return this.$wrapper.width(this._handleWidth + this._labelWidth);
|
445
|
+
};
|
446
|
+
|
447
|
+
BootstrapSwitch.prototype._containerPosition = function(state, callback) {
|
448
|
+
if (state == null) {
|
449
|
+
state = this.options.state;
|
450
|
+
}
|
451
|
+
this.$container.css("margin-left", (function(_this) {
|
452
|
+
return function() {
|
453
|
+
var values;
|
454
|
+
values = [0, "-" + _this._handleWidth + "px"];
|
455
|
+
if (_this.options.indeterminate) {
|
456
|
+
return "-" + (_this._handleWidth / 2) + "px";
|
457
|
+
}
|
458
|
+
if (state) {
|
459
|
+
if (_this.options.inverse) {
|
460
|
+
return values[1];
|
461
|
+
} else {
|
462
|
+
return values[0];
|
463
|
+
}
|
464
|
+
} else {
|
465
|
+
if (_this.options.inverse) {
|
466
|
+
return values[0];
|
467
|
+
} else {
|
468
|
+
return values[1];
|
469
|
+
}
|
470
|
+
}
|
471
|
+
};
|
472
|
+
})(this));
|
473
|
+
if (!callback) {
|
474
|
+
return;
|
475
|
+
}
|
476
|
+
return setTimeout(function() {
|
477
|
+
return callback();
|
478
|
+
}, 50);
|
479
|
+
};
|
480
|
+
|
481
|
+
BootstrapSwitch.prototype._init = function() {
|
482
|
+
var init, initInterval;
|
483
|
+
init = (function(_this) {
|
484
|
+
return function() {
|
485
|
+
_this.setPrevOptions();
|
486
|
+
_this._width();
|
487
|
+
return _this._containerPosition(null, function() {
|
488
|
+
if (_this.options.animate) {
|
489
|
+
return _this.$wrapper.addClass(_this.options.baseClass + "-animate");
|
490
|
+
}
|
491
|
+
});
|
492
|
+
};
|
493
|
+
})(this);
|
494
|
+
if (this.$wrapper.is(":visible")) {
|
495
|
+
return init();
|
496
|
+
}
|
497
|
+
return initInterval = window.setInterval((function(_this) {
|
498
|
+
return function() {
|
499
|
+
if (_this.$wrapper.is(":visible")) {
|
500
|
+
init();
|
501
|
+
return window.clearInterval(initInterval);
|
502
|
+
}
|
503
|
+
};
|
504
|
+
})(this), 50);
|
505
|
+
};
|
506
|
+
|
507
|
+
BootstrapSwitch.prototype._elementHandlers = function() {
|
508
|
+
return this.$element.on({
|
509
|
+
"setPreviousOptions.bootstrapSwitch": (function(_this) {
|
510
|
+
return function(e) {
|
511
|
+
return _this.setPrevOptions();
|
512
|
+
};
|
513
|
+
})(this),
|
514
|
+
"previousState.bootstrapSwitch": (function(_this) {
|
515
|
+
return function(e) {
|
516
|
+
_this.options = _this.prevOptions;
|
517
|
+
if (_this.options.indeterminate) {
|
518
|
+
_this.$wrapper.addClass(_this.options.baseClass + "-indeterminate");
|
519
|
+
}
|
520
|
+
return _this.$element.prop("checked", _this.options.state).trigger("change.bootstrapSwitch", true);
|
521
|
+
};
|
522
|
+
})(this),
|
523
|
+
"change.bootstrapSwitch": (function(_this) {
|
524
|
+
return function(e, skip) {
|
525
|
+
var state;
|
526
|
+
e.preventDefault();
|
527
|
+
e.stopImmediatePropagation();
|
528
|
+
state = _this.$element.is(":checked");
|
529
|
+
_this._containerPosition(state);
|
530
|
+
if (state === _this.options.state) {
|
531
|
+
return;
|
532
|
+
}
|
533
|
+
_this.options.state = state;
|
534
|
+
_this.$wrapper.toggleClass(_this.options.baseClass + "-off").toggleClass(_this.options.baseClass + "-on");
|
535
|
+
if (!skip) {
|
536
|
+
if (_this.$element.is(":radio")) {
|
537
|
+
$("[name='" + (_this.$element.attr('name')) + "']").not(_this.$element).prop("checked", false).trigger("change.bootstrapSwitch", true);
|
538
|
+
}
|
539
|
+
return _this.$element.trigger("switchChange.bootstrapSwitch", [state]);
|
540
|
+
}
|
541
|
+
};
|
542
|
+
})(this),
|
543
|
+
"focus.bootstrapSwitch": (function(_this) {
|
544
|
+
return function(e) {
|
545
|
+
e.preventDefault();
|
546
|
+
return _this.$wrapper.addClass(_this.options.baseClass + "-focused");
|
547
|
+
};
|
548
|
+
})(this),
|
549
|
+
"blur.bootstrapSwitch": (function(_this) {
|
550
|
+
return function(e) {
|
551
|
+
e.preventDefault();
|
552
|
+
return _this.$wrapper.removeClass(_this.options.baseClass + "-focused");
|
553
|
+
};
|
554
|
+
})(this),
|
555
|
+
"keydown.bootstrapSwitch": (function(_this) {
|
556
|
+
return function(e) {
|
557
|
+
if (!e.which || _this.options.disabled || _this.options.readonly) {
|
558
|
+
return;
|
559
|
+
}
|
560
|
+
switch (e.which) {
|
561
|
+
case 37:
|
562
|
+
e.preventDefault();
|
563
|
+
e.stopImmediatePropagation();
|
564
|
+
return _this.state(false);
|
565
|
+
case 39:
|
566
|
+
e.preventDefault();
|
567
|
+
e.stopImmediatePropagation();
|
568
|
+
return _this.state(true);
|
569
|
+
}
|
570
|
+
};
|
571
|
+
})(this)
|
572
|
+
});
|
573
|
+
};
|
574
|
+
|
575
|
+
BootstrapSwitch.prototype._handleHandlers = function() {
|
576
|
+
this.$on.on("click.bootstrapSwitch", (function(_this) {
|
577
|
+
return function(event) {
|
578
|
+
event.preventDefault();
|
579
|
+
event.stopPropagation();
|
580
|
+
_this.state(false);
|
581
|
+
return _this.$element.trigger("focus.bootstrapSwitch");
|
582
|
+
};
|
583
|
+
})(this));
|
584
|
+
return this.$off.on("click.bootstrapSwitch", (function(_this) {
|
585
|
+
return function(event) {
|
586
|
+
event.preventDefault();
|
587
|
+
event.stopPropagation();
|
588
|
+
_this.state(true);
|
589
|
+
return _this.$element.trigger("focus.bootstrapSwitch");
|
590
|
+
};
|
591
|
+
})(this));
|
592
|
+
};
|
593
|
+
|
594
|
+
BootstrapSwitch.prototype._labelHandlers = function() {
|
595
|
+
return this.$label.on({
|
596
|
+
"click": function(e) {
|
597
|
+
return e.stopPropagation();
|
598
|
+
},
|
599
|
+
"mousedown.bootstrapSwitch touchstart.bootstrapSwitch": (function(_this) {
|
600
|
+
return function(e) {
|
601
|
+
if (_this._dragStart || _this.options.disabled || _this.options.readonly) {
|
602
|
+
return;
|
603
|
+
}
|
604
|
+
e.preventDefault();
|
605
|
+
e.stopPropagation();
|
606
|
+
_this._dragStart = (e.pageX || e.originalEvent.touches[0].pageX) - parseInt(_this.$container.css("margin-left"), 10);
|
607
|
+
if (_this.options.animate) {
|
608
|
+
_this.$wrapper.removeClass(_this.options.baseClass + "-animate");
|
609
|
+
}
|
610
|
+
return _this.$element.trigger("focus.bootstrapSwitch");
|
611
|
+
};
|
612
|
+
})(this),
|
613
|
+
"mousemove.bootstrapSwitch touchmove.bootstrapSwitch": (function(_this) {
|
614
|
+
return function(e) {
|
615
|
+
var difference;
|
616
|
+
if (_this._dragStart == null) {
|
617
|
+
return;
|
618
|
+
}
|
619
|
+
e.preventDefault();
|
620
|
+
difference = (e.pageX || e.originalEvent.touches[0].pageX) - _this._dragStart;
|
621
|
+
if (difference < -_this._handleWidth || difference > 0) {
|
622
|
+
return;
|
623
|
+
}
|
624
|
+
_this._dragEnd = difference;
|
625
|
+
return _this.$container.css("margin-left", _this._dragEnd + "px");
|
626
|
+
};
|
627
|
+
})(this),
|
628
|
+
"mouseup.bootstrapSwitch touchend.bootstrapSwitch": (function(_this) {
|
629
|
+
return function(e) {
|
630
|
+
var state;
|
631
|
+
if (!_this._dragStart) {
|
632
|
+
return;
|
633
|
+
}
|
634
|
+
e.preventDefault();
|
635
|
+
if (_this.options.animate) {
|
636
|
+
_this.$wrapper.addClass(_this.options.baseClass + "-animate");
|
637
|
+
}
|
638
|
+
if (_this._dragEnd) {
|
639
|
+
state = _this._dragEnd > -(_this._handleWidth / 2);
|
640
|
+
_this._dragEnd = false;
|
641
|
+
_this.state(_this.options.inverse ? !state : state);
|
642
|
+
} else {
|
643
|
+
_this.state(!_this.options.state);
|
644
|
+
}
|
645
|
+
return _this._dragStart = false;
|
646
|
+
};
|
647
|
+
})(this),
|
648
|
+
"mouseleave.bootstrapSwitch": (function(_this) {
|
649
|
+
return function(e) {
|
650
|
+
return _this.$label.trigger("mouseup.bootstrapSwitch");
|
651
|
+
};
|
652
|
+
})(this)
|
653
|
+
});
|
654
|
+
};
|
655
|
+
|
656
|
+
BootstrapSwitch.prototype._externalLabelHandler = function() {
|
657
|
+
var $externalLabel;
|
658
|
+
$externalLabel = this.$element.closest("label");
|
659
|
+
return $externalLabel.on("click", (function(_this) {
|
660
|
+
return function(event) {
|
661
|
+
event.preventDefault();
|
662
|
+
event.stopImmediatePropagation();
|
663
|
+
if (event.target === $externalLabel[0]) {
|
664
|
+
return _this.toggleState();
|
665
|
+
}
|
666
|
+
};
|
667
|
+
})(this));
|
668
|
+
};
|
669
|
+
|
670
|
+
BootstrapSwitch.prototype._formHandler = function() {
|
671
|
+
var $form;
|
672
|
+
$form = this.$element.closest("form");
|
673
|
+
if ($form.data("bootstrap-switch")) {
|
674
|
+
return;
|
675
|
+
}
|
676
|
+
return $form.on("reset.bootstrapSwitch", function() {
|
677
|
+
return window.setTimeout(function() {
|
678
|
+
return $form.find("input").filter(function() {
|
679
|
+
return $(this).data("bootstrap-switch");
|
680
|
+
}).each(function() {
|
681
|
+
return $(this).bootstrapSwitch("state", this.checked);
|
682
|
+
});
|
683
|
+
}, 1);
|
684
|
+
}).data("bootstrap-switch", true);
|
685
|
+
};
|
686
|
+
|
687
|
+
BootstrapSwitch.prototype._getClasses = function(classes) {
|
688
|
+
var c, cls, i, len;
|
689
|
+
if (!$.isArray(classes)) {
|
690
|
+
return [this.options.baseClass + "-" + classes];
|
691
|
+
}
|
692
|
+
cls = [];
|
693
|
+
for (i = 0, len = classes.length; i < len; i++) {
|
694
|
+
c = classes[i];
|
695
|
+
cls.push(this.options.baseClass + "-" + c);
|
696
|
+
}
|
697
|
+
return cls;
|
698
|
+
};
|
699
|
+
|
700
|
+
return BootstrapSwitch;
|
701
|
+
|
702
|
+
})();
|
703
|
+
$.fn.bootstrapSwitch = function() {
|
704
|
+
var args, option, ret;
|
705
|
+
option = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
|
706
|
+
ret = this;
|
707
|
+
this.each(function() {
|
708
|
+
var $this, data;
|
709
|
+
$this = $(this);
|
710
|
+
data = $this.data("bootstrap-switch");
|
711
|
+
if (!data) {
|
712
|
+
$this.data("bootstrap-switch", data = new BootstrapSwitch(this, option));
|
713
|
+
}
|
714
|
+
if (typeof option === "string") {
|
715
|
+
return ret = data[option].apply(data, args);
|
716
|
+
}
|
717
|
+
});
|
718
|
+
return ret;
|
719
|
+
};
|
720
|
+
$.fn.bootstrapSwitch.Constructor = BootstrapSwitch;
|
721
|
+
return $.fn.bootstrapSwitch.defaults = {
|
722
|
+
state: true,
|
723
|
+
size: null,
|
724
|
+
animate: true,
|
725
|
+
disabled: false,
|
726
|
+
readonly: false,
|
727
|
+
indeterminate: false,
|
728
|
+
inverse: false,
|
729
|
+
radioAllOff: false,
|
730
|
+
onColor: "primary",
|
731
|
+
offColor: "default",
|
732
|
+
onText: "ON",
|
733
|
+
offText: "OFF",
|
734
|
+
labelText: " ",
|
735
|
+
handleWidth: "auto",
|
736
|
+
labelWidth: "auto",
|
737
|
+
baseClass: "bootstrap-switch",
|
738
|
+
wrapperClass: "wrapper",
|
739
|
+
onInit: function() {},
|
740
|
+
onSwitchChange: function() {}
|
741
|
+
};
|
742
|
+
})(window.jQuery, window);
|
743
|
+
|
744
|
+
}).call(this);
|