easycomments 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.rspec +2 -0
- data/Gemfile +14 -0
- data/LICENSE +21 -0
- data/README.md +92 -0
- data/Rakefile +49 -0
- data/_config.yml +28 -0
- data/bin/ec +45 -0
- data/config.ru +12 -0
- data/dashboard.rb +57 -0
- data/easycomments.gemspec +22 -0
- data/ec.rb +43 -0
- data/lib/easycomments/ec_configuration.rb +42 -0
- data/lib/easycomments/ec_dashboard_model.rb +70 -0
- data/lib/easycomments/ec_model.rb +47 -0
- data/lib/easycomments.rb +14 -0
- data/public/bower.json +32 -0
- data/public/bower_components/core-a11y-keys/.bower.json +28 -0
- data/public/bower_components/core-a11y-keys/README.md +4 -0
- data/public/bower_components/core-a11y-keys/bower.json +18 -0
- data/public/bower_components/core-a11y-keys/core-a11y-keys.html +335 -0
- data/public/bower_components/core-a11y-keys/demo.html +41 -0
- data/public/bower_components/core-a11y-keys/index.html +22 -0
- data/public/bower_components/core-ajax/.bower.json +22 -0
- data/public/bower_components/core-ajax/README.md +4 -0
- data/public/bower_components/core-ajax/bower.json +11 -0
- data/public/bower_components/core-ajax/core-ajax.html +434 -0
- data/public/bower_components/core-ajax/core-xhr.html +116 -0
- data/public/bower_components/core-ajax/demo-progress.html +65 -0
- data/public/bower_components/core-ajax/demo.html +43 -0
- data/public/bower_components/core-ajax/index.html +22 -0
- data/public/bower_components/core-ajax/metadata.html +23 -0
- data/public/bower_components/core-ajax/test/core-ajax-progress.html +108 -0
- data/public/bower_components/core-ajax/test/core-ajax-race.html +81 -0
- data/public/bower_components/core-ajax/test/core-ajax.html +287 -0
- data/public/bower_components/core-ajax/test/index.html +17 -0
- data/public/bower_components/core-collapse/.bower.json +21 -0
- data/public/bower_components/core-collapse/README.md +4 -0
- data/public/bower_components/core-collapse/bower.json +11 -0
- data/public/bower_components/core-collapse/core-collapse.css +16 -0
- data/public/bower_components/core-collapse/core-collapse.html +298 -0
- data/public/bower_components/core-collapse/demo.html +75 -0
- data/public/bower_components/core-collapse/index.html +22 -0
- data/public/bower_components/core-collapse/test/basic.html +85 -0
- data/public/bower_components/core-collapse/test/index.html +24 -0
- data/public/bower_components/core-component-page/.bower.json +19 -0
- data/public/bower_components/core-component-page/README.md +6 -0
- data/public/bower_components/core-component-page/bowager-logo.png +0 -0
- data/public/bower_components/core-component-page/bower.json +9 -0
- data/public/bower_components/core-component-page/core-component-page.html +37 -0
- data/public/bower_components/core-component-page/demo.html +23 -0
- data/public/bower_components/core-component-page/index.html +22 -0
- data/public/bower_components/core-drawer-panel/.bower.json +19 -0
- data/public/bower_components/core-drawer-panel/README.md +4 -0
- data/public/bower_components/core-drawer-panel/bower.json +9 -0
- data/public/bower_components/core-drawer-panel/core-drawer-panel.css +160 -0
- data/public/bower_components/core-drawer-panel/core-drawer-panel.html +418 -0
- data/public/bower_components/core-drawer-panel/demo.html +68 -0
- data/public/bower_components/core-drawer-panel/index.html +22 -0
- data/public/bower_components/core-drawer-panel/metadata.html +37 -0
- data/public/bower_components/core-focusable/.bower.json +18 -0
- data/public/bower_components/core-focusable/README.md +6 -0
- data/public/bower_components/core-focusable/bower.json +8 -0
- data/public/bower_components/core-focusable/core-focusable.html +4 -0
- data/public/bower_components/core-focusable/core-focusable.js +134 -0
- data/public/bower_components/core-focusable/demo.html +109 -0
- data/public/bower_components/core-focusable/polymer-mixin.js +35 -0
- data/public/bower_components/core-header-panel/.bower.json +18 -0
- data/public/bower_components/core-header-panel/README.md +4 -0
- data/public/bower_components/core-header-panel/bower.json +8 -0
- data/public/bower_components/core-header-panel/core-header-panel.css +78 -0
- data/public/bower_components/core-header-panel/core-header-panel.html +277 -0
- data/public/bower_components/core-header-panel/demo.html +100 -0
- data/public/bower_components/core-header-panel/index.html +23 -0
- data/public/bower_components/core-header-panel/metadata.html +37 -0
- data/public/bower_components/core-icon/.bower.json +19 -0
- data/public/bower_components/core-icon/README.md +4 -0
- data/public/bower_components/core-icon/bower.json +9 -0
- data/public/bower_components/core-icon/core-icon.css +16 -0
- data/public/bower_components/core-icon/core-icon.html +201 -0
- data/public/bower_components/core-icon/demo.html +44 -0
- data/public/bower_components/core-icon/index.html +22 -0
- data/public/bower_components/core-icon/metadata.html +21 -0
- data/public/bower_components/core-icon-button/.bower.json +18 -0
- data/public/bower_components/core-icon-button/README.md +4 -0
- data/public/bower_components/core-icon-button/bower.json +8 -0
- data/public/bower_components/core-icon-button/core-icon-button.css +75 -0
- data/public/bower_components/core-icon-button/core-icon-button.html +81 -0
- data/public/bower_components/core-icon-button/demo.html +35 -0
- data/public/bower_components/core-icon-button/index.html +22 -0
- data/public/bower_components/core-icon-button/metadata.html +20 -0
- data/public/bower_components/core-icons/.bower.json +24 -0
- data/public/bower_components/core-icons/.gitignore +2 -0
- data/public/bower_components/core-icons/README.md +8 -0
- data/public/bower_components/core-icons/av-icons.html +65 -0
- data/public/bower_components/core-icons/bower.json +14 -0
- data/public/bower_components/core-icons/communication-icons.html +54 -0
- data/public/bower_components/core-icons/core-icons.html +278 -0
- data/public/bower_components/core-icons/demo.html +98 -0
- data/public/bower_components/core-icons/device-icons.html +90 -0
- data/public/bower_components/core-icons/editor-icons.html +67 -0
- data/public/bower_components/core-icons/hardware-icons.html +56 -0
- data/public/bower_components/core-icons/image-icons.html +152 -0
- data/public/bower_components/core-icons/index.html +22 -0
- data/public/bower_components/core-icons/maps-icons.html +70 -0
- data/public/bower_components/core-icons/notification-icons.html +49 -0
- data/public/bower_components/core-icons/social-icons.html +39 -0
- data/public/bower_components/core-iconset/.bower.json +20 -0
- data/public/bower_components/core-iconset/README.md +4 -0
- data/public/bower_components/core-iconset/bower.json +10 -0
- data/public/bower_components/core-iconset/core-iconset.html +241 -0
- data/public/bower_components/core-iconset/demo.html +62 -0
- data/public/bower_components/core-iconset/index.html +22 -0
- data/public/bower_components/core-iconset/my-icons-big.png +0 -0
- data/public/bower_components/core-iconset/my-icons.png +0 -0
- data/public/bower_components/core-iconset-svg/.bower.json +19 -0
- data/public/bower_components/core-iconset-svg/README.md +4 -0
- data/public/bower_components/core-iconset-svg/bower.json +9 -0
- data/public/bower_components/core-iconset-svg/core-iconset-svg.html +168 -0
- data/public/bower_components/core-iconset-svg/demo.html +66 -0
- data/public/bower_components/core-iconset-svg/index.html +22 -0
- data/public/bower_components/core-iconset-svg/svg-sample-icons.html +68 -0
- data/public/bower_components/core-input/.bower.json +20 -0
- data/public/bower_components/core-input/README.md +2 -0
- data/public/bower_components/core-input/bower.json +10 -0
- data/public/bower_components/core-input/core-input.css +41 -0
- data/public/bower_components/core-input/core-input.html +148 -0
- data/public/bower_components/core-input/demo.html +62 -0
- data/public/bower_components/core-input/index.html +22 -0
- data/public/bower_components/core-input/metadata.html +23 -0
- data/public/bower_components/core-input/test/a11y.html +55 -0
- data/public/bower_components/core-input/test/basic.html +60 -0
- data/public/bower_components/core-input/test/index.html +25 -0
- data/public/bower_components/core-item/.bower.json +19 -0
- data/public/bower_components/core-item/README.md +4 -0
- data/public/bower_components/core-item/bower.json +9 -0
- data/public/bower_components/core-item/core-item.css +45 -0
- data/public/bower_components/core-item/core-item.html +73 -0
- data/public/bower_components/core-item/demo.html +92 -0
- data/public/bower_components/core-item/index.html +22 -0
- data/public/bower_components/core-item/metadata.html +24 -0
- data/public/bower_components/core-media-query/.bower.json +18 -0
- data/public/bower_components/core-media-query/README.md +4 -0
- data/public/bower_components/core-media-query/bower.json +8 -0
- data/public/bower_components/core-media-query/core-media-query.html +87 -0
- data/public/bower_components/core-media-query/demo.html +44 -0
- data/public/bower_components/core-media-query/index.html +22 -0
- data/public/bower_components/core-menu/.bower.json +22 -0
- data/public/bower_components/core-menu/README.md +4 -0
- data/public/bower_components/core-menu/bower.json +11 -0
- data/public/bower_components/core-menu/core-menu.css +18 -0
- data/public/bower_components/core-menu/core-menu.html +73 -0
- data/public/bower_components/core-menu/core-submenu.css +43 -0
- data/public/bower_components/core-menu/core-submenu.html +126 -0
- data/public/bower_components/core-menu/demo.html +101 -0
- data/public/bower_components/core-menu/index.html +22 -0
- data/public/bower_components/core-menu/metadata.html +62 -0
- data/public/bower_components/core-meta/.bower.json +18 -0
- data/public/bower_components/core-meta/README.md +4 -0
- data/public/bower_components/core-meta/bower.json +8 -0
- data/public/bower_components/core-meta/core-meta.html +145 -0
- data/public/bower_components/core-meta/demo.html +58 -0
- data/public/bower_components/core-meta/index.html +22 -0
- data/public/bower_components/core-overlay/.bower.json +20 -0
- data/public/bower_components/core-overlay/README.md +4 -0
- data/public/bower_components/core-overlay/bower.json +10 -0
- data/public/bower_components/core-overlay/core-key-helper.html +22 -0
- data/public/bower_components/core-overlay/core-overlay-layer.html +116 -0
- data/public/bower_components/core-overlay/core-overlay.html +776 -0
- data/public/bower_components/core-overlay/demo.html +155 -0
- data/public/bower_components/core-overlay/gulpfile.js +2 -0
- data/public/bower_components/core-overlay/index.html +22 -0
- data/public/bower_components/core-overlay/tests/html/core-overlay-basic.html +127 -0
- data/public/bower_components/core-overlay/tests/html/core-overlay-positioning-margin.html +153 -0
- data/public/bower_components/core-overlay/tests/html/core-overlay-positioning.html +167 -0
- data/public/bower_components/core-overlay/tests/html/core-overlay-quick-close.html +45 -0
- data/public/bower_components/core-overlay/tests/html/core-overlay-scroll.html +130 -0
- data/public/bower_components/core-overlay/tests/js/htmltests.js +7 -0
- data/public/bower_components/core-overlay/tests/runner.html +14 -0
- data/public/bower_components/core-overlay/tests/tests.json +6 -0
- data/public/bower_components/core-pages/.bower.json +19 -0
- data/public/bower_components/core-pages/README.md +4 -0
- data/public/bower_components/core-pages/bower.json +8 -0
- data/public/bower_components/core-pages/core-pages.css +30 -0
- data/public/bower_components/core-pages/core-pages.html +44 -0
- data/public/bower_components/core-pages/demo.html +136 -0
- data/public/bower_components/core-pages/index.html +22 -0
- data/public/bower_components/core-pages/metadata.html +25 -0
- data/public/bower_components/core-resizable/.bower.json +18 -0
- data/public/bower_components/core-resizable/README.md +4 -0
- data/public/bower_components/core-resizable/bower.json +8 -0
- data/public/bower_components/core-resizable/core-resizable.html +248 -0
- data/public/bower_components/core-resizable/index.html +22 -0
- data/public/bower_components/core-resizable/test/basic.html +504 -0
- data/public/bower_components/core-resizable/test/index.html +16 -0
- data/public/bower_components/core-resizable/test/test-elements.html +66 -0
- data/public/bower_components/core-scaffold/.bower.json +22 -0
- data/public/bower_components/core-scaffold/README.md +4 -0
- data/public/bower_components/core-scaffold/bower.json +11 -0
- data/public/bower_components/core-scaffold/core-scaffold.html +252 -0
- data/public/bower_components/core-scaffold/demo.html +82 -0
- data/public/bower_components/core-scaffold/index.html +22 -0
- data/public/bower_components/core-scaffold/metadata.html +52 -0
- data/public/bower_components/core-selection/.bower.json +21 -0
- data/public/bower_components/core-selection/README.md +4 -0
- data/public/bower_components/core-selection/bower.json +11 -0
- data/public/bower_components/core-selection/core-selection.html +149 -0
- data/public/bower_components/core-selection/demo.html +59 -0
- data/public/bower_components/core-selection/index.html +22 -0
- data/public/bower_components/core-selection/test/basic.html +62 -0
- data/public/bower_components/core-selection/test/index.html +25 -0
- data/public/bower_components/core-selection/test/multi.html +63 -0
- data/public/bower_components/core-selector/.bower.json +22 -0
- data/public/bower_components/core-selector/.gitignore +2 -0
- data/public/bower_components/core-selector/README.md +4 -0
- data/public/bower_components/core-selector/bower.json +12 -0
- data/public/bower_components/core-selector/core-selector.html +548 -0
- data/public/bower_components/core-selector/demo.html +106 -0
- data/public/bower_components/core-selector/index.html +22 -0
- data/public/bower_components/core-selector/metadata.html +20 -0
- data/public/bower_components/core-selector/test/activate-event.html +63 -0
- data/public/bower_components/core-selector/test/basic.html +126 -0
- data/public/bower_components/core-selector/test/content.html +101 -0
- data/public/bower_components/core-selector/test/index.html +30 -0
- data/public/bower_components/core-selector/test/multi.html +115 -0
- data/public/bower_components/core-selector/test/next-previous.html +113 -0
- data/public/bower_components/core-selector/test/selected-attr-prop.html +62 -0
- data/public/bower_components/core-selector/test/template-repeat.html +63 -0
- data/public/bower_components/core-style/.bower.json +18 -0
- data/public/bower_components/core-style/README.md +4 -0
- data/public/bower_components/core-style/bower.json +8 -0
- data/public/bower_components/core-style/core-style.html +387 -0
- data/public/bower_components/core-style/demo.html +58 -0
- data/public/bower_components/core-style/elements.html +55 -0
- data/public/bower_components/core-style/index.html +22 -0
- data/public/bower_components/core-style/my-theme.html +73 -0
- data/public/bower_components/core-toolbar/.bower.json +19 -0
- data/public/bower_components/core-toolbar/README.md +4 -0
- data/public/bower_components/core-toolbar/bower.json +9 -0
- data/public/bower_components/core-toolbar/core-toolbar.css +117 -0
- data/public/bower_components/core-toolbar/core-toolbar.html +155 -0
- data/public/bower_components/core-toolbar/demo.html +119 -0
- data/public/bower_components/core-toolbar/index.html +22 -0
- data/public/bower_components/core-toolbar/metadata.html +28 -0
- data/public/bower_components/core-toolbar/test/basic.html +86 -0
- data/public/bower_components/core-toolbar/test/index.html +24 -0
- data/public/bower_components/core-transition/.bower.json +19 -0
- data/public/bower_components/core-transition/README.md +2 -0
- data/public/bower_components/core-transition/bower.json +9 -0
- data/public/bower_components/core-transition/core-transition-css.html +220 -0
- data/public/bower_components/core-transition/core-transition-overlay.css +46 -0
- data/public/bower_components/core-transition/core-transition.html +140 -0
- data/public/bower_components/core-transition/demo.html +87 -0
- data/public/bower_components/core-transition/index.html +22 -0
- data/public/bower_components/font-roboto/.bower.json +15 -0
- data/public/bower_components/font-roboto/roboto.html +9 -0
- data/public/bower_components/paper-button/.bower.json +27 -0
- data/public/bower_components/paper-button/README.md +4 -0
- data/public/bower_components/paper-button/bower.json +16 -0
- data/public/bower_components/paper-button/demo.html +157 -0
- data/public/bower_components/paper-button/index.html +22 -0
- data/public/bower_components/paper-button/metadata.html +17 -0
- data/public/bower_components/paper-button/paper-button-base.html +164 -0
- data/public/bower_components/paper-button/paper-button.html +197 -0
- data/public/bower_components/paper-button/test/index.html +24 -0
- data/public/bower_components/paper-button/test/paper-button.html +112 -0
- data/public/bower_components/paper-icon-button/.bower.json +25 -0
- data/public/bower_components/paper-icon-button/README.md +4 -0
- data/public/bower_components/paper-icon-button/bower.json +15 -0
- data/public/bower_components/paper-icon-button/demo.html +150 -0
- data/public/bower_components/paper-icon-button/index.html +22 -0
- data/public/bower_components/paper-icon-button/metadata.html +21 -0
- data/public/bower_components/paper-icon-button/paper-icon-button.html +154 -0
- data/public/bower_components/paper-icon-button/test/a11y.html +68 -0
- data/public/bower_components/paper-icon-button/test/basic.html +50 -0
- data/public/bower_components/paper-icon-button/test/index.html +25 -0
- data/public/bower_components/paper-input/.bower.json +26 -0
- data/public/bower_components/paper-input/.gitignore +1 -0
- data/public/bower_components/paper-input/README.md +4 -0
- data/public/bower_components/paper-input/bower.json +15 -0
- data/public/bower_components/paper-input/demo.html +236 -0
- data/public/bower_components/paper-input/index.html +22 -0
- data/public/bower_components/paper-input/metadata.html +20 -0
- data/public/bower_components/paper-input/paper-autogrow-textarea.html +162 -0
- data/public/bower_components/paper-input/paper-char-counter.html +121 -0
- data/public/bower_components/paper-input/paper-input-decorator.css +132 -0
- data/public/bower_components/paper-input/paper-input-decorator.html +547 -0
- data/public/bower_components/paper-input/paper-input.html +145 -0
- data/public/bower_components/paper-input/test/index.html +26 -0
- data/public/bower_components/paper-input/test/paper-autogrow-textarea.html +146 -0
- data/public/bower_components/paper-input/test/paper-input-decorator.html +240 -0
- data/public/bower_components/paper-input/test/paper-input.html +68 -0
- data/public/bower_components/paper-input/test/util.js +15 -0
- data/public/bower_components/paper-radio-button/.bower.json +22 -0
- data/public/bower_components/paper-radio-button/README.md +4 -0
- data/public/bower_components/paper-radio-button/bower.json +12 -0
- data/public/bower_components/paper-radio-button/demo.html +84 -0
- data/public/bower_components/paper-radio-button/index.html +22 -0
- data/public/bower_components/paper-radio-button/metadata.html +17 -0
- data/public/bower_components/paper-radio-button/paper-radio-button.css +108 -0
- data/public/bower_components/paper-radio-button/paper-radio-button.html +166 -0
- data/public/bower_components/paper-ripple/.bower.json +23 -0
- data/public/bower_components/paper-ripple/README.md +4 -0
- data/public/bower_components/paper-ripple/bower.json +13 -0
- data/public/bower_components/paper-ripple/demo.html +414 -0
- data/public/bower_components/paper-ripple/index.html +22 -0
- data/public/bower_components/paper-ripple/metadata.html +20 -0
- data/public/bower_components/paper-ripple/paper-ripple.html +477 -0
- data/public/bower_components/paper-ripple/test/index.html +24 -0
- data/public/bower_components/paper-ripple/test/position.html +109 -0
- data/public/bower_components/paper-shadow/.bower.json +22 -0
- data/public/bower_components/paper-shadow/README.md +4 -0
- data/public/bower_components/paper-shadow/bower.json +11 -0
- data/public/bower_components/paper-shadow/demo.html +134 -0
- data/public/bower_components/paper-shadow/index.html +22 -0
- data/public/bower_components/paper-shadow/metadata.html +17 -0
- data/public/bower_components/paper-shadow/paper-shadow.css +66 -0
- data/public/bower_components/paper-shadow/paper-shadow.html +86 -0
- data/public/bower_components/paper-shadow/test/basic.html +62 -0
- data/public/bower_components/paper-shadow/test/index.html +24 -0
- data/public/bower_components/paper-tabs/.bower.json +26 -0
- data/public/bower_components/paper-tabs/README.md +4 -0
- data/public/bower_components/paper-tabs/bower.json +15 -0
- data/public/bower_components/paper-tabs/demo.html +242 -0
- data/public/bower_components/paper-tabs/index.html +22 -0
- data/public/bower_components/paper-tabs/metadata.html +58 -0
- data/public/bower_components/paper-tabs/paper-tab.css +59 -0
- data/public/bower_components/paper-tabs/paper-tab.html +82 -0
- data/public/bower_components/paper-tabs/paper-tabs.css +80 -0
- data/public/bower_components/paper-tabs/paper-tabs.html +353 -0
- data/public/bower_components/paper-toast/.bower.json +22 -0
- data/public/bower_components/paper-toast/README.md +4 -0
- data/public/bower_components/paper-toast/bower.json +11 -0
- data/public/bower_components/paper-toast/demo.html +63 -0
- data/public/bower_components/paper-toast/index.html +22 -0
- data/public/bower_components/paper-toast/metadata.html +20 -0
- data/public/bower_components/paper-toast/paper-toast.css +80 -0
- data/public/bower_components/paper-toast/paper-toast.html +296 -0
- data/public/bower_components/paper-toggle-button/.bower.json +20 -0
- data/public/bower_components/paper-toggle-button/README.md +4 -0
- data/public/bower_components/paper-toggle-button/bower.json +9 -0
- data/public/bower_components/paper-toggle-button/demo.html +97 -0
- data/public/bower_components/paper-toggle-button/index.html +22 -0
- data/public/bower_components/paper-toggle-button/metadata.html +17 -0
- data/public/bower_components/paper-toggle-button/paper-toggle-button.css +95 -0
- data/public/bower_components/paper-toggle-button/paper-toggle-button.html +179 -0
- data/public/bower_components/polymer/.bower.json +32 -0
- data/public/bower_components/polymer/README.md +21 -0
- data/public/bower_components/polymer/bower.json +23 -0
- data/public/bower_components/polymer/build.log +26 -0
- data/public/bower_components/polymer/layout.html +286 -0
- data/public/bower_components/polymer/polymer.html +12 -0
- data/public/bower_components/polymer/polymer.js +11859 -0
- data/public/bower_components/polymer/polymer.min.js +14 -0
- data/public/bower_components/webcomponentsjs/.bower.json +23 -0
- data/public/bower_components/webcomponentsjs/CustomElements.js +634 -0
- data/public/bower_components/webcomponentsjs/CustomElements.min.js +11 -0
- data/public/bower_components/webcomponentsjs/HTMLImports.js +764 -0
- data/public/bower_components/webcomponentsjs/HTMLImports.min.js +11 -0
- data/public/bower_components/webcomponentsjs/README.md +73 -0
- data/public/bower_components/webcomponentsjs/ShadowDOM.js +4277 -0
- data/public/bower_components/webcomponentsjs/ShadowDOM.min.js +13 -0
- data/public/bower_components/webcomponentsjs/bower.json +14 -0
- data/public/bower_components/webcomponentsjs/build.log +31 -0
- data/public/bower_components/webcomponentsjs/package.json +31 -0
- data/public/bower_components/webcomponentsjs/webcomponents-lite.js +1728 -0
- data/public/bower_components/webcomponentsjs/webcomponents-lite.min.js +11 -0
- data/public/bower_components/webcomponentsjs/webcomponents.js +6114 -0
- data/public/bower_components/webcomponentsjs/webcomponents.min.js +14 -0
- data/public/css/main.css +41 -0
- data/public/elements/ec-dashboard/ec-dashboard.html +269 -0
- data/public/polymer-loader.html +24 -0
- data/public/polymer-loader.vulcanized.html +19 -0
- data/spec/ec/ec_dashboard_spec.rb +78 -0
- data/spec/ec/ec_spec.rb +78 -0
- data/spec/spec_helper.rb +27 -0
- data/views/index.html +88 -0
- metadata +464 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
3
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
4
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
5
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
6
|
+
Code distributed by Google as part of the polymer project is also
|
|
7
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
/* technical */
|
|
12
|
+
display: block;
|
|
13
|
+
position: relative;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
-moz-box-sizing: border-box;
|
|
16
|
+
/* size */
|
|
17
|
+
height: 64px;
|
|
18
|
+
/* typography */
|
|
19
|
+
font-size: 1.3em;
|
|
20
|
+
/* background */
|
|
21
|
+
background-color: #CFD8DC;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host(.animate) {
|
|
25
|
+
/* transition */
|
|
26
|
+
transition: height 0.18s ease-in;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host(.medium-tall) {
|
|
30
|
+
height: 128px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host(.tall) {
|
|
34
|
+
height: 192px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.toolbar-tools {
|
|
38
|
+
position: relative;
|
|
39
|
+
height: 64px;
|
|
40
|
+
padding: 0 8px;
|
|
41
|
+
pointer-events: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* narrow layout */
|
|
45
|
+
:host(.core-narrow),
|
|
46
|
+
:host-context(.core-narrow) {
|
|
47
|
+
height: 56px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
polyfill-next-selector { content: ':host.core-narrow.medium-tall, .core-narrow :host.medium-tall'; }
|
|
51
|
+
:host(.core-narrow.medium-tall),
|
|
52
|
+
:host-context(.core-narrow):host(.medium-tall) {
|
|
53
|
+
height: 112px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
polyfill-next-selector { content: ':host.core-narrow.tall, .core-narrow :host.tall'; }
|
|
57
|
+
:host(.core-narrow.tall),
|
|
58
|
+
:host-context(.core-narrow):host(.tall) {
|
|
59
|
+
height: 168px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
polyfill-next-selector { content: ':host.core-narrow .toolbar-tools, .core-narrow :host .toolbar-tools'; }
|
|
63
|
+
:host(.core-narrow) .toolbar-tools,
|
|
64
|
+
:host-context(.core-narrow) .toolbar-tools {
|
|
65
|
+
height: 56px;
|
|
66
|
+
padding: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* middle bar */
|
|
70
|
+
#middleBar {
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 0;
|
|
73
|
+
right: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:host(.tall, .medium-tall) #middleBar {
|
|
78
|
+
-webkit-transform: translateY(100%);
|
|
79
|
+
transform: translateY(100%);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* bottom bar */
|
|
83
|
+
#bottomBar {
|
|
84
|
+
position: absolute;
|
|
85
|
+
right: 0;
|
|
86
|
+
bottom: 0;
|
|
87
|
+
left: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* make elements (e.g. buttons) respond to mouse/touch events */
|
|
91
|
+
polyfill-next-selector { content: '.toolbar-tools > *:not([disabled])'; }
|
|
92
|
+
::content > *:not([disabled]) {
|
|
93
|
+
pointer-events: auto;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* elements spacing */
|
|
97
|
+
polyfill-next-selector { content: '.toolbar-tools > *'; }
|
|
98
|
+
::content > * {
|
|
99
|
+
margin: 0 8px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* misc helpers */
|
|
103
|
+
polyfill-next-selector { content: '.toolbar-tools > .fit'; }
|
|
104
|
+
::content > .fit {
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: auto;
|
|
107
|
+
right: 0;
|
|
108
|
+
bottom: 0;
|
|
109
|
+
left: 0;
|
|
110
|
+
width: auto;
|
|
111
|
+
margin: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
polyfill-next-selector { content: ':host .indent'; }
|
|
115
|
+
::content > .indent {
|
|
116
|
+
margin-left: 60px;
|
|
117
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
3
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
4
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
5
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
6
|
+
Code distributed by Google as part of the polymer project is also
|
|
7
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
<!--
|
|
11
|
+
`core-toolbar` is a horizontal bar containing items that can be used for
|
|
12
|
+
label, navigation, search and actions. The items place inside the
|
|
13
|
+
`core-toolbar` are projected into a `horizontal center layout` container inside of
|
|
14
|
+
`core-toolbar`'s Shadow DOM. You can use flex attributes to control the items'
|
|
15
|
+
sizing.
|
|
16
|
+
|
|
17
|
+
Example:
|
|
18
|
+
|
|
19
|
+
<core-toolbar>
|
|
20
|
+
<core-icon-button icon="menu" on-tap="{{menuAction}}"></core-icon-button>
|
|
21
|
+
<div flex>Title</div>
|
|
22
|
+
<core-icon-button icon="more" on-tap="{{moreAction}}"></core-icon-button>
|
|
23
|
+
</core-toolbar>
|
|
24
|
+
|
|
25
|
+
`core-toolbar` has a standard height, but can made be taller by setting `tall`
|
|
26
|
+
class on the `core-toolbar`. This will make the toolbar 3x the normal height.
|
|
27
|
+
|
|
28
|
+
<core-toolbar class="tall">
|
|
29
|
+
<core-icon-button icon="menu"></core-icon-button>
|
|
30
|
+
</core-toolbar>
|
|
31
|
+
|
|
32
|
+
Apply `medium-tall` class to make the toolbar medium tall. This will make the
|
|
33
|
+
toolbar 2x the normal height.
|
|
34
|
+
|
|
35
|
+
<core-toolbar class="medium-tall">
|
|
36
|
+
<core-icon-button icon="menu"></core-icon-button>
|
|
37
|
+
</core-toolbar>
|
|
38
|
+
|
|
39
|
+
When `tall`, items can pin to either the top (default), middle or bottom. Use
|
|
40
|
+
`middle` class for middle content and `bottom` class for bottom content.
|
|
41
|
+
|
|
42
|
+
<core-toolbar class="tall">
|
|
43
|
+
<core-icon-button icon="menu"></core-icon-button>
|
|
44
|
+
<div class="middle indent">Middle Title</div>
|
|
45
|
+
<div class="bottom indent">Bottom Title</div>
|
|
46
|
+
</core-toolbar>
|
|
47
|
+
|
|
48
|
+
For `medium-tall` toolbar, the middle and bottom contents overlap and are
|
|
49
|
+
pinned to the bottom. But `middleJustify` and `bottomJustify` attributes are
|
|
50
|
+
still honored separately.
|
|
51
|
+
|
|
52
|
+
To make an element completely fit at the bottom of the toolbar, use `fit` along
|
|
53
|
+
with `bottom`.
|
|
54
|
+
|
|
55
|
+
<core-toolbar class="tall">
|
|
56
|
+
<div id="progressBar" class="bottom fit"></div>
|
|
57
|
+
</core-toolbar>
|
|
58
|
+
|
|
59
|
+
`core-toolbar` adapts to mobile/narrow layout when there is a `core-narrow` class set
|
|
60
|
+
on itself or any of its ancestors.
|
|
61
|
+
|
|
62
|
+
@group Polymer Core Elements
|
|
63
|
+
@element core-toolbar
|
|
64
|
+
@homepage github.io
|
|
65
|
+
-->
|
|
66
|
+
|
|
67
|
+
<link rel="import" href="../polymer/polymer.html">
|
|
68
|
+
|
|
69
|
+
<polymer-element name="core-toolbar" attributes="justify middleJustify bottomJustify">
|
|
70
|
+
<template>
|
|
71
|
+
|
|
72
|
+
<link rel="stylesheet" href="core-toolbar.css">
|
|
73
|
+
|
|
74
|
+
<div id="bottomBar" class="toolbar-tools" center horizontal layout>
|
|
75
|
+
<content select=".bottom"></content>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<div id="middleBar" class="toolbar-tools" center horizontal layout>
|
|
79
|
+
<content select=".middle"></content>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<div id="topBar" class="toolbar-tools" center horizontal layout>
|
|
83
|
+
<content></content>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
</template>
|
|
87
|
+
<script>
|
|
88
|
+
|
|
89
|
+
(function() {
|
|
90
|
+
|
|
91
|
+
Polymer('core-toolbar', {
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Controls how the items are aligned horizontally.
|
|
95
|
+
* Options are `start`, `center`, `end`, `between` and `around`.
|
|
96
|
+
*
|
|
97
|
+
* @attribute justify
|
|
98
|
+
* @type string
|
|
99
|
+
* @default ''
|
|
100
|
+
*/
|
|
101
|
+
justify: '',
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Controls how the items are aligned horizontally when they are placed
|
|
105
|
+
* in the middle.
|
|
106
|
+
* Options are `start`, `center`, `end`, `between` and `around`.
|
|
107
|
+
*
|
|
108
|
+
* @attribute middleJustify
|
|
109
|
+
* @type string
|
|
110
|
+
* @default ''
|
|
111
|
+
*/
|
|
112
|
+
middleJustify: '',
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Controls how the items are aligned horizontally when they are placed
|
|
116
|
+
* at the bottom.
|
|
117
|
+
* Options are `start`, `center`, `end`, `between` and `around`.
|
|
118
|
+
*
|
|
119
|
+
* @attribute bottomJustify
|
|
120
|
+
* @type string
|
|
121
|
+
* @default ''
|
|
122
|
+
*/
|
|
123
|
+
bottomJustify: '',
|
|
124
|
+
|
|
125
|
+
justifyChanged: function(old) {
|
|
126
|
+
this.updateBarJustify(this.$.topBar, this.justify, old);
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
middleJustifyChanged: function(old) {
|
|
130
|
+
this.updateBarJustify(this.$.middleBar, this.middleJustify, old);
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
bottomJustifyChanged: function(old) {
|
|
134
|
+
this.updateBarJustify(this.$.bottomBar, this.bottomJustify, old);
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
updateBarJustify: function(bar, justify, old) {
|
|
138
|
+
if (old) {
|
|
139
|
+
bar.removeAttribute(this.toLayoutAttrName(old));
|
|
140
|
+
}
|
|
141
|
+
if (justify) {
|
|
142
|
+
bar.setAttribute(this.toLayoutAttrName(justify), '');
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
toLayoutAttrName: function(value) {
|
|
147
|
+
return value === 'between' ? 'justified' : value + '-justified';
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
})();
|
|
153
|
+
|
|
154
|
+
</script>
|
|
155
|
+
</polymer-element>
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
4
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
5
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
6
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7
|
+
Code distributed by Google as part of the polymer project is also
|
|
8
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9
|
+
-->
|
|
10
|
+
<html>
|
|
11
|
+
<head>
|
|
12
|
+
<title>core-toolbar</title>
|
|
13
|
+
|
|
14
|
+
<script src="../webcomponentsjs/webcomponents.js"></script>
|
|
15
|
+
|
|
16
|
+
<link rel="import" href="core-toolbar.html">
|
|
17
|
+
<link rel="import" href="../core-icon-button/core-icon-button.html">
|
|
18
|
+
<link rel="import" href="../core-media-query/core-media-query.html">
|
|
19
|
+
|
|
20
|
+
<style shim-shadowdom>
|
|
21
|
+
|
|
22
|
+
body {
|
|
23
|
+
font-family: sans-serif;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
core-toolbar {
|
|
27
|
+
background-color: #CFA0E9;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
core-toolbar.dark-theme {
|
|
31
|
+
background-color: #7D25AC;
|
|
32
|
+
color: #f1f1f1;
|
|
33
|
+
fill: #f1f1f1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
</style>
|
|
37
|
+
|
|
38
|
+
</head>
|
|
39
|
+
<body unresolved>
|
|
40
|
+
|
|
41
|
+
<core-toolbar>
|
|
42
|
+
<core-icon-button icon="menu"></core-icon-button>
|
|
43
|
+
<span flex>Toolbar</span>
|
|
44
|
+
<core-icon-button icon="refresh"></core-icon-button>
|
|
45
|
+
<core-icon-button icon="add"></core-icon-button>
|
|
46
|
+
</core-toolbar>
|
|
47
|
+
|
|
48
|
+
<br>
|
|
49
|
+
|
|
50
|
+
<core-toolbar class="dark-theme">
|
|
51
|
+
<core-icon-button icon="menu"></core-icon-button>
|
|
52
|
+
<span flex>Toolbar: dark-theme</span>
|
|
53
|
+
<core-icon-button icon="refresh"></core-icon-button>
|
|
54
|
+
<core-icon-button icon="add"></core-icon-button>
|
|
55
|
+
</core-toolbar>
|
|
56
|
+
|
|
57
|
+
<br>
|
|
58
|
+
|
|
59
|
+
<core-toolbar class="tall">
|
|
60
|
+
<core-icon-button icon="menu"></core-icon-button>
|
|
61
|
+
<span flex>Toolbar: tall</span>
|
|
62
|
+
<core-icon-button icon="refresh"></core-icon-button>
|
|
63
|
+
<core-icon-button icon="add"></core-icon-button>
|
|
64
|
+
</core-toolbar>
|
|
65
|
+
|
|
66
|
+
<br>
|
|
67
|
+
|
|
68
|
+
<core-toolbar class="tall">
|
|
69
|
+
<core-icon-button icon="menu" class="bottom"></core-icon-button>
|
|
70
|
+
<span flex class="bottom">Toolbar: tall with elements pin to the bottom</span>
|
|
71
|
+
<core-icon-button icon="refresh" class="bottom"></core-icon-button>
|
|
72
|
+
<core-icon-button icon="add" class="bottom"></core-icon-button>
|
|
73
|
+
</core-toolbar>
|
|
74
|
+
|
|
75
|
+
<br>
|
|
76
|
+
|
|
77
|
+
<core-toolbar class="medium-tall">
|
|
78
|
+
<core-icon-button icon="menu"></core-icon-button>
|
|
79
|
+
<span flex></span>
|
|
80
|
+
<core-icon-button icon="refresh"></core-icon-button>
|
|
81
|
+
<core-icon-button icon="add"></core-icon-button>
|
|
82
|
+
<span class="bottom indent">Toolbar: medium-tall with label aligns to the bottom</span>
|
|
83
|
+
</core-toolbar>
|
|
84
|
+
|
|
85
|
+
<br>
|
|
86
|
+
|
|
87
|
+
<core-toolbar class="tall">
|
|
88
|
+
<core-icon-button icon="menu"></core-icon-button>
|
|
89
|
+
<div flex></div>
|
|
90
|
+
<core-icon-button icon="refresh"></core-icon-button>
|
|
91
|
+
<core-icon-button icon="add"></core-icon-button>
|
|
92
|
+
<div class="middle indent">label aligns to the middle</div>
|
|
93
|
+
<div class="bottom indent" style="color: #666; font-size: 18px;">some stuffs align to the bottom</div>
|
|
94
|
+
</core-toolbar>
|
|
95
|
+
|
|
96
|
+
<br>
|
|
97
|
+
|
|
98
|
+
<core-toolbar class="tall">
|
|
99
|
+
<core-icon-button icon="menu"></core-icon-button>
|
|
100
|
+
<div flex></div>
|
|
101
|
+
<core-icon-button icon="refresh"></core-icon-button>
|
|
102
|
+
<core-icon-button icon="add"></core-icon-button>
|
|
103
|
+
<div class="middle indent">element (e.g. progress) fits at the bottom of the toolbar</div>
|
|
104
|
+
<div class="bottom fit" style="height: 20px; background-color: #0f9d58;"></div>
|
|
105
|
+
</core-toolbar>
|
|
106
|
+
|
|
107
|
+
<core-media-query id="mediaQuery" query="max-width: 640px"></core-media-query>
|
|
108
|
+
|
|
109
|
+
<script>
|
|
110
|
+
|
|
111
|
+
document.querySelector('#mediaQuery').addEventListener('core-media-change',
|
|
112
|
+
function(e) {
|
|
113
|
+
document.body.classList.toggle('core-narrow', e.detail.matches);
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
</script>
|
|
117
|
+
|
|
118
|
+
</body>
|
|
119
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
4
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE
|
|
5
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS
|
|
6
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS
|
|
7
|
+
Code distributed by Google as part of the polymer project is also
|
|
8
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS
|
|
9
|
+
-->
|
|
10
|
+
<html>
|
|
11
|
+
<head>
|
|
12
|
+
|
|
13
|
+
<script src="../webcomponentsjs/webcomponents.js"></script>
|
|
14
|
+
<link rel="import" href="../core-component-page/core-component-page.html">
|
|
15
|
+
|
|
16
|
+
</head>
|
|
17
|
+
<body unresolved>
|
|
18
|
+
|
|
19
|
+
<core-component-page></core-component-page>
|
|
20
|
+
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@license
|
|
3
|
+
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
4
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
5
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
6
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7
|
+
Code distributed by Google as part of the polymer project is also
|
|
8
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9
|
+
-->
|
|
10
|
+
<x-meta id="core-toolbar" label="Toolbar" group="Core" isContainer>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
|
|
14
|
+
<core-toolbar style="right: 0px; left: 0px; background-color: #4F7DC9; color: #fff; fill: #fff;">
|
|
15
|
+
<core-icon-button icon="menu"></core-icon-button>
|
|
16
|
+
<div flex>Toolbar</div>
|
|
17
|
+
</core-toolbar>
|
|
18
|
+
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<template id="imports">
|
|
22
|
+
|
|
23
|
+
<link rel="import" href="../core-icon-button/core-icon-button.html">
|
|
24
|
+
<link rel="import" href="core-toolbar.html">
|
|
25
|
+
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
</x-meta>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
4
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
5
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
6
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7
|
+
Code distributed by Google as part of the polymer project is also
|
|
8
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9
|
+
-->
|
|
10
|
+
<html>
|
|
11
|
+
<head>
|
|
12
|
+
<meta charset="UTF-8">
|
|
13
|
+
<title>core-range-basic</title>
|
|
14
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
|
15
|
+
|
|
16
|
+
<script src="../../webcomponentsjs/webcomponents.js"></script>
|
|
17
|
+
<script src="../../web-component-tester/browser.js"></script>
|
|
18
|
+
|
|
19
|
+
<link rel="import" href="../core-toolbar.html">
|
|
20
|
+
|
|
21
|
+
</head>
|
|
22
|
+
<body>
|
|
23
|
+
|
|
24
|
+
<core-toolbar></core-toolbar>
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
|
|
28
|
+
var toolbar = document.querySelector('core-toolbar');
|
|
29
|
+
|
|
30
|
+
suite('basic', function() {
|
|
31
|
+
|
|
32
|
+
test('check default height', function() {
|
|
33
|
+
assert.equal(toolbar.offsetHeight, 64);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
test('check medium-tall height', function(done) {
|
|
37
|
+
toolbar.classList.add('medium-tall');
|
|
38
|
+
asyncPlatformFlush(function() {
|
|
39
|
+
assert.equal(toolbar.offsetHeight, 128);
|
|
40
|
+
done();
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
test('check tall height', function(done) {
|
|
45
|
+
toolbar.classList.add('tall');
|
|
46
|
+
asyncPlatformFlush(function() {
|
|
47
|
+
assert.equal(toolbar.offsetHeight, 192);
|
|
48
|
+
done();
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
test('item at top', function(done) {
|
|
53
|
+
var item = document.createElement('div');
|
|
54
|
+
toolbar.appendChild(item)
|
|
55
|
+
asyncPlatformFlush(function() {
|
|
56
|
+
assert.equal(item.getDestinationInsertionPoints()[0].parentElement, toolbar.$.topBar);
|
|
57
|
+
done();
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
test('item at middle', function(done) {
|
|
62
|
+
var item = document.createElement('div');
|
|
63
|
+
item.classList.add('middle');
|
|
64
|
+
toolbar.appendChild(item)
|
|
65
|
+
asyncPlatformFlush(function() {
|
|
66
|
+
assert.equal(item.getDestinationInsertionPoints()[0].parentElement, toolbar.$.middleBar);
|
|
67
|
+
done();
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
test('item at bottom', function(done) {
|
|
72
|
+
var item = document.createElement('div');
|
|
73
|
+
item.classList.add('bottom');
|
|
74
|
+
toolbar.appendChild(item)
|
|
75
|
+
asyncPlatformFlush(function() {
|
|
76
|
+
assert.equal(item.getDestinationInsertionPoints()[0].parentElement, toolbar.$.bottomBar);
|
|
77
|
+
done();
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
</body>
|
|
86
|
+
</html>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
4
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
5
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
6
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7
|
+
Code distributed by Google as part of the polymer project is also
|
|
8
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9
|
+
-->
|
|
10
|
+
<html>
|
|
11
|
+
<head>
|
|
12
|
+
<meta charset="UTF-8">
|
|
13
|
+
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
|
|
14
|
+
<title>Tests</title>
|
|
15
|
+
<script src="../../web-component-tester/browser.js"></script>
|
|
16
|
+
</head>
|
|
17
|
+
<body>
|
|
18
|
+
<script>
|
|
19
|
+
WCT.loadSuites([
|
|
20
|
+
'basic.html'
|
|
21
|
+
]);
|
|
22
|
+
</script>
|
|
23
|
+
</body>
|
|
24
|
+
</html>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "core-transition",
|
|
3
|
+
"private": true,
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"polymer": "Polymer/polymer#^0.5",
|
|
6
|
+
"core-meta": "Polymer/core-meta#^0.5"
|
|
7
|
+
},
|
|
8
|
+
"version": "0.5.5",
|
|
9
|
+
"homepage": "https://github.com/Polymer/core-transition",
|
|
10
|
+
"_release": "0.5.5",
|
|
11
|
+
"_resolution": {
|
|
12
|
+
"type": "version",
|
|
13
|
+
"tag": "0.5.5",
|
|
14
|
+
"commit": "91362d8d6c500fe2bb9312ba806ae3a9924dc430"
|
|
15
|
+
},
|
|
16
|
+
"_source": "git://github.com/Polymer/core-transition.git",
|
|
17
|
+
"_target": "^0.5",
|
|
18
|
+
"_originalSource": "Polymer/core-transition"
|
|
19
|
+
}
|