weaver 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/bin/weaver +76 -0
- data/data/weaver/css/animate.css +2848 -0
- data/data/weaver/css/bootstrap.css +6358 -0
- data/data/weaver/css/bootstrap.min.css +5 -0
- data/data/weaver/css/patterns/congruent_pentagon.png +0 -0
- data/data/weaver/css/patterns/header-profile-skin-1.png +0 -0
- data/data/weaver/css/patterns/header-profile-skin-2.png +0 -0
- data/data/weaver/css/patterns/header-profile-skin-3.png +0 -0
- data/data/weaver/css/patterns/header-profile.png +0 -0
- data/data/weaver/css/patterns/otis_redding.png +0 -0
- data/data/weaver/css/patterns/shattered.png +0 -0
- data/data/weaver/css/patterns/triangular.png +0 -0
- data/data/weaver/css/plugins/blueimp/css/blueimp-gallery-indicator.css +71 -0
- data/data/weaver/css/plugins/blueimp/css/blueimp-gallery-video.css +87 -0
- data/data/weaver/css/plugins/blueimp/css/blueimp-gallery.css +226 -0
- data/data/weaver/css/plugins/blueimp/css/blueimp-gallery.min.css +1 -0
- data/data/weaver/css/plugins/blueimp/css/demo.css +51 -0
- data/data/weaver/css/plugins/blueimp/img/error.png +0 -0
- data/data/weaver/css/plugins/blueimp/img/error.svg +5 -0
- data/data/weaver/css/plugins/blueimp/img/loading.gif +0 -0
- data/data/weaver/css/plugins/blueimp/img/play-pause.png +0 -0
- data/data/weaver/css/plugins/blueimp/img/play-pause.svg +6 -0
- data/data/weaver/css/plugins/blueimp/img/video-play.png +0 -0
- data/data/weaver/css/plugins/blueimp/img/video-play.svg +5 -0
- data/data/weaver/css/plugins/bootstrap-rtl/bootstrap-rtl.css +1468 -0
- data/data/weaver/css/plugins/bootstrap-rtl/bootstrap-rtl.css.map +1 -0
- data/data/weaver/css/plugins/bootstrap-rtl/bootstrap-rtl.min.css +9 -0
- data/data/weaver/css/plugins/chosen/chosen-sprite.png +0 -0
- data/data/weaver/css/plugins/chosen/chosen-sprite@2x.png +0 -0
- data/data/weaver/css/plugins/chosen/chosen.css +429 -0
- data/data/weaver/css/plugins/codemirror/ambiance.css +77 -0
- data/data/weaver/css/plugins/codemirror/codemirror.css +309 -0
- data/data/weaver/css/plugins/colorpicker/bootstrap-colorpicker.min.css +9 -0
- data/data/weaver/css/plugins/cropper/cropper.min.css +9 -0
- data/data/weaver/css/plugins/dataTables/dataTables.bootstrap.css +233 -0
- data/data/weaver/css/plugins/dataTables/dataTables.responsive.css +93 -0
- data/data/weaver/css/plugins/dataTables/dataTables.tableTools.min.css +1 -0
- data/data/weaver/css/plugins/datapicker/datepicker3.css +789 -0
- data/data/weaver/css/plugins/dropzone/basic.css +155 -0
- data/data/weaver/css/plugins/dropzone/dropzone.css +410 -0
- data/data/weaver/css/plugins/fullcalendar/fullcalendar.css +977 -0
- data/data/weaver/css/plugins/fullcalendar/fullcalendar.print.css +202 -0
- data/data/weaver/css/plugins/iCheck/custom.css +59 -0
- data/data/weaver/css/plugins/iCheck/green.png +0 -0
- data/data/weaver/css/plugins/iCheck/green@2x.png +0 -0
- data/data/weaver/css/plugins/images/bootstrap-colorpicker/alpha-horizontal.png +0 -0
- data/data/weaver/css/plugins/images/bootstrap-colorpicker/alpha.png +0 -0
- data/data/weaver/css/plugins/images/bootstrap-colorpicker/hue-horizontal.png +0 -0
- data/data/weaver/css/plugins/images/bootstrap-colorpicker/hue.png +0 -0
- data/data/weaver/css/plugins/images/bootstrap-colorpicker/saturation.png +0 -0
- data/data/weaver/css/plugins/images/sort.png +0 -0
- data/data/weaver/css/plugins/images/sort_asc.png +0 -0
- data/data/weaver/css/plugins/images/sort_desc.png +0 -0
- data/data/weaver/css/plugins/images/sprite-skin-flat.png +0 -0
- data/data/weaver/css/plugins/images/sprite-skin-flat2.png +0 -0
- data/data/weaver/css/plugins/images/sprite-skin-nice.png +0 -0
- data/data/weaver/css/plugins/images/sprite-skin-simple.png +0 -0
- data/data/weaver/css/plugins/images/spritemap.png +0 -0
- data/data/weaver/css/plugins/images/spritemap@2x.png +0 -0
- data/data/weaver/css/plugins/ionRangeSlider/ion.rangeSlider.css +126 -0
- data/data/weaver/css/plugins/ionRangeSlider/ion.rangeSlider.skinFlat.css +89 -0
- data/data/weaver/css/plugins/ionRangeSlider/ion.rangeSlider.skinNice.css +85 -0
- data/data/weaver/css/plugins/ionRangeSlider/ion.rangeSlider.skinSimple.css +85 -0
- data/data/weaver/css/plugins/jQueryUI/images/animated-overlay.gif +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-icons_222222_256x240.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-icons_2e83ff_256x240.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-icons_454545_256x240.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-icons_888888_256x240.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/jquery-ui-1.10.4.custom.min.css +7 -0
- data/data/weaver/css/plugins/jasny/jasny-bootstrap.min.css +7 -0
- data/data/weaver/css/plugins/jqGrid/ui.jqgrid.css +171 -0
- data/data/weaver/css/plugins/jsTree/32px.png +0 -0
- data/data/weaver/css/plugins/jsTree/39px.png +0 -0
- data/data/weaver/css/plugins/jsTree/40px.png +0 -0
- data/data/weaver/css/plugins/jsTree/style.css +1050 -0
- data/data/weaver/css/plugins/jsTree/style.min.css +1 -0
- data/data/weaver/css/plugins/jsTree/throbber.gif +0 -0
- data/data/weaver/css/plugins/morris/morris-0.4.3.min.css +2 -0
- data/data/weaver/css/plugins/nouslider/jquery.nouislider.css +165 -0
- data/data/weaver/css/plugins/social-buttons/social-buttons.css +68 -0
- data/data/weaver/css/plugins/steps/jquery.steps.css +380 -0
- data/data/weaver/css/plugins/summernote/summernote-bs3.css +5970 -0
- data/data/weaver/css/plugins/summernote/summernote.css +446 -0
- data/data/weaver/css/plugins/switchery/switchery.css +32 -0
- data/data/weaver/css/plugins/toastr/toastr.min.css +222 -0
- data/data/weaver/css/style.css +5031 -0
- data/data/weaver/css/style.min.css +1 -0
- data/data/weaver/font-awesome/css/font-awesome.css +1801 -0
- data/data/weaver/font-awesome/css/font-awesome.min.css +4 -0
- data/data/weaver/font-awesome/fonts/FontAwesome.otf +0 -0
- data/data/weaver/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/data/weaver/font-awesome/fonts/fontawesome-webfont.svg +565 -0
- data/data/weaver/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/data/weaver/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/data/weaver/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- data/data/weaver/font-awesome/less/animated.less +34 -0
- data/data/weaver/font-awesome/less/bordered-pulled.less +16 -0
- data/data/weaver/font-awesome/less/core.less +13 -0
- data/data/weaver/font-awesome/less/fixed-width.less +6 -0
- data/data/weaver/font-awesome/less/font-awesome.less +17 -0
- data/data/weaver/font-awesome/less/icons.less +596 -0
- data/data/weaver/font-awesome/less/larger.less +13 -0
- data/data/weaver/font-awesome/less/list.less +19 -0
- data/data/weaver/font-awesome/less/mixins.less +27 -0
- data/data/weaver/font-awesome/less/path.less +15 -0
- data/data/weaver/font-awesome/less/rotated-flipped.less +20 -0
- data/data/weaver/font-awesome/less/stacked.less +20 -0
- data/data/weaver/font-awesome/less/variables.less +606 -0
- data/data/weaver/font-awesome/scss/_animated.scss +34 -0
- data/data/weaver/font-awesome/scss/_bordered-pulled.scss +16 -0
- data/data/weaver/font-awesome/scss/_core.scss +13 -0
- data/data/weaver/font-awesome/scss/_fixed-width.scss +6 -0
- data/data/weaver/font-awesome/scss/_icons.scss +596 -0
- data/data/weaver/font-awesome/scss/_larger.scss +13 -0
- data/data/weaver/font-awesome/scss/_list.scss +19 -0
- data/data/weaver/font-awesome/scss/_mixins.scss +27 -0
- data/data/weaver/font-awesome/scss/_path.scss +15 -0
- data/data/weaver/font-awesome/scss/_rotated-flipped.scss +20 -0
- data/data/weaver/font-awesome/scss/_stacked.scss +20 -0
- data/data/weaver/font-awesome/scss/_variables.scss +606 -0
- data/data/weaver/font-awesome/scss/font-awesome.scss +17 -0
- data/data/weaver/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-BoldItalic.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-ExtraBold.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-ExtraBoldItalic.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-Italic.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-Light.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-LightItalic.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-Regular.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-Semibold.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-SemiboldItalic.ttf +0 -0
- data/data/weaver/fonts/glyphicons-halflings-regular.eot +0 -0
- data/data/weaver/fonts/glyphicons-halflings-regular.svg +229 -0
- data/data/weaver/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/data/weaver/fonts/glyphicons-halflings-regular.woff +0 -0
- data/data/weaver/js/bootstrap.js +2276 -0
- data/data/weaver/js/bootstrap.min.js +7 -0
- data/data/weaver/js/demo/chartjs-demo.js +217 -0
- data/data/weaver/js/demo/dashboard-demo.js +117 -0
- data/data/weaver/js/demo/flot-demo.js +308 -0
- data/data/weaver/js/demo/flot-demo2.js +377 -0
- data/data/weaver/js/demo/morris-demo.js +89 -0
- data/data/weaver/js/demo/peity-demo.js +33 -0
- data/data/weaver/js/demo/rickshaw-demo.js +103 -0
- data/data/weaver/js/demo/sparkline-demo.js +51 -0
- data/data/weaver/js/inspinia.js +149 -0
- data/data/weaver/js/jquery-2.1.1.js +4 -0
- data/data/weaver/js/jquery-ui-1.10.4.min.js +7 -0
- data/data/weaver/js/jquery-ui.custom.min.js +16 -0
- data/data/weaver/js/plugins/blueimp/jquery.blueimp-gallery.min.js +1 -0
- data/data/weaver/js/plugins/chartJs/Chart.min.js +11 -0
- data/data/weaver/js/plugins/chosen/chosen.jquery.js +1211 -0
- data/data/weaver/js/plugins/codemirror/codemirror.js +7830 -0
- data/data/weaver/js/plugins/codemirror/mode/apl/apl.js +175 -0
- data/data/weaver/js/plugins/codemirror/mode/apl/index.html +72 -0
- data/data/weaver/js/plugins/codemirror/mode/asterisk/asterisk.js +198 -0
- data/data/weaver/js/plugins/codemirror/mode/asterisk/index.html +154 -0
- data/data/weaver/js/plugins/codemirror/mode/clike/clike.js +474 -0
- data/data/weaver/js/plugins/codemirror/mode/clike/index.html +225 -0
- data/data/weaver/js/plugins/codemirror/mode/clike/scala.html +767 -0
- data/data/weaver/js/plugins/codemirror/mode/clojure/clojure.js +243 -0
- data/data/weaver/js/plugins/codemirror/mode/clojure/index.html +88 -0
- data/data/weaver/js/plugins/codemirror/mode/cobol/cobol.js +255 -0
- data/data/weaver/js/plugins/codemirror/mode/cobol/index.html +210 -0
- data/data/weaver/js/plugins/codemirror/mode/coffeescript/coffeescript.js +369 -0
- data/data/weaver/js/plugins/codemirror/mode/coffeescript/index.html +740 -0
- data/data/weaver/js/plugins/codemirror/mode/commonlisp/commonlisp.js +120 -0
- data/data/weaver/js/plugins/codemirror/mode/commonlisp/index.html +177 -0
- data/data/weaver/js/plugins/codemirror/mode/css/css.js +717 -0
- data/data/weaver/js/plugins/codemirror/mode/css/index.html +70 -0
- data/data/weaver/js/plugins/codemirror/mode/css/less.html +152 -0
- data/data/weaver/js/plugins/codemirror/mode/css/less_test.js +51 -0
- data/data/weaver/js/plugins/codemirror/mode/css/scss.html +157 -0
- data/data/weaver/js/plugins/codemirror/mode/css/scss_test.js +110 -0
- data/data/weaver/js/plugins/codemirror/mode/css/test.js +135 -0
- data/data/weaver/js/plugins/codemirror/mode/cypher/cypher.js +146 -0
- data/data/weaver/js/plugins/codemirror/mode/cypher/index.html +63 -0
- data/data/weaver/js/plugins/codemirror/mode/d/d.js +218 -0
- data/data/weaver/js/plugins/codemirror/mode/d/index.html +273 -0
- data/data/weaver/js/plugins/codemirror/mode/diff/diff.js +47 -0
- data/data/weaver/js/plugins/codemirror/mode/diff/index.html +117 -0
- data/data/weaver/js/plugins/codemirror/mode/django/django.js +67 -0
- data/data/weaver/js/plugins/codemirror/mode/django/index.html +63 -0
- data/data/weaver/js/plugins/codemirror/mode/dtd/dtd.js +142 -0
- data/data/weaver/js/plugins/codemirror/mode/dtd/index.html +89 -0
- data/data/weaver/js/plugins/codemirror/mode/dylan/dylan.js +299 -0
- data/data/weaver/js/plugins/codemirror/mode/dylan/index.html +407 -0
- data/data/weaver/js/plugins/codemirror/mode/ecl/ecl.js +207 -0
- data/data/weaver/js/plugins/codemirror/mode/ecl/index.html +52 -0
- data/data/weaver/js/plugins/codemirror/mode/eiffel/eiffel.js +162 -0
- data/data/weaver/js/plugins/codemirror/mode/eiffel/index.html +429 -0
- data/data/weaver/js/plugins/codemirror/mode/erlang/erlang.js +622 -0
- data/data/weaver/js/plugins/codemirror/mode/erlang/index.html +76 -0
- data/data/weaver/js/plugins/codemirror/mode/fortran/fortran.js +188 -0
- data/data/weaver/js/plugins/codemirror/mode/fortran/index.html +81 -0
- data/data/weaver/js/plugins/codemirror/mode/gas/gas.js +345 -0
- data/data/weaver/js/plugins/codemirror/mode/gas/index.html +68 -0
- data/data/weaver/js/plugins/codemirror/mode/gfm/gfm.js +122 -0
- data/data/weaver/js/plugins/codemirror/mode/gfm/index.html +82 -0
- data/data/weaver/js/plugins/codemirror/mode/gfm/test.js +164 -0
- data/data/weaver/js/plugins/codemirror/mode/gherkin/gherkin.js +178 -0
- data/data/weaver/js/plugins/codemirror/mode/gherkin/index.html +48 -0
- data/data/weaver/js/plugins/codemirror/mode/go/go.js +184 -0
- data/data/weaver/js/plugins/codemirror/mode/go/index.html +85 -0
- data/data/weaver/js/plugins/codemirror/mode/groovy/groovy.js +226 -0
- data/data/weaver/js/plugins/codemirror/mode/groovy/index.html +84 -0
- data/data/weaver/js/plugins/codemirror/mode/haml/haml.js +159 -0
- data/data/weaver/js/plugins/codemirror/mode/haml/index.html +79 -0
- data/data/weaver/js/plugins/codemirror/mode/haml/test.js +97 -0
- data/data/weaver/js/plugins/codemirror/mode/haskell/haskell.js +267 -0
- data/data/weaver/js/plugins/codemirror/mode/haskell/index.html +73 -0
- data/data/weaver/js/plugins/codemirror/mode/haxe/haxe.js +518 -0
- data/data/weaver/js/plugins/codemirror/mode/haxe/index.html +124 -0
- data/data/weaver/js/plugins/codemirror/mode/htmlembedded/htmlembedded.js +86 -0
- data/data/weaver/js/plugins/codemirror/mode/htmlembedded/index.html +58 -0
- data/data/weaver/js/plugins/codemirror/mode/htmlmixed/htmlmixed.js +121 -0
- data/data/weaver/js/plugins/codemirror/mode/htmlmixed/index.html +85 -0
- data/data/weaver/js/plugins/codemirror/mode/http/http.js +113 -0
- data/data/weaver/js/plugins/codemirror/mode/http/index.html +45 -0
- data/data/weaver/js/plugins/codemirror/mode/index.html +125 -0
- data/data/weaver/js/plugins/codemirror/mode/jade/index.html +70 -0
- data/data/weaver/js/plugins/codemirror/mode/jade/jade.js +590 -0
- data/data/weaver/js/plugins/codemirror/mode/javascript/index.html +114 -0
- data/data/weaver/js/plugins/codemirror/mode/javascript/javascript.js +684 -0
- data/data/weaver/js/plugins/codemirror/mode/javascript/json-ld.html +72 -0
- data/data/weaver/js/plugins/codemirror/mode/javascript/test.js +194 -0
- data/data/weaver/js/plugins/codemirror/mode/javascript/typescript.html +61 -0
- data/data/weaver/js/plugins/codemirror/mode/jinja2/index.html +54 -0
- data/data/weaver/js/plugins/codemirror/mode/jinja2/jinja2.js +142 -0
- data/data/weaver/js/plugins/codemirror/mode/julia/index.html +195 -0
- data/data/weaver/js/plugins/codemirror/mode/julia/julia.js +301 -0
- data/data/weaver/js/plugins/codemirror/mode/kotlin/index.html +89 -0
- data/data/weaver/js/plugins/codemirror/mode/kotlin/kotlin.js +280 -0
- data/data/weaver/js/plugins/codemirror/mode/livescript/index.html +459 -0
- data/data/weaver/js/plugins/codemirror/mode/livescript/livescript.js +280 -0
- data/data/weaver/js/plugins/codemirror/mode/lua/index.html +85 -0
- data/data/weaver/js/plugins/codemirror/mode/lua/lua.js +159 -0
- data/data/weaver/js/plugins/codemirror/mode/markdown/index.html +359 -0
- data/data/weaver/js/plugins/codemirror/mode/markdown/markdown.js +758 -0
- data/data/weaver/js/plugins/codemirror/mode/markdown/test.js +754 -0
- data/data/weaver/js/plugins/codemirror/mode/meta.js +144 -0
- data/data/weaver/js/plugins/codemirror/mode/mirc/index.html +160 -0
- data/data/weaver/js/plugins/codemirror/mode/mirc/mirc.js +193 -0
- data/data/weaver/js/plugins/codemirror/mode/mllike/index.html +179 -0
- data/data/weaver/js/plugins/codemirror/mode/mllike/mllike.js +205 -0
- data/data/weaver/js/plugins/codemirror/mode/modelica/index.html +67 -0
- data/data/weaver/js/plugins/codemirror/mode/modelica/modelica.js +245 -0
- data/data/weaver/js/plugins/codemirror/mode/nginx/index.html +181 -0
- data/data/weaver/js/plugins/codemirror/mode/nginx/nginx.js +178 -0
- data/data/weaver/js/plugins/codemirror/mode/ntriples/index.html +45 -0
- data/data/weaver/js/plugins/codemirror/mode/ntriples/ntriples.js +186 -0
- data/data/weaver/js/plugins/codemirror/mode/octave/index.html +83 -0
- data/data/weaver/js/plugins/codemirror/mode/octave/octave.js +135 -0
- data/data/weaver/js/plugins/codemirror/mode/pascal/index.html +61 -0
- data/data/weaver/js/plugins/codemirror/mode/pascal/pascal.js +109 -0
- data/data/weaver/js/plugins/codemirror/mode/pegjs/index.html +66 -0
- data/data/weaver/js/plugins/codemirror/mode/pegjs/pegjs.js +114 -0
- data/data/weaver/js/plugins/codemirror/mode/perl/index.html +75 -0
- data/data/weaver/js/plugins/codemirror/mode/perl/perl.js +832 -0
- data/data/weaver/js/plugins/codemirror/mode/php/index.html +64 -0
- data/data/weaver/js/plugins/codemirror/mode/php/php.js +226 -0
- data/data/weaver/js/plugins/codemirror/mode/php/test.js +154 -0
- data/data/weaver/js/plugins/codemirror/mode/pig/index.html +55 -0
- data/data/weaver/js/plugins/codemirror/mode/pig/pig.js +188 -0
- data/data/weaver/js/plugins/codemirror/mode/properties/index.html +53 -0
- data/data/weaver/js/plugins/codemirror/mode/properties/properties.js +78 -0
- data/data/weaver/js/plugins/codemirror/mode/puppet/index.html +121 -0
- data/data/weaver/js/plugins/codemirror/mode/puppet/puppet.js +220 -0
- data/data/weaver/js/plugins/codemirror/mode/python/index.html +198 -0
- data/data/weaver/js/plugins/codemirror/mode/python/python.js +359 -0
- data/data/weaver/js/plugins/codemirror/mode/q/index.html +144 -0
- data/data/weaver/js/plugins/codemirror/mode/q/q.js +139 -0
- data/data/weaver/js/plugins/codemirror/mode/r/index.html +85 -0
- data/data/weaver/js/plugins/codemirror/mode/r/r.js +162 -0
- data/data/weaver/js/plugins/codemirror/mode/rpm/changes/index.html +66 -0
- data/data/weaver/js/plugins/codemirror/mode/rpm/index.html +149 -0
- data/data/weaver/js/plugins/codemirror/mode/rpm/rpm.js +101 -0
- data/data/weaver/js/plugins/codemirror/mode/rst/index.html +535 -0
- data/data/weaver/js/plugins/codemirror/mode/rst/rst.js +557 -0
- data/data/weaver/js/plugins/codemirror/mode/ruby/index.html +184 -0
- data/data/weaver/js/plugins/codemirror/mode/ruby/ruby.js +285 -0
- data/data/weaver/js/plugins/codemirror/mode/ruby/test.js +14 -0
- data/data/weaver/js/plugins/codemirror/mode/rust/index.html +60 -0
- data/data/weaver/js/plugins/codemirror/mode/rust/rust.js +451 -0
- data/data/weaver/js/plugins/codemirror/mode/sass/index.html +66 -0
- data/data/weaver/js/plugins/codemirror/mode/sass/sass.js +327 -0
- data/data/weaver/js/plugins/codemirror/mode/scheme/index.html +77 -0
- data/data/weaver/js/plugins/codemirror/mode/scheme/scheme.js +248 -0
- data/data/weaver/js/plugins/codemirror/mode/shell/index.html +66 -0
- data/data/weaver/js/plugins/codemirror/mode/shell/shell.js +138 -0
- data/data/weaver/js/plugins/codemirror/mode/shell/test.js +58 -0
- data/data/weaver/js/plugins/codemirror/mode/sieve/index.html +93 -0
- data/data/weaver/js/plugins/codemirror/mode/sieve/sieve.js +193 -0
- data/data/weaver/js/plugins/codemirror/mode/slim/index.html +96 -0
- data/data/weaver/js/plugins/codemirror/mode/slim/slim.js +575 -0
- data/data/weaver/js/plugins/codemirror/mode/slim/test.js +96 -0
- data/data/weaver/js/plugins/codemirror/mode/smalltalk/index.html +68 -0
- data/data/weaver/js/plugins/codemirror/mode/smalltalk/smalltalk.js +168 -0
- data/data/weaver/js/plugins/codemirror/mode/smarty/index.html +136 -0
- data/data/weaver/js/plugins/codemirror/mode/smarty/smarty.js +221 -0
- data/data/weaver/js/plugins/codemirror/mode/smartymixed/index.html +114 -0
- data/data/weaver/js/plugins/codemirror/mode/smartymixed/smartymixed.js +197 -0
- data/data/weaver/js/plugins/codemirror/mode/solr/index.html +57 -0
- data/data/weaver/js/plugins/codemirror/mode/solr/solr.js +104 -0
- data/data/weaver/js/plugins/codemirror/mode/sparql/index.html +53 -0
- data/data/weaver/js/plugins/codemirror/mode/sparql/sparql.js +160 -0
- data/data/weaver/js/plugins/codemirror/mode/sql/index.html +84 -0
- data/data/weaver/js/plugins/codemirror/mode/sql/sql.js +393 -0
- data/data/weaver/js/plugins/codemirror/mode/stex/index.html +110 -0
- data/data/weaver/js/plugins/codemirror/mode/stex/stex.js +262 -0
- data/data/weaver/js/plugins/codemirror/mode/stex/test.js +123 -0
- data/data/weaver/js/plugins/codemirror/mode/tcl/index.html +142 -0
- data/data/weaver/js/plugins/codemirror/mode/tcl/tcl.js +147 -0
- data/data/weaver/js/plugins/codemirror/mode/textile/index.html +191 -0
- data/data/weaver/js/plugins/codemirror/mode/textile/test.js +406 -0
- data/data/weaver/js/plugins/codemirror/mode/textile/textile.js +553 -0
- data/data/weaver/js/plugins/codemirror/mode/tiddlywiki/index.html +154 -0
- data/data/weaver/js/plugins/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
- data/data/weaver/js/plugins/codemirror/mode/tiddlywiki/tiddlywiki.js +369 -0
- data/data/weaver/js/plugins/codemirror/mode/tiki/index.html +95 -0
- data/data/weaver/js/plugins/codemirror/mode/tiki/tiki.css +26 -0
- data/data/weaver/js/plugins/codemirror/mode/tiki/tiki.js +323 -0
- data/data/weaver/js/plugins/codemirror/mode/toml/index.html +73 -0
- data/data/weaver/js/plugins/codemirror/mode/toml/toml.js +88 -0
- data/data/weaver/js/plugins/codemirror/mode/tornado/index.html +63 -0
- data/data/weaver/js/plugins/codemirror/mode/tornado/tornado.js +68 -0
- data/data/weaver/js/plugins/codemirror/mode/turtle/index.html +50 -0
- data/data/weaver/js/plugins/codemirror/mode/turtle/turtle.js +160 -0
- data/data/weaver/js/plugins/codemirror/mode/vb/index.html +102 -0
- data/data/weaver/js/plugins/codemirror/mode/vb/vb.js +274 -0
- data/data/weaver/js/plugins/codemirror/mode/vbscript/index.html +55 -0
- data/data/weaver/js/plugins/codemirror/mode/vbscript/vbscript.js +350 -0
- data/data/weaver/js/plugins/codemirror/mode/velocity/index.html +118 -0
- data/data/weaver/js/plugins/codemirror/mode/velocity/velocity.js +201 -0
- data/data/weaver/js/plugins/codemirror/mode/verilog/index.html +120 -0
- data/data/weaver/js/plugins/codemirror/mode/verilog/test.js +273 -0
- data/data/weaver/js/plugins/codemirror/mode/verilog/verilog.js +364 -0
- data/data/weaver/js/plugins/codemirror/mode/xml/index.html +57 -0
- data/data/weaver/js/plugins/codemirror/mode/xml/test.js +51 -0
- data/data/weaver/js/plugins/codemirror/mode/xml/xml.js +384 -0
- data/data/weaver/js/plugins/codemirror/mode/xquery/index.html +210 -0
- data/data/weaver/js/plugins/codemirror/mode/xquery/test.js +67 -0
- data/data/weaver/js/plugins/codemirror/mode/xquery/xquery.js +447 -0
- data/data/weaver/js/plugins/codemirror/mode/yaml/index.html +80 -0
- data/data/weaver/js/plugins/codemirror/mode/yaml/yaml.js +112 -0
- data/data/weaver/js/plugins/codemirror/mode/z80/index.html +52 -0
- data/data/weaver/js/plugins/codemirror/mode/z80/z80.js +100 -0
- data/data/weaver/js/plugins/colorpicker/bootstrap-colorpicker.min.js +1 -0
- data/data/weaver/js/plugins/cropper/cropper.min.js +9 -0
- data/data/weaver/js/plugins/dataTables/dataTables.bootstrap.js +245 -0
- data/data/weaver/js/plugins/dataTables/dataTables.responsive.js +801 -0
- data/data/weaver/js/plugins/dataTables/dataTables.tableTools.min.js +69 -0
- data/data/weaver/js/plugins/dataTables/jquery.dataTables.js +14840 -0
- data/data/weaver/js/plugins/dataTables/swf/copy_csv_xls.swf +0 -0
- data/data/weaver/js/plugins/dataTables/swf/copy_csv_xls_pdf.swf +0 -0
- data/data/weaver/js/plugins/datapicker/bootstrap-datepicker.js +1671 -0
- data/data/weaver/js/plugins/dropzone/dropzone.js +1841 -0
- data/data/weaver/js/plugins/easypiechart/easypiechart.js +350 -0
- data/data/weaver/js/plugins/easypiechart/jquery.easypiechart.js +359 -0
- data/data/weaver/js/plugins/flot/curvedLines.js +315 -0
- data/data/weaver/js/plugins/flot/excanvas.min.js +1 -0
- data/data/weaver/js/plugins/flot/jquery.flot.js +3168 -0
- data/data/weaver/js/plugins/flot/jquery.flot.pie.js +820 -0
- data/data/weaver/js/plugins/flot/jquery.flot.resize.js +59 -0
- data/data/weaver/js/plugins/flot/jquery.flot.spline.js +212 -0
- data/data/weaver/js/plugins/flot/jquery.flot.symbol.js +71 -0
- data/data/weaver/js/plugins/flot/jquery.flot.time.js +432 -0
- data/data/weaver/js/plugins/flot/jquery.flot.tooltip.min.js +12 -0
- data/data/weaver/js/plugins/fullcalendar/fullcalendar.min.js +8 -0
- data/data/weaver/js/plugins/fullcalendar/moment.min.js +7 -0
- data/data/weaver/js/plugins/gritter/images/gritter-light.png +0 -0
- data/data/weaver/js/plugins/gritter/images/gritter-long.png +0 -0
- data/data/weaver/js/plugins/gritter/images/gritter.png +0 -0
- data/data/weaver/js/plugins/gritter/images/ie-spacer.gif +0 -0
- data/data/weaver/js/plugins/gritter/jquery.gritter.css +137 -0
- data/data/weaver/js/plugins/gritter/jquery.gritter.min.js +1 -0
- data/data/weaver/js/plugins/iCheck/icheck.min.js +11 -0
- data/data/weaver/js/plugins/ionRangeSlider/ion.rangeSlider.min.js +26 -0
- data/data/weaver/js/plugins/jasny/jasny-bootstrap.min.js +6 -0
- data/data/weaver/js/plugins/jeditable/jquery.jeditable.js +543 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-ar.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-bg.js +134 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-bg1251.js +132 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-cat.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-cn.js +169 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-cs.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-da.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-de.js +173 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-dk.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-el.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-en.js +170 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-es.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-fa.js +147 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-fi.js +131 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-fr.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-gl.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-he.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-hr.js +164 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-hr1250.js +164 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-hu.js +131 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-id.js +170 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-is.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-it.js +1 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-ja.js +158 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-kr.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-lt.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-mne.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-nl.js +150 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-no.js +1 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-pl.js +134 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-pt-br.js +137 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-pt.js +127 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-ro.js +141 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-ru.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-sk.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-sr-latin.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-sr.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-sv.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-th.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-tr.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-tw.js +131 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-ua.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-vi.js +170 -0
- data/data/weaver/js/plugins/jqGrid/jquery.jqGrid.min.js +545 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery-ui-i18n.min.js +6 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-af.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ar-DZ.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ar.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-az.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-be.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-bg.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-bs.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ca.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-cs.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-cy-GB.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-da.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-de.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-el.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-AU.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-GB.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-NZ.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-eo.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-es.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-et.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-eu.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fa.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fi.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fo.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr-CA.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr-CH.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-gl.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-he.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hi.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hr.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hy.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-id.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-is.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-it.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ja.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ka.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-kk.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-km.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ko.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ky.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lb.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lt.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lv.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-mk.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ml.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ms.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nb.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nl-BE.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nl.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nn.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-no.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pl.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pt-BR.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pt.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-rm.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ro.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ru.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sk.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sl.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sq.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sr-SR.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sr.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sv.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ta.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-th.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-tj.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-tr.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-uk.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-vi.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-CN.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-HK.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-TW.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/images/animated-overlay.gif +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-icons_2e83ff_256x240.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-icons_454545_256x240.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-icons_888888_256x240.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/jquery-ui.css +1189 -0
- data/data/weaver/js/plugins/jquery-ui/jquery-ui.js +15040 -0
- data/data/weaver/js/plugins/jquery-ui/jquery-ui.min.css +4 -0
- data/data/weaver/js/plugins/jquery-ui/jquery-ui.min.js +12 -0
- data/data/weaver/js/plugins/jsKnob/jquery.knob.js +791 -0
- data/data/weaver/js/plugins/jsTree/jstree.min.js +5 -0
- data/data/weaver/js/plugins/justified-gallery/README.md +14 -0
- data/data/weaver/js/plugins/justified-gallery/jquery.justifiedgallery.css +73 -0
- data/data/weaver/js/plugins/justified-gallery/jquery.justifiedgallery.js +258 -0
- data/data/weaver/js/plugins/justified-gallery/jquery.justifiedgallery.min.css +17 -0
- data/data/weaver/js/plugins/justified-gallery/jquery.justifiedgallery.min.js +24 -0
- data/data/weaver/js/plugins/justified-gallery/loading.gif +0 -0
- data/data/weaver/js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js +8 -0
- data/data/weaver/js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js +1 -0
- data/data/weaver/js/plugins/metisMenu/jquery.metisMenu.js +120 -0
- data/data/weaver/js/plugins/morris/morris.js +1888 -0
- data/data/weaver/js/plugins/morris/raphael-2.1.0.min.js +10 -0
- data/data/weaver/js/plugins/nestable/jquery.nestable.js +484 -0
- data/data/weaver/js/plugins/nouslider/jquery.nouislider.min.js +34 -0
- data/data/weaver/js/plugins/pace/pace.min.js +2 -0
- data/data/weaver/js/plugins/peity/jquery.peity.min.js +13 -0
- data/data/weaver/js/plugins/rickshaw/rickshaw.min.js +3 -0
- data/data/weaver/js/plugins/rickshaw/vendor/d3.v3.js +5 -0
- data/data/weaver/js/plugins/slimscroll/jquery.slimscroll.js +464 -0
- data/data/weaver/js/plugins/slimscroll/jquery.slimscroll.min.js +16 -0
- data/data/weaver/js/plugins/sparkline/jquery.sparkline.min.js +5 -0
- data/data/weaver/js/plugins/staps/jquery.steps.min.js +6 -0
- data/data/weaver/js/plugins/summernote/summernote.min.js +2 -0
- data/data/weaver/js/plugins/switchery/switchery.js +1 -0
- data/data/weaver/js/plugins/toastr/toastr.min.js +2 -0
- data/data/weaver/js/plugins/validate/jquery.validate.min.js +4 -0
- data/data/weaver/js/plugins/video/responsible-video.js +21 -0
- data/lib/weaver.rb +922 -0
- data/lib/weaver/version.rb +3 -0
- data/weaver.gemspec +34 -0
- metadata +656 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
/* Flot plugin for automatically redrawing plots as the placeholder resizes.
|
2
|
+
|
3
|
+
Copyright (c) 2007-2014 IOLA and Ole Laursen.
|
4
|
+
Licensed under the MIT license.
|
5
|
+
|
6
|
+
It works by listening for changes on the placeholder div (through the jQuery
|
7
|
+
resize event plugin) - if the size changes, it will redraw the plot.
|
8
|
+
|
9
|
+
There are no options. If you need to disable the plugin for some plots, you
|
10
|
+
can just fix the size of their placeholders.
|
11
|
+
|
12
|
+
*/
|
13
|
+
|
14
|
+
/* Inline dependency:
|
15
|
+
* jQuery resize event - v1.1 - 3/14/2010
|
16
|
+
* http://benalman.com/projects/jquery-resize-plugin/
|
17
|
+
*
|
18
|
+
* Copyright (c) 2010 "Cowboy" Ben Alman
|
19
|
+
* Dual licensed under the MIT and GPL licenses.
|
20
|
+
* http://benalman.com/about/license/
|
21
|
+
*/
|
22
|
+
(function($,e,t){"$:nomunge";var i=[],n=$.resize=$.extend($.resize,{}),a,r=false,s="setTimeout",u="resize",m=u+"-special-event",o="pendingDelay",l="activeDelay",f="throttleWindow";n[o]=200;n[l]=20;n[f]=true;$.event.special[u]={setup:function(){if(!n[f]&&this[s]){return false}var e=$(this);i.push(this);e.data(m,{w:e.width(),h:e.height()});if(i.length===1){a=t;h()}},teardown:function(){if(!n[f]&&this[s]){return false}var e=$(this);for(var t=i.length-1;t>=0;t--){if(i[t]==this){i.splice(t,1);break}}e.removeData(m);if(!i.length){if(r){cancelAnimationFrame(a)}else{clearTimeout(a)}a=null}},add:function(e){if(!n[f]&&this[s]){return false}var i;function a(e,n,a){var r=$(this),s=r.data(m)||{};s.w=n!==t?n:r.width();s.h=a!==t?a:r.height();i.apply(this,arguments)}if($.isFunction(e)){i=e;return a}else{i=e.handler;e.handler=a}}};function h(t){if(r===true){r=t||1}for(var s=i.length-1;s>=0;s--){var l=$(i[s]);if(l[0]==e||l.is(":visible")){var f=l.width(),c=l.height(),d=l.data(m);if(d&&(f!==d.w||c!==d.h)){l.trigger(u,[d.w=f,d.h=c]);r=t||true}}else{d=l.data(m);d.w=0;d.h=0}}if(a!==null){if(r&&(t==null||t-r<1e3)){a=e.requestAnimationFrame(h)}else{a=setTimeout(h,n[o]);r=false}}}if(!e.requestAnimationFrame){e.requestAnimationFrame=function(){return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t,i){return e.setTimeout(function(){t((new Date).getTime())},n[l])}}()}if(!e.cancelAnimationFrame){e.cancelAnimationFrame=function(){return e.webkitCancelRequestAnimationFrame||e.mozCancelRequestAnimationFrame||e.oCancelRequestAnimationFrame||e.msCancelRequestAnimationFrame||clearTimeout}()}})(jQuery,this);
|
23
|
+
|
24
|
+
(function ($) {
|
25
|
+
var options = { }; // no options
|
26
|
+
|
27
|
+
function init(plot) {
|
28
|
+
function onResize() {
|
29
|
+
var placeholder = plot.getPlaceholder();
|
30
|
+
|
31
|
+
// somebody might have hidden us and we can't plot
|
32
|
+
// when we don't have the dimensions
|
33
|
+
if (placeholder.width() == 0 || placeholder.height() == 0)
|
34
|
+
return;
|
35
|
+
|
36
|
+
plot.resize();
|
37
|
+
plot.setupGrid();
|
38
|
+
plot.draw();
|
39
|
+
}
|
40
|
+
|
41
|
+
function bindEvents(plot, eventHolder) {
|
42
|
+
plot.getPlaceholder().resize(onResize);
|
43
|
+
}
|
44
|
+
|
45
|
+
function shutdown(plot, eventHolder) {
|
46
|
+
plot.getPlaceholder().unbind("resize", onResize);
|
47
|
+
}
|
48
|
+
|
49
|
+
plot.hooks.bindEvents.push(bindEvents);
|
50
|
+
plot.hooks.shutdown.push(shutdown);
|
51
|
+
}
|
52
|
+
|
53
|
+
$.plot.plugins.push({
|
54
|
+
init: init,
|
55
|
+
options: options,
|
56
|
+
name: 'resize',
|
57
|
+
version: '1.0'
|
58
|
+
});
|
59
|
+
})(jQuery);
|
@@ -0,0 +1,212 @@
|
|
1
|
+
/**
|
2
|
+
* Flot plugin that provides spline interpolation for line graphs
|
3
|
+
* author: Alex Bardas < alex.bardas@gmail.com >
|
4
|
+
* modified by: Avi Kohn https://github.com/AMKohn
|
5
|
+
* based on the spline interpolation described at:
|
6
|
+
* http://scaledinnovation.com/analytics/splines/aboutSplines.html
|
7
|
+
*
|
8
|
+
* Example usage: (add in plot options series object)
|
9
|
+
* for linespline:
|
10
|
+
* series: {
|
11
|
+
* ...
|
12
|
+
* lines: {
|
13
|
+
* show: false
|
14
|
+
* },
|
15
|
+
* splines: {
|
16
|
+
* show: true,
|
17
|
+
* tension: x, (float between 0 and 1, defaults to 0.5),
|
18
|
+
* lineWidth: y (number, defaults to 2),
|
19
|
+
* fill: z (float between 0 .. 1 or false, as in flot documentation)
|
20
|
+
* },
|
21
|
+
* ...
|
22
|
+
* }
|
23
|
+
* areaspline:
|
24
|
+
* series: {
|
25
|
+
* ...
|
26
|
+
* lines: {
|
27
|
+
* show: true,
|
28
|
+
* lineWidth: 0, (line drawing will not execute)
|
29
|
+
* fill: x, (float between 0 .. 1, as in flot documentation)
|
30
|
+
* ...
|
31
|
+
* },
|
32
|
+
* splines: {
|
33
|
+
* show: true,
|
34
|
+
* tension: 0.5 (float between 0 and 1)
|
35
|
+
* },
|
36
|
+
* ...
|
37
|
+
* }
|
38
|
+
*
|
39
|
+
*/
|
40
|
+
|
41
|
+
(function($) {
|
42
|
+
'use strict'
|
43
|
+
|
44
|
+
/**
|
45
|
+
* @param {Number} x0, y0, x1, y1: coordinates of the end (knot) points of the segment
|
46
|
+
* @param {Number} x2, y2: the next knot (not connected, but needed to calculate p2)
|
47
|
+
* @param {Number} tension: control how far the control points spread
|
48
|
+
* @return {Array}: p1 -> control point, from x1 back toward x0
|
49
|
+
* p2 -> the next control point, returned to become the next segment's p1
|
50
|
+
*
|
51
|
+
* @api private
|
52
|
+
*/
|
53
|
+
function getControlPoints(x0, y0, x1, y1, x2, y2, tension) {
|
54
|
+
|
55
|
+
var pow = Math.pow,
|
56
|
+
sqrt = Math.sqrt,
|
57
|
+
d01, d12, fa, fb, p1x, p1y, p2x, p2y;
|
58
|
+
|
59
|
+
// Scaling factors: distances from this knot to the previous and following knots.
|
60
|
+
d01 = sqrt(pow(x1 - x0, 2) + pow(y1 - y0, 2));
|
61
|
+
d12 = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
|
62
|
+
|
63
|
+
fa = tension * d01 / (d01 + d12);
|
64
|
+
fb = tension - fa;
|
65
|
+
|
66
|
+
p1x = x1 + fa * (x0 - x2);
|
67
|
+
p1y = y1 + fa * (y0 - y2);
|
68
|
+
|
69
|
+
p2x = x1 - fb * (x0 - x2);
|
70
|
+
p2y = y1 - fb * (y0 - y2);
|
71
|
+
|
72
|
+
return [p1x, p1y, p2x, p2y];
|
73
|
+
}
|
74
|
+
|
75
|
+
var line = [];
|
76
|
+
|
77
|
+
function drawLine(points, ctx, height, fill, seriesColor) {
|
78
|
+
var c = $.color.parse(seriesColor);
|
79
|
+
|
80
|
+
c.a = typeof fill == "number" ? fill : .3;
|
81
|
+
c.normalize();
|
82
|
+
c = c.toString();
|
83
|
+
|
84
|
+
ctx.beginPath();
|
85
|
+
ctx.moveTo(points[0][0], points[0][1]);
|
86
|
+
|
87
|
+
var plength = points.length;
|
88
|
+
|
89
|
+
for (var i = 0; i < plength; i++) {
|
90
|
+
ctx[points[i][3]].apply(ctx, points[i][2]);
|
91
|
+
}
|
92
|
+
|
93
|
+
ctx.stroke();
|
94
|
+
|
95
|
+
ctx.lineWidth = 0;
|
96
|
+
ctx.lineTo(points[plength - 1][0], height);
|
97
|
+
ctx.lineTo(points[0][0], height);
|
98
|
+
|
99
|
+
ctx.closePath();
|
100
|
+
|
101
|
+
if (fill !== false) {
|
102
|
+
ctx.fillStyle = c;
|
103
|
+
ctx.fill();
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
/**
|
108
|
+
* @param {Object} ctx: canvas context
|
109
|
+
* @param {String} type: accepted strings: 'bezier' or 'quadratic' (defaults to quadratic)
|
110
|
+
* @param {Array} points: 2 points for which to draw the interpolation
|
111
|
+
* @param {Array} cpoints: control points for those segment points
|
112
|
+
*
|
113
|
+
* @api private
|
114
|
+
*/
|
115
|
+
function queue(ctx, type, points, cpoints) {
|
116
|
+
if (type === void 0 || (type !== 'bezier' && type !== 'quadratic')) {
|
117
|
+
type = 'quadratic';
|
118
|
+
}
|
119
|
+
type = type + 'CurveTo';
|
120
|
+
|
121
|
+
if (line.length == 0) line.push([points[0], points[1], cpoints.concat(points.slice(2)), type]);
|
122
|
+
else if (type == "quadraticCurveTo" && points.length == 2) {
|
123
|
+
cpoints = cpoints.slice(0, 2).concat(points);
|
124
|
+
|
125
|
+
line.push([points[0], points[1], cpoints, type]);
|
126
|
+
}
|
127
|
+
else line.push([points[2], points[3], cpoints.concat(points.slice(2)), type]);
|
128
|
+
}
|
129
|
+
|
130
|
+
/**
|
131
|
+
* @param {Object} plot
|
132
|
+
* @param {Object} ctx: canvas context
|
133
|
+
* @param {Object} series
|
134
|
+
*
|
135
|
+
* @api private
|
136
|
+
*/
|
137
|
+
|
138
|
+
function drawSpline(plot, ctx, series) {
|
139
|
+
// Not interested if spline is not requested
|
140
|
+
if (series.splines.show !== true) {
|
141
|
+
return;
|
142
|
+
}
|
143
|
+
|
144
|
+
var cp = [],
|
145
|
+
// array of control points
|
146
|
+
tension = series.splines.tension || 0.5,
|
147
|
+
idx, x, y, points = series.datapoints.points,
|
148
|
+
ps = series.datapoints.pointsize,
|
149
|
+
plotOffset = plot.getPlotOffset(),
|
150
|
+
len = points.length,
|
151
|
+
pts = [];
|
152
|
+
|
153
|
+
line = [];
|
154
|
+
|
155
|
+
// Cannot display a linespline/areaspline if there are less than 3 points
|
156
|
+
if (len / ps < 4) {
|
157
|
+
$.extend(series.lines, series.splines);
|
158
|
+
return;
|
159
|
+
}
|
160
|
+
|
161
|
+
for (idx = 0; idx < len; idx += ps) {
|
162
|
+
x = points[idx];
|
163
|
+
y = points[idx + 1];
|
164
|
+
if (x == null || x < series.xaxis.min || x > series.xaxis.max || y < series.yaxis.min || y > series.yaxis.max) {
|
165
|
+
continue;
|
166
|
+
}
|
167
|
+
|
168
|
+
pts.push(series.xaxis.p2c(x) + plotOffset.left, series.yaxis.p2c(y) + plotOffset.top);
|
169
|
+
}
|
170
|
+
|
171
|
+
len = pts.length;
|
172
|
+
|
173
|
+
// Draw an open curve, not connected at the ends
|
174
|
+
for (idx = 0; idx < len - 2; idx += 2) {
|
175
|
+
cp = cp.concat(getControlPoints.apply(this, pts.slice(idx, idx + 6).concat([tension])));
|
176
|
+
}
|
177
|
+
|
178
|
+
ctx.save();
|
179
|
+
ctx.strokeStyle = series.color;
|
180
|
+
ctx.lineWidth = series.splines.lineWidth;
|
181
|
+
|
182
|
+
queue(ctx, 'quadratic', pts.slice(0, 4), cp.slice(0, 2));
|
183
|
+
|
184
|
+
for (idx = 2; idx < len - 3; idx += 2) {
|
185
|
+
queue(ctx, 'bezier', pts.slice(idx, idx + 4), cp.slice(2 * idx - 2, 2 * idx + 2));
|
186
|
+
}
|
187
|
+
|
188
|
+
queue(ctx, 'quadratic', pts.slice(len - 2, len), [cp[2 * len - 10], cp[2 * len - 9], pts[len - 4], pts[len - 3]]);
|
189
|
+
|
190
|
+
drawLine(line, ctx, plot.height() + 10, series.splines.fill, series.color);
|
191
|
+
|
192
|
+
ctx.restore();
|
193
|
+
}
|
194
|
+
|
195
|
+
$.plot.plugins.push({
|
196
|
+
init: function(plot) {
|
197
|
+
plot.hooks.drawSeries.push(drawSpline);
|
198
|
+
},
|
199
|
+
options: {
|
200
|
+
series: {
|
201
|
+
splines: {
|
202
|
+
show: false,
|
203
|
+
lineWidth: 2,
|
204
|
+
tension: 0.5,
|
205
|
+
fill: false
|
206
|
+
}
|
207
|
+
}
|
208
|
+
},
|
209
|
+
name: 'spline',
|
210
|
+
version: '0.8.2'
|
211
|
+
});
|
212
|
+
})(jQuery);
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/* Flot plugin that adds some extra symbols for plotting points.
|
2
|
+
|
3
|
+
Copyright (c) 2007-2014 IOLA and Ole Laursen.
|
4
|
+
Licensed under the MIT license.
|
5
|
+
|
6
|
+
The symbols are accessed as strings through the standard symbol options:
|
7
|
+
|
8
|
+
series: {
|
9
|
+
points: {
|
10
|
+
symbol: "square" // or "diamond", "triangle", "cross"
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
*/
|
15
|
+
|
16
|
+
(function ($) {
|
17
|
+
function processRawData(plot, series, datapoints) {
|
18
|
+
// we normalize the area of each symbol so it is approximately the
|
19
|
+
// same as a circle of the given radius
|
20
|
+
|
21
|
+
var handlers = {
|
22
|
+
square: function (ctx, x, y, radius, shadow) {
|
23
|
+
// pi * r^2 = (2s)^2 => s = r * sqrt(pi)/2
|
24
|
+
var size = radius * Math.sqrt(Math.PI) / 2;
|
25
|
+
ctx.rect(x - size, y - size, size + size, size + size);
|
26
|
+
},
|
27
|
+
diamond: function (ctx, x, y, radius, shadow) {
|
28
|
+
// pi * r^2 = 2s^2 => s = r * sqrt(pi/2)
|
29
|
+
var size = radius * Math.sqrt(Math.PI / 2);
|
30
|
+
ctx.moveTo(x - size, y);
|
31
|
+
ctx.lineTo(x, y - size);
|
32
|
+
ctx.lineTo(x + size, y);
|
33
|
+
ctx.lineTo(x, y + size);
|
34
|
+
ctx.lineTo(x - size, y);
|
35
|
+
},
|
36
|
+
triangle: function (ctx, x, y, radius, shadow) {
|
37
|
+
// pi * r^2 = 1/2 * s^2 * sin (pi / 3) => s = r * sqrt(2 * pi / sin(pi / 3))
|
38
|
+
var size = radius * Math.sqrt(2 * Math.PI / Math.sin(Math.PI / 3));
|
39
|
+
var height = size * Math.sin(Math.PI / 3);
|
40
|
+
ctx.moveTo(x - size/2, y + height/2);
|
41
|
+
ctx.lineTo(x + size/2, y + height/2);
|
42
|
+
if (!shadow) {
|
43
|
+
ctx.lineTo(x, y - height/2);
|
44
|
+
ctx.lineTo(x - size/2, y + height/2);
|
45
|
+
}
|
46
|
+
},
|
47
|
+
cross: function (ctx, x, y, radius, shadow) {
|
48
|
+
// pi * r^2 = (2s)^2 => s = r * sqrt(pi)/2
|
49
|
+
var size = radius * Math.sqrt(Math.PI) / 2;
|
50
|
+
ctx.moveTo(x - size, y - size);
|
51
|
+
ctx.lineTo(x + size, y + size);
|
52
|
+
ctx.moveTo(x - size, y + size);
|
53
|
+
ctx.lineTo(x + size, y - size);
|
54
|
+
}
|
55
|
+
};
|
56
|
+
|
57
|
+
var s = series.points.symbol;
|
58
|
+
if (handlers[s])
|
59
|
+
series.points.symbol = handlers[s];
|
60
|
+
}
|
61
|
+
|
62
|
+
function init(plot) {
|
63
|
+
plot.hooks.processDatapoints.push(processRawData);
|
64
|
+
}
|
65
|
+
|
66
|
+
$.plot.plugins.push({
|
67
|
+
init: init,
|
68
|
+
name: 'symbols',
|
69
|
+
version: '1.0'
|
70
|
+
});
|
71
|
+
})(jQuery);
|
@@ -0,0 +1,432 @@
|
|
1
|
+
/* Pretty handling of time axes.
|
2
|
+
|
3
|
+
Copyright (c) 2007-2014 IOLA and Ole Laursen.
|
4
|
+
Licensed under the MIT license.
|
5
|
+
|
6
|
+
Set axis.mode to "time" to enable. See the section "Time series data" in
|
7
|
+
API.txt for details.
|
8
|
+
|
9
|
+
*/
|
10
|
+
|
11
|
+
(function($) {
|
12
|
+
|
13
|
+
var options = {
|
14
|
+
xaxis: {
|
15
|
+
timezone: null, // "browser" for local to the client or timezone for timezone-js
|
16
|
+
timeformat: null, // format string to use
|
17
|
+
twelveHourClock: false, // 12 or 24 time in time mode
|
18
|
+
monthNames: null // list of names of months
|
19
|
+
}
|
20
|
+
};
|
21
|
+
|
22
|
+
// round to nearby lower multiple of base
|
23
|
+
|
24
|
+
function floorInBase(n, base) {
|
25
|
+
return base * Math.floor(n / base);
|
26
|
+
}
|
27
|
+
|
28
|
+
// Returns a string with the date d formatted according to fmt.
|
29
|
+
// A subset of the Open Group's strftime format is supported.
|
30
|
+
|
31
|
+
function formatDate(d, fmt, monthNames, dayNames) {
|
32
|
+
|
33
|
+
if (typeof d.strftime == "function") {
|
34
|
+
return d.strftime(fmt);
|
35
|
+
}
|
36
|
+
|
37
|
+
var leftPad = function(n, pad) {
|
38
|
+
n = "" + n;
|
39
|
+
pad = "" + (pad == null ? "0" : pad);
|
40
|
+
return n.length == 1 ? pad + n : n;
|
41
|
+
};
|
42
|
+
|
43
|
+
var r = [];
|
44
|
+
var escape = false;
|
45
|
+
var hours = d.getHours();
|
46
|
+
var isAM = hours < 12;
|
47
|
+
|
48
|
+
if (monthNames == null) {
|
49
|
+
monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
50
|
+
}
|
51
|
+
|
52
|
+
if (dayNames == null) {
|
53
|
+
dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
54
|
+
}
|
55
|
+
|
56
|
+
var hours12;
|
57
|
+
|
58
|
+
if (hours > 12) {
|
59
|
+
hours12 = hours - 12;
|
60
|
+
} else if (hours == 0) {
|
61
|
+
hours12 = 12;
|
62
|
+
} else {
|
63
|
+
hours12 = hours;
|
64
|
+
}
|
65
|
+
|
66
|
+
for (var i = 0; i < fmt.length; ++i) {
|
67
|
+
|
68
|
+
var c = fmt.charAt(i);
|
69
|
+
|
70
|
+
if (escape) {
|
71
|
+
switch (c) {
|
72
|
+
case 'a': c = "" + dayNames[d.getDay()]; break;
|
73
|
+
case 'b': c = "" + monthNames[d.getMonth()]; break;
|
74
|
+
case 'd': c = leftPad(d.getDate()); break;
|
75
|
+
case 'e': c = leftPad(d.getDate(), " "); break;
|
76
|
+
case 'h': // For back-compat with 0.7; remove in 1.0
|
77
|
+
case 'H': c = leftPad(hours); break;
|
78
|
+
case 'I': c = leftPad(hours12); break;
|
79
|
+
case 'l': c = leftPad(hours12, " "); break;
|
80
|
+
case 'm': c = leftPad(d.getMonth() + 1); break;
|
81
|
+
case 'M': c = leftPad(d.getMinutes()); break;
|
82
|
+
// quarters not in Open Group's strftime specification
|
83
|
+
case 'q':
|
84
|
+
c = "" + (Math.floor(d.getMonth() / 3) + 1); break;
|
85
|
+
case 'S': c = leftPad(d.getSeconds()); break;
|
86
|
+
case 'y': c = leftPad(d.getFullYear() % 100); break;
|
87
|
+
case 'Y': c = "" + d.getFullYear(); break;
|
88
|
+
case 'p': c = (isAM) ? ("" + "am") : ("" + "pm"); break;
|
89
|
+
case 'P': c = (isAM) ? ("" + "AM") : ("" + "PM"); break;
|
90
|
+
case 'w': c = "" + d.getDay(); break;
|
91
|
+
}
|
92
|
+
r.push(c);
|
93
|
+
escape = false;
|
94
|
+
} else {
|
95
|
+
if (c == "%") {
|
96
|
+
escape = true;
|
97
|
+
} else {
|
98
|
+
r.push(c);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
return r.join("");
|
104
|
+
}
|
105
|
+
|
106
|
+
// To have a consistent view of time-based data independent of which time
|
107
|
+
// zone the client happens to be in we need a date-like object independent
|
108
|
+
// of time zones. This is done through a wrapper that only calls the UTC
|
109
|
+
// versions of the accessor methods.
|
110
|
+
|
111
|
+
function makeUtcWrapper(d) {
|
112
|
+
|
113
|
+
function addProxyMethod(sourceObj, sourceMethod, targetObj, targetMethod) {
|
114
|
+
sourceObj[sourceMethod] = function() {
|
115
|
+
return targetObj[targetMethod].apply(targetObj, arguments);
|
116
|
+
};
|
117
|
+
};
|
118
|
+
|
119
|
+
var utc = {
|
120
|
+
date: d
|
121
|
+
};
|
122
|
+
|
123
|
+
// support strftime, if found
|
124
|
+
|
125
|
+
if (d.strftime != undefined) {
|
126
|
+
addProxyMethod(utc, "strftime", d, "strftime");
|
127
|
+
}
|
128
|
+
|
129
|
+
addProxyMethod(utc, "getTime", d, "getTime");
|
130
|
+
addProxyMethod(utc, "setTime", d, "setTime");
|
131
|
+
|
132
|
+
var props = ["Date", "Day", "FullYear", "Hours", "Milliseconds", "Minutes", "Month", "Seconds"];
|
133
|
+
|
134
|
+
for (var p = 0; p < props.length; p++) {
|
135
|
+
addProxyMethod(utc, "get" + props[p], d, "getUTC" + props[p]);
|
136
|
+
addProxyMethod(utc, "set" + props[p], d, "setUTC" + props[p]);
|
137
|
+
}
|
138
|
+
|
139
|
+
return utc;
|
140
|
+
};
|
141
|
+
|
142
|
+
// select time zone strategy. This returns a date-like object tied to the
|
143
|
+
// desired timezone
|
144
|
+
|
145
|
+
function dateGenerator(ts, opts) {
|
146
|
+
if (opts.timezone == "browser") {
|
147
|
+
return new Date(ts);
|
148
|
+
} else if (!opts.timezone || opts.timezone == "utc") {
|
149
|
+
return makeUtcWrapper(new Date(ts));
|
150
|
+
} else if (typeof timezoneJS != "undefined" && typeof timezoneJS.Date != "undefined") {
|
151
|
+
var d = new timezoneJS.Date();
|
152
|
+
// timezone-js is fickle, so be sure to set the time zone before
|
153
|
+
// setting the time.
|
154
|
+
d.setTimezone(opts.timezone);
|
155
|
+
d.setTime(ts);
|
156
|
+
return d;
|
157
|
+
} else {
|
158
|
+
return makeUtcWrapper(new Date(ts));
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
// map of app. size of time units in milliseconds
|
163
|
+
|
164
|
+
var timeUnitSize = {
|
165
|
+
"second": 1000,
|
166
|
+
"minute": 60 * 1000,
|
167
|
+
"hour": 60 * 60 * 1000,
|
168
|
+
"day": 24 * 60 * 60 * 1000,
|
169
|
+
"month": 30 * 24 * 60 * 60 * 1000,
|
170
|
+
"quarter": 3 * 30 * 24 * 60 * 60 * 1000,
|
171
|
+
"year": 365.2425 * 24 * 60 * 60 * 1000
|
172
|
+
};
|
173
|
+
|
174
|
+
// the allowed tick sizes, after 1 year we use
|
175
|
+
// an integer algorithm
|
176
|
+
|
177
|
+
var baseSpec = [
|
178
|
+
[1, "second"], [2, "second"], [5, "second"], [10, "second"],
|
179
|
+
[30, "second"],
|
180
|
+
[1, "minute"], [2, "minute"], [5, "minute"], [10, "minute"],
|
181
|
+
[30, "minute"],
|
182
|
+
[1, "hour"], [2, "hour"], [4, "hour"],
|
183
|
+
[8, "hour"], [12, "hour"],
|
184
|
+
[1, "day"], [2, "day"], [3, "day"],
|
185
|
+
[0.25, "month"], [0.5, "month"], [1, "month"],
|
186
|
+
[2, "month"]
|
187
|
+
];
|
188
|
+
|
189
|
+
// we don't know which variant(s) we'll need yet, but generating both is
|
190
|
+
// cheap
|
191
|
+
|
192
|
+
var specMonths = baseSpec.concat([[3, "month"], [6, "month"],
|
193
|
+
[1, "year"]]);
|
194
|
+
var specQuarters = baseSpec.concat([[1, "quarter"], [2, "quarter"],
|
195
|
+
[1, "year"]]);
|
196
|
+
|
197
|
+
function init(plot) {
|
198
|
+
plot.hooks.processOptions.push(function (plot, options) {
|
199
|
+
$.each(plot.getAxes(), function(axisName, axis) {
|
200
|
+
|
201
|
+
var opts = axis.options;
|
202
|
+
|
203
|
+
if (opts.mode == "time") {
|
204
|
+
axis.tickGenerator = function(axis) {
|
205
|
+
|
206
|
+
var ticks = [];
|
207
|
+
var d = dateGenerator(axis.min, opts);
|
208
|
+
var minSize = 0;
|
209
|
+
|
210
|
+
// make quarter use a possibility if quarters are
|
211
|
+
// mentioned in either of these options
|
212
|
+
|
213
|
+
var spec = (opts.tickSize && opts.tickSize[1] ===
|
214
|
+
"quarter") ||
|
215
|
+
(opts.minTickSize && opts.minTickSize[1] ===
|
216
|
+
"quarter") ? specQuarters : specMonths;
|
217
|
+
|
218
|
+
if (opts.minTickSize != null) {
|
219
|
+
if (typeof opts.tickSize == "number") {
|
220
|
+
minSize = opts.tickSize;
|
221
|
+
} else {
|
222
|
+
minSize = opts.minTickSize[0] * timeUnitSize[opts.minTickSize[1]];
|
223
|
+
}
|
224
|
+
}
|
225
|
+
|
226
|
+
for (var i = 0; i < spec.length - 1; ++i) {
|
227
|
+
if (axis.delta < (spec[i][0] * timeUnitSize[spec[i][1]]
|
228
|
+
+ spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2
|
229
|
+
&& spec[i][0] * timeUnitSize[spec[i][1]] >= minSize) {
|
230
|
+
break;
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
var size = spec[i][0];
|
235
|
+
var unit = spec[i][1];
|
236
|
+
|
237
|
+
// special-case the possibility of several years
|
238
|
+
|
239
|
+
if (unit == "year") {
|
240
|
+
|
241
|
+
// if given a minTickSize in years, just use it,
|
242
|
+
// ensuring that it's an integer
|
243
|
+
|
244
|
+
if (opts.minTickSize != null && opts.minTickSize[1] == "year") {
|
245
|
+
size = Math.floor(opts.minTickSize[0]);
|
246
|
+
} else {
|
247
|
+
|
248
|
+
var magn = Math.pow(10, Math.floor(Math.log(axis.delta / timeUnitSize.year) / Math.LN10));
|
249
|
+
var norm = (axis.delta / timeUnitSize.year) / magn;
|
250
|
+
|
251
|
+
if (norm < 1.5) {
|
252
|
+
size = 1;
|
253
|
+
} else if (norm < 3) {
|
254
|
+
size = 2;
|
255
|
+
} else if (norm < 7.5) {
|
256
|
+
size = 5;
|
257
|
+
} else {
|
258
|
+
size = 10;
|
259
|
+
}
|
260
|
+
|
261
|
+
size *= magn;
|
262
|
+
}
|
263
|
+
|
264
|
+
// minimum size for years is 1
|
265
|
+
|
266
|
+
if (size < 1) {
|
267
|
+
size = 1;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
|
271
|
+
axis.tickSize = opts.tickSize || [size, unit];
|
272
|
+
var tickSize = axis.tickSize[0];
|
273
|
+
unit = axis.tickSize[1];
|
274
|
+
|
275
|
+
var step = tickSize * timeUnitSize[unit];
|
276
|
+
|
277
|
+
if (unit == "second") {
|
278
|
+
d.setSeconds(floorInBase(d.getSeconds(), tickSize));
|
279
|
+
} else if (unit == "minute") {
|
280
|
+
d.setMinutes(floorInBase(d.getMinutes(), tickSize));
|
281
|
+
} else if (unit == "hour") {
|
282
|
+
d.setHours(floorInBase(d.getHours(), tickSize));
|
283
|
+
} else if (unit == "month") {
|
284
|
+
d.setMonth(floorInBase(d.getMonth(), tickSize));
|
285
|
+
} else if (unit == "quarter") {
|
286
|
+
d.setMonth(3 * floorInBase(d.getMonth() / 3,
|
287
|
+
tickSize));
|
288
|
+
} else if (unit == "year") {
|
289
|
+
d.setFullYear(floorInBase(d.getFullYear(), tickSize));
|
290
|
+
}
|
291
|
+
|
292
|
+
// reset smaller components
|
293
|
+
|
294
|
+
d.setMilliseconds(0);
|
295
|
+
|
296
|
+
if (step >= timeUnitSize.minute) {
|
297
|
+
d.setSeconds(0);
|
298
|
+
}
|
299
|
+
if (step >= timeUnitSize.hour) {
|
300
|
+
d.setMinutes(0);
|
301
|
+
}
|
302
|
+
if (step >= timeUnitSize.day) {
|
303
|
+
d.setHours(0);
|
304
|
+
}
|
305
|
+
if (step >= timeUnitSize.day * 4) {
|
306
|
+
d.setDate(1);
|
307
|
+
}
|
308
|
+
if (step >= timeUnitSize.month * 2) {
|
309
|
+
d.setMonth(floorInBase(d.getMonth(), 3));
|
310
|
+
}
|
311
|
+
if (step >= timeUnitSize.quarter * 2) {
|
312
|
+
d.setMonth(floorInBase(d.getMonth(), 6));
|
313
|
+
}
|
314
|
+
if (step >= timeUnitSize.year) {
|
315
|
+
d.setMonth(0);
|
316
|
+
}
|
317
|
+
|
318
|
+
var carry = 0;
|
319
|
+
var v = Number.NaN;
|
320
|
+
var prev;
|
321
|
+
|
322
|
+
do {
|
323
|
+
|
324
|
+
prev = v;
|
325
|
+
v = d.getTime();
|
326
|
+
ticks.push(v);
|
327
|
+
|
328
|
+
if (unit == "month" || unit == "quarter") {
|
329
|
+
if (tickSize < 1) {
|
330
|
+
|
331
|
+
// a bit complicated - we'll divide the
|
332
|
+
// month/quarter up but we need to take
|
333
|
+
// care of fractions so we don't end up in
|
334
|
+
// the middle of a day
|
335
|
+
|
336
|
+
d.setDate(1);
|
337
|
+
var start = d.getTime();
|
338
|
+
d.setMonth(d.getMonth() +
|
339
|
+
(unit == "quarter" ? 3 : 1));
|
340
|
+
var end = d.getTime();
|
341
|
+
d.setTime(v + carry * timeUnitSize.hour + (end - start) * tickSize);
|
342
|
+
carry = d.getHours();
|
343
|
+
d.setHours(0);
|
344
|
+
} else {
|
345
|
+
d.setMonth(d.getMonth() +
|
346
|
+
tickSize * (unit == "quarter" ? 3 : 1));
|
347
|
+
}
|
348
|
+
} else if (unit == "year") {
|
349
|
+
d.setFullYear(d.getFullYear() + tickSize);
|
350
|
+
} else {
|
351
|
+
d.setTime(v + step);
|
352
|
+
}
|
353
|
+
} while (v < axis.max && v != prev);
|
354
|
+
|
355
|
+
return ticks;
|
356
|
+
};
|
357
|
+
|
358
|
+
axis.tickFormatter = function (v, axis) {
|
359
|
+
|
360
|
+
var d = dateGenerator(v, axis.options);
|
361
|
+
|
362
|
+
// first check global format
|
363
|
+
|
364
|
+
if (opts.timeformat != null) {
|
365
|
+
return formatDate(d, opts.timeformat, opts.monthNames, opts.dayNames);
|
366
|
+
}
|
367
|
+
|
368
|
+
// possibly use quarters if quarters are mentioned in
|
369
|
+
// any of these places
|
370
|
+
|
371
|
+
var useQuarters = (axis.options.tickSize &&
|
372
|
+
axis.options.tickSize[1] == "quarter") ||
|
373
|
+
(axis.options.minTickSize &&
|
374
|
+
axis.options.minTickSize[1] == "quarter");
|
375
|
+
|
376
|
+
var t = axis.tickSize[0] * timeUnitSize[axis.tickSize[1]];
|
377
|
+
var span = axis.max - axis.min;
|
378
|
+
var suffix = (opts.twelveHourClock) ? " %p" : "";
|
379
|
+
var hourCode = (opts.twelveHourClock) ? "%I" : "%H";
|
380
|
+
var fmt;
|
381
|
+
|
382
|
+
if (t < timeUnitSize.minute) {
|
383
|
+
fmt = hourCode + ":%M:%S" + suffix;
|
384
|
+
} else if (t < timeUnitSize.day) {
|
385
|
+
if (span < 2 * timeUnitSize.day) {
|
386
|
+
fmt = hourCode + ":%M" + suffix;
|
387
|
+
} else {
|
388
|
+
fmt = "%b %d " + hourCode + ":%M" + suffix;
|
389
|
+
}
|
390
|
+
} else if (t < timeUnitSize.month) {
|
391
|
+
fmt = "%b %d";
|
392
|
+
} else if ((useQuarters && t < timeUnitSize.quarter) ||
|
393
|
+
(!useQuarters && t < timeUnitSize.year)) {
|
394
|
+
if (span < timeUnitSize.year) {
|
395
|
+
fmt = "%b";
|
396
|
+
} else {
|
397
|
+
fmt = "%b %Y";
|
398
|
+
}
|
399
|
+
} else if (useQuarters && t < timeUnitSize.year) {
|
400
|
+
if (span < timeUnitSize.year) {
|
401
|
+
fmt = "Q%q";
|
402
|
+
} else {
|
403
|
+
fmt = "Q%q %Y";
|
404
|
+
}
|
405
|
+
} else {
|
406
|
+
fmt = "%Y";
|
407
|
+
}
|
408
|
+
|
409
|
+
var rt = formatDate(d, fmt, opts.monthNames, opts.dayNames);
|
410
|
+
|
411
|
+
return rt;
|
412
|
+
};
|
413
|
+
}
|
414
|
+
});
|
415
|
+
});
|
416
|
+
}
|
417
|
+
|
418
|
+
$.plot.plugins.push({
|
419
|
+
init: init,
|
420
|
+
options: options,
|
421
|
+
name: 'time',
|
422
|
+
version: '1.0'
|
423
|
+
});
|
424
|
+
|
425
|
+
// Time-axis support used to be in Flot core, which exposed the
|
426
|
+
// formatDate function on the plot object. Various plugins depend
|
427
|
+
// on the function, so we need to re-expose it here.
|
428
|
+
|
429
|
+
$.plot.formatDate = formatDate;
|
430
|
+
$.plot.dateGenerator = dateGenerator;
|
431
|
+
|
432
|
+
})(jQuery);
|