jsduck 0.6.1 → 2.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/README.md +35 -13
- data/Rakefile +129 -0
- data/bin/jsduck +112 -20
- data/jsduck.gemspec +10 -7
- data/lib/jsduck/aggregator.rb +46 -20
- data/lib/jsduck/aliases.rb +39 -0
- data/lib/jsduck/app.rb +123 -51
- data/lib/jsduck/categories.rb +132 -0
- data/lib/jsduck/class.rb +71 -18
- data/lib/jsduck/doc_formatter.rb +61 -26
- data/lib/jsduck/doc_parser.rb +53 -2
- data/lib/jsduck/exporter.rb +14 -15
- data/lib/jsduck/guides.rb +110 -0
- data/lib/jsduck/js_parser.rb +18 -4
- data/lib/jsduck/jsonp.rb +17 -0
- data/lib/jsduck/logger.rb +36 -0
- data/lib/jsduck/merger.rb +69 -51
- data/lib/jsduck/page.rb +1 -1
- data/lib/jsduck/relations.rb +14 -3
- data/lib/jsduck/{members.rb → search_data.rb} +3 -28
- data/lib/jsduck/source_file.rb +4 -4
- data/lib/jsduck/source_writer.rb +2 -2
- data/lib/jsduck/timer.rb +6 -2
- data/lib/jsduck/tree.rb +29 -16
- data/lib/jsduck/tree_icons.rb +1 -1
- data/template/README.md +14 -0
- data/template/app.js +25 -0
- data/template/app/Application.js +53 -0
- data/template/app/Favorites.js +88 -0
- data/template/app/History.js +45 -0
- data/template/app/LocalStore.js +45 -0
- data/template/app/Settings.js +39 -0
- data/template/app/Syntax.js +20 -0
- data/template/app/controller/Classes.js +301 -0
- data/template/app/controller/Search.js +156 -0
- data/template/app/model/Favorite.js +11 -0
- data/template/app/model/Setting.js +11 -0
- data/template/app/store/Favorites.js +7 -0
- data/template/app/store/Search.js +14 -0
- data/template/app/store/Settings.js +7 -0
- data/template/app/view/ClassGrid.js +109 -0
- data/template/app/view/HoverMenu.js +59 -0
- data/template/app/view/HoverMenuButton.js +147 -0
- data/template/app/view/Viewport.js +240 -0
- data/template/app/view/cls/Header.js +47 -0
- data/template/app/view/cls/Overview.js +415 -0
- data/template/app/view/cls/Toolbar.js +199 -0
- data/template/app/view/index/Container.js +63 -0
- data/template/app/view/search/Dropdown.js +53 -0
- data/template/app/view/tree/Tree.js +133 -0
- data/template/favicon.ico +0 -0
- data/template/index.html +32 -37
- data/template/{resources/prettify → prettify}/prettify.css +0 -0
- data/template/{resources/prettify → prettify}/prettify.js +0 -0
- data/template/resources/images/class-m.png +0 -0
- data/template/resources/images/class-sm.png +0 -0
- data/template/resources/images/component-m.png +0 -0
- data/template/resources/images/configs.png +0 -0
- data/template/resources/images/data-package.png +0 -0
- data/template/resources/images/doc-m.png +0 -0
- data/template/resources/images/drag-bar-center.png +0 -0
- data/template/resources/{elbow-end.gif → images/elbow-end.gif} +0 -0
- data/template/resources/images/events.png +0 -0
- data/template/resources/images/expandcollapse.png +0 -0
- data/template/resources/images/guide-icon.png +0 -0
- data/template/resources/images/guides.png +0 -0
- data/template/resources/images/headBG.png +0 -0
- data/template/resources/images/header.gif +0 -0
- data/template/resources/images/icon.png +0 -0
- data/template/resources/images/icons.png +0 -0
- data/template/resources/images/loading-title.png +0 -0
- data/template/resources/images/loading.gif +0 -0
- data/template/resources/{member-collapsed.gif → images/member-collapsed.gif} +0 -0
- data/template/resources/{member-expanded.gif → images/member-expanded.gif} +0 -0
- data/template/resources/{member-hover.gif → images/member-hover.gif} +0 -0
- data/template/resources/images/methods.png +0 -0
- data/template/resources/images/model.png +0 -0
- data/template/resources/images/properties.png +0 -0
- data/template/resources/images/root-lines.png +0 -0
- data/template/resources/images/search-box.png +0 -0
- data/template/resources/images/singleton-m.png +0 -0
- data/template/resources/images/version-tabs.png +0 -0
- data/template/resources/images/x.png +0 -0
- data/template/resources/images/x12.png +0 -0
- metadata +84 -387
- data/lib/jsduck/cfg_table.rb +0 -21
- data/lib/jsduck/event_table.rb +0 -33
- data/lib/jsduck/inheritance_tree.rb +0 -42
- data/lib/jsduck/long_params.rb +0 -30
- data/lib/jsduck/method_table.rb +0 -45
- data/lib/jsduck/property_table.rb +0 -21
- data/lib/jsduck/short_params.rb +0 -24
- data/lib/jsduck/table.rb +0 -121
- data/template/resources/TabCloseMenu.js +0 -150
- data/template/resources/block-bottom.gif +0 -0
- data/template/resources/block-top.gif +0 -0
- data/template/resources/class.gif +0 -0
- data/template/resources/cmp.gif +0 -0
- data/template/resources/collapse-all.gif +0 -0
- data/template/resources/config.gif +0 -0
- data/template/resources/css/ext-all.css +0 -6993
- data/template/resources/css/xtheme-gray.css +0 -1654
- data/template/resources/docs.css +0 -361
- data/template/resources/docs.gif +0 -0
- data/template/resources/docs.js +0 -769
- data/template/resources/event.gif +0 -0
- data/template/resources/expand-all.gif +0 -0
- data/template/resources/expand-bg-over.gif +0 -0
- data/template/resources/expand-bg.gif +0 -0
- data/template/resources/expand-members.gif +0 -0
- data/template/resources/ext-all.js +0 -11
- data/template/resources/ext-base.js +0 -7
- data/template/resources/extanim32.gif +0 -0
- data/template/resources/fav.gif +0 -0
- data/template/resources/favicon.ico +0 -0
- data/template/resources/hd-bg.png +0 -0
- data/template/resources/hide-inherited.gif +0 -0
- data/template/resources/images/default/box/corners-blue.gif +0 -0
- data/template/resources/images/default/box/corners.gif +0 -0
- data/template/resources/images/default/box/l-blue.gif +0 -0
- data/template/resources/images/default/box/l.gif +0 -0
- data/template/resources/images/default/box/r-blue.gif +0 -0
- data/template/resources/images/default/box/r.gif +0 -0
- data/template/resources/images/default/box/tb-blue.gif +0 -0
- data/template/resources/images/default/box/tb.gif +0 -0
- data/template/resources/images/default/button/arrow.gif +0 -0
- data/template/resources/images/default/button/btn.gif +0 -0
- data/template/resources/images/default/button/group-cs.gif +0 -0
- data/template/resources/images/default/button/group-lr.gif +0 -0
- data/template/resources/images/default/button/group-tb.gif +0 -0
- data/template/resources/images/default/button/s-arrow-b-noline.gif +0 -0
- data/template/resources/images/default/button/s-arrow-b.gif +0 -0
- data/template/resources/images/default/button/s-arrow-bo.gif +0 -0
- data/template/resources/images/default/button/s-arrow-noline.gif +0 -0
- data/template/resources/images/default/button/s-arrow-o.gif +0 -0
- data/template/resources/images/default/button/s-arrow.gif +0 -0
- data/template/resources/images/default/dd/drop-add.gif +0 -0
- data/template/resources/images/default/dd/drop-no.gif +0 -0
- data/template/resources/images/default/dd/drop-yes.gif +0 -0
- data/template/resources/images/default/editor/tb-sprite.gif +0 -0
- data/template/resources/images/default/form/checkbox.gif +0 -0
- data/template/resources/images/default/form/clear-trigger.gif +0 -0
- data/template/resources/images/default/form/clear-trigger.psd +0 -0
- data/template/resources/images/default/form/date-trigger.gif +0 -0
- data/template/resources/images/default/form/date-trigger.psd +0 -0
- data/template/resources/images/default/form/error-tip-corners.gif +0 -0
- data/template/resources/images/default/form/exclamation.gif +0 -0
- data/template/resources/images/default/form/radio.gif +0 -0
- data/template/resources/images/default/form/search-trigger.gif +0 -0
- data/template/resources/images/default/form/search-trigger.psd +0 -0
- data/template/resources/images/default/form/text-bg.gif +0 -0
- data/template/resources/images/default/form/trigger-square.gif +0 -0
- data/template/resources/images/default/form/trigger-square.psd +0 -0
- data/template/resources/images/default/form/trigger-tpl.gif +0 -0
- data/template/resources/images/default/form/trigger.gif +0 -0
- data/template/resources/images/default/form/trigger.psd +0 -0
- data/template/resources/images/default/gradient-bg.gif +0 -0
- data/template/resources/images/default/grid/arrow-left-white.gif +0 -0
- data/template/resources/images/default/grid/arrow-right-white.gif +0 -0
- data/template/resources/images/default/grid/col-move-bottom.gif +0 -0
- data/template/resources/images/default/grid/col-move-top.gif +0 -0
- data/template/resources/images/default/grid/columns.gif +0 -0
- data/template/resources/images/default/grid/dirty.gif +0 -0
- data/template/resources/images/default/grid/done.gif +0 -0
- data/template/resources/images/default/grid/drop-no.gif +0 -0
- data/template/resources/images/default/grid/drop-yes.gif +0 -0
- data/template/resources/images/default/grid/footer-bg.gif +0 -0
- data/template/resources/images/default/grid/grid-blue-hd.gif +0 -0
- data/template/resources/images/default/grid/grid-blue-split.gif +0 -0
- data/template/resources/images/default/grid/grid-hrow.gif +0 -0
- data/template/resources/images/default/grid/grid-loading.gif +0 -0
- data/template/resources/images/default/grid/grid-split.gif +0 -0
- data/template/resources/images/default/grid/grid-vista-hd.gif +0 -0
- data/template/resources/images/default/grid/grid3-hd-btn.gif +0 -0
- data/template/resources/images/default/grid/grid3-hrow-over.gif +0 -0
- data/template/resources/images/default/grid/grid3-hrow.gif +0 -0
- data/template/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
- data/template/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
- data/template/resources/images/default/grid/group-by.gif +0 -0
- data/template/resources/images/default/grid/group-collapse.gif +0 -0
- data/template/resources/images/default/grid/group-expand-sprite.gif +0 -0
- data/template/resources/images/default/grid/group-expand.gif +0 -0
- data/template/resources/images/default/grid/hd-pop.gif +0 -0
- data/template/resources/images/default/grid/hmenu-asc.gif +0 -0
- data/template/resources/images/default/grid/hmenu-desc.gif +0 -0
- data/template/resources/images/default/grid/hmenu-lock.gif +0 -0
- data/template/resources/images/default/grid/hmenu-lock.png +0 -0
- data/template/resources/images/default/grid/hmenu-unlock.gif +0 -0
- data/template/resources/images/default/grid/hmenu-unlock.png +0 -0
- data/template/resources/images/default/grid/invalid_line.gif +0 -0
- data/template/resources/images/default/grid/loading.gif +0 -0
- data/template/resources/images/default/grid/mso-hd.gif +0 -0
- data/template/resources/images/default/grid/nowait.gif +0 -0
- data/template/resources/images/default/grid/page-first-disabled.gif +0 -0
- data/template/resources/images/default/grid/page-first.gif +0 -0
- data/template/resources/images/default/grid/page-last-disabled.gif +0 -0
- data/template/resources/images/default/grid/page-last.gif +0 -0
- data/template/resources/images/default/grid/page-next-disabled.gif +0 -0
- data/template/resources/images/default/grid/page-next.gif +0 -0
- data/template/resources/images/default/grid/page-prev-disabled.gif +0 -0
- data/template/resources/images/default/grid/page-prev.gif +0 -0
- data/template/resources/images/default/grid/pick-button.gif +0 -0
- data/template/resources/images/default/grid/refresh.gif +0 -0
- data/template/resources/images/default/grid/row-check-sprite.gif +0 -0
- data/template/resources/images/default/grid/row-expand-sprite.gif +0 -0
- data/template/resources/images/default/grid/row-over.gif +0 -0
- data/template/resources/images/default/grid/row-sel.gif +0 -0
- data/template/resources/images/default/grid/sort-hd.gif +0 -0
- data/template/resources/images/default/grid/sort_asc.gif +0 -0
- data/template/resources/images/default/grid/sort_desc.gif +0 -0
- data/template/resources/images/default/grid/wait.gif +0 -0
- data/template/resources/images/default/layout/collapse.gif +0 -0
- data/template/resources/images/default/layout/expand.gif +0 -0
- data/template/resources/images/default/layout/gradient-bg.gif +0 -0
- data/template/resources/images/default/layout/mini-bottom.gif +0 -0
- data/template/resources/images/default/layout/mini-left.gif +0 -0
- data/template/resources/images/default/layout/mini-right.gif +0 -0
- data/template/resources/images/default/layout/mini-top.gif +0 -0
- data/template/resources/images/default/layout/ns-collapse.gif +0 -0
- data/template/resources/images/default/layout/ns-expand.gif +0 -0
- data/template/resources/images/default/layout/panel-close.gif +0 -0
- data/template/resources/images/default/layout/panel-title-bg.gif +0 -0
- data/template/resources/images/default/layout/panel-title-light-bg.gif +0 -0
- data/template/resources/images/default/layout/stick.gif +0 -0
- data/template/resources/images/default/layout/stuck.gif +0 -0
- data/template/resources/images/default/layout/tab-close-on.gif +0 -0
- data/template/resources/images/default/layout/tab-close.gif +0 -0
- data/template/resources/images/default/menu/checked.gif +0 -0
- data/template/resources/images/default/menu/group-checked.gif +0 -0
- data/template/resources/images/default/menu/item-over.gif +0 -0
- data/template/resources/images/default/menu/menu-parent.gif +0 -0
- data/template/resources/images/default/menu/menu.gif +0 -0
- data/template/resources/images/default/menu/unchecked.gif +0 -0
- data/template/resources/images/default/panel/corners-sprite.gif +0 -0
- data/template/resources/images/default/panel/left-right.gif +0 -0
- data/template/resources/images/default/panel/light-hd.gif +0 -0
- data/template/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
- data/template/resources/images/default/panel/tool-sprites.gif +0 -0
- data/template/resources/images/default/panel/tools-sprites-trans.gif +0 -0
- data/template/resources/images/default/panel/top-bottom.gif +0 -0
- data/template/resources/images/default/panel/top-bottom.png +0 -0
- data/template/resources/images/default/panel/white-corners-sprite.gif +0 -0
- data/template/resources/images/default/panel/white-left-right.gif +0 -0
- data/template/resources/images/default/panel/white-top-bottom.gif +0 -0
- data/template/resources/images/default/progress/progress-bg.gif +0 -0
- data/template/resources/images/default/qtip/bg.gif +0 -0
- data/template/resources/images/default/qtip/close.gif +0 -0
- data/template/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
- data/template/resources/images/default/qtip/tip-sprite.gif +0 -0
- data/template/resources/images/default/s.gif +0 -0
- data/template/resources/images/default/shadow-c.png +0 -0
- data/template/resources/images/default/shadow-lr.png +0 -0
- data/template/resources/images/default/shadow.png +0 -0
- data/template/resources/images/default/shared/blue-loading.gif +0 -0
- data/template/resources/images/default/shared/calendar.gif +0 -0
- data/template/resources/images/default/shared/glass-bg.gif +0 -0
- data/template/resources/images/default/shared/hd-sprite.gif +0 -0
- data/template/resources/images/default/shared/large-loading.gif +0 -0
- data/template/resources/images/default/shared/left-btn.gif +0 -0
- data/template/resources/images/default/shared/loading-balls.gif +0 -0
- data/template/resources/images/default/shared/right-btn.gif +0 -0
- data/template/resources/images/default/shared/warning.gif +0 -0
- data/template/resources/images/default/sizer/e-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/e-handle.gif +0 -0
- data/template/resources/images/default/sizer/ne-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/ne-handle.gif +0 -0
- data/template/resources/images/default/sizer/nw-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/nw-handle.gif +0 -0
- data/template/resources/images/default/sizer/s-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/s-handle.gif +0 -0
- data/template/resources/images/default/sizer/se-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/se-handle.gif +0 -0
- data/template/resources/images/default/sizer/square.gif +0 -0
- data/template/resources/images/default/sizer/sw-handle-dark.gif +0 -0
- data/template/resources/images/default/sizer/sw-handle.gif +0 -0
- data/template/resources/images/default/slider/slider-bg.png +0 -0
- data/template/resources/images/default/slider/slider-thumb.png +0 -0
- data/template/resources/images/default/slider/slider-v-bg.png +0 -0
- data/template/resources/images/default/slider/slider-v-thumb.png +0 -0
- data/template/resources/images/default/tabs/scroll-left.gif +0 -0
- data/template/resources/images/default/tabs/scroll-right.gif +0 -0
- data/template/resources/images/default/tabs/scroller-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-over-left-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-over-right-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-close.gif +0 -0
- data/template/resources/images/default/tabs/tab-strip-bg.gif +0 -0
- data/template/resources/images/default/tabs/tab-strip-bg.png +0 -0
- data/template/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
- data/template/resources/images/default/tabs/tabs-sprite.gif +0 -0
- data/template/resources/images/default/toolbar/bg.gif +0 -0
- data/template/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
- data/template/resources/images/default/toolbar/btn-arrow.gif +0 -0
- data/template/resources/images/default/toolbar/btn-over-bg.gif +0 -0
- data/template/resources/images/default/toolbar/gray-bg.gif +0 -0
- data/template/resources/images/default/toolbar/more.gif +0 -0
- data/template/resources/images/default/toolbar/tb-bg.gif +0 -0
- data/template/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
- data/template/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
- data/template/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
- data/template/resources/images/default/tree/arrows.gif +0 -0
- data/template/resources/images/default/tree/drop-add.gif +0 -0
- data/template/resources/images/default/tree/drop-between.gif +0 -0
- data/template/resources/images/default/tree/drop-no.gif +0 -0
- data/template/resources/images/default/tree/drop-over.gif +0 -0
- data/template/resources/images/default/tree/drop-under.gif +0 -0
- data/template/resources/images/default/tree/drop-yes.gif +0 -0
- data/template/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
- data/template/resources/images/default/tree/elbow-end-minus.gif +0 -0
- data/template/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
- data/template/resources/images/default/tree/elbow-end-plus.gif +0 -0
- data/template/resources/images/default/tree/elbow-end.gif +0 -0
- data/template/resources/images/default/tree/elbow-line.gif +0 -0
- data/template/resources/images/default/tree/elbow-minus-nl.gif +0 -0
- data/template/resources/images/default/tree/elbow-minus.gif +0 -0
- data/template/resources/images/default/tree/elbow-plus-nl.gif +0 -0
- data/template/resources/images/default/tree/elbow-plus.gif +0 -0
- data/template/resources/images/default/tree/elbow.gif +0 -0
- data/template/resources/images/default/tree/folder-open.gif +0 -0
- data/template/resources/images/default/tree/folder.gif +0 -0
- data/template/resources/images/default/tree/leaf.gif +0 -0
- data/template/resources/images/default/tree/loading.gif +0 -0
- data/template/resources/images/default/tree/s.gif +0 -0
- data/template/resources/images/default/window/icon-error.gif +0 -0
- data/template/resources/images/default/window/icon-info.gif +0 -0
- data/template/resources/images/default/window/icon-question.gif +0 -0
- data/template/resources/images/default/window/icon-warning.gif +0 -0
- data/template/resources/images/default/window/left-corners.png +0 -0
- data/template/resources/images/default/window/left-corners.psd +0 -0
- data/template/resources/images/default/window/left-right.png +0 -0
- data/template/resources/images/default/window/left-right.psd +0 -0
- data/template/resources/images/default/window/right-corners.png +0 -0
- data/template/resources/images/default/window/right-corners.psd +0 -0
- data/template/resources/images/default/window/top-bottom.png +0 -0
- data/template/resources/images/default/window/top-bottom.psd +0 -0
- data/template/resources/images/gray/button/btn-arrow.gif +0 -0
- data/template/resources/images/gray/button/btn-sprite.gif +0 -0
- data/template/resources/images/gray/button/btn.gif +0 -0
- data/template/resources/images/gray/button/group-cs.gif +0 -0
- data/template/resources/images/gray/button/group-lr.gif +0 -0
- data/template/resources/images/gray/button/group-tb.gif +0 -0
- data/template/resources/images/gray/button/s-arrow-bo.gif +0 -0
- data/template/resources/images/gray/button/s-arrow-o.gif +0 -0
- data/template/resources/images/gray/form/clear-trigger.gif +0 -0
- data/template/resources/images/gray/form/date-trigger.gif +0 -0
- data/template/resources/images/gray/form/search-trigger.gif +0 -0
- data/template/resources/images/gray/form/trigger-square.gif +0 -0
- data/template/resources/images/gray/form/trigger.gif +0 -0
- data/template/resources/images/gray/gradient-bg.gif +0 -0
- data/template/resources/images/gray/grid/col-move-bottom.gif +0 -0
- data/template/resources/images/gray/grid/col-move-top.gif +0 -0
- data/template/resources/images/gray/grid/grid3-hd-btn.gif +0 -0
- data/template/resources/images/gray/grid/grid3-hrow-over.gif +0 -0
- data/template/resources/images/gray/grid/grid3-hrow-over2.gif +0 -0
- data/template/resources/images/gray/grid/grid3-hrow.gif +0 -0
- data/template/resources/images/gray/grid/grid3-hrow2.gif +0 -0
- data/template/resources/images/gray/grid/grid3-special-col-bg.gif +0 -0
- data/template/resources/images/gray/grid/grid3-special-col-bg2.gif +0 -0
- data/template/resources/images/gray/grid/grid3-special-col-sel-bg.gif +0 -0
- data/template/resources/images/gray/grid/group-collapse.gif +0 -0
- data/template/resources/images/gray/grid/group-expand-sprite.gif +0 -0
- data/template/resources/images/gray/grid/group-expand.gif +0 -0
- data/template/resources/images/gray/grid/page-first.gif +0 -0
- data/template/resources/images/gray/grid/page-last.gif +0 -0
- data/template/resources/images/gray/grid/page-next.gif +0 -0
- data/template/resources/images/gray/grid/page-prev.gif +0 -0
- data/template/resources/images/gray/grid/refresh.gif +0 -0
- data/template/resources/images/gray/grid/row-expand-sprite.gif +0 -0
- data/template/resources/images/gray/grid/sort_asc.gif +0 -0
- data/template/resources/images/gray/grid/sort_desc.gif +0 -0
- data/template/resources/images/gray/menu/group-checked.gif +0 -0
- data/template/resources/images/gray/menu/item-over-disabled.gif +0 -0
- data/template/resources/images/gray/menu/item-over.gif +0 -0
- data/template/resources/images/gray/menu/menu-parent.gif +0 -0
- data/template/resources/images/gray/panel/corners-sprite.gif +0 -0
- data/template/resources/images/gray/panel/left-right.gif +0 -0
- data/template/resources/images/gray/panel/light-hd.gif +0 -0
- data/template/resources/images/gray/panel/tool-sprite-tpl.gif +0 -0
- data/template/resources/images/gray/panel/tool-sprites.gif +0 -0
- data/template/resources/images/gray/panel/tools-sprites-trans.gif +0 -0
- data/template/resources/images/gray/panel/top-bottom.gif +0 -0
- data/template/resources/images/gray/panel/top-bottom.png +0 -0
- data/template/resources/images/gray/panel/white-corners-sprite.gif +0 -0
- data/template/resources/images/gray/panel/white-left-right.gif +0 -0
- data/template/resources/images/gray/panel/white-top-bottom.gif +0 -0
- data/template/resources/images/gray/progress/progress-bg.gif +0 -0
- data/template/resources/images/gray/qtip/bg.gif +0 -0
- data/template/resources/images/gray/qtip/close.gif +0 -0
- data/template/resources/images/gray/qtip/tip-anchor-sprite.gif +0 -0
- data/template/resources/images/gray/qtip/tip-sprite.gif +0 -0
- data/template/resources/images/gray/s.gif +0 -0
- data/template/resources/images/gray/shared/hd-sprite.gif +0 -0
- data/template/resources/images/gray/shared/left-btn.gif +0 -0
- data/template/resources/images/gray/shared/right-btn.gif +0 -0
- data/template/resources/images/gray/sizer/e-handle.gif +0 -0
- data/template/resources/images/gray/sizer/ne-handle.gif +0 -0
- data/template/resources/images/gray/sizer/nw-handle.gif +0 -0
- data/template/resources/images/gray/sizer/s-handle.gif +0 -0
- data/template/resources/images/gray/sizer/se-handle.gif +0 -0
- data/template/resources/images/gray/sizer/square.gif +0 -0
- data/template/resources/images/gray/sizer/sw-handle.gif +0 -0
- data/template/resources/images/gray/slider/slider-thumb.png +0 -0
- data/template/resources/images/gray/slider/slider-v-thumb.png +0 -0
- data/template/resources/images/gray/tabs/scroll-left.gif +0 -0
- data/template/resources/images/gray/tabs/scroll-right.gif +0 -0
- data/template/resources/images/gray/tabs/scroller-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-left-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-over-left-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-over-right-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-btm-right-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-close.gif +0 -0
- data/template/resources/images/gray/tabs/tab-strip-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tab-strip-bg.png +0 -0
- data/template/resources/images/gray/tabs/tab-strip-btm-bg.gif +0 -0
- data/template/resources/images/gray/tabs/tabs-sprite.gif +0 -0
- data/template/resources/images/gray/toolbar/bg.gif +0 -0
- data/template/resources/images/gray/toolbar/btn-arrow-light.gif +0 -0
- data/template/resources/images/gray/toolbar/btn-arrow.gif +0 -0
- data/template/resources/images/gray/toolbar/btn-over-bg.gif +0 -0
- data/template/resources/images/gray/toolbar/gray-bg.gif +0 -0
- data/template/resources/images/gray/toolbar/more.gif +0 -0
- data/template/resources/images/gray/toolbar/tb-bg.gif +0 -0
- data/template/resources/images/gray/toolbar/tb-btn-sprite.gif +0 -0
- data/template/resources/images/gray/tree/arrows.gif +0 -0
- data/template/resources/images/gray/tree/elbow-end-minus-nl.gif +0 -0
- data/template/resources/images/gray/tree/elbow-end-minus.gif +0 -0
- data/template/resources/images/gray/tree/elbow-end-plus-nl.gif +0 -0
- data/template/resources/images/gray/tree/elbow-end-plus.gif +0 -0
- data/template/resources/images/gray/window/icon-error.gif +0 -0
- data/template/resources/images/gray/window/icon-info.gif +0 -0
- data/template/resources/images/gray/window/icon-question.gif +0 -0
- data/template/resources/images/gray/window/icon-warning.gif +0 -0
- data/template/resources/images/gray/window/left-corners.png +0 -0
- data/template/resources/images/gray/window/left-corners.pspimage +0 -0
- data/template/resources/images/gray/window/left-right.png +0 -0
- data/template/resources/images/gray/window/right-corners.png +0 -0
- data/template/resources/images/gray/window/top-bottom.png +0 -0
- data/template/resources/inherited.gif +0 -0
- data/template/resources/method.gif +0 -0
- data/template/resources/pkg-closed.gif +0 -0
- data/template/resources/pkg-open.gif +0 -0
- data/template/resources/pkg.gif +0 -0
- data/template/resources/prop.gif +0 -0
- data/template/resources/s.gif +0 -0
- data/template/resources/static.gif +0 -0
- data/template/resources/style.css +0 -291
- data/template/welcome.html +0 -45
@@ -0,0 +1,199 @@
|
|
1
|
+
/**
|
2
|
+
* Toolbar with menus providing quick access to class members.
|
3
|
+
*/
|
4
|
+
Ext.define('Docs.view.cls.Toolbar', {
|
5
|
+
extend: 'Ext.toolbar.Toolbar',
|
6
|
+
requires: [
|
7
|
+
'Docs.view.HoverMenuButton',
|
8
|
+
'Docs.Settings',
|
9
|
+
'Ext.form.field.Checkbox'
|
10
|
+
],
|
11
|
+
|
12
|
+
dock: 'top',
|
13
|
+
cls: 'member-links',
|
14
|
+
padding: '3 5',
|
15
|
+
|
16
|
+
/**
|
17
|
+
* @cfg {Object} docClass
|
18
|
+
* Documentation for a class.
|
19
|
+
*/
|
20
|
+
docClass: {},
|
21
|
+
|
22
|
+
initComponent: function() {
|
23
|
+
this.addEvents(
|
24
|
+
/**
|
25
|
+
* @event hideInherited
|
26
|
+
* Fires when hideInherited checkbox toggled.
|
27
|
+
* @param {Boolean} hide True when inherited items should get hidden.
|
28
|
+
*/
|
29
|
+
"hideInherited",
|
30
|
+
/**
|
31
|
+
* @event filter
|
32
|
+
* Fires when text typed to filter.
|
33
|
+
* @param {String} search The search text.
|
34
|
+
*/
|
35
|
+
"filter",
|
36
|
+
/**
|
37
|
+
* @event toggleExpanded
|
38
|
+
* Fires expandAll/collapseAll buttons clicked.
|
39
|
+
* @param {Boolean} expand True to expand all, false to collapse all.
|
40
|
+
*/
|
41
|
+
"toggleExpanded"
|
42
|
+
);
|
43
|
+
|
44
|
+
this.items = [];
|
45
|
+
this.memberButtons = {};
|
46
|
+
|
47
|
+
var memberTitles = {
|
48
|
+
cfg: "Configs",
|
49
|
+
property: "Properties",
|
50
|
+
method: "Methods",
|
51
|
+
event: "Events"
|
52
|
+
};
|
53
|
+
for (var type in memberTitles) {
|
54
|
+
var members = this.docClass.members[type];
|
55
|
+
var statics = this.docClass.statics[type];
|
56
|
+
if (members.length || statics.length) {
|
57
|
+
var btn = this.createMemberButton({
|
58
|
+
text: memberTitles[type],
|
59
|
+
type: type,
|
60
|
+
members: members.concat(statics)
|
61
|
+
});
|
62
|
+
this.memberButtons[type] = btn;
|
63
|
+
this.items.push(btn);
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
if (this.docClass.subclasses.length) {
|
68
|
+
this.items.push(this.createClassListButton("Sub Classes", this.docClass.subclasses));
|
69
|
+
}
|
70
|
+
if (this.docClass.mixedInto.length) {
|
71
|
+
this.items.push(this.createClassListButton("Mixed Into", this.docClass.mixedInto));
|
72
|
+
}
|
73
|
+
|
74
|
+
this.items = this.items.concat([
|
75
|
+
{ xtype: 'tbspacer', width: 10 },
|
76
|
+
this.filterField = Ext.widget("textfield", {
|
77
|
+
emptyText: 'Find class members...',
|
78
|
+
enableKeyEvents: true,
|
79
|
+
listeners: {
|
80
|
+
keyup: function(cmp) {
|
81
|
+
this.fireEvent("filter", cmp.getValue());
|
82
|
+
},
|
83
|
+
specialkey: function(cmp, event) {
|
84
|
+
if (event.keyCode === Ext.EventObject.ESC) {
|
85
|
+
cmp.reset();
|
86
|
+
this.fireEvent("filter", "");
|
87
|
+
}
|
88
|
+
},
|
89
|
+
scope: this
|
90
|
+
}
|
91
|
+
}),
|
92
|
+
{ xtype: 'tbfill' },
|
93
|
+
{
|
94
|
+
boxLabel: 'Hide inherited',
|
95
|
+
boxLabelAlign: 'before',
|
96
|
+
xtype: 'checkbox',
|
97
|
+
margin: '0 5 0 0',
|
98
|
+
padding: '0 0 5 0',
|
99
|
+
checked: Docs.Settings.get("hideInherited"),
|
100
|
+
handler: function(el) {
|
101
|
+
this.fireEvent("hideInherited", el.checked);
|
102
|
+
},
|
103
|
+
scope: this
|
104
|
+
},
|
105
|
+
{
|
106
|
+
xtype: 'button',
|
107
|
+
iconCls: 'expandAllMembers',
|
108
|
+
tooltip: "Expand all",
|
109
|
+
enableToggle: true,
|
110
|
+
toggleHandler: function(btn, pressed) {
|
111
|
+
btn.setIconCls(pressed ? 'collapseAllMembers' : 'expandAllMembers');
|
112
|
+
btn.setTooltip(pressed ? "Collapse all" : "Expand all");
|
113
|
+
this.fireEvent("toggleExpanded", pressed);
|
114
|
+
},
|
115
|
+
scope: this
|
116
|
+
}
|
117
|
+
]);
|
118
|
+
|
119
|
+
this.callParent(arguments);
|
120
|
+
},
|
121
|
+
|
122
|
+
createMemberButton: function(cfg) {
|
123
|
+
var data = Ext.Array.map(cfg.members, function(m) {
|
124
|
+
return this.createLinkRecord(this.docClass.name, m);
|
125
|
+
}, this);
|
126
|
+
|
127
|
+
return Ext.create('Docs.view.HoverMenuButton', {
|
128
|
+
text: cfg.text,
|
129
|
+
cls: 'icon-'+cfg.type,
|
130
|
+
store: this.createStore(data),
|
131
|
+
showCount: true,
|
132
|
+
listeners: {
|
133
|
+
click: function() {
|
134
|
+
this.up('classoverview').scrollToEl("#m-" + cfg.type);
|
135
|
+
},
|
136
|
+
scope: this
|
137
|
+
}
|
138
|
+
});
|
139
|
+
},
|
140
|
+
|
141
|
+
createClassListButton: function(text, classes) {
|
142
|
+
var data = Ext.Array.map(classes, function(cls) {
|
143
|
+
return this.createLinkRecord(cls);
|
144
|
+
}, this);
|
145
|
+
|
146
|
+
return Ext.create('Docs.view.HoverMenuButton', {
|
147
|
+
text: text,
|
148
|
+
cls: 'icon-subclass',
|
149
|
+
showCount: true,
|
150
|
+
store: this.createStore(data)
|
151
|
+
});
|
152
|
+
},
|
153
|
+
|
154
|
+
// creates store tha holds link records
|
155
|
+
createStore: function(records) {
|
156
|
+
var store = Ext.create('Ext.data.Store', {
|
157
|
+
fields: ['id', 'cls', 'url', 'label', 'inherited', 'static']
|
158
|
+
});
|
159
|
+
store.add(records);
|
160
|
+
return store;
|
161
|
+
},
|
162
|
+
|
163
|
+
// Creates link object referencing a class (and optionally a class member)
|
164
|
+
createLinkRecord: function(cls, member) {
|
165
|
+
return {
|
166
|
+
cls: cls,
|
167
|
+
url: member ? cls+"-"+member.tagname+"-"+member.name : cls,
|
168
|
+
label: member ? ((member.name === "constructor") ? cls : member.name) : cls,
|
169
|
+
inherited: member ? member.owner !== cls : false,
|
170
|
+
'static': member ? member['static'] : false
|
171
|
+
};
|
172
|
+
},
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Hides or unhides inherited members in dropdown menus.
|
176
|
+
* @param {Boolean} hide
|
177
|
+
*/
|
178
|
+
hideInherited: function(hide) {
|
179
|
+
Ext.Array.forEach(['cfg', 'property', 'method', 'event'], function(type) {
|
180
|
+
if (this.memberButtons[type]) {
|
181
|
+
var store = this.memberButtons[type].getStore();
|
182
|
+
if (hide) {
|
183
|
+
store.filterBy(function(m) { return !m.get("inherited"); });
|
184
|
+
}
|
185
|
+
else {
|
186
|
+
store.clearFilter();
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}, this);
|
190
|
+
},
|
191
|
+
|
192
|
+
/**
|
193
|
+
* Returns the current text in filter field.
|
194
|
+
* @return {String}
|
195
|
+
*/
|
196
|
+
getFilterValue: function() {
|
197
|
+
return this.filterField.getValue();
|
198
|
+
}
|
199
|
+
});
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/**
|
2
|
+
* List of classes on front page.
|
3
|
+
* Together with links to guides and icons legend.
|
4
|
+
*/
|
5
|
+
Ext.define('Docs.view.index.Container', {
|
6
|
+
extend: 'Ext.container.Container',
|
7
|
+
alias : 'widget.indexcontainer',
|
8
|
+
cls: 'class-list',
|
9
|
+
|
10
|
+
initComponent: function() {
|
11
|
+
var tpl = new Ext.XTemplate(
|
12
|
+
'<h1 class="top">{title}</h1>',
|
13
|
+
'<tpl if="notice">',
|
14
|
+
'<div class="notice">{notice}</div>',
|
15
|
+
'</tpl>',
|
16
|
+
'<div class="section legend">',
|
17
|
+
'<h4>Legend</h4>',
|
18
|
+
'<ul>',
|
19
|
+
'<li class="icon icon-pkg">Package</li>',
|
20
|
+
'<li class="icon icon-class">Class</li>',
|
21
|
+
'<li class="icon icon-singleton">Singleton</li>',
|
22
|
+
'<li class="icon icon-component">Component</li>',
|
23
|
+
'<li class="icon icon-guide">Guide</li>',
|
24
|
+
'</ul>',
|
25
|
+
'</div>',
|
26
|
+
'<tpl if="guides">',
|
27
|
+
'<div class="section guides">',
|
28
|
+
'<h1>Guides</h1>',
|
29
|
+
'{guides}',
|
30
|
+
'<div class="examples">',
|
31
|
+
'<a href="http://dev.sencha.com/deploy/ext-4.0.2a/examples/index.html">View the Ext 4.0 examples →</a>',
|
32
|
+
'</div>',
|
33
|
+
'</div>',
|
34
|
+
'</tpl>',
|
35
|
+
'{categories}'
|
36
|
+
);
|
37
|
+
|
38
|
+
this.html = tpl.apply(this.extractData());
|
39
|
+
|
40
|
+
this.callParent(arguments);
|
41
|
+
},
|
42
|
+
|
43
|
+
// Extracts HTML from hidden elements in page
|
44
|
+
extractData: function() {
|
45
|
+
var data = {
|
46
|
+
notice: Ext.get("notice-text"),
|
47
|
+
guides: Ext.get("guides-content"),
|
48
|
+
categories: Ext.get("categories-content")
|
49
|
+
};
|
50
|
+
for (var i in data) {
|
51
|
+
var el = data[i];
|
52
|
+
if (el) {
|
53
|
+
// If page contains the div then extract its contents,
|
54
|
+
// after that remove the original
|
55
|
+
data[i] = el.dom.innerHTML;
|
56
|
+
el.remove();
|
57
|
+
}
|
58
|
+
}
|
59
|
+
// Extract <title> text
|
60
|
+
data.title = Ext.query("title")[0].innerHTML;
|
61
|
+
return data;
|
62
|
+
}
|
63
|
+
});
|
@@ -0,0 +1,53 @@
|
|
1
|
+
/**
|
2
|
+
* Renders search results list.
|
3
|
+
*/
|
4
|
+
Ext.define('Docs.view.search.Dropdown', {
|
5
|
+
extend: 'Ext.view.View',
|
6
|
+
alias: 'widget.searchdropdown',
|
7
|
+
|
8
|
+
floating: true,
|
9
|
+
autoShow: false,
|
10
|
+
autoRender: true,
|
11
|
+
toFrontOnShow: true,
|
12
|
+
focusOnToFront: false,
|
13
|
+
|
14
|
+
store: 'Search',
|
15
|
+
|
16
|
+
id: 'search-dropdown',
|
17
|
+
overItemCls:'x-view-over',
|
18
|
+
trackOver: true,
|
19
|
+
itemSelector:'div.item',
|
20
|
+
singleSelect: true,
|
21
|
+
|
22
|
+
initComponent: function() {
|
23
|
+
this.tpl = new Ext.XTemplate(
|
24
|
+
'<tpl for=".">',
|
25
|
+
'<div class="item {type}">',
|
26
|
+
'<div class="title">{member}</div>',
|
27
|
+
'<div class="class">{cls}</div>',
|
28
|
+
'</div>',
|
29
|
+
'</tpl>',
|
30
|
+
'<div class="total">{[values.length]} of {[this.getTotal()]}</div>',
|
31
|
+
{
|
32
|
+
getTotal: Ext.bind(this.getTotal, this)
|
33
|
+
}
|
34
|
+
);
|
35
|
+
this.callParent(arguments);
|
36
|
+
},
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Sets number of total search results
|
40
|
+
* @param {Number} total
|
41
|
+
*/
|
42
|
+
setTotal: function(total) {
|
43
|
+
this.total = total;
|
44
|
+
},
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Returns number of total search results
|
48
|
+
* @return {Number}
|
49
|
+
*/
|
50
|
+
getTotal: function() {
|
51
|
+
return this.total;
|
52
|
+
}
|
53
|
+
});
|
@@ -0,0 +1,133 @@
|
|
1
|
+
/**
|
2
|
+
* The class tree
|
3
|
+
*/
|
4
|
+
Ext.define('Docs.view.tree.Tree', {
|
5
|
+
extend: 'Ext.tree.Panel',
|
6
|
+
alias : 'widget.classtree',
|
7
|
+
requires: [
|
8
|
+
'Docs.Favorites'
|
9
|
+
],
|
10
|
+
|
11
|
+
cls: 'class-tree iScroll',
|
12
|
+
useArrows: true,
|
13
|
+
rootVisible: false,
|
14
|
+
|
15
|
+
border: false,
|
16
|
+
bodyBorder: false,
|
17
|
+
|
18
|
+
initComponent: function() {
|
19
|
+
this.addEvents(
|
20
|
+
/**
|
21
|
+
* @event
|
22
|
+
* Fired when link in tree was clicked on and needs to be loaded.
|
23
|
+
* @param {String} url URL of the page to load
|
24
|
+
* @param {Ext.EventObject} e
|
25
|
+
*/
|
26
|
+
"urlclick"
|
27
|
+
);
|
28
|
+
|
29
|
+
// Expand the main tree
|
30
|
+
this.root.expanded = true;
|
31
|
+
this.root.children[0].expanded = true;
|
32
|
+
|
33
|
+
this.on("itemclick", this.onItemClick, this);
|
34
|
+
|
35
|
+
this.callParent();
|
36
|
+
|
37
|
+
// Add links for favoriting classes.
|
38
|
+
// Do this after callParent, because the getRootNode() will
|
39
|
+
// work after initComponent has run.
|
40
|
+
Docs.Favorites.setTree(this);
|
41
|
+
this.initFavIcons();
|
42
|
+
},
|
43
|
+
|
44
|
+
initFavIcons: function() {
|
45
|
+
this.getRootNode().cascadeBy(this.addFavIcons, this);
|
46
|
+
},
|
47
|
+
|
48
|
+
addFavIcons: function(node) {
|
49
|
+
if (node.get("leaf")) {
|
50
|
+
var url = node.raw.url;
|
51
|
+
var show = Docs.Favorites.has(url) ? "show" : "";
|
52
|
+
node.set("text", node.get("text") + Ext.String.format('<a rel="{0}" class="fav {1}"></a>', url, show));
|
53
|
+
node.commit();
|
54
|
+
}
|
55
|
+
},
|
56
|
+
|
57
|
+
onItemClick: function(view, node, item, index, e) {
|
58
|
+
var url = node.raw ? node.raw.url : node.data.url;
|
59
|
+
|
60
|
+
if (url) {
|
61
|
+
if (e.getTarget(".fav")) {
|
62
|
+
var favEl = Ext.get(e.getTarget(".fav"));
|
63
|
+
if (favEl.hasCls('show')) {
|
64
|
+
Docs.Favorites.remove(url);
|
65
|
+
}
|
66
|
+
else {
|
67
|
+
Docs.Favorites.add(url, this.getNodeTitle(node));
|
68
|
+
}
|
69
|
+
}
|
70
|
+
else {
|
71
|
+
this.fireEvent("urlclick", url, e);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
else if (!node.isLeaf()) {
|
75
|
+
if (node.isExpanded()) {
|
76
|
+
node.collapse(false);
|
77
|
+
}
|
78
|
+
else {
|
79
|
+
node.expand(false);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
},
|
83
|
+
|
84
|
+
/**
|
85
|
+
* Selects link node in tree by URL.
|
86
|
+
*
|
87
|
+
* @param {String} url
|
88
|
+
*/
|
89
|
+
selectUrl: function(url) {
|
90
|
+
var r = this.findRecordByUrl(url);
|
91
|
+
if (r) {
|
92
|
+
r.bubble(function(n) {
|
93
|
+
n.expand();
|
94
|
+
});
|
95
|
+
this.getSelectionModel().select(r);
|
96
|
+
}
|
97
|
+
else {
|
98
|
+
this.getSelectionModel().deselectAll();
|
99
|
+
}
|
100
|
+
},
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Sets favorite status of link on or off.
|
104
|
+
*
|
105
|
+
* @param {String} url URL of the link
|
106
|
+
* @param {Boolean} enable true to mark class as favorite.
|
107
|
+
*/
|
108
|
+
setFavorite: function(url, enable) {
|
109
|
+
var r = this.findRecordByUrl(url);
|
110
|
+
if (r) {
|
111
|
+
var show = enable ? "show" : "";
|
112
|
+
r.set("text", r.get("text").replace(/class="fav *(show)?"/, 'class="fav '+show+'"'));
|
113
|
+
r.commit();
|
114
|
+
}
|
115
|
+
},
|
116
|
+
|
117
|
+
findRecordByUrl: function(url) {
|
118
|
+
return this.getRootNode().findChildBy(function(n) {
|
119
|
+
return url === n.raw.url;
|
120
|
+
}, this, true);
|
121
|
+
},
|
122
|
+
|
123
|
+
getNodeTitle: function(node) {
|
124
|
+
var m = node.raw.url.match(/^\/api\/(.*)$/);
|
125
|
+
if (m) {
|
126
|
+
return m[1];
|
127
|
+
}
|
128
|
+
else {
|
129
|
+
return node.raw.text;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
});
|