praxis 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -0
- data/CHANGELOG.md +16 -0
- data/lib/api_browser/Gruntfile.js +125 -16
- data/lib/api_browser/app/index.html +5 -1
- data/lib/api_browser/app/js/directives/fixed_if_fits.js +28 -17
- data/lib/api_browser/app/js/directives/highlight.js +14 -0
- data/lib/api_browser/app/js/directives/request_examples.js +29 -0
- data/lib/api_browser/app/js/factories/Documentation.js +6 -0
- data/lib/api_browser/app/js/factories/Example.js +47 -0
- data/lib/api_browser/app/js/factories/prepare_template.js +15 -0
- data/lib/api_browser/app/js/factories/template_for.js +2 -12
- data/lib/api_browser/app/sass/modules/_sidebar.scss +2 -0
- data/lib/api_browser/app/views/action.html +6 -24
- data/lib/api_browser/app/views/examples/general.html +26 -0
- data/lib/api_browser/{bower.json → bower_template.json} +13 -3
- data/lib/api_browser/package.json +3 -1
- data/lib/praxis/application.rb +2 -0
- data/lib/praxis/docs/generator.rb +4 -2
- data/lib/praxis/extensions/field_selection/field_selector.rb +1 -0
- data/lib/praxis/media_type.rb +1 -1
- data/lib/praxis/plugin.rb +4 -0
- data/lib/praxis/plugin_concern.rb +2 -1
- data/lib/praxis/tasks/api_docs.rb +9 -2
- data/lib/praxis/version.rb +1 -1
- data/praxis.gemspec +2 -2
- data/spec/praxis/action_definition_spec.rb +26 -1
- data/spec/praxis/extensions/field_selection/field_selector_spec.rb +4 -0
- data/spec/praxis/media_type_spec.rb +4 -3
- data/spec/support/spec_media_types.rb +5 -1
- metadata +12 -242
- data/lib/api_browser/app/bower_components/angular-mocks/.bower.json +0 -19
- data/lib/api_browser/app/bower_components/angular-mocks/README.md +0 -63
- data/lib/api_browser/app/bower_components/angular-mocks/angular-mocks.js +0 -2452
- data/lib/api_browser/app/bower_components/angular-mocks/bower.json +0 -9
- data/lib/api_browser/app/bower_components/angular-mocks/ngAnimateMock.js +0 -2
- data/lib/api_browser/app/bower_components/angular-mocks/ngMock.js +0 -2
- data/lib/api_browser/app/bower_components/angular-mocks/ngMockE2E.js +0 -2
- data/lib/api_browser/app/bower_components/angular-mocks/package.json +0 -27
- data/lib/api_browser/app/bower_components/angular-sanitize/.bower.json +0 -19
- data/lib/api_browser/app/bower_components/angular-sanitize/README.md +0 -68
- data/lib/api_browser/app/bower_components/angular-sanitize/angular-sanitize.js +0 -683
- data/lib/api_browser/app/bower_components/angular-sanitize/angular-sanitize.min.js +0 -16
- data/lib/api_browser/app/bower_components/angular-sanitize/angular-sanitize.min.js.map +0 -8
- data/lib/api_browser/app/bower_components/angular-sanitize/bower.json +0 -9
- data/lib/api_browser/app/bower_components/angular-sanitize/index.js +0 -2
- data/lib/api_browser/app/bower_components/angular-sanitize/package.json +0 -26
- data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/.bower.json +0 -31
- data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/bower.json +0 -19
- data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-csp.css +0 -6
- data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js +0 -4840
- data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.min.js +0 -10
- data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js +0 -4461
- data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.min.js +0 -9
- data/lib/api_browser/app/bower_components/angular-ui-router/.bower.json +0 -33
- data/lib/api_browser/app/bower_components/angular-ui-router/CHANGELOG.md +0 -228
- data/lib/api_browser/app/bower_components/angular-ui-router/CONTRIBUTING.md +0 -65
- data/lib/api_browser/app/bower_components/angular-ui-router/LICENSE +0 -21
- data/lib/api_browser/app/bower_components/angular-ui-router/README.md +0 -245
- data/lib/api_browser/app/bower_components/angular-ui-router/api/angular-ui-router.d.ts +0 -126
- data/lib/api_browser/app/bower_components/angular-ui-router/bower.json +0 -23
- data/lib/api_browser/app/bower_components/angular-ui-router/release/angular-ui-router.js +0 -4370
- data/lib/api_browser/app/bower_components/angular-ui-router/release/angular-ui-router.min.js +0 -7
- data/lib/api_browser/app/bower_components/angular-ui-router/src/common.js +0 -292
- data/lib/api_browser/app/bower_components/angular-ui-router/src/resolve.js +0 -252
- data/lib/api_browser/app/bower_components/angular-ui-router/src/state.js +0 -1465
- data/lib/api_browser/app/bower_components/angular-ui-router/src/stateDirectives.js +0 -285
- data/lib/api_browser/app/bower_components/angular-ui-router/src/stateFilters.js +0 -39
- data/lib/api_browser/app/bower_components/angular-ui-router/src/templateFactory.js +0 -110
- data/lib/api_browser/app/bower_components/angular-ui-router/src/urlMatcherFactory.js +0 -1050
- data/lib/api_browser/app/bower_components/angular-ui-router/src/urlRouter.js +0 -427
- data/lib/api_browser/app/bower_components/angular-ui-router/src/view.js +0 -71
- data/lib/api_browser/app/bower_components/angular-ui-router/src/viewDirective.js +0 -303
- data/lib/api_browser/app/bower_components/angular-ui-router/src/viewScroll.js +0 -52
- data/lib/api_browser/app/bower_components/angular/.bower.json +0 -17
- data/lib/api_browser/app/bower_components/angular/README.md +0 -64
- data/lib/api_browser/app/bower_components/angular/angular-csp.css +0 -21
- data/lib/api_browser/app/bower_components/angular/angular.js +0 -28133
- data/lib/api_browser/app/bower_components/angular/angular.min.js +0 -289
- data/lib/api_browser/app/bower_components/angular/angular.min.js.gzip +0 -0
- data/lib/api_browser/app/bower_components/angular/angular.min.js.map +0 -8
- data/lib/api_browser/app/bower_components/angular/bower.json +0 -8
- data/lib/api_browser/app/bower_components/angular/index.js +0 -2
- data/lib/api_browser/app/bower_components/angular/package.json +0 -25
- data/lib/api_browser/app/bower_components/bootstrap-sass/.bower.json +0 -41
- data/lib/api_browser/app/bower_components/bootstrap-sass/CHANGELOG.md +0 -108
- data/lib/api_browser/app/bower_components/bootstrap-sass/CONTRIBUTING.md +0 -79
- data/lib/api_browser/app/bower_components/bootstrap-sass/README.md +0 -218
- data/lib/api_browser/app/bower_components/bootstrap-sass/bower.json +0 -22
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +0 -229
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap.js +0 -12
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/affix.js +0 -126
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/alert.js +0 -98
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/button.js +0 -115
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/carousel.js +0 -217
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/collapse.js +0 -179
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/dropdown.js +0 -154
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/modal.js +0 -246
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/popover.js +0 -117
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/scrollspy.js +0 -158
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/tab.js +0 -135
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/tooltip.js +0 -386
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/transition.js +0 -56
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap.scss +0 -1
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_alerts.scss +0 -67
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_badges.scss +0 -51
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss +0 -23
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_button-groups.scss +0 -227
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_buttons.scss +0 -155
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_carousel.scss +0 -232
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_close.scss +0 -35
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_code.scss +0 -53
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_component-animations.scss +0 -29
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_dropdowns.scss +0 -188
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_forms.scss +0 -374
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_glyphicons.scss +0 -237
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_grid.scss +0 -79
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_input-groups.scss +0 -136
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_jumbotron.scss +0 -46
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_labels.scss +0 -64
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_list-group.scss +0 -88
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_media.scss +0 -56
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_mixins.scss +0 -848
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_modals.scss +0 -129
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_navbar.scss +0 -616
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_navs.scss +0 -242
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_normalize.scss +0 -406
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_pager.scss +0 -55
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_pagination.scss +0 -85
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_panels.scss +0 -182
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_popovers.scss +0 -133
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_print.scss +0 -105
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_progress-bars.scss +0 -80
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_responsive-utilities.scss +0 -198
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_scaffolding.scss +0 -119
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_tables.scss +0 -231
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_theme.scss +0 -247
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_thumbnails.scss +0 -38
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_tooltip.scss +0 -95
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_type.scss +0 -281
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_utilities.scss +0 -56
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_variables.scss +0 -646
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_wells.scss +0 -29
- data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/bootstrap.scss +0 -49
- data/lib/api_browser/app/bower_components/jquery/.bower.json +0 -38
- data/lib/api_browser/app/bower_components/jquery/MIT-LICENSE.txt +0 -21
- data/lib/api_browser/app/bower_components/jquery/bower.json +0 -27
- data/lib/api_browser/app/bower_components/jquery/dist/jquery.js +0 -9190
- data/lib/api_browser/app/bower_components/jquery/dist/jquery.min.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/dist/jquery.min.map +0 -1
- data/lib/api_browser/app/bower_components/jquery/src/ajax.js +0 -806
- data/lib/api_browser/app/bower_components/jquery/src/ajax/jsonp.js +0 -89
- data/lib/api_browser/app/bower_components/jquery/src/ajax/load.js +0 -75
- data/lib/api_browser/app/bower_components/jquery/src/ajax/parseJSON.js +0 -13
- data/lib/api_browser/app/bower_components/jquery/src/ajax/parseXML.js +0 -28
- data/lib/api_browser/app/bower_components/jquery/src/ajax/script.js +0 -64
- data/lib/api_browser/app/bower_components/jquery/src/ajax/var/nonce.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/src/ajax/var/rquery.js +0 -3
- data/lib/api_browser/app/bower_components/jquery/src/ajax/xhr.js +0 -135
- data/lib/api_browser/app/bower_components/jquery/src/attributes.js +0 -11
- data/lib/api_browser/app/bower_components/jquery/src/attributes/attr.js +0 -143
- data/lib/api_browser/app/bower_components/jquery/src/attributes/classes.js +0 -158
- data/lib/api_browser/app/bower_components/jquery/src/attributes/prop.js +0 -96
- data/lib/api_browser/app/bower_components/jquery/src/attributes/support.js +0 -35
- data/lib/api_browser/app/bower_components/jquery/src/attributes/val.js +0 -163
- data/lib/api_browser/app/bower_components/jquery/src/callbacks.js +0 -205
- data/lib/api_browser/app/bower_components/jquery/src/core.js +0 -498
- data/lib/api_browser/app/bower_components/jquery/src/core/access.js +0 -60
- data/lib/api_browser/app/bower_components/jquery/src/core/init.js +0 -123
- data/lib/api_browser/app/bower_components/jquery/src/core/parseHTML.js +0 -39
- data/lib/api_browser/app/bower_components/jquery/src/core/ready.js +0 -97
- data/lib/api_browser/app/bower_components/jquery/src/core/var/rsingleTag.js +0 -4
- data/lib/api_browser/app/bower_components/jquery/src/css.js +0 -451
- data/lib/api_browser/app/bower_components/jquery/src/css/addGetHookIf.js +0 -24
- data/lib/api_browser/app/bower_components/jquery/src/css/curCSS.js +0 -57
- data/lib/api_browser/app/bower_components/jquery/src/css/defaultDisplay.js +0 -70
- data/lib/api_browser/app/bower_components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
- data/lib/api_browser/app/bower_components/jquery/src/css/support.js +0 -91
- data/lib/api_browser/app/bower_components/jquery/src/css/swap.js +0 -28
- data/lib/api_browser/app/bower_components/jquery/src/css/var/cssExpand.js +0 -3
- data/lib/api_browser/app/bower_components/jquery/src/css/var/getStyles.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/src/css/var/isHidden.js +0 -13
- data/lib/api_browser/app/bower_components/jquery/src/css/var/rmargin.js +0 -3
- data/lib/api_browser/app/bower_components/jquery/src/css/var/rnumnonpx.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/src/data.js +0 -179
- data/lib/api_browser/app/bower_components/jquery/src/data/Data.js +0 -181
- data/lib/api_browser/app/bower_components/jquery/src/data/accepts.js +0 -20
- data/lib/api_browser/app/bower_components/jquery/src/data/var/data_priv.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/src/data/var/data_user.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/src/deferred.js +0 -149
- data/lib/api_browser/app/bower_components/jquery/src/deprecated.js +0 -13
- data/lib/api_browser/app/bower_components/jquery/src/dimensions.js +0 -50
- data/lib/api_browser/app/bower_components/jquery/src/effects.js +0 -649
- data/lib/api_browser/app/bower_components/jquery/src/effects/Tween.js +0 -114
- data/lib/api_browser/app/bower_components/jquery/src/effects/animatedSelector.js +0 -13
- data/lib/api_browser/app/bower_components/jquery/src/event.js +0 -868
- data/lib/api_browser/app/bower_components/jquery/src/event/alias.js +0 -39
- data/lib/api_browser/app/bower_components/jquery/src/event/support.js +0 -9
- data/lib/api_browser/app/bower_components/jquery/src/exports/amd.js +0 -24
- data/lib/api_browser/app/bower_components/jquery/src/exports/global.js +0 -32
- data/lib/api_browser/app/bower_components/jquery/src/intro.js +0 -44
- data/lib/api_browser/app/bower_components/jquery/src/jquery.js +0 -36
- data/lib/api_browser/app/bower_components/jquery/src/manipulation.js +0 -582
- data/lib/api_browser/app/bower_components/jquery/src/manipulation/_evalUrl.js +0 -18
- data/lib/api_browser/app/bower_components/jquery/src/manipulation/support.js +0 -31
- data/lib/api_browser/app/bower_components/jquery/src/manipulation/var/rcheckableType.js +0 -3
- data/lib/api_browser/app/bower_components/jquery/src/offset.js +0 -204
- data/lib/api_browser/app/bower_components/jquery/src/outro.js +0 -1
- data/lib/api_browser/app/bower_components/jquery/src/queue.js +0 -142
- data/lib/api_browser/app/bower_components/jquery/src/queue/delay.js +0 -22
- data/lib/api_browser/app/bower_components/jquery/src/selector-native.js +0 -172
- data/lib/api_browser/app/bower_components/jquery/src/selector-sizzle.js +0 -14
- data/lib/api_browser/app/bower_components/jquery/src/selector.js +0 -1
- data/lib/api_browser/app/bower_components/jquery/src/serialize.js +0 -111
- data/lib/api_browser/app/bower_components/jquery/src/sizzle/dist/sizzle.js +0 -2044
- data/lib/api_browser/app/bower_components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
- data/lib/api_browser/app/bower_components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
- data/lib/api_browser/app/bower_components/jquery/src/traversing.js +0 -200
- data/lib/api_browser/app/bower_components/jquery/src/traversing/findFilter.js +0 -100
- data/lib/api_browser/app/bower_components/jquery/src/traversing/var/rneedsContext.js +0 -6
- data/lib/api_browser/app/bower_components/jquery/src/var/arr.js +0 -3
- data/lib/api_browser/app/bower_components/jquery/src/var/class2type.js +0 -4
- data/lib/api_browser/app/bower_components/jquery/src/var/concat.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/src/var/hasOwn.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/src/var/indexOf.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/src/var/pnum.js +0 -3
- data/lib/api_browser/app/bower_components/jquery/src/var/push.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/src/var/rnotwhite.js +0 -3
- data/lib/api_browser/app/bower_components/jquery/src/var/slice.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/src/var/strundefined.js +0 -3
- data/lib/api_browser/app/bower_components/jquery/src/var/support.js +0 -4
- data/lib/api_browser/app/bower_components/jquery/src/var/toString.js +0 -5
- data/lib/api_browser/app/bower_components/jquery/src/wrap.js +0 -78
- data/lib/api_browser/app/bower_components/lodash/.bower.json +0 -30
- data/lib/api_browser/app/bower_components/lodash/LICENSE.txt +0 -22
- data/lib/api_browser/app/bower_components/lodash/bower.json +0 -20
- data/lib/api_browser/app/bower_components/lodash/lodash.js +0 -12235
- data/lib/api_browser/app/bower_components/lodash/lodash.min.js +0 -98
- data/lib/api_browser/app/bower_components/showdown/.bower.json +0 -39
- data/lib/api_browser/app/bower_components/showdown/.jshintignore +0 -2
- data/lib/api_browser/app/bower_components/showdown/.travis.yml +0 -8
- data/lib/api_browser/app/bower_components/showdown/Gruntfile.js +0 -100
- data/lib/api_browser/app/bower_components/showdown/README.md +0 -317
- data/lib/api_browser/app/bower_components/showdown/bower.json +0 -26
- data/lib/api_browser/app/bower_components/showdown/compressed/Showdown.js +0 -1606
- data/lib/api_browser/app/bower_components/showdown/compressed/Showdown.js.map +0 -1
- data/lib/api_browser/app/bower_components/showdown/compressed/Showdown.min.js +0 -2
- data/lib/api_browser/app/bower_components/showdown/compressed/extensions/github.min.js +0 -2
- data/lib/api_browser/app/bower_components/showdown/compressed/extensions/github.min.js.map +0 -1
- data/lib/api_browser/app/bower_components/showdown/compressed/extensions/prettify.min.js +0 -2
- data/lib/api_browser/app/bower_components/showdown/compressed/extensions/prettify.min.js.map +0 -1
- data/lib/api_browser/app/bower_components/showdown/compressed/extensions/table.min.js +0 -2
- data/lib/api_browser/app/bower_components/showdown/compressed/extensions/table.min.js.map +0 -1
- data/lib/api_browser/app/bower_components/showdown/compressed/extensions/twitter.min.js +0 -2
- data/lib/api_browser/app/bower_components/showdown/compressed/extensions/twitter.min.js.map +0 -1
- data/lib/api_browser/app/bower_components/showdown/license.txt +0 -34
- data/lib/api_browser/app/bower_components/showdown/package.json +0 -47
- data/lib/api_browser/app/bower_components/showdown/src/extensions/github.js +0 -25
- data/lib/api_browser/app/bower_components/showdown/src/extensions/prettify.js +0 -29
- data/lib/api_browser/app/bower_components/showdown/src/extensions/table.js +0 -106
- data/lib/api_browser/app/bower_components/showdown/src/extensions/twitter.js +0 -42
- data/lib/api_browser/app/bower_components/showdown/src/ng-showdown.js +0 -150
- data/lib/api_browser/app/bower_components/showdown/src/showdown.js +0 -1454
Binary file
|
Binary file
|
data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
//= require bootstrap/affix
|
2
|
-
//= require bootstrap/alert
|
3
|
-
//= require bootstrap/button
|
4
|
-
//= require bootstrap/carousel
|
5
|
-
//= require bootstrap/collapse
|
6
|
-
//= require bootstrap/dropdown
|
7
|
-
//= require bootstrap/tab
|
8
|
-
//= require bootstrap/transition
|
9
|
-
//= require bootstrap/scrollspy
|
10
|
-
//= require bootstrap/modal
|
11
|
-
//= require bootstrap/tooltip
|
12
|
-
//= require bootstrap/popover
|
@@ -1,126 +0,0 @@
|
|
1
|
-
/* ========================================================================
|
2
|
-
* Bootstrap: affix.js v3.0.3
|
3
|
-
* http://getbootstrap.com/javascript/#affix
|
4
|
-
* ========================================================================
|
5
|
-
* Copyright 2013 Twitter, Inc.
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
* ======================================================================== */
|
19
|
-
|
20
|
-
|
21
|
-
+function ($) { "use strict";
|
22
|
-
|
23
|
-
// AFFIX CLASS DEFINITION
|
24
|
-
// ======================
|
25
|
-
|
26
|
-
var Affix = function (element, options) {
|
27
|
-
this.options = $.extend({}, Affix.DEFAULTS, options)
|
28
|
-
this.$window = $(window)
|
29
|
-
.on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
|
30
|
-
.on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))
|
31
|
-
|
32
|
-
this.$element = $(element)
|
33
|
-
this.affixed =
|
34
|
-
this.unpin = null
|
35
|
-
|
36
|
-
this.checkPosition()
|
37
|
-
}
|
38
|
-
|
39
|
-
Affix.RESET = 'affix affix-top affix-bottom'
|
40
|
-
|
41
|
-
Affix.DEFAULTS = {
|
42
|
-
offset: 0
|
43
|
-
}
|
44
|
-
|
45
|
-
Affix.prototype.checkPositionWithEventLoop = function () {
|
46
|
-
setTimeout($.proxy(this.checkPosition, this), 1)
|
47
|
-
}
|
48
|
-
|
49
|
-
Affix.prototype.checkPosition = function () {
|
50
|
-
if (!this.$element.is(':visible')) return
|
51
|
-
|
52
|
-
var scrollHeight = $(document).height()
|
53
|
-
var scrollTop = this.$window.scrollTop()
|
54
|
-
var position = this.$element.offset()
|
55
|
-
var offset = this.options.offset
|
56
|
-
var offsetTop = offset.top
|
57
|
-
var offsetBottom = offset.bottom
|
58
|
-
|
59
|
-
if (typeof offset != 'object') offsetBottom = offsetTop = offset
|
60
|
-
if (typeof offsetTop == 'function') offsetTop = offset.top()
|
61
|
-
if (typeof offsetBottom == 'function') offsetBottom = offset.bottom()
|
62
|
-
|
63
|
-
var affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ? false :
|
64
|
-
offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? 'bottom' :
|
65
|
-
offsetTop != null && (scrollTop <= offsetTop) ? 'top' : false
|
66
|
-
|
67
|
-
if (this.affixed === affix) return
|
68
|
-
if (this.unpin) this.$element.css('top', '')
|
69
|
-
|
70
|
-
this.affixed = affix
|
71
|
-
this.unpin = affix == 'bottom' ? position.top - scrollTop : null
|
72
|
-
|
73
|
-
this.$element.removeClass(Affix.RESET).addClass('affix' + (affix ? '-' + affix : ''))
|
74
|
-
|
75
|
-
if (affix == 'bottom') {
|
76
|
-
this.$element.offset({ top: document.body.offsetHeight - offsetBottom - this.$element.height() })
|
77
|
-
}
|
78
|
-
}
|
79
|
-
|
80
|
-
|
81
|
-
// AFFIX PLUGIN DEFINITION
|
82
|
-
// =======================
|
83
|
-
|
84
|
-
var old = $.fn.affix
|
85
|
-
|
86
|
-
$.fn.affix = function (option) {
|
87
|
-
return this.each(function () {
|
88
|
-
var $this = $(this)
|
89
|
-
var data = $this.data('bs.affix')
|
90
|
-
var options = typeof option == 'object' && option
|
91
|
-
|
92
|
-
if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
|
93
|
-
if (typeof option == 'string') data[option]()
|
94
|
-
})
|
95
|
-
}
|
96
|
-
|
97
|
-
$.fn.affix.Constructor = Affix
|
98
|
-
|
99
|
-
|
100
|
-
// AFFIX NO CONFLICT
|
101
|
-
// =================
|
102
|
-
|
103
|
-
$.fn.affix.noConflict = function () {
|
104
|
-
$.fn.affix = old
|
105
|
-
return this
|
106
|
-
}
|
107
|
-
|
108
|
-
|
109
|
-
// AFFIX DATA-API
|
110
|
-
// ==============
|
111
|
-
|
112
|
-
$(window).on('load', function () {
|
113
|
-
$('[data-spy="affix"]').each(function () {
|
114
|
-
var $spy = $(this)
|
115
|
-
var data = $spy.data()
|
116
|
-
|
117
|
-
data.offset = data.offset || {}
|
118
|
-
|
119
|
-
if (data.offsetBottom) data.offset.bottom = data.offsetBottom
|
120
|
-
if (data.offsetTop) data.offset.top = data.offsetTop
|
121
|
-
|
122
|
-
$spy.affix(data)
|
123
|
-
})
|
124
|
-
})
|
125
|
-
|
126
|
-
}(jQuery);
|
@@ -1,98 +0,0 @@
|
|
1
|
-
/* ========================================================================
|
2
|
-
* Bootstrap: alert.js v3.0.3
|
3
|
-
* http://getbootstrap.com/javascript/#alerts
|
4
|
-
* ========================================================================
|
5
|
-
* Copyright 2013 Twitter, Inc.
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
* ======================================================================== */
|
19
|
-
|
20
|
-
|
21
|
-
+function ($) { "use strict";
|
22
|
-
|
23
|
-
// ALERT CLASS DEFINITION
|
24
|
-
// ======================
|
25
|
-
|
26
|
-
var dismiss = '[data-dismiss="alert"]'
|
27
|
-
var Alert = function (el) {
|
28
|
-
$(el).on('click', dismiss, this.close)
|
29
|
-
}
|
30
|
-
|
31
|
-
Alert.prototype.close = function (e) {
|
32
|
-
var $this = $(this)
|
33
|
-
var selector = $this.attr('data-target')
|
34
|
-
|
35
|
-
if (!selector) {
|
36
|
-
selector = $this.attr('href')
|
37
|
-
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
|
38
|
-
}
|
39
|
-
|
40
|
-
var $parent = $(selector)
|
41
|
-
|
42
|
-
if (e) e.preventDefault()
|
43
|
-
|
44
|
-
if (!$parent.length) {
|
45
|
-
$parent = $this.hasClass('alert') ? $this : $this.parent()
|
46
|
-
}
|
47
|
-
|
48
|
-
$parent.trigger(e = $.Event('close.bs.alert'))
|
49
|
-
|
50
|
-
if (e.isDefaultPrevented()) return
|
51
|
-
|
52
|
-
$parent.removeClass('in')
|
53
|
-
|
54
|
-
function removeElement() {
|
55
|
-
$parent.trigger('closed.bs.alert').remove()
|
56
|
-
}
|
57
|
-
|
58
|
-
$.support.transition && $parent.hasClass('fade') ?
|
59
|
-
$parent
|
60
|
-
.one($.support.transition.end, removeElement)
|
61
|
-
.emulateTransitionEnd(150) :
|
62
|
-
removeElement()
|
63
|
-
}
|
64
|
-
|
65
|
-
|
66
|
-
// ALERT PLUGIN DEFINITION
|
67
|
-
// =======================
|
68
|
-
|
69
|
-
var old = $.fn.alert
|
70
|
-
|
71
|
-
$.fn.alert = function (option) {
|
72
|
-
return this.each(function () {
|
73
|
-
var $this = $(this)
|
74
|
-
var data = $this.data('bs.alert')
|
75
|
-
|
76
|
-
if (!data) $this.data('bs.alert', (data = new Alert(this)))
|
77
|
-
if (typeof option == 'string') data[option].call($this)
|
78
|
-
})
|
79
|
-
}
|
80
|
-
|
81
|
-
$.fn.alert.Constructor = Alert
|
82
|
-
|
83
|
-
|
84
|
-
// ALERT NO CONFLICT
|
85
|
-
// =================
|
86
|
-
|
87
|
-
$.fn.alert.noConflict = function () {
|
88
|
-
$.fn.alert = old
|
89
|
-
return this
|
90
|
-
}
|
91
|
-
|
92
|
-
|
93
|
-
// ALERT DATA-API
|
94
|
-
// ==============
|
95
|
-
|
96
|
-
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
|
97
|
-
|
98
|
-
}(jQuery);
|
@@ -1,115 +0,0 @@
|
|
1
|
-
/* ========================================================================
|
2
|
-
* Bootstrap: button.js v3.0.3
|
3
|
-
* http://getbootstrap.com/javascript/#buttons
|
4
|
-
* ========================================================================
|
5
|
-
* Copyright 2013 Twitter, Inc.
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
* ======================================================================== */
|
19
|
-
|
20
|
-
|
21
|
-
+function ($) { "use strict";
|
22
|
-
|
23
|
-
// BUTTON PUBLIC CLASS DEFINITION
|
24
|
-
// ==============================
|
25
|
-
|
26
|
-
var Button = function (element, options) {
|
27
|
-
this.$element = $(element)
|
28
|
-
this.options = $.extend({}, Button.DEFAULTS, options)
|
29
|
-
}
|
30
|
-
|
31
|
-
Button.DEFAULTS = {
|
32
|
-
loadingText: 'loading...'
|
33
|
-
}
|
34
|
-
|
35
|
-
Button.prototype.setState = function (state) {
|
36
|
-
var d = 'disabled'
|
37
|
-
var $el = this.$element
|
38
|
-
var val = $el.is('input') ? 'val' : 'html'
|
39
|
-
var data = $el.data()
|
40
|
-
|
41
|
-
state = state + 'Text'
|
42
|
-
|
43
|
-
if (!data.resetText) $el.data('resetText', $el[val]())
|
44
|
-
|
45
|
-
$el[val](data[state] || this.options[state])
|
46
|
-
|
47
|
-
// push to event loop to allow forms to submit
|
48
|
-
setTimeout(function () {
|
49
|
-
state == 'loadingText' ?
|
50
|
-
$el.addClass(d).attr(d, d) :
|
51
|
-
$el.removeClass(d).removeAttr(d);
|
52
|
-
}, 0)
|
53
|
-
}
|
54
|
-
|
55
|
-
Button.prototype.toggle = function () {
|
56
|
-
var $parent = this.$element.closest('[data-toggle="buttons"]')
|
57
|
-
var changed = true
|
58
|
-
|
59
|
-
if ($parent.length) {
|
60
|
-
var $input = this.$element.find('input')
|
61
|
-
if ($input.prop('type') === 'radio') {
|
62
|
-
// see if clicking on current one
|
63
|
-
if ($input.prop('checked') && this.$element.hasClass('active'))
|
64
|
-
changed = false
|
65
|
-
else
|
66
|
-
$parent.find('.active').removeClass('active')
|
67
|
-
}
|
68
|
-
if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change')
|
69
|
-
}
|
70
|
-
|
71
|
-
if (changed) this.$element.toggleClass('active')
|
72
|
-
}
|
73
|
-
|
74
|
-
|
75
|
-
// BUTTON PLUGIN DEFINITION
|
76
|
-
// ========================
|
77
|
-
|
78
|
-
var old = $.fn.button
|
79
|
-
|
80
|
-
$.fn.button = function (option) {
|
81
|
-
return this.each(function () {
|
82
|
-
var $this = $(this)
|
83
|
-
var data = $this.data('bs.button')
|
84
|
-
var options = typeof option == 'object' && option
|
85
|
-
|
86
|
-
if (!data) $this.data('bs.button', (data = new Button(this, options)))
|
87
|
-
|
88
|
-
if (option == 'toggle') data.toggle()
|
89
|
-
else if (option) data.setState(option)
|
90
|
-
})
|
91
|
-
}
|
92
|
-
|
93
|
-
$.fn.button.Constructor = Button
|
94
|
-
|
95
|
-
|
96
|
-
// BUTTON NO CONFLICT
|
97
|
-
// ==================
|
98
|
-
|
99
|
-
$.fn.button.noConflict = function () {
|
100
|
-
$.fn.button = old
|
101
|
-
return this
|
102
|
-
}
|
103
|
-
|
104
|
-
|
105
|
-
// BUTTON DATA-API
|
106
|
-
// ===============
|
107
|
-
|
108
|
-
$(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) {
|
109
|
-
var $btn = $(e.target)
|
110
|
-
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
|
111
|
-
$btn.button('toggle')
|
112
|
-
e.preventDefault()
|
113
|
-
})
|
114
|
-
|
115
|
-
}(jQuery);
|
@@ -1,217 +0,0 @@
|
|
1
|
-
/* ========================================================================
|
2
|
-
* Bootstrap: carousel.js v3.0.3
|
3
|
-
* http://getbootstrap.com/javascript/#carousel
|
4
|
-
* ========================================================================
|
5
|
-
* Copyright 2013 Twitter, Inc.
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
* ======================================================================== */
|
19
|
-
|
20
|
-
|
21
|
-
+function ($) { "use strict";
|
22
|
-
|
23
|
-
// CAROUSEL CLASS DEFINITION
|
24
|
-
// =========================
|
25
|
-
|
26
|
-
var Carousel = function (element, options) {
|
27
|
-
this.$element = $(element)
|
28
|
-
this.$indicators = this.$element.find('.carousel-indicators')
|
29
|
-
this.options = options
|
30
|
-
this.paused =
|
31
|
-
this.sliding =
|
32
|
-
this.interval =
|
33
|
-
this.$active =
|
34
|
-
this.$items = null
|
35
|
-
|
36
|
-
this.options.pause == 'hover' && this.$element
|
37
|
-
.on('mouseenter', $.proxy(this.pause, this))
|
38
|
-
.on('mouseleave', $.proxy(this.cycle, this))
|
39
|
-
}
|
40
|
-
|
41
|
-
Carousel.DEFAULTS = {
|
42
|
-
interval: 5000
|
43
|
-
, pause: 'hover'
|
44
|
-
, wrap: true
|
45
|
-
}
|
46
|
-
|
47
|
-
Carousel.prototype.cycle = function (e) {
|
48
|
-
e || (this.paused = false)
|
49
|
-
|
50
|
-
this.interval && clearInterval(this.interval)
|
51
|
-
|
52
|
-
this.options.interval
|
53
|
-
&& !this.paused
|
54
|
-
&& (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
|
55
|
-
|
56
|
-
return this
|
57
|
-
}
|
58
|
-
|
59
|
-
Carousel.prototype.getActiveIndex = function () {
|
60
|
-
this.$active = this.$element.find('.item.active')
|
61
|
-
this.$items = this.$active.parent().children()
|
62
|
-
|
63
|
-
return this.$items.index(this.$active)
|
64
|
-
}
|
65
|
-
|
66
|
-
Carousel.prototype.to = function (pos) {
|
67
|
-
var that = this
|
68
|
-
var activeIndex = this.getActiveIndex()
|
69
|
-
|
70
|
-
if (pos > (this.$items.length - 1) || pos < 0) return
|
71
|
-
|
72
|
-
if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) })
|
73
|
-
if (activeIndex == pos) return this.pause().cycle()
|
74
|
-
|
75
|
-
return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
|
76
|
-
}
|
77
|
-
|
78
|
-
Carousel.prototype.pause = function (e) {
|
79
|
-
e || (this.paused = true)
|
80
|
-
|
81
|
-
if (this.$element.find('.next, .prev').length && $.support.transition.end) {
|
82
|
-
this.$element.trigger($.support.transition.end)
|
83
|
-
this.cycle(true)
|
84
|
-
}
|
85
|
-
|
86
|
-
this.interval = clearInterval(this.interval)
|
87
|
-
|
88
|
-
return this
|
89
|
-
}
|
90
|
-
|
91
|
-
Carousel.prototype.next = function () {
|
92
|
-
if (this.sliding) return
|
93
|
-
return this.slide('next')
|
94
|
-
}
|
95
|
-
|
96
|
-
Carousel.prototype.prev = function () {
|
97
|
-
if (this.sliding) return
|
98
|
-
return this.slide('prev')
|
99
|
-
}
|
100
|
-
|
101
|
-
Carousel.prototype.slide = function (type, next) {
|
102
|
-
var $active = this.$element.find('.item.active')
|
103
|
-
var $next = next || $active[type]()
|
104
|
-
var isCycling = this.interval
|
105
|
-
var direction = type == 'next' ? 'left' : 'right'
|
106
|
-
var fallback = type == 'next' ? 'first' : 'last'
|
107
|
-
var that = this
|
108
|
-
|
109
|
-
if (!$next.length) {
|
110
|
-
if (!this.options.wrap) return
|
111
|
-
$next = this.$element.find('.item')[fallback]()
|
112
|
-
}
|
113
|
-
|
114
|
-
this.sliding = true
|
115
|
-
|
116
|
-
isCycling && this.pause()
|
117
|
-
|
118
|
-
var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction })
|
119
|
-
|
120
|
-
if ($next.hasClass('active')) return
|
121
|
-
|
122
|
-
if (this.$indicators.length) {
|
123
|
-
this.$indicators.find('.active').removeClass('active')
|
124
|
-
this.$element.one('slid.bs.carousel', function () {
|
125
|
-
var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
|
126
|
-
$nextIndicator && $nextIndicator.addClass('active')
|
127
|
-
})
|
128
|
-
}
|
129
|
-
|
130
|
-
if ($.support.transition && this.$element.hasClass('slide')) {
|
131
|
-
this.$element.trigger(e)
|
132
|
-
if (e.isDefaultPrevented()) return
|
133
|
-
$next.addClass(type)
|
134
|
-
$next[0].offsetWidth // force reflow
|
135
|
-
$active.addClass(direction)
|
136
|
-
$next.addClass(direction)
|
137
|
-
$active
|
138
|
-
.one($.support.transition.end, function () {
|
139
|
-
$next.removeClass([type, direction].join(' ')).addClass('active')
|
140
|
-
$active.removeClass(['active', direction].join(' '))
|
141
|
-
that.sliding = false
|
142
|
-
setTimeout(function () { that.$element.trigger('slid.bs.carousel') }, 0)
|
143
|
-
})
|
144
|
-
.emulateTransitionEnd(600)
|
145
|
-
} else {
|
146
|
-
this.$element.trigger(e)
|
147
|
-
if (e.isDefaultPrevented()) return
|
148
|
-
$active.removeClass('active')
|
149
|
-
$next.addClass('active')
|
150
|
-
this.sliding = false
|
151
|
-
this.$element.trigger('slid.bs.carousel')
|
152
|
-
}
|
153
|
-
|
154
|
-
isCycling && this.cycle()
|
155
|
-
|
156
|
-
return this
|
157
|
-
}
|
158
|
-
|
159
|
-
|
160
|
-
// CAROUSEL PLUGIN DEFINITION
|
161
|
-
// ==========================
|
162
|
-
|
163
|
-
var old = $.fn.carousel
|
164
|
-
|
165
|
-
$.fn.carousel = function (option) {
|
166
|
-
return this.each(function () {
|
167
|
-
var $this = $(this)
|
168
|
-
var data = $this.data('bs.carousel')
|
169
|
-
var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
|
170
|
-
var action = typeof option == 'string' ? option : options.slide
|
171
|
-
|
172
|
-
if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
|
173
|
-
if (typeof option == 'number') data.to(option)
|
174
|
-
else if (action) data[action]()
|
175
|
-
else if (options.interval) data.pause().cycle()
|
176
|
-
})
|
177
|
-
}
|
178
|
-
|
179
|
-
$.fn.carousel.Constructor = Carousel
|
180
|
-
|
181
|
-
|
182
|
-
// CAROUSEL NO CONFLICT
|
183
|
-
// ====================
|
184
|
-
|
185
|
-
$.fn.carousel.noConflict = function () {
|
186
|
-
$.fn.carousel = old
|
187
|
-
return this
|
188
|
-
}
|
189
|
-
|
190
|
-
|
191
|
-
// CAROUSEL DATA-API
|
192
|
-
// =================
|
193
|
-
|
194
|
-
$(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
|
195
|
-
var $this = $(this), href
|
196
|
-
var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
197
|
-
var options = $.extend({}, $target.data(), $this.data())
|
198
|
-
var slideIndex = $this.attr('data-slide-to')
|
199
|
-
if (slideIndex) options.interval = false
|
200
|
-
|
201
|
-
$target.carousel(options)
|
202
|
-
|
203
|
-
if (slideIndex = $this.attr('data-slide-to')) {
|
204
|
-
$target.data('bs.carousel').to(slideIndex)
|
205
|
-
}
|
206
|
-
|
207
|
-
e.preventDefault()
|
208
|
-
})
|
209
|
-
|
210
|
-
$(window).on('load', function () {
|
211
|
-
$('[data-ride="carousel"]').each(function () {
|
212
|
-
var $carousel = $(this)
|
213
|
-
$carousel.carousel($carousel.data())
|
214
|
-
})
|
215
|
-
})
|
216
|
-
|
217
|
-
}(jQuery);
|