heart 0.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +21 -0
- data/README.rdoc +3 -0
- data/Rakefile +40 -0
- data/app/assets/images/heart/add.png +0 -0
- data/app/assets/images/heart/bluestar.png +0 -0
- data/app/assets/images/heart/bricks.png +0 -0
- data/app/assets/images/heart/bricks_off.png +0 -0
- data/app/assets/images/heart/chart_bar.png +0 -0
- data/app/assets/images/heart/chart_bar_off.png +0 -0
- data/app/assets/images/heart/chart_curve.png +0 -0
- data/app/assets/images/heart/chart_curve_off.png +0 -0
- data/app/assets/images/heart/chart_line.png +0 -0
- data/app/assets/images/heart/chart_line_off.png +0 -0
- data/app/assets/images/heart/chart_pie.png +0 -0
- data/app/assets/images/heart/chart_pie_off.png +0 -0
- data/app/assets/images/heart/collapse.png +0 -0
- data/app/assets/images/heart/dashboard.png +0 -0
- data/app/assets/images/heart/delete.png +0 -0
- data/app/assets/images/heart/disk.png +0 -0
- data/app/assets/images/heart/expand.png +0 -0
- data/app/assets/images/heart/jp.png +0 -0
- data/app/assets/images/heart/page_white_excel.png +0 -0
- data/app/assets/images/heart/paintcan.png +0 -0
- data/app/assets/images/heart/paintcan_off.png +0 -0
- data/app/assets/images/heart/pencil.png +0 -0
- data/app/assets/images/heart/picture.png +0 -0
- data/app/assets/images/heart/table.png +0 -0
- data/app/assets/images/heart/tag.png +0 -0
- data/app/assets/images/heart/tooltip/columnBg.png +0 -0
- data/app/assets/images/heart/tooltip/columnTop.gif +0 -0
- data/app/assets/images/heart/tooltip/tipBtm.png +0 -0
- data/app/assets/images/heart/tooltip/tipBtm280.png +0 -0
- data/app/assets/images/heart/tooltip/tipBtm280b.png +0 -0
- data/app/assets/images/heart/tooltip/tipMid.png +0 -0
- data/app/assets/images/heart/tooltip/tipMid280.png +0 -0
- data/app/assets/images/heart/tooltip/tipMid280b.png +0 -0
- data/app/assets/images/heart/tooltip/tipMid280g.png +0 -0
- data/app/assets/images/heart/tooltip/tipMid280w.png +0 -0
- data/app/assets/images/heart/tooltip/tipTop.png +0 -0
- data/app/assets/images/heart/tooltip/tipTop280.png +0 -0
- data/app/assets/images/heart/tooltip/tipTop280b.png +0 -0
- data/app/assets/images/heart/us.png +0 -0
- data/app/assets/images/heart/zoom.png +0 -0
- data/app/assets/images/heart/zoom_off.png +0 -0
- data/app/assets/javascripts/heart/application.js +201 -0
- data/app/assets/javascripts/heart/flot/jquery.colorhelpers.min.js +1 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.annotate.js +136 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.crosshair.min.js +1 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.fillbetween.js +183 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.growing.js +140 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.js +2651 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.navigate.js +336 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.pie.js +751 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.resize.js +60 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.selection.min.js +1 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.stack.min.js +1 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.symbols.js +85 -0
- data/app/assets/javascripts/heart/flot/jquery.flot.threshold.min.js +1 -0
- data/app/assets/javascripts/heart/heart.js +664 -0
- data/app/assets/javascripts/heart/jquery-1-5-2.js +16 -0
- data/app/assets/javascripts/heart/jquery-ui-1.8.7.custom.min.js +781 -0
- data/app/assets/javascripts/heart/jquery.betterTooltip.js +108 -0
- data/app/assets/javascripts/heart/json2.js +480 -0
- data/app/assets/stylesheets/heart/application.css +13 -0
- data/app/assets/stylesheets/heart/bluetrip/css/ie.css +29 -0
- data/app/assets/stylesheets/heart/bluetrip/css/print.css +46 -0
- data/app/assets/stylesheets/heart/bluetrip/css/screen.css +321 -0
- data/app/assets/stylesheets/heart/bluetrip/images/grid.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/grid.psd +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/cross.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/doc.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/email.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/external.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/feed.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/im.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/information.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/key.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/pdf.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/tick.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/visited.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/icons/xls.png +0 -0
- data/app/assets/stylesheets/heart/bluetrip/images/test-small.jpg +0 -0
- data/app/assets/stylesheets/heart/buttons.css +821 -0
- data/app/assets/stylesheets/heart/heart.css.erb +480 -0
- data/app/assets/stylesheets/heart/start/images/ui-bg_flat_55_999999_40x100.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-bg_glass_45_0078ae_1x400.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-bg_glass_55_f8da4e_1x400.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-bg_glass_75_79c9ec_1x400.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-bg_gloss-wave_45_e14f1c_500x100.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-bg_gloss-wave_50_6eac2c_500x100.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-bg_gloss-wave_75_2191c0_500x100.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-icons_0078ae_256x240.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-icons_056b93_256x240.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-icons_e0fdff_256x240.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-icons_f5e175_256x240.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-icons_f7a50d_256x240.png +0 -0
- data/app/assets/stylesheets/heart/start/images/ui-icons_fcd113_256x240.png +0 -0
- data/app/assets/stylesheets/heart/start/jquery-ui-1.8.7.custom.css +572 -0
- data/app/controllers/heart/annotations_controller.rb +22 -0
- data/app/controllers/heart/application_controller.rb +21 -0
- data/app/controllers/heart/dashboards_controller.rb +85 -0
- data/app/controllers/heart/images_controller.rb +19 -0
- data/app/controllers/heart/metrics_controller.rb +35 -0
- data/app/helpers/heart/application_helper.rb +13 -0
- data/app/helpers/heart/dashboards_helper.rb +106 -0
- data/app/models/heart/annotation.rb +19 -0
- data/app/models/heart/application.rb +5 -0
- data/app/models/heart/dashboard.rb +6 -0
- data/app/models/heart/image.rb +5 -0
- data/app/models/heart/isometric.rb +8 -0
- data/app/models/heart/metric.rb +138 -0
- data/app/views/heart/annotations/create.js.haml +1 -0
- data/app/views/heart/annotations/description.js.haml +2 -0
- data/app/views/heart/dashboards/_annotation.haml +13 -0
- data/app/views/heart/dashboards/_dashblock.haml +17 -0
- data/app/views/heart/dashboards/_dashboard_form.html.haml +89 -0
- data/app/views/heart/dashboards/_graph_options.html.haml +24 -0
- data/app/views/heart/dashboards/_heart_form.html.haml +100 -0
- data/app/views/heart/dashboards/default.html.haml +32 -0
- data/app/views/heart/dashboards/edit.html.haml +14 -0
- data/app/views/heart/dashboards/flotit.js.haml +6 -0
- data/app/views/heart/dashboards/index.html.haml +19 -0
- data/app/views/heart/dashboards/new.html.haml +3 -0
- data/app/views/heart/dashboards/show.html.haml +65 -0
- data/app/views/heart/metrics/cache.html.haml +3 -0
- data/app/views/heart/metrics/fetch.html.haml +2 -0
- data/app/views/heart/metrics/index.html.haml +12 -0
- data/app/views/heart/metrics/show.html.haml +25 -0
- data/app/views/layouts/heart_engine.html.haml +88 -0
- data/config/cucumber.yml +8 -0
- data/config/locales/en.yml +63 -0
- data/config/locales/ja.yml +63 -0
- data/config/routes.rb +25 -0
- data/db/migrate/20130902050854_create_heart_metrics.rb +16 -0
- data/db/migrate/20130902051427_create_heart_isometrics.rb +9 -0
- data/db/migrate/20130902080256_create_heart_dashboards.rb +13 -0
- data/db/migrate/20130902080823_create_heart_annotations.rb +10 -0
- data/db/migrate/20130902081206_create_heart_images.rb +11 -0
- data/lib/heart/engine.rb +22 -0
- data/lib/heart/version.rb +3 -0
- data/lib/heart.rb +4 -0
- data/lib/tasks/cucumber.rake +65 -0
- data/lib/tasks/heart_tasks.rake +85 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +21 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130902083555_create_heart_metrics.heart.rb +17 -0
- data/test/dummy/db/migrate/20130902083556_create_heart_isometrics.heart.rb +10 -0
- data/test/dummy/db/migrate/20130902083557_create_heart_dashboards.heart.rb +14 -0
- data/test/dummy/db/migrate/20130902083558_create_heart_annotations.heart.rb +11 -0
- data/test/dummy/db/migrate/20130902083559_create_heart_images.heart.rb +12 -0
- data/test/dummy/db/migrate/20130902083560_create_heart_configurations.heart.rb +12 -0
- data/test/dummy/db/migrate/20130902084029_add_posts_new_to_metrics.rb +10 -0
- data/test/dummy/db/schema.rb +76 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/features/dashboards/overview.feature +39 -0
- data/test/dummy/features/language_switching.feature +12 -0
- data/test/dummy/features/link_to_this.feature +6 -0
- data/test/dummy/features/metrics/exporting.feature +13 -0
- data/test/dummy/features/metrics/fetching.feature +0 -0
- data/test/dummy/features/metrics/graphing.feature +13 -0
- data/test/dummy/features/metrics/summing.feature +0 -0
- data/test/dummy/features/step_definitions/dashboard_steps.rb +76 -0
- data/test/dummy/features/step_definitions/exporting_steps.rb +24 -0
- data/test/dummy/features/step_definitions/generic_steps.rb.example +101 -0
- data/test/dummy/features/step_definitions/graphing_steps.rb +37 -0
- data/test/dummy/features/step_definitions/language_switching_steps.rb +26 -0
- data/test/dummy/features/step_definitions/link_to_steps.rb +12 -0
- data/test/dummy/features/support/env.rb +64 -0
- data/test/dummy/features/support/factories.rb +16 -0
- data/test/dummy/features/support/hooks.rb +3 -0
- data/test/dummy/features/support/world_extensions.rb +1 -0
- data/test/dummy/log/development.log +549 -0
- data/test/dummy/log/test.log +19866 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/tmp/cache/assets/B7A/D60/sprockets%2F12305388866122331aea456101382236 +0 -0
- data/test/dummy/tmp/cache/assets/BE3/050/sprockets%2F0421426926cdd29806245aa078142462 +0 -0
- data/test/dummy/tmp/cache/assets/C3E/2A0/sprockets%2Fe37f35746618667d995a3587734e1f14 +0 -0
- data/test/dummy/tmp/cache/assets/C4F/0C0/sprockets%2Fb0695bc459d01217161ae9028368b856 +0 -0
- data/test/dummy/tmp/cache/assets/C57/200/sprockets%2F2e442476c863f14144881e259b1b597a +0 -0
- data/test/dummy/tmp/cache/assets/C61/A80/sprockets%2F7f20dd76170d803754a3085694f669e6 +0 -0
- data/test/dummy/tmp/cache/assets/C6B/710/sprockets%2F61a084f53ca308b115c54491f5b38120 +0 -0
- data/test/dummy/tmp/cache/assets/C76/680/sprockets%2Fb72c325230e403c89a229efd94013438 +0 -0
- data/test/dummy/tmp/cache/assets/C7D/AD0/sprockets%2Fa702e8b86f4697101583ea24307b7a53 +0 -0
- data/test/dummy/tmp/cache/assets/C81/4B0/sprockets%2F115a9d464b8720982880ad4926aaf505 +0 -0
- data/test/dummy/tmp/cache/assets/C83/670/sprockets%2F125f9496da25b06ace8951e752253273 +0 -0
- data/test/dummy/tmp/cache/assets/C86/DC0/sprockets%2F26269d2349fba3c41619fe3e88363044 +0 -0
- data/test/dummy/tmp/cache/assets/CA6/170/sprockets%2F6e0bb6a54c8f40c3419b183772c73331 +0 -0
- data/test/dummy/tmp/cache/assets/CAF/B10/sprockets%2F68ee8201881a1c1d3d987490e5015ed0 +0 -0
- data/test/dummy/tmp/cache/assets/CB6/080/sprockets%2F735f5d59ce0703357780bf4a574490ca +0 -0
- data/test/dummy/tmp/cache/assets/CB6/490/sprockets%2Fc4b6a866f5d3627d2a186e2095e60717 +0 -0
- data/test/dummy/tmp/cache/assets/CB9/9E0/sprockets%2F7a20a269f11f7331c8a56908c68f18d9 +0 -0
- data/test/dummy/tmp/cache/assets/CBB/950/sprockets%2F575827e14ba8d9920284eae267874ca1 +0 -0
- data/test/dummy/tmp/cache/assets/CBE/3A0/sprockets%2F73bdae55823e56e6f3796265941b36d1 +0 -0
- data/test/dummy/tmp/cache/assets/CC2/A70/sprockets%2F99163775fcea80cf5530f8808188e40b +0 -0
- data/test/dummy/tmp/cache/assets/CCB/970/sprockets%2F472690f680dd7d91690ebf603f7685e8 +0 -0
- data/test/dummy/tmp/cache/assets/CCB/CA0/sprockets%2F9b705933be3255cfd4938a9c99146e69 +0 -0
- data/test/dummy/tmp/cache/assets/CCF/FE0/sprockets%2Fea0015147c89d0181ba9460464bbf08c +0 -0
- data/test/dummy/tmp/cache/assets/CD1/1C0/sprockets%2F675a331d19ae21eaa532b27aa7606955 +0 -0
- data/test/dummy/tmp/cache/assets/CD1/320/sprockets%2Fb09e869800e3e0a0d7805d4c1c7113d1 +0 -0
- data/test/dummy/tmp/cache/assets/CD5/1C0/sprockets%2F9a8012934e9d2f70a66c43310e3e44ab +0 -0
- data/test/dummy/tmp/cache/assets/CD7/270/sprockets%2F3bc51cb676bca1416770598d28109fa0 +0 -0
- data/test/dummy/tmp/cache/assets/CE0/E50/sprockets%2F9814922a41a67b828e462b31accb38f8 +0 -0
- data/test/dummy/tmp/cache/assets/CE3/A70/sprockets%2F87a37405e84d5a30dd672cf6148ec119 +0 -0
- data/test/dummy/tmp/cache/assets/CE4/050/sprockets%2F21d0ae6e0a782753af4ed2492e959671 +0 -0
- data/test/dummy/tmp/cache/assets/CE4/D80/sprockets%2Fa98448b0f9e10bf393a552d26664d7a3 +0 -0
- data/test/dummy/tmp/cache/assets/CE7/F80/sprockets%2F7715072387d4d8e6193c2ffda13a375f +0 -0
- data/test/dummy/tmp/cache/assets/CE8/890/sprockets%2F394187006c387afef0429558db43bf4e +0 -0
- data/test/dummy/tmp/cache/assets/CE8/CE0/sprockets%2F5c698abb053124d9a5421666bf75c8f8 +0 -0
- data/test/dummy/tmp/cache/assets/CF1/7B0/sprockets%2Fa447299b5fa19244e6a281825f9e77dc +0 -0
- data/test/dummy/tmp/cache/assets/CF1/CD0/sprockets%2Fd06db0e7d91462ed5ea64694583797e2 +0 -0
- data/test/dummy/tmp/cache/assets/CF2/070/sprockets%2Fca7b20d93194b5827d9d57837578b6db +0 -0
- data/test/dummy/tmp/cache/assets/CF2/C20/sprockets%2F7b5779909f4f5440c9d0874af23d63db +0 -0
- data/test/dummy/tmp/cache/assets/CF4/B20/sprockets%2F604291e761acf24ffb2998f369b176e8 +0 -0
- data/test/dummy/tmp/cache/assets/CF6/220/sprockets%2F06bd95eb7a76f96eb2d8c54782607745 +0 -0
- data/test/dummy/tmp/cache/assets/CFD/E70/sprockets%2F6cb7d8f69c8c4e1f246868d46f017639 +0 -0
- data/test/dummy/tmp/cache/assets/D00/5C0/sprockets%2F9abbd043d031592a556306748dbaeb26 +0 -0
- data/test/dummy/tmp/cache/assets/D02/000/sprockets%2F842565584accd26c5572aa1d15b3bb35 +0 -0
- data/test/dummy/tmp/cache/assets/D02/7C0/sprockets%2Fa4900a35834e0ab16a2ae17b6887a66d +0 -0
- data/test/dummy/tmp/cache/assets/D04/920/sprockets%2F5830c0ccdb2a54d7848283d21f44e2a4 +0 -0
- data/test/dummy/tmp/cache/assets/D05/FC0/sprockets%2Fd06631201fe7c8760eea1e3ffd351191 +0 -0
- data/test/dummy/tmp/cache/assets/D06/8C0/sprockets%2Faae533655b6c51d0b999ce29015c4c03 +0 -0
- data/test/dummy/tmp/cache/assets/D0B/350/sprockets%2F58255cc783163fa49e6caa32e01af293 +0 -0
- data/test/dummy/tmp/cache/assets/D0E/560/sprockets%2Ffb853b302b8b8338911fd212f3e9d65a +0 -0
- data/test/dummy/tmp/cache/assets/D0F/340/sprockets%2F81d96cf056d0ab1856c588f181b21fe0 +0 -0
- data/test/dummy/tmp/cache/assets/D18/460/sprockets%2Fb0145de92306b4c1bedc53aa0030e522 +0 -0
- data/test/dummy/tmp/cache/assets/D19/710/sprockets%2F90db64737e5b2ef37757b1cc2e52909d +0 -0
- data/test/dummy/tmp/cache/assets/D1C/270/sprockets%2F1475adbe1d4ec03f947d379865d477b3 +0 -0
- data/test/dummy/tmp/cache/assets/D27/770/sprockets%2Fa10a1cef30d33ecec13933b36280c548 +0 -0
- data/test/dummy/tmp/cache/assets/D27/7B0/sprockets%2F6401357b67027ace91aae0cbcf5e4021 +0 -0
- data/test/dummy/tmp/cache/assets/D2B/700/sprockets%2Fe90d34a411e79a9d1b510ae04c80e04e +0 -0
- data/test/dummy/tmp/cache/assets/D34/100/sprockets%2F504aeb3e34faa21a7c9fa726264934d3 +0 -0
- data/test/dummy/tmp/cache/assets/D35/560/sprockets%2Fa79fc4b2a2293acaa002547e93d9704e +0 -0
- data/test/dummy/tmp/cache/assets/D35/F80/sprockets%2Ffb91b5a46525f11e9f6658a0daa005d4 +0 -0
- data/test/dummy/tmp/cache/assets/D38/A70/sprockets%2F56d65a0db0739f5f1a215bde93528f0a +0 -0
- data/test/dummy/tmp/cache/assets/D3A/A50/sprockets%2F1edbcb279564b5c4a85c13aa6940b279 +0 -0
- data/test/dummy/tmp/cache/assets/D3B/A10/sprockets%2F2cecd599ad2374ea47112715ae70ea49 +0 -0
- data/test/dummy/tmp/cache/assets/D3B/CF0/sprockets%2F4cac58b5d3abf581ca5857583017d3e1 +0 -0
- data/test/dummy/tmp/cache/assets/D3B/EF0/sprockets%2F996d2466d00c1bacc4351f87e2d5e62a +0 -0
- data/test/dummy/tmp/cache/assets/D3E/410/sprockets%2F4d2270e9821b7d9658df04c4adbdf214 +0 -0
- data/test/dummy/tmp/cache/assets/D43/FC0/sprockets%2F7f972ba9de00917d116bfc1c7126e8d6 +0 -0
- data/test/dummy/tmp/cache/assets/D4A/E50/sprockets%2Fa876a03aed98118f76cac6e916ff5423 +0 -0
- data/test/dummy/tmp/cache/assets/D4B/310/sprockets%2F3402fd809cbee959fdb8db9950a37342 +0 -0
- data/test/dummy/tmp/cache/assets/D4C/E60/sprockets%2Fcd389726cc723176e5547ac75cc3fbc8 +0 -0
- data/test/dummy/tmp/cache/assets/D52/590/sprockets%2Fae4195e4fc883e26b828d9c7b525ff42 +0 -0
- data/test/dummy/tmp/cache/assets/D52/730/sprockets%2Fd92d03a100128cafe40eb231c3c77ba9 +0 -0
- data/test/dummy/tmp/cache/assets/D53/4E0/sprockets%2F6b5c3667b962d3740c9de6a5b9bfc948 +0 -0
- data/test/dummy/tmp/cache/assets/D59/B40/sprockets%2F29c73ae2b2a2dcf81b5210703eeed252 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/5F0/sprockets%2Fa03a93be0c8545371de91a5cab10fe52 +0 -0
- data/test/dummy/tmp/cache/assets/D5D/820/sprockets%2F60c2f35af5ce8dc4ab2a724043fd0373 +0 -0
- data/test/dummy/tmp/cache/assets/D5D/C10/sprockets%2Fa56376015a3d663ddeb1c90e3faa901b +0 -0
- data/test/dummy/tmp/cache/assets/D5E/030/sprockets%2Fb709d4ed36a3b17b21a42a66ae0098fb +0 -0
- data/test/dummy/tmp/cache/assets/D5F/6D0/sprockets%2Ff1f0426663c9048eceaa032dc3f05b5c +0 -0
- data/test/dummy/tmp/cache/assets/D64/540/sprockets%2F8b24e4230a33d44ed39d3d4ca015f7ff +0 -0
- data/test/dummy/tmp/cache/assets/D66/7D0/sprockets%2F6d2be390800b01686b6aeb7bba686c7b +0 -0
- data/test/dummy/tmp/cache/assets/D68/7F0/sprockets%2F35b0c94f2372250feee3c76a8bad07d4 +0 -0
- data/test/dummy/tmp/cache/assets/D69/F50/sprockets%2F0fe620b4cef107c5b770d70c5bbe6839 +0 -0
- data/test/dummy/tmp/cache/assets/D6A/630/sprockets%2F0e159a9bce743e35c180d0eceac52487 +0 -0
- data/test/dummy/tmp/cache/assets/D6F/120/sprockets%2F09730b5eed71a1971eb1ed85f0cd8c28 +0 -0
- data/test/dummy/tmp/cache/assets/D73/5A0/sprockets%2F726af59d1d3774cebabf5011f2a9955f +0 -0
- data/test/dummy/tmp/cache/assets/D76/410/sprockets%2F3ba75e6fe03df5d227c7e7a54be98720 +0 -0
- data/test/dummy/tmp/cache/assets/D76/750/sprockets%2F4422ff4ebec16419ef79a9a9d3f530f0 +0 -0
- data/test/dummy/tmp/cache/assets/D78/460/sprockets%2Ff8b234b2bfb694b85d927c693aba7d54 +0 -0
- data/test/dummy/tmp/cache/assets/D79/4F0/sprockets%2F0323ebeae0a56602aa023c9bb268b3ab +0 -0
- data/test/dummy/tmp/cache/assets/D7B/AF0/sprockets%2Fe1e0818c824997cffe5e04f2bff31e26 +0 -0
- data/test/dummy/tmp/cache/assets/D94/590/sprockets%2F95f6b48a4415cb3ab8acc4e0da36750d +0 -0
- data/test/dummy/tmp/cache/assets/D99/890/sprockets%2F783e81abd4c0cf96b0642acde9b7202f +0 -0
- data/test/dummy/tmp/cache/assets/D9A/FB0/sprockets%2F4bd1e3c2f82a72a0d6f8935ed92aeb60 +0 -0
- data/test/dummy/tmp/cache/assets/D9E/A00/sprockets%2Fdb6bd6ed1be390eb760409309a6d79ad +0 -0
- data/test/dummy/tmp/cache/assets/D9F/6D0/sprockets%2F6da6b2d77e0c546c69a3bb1720f9b9cd +0 -0
- data/test/dummy/tmp/cache/assets/DA1/050/sprockets%2F082944b24f4e6533ce0ce9fa64fadf5b +0 -0
- data/test/dummy/tmp/cache/assets/DA5/3B0/sprockets%2Fc5e9c4c0d3563ae2b49bf7cd67f458b1 +0 -0
- data/test/dummy/tmp/cache/assets/DAA/300/sprockets%2Ff4ebcefbb66ce3f58d70987c6123523e +0 -0
- data/test/dummy/tmp/cache/assets/DB1/C10/sprockets%2Fddabb257ba3637433fc7729f79fe6c9e +0 -0
- data/test/dummy/tmp/cache/assets/DB1/C90/sprockets%2Fdf909d50d7a568a1bc9dd9e47baf4973 +0 -0
- data/test/dummy/tmp/cache/assets/DB9/800/sprockets%2Fbd0a2a66976fd5ef12be3ac3e22d100e +0 -0
- data/test/dummy/tmp/cache/assets/DC2/1D0/sprockets%2F548c5a2d07c2b3db2eea9a24e2e25c9c +0 -0
- data/test/dummy/tmp/cache/assets/DC3/C30/sprockets%2F45d3db961ffaa14a7acb04d139f3ae93 +0 -0
- data/test/dummy/tmp/cache/assets/DC8/180/sprockets%2F44add687b1c02f2afd55b3dc9d58a04f +0 -0
- data/test/dummy/tmp/cache/assets/DCB/0A0/sprockets%2Ffec15e165ae6e45fe4d36b903fccf103 +0 -0
- data/test/dummy/tmp/cache/assets/DCC/6C0/sprockets%2F1dd6adb3594e3cf84ce35ea45114ead9 +0 -0
- data/test/dummy/tmp/cache/assets/DCD/350/sprockets%2F0a1ad87bab5ab47f377d5f87736acdd2 +0 -0
- data/test/dummy/tmp/cache/assets/DCD/ED0/sprockets%2Fe3e1abc488563aa8c2d44c9b8b5b2f6c +0 -0
- data/test/dummy/tmp/cache/assets/DD1/620/sprockets%2F3c34c92afb93cab6ab8f1640683ee8fd +0 -0
- data/test/dummy/tmp/cache/assets/DD2/2B0/sprockets%2Fcb959dcb42fe971fef3b07705a4de60b +0 -0
- data/test/dummy/tmp/cache/assets/DD4/DB0/sprockets%2Fd16e7fa5788cebf2c0335cfb5a94d5b5 +0 -0
- data/test/dummy/tmp/cache/assets/DDA/140/sprockets%2F9dab37c1f47e99ba86bf306fbed67c23 +0 -0
- data/test/dummy/tmp/cache/assets/DF0/C50/sprockets%2Fc3dee69afa21d4462d0fda717c2f5a1b +0 -0
- data/test/dummy/tmp/cache/assets/DF3/CE0/sprockets%2Fd413b4fcbf2a3afe3a2f96fb3b22349f +0 -0
- data/test/dummy/tmp/cache/assets/DF5/020/sprockets%2Ffdbfbdaa7be9bc2fa2824455b9f36200 +0 -0
- data/test/dummy/tmp/cache/assets/DFB/120/sprockets%2F56abeace37f20e8ed908bb19c26c73ca +0 -0
- data/test/dummy/tmp/cache/assets/DFE/9D0/sprockets%2Fdfd5d12ea923dd88dd2fb5c56c2a6a73 +0 -0
- data/test/dummy/tmp/cache/assets/E04/670/sprockets%2Fe9e9c736dab1268ea76aed2ba1cf51f9 +0 -0
- data/test/dummy/tmp/cache/assets/E11/620/sprockets%2Fb79efcee1bf9f7559d26cc36bcbd6481 +0 -0
- data/test/dummy/tmp/cache/assets/E15/B10/sprockets%2F8fded28e5dfea96f7f42212ee4de8d82 +0 -0
- data/test/dummy/tmp/cache/assets/E1E/A70/sprockets%2F4a6f52c1cf40efaf040aabe5eca74c86 +0 -0
- data/test/dummy/tmp/cache/assets/E2F/B60/sprockets%2F9e9f03eab43fa8aeeb4aa97f1dff2171 +0 -0
- data/test/dummy/tmp/cache/assets/E3E/D60/sprockets%2F51bfcacbab0f9acbbcd331e31e095c40 +0 -0
- data/test/dummy/tmp/cache/assets/E4E/FE0/sprockets%2Fee2cecebeb842cdbbcfc530d13d50546 +0 -0
- data/test/dummy/tmp/cache/assets/E50/170/sprockets%2Faa1cd6441f82b0f9bfa1baffe5ce3c81 +0 -0
- data/test/dummy/tmp/cache/assets/E54/7B0/sprockets%2F7eba769afbacdcd2b019e3ae52fdb093 +0 -0
- data/test/dummy/tmp/cache/assets/E6C/5E0/sprockets%2F48dce5eee43c4ec8f9daa25a7fb847be +0 -0
- data/test/dummy/tmp/cache/assets/E86/5D0/sprockets%2Fec1c00efc9e5ebfa6c0576eb1ddfd60d +0 -0
- data/test/dummy/tmp/cache/assets/E8A/510/sprockets%2F4dcf2d4f6fbfe6af61adafbed37240a8 +0 -0
- data/test/dummy/tmp/cache/assets/E91/E50/sprockets%2F6caf6f973c4dfd0a94ca97da0cbfb8da +0 -0
- data/test/dummy/tmp/cache/assets/F0C/2E0/sprockets%2Fbcad47aa7a1eda0cc0fdc3eac6cb99fd +0 -0
- data/test/fixtures/heart/annotations.yml +11 -0
- data/test/fixtures/heart/configurations.yml +11 -0
- data/test/fixtures/heart/dashboards.yml +11 -0
- data/test/fixtures/heart/images.yml +11 -0
- data/test/fixtures/heart/isometrics.yml +11 -0
- data/test/fixtures/heart/metrics.yml +11 -0
- data/test/functional/heart/annotations_controller_test.rb +9 -0
- data/test/functional/heart/dashboards_controller_test.rb +9 -0
- data/test/functional/heart/images_controller_test.rb +9 -0
- data/test/functional/heart/metrics_controller_test.rb +9 -0
- data/test/heart_test.rb +7 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +15 -0
- data/test/unit/heart/annotation_test.rb +9 -0
- data/test/unit/heart/configuration_test.rb +9 -0
- data/test/unit/heart/dashboard_test.rb +9 -0
- data/test/unit/heart/image_test.rb +9 -0
- data/test/unit/heart/isometric_test.rb +9 -0
- data/test/unit/heart/metric_test.rb +9 -0
- data/test/unit/helpers/heart/annotations_helper_test.rb +6 -0
- data/test/unit/helpers/heart/dashboards_helper_test.rb +6 -0
- data/test/unit/helpers/heart/images_helper_test.rb +6 -0
- data/test/unit/helpers/heart/metrics_helper_test.rb +6 -0
- metadata +791 -0
@@ -0,0 +1,108 @@
|
|
1
|
+
/*-------------------------------------------------------------------------------
|
2
|
+
A Better jQuery Tooltip
|
3
|
+
Version 1.0
|
4
|
+
By Jon Cazier
|
5
|
+
jon@3nhanced.com
|
6
|
+
01.22.08
|
7
|
+
-------------------------------------------------------------------------------*/
|
8
|
+
|
9
|
+
$.fn.betterTooltip = function(options){
|
10
|
+
|
11
|
+
/* Setup the options for the tooltip that can be
|
12
|
+
accessed from outside the plugin */
|
13
|
+
var defaults = {
|
14
|
+
speed: 200,
|
15
|
+
delay: 300
|
16
|
+
};
|
17
|
+
|
18
|
+
var options = $.extend(defaults, options);
|
19
|
+
|
20
|
+
/* Create a function that builds the tooltip
|
21
|
+
markup. Then, prepend the tooltip to the body */
|
22
|
+
getTip = function() {
|
23
|
+
var tTip =
|
24
|
+
"<div class='tip'>" +
|
25
|
+
"<div class='tipMid'>" +
|
26
|
+
"</div>" +
|
27
|
+
"<div class='tipBtm'></div>" +
|
28
|
+
"</div>";
|
29
|
+
return tTip;
|
30
|
+
}
|
31
|
+
$("body").prepend(getTip());
|
32
|
+
|
33
|
+
/* Give each item with the class associated with
|
34
|
+
the plugin the ability to call the tooltip */
|
35
|
+
$(this).each(function(){
|
36
|
+
|
37
|
+
var $this = $(this);
|
38
|
+
var tip = $('.tip');
|
39
|
+
var tipInner = $('.tip .tipMid');
|
40
|
+
|
41
|
+
var tTitle = (this.title);
|
42
|
+
this.title = "";
|
43
|
+
var offset = $(this).offset();
|
44
|
+
|
45
|
+
|
46
|
+
/* Mouse over and out functions*/
|
47
|
+
$this.hover(
|
48
|
+
function() {
|
49
|
+
offset = $(this).offset();
|
50
|
+
tipInner.html(tTitle);
|
51
|
+
setTip(offset.top, offset.left);
|
52
|
+
setTimer();
|
53
|
+
},
|
54
|
+
function() {
|
55
|
+
stopTimer();
|
56
|
+
tip.hide();
|
57
|
+
}
|
58
|
+
);
|
59
|
+
|
60
|
+
/* Delay the fade-in animation of the tooltip */
|
61
|
+
setTimer = function() {
|
62
|
+
$this.showTipTimer = setInterval("showTip()", defaults.delay);
|
63
|
+
}
|
64
|
+
|
65
|
+
stopTimer = function() {
|
66
|
+
clearInterval($this.showTipTimer);
|
67
|
+
}
|
68
|
+
|
69
|
+
/* Position the tooltip relative to the class
|
70
|
+
associated with the tooltip */
|
71
|
+
setTip = function(top, left){
|
72
|
+
var topOffset = tip.height();
|
73
|
+
var xTip = (left-50)+"px";
|
74
|
+
var yTip = (top-topOffset-42)+"px";
|
75
|
+
tip.css({'top' : yTip, 'left' : xTip});
|
76
|
+
}
|
77
|
+
|
78
|
+
/* This function stops the timer and creates the
|
79
|
+
fade-in animation */
|
80
|
+
showTip = function(){
|
81
|
+
stopTimer();
|
82
|
+
tip.animate({"opacity": "toggle"}, defaults.speed);
|
83
|
+
}
|
84
|
+
});
|
85
|
+
};
|
86
|
+
|
87
|
+
function showTooltip(x, y, contents) {
|
88
|
+
$('<div id="tooltip">' + contents + '</div>').css( {
|
89
|
+
position: 'absolute',
|
90
|
+
display: 'none',
|
91
|
+
top: y + 5,
|
92
|
+
left: x + 5,
|
93
|
+
padding: '10px',
|
94
|
+
'line-height': '14px',
|
95
|
+
'text-shadow': '0px -1px 1px rgba(0, 0, 0, .8)',
|
96
|
+
'max-width': '240px',
|
97
|
+
color: 'white',
|
98
|
+
'font-size':'12px',
|
99
|
+
'background-color': '#c63929',
|
100
|
+
border: '2px solid #951100',
|
101
|
+
'-moz-border-radius': '5px',
|
102
|
+
'-webkit-border-radius': '5px',
|
103
|
+
'border-radius': '5px',
|
104
|
+
'-moz-box-shadow': 'inset 0px 0px 0px 1px rgba(255, 115, 100, 0.4), 0 2px 6px #333',
|
105
|
+
'-webkit-box-shadow': 'inset 0px 0px 0px 1px rgba(255, 115, 100, 0.4), 0 2px 6px #333',
|
106
|
+
'box-shadow': 'inset 0px 0px 0px 1px rgba(255, 115, 100, 0.4), 0 2px 6px #333'
|
107
|
+
}).appendTo("body").fadeIn(0);
|
108
|
+
}
|
@@ -0,0 +1,480 @@
|
|
1
|
+
/*
|
2
|
+
http://www.JSON.org/json2.js
|
3
|
+
2011-02-23
|
4
|
+
|
5
|
+
Public Domain.
|
6
|
+
|
7
|
+
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
8
|
+
|
9
|
+
See http://www.JSON.org/js.html
|
10
|
+
|
11
|
+
|
12
|
+
This code should be minified before deployment.
|
13
|
+
See http://javascript.crockford.com/jsmin.html
|
14
|
+
|
15
|
+
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
|
16
|
+
NOT CONTROL.
|
17
|
+
|
18
|
+
|
19
|
+
This file creates a global JSON object containing two methods: stringify
|
20
|
+
and parse.
|
21
|
+
|
22
|
+
JSON.stringify(value, replacer, space)
|
23
|
+
value any JavaScript value, usually an object or array.
|
24
|
+
|
25
|
+
replacer an optional parameter that determines how object
|
26
|
+
values are stringified for objects. It can be a
|
27
|
+
function or an array of strings.
|
28
|
+
|
29
|
+
space an optional parameter that specifies the indentation
|
30
|
+
of nested structures. If it is omitted, the text will
|
31
|
+
be packed without extra whitespace. If it is a number,
|
32
|
+
it will specify the number of spaces to indent at each
|
33
|
+
level. If it is a string (such as '\t' or ' '),
|
34
|
+
it contains the characters used to indent at each level.
|
35
|
+
|
36
|
+
This method produces a JSON text from a JavaScript value.
|
37
|
+
|
38
|
+
When an object value is found, if the object contains a toJSON
|
39
|
+
method, its toJSON method will be called and the result will be
|
40
|
+
stringified. A toJSON method does not serialize: it returns the
|
41
|
+
value represented by the name/value pair that should be serialized,
|
42
|
+
or undefined if nothing should be serialized. The toJSON method
|
43
|
+
will be passed the key associated with the value, and this will be
|
44
|
+
bound to the value
|
45
|
+
|
46
|
+
For example, this would serialize Dates as ISO strings.
|
47
|
+
|
48
|
+
Date.prototype.toJSON = function (key) {
|
49
|
+
function f(n) {
|
50
|
+
// Format integers to have at least two digits.
|
51
|
+
return n < 10 ? '0' + n : n;
|
52
|
+
}
|
53
|
+
|
54
|
+
return this.getUTCFullYear() + '-' +
|
55
|
+
f(this.getUTCMonth() + 1) + '-' +
|
56
|
+
f(this.getUTCDate()) + 'T' +
|
57
|
+
f(this.getUTCHours()) + ':' +
|
58
|
+
f(this.getUTCMinutes()) + ':' +
|
59
|
+
f(this.getUTCSeconds()) + 'Z';
|
60
|
+
};
|
61
|
+
|
62
|
+
You can provide an optional replacer method. It will be passed the
|
63
|
+
key and value of each member, with this bound to the containing
|
64
|
+
object. The value that is returned from your method will be
|
65
|
+
serialized. If your method returns undefined, then the member will
|
66
|
+
be excluded from the serialization.
|
67
|
+
|
68
|
+
If the replacer parameter is an array of strings, then it will be
|
69
|
+
used to select the members to be serialized. It filters the results
|
70
|
+
such that only members with keys listed in the replacer array are
|
71
|
+
stringified.
|
72
|
+
|
73
|
+
Values that do not have JSON representations, such as undefined or
|
74
|
+
functions, will not be serialized. Such values in objects will be
|
75
|
+
dropped; in arrays they will be replaced with null. You can use
|
76
|
+
a replacer function to replace those with JSON values.
|
77
|
+
JSON.stringify(undefined) returns undefined.
|
78
|
+
|
79
|
+
The optional space parameter produces a stringification of the
|
80
|
+
value that is filled with line breaks and indentation to make it
|
81
|
+
easier to read.
|
82
|
+
|
83
|
+
If the space parameter is a non-empty string, then that string will
|
84
|
+
be used for indentation. If the space parameter is a number, then
|
85
|
+
the indentation will be that many spaces.
|
86
|
+
|
87
|
+
Example:
|
88
|
+
|
89
|
+
text = JSON.stringify(['e', {pluribus: 'unum'}]);
|
90
|
+
// text is '["e",{"pluribus":"unum"}]'
|
91
|
+
|
92
|
+
|
93
|
+
text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
|
94
|
+
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
|
95
|
+
|
96
|
+
text = JSON.stringify([new Date()], function (key, value) {
|
97
|
+
return this[key] instanceof Date ?
|
98
|
+
'Date(' + this[key] + ')' : value;
|
99
|
+
});
|
100
|
+
// text is '["Date(---current time---)"]'
|
101
|
+
|
102
|
+
|
103
|
+
JSON.parse(text, reviver)
|
104
|
+
This method parses a JSON text to produce an object or array.
|
105
|
+
It can throw a SyntaxError exception.
|
106
|
+
|
107
|
+
The optional reviver parameter is a function that can filter and
|
108
|
+
transform the results. It receives each of the keys and values,
|
109
|
+
and its return value is used instead of the original value.
|
110
|
+
If it returns what it received, then the structure is not modified.
|
111
|
+
If it returns undefined then the member is deleted.
|
112
|
+
|
113
|
+
Example:
|
114
|
+
|
115
|
+
// Parse the text. Values that look like ISO date strings will
|
116
|
+
// be converted to Date objects.
|
117
|
+
|
118
|
+
myData = JSON.parse(text, function (key, value) {
|
119
|
+
var a;
|
120
|
+
if (typeof value === 'string') {
|
121
|
+
a =
|
122
|
+
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
|
123
|
+
if (a) {
|
124
|
+
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
|
125
|
+
+a[5], +a[6]));
|
126
|
+
}
|
127
|
+
}
|
128
|
+
return value;
|
129
|
+
});
|
130
|
+
|
131
|
+
myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
|
132
|
+
var d;
|
133
|
+
if (typeof value === 'string' &&
|
134
|
+
value.slice(0, 5) === 'Date(' &&
|
135
|
+
value.slice(-1) === ')') {
|
136
|
+
d = new Date(value.slice(5, -1));
|
137
|
+
if (d) {
|
138
|
+
return d;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
return value;
|
142
|
+
});
|
143
|
+
|
144
|
+
|
145
|
+
This is a reference implementation. You are free to copy, modify, or
|
146
|
+
redistribute.
|
147
|
+
*/
|
148
|
+
|
149
|
+
/*jslint evil: true, strict: false, regexp: false */
|
150
|
+
|
151
|
+
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
|
152
|
+
call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
|
153
|
+
getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
|
154
|
+
lastIndex, length, parse, prototype, push, replace, slice, stringify,
|
155
|
+
test, toJSON, toString, valueOf
|
156
|
+
*/
|
157
|
+
|
158
|
+
|
159
|
+
// Create a JSON object only if one does not already exist. We create the
|
160
|
+
// methods in a closure to avoid creating global variables.
|
161
|
+
|
162
|
+
var JSON;
|
163
|
+
if (!JSON) {
|
164
|
+
JSON = {};
|
165
|
+
}
|
166
|
+
|
167
|
+
(function () {
|
168
|
+
"use strict";
|
169
|
+
|
170
|
+
function f(n) {
|
171
|
+
// Format integers to have at least two digits.
|
172
|
+
return n < 10 ? '0' + n : n;
|
173
|
+
}
|
174
|
+
|
175
|
+
if (typeof Date.prototype.toJSON !== 'function') {
|
176
|
+
|
177
|
+
Date.prototype.toJSON = function (key) {
|
178
|
+
|
179
|
+
return isFinite(this.valueOf()) ?
|
180
|
+
this.getUTCFullYear() + '-' +
|
181
|
+
f(this.getUTCMonth() + 1) + '-' +
|
182
|
+
f(this.getUTCDate()) + 'T' +
|
183
|
+
f(this.getUTCHours()) + ':' +
|
184
|
+
f(this.getUTCMinutes()) + ':' +
|
185
|
+
f(this.getUTCSeconds()) + 'Z' : null;
|
186
|
+
};
|
187
|
+
|
188
|
+
String.prototype.toJSON =
|
189
|
+
Number.prototype.toJSON =
|
190
|
+
Boolean.prototype.toJSON = function (key) {
|
191
|
+
return this.valueOf();
|
192
|
+
};
|
193
|
+
}
|
194
|
+
|
195
|
+
var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
196
|
+
escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
197
|
+
gap,
|
198
|
+
indent,
|
199
|
+
meta = { // table of character substitutions
|
200
|
+
'\b': '\\b',
|
201
|
+
'\t': '\\t',
|
202
|
+
'\n': '\\n',
|
203
|
+
'\f': '\\f',
|
204
|
+
'\r': '\\r',
|
205
|
+
'"' : '\\"',
|
206
|
+
'\\': '\\\\'
|
207
|
+
},
|
208
|
+
rep;
|
209
|
+
|
210
|
+
|
211
|
+
function quote(string) {
|
212
|
+
|
213
|
+
// If the string contains no control characters, no quote characters, and no
|
214
|
+
// backslash characters, then we can safely slap some quotes around it.
|
215
|
+
// Otherwise we must also replace the offending characters with safe escape
|
216
|
+
// sequences.
|
217
|
+
|
218
|
+
escapable.lastIndex = 0;
|
219
|
+
return escapable.test(string) ? '"' + string.replace(escapable, function (a) {
|
220
|
+
var c = meta[a];
|
221
|
+
return typeof c === 'string' ? c :
|
222
|
+
'\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
|
223
|
+
}) + '"' : '"' + string + '"';
|
224
|
+
}
|
225
|
+
|
226
|
+
|
227
|
+
function str(key, holder) {
|
228
|
+
|
229
|
+
// Produce a string from holder[key].
|
230
|
+
|
231
|
+
var i, // The loop counter.
|
232
|
+
k, // The member key.
|
233
|
+
v, // The member value.
|
234
|
+
length,
|
235
|
+
mind = gap,
|
236
|
+
partial,
|
237
|
+
value = holder[key];
|
238
|
+
|
239
|
+
// If the value has a toJSON method, call it to obtain a replacement value.
|
240
|
+
|
241
|
+
if (value && typeof value === 'object' &&
|
242
|
+
typeof value.toJSON === 'function') {
|
243
|
+
value = value.toJSON(key);
|
244
|
+
}
|
245
|
+
|
246
|
+
// If we were called with a replacer function, then call the replacer to
|
247
|
+
// obtain a replacement value.
|
248
|
+
|
249
|
+
if (typeof rep === 'function') {
|
250
|
+
value = rep.call(holder, key, value);
|
251
|
+
}
|
252
|
+
|
253
|
+
// What happens next depends on the value's type.
|
254
|
+
|
255
|
+
switch (typeof value) {
|
256
|
+
case 'string':
|
257
|
+
return quote(value);
|
258
|
+
|
259
|
+
case 'number':
|
260
|
+
|
261
|
+
// JSON numbers must be finite. Encode non-finite numbers as null.
|
262
|
+
|
263
|
+
return isFinite(value) ? String(value) : 'null';
|
264
|
+
|
265
|
+
case 'boolean':
|
266
|
+
case 'null':
|
267
|
+
|
268
|
+
// If the value is a boolean or null, convert it to a string. Note:
|
269
|
+
// typeof null does not produce 'null'. The case is included here in
|
270
|
+
// the remote chance that this gets fixed someday.
|
271
|
+
|
272
|
+
return String(value);
|
273
|
+
|
274
|
+
// If the type is 'object', we might be dealing with an object or an array or
|
275
|
+
// null.
|
276
|
+
|
277
|
+
case 'object':
|
278
|
+
|
279
|
+
// Due to a specification blunder in ECMAScript, typeof null is 'object',
|
280
|
+
// so watch out for that case.
|
281
|
+
|
282
|
+
if (!value) {
|
283
|
+
return 'null';
|
284
|
+
}
|
285
|
+
|
286
|
+
// Make an array to hold the partial results of stringifying this object value.
|
287
|
+
|
288
|
+
gap += indent;
|
289
|
+
partial = [];
|
290
|
+
|
291
|
+
// Is the value an array?
|
292
|
+
|
293
|
+
if (Object.prototype.toString.apply(value) === '[object Array]') {
|
294
|
+
|
295
|
+
// The value is an array. Stringify every element. Use null as a placeholder
|
296
|
+
// for non-JSON values.
|
297
|
+
|
298
|
+
length = value.length;
|
299
|
+
for (i = 0; i < length; i += 1) {
|
300
|
+
partial[i] = str(i, value) || 'null';
|
301
|
+
}
|
302
|
+
|
303
|
+
// Join all of the elements together, separated with commas, and wrap them in
|
304
|
+
// brackets.
|
305
|
+
|
306
|
+
v = partial.length === 0 ? '[]' : gap ?
|
307
|
+
'[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' :
|
308
|
+
'[' + partial.join(',') + ']';
|
309
|
+
gap = mind;
|
310
|
+
return v;
|
311
|
+
}
|
312
|
+
|
313
|
+
// If the replacer is an array, use it to select the members to be stringified.
|
314
|
+
|
315
|
+
if (rep && typeof rep === 'object') {
|
316
|
+
length = rep.length;
|
317
|
+
for (i = 0; i < length; i += 1) {
|
318
|
+
if (typeof rep[i] === 'string') {
|
319
|
+
k = rep[i];
|
320
|
+
v = str(k, value);
|
321
|
+
if (v) {
|
322
|
+
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
323
|
+
}
|
324
|
+
}
|
325
|
+
}
|
326
|
+
} else {
|
327
|
+
|
328
|
+
// Otherwise, iterate through all of the keys in the object.
|
329
|
+
|
330
|
+
for (k in value) {
|
331
|
+
if (Object.prototype.hasOwnProperty.call(value, k)) {
|
332
|
+
v = str(k, value);
|
333
|
+
if (v) {
|
334
|
+
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
335
|
+
}
|
336
|
+
}
|
337
|
+
}
|
338
|
+
}
|
339
|
+
|
340
|
+
// Join all of the member texts together, separated with commas,
|
341
|
+
// and wrap them in braces.
|
342
|
+
|
343
|
+
v = partial.length === 0 ? '{}' : gap ?
|
344
|
+
'{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' :
|
345
|
+
'{' + partial.join(',') + '}';
|
346
|
+
gap = mind;
|
347
|
+
return v;
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
// If the JSON object does not yet have a stringify method, give it one.
|
352
|
+
|
353
|
+
if (typeof JSON.stringify !== 'function') {
|
354
|
+
JSON.stringify = function (value, replacer, space) {
|
355
|
+
|
356
|
+
// The stringify method takes a value and an optional replacer, and an optional
|
357
|
+
// space parameter, and returns a JSON text. The replacer can be a function
|
358
|
+
// that can replace values, or an array of strings that will select the keys.
|
359
|
+
// A default replacer method can be provided. Use of the space parameter can
|
360
|
+
// produce text that is more easily readable.
|
361
|
+
|
362
|
+
var i;
|
363
|
+
gap = '';
|
364
|
+
indent = '';
|
365
|
+
|
366
|
+
// If the space parameter is a number, make an indent string containing that
|
367
|
+
// many spaces.
|
368
|
+
|
369
|
+
if (typeof space === 'number') {
|
370
|
+
for (i = 0; i < space; i += 1) {
|
371
|
+
indent += ' ';
|
372
|
+
}
|
373
|
+
|
374
|
+
// If the space parameter is a string, it will be used as the indent string.
|
375
|
+
|
376
|
+
} else if (typeof space === 'string') {
|
377
|
+
indent = space;
|
378
|
+
}
|
379
|
+
|
380
|
+
// If there is a replacer, it must be a function or an array.
|
381
|
+
// Otherwise, throw an error.
|
382
|
+
|
383
|
+
rep = replacer;
|
384
|
+
if (replacer && typeof replacer !== 'function' &&
|
385
|
+
(typeof replacer !== 'object' ||
|
386
|
+
typeof replacer.length !== 'number')) {
|
387
|
+
throw new Error('JSON.stringify');
|
388
|
+
}
|
389
|
+
|
390
|
+
// Make a fake root object containing our value under the key of ''.
|
391
|
+
// Return the result of stringifying the value.
|
392
|
+
|
393
|
+
return str('', {'': value});
|
394
|
+
};
|
395
|
+
}
|
396
|
+
|
397
|
+
|
398
|
+
// If the JSON object does not yet have a parse method, give it one.
|
399
|
+
|
400
|
+
if (typeof JSON.parse !== 'function') {
|
401
|
+
JSON.parse = function (text, reviver) {
|
402
|
+
|
403
|
+
// The parse method takes a text and an optional reviver function, and returns
|
404
|
+
// a JavaScript value if the text is a valid JSON text.
|
405
|
+
|
406
|
+
var j;
|
407
|
+
|
408
|
+
function walk(holder, key) {
|
409
|
+
|
410
|
+
// The walk method is used to recursively walk the resulting structure so
|
411
|
+
// that modifications can be made.
|
412
|
+
|
413
|
+
var k, v, value = holder[key];
|
414
|
+
if (value && typeof value === 'object') {
|
415
|
+
for (k in value) {
|
416
|
+
if (Object.prototype.hasOwnProperty.call(value, k)) {
|
417
|
+
v = walk(value, k);
|
418
|
+
if (v !== undefined) {
|
419
|
+
value[k] = v;
|
420
|
+
} else {
|
421
|
+
delete value[k];
|
422
|
+
}
|
423
|
+
}
|
424
|
+
}
|
425
|
+
}
|
426
|
+
return reviver.call(holder, key, value);
|
427
|
+
}
|
428
|
+
|
429
|
+
|
430
|
+
// Parsing happens in four stages. In the first stage, we replace certain
|
431
|
+
// Unicode characters with escape sequences. JavaScript handles many characters
|
432
|
+
// incorrectly, either silently deleting them, or treating them as line endings.
|
433
|
+
|
434
|
+
text = String(text);
|
435
|
+
cx.lastIndex = 0;
|
436
|
+
if (cx.test(text)) {
|
437
|
+
text = text.replace(cx, function (a) {
|
438
|
+
return '\\u' +
|
439
|
+
('0000' + a.charCodeAt(0).toString(16)).slice(-4);
|
440
|
+
});
|
441
|
+
}
|
442
|
+
|
443
|
+
// In the second stage, we run the text against regular expressions that look
|
444
|
+
// for non-JSON patterns. We are especially concerned with '()' and 'new'
|
445
|
+
// because they can cause invocation, and '=' because it can cause mutation.
|
446
|
+
// But just to be safe, we want to reject all unexpected forms.
|
447
|
+
|
448
|
+
// We split the second stage into 4 regexp operations in order to work around
|
449
|
+
// crippling inefficiencies in IE's and Safari's regexp engines. First we
|
450
|
+
// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
|
451
|
+
// replace all simple value tokens with ']' characters. Third, we delete all
|
452
|
+
// open brackets that follow a colon or comma or that begin the text. Finally,
|
453
|
+
// we look to see that the remaining characters are only whitespace or ']' or
|
454
|
+
// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
|
455
|
+
|
456
|
+
if (/^[\],:{}\s]*$/
|
457
|
+
.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
|
458
|
+
.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
|
459
|
+
.replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
|
460
|
+
|
461
|
+
// In the third stage we use the eval function to compile the text into a
|
462
|
+
// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
|
463
|
+
// in JavaScript: it can begin a block or an object literal. We wrap the text
|
464
|
+
// in parens to eliminate the ambiguity.
|
465
|
+
|
466
|
+
j = eval('(' + text + ')');
|
467
|
+
|
468
|
+
// In the optional fourth stage, we recursively walk the new structure, passing
|
469
|
+
// each name/value pair to a reviver function for possible transformation.
|
470
|
+
|
471
|
+
return typeof reviver === 'function' ?
|
472
|
+
walk({'': j}, '') : j;
|
473
|
+
}
|
474
|
+
|
475
|
+
// If the text is not JSON parseable, then a SyntaxError is thrown.
|
476
|
+
|
477
|
+
throw new SyntaxError('JSON.parse');
|
478
|
+
};
|
479
|
+
}
|
480
|
+
}());
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require_tree .
|
13
|
+
*/
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/*************************************
|
2
|
+
WELCOME TO THE IE STYLESHEET
|
3
|
+
--------------------------------------
|
4
|
+
ie.css
|
5
|
+
BlueTrip CSS Framework
|
6
|
+
http://bluetrip.org
|
7
|
+
***************************************/
|
8
|
+
|
9
|
+
body {text-align:center;}
|
10
|
+
.container {text-align:left;}
|
11
|
+
* html .column {overflow-x:hidden;}
|
12
|
+
* html legend {margin:-18px -8px 16px 0;padding:0;}
|
13
|
+
ol {margin-left:2em;}
|
14
|
+
sup {vertical-align:text-top;}
|
15
|
+
sub {vertical-align:text-bottom;}
|
16
|
+
html>body p code {*white-space:normal;}
|
17
|
+
hr {margin:-8px auto 11px;}
|
18
|
+
ul { list-style: disc outside; margin-left: 2em; } /* IE can't handle :before and :after */
|
19
|
+
ul li { text-indent: 0; margin-left: 0; }
|
20
|
+
legend { margin-bottom: 1.6em; } /* IE form margin bug */
|
21
|
+
sup, sub { font-size: 100%; } /* IE superscript & subscript bug */
|
22
|
+
blockquote p, blockquote ul, blockquote ol, blockquote dl, blockquote pre, blockquote address,
|
23
|
+
blockquote table, blockquote form, blockquote h1, blockquote h2, blockquote h3, blockquote h4, blockquote h5, blockquote h6 { margin-top: .8em; margin-bottom: .8em; } /* IE can't handle :first-child */
|
24
|
+
* html textarea, * html input { padding: 0; } /* IE < 7 form fix */
|
25
|
+
input[type='submit'], input[type='button'] { padding: 0; } /* IE 7 button fix */
|
26
|
+
legend+* { margin-top: 0; } /* we already added legend margin */
|
27
|
+
a abbr, a acronym { text-decoration: underline; } /* IE 7 bug */
|
28
|
+
fieldset legend { margin: 0; } /* IE 6 disappearing legend bug */
|
29
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/*************************************
|
2
|
+
WELCOME TO THE PRINT STYLESHEET
|
3
|
+
--------------------------------------
|
4
|
+
print.css
|
5
|
+
BlueTrip CSS Framework
|
6
|
+
Thanks to Priss Print Framework
|
7
|
+
http://github.com/mikecrittenden/priss
|
8
|
+
***************************************/
|
9
|
+
|
10
|
+
/*** BODY ***/
|
11
|
+
body {width:100% !important; margin:0 !important; padding:0 !important; line-height: 1.4; word-spacing:1.1pt; letter-spacing:0.2pt; font-family: Garamond,"Times New Roman", serif; color: #000; background: none; font-size: 12pt;}
|
12
|
+
|
13
|
+
/*** HEADINGS ***/
|
14
|
+
h1,h2,h3,h4,h5,h6 {font-family: Helvetica, Arial, sans-serif;}
|
15
|
+
h1{font-size:19pt;}
|
16
|
+
h2{font-size:17pt;}
|
17
|
+
h3{font-size:15pt;}
|
18
|
+
h4,h5,h6{font-size:12pt;}
|
19
|
+
|
20
|
+
/*** ELEMENTS ***/
|
21
|
+
code {font: 10px monospace;}
|
22
|
+
blockquote {margin: 1.3em; padding: 1em; font-size: 10pt;}
|
23
|
+
hr {background-color: #ccc;}
|
24
|
+
|
25
|
+
/*** IMAGES ***/
|
26
|
+
img {float: left; margin: 1em 1.5em 1.5em 0;}
|
27
|
+
a img {border: none;}
|
28
|
+
|
29
|
+
/*** LINKS ***/
|
30
|
+
a:link, a:visited {background: transparent; font-weight: 700; text-decoration: underline;color:#333;}
|
31
|
+
a:link[href^="http://"]:after, a[href^="http://"]:visited:after {content: " (" attr(href) ") "; font-size: 90%;}
|
32
|
+
a[href^="http://"] {color:#000;}
|
33
|
+
|
34
|
+
/*** TABLES ***/
|
35
|
+
table {margin: 1px; text-align:left;}
|
36
|
+
th {border-bottom: 1px solid #333; font-weight: bold;}
|
37
|
+
td {border-bottom: 1px solid #333;}
|
38
|
+
th,td {padding: 4px 10px 4px 0;}
|
39
|
+
tfoot {font-style: italic;}
|
40
|
+
caption {background: #fff; margin-bottom:2em; text-align:left;}
|
41
|
+
thead {display: table-header-group;}
|
42
|
+
tr {page-break-inside: avoid;}
|
43
|
+
|
44
|
+
/*** Add sections here to hide various parts of the site when printing ***/
|
45
|
+
#header, #footer, #navigation, #sidebar, button {display:none;}
|
46
|
+
|