luca 0.9.9 → 0.9.42
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +9 -153
- data/Gemfile +1 -10
- data/Gemfile.lock +40 -113
- data/Guardfile +25 -3
- data/README.md +57 -54
- data/ROADMAP +32 -15
- data/Rakefile +75 -24
- data/app.rb +46 -12
- data/{app/assets → assets}/images/glyphicons-halflings-white.png +0 -0
- data/{app/assets → assets}/images/glyphicons-halflings.png +0 -0
- data/assets/javascripts/dependencies/backbone-min.js +37 -0
- data/assets/javascripts/dependencies/backbone-query.min.js +1 -0
- data/assets/javascripts/dependencies/bootstrap.min.js +7 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-coffeescript.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-css.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-html.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-javascript.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-less.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror-vim.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/codemirror.js +0 -0
- data/assets/javascripts/dependencies/coffee-script.js +12189 -0
- data/{spec → assets}/javascripts/dependencies/jasmine-html.js +0 -0
- data/{spec → assets}/javascripts/dependencies/jasmine.js +0 -0
- data/assets/javascripts/dependencies/jquery.js +4 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/modal.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/modernizr.min.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/prettify.js +0 -0
- data/{spec → assets}/javascripts/dependencies/sinon.js +0 -0
- data/{vendor/assets/javascripts → assets/javascripts/dependencies}/spin-min.js +0 -0
- data/assets/javascripts/dependencies/underscore-min.js +31 -0
- data/assets/javascripts/dependencies/underscore-string.min.js +14 -0
- data/assets/javascripts/dependencies.coffee +5 -0
- data/assets/javascripts/luca/index.coffee +1 -0
- data/assets/javascripts/luca-templates.js +1 -0
- data/assets/javascripts/luca-ui-base.coffee +1 -0
- data/assets/javascripts/luca-ui-bootstrap.js +1 -0
- data/assets/javascripts/luca-ui-development-tools.coffee +9 -0
- data/assets/javascripts/luca-ui-full.js +3 -0
- data/assets/javascripts/luca-ui-spec.coffee +2 -0
- data/assets/javascripts/luca-ui.js +3 -0
- data/assets/javascripts/sandbox/application.coffee +57 -0
- data/assets/javascripts/sandbox/config.coffee +7 -0
- data/assets/javascripts/sandbox/router.coffee +24 -0
- data/assets/javascripts/sandbox/templates/builder/component_list.luca +1 -0
- data/assets/javascripts/sandbox/templates/builder.luca +2 -0
- data/assets/javascripts/sandbox/templates/main.luca +53 -0
- data/assets/javascripts/sandbox/templates/sandbox/docs_index.luca +1 -0
- data/assets/javascripts/sandbox/templates/sandbox/navigation.luca +8 -0
- data/assets/javascripts/sandbox/templates/sandbox/readme.luca +30 -0
- data/assets/javascripts/sandbox/templates/sandbox.luca +1 -0
- data/assets/javascripts/sandbox/views/builder/builder_canvas.coffee +3 -0
- data/assets/javascripts/sandbox/views/builder/builder_editor.coffee +6 -0
- data/assets/javascripts/sandbox/views/builder/component_list.coffee +38 -0
- data/assets/javascripts/sandbox/views/builder/project_browser.coffee +14 -0
- data/assets/javascripts/sandbox/views/builder.coffee +133 -0
- data/assets/javascripts/sandbox/views/docs_controller.coffee +7 -0
- data/assets/javascripts/sandbox/views/inspector/instance_filter.coffee +18 -0
- data/{app/assets/stylesheets/luca/containers/modal_view.scss → assets/javascripts/sandbox/views/inspector/instance_list.coffee} +0 -0
- data/assets/javascripts/sandbox/views/inspector.coffee +11 -0
- data/assets/javascripts/sandbox/views/top_navigation.coffee +4 -0
- data/assets/javascripts/sandbox.coffee +7 -0
- data/assets/javascripts/spec-dependencies.coffee +4 -0
- data/assets/stylesheets/bootstrap-responsive.min.css +2 -0
- data/assets/stylesheets/bootstrap.min.css +727 -0
- data/{vendor/assets → assets}/stylesheets/codemirror-blackboard.css +0 -0
- data/{vendor/assets → assets}/stylesheets/codemirror-monokai.css +0 -0
- data/{vendor/assets → assets}/stylesheets/codemirror.css +0 -0
- data/{vendor/assets → assets}/stylesheets/jasmine.css +0 -0
- data/assets/stylesheets/luca-ui-bootstrap.css +4 -0
- data/assets/stylesheets/luca-ui-development-tools.css +5 -0
- data/assets/stylesheets/luca-ui-full.css +3 -0
- data/assets/stylesheets/luca-ui-spec.css +3 -0
- data/assets/stylesheets/luca-ui.css +3 -0
- data/assets/stylesheets/prettify.css +40 -0
- data/assets/stylesheets/sandbox/builder.scss +79 -0
- data/assets/stylesheets/sandbox/sandbox.scss +18 -0
- data/assets/stylesheets/sandbox.css +3 -0
- data/assets/stylesheets/themes/amelia-bootstrap.css +826 -0
- data/assets/stylesheets/themes/slate-bootstrap.css +797 -0
- data/assets/stylesheets/themes/superhero-bootstrap.css +830 -0
- data/config.ru +2 -1
- data/docs/{old/application.md → application.md} +0 -0
- data/docs/{old/collection.md → collection.md} +0 -0
- data/docs/{old/collection_manager.md → collection_manager.md} +0 -0
- data/docs/{old/container_philosophy.md → container_philosophy.md} +0 -0
- data/docs/{old/event_binding_helpers.md → event_binding_helpers.md} +0 -0
- data/docs/{old/method_caching_and_computed_properties.md → method_caching_and_computed_properties.md} +0 -0
- data/docs/{old/view.md → view.md} +0 -0
- data/lib/luca/code_browser.rb +55 -0
- data/lib/luca/command_line.rb +69 -0
- data/lib/luca/rails/engine.rb +0 -12
- data/lib/luca/rails/version.rb +2 -1
- data/lib/luca/rails.rb +3 -5
- data/lib/luca/template.rb +0 -2
- data/lib/luca.rb +1 -25
- data/luca.gemspec +7 -16
- data/site/assets/bootstrap.min.js +7 -0
- data/site/assets/dependencies.js +94 -0
- data/site/assets/glyphicons-halflings-white.png +0 -0
- data/site/assets/glyphicons-halflings.png +0 -0
- data/site/assets/luca-ui-bootstrap.css +1331 -0
- data/site/assets/luca-ui-bootstrap.js +9 -0
- data/site/assets/luca-ui-development-tools.css +234 -0
- data/site/assets/luca-ui-development-tools.js +18561 -0
- data/site/assets/luca-ui-development-tools.min.js +15 -0
- data/site/assets/luca-ui-full.min.js +8 -0
- data/site/assets/luca-ui.min.js +4 -0
- data/site/assets/sandbox.css +62 -0
- data/site/assets/sandbox.js +469 -0
- data/site/docs/application.html +41 -0
- data/site/docs/caching.html +43 -0
- data/site/docs/collection.html +75 -0
- data/site/docs/collection_manager.html +71 -0
- data/site/docs/containers.html +118 -0
- data/site/docs/events.html +153 -0
- data/site/docs/view.html +128 -0
- data/site/img/glyphicons-halflings-white.png +0 -0
- data/site/img/glyphicons-halflings.png +0 -0
- data/site/index.html +20 -0
- data/site/source-map.js +1 -0
- data/spec/{javascripts/components → components}/application_spec.coffee +0 -0
- data/spec/{javascripts/components → components}/collection_loader_view_spec.coffee +0 -0
- data/{site/source/app/assets/javascripts/docs/lib/util.coffee → spec/components/controller_spec.coffee} +0 -0
- data/spec/{javascripts/components → components}/fields/checkbox_array_spec.coffee +0 -0
- data/spec/components/form_view_spec.coffee +80 -0
- data/spec/{javascripts/components → components}/grid_view_spec.coffee +0 -0
- data/spec/{javascripts/components → components}/record_manager_spec.coffee +0 -0
- data/spec/{javascripts/components → components}/template_spec.coffee +0 -0
- data/spec/containers/card_view_spec.coffee +50 -0
- data/{site/source/app/assets/javascripts/docs/views/components/code_editor/index.coffee → spec/containers/column_view_spec.coffee} +0 -0
- data/spec/{javascripts/containers → containers}/modal_view_spec.coffee +0 -0
- data/spec/{javascripts/containers → containers}/panel_view_spec.coffee +0 -0
- data/spec/{javascripts/components/pagination_control_spec.coffee → containers/split_view_spec.coffee} +0 -0
- data/spec/{javascripts/containers → containers}/tab_view_spec.coffee +0 -0
- data/spec/{javascripts/containers → containers}/viewport_spec.coffee +0 -0
- data/spec/{javascripts/core → core}/collection_spec.coffee +1 -26
- data/spec/core/container_spec.coffee +66 -0
- data/spec/{javascripts/concerns/paginatable_spec.coffee → core/field_spec.coffee} +0 -0
- data/spec/{javascripts/core → core}/model_spec.coffee +3 -26
- data/spec/{javascripts/core → core}/observer_spec.coffee +0 -0
- data/spec/{javascripts/core → core}/view_spec.coffee +38 -114
- data/spec/{javascripts/core/framework_spec.coffee → framework_spec.coffee} +2 -31
- data/spec/{javascripts/helper.coffee → helper.coffee} +0 -0
- data/spec/{javascripts/managers → managers}/collection_manager_spec.coffee +0 -0
- data/spec/{javascripts/managers → managers}/socket_manager_spec.coffee +0 -0
- data/src/components/application.coffee +318 -0
- data/src/components/base_toolbar.coffee +15 -0
- data/{app/assets/javascripts/luca → src}/components/collection_loader_view.coffee +1 -3
- data/src/components/collection_view.coffee +131 -0
- data/src/components/controller.coffee +63 -0
- data/src/components/fields/button_field.coffee +38 -0
- data/{app/assets/javascripts/luca → src}/components/fields/checkbox_array.coffee +7 -18
- data/{app/assets/javascripts/luca → src}/components/fields/checkbox_field.coffee +10 -19
- data/{app/assets/javascripts/luca → src}/components/fields/file_upload_field.coffee +4 -5
- data/src/components/fields/hidden_field.coffee +12 -0
- data/src/components/fields/label_field.coffee +14 -0
- data/src/components/fields/select_field.coffee +97 -0
- data/src/components/fields/text_area_field.coffee +40 -0
- data/{app/assets/javascripts/luca → src}/components/fields/text_field.coffee +5 -16
- data/src/components/fields/type_ahead_field.coffee +22 -0
- data/src/components/form_button_toolbar.coffee +25 -0
- data/src/components/form_view.coffee +275 -0
- data/src/components/grid_view.coffee +269 -0
- data/src/components/index.coffee +1 -0
- data/src/components/load_mask.coffee +3 -0
- data/src/components/nav_bar.coffee +22 -0
- data/src/components/page_controller.coffee +2 -0
- data/{app/assets/javascripts/luca → src}/components/record_manager.coffee +0 -0
- data/{app/assets/javascripts/luca → src}/components/router.coffee +1 -6
- data/src/components/table_view.coffee +53 -0
- data/src/components/template.coffee +5 -0
- data/src/components/toolbar_dialog.coffee +25 -0
- data/src/containers/card_view.coffee +93 -0
- data/src/containers/column_view.coffee +42 -0
- data/{app/assets/javascripts/luca → src}/containers/modal_view.coffee +9 -9
- data/src/containers/page_view.coffee +2 -0
- data/{app/assets/javascripts/luca → src}/containers/panel_toolbar.coffee +84 -89
- data/src/containers/panel_view.coffee +23 -0
- data/src/containers/split_view.coffee +8 -0
- data/{app/assets/javascripts/luca → src}/containers/tab_view.coffee +21 -27
- data/{app/assets/javascripts/luca → src}/containers/viewport.coffee +18 -14
- data/{app/assets/javascripts/luca → src}/core/collection.coffee +51 -97
- data/src/core/container.coffee +374 -0
- data/{tutorials/component-definitions.md → src/core/core.coffee} +0 -0
- data/src/core/field.coffee +79 -0
- data/src/core/model.coffee +43 -0
- data/{app/assets/javascripts/luca → src}/core/observer.coffee +0 -0
- data/src/core/panel.coffee +118 -0
- data/{app/assets/javascripts/luca/core/registry → src/core}/registry.coffee +43 -63
- data/{app/assets/javascripts/luca/util → src/core}/script_loader.coffee +0 -0
- data/src/core/view.coffee +264 -0
- data/src/define.coffee +110 -0
- data/{app/assets/javascripts/luca → src}/framework.coffee +103 -98
- data/src/index.coffee +23 -0
- data/{app/assets/javascripts/luca → src}/managers/collection_manager.coffee +13 -37
- data/src/managers/socket_manager.coffee +54 -0
- data/{app/assets/javascripts/luca/concerns → src/modules}/deferrable.coffee +4 -5
- data/src/modules/grid_layout.coffee +3 -0
- data/{app/assets/javascripts/luca/concerns/loadmaskable.coffee → src/modules/load_mask.coffee} +11 -23
- data/{app/assets/javascripts/luca/concerns → src/modules}/local_storage.coffee +0 -0
- data/src/plugins/development_tool_helpers.coffee +21 -0
- data/src/plugins/events.coffee +54 -0
- data/src/samples/definition.coffee +49 -0
- data/{tutorials/component-definitions/01_intro.md → src/stylesheets/base.scss} +0 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/components/checkbox_array.scss +1 -1
- data/src/stylesheets/components/form_view.scss +59 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/components/grid_view.scss +0 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/components/load_mask.scss +0 -0
- data/src/stylesheets/components/toolbar.scss +0 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/components/viewport.scss +4 -1
- data/src/stylesheets/containers/container.scss +16 -0
- data/src/stylesheets/containers/modal_view.scss +0 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/containers/panels.scss +0 -0
- data/{app/assets/stylesheets/luca → src/stylesheets}/containers/tab_view.scss +5 -5
- data/{app/assets/stylesheets/luca → src/stylesheets}/normalize.scss +0 -0
- data/src/stylesheets/tools/class_browser.scss +32 -0
- data/src/stylesheets/tools/code_editor.scss +24 -0
- data/src/stylesheets/tools/component_tester.scss +26 -0
- data/{app/assets/stylesheets/luca/development → src/stylesheets/tools}/console.scss +0 -0
- data/src/templates/components/bootstrap_form_controls.luca +7 -0
- data/src/templates/components/collection_loader_view.luca +5 -0
- data/src/templates/components/form_alert +0 -0
- data/src/templates/components/form_alert.luca +3 -0
- data/src/templates/components/grid_view.luca +7 -0
- data/src/templates/components/grid_view_empty_text.luca +3 -0
- data/src/templates/components/load_mask.luca +3 -0
- data/src/templates/components/nav_bar.luca +2 -0
- data/src/templates/containers/basic.luca +1 -0
- data/src/templates/containers/tab_selector_container.luca +8 -0
- data/src/templates/containers/tab_view.luca +2 -0
- data/src/templates/containers/toolbar_wrapper.luca +1 -0
- data/src/templates/fields/button_field.luca +2 -0
- data/src/templates/fields/button_field_link.luca +5 -0
- data/src/templates/fields/checkbox_array.luca +4 -0
- data/src/templates/fields/checkbox_array_item.luca +4 -0
- data/src/templates/fields/checkbox_field.luca +9 -0
- data/src/templates/fields/file_upload_field.luca +8 -0
- data/src/templates/fields/hidden_field.luca +1 -0
- data/src/templates/fields/select_field.luca +8 -0
- data/src/templates/fields/text_area_field.luca +8 -0
- data/src/templates/fields/text_field.luca +17 -0
- data/src/templates/sample/contents.luca +1 -0
- data/src/templates/sample/welcome.luca +1 -0
- data/src/templates/table_view.luca +4 -0
- data/src/tools/application_inspector.coffee +2 -0
- data/src/tools/code_editor.coffee +258 -0
- data/{app/assets/javascripts/luca/development → src/tools}/code_mirror_field.coffee +1 -2
- data/src/tools/coffee_script_editor.coffee +82 -0
- data/src/tools/collection_inspector.coffee +4 -0
- data/src/tools/collections/components.coffee +59 -0
- data/src/tools/collections/instances.coffee +15 -0
- data/src/tools/component_tester.coffee +462 -0
- data/{app/assets/javascripts/luca/development → src/tools}/console.coffee +24 -55
- data/src/tools/models/components.coffee +25 -0
- data/src/tools/models/instance.coffee +2 -0
- data/src/tools/templates/component_tester/help.luca +14 -0
- data/{app/assets/javascripts/luca/util/luca.coffee → src/util.coffee} +6 -90
- data/vendor/assets/javascripts/luca-ui-development-tools.js +18533 -0
- data/vendor/assets/javascripts/luca-ui-development-tools.min.js +15 -0
- data/vendor/assets/javascripts/luca-ui-full.js +4806 -0
- data/vendor/assets/javascripts/luca-ui-full.min.js +8 -0
- data/vendor/assets/javascripts/luca-ui-templates.js +24 -0
- data/vendor/assets/javascripts/luca-ui.js +1703 -4394
- data/vendor/assets/javascripts/luca-ui.min.js +4 -5
- data/vendor/assets/luca-ui/base.css +85 -0
- data/vendor/assets/luca-ui/components/application.js +91 -0
- data/vendor/assets/luca-ui/components/base_toolbar.js +23 -0
- data/vendor/assets/luca-ui/components/controller.js +38 -0
- data/vendor/assets/luca-ui/components/fields/button_field.js +45 -0
- data/vendor/assets/luca-ui/components/fields/checkbox_field.js +43 -0
- data/vendor/assets/luca-ui/components/fields/file_upload_field.js +20 -0
- data/vendor/assets/luca-ui/components/fields/hidden_field.js +20 -0
- data/vendor/assets/luca-ui/components/fields/select_field.js +97 -0
- data/vendor/assets/luca-ui/components/fields/text_area_field.js +48 -0
- data/vendor/assets/luca-ui/components/fields/text_field.js +46 -0
- data/vendor/assets/luca-ui/components/fields/type_ahead_field.js +13 -0
- data/vendor/assets/luca-ui/components/form_button_toolbar.js +32 -0
- data/vendor/assets/luca-ui/components/form_view.css +32 -0
- data/vendor/assets/luca-ui/components/form_view.js +207 -0
- data/{app/assets/stylesheets/luca/components/table_view.scss → vendor/assets/luca-ui/components/grid_view.css} +51 -60
- data/vendor/assets/luca-ui/components/grid_view.js +202 -0
- data/vendor/assets/luca-ui/components/record_manager.js +207 -0
- data/vendor/assets/luca-ui/components/router.js +36 -0
- data/vendor/assets/luca-ui/components/template.js +26 -0
- data/vendor/assets/luca-ui/components/toolbar.css +11 -0
- data/vendor/assets/luca-ui/containers/card_view.js +98 -0
- data/vendor/assets/luca-ui/containers/column_view.js +52 -0
- data/vendor/assets/luca-ui/containers/container.css +3 -0
- data/vendor/assets/luca-ui/containers/modal_view.css +0 -0
- data/vendor/assets/luca-ui/containers/modal_view.js +87 -0
- data/vendor/assets/luca-ui/containers/panel_view.js +34 -0
- data/vendor/assets/luca-ui/containers/split_view.js +13 -0
- data/vendor/assets/luca-ui/containers/tab_view.css +16 -0
- data/vendor/assets/luca-ui/containers/tab_view.js +80 -0
- data/vendor/assets/luca-ui/containers/viewport.js +18 -0
- data/vendor/assets/luca-ui/core/collection.js +221 -0
- data/vendor/assets/luca-ui/core/container.js +205 -0
- data/vendor/assets/luca-ui/core/field.js +59 -0
- data/vendor/assets/luca-ui/core/observer.js +42 -0
- data/vendor/assets/luca-ui/core/view.js +127 -0
- data/vendor/assets/luca-ui/framework.js +110 -0
- data/vendor/assets/luca-ui/index.js +5 -0
- data/vendor/assets/luca-ui/managers/collection_manager.js +98 -0
- data/vendor/assets/luca-ui/managers/socket_manager.js +52 -0
- data/vendor/assets/luca-ui/modules/deferrable.js +21 -0
- data/vendor/assets/luca-ui/modules/local_storage.js +81 -0
- data/vendor/assets/luca-ui/normalize.css +359 -0
- data/vendor/assets/luca-ui/stylesheets/base.css +85 -0
- data/vendor/assets/luca-ui/stylesheets/components/form_view.css +32 -0
- data/vendor/assets/luca-ui/stylesheets/components/grid_view.css +76 -0
- data/vendor/assets/luca-ui/stylesheets/components/toolbar.css +11 -0
- data/vendor/assets/luca-ui/stylesheets/containers/container.css +3 -0
- data/vendor/assets/luca-ui/stylesheets/containers/modal_view.css +0 -0
- data/vendor/assets/luca-ui/stylesheets/containers/tab_view.css +16 -0
- data/vendor/assets/luca-ui/stylesheets/normalize.css +359 -0
- data/vendor/assets/luca-ui/templates/components/bootstrap_form_controls.js +4 -0
- data/vendor/assets/luca-ui/templates/components/form_view.js +4 -0
- data/vendor/assets/luca-ui/templates/components/grid_view.js +4 -0
- data/vendor/assets/luca-ui/templates/components/grid_view_empty_text.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/basic.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/tab_selector_container.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/tab_view.js +4 -0
- data/vendor/assets/luca-ui/templates/containers/toolbar_wrapper.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/button_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/button_field_link.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/checkbox_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/file_upload_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/hidden_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/select_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/text_area_field.js +4 -0
- data/vendor/assets/luca-ui/templates/fields/text_field.js +4 -0
- data/vendor/assets/luca-ui/templates/sample/contents.js +4 -0
- data/vendor/assets/luca-ui/templates/sample/welcome.js +4 -0
- data/vendor/assets/stylesheets/luca-ui.css +471 -68
- data/views/jasmine.erb +2 -2
- metadata +328 -496
- data/app/assets/javascripts/luca/basic.coffee +0 -8
- data/app/assets/javascripts/luca/components/application.coffee +0 -530
- data/app/assets/javascripts/luca/components/collection_view.coffee +0 -211
- data/app/assets/javascripts/luca/components/controller.coffee +0 -176
- data/app/assets/javascripts/luca/components/fields/base.coffee +0 -144
- data/app/assets/javascripts/luca/components/fields/button_field.coffee +0 -91
- data/app/assets/javascripts/luca/components/fields/hidden_field.coffee +0 -11
- data/app/assets/javascripts/luca/components/fields/label_field.coffee +0 -12
- data/app/assets/javascripts/luca/components/fields/select_field.coffee +0 -159
- data/app/assets/javascripts/luca/components/fields/text_area_field.coffee +0 -57
- data/app/assets/javascripts/luca/components/fields/type_ahead_field.coffee +0 -20
- data/app/assets/javascripts/luca/components/form_view.coffee +0 -421
- data/app/assets/javascripts/luca/components/grid_layout_view.coffee +0 -42
- data/app/assets/javascripts/luca/components/index.coffee +0 -7
- data/app/assets/javascripts/luca/components/load_mask.coffee +0 -8
- data/app/assets/javascripts/luca/components/multi_collection_view.coffee +0 -92
- data/app/assets/javascripts/luca/components/nav_bar.coffee +0 -80
- data/app/assets/javascripts/luca/components/page.coffee +0 -70
- data/app/assets/javascripts/luca/components/pagination_control.coffee +0 -104
- data/app/assets/javascripts/luca/components/simple_collection_view.coffee +0 -10
- data/app/assets/javascripts/luca/components/table_view.coffee +0 -93
- data/app/assets/javascripts/luca/components/table_view_scrollable.coffee +0 -23
- data/app/assets/javascripts/luca/concerns/application_event_bindings.coffee +0 -19
- data/app/assets/javascripts/luca/concerns/collection_event_bindings.coffee +0 -47
- data/app/assets/javascripts/luca/concerns/development_tool_helpers.coffee +0 -30
- data/app/assets/javascripts/luca/concerns/dom_helpers.coffee +0 -61
- data/app/assets/javascripts/luca/concerns/enhanced_properties.coffee +0 -23
- data/app/assets/javascripts/luca/concerns/filterable.coffee +0 -101
- data/app/assets/javascripts/luca/concerns/form_model_bindings.coffee +0 -20
- data/app/assets/javascripts/luca/concerns/grid_layout.coffee +0 -15
- data/app/assets/javascripts/luca/concerns/modal_view.coffee +0 -63
- data/app/assets/javascripts/luca/concerns/model_presenter.coffee +0 -23
- data/app/assets/javascripts/luca/concerns/paginatable.coffee +0 -79
- data/app/assets/javascripts/luca/concerns/query_collection_bindings.coffee +0 -52
- data/app/assets/javascripts/luca/concerns/sortable.coffee +0 -69
- data/app/assets/javascripts/luca/concerns/state_model.coffee +0 -58
- data/app/assets/javascripts/luca/concerns/templating.coffee +0 -13
- data/app/assets/javascripts/luca/config.coffee +0 -54
- data/app/assets/javascripts/luca/containers/card_view.coffee +0 -178
- data/app/assets/javascripts/luca/containers/container.coffee +0 -711
- data/app/assets/javascripts/luca/containers/index.coffee +0 -2
- data/app/assets/javascripts/luca/containers/page_controller.coffee +0 -25
- data/app/assets/javascripts/luca/core/events.coffee +0 -114
- data/app/assets/javascripts/luca/core/index.coffee +0 -12
- data/app/assets/javascripts/luca/core/model.coffee +0 -56
- data/app/assets/javascripts/luca/core/panel.coffee +0 -124
- data/app/assets/javascripts/luca/core/registry/component_definition.coffee +0 -319
- data/app/assets/javascripts/luca/core/registry/concerns.coffee +0 -70
- data/app/assets/javascripts/luca/core/registry/index.coffee +0 -4
- data/app/assets/javascripts/luca/core/registry/meta_data.coffee +0 -99
- data/app/assets/javascripts/luca/core/templates.coffee +0 -51
- data/app/assets/javascripts/luca/core/view.coffee +0 -383
- data/app/assets/javascripts/luca/dependencies.coffee +0 -9
- data/app/assets/javascripts/luca/development/code_sync_manager.coffee +0 -173
- data/app/assets/javascripts/luca/development/component.coffee +0 -76
- data/app/assets/javascripts/luca/development/components.coffee +0 -57
- data/app/assets/javascripts/luca/development/index.coffee +0 -5
- data/app/assets/javascripts/luca/index.coffee +0 -9
- data/app/assets/javascripts/luca/managers/index.coffee +0 -2
- data/app/assets/javascripts/luca/managers/socket_manager.coffee +0 -89
- data/app/assets/javascripts/luca/templates/components/bootstrap_form_controls.jst.ejs +0 -10
- data/app/assets/javascripts/luca/templates/components/collection_loader_view.jst.ejs +0 -6
- data/app/assets/javascripts/luca/templates/components/form_alert.jst.ejs +0 -4
- data/app/assets/javascripts/luca/templates/components/grid_view.jst.ejs +0 -11
- data/app/assets/javascripts/luca/templates/components/grid_view_empty_text.jst.ejs +0 -3
- data/app/assets/javascripts/luca/templates/components/load_mask.jst.ejs +0 -5
- data/app/assets/javascripts/luca/templates/components/nav_bar.jst.ejs +0 -19
- data/app/assets/javascripts/luca/templates/components/pagination.jst.ejs +0 -10
- data/app/assets/javascripts/luca/templates/components/table_view.jst.ejs +0 -4
- data/app/assets/javascripts/luca/templates/containers/basic.jst.ejs +0 -1
- data/app/assets/javascripts/luca/templates/containers/tab_selector_container.jst.ejs +0 -12
- data/app/assets/javascripts/luca/templates/containers/tab_view.jst.ejs +0 -2
- data/app/assets/javascripts/luca/templates/containers/toolbar_wrapper.jst.ejs +0 -1
- data/app/assets/javascripts/luca/templates/fields/button_field.jst.ejs +0 -2
- data/app/assets/javascripts/luca/templates/fields/button_field_link.jst.ejs +0 -6
- data/app/assets/javascripts/luca/templates/fields/checkbox_array.jst.ejs +0 -4
- data/app/assets/javascripts/luca/templates/fields/checkbox_array_item.jst.ejs +0 -3
- data/app/assets/javascripts/luca/templates/fields/checkbox_field.jst.ejs +0 -10
- data/app/assets/javascripts/luca/templates/fields/file_upload_field.jst.ejs +0 -10
- data/app/assets/javascripts/luca/templates/fields/hidden_field.jst.ejs +0 -1
- data/app/assets/javascripts/luca/templates/fields/select_field.jst.ejs +0 -11
- data/app/assets/javascripts/luca/templates/fields/text_area_field.jst.ejs +0 -11
- data/app/assets/javascripts/luca/templates/fields/text_field.jst.ejs +0 -16
- data/app/assets/javascripts/luca/util/deprecations.coffee +0 -18
- data/app/assets/javascripts/luca/util/index.coffee +0 -4
- data/app/assets/javascripts/luca/util/keybindings.coffee +0 -24
- data/app/assets/javascripts/luca/util/logging.coffee +0 -30
- data/app/assets/javascripts/luca-ui.js +0 -1
- data/app/assets/stylesheets/luca/components/form_view.scss +0 -7
- data/app/assets/stylesheets/luca/containers/container.scss +0 -19
- data/app/assets/stylesheets/luca/development/index.css +0 -3
- data/app/assets/stylesheets/luca/index.css +0 -4
- data/bin/luca +0 -14
- data/docs/framework.json +0 -1
- data/docs/luca-framework-documentation.js +0 -1
- data/lib/generators/luca/application/application_generator.rb +0 -75
- data/lib/generators/luca/application/templates/controller.rb +0 -4
- data/lib/generators/luca/application/templates/index.html.erb +0 -19
- data/lib/generators/luca/application/templates/index.html.haml +0 -7
- data/lib/generators/luca/application/templates/javascripts/application.coffee +0 -18
- data/lib/generators/luca/application/templates/javascripts/collection_manager.coffee +0 -2
- data/lib/generators/luca/application/templates/javascripts/config.coffee +0 -3
- data/lib/generators/luca/application/templates/javascripts/dependencies.coffee +0 -3
- data/lib/generators/luca/application/templates/javascripts/home.jst.ejs +0 -2
- data/lib/generators/luca/application/templates/javascripts/index.coffee +0 -15
- data/lib/generators/luca/application/templates/javascripts/router.coffee +0 -4
- data/lib/guard/luca.rb +0 -84
- data/lib/luca/asset_compiler.rb +0 -117
- data/lib/luca/cli/generate.rb +0 -37
- data/lib/luca/cli/server.rb +0 -20
- data/lib/luca/cli/sync.rb +0 -40
- data/lib/luca/cli/watch.rb +0 -16
- data/lib/luca/cli.rb +0 -68
- data/lib/luca/collection/endpoint.rb +0 -38
- data/lib/luca/collection/file_backend.rb +0 -121
- data/lib/luca/collection/redis_backend.rb +0 -153
- data/lib/luca/collection.rb +0 -64
- data/lib/luca/compiled_asset.rb +0 -61
- data/lib/luca/component_definition.rb +0 -356
- data/lib/luca/luca_application.rb +0 -258
- data/lib/luca/project.rb +0 -73
- data/lib/luca/project_harness.rb +0 -96
- data/lib/luca/server.rb +0 -7
- data/lib/luca/stylesheet.rb +0 -35
- data/lib/luca/template_asset.rb +0 -64
- data/lib/luca/version.rb +0 -3
- data/lib/luca/watcher.rb +0 -72
- data/lib/railties/luca/tasks.rake +0 -38
- data/site/.bundle/config +0 -2
- data/site/.gitignore +0 -5
- data/site/.rvmrc +0 -1
- data/site/CHANGELOG.md +0 -41
- data/site/DOCS.md +0 -41
- data/site/Gemfile +0 -8
- data/site/Gemfile.lock +0 -134
- data/site/LICENSE.md +0 -19
- data/site/config.rb +0 -84
- data/site/helpers/site_helpers.rb +0 -20
- data/site/html5bp-docs/README.md +0 -38
- data/site/html5bp-docs/contribute.md +0 -104
- data/site/html5bp-docs/crossdomain.md +0 -21
- data/site/html5bp-docs/css.md +0 -135
- data/site/html5bp-docs/extend.md +0 -507
- data/site/html5bp-docs/faq.md +0 -77
- data/site/html5bp-docs/htaccess.md +0 -323
- data/site/html5bp-docs/html.md +0 -170
- data/site/html5bp-docs/js.md +0 -31
- data/site/html5bp-docs/misc.md +0 -25
- data/site/html5bp-docs/usage.md +0 -109
- data/site/readme.md +0 -47
- data/site/source/.htaccess +0 -540
- data/site/source/404.html +0 -157
- data/site/source/app/assets/javascripts/dependencies.js.coffee +0 -6
- data/site/source/app/assets/javascripts/docs/application.coffee +0 -64
- data/site/source/app/assets/javascripts/docs/collections/docs_documentation.coffee +0 -17
- data/site/source/app/assets/javascripts/docs/collections/github_repositories.coffee +0 -7
- data/site/source/app/assets/javascripts/docs/collections/index.coffee +0 -1
- data/site/source/app/assets/javascripts/docs/collections/luca_documentation.coffee +0 -17
- data/site/source/app/assets/javascripts/docs/collections/public_gists.coffee +0 -4
- data/site/source/app/assets/javascripts/docs/config.coffee +0 -5
- data/site/source/app/assets/javascripts/docs/index.coffee +0 -12
- data/site/source/app/assets/javascripts/docs/lib/router.coffee +0 -3
- data/site/source/app/assets/javascripts/docs/models/component.coffee +0 -99
- data/site/source/app/assets/javascripts/docs/models/github_repository.coffee +0 -3
- data/site/source/app/assets/javascripts/docs/models/index.coffee +0 -1
- data/site/source/app/assets/javascripts/docs/templates/component_documentation.jst.ejs +0 -55
- data/site/source/app/assets/javascripts/docs/templates/examples_browser/overview.jst.ejs +0 -4
- data/site/source/app/assets/javascripts/docs/templates/examples_browser/selector.jst.ejs +0 -11
- data/site/source/app/assets/javascripts/docs/templates/github_repository.jst.ejs +0 -4
- data/site/source/app/assets/javascripts/docs/templates/layouts/main.jst.ejs +0 -4
- data/site/source/app/assets/javascripts/docs/templates/left_navigation.jst.ejs +0 -5
- data/site/source/app/assets/javascripts/docs/templates/pages/getting_started.jst.ejs +0 -78
- data/site/source/app/assets/javascripts/docs/templates/pages/home.jst.ejs +0 -57
- data/site/source/app/assets/javascripts/docs/views/components/code_editor.coffee +0 -45
- data/site/source/app/assets/javascripts/docs/views/components/component_documentation.coffee +0 -72
- data/site/source/app/assets/javascripts/docs/views/index.coffee +0 -3
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source/details.coffee +0 -37
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source/list.coffee +0 -31
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source.coffee +0 -46
- data/site/source/app/assets/javascripts/docs/views/pages/component_editor.coffee +0 -10
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser/docs.coffee +0 -12
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser/source.coffee +0 -13
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser.coffee +0 -102
- data/site/source/app/assets/javascripts/docs/views/pages/home.coffee +0 -10
- data/site/source/app/assets/javascripts/docs/views/views/api_browser/index.coffee +0 -43
- data/site/source/app/assets/javascripts/docs/views/views/collection_view_examples/grid_layout_view_example.coffee +0 -14
- data/site/source/app/assets/javascripts/docs/views/views/collection_view_examples/table_view_example.coffee +0 -39
- data/site/source/app/assets/javascripts/docs/views/views/form_view_examples/basic_example.coffee +0 -38
- data/site/source/app/assets/javascripts/docs/views/views/form_view_examples/complex_layout.coffee +0 -110
- data/site/source/app/assets/javascripts/docs/views/views/top_navigation.coffee +0 -6
- data/site/source/app/assets/javascripts/docs-docs.js +0 -1
- data/site/source/app/assets/javascripts/luca-docs.js +0 -1
- data/site/source/app/assets/javascripts/luca-framework-documentation.js +0 -1
- data/site/source/app/assets/javascripts/site.js.coffee +0 -4
- data/site/source/app/assets/javascripts/vendor/codemirror.js +0 -4786
- data/site/source/app/assets/javascripts/vendor/coffeescript.js +0 -346
- data/site/source/app/assets/javascripts/vendor/css.js +0 -465
- data/site/source/app/assets/javascripts/vendor/htmlmixed.js +0 -84
- data/site/source/app/assets/javascripts/vendor/javascript.js +0 -422
- data/site/source/app/assets/javascripts/vendor/js-beautify.js +0 -1353
- data/site/source/app/assets/javascripts/vendor/modernizr-2.6.1.min.js +0 -4
- data/site/source/app/assets/javascripts/vendor/vim.js +0 -2511
- data/site/source/app/assets/stylesheets/docs/api-browser.css.scss +0 -5
- data/site/source/app/assets/stylesheets/docs/application.css.scss +0 -35
- data/site/source/app/assets/stylesheets/docs/browse-source.css.scss +0 -5
- data/site/source/app/assets/stylesheets/docs/scrollable-table.css.scss +0 -5
- data/site/source/app/assets/stylesheets/site.css.scss +0 -2
- data/site/source/app/assets/stylesheets/vendor/codemirror.css +0 -240
- data/site/source/app/assets/stylesheets/vendor/prettify-tomorrow-night-bright.css +0 -160
- data/site/source/app/assets/stylesheets/vendor/twilight.css +0 -26
- data/site/source/crossdomain.xml +0 -15
- data/site/source/documentation.html.haml +0 -1
- data/site/source/favicon_base.png +0 -0
- data/site/source/humans.txt +0 -15
- data/site/source/images/background.png +0 -0
- data/site/source/images/middleman.png +0 -0
- data/site/source/index.html.haml +0 -1
- data/site/source/layouts/layout.haml +0 -55
- data/site/source/readme.md +0 -63
- data/site/source/robots.txt +0 -3
- data/spec/javascripts/components/collection_view_spec.coffee +0 -59
- data/spec/javascripts/components/controller_spec.coffee +0 -62
- data/spec/javascripts/components/form_view_spec.coffee +0 -162
- data/spec/javascripts/components/multi_collection_view_spec.coffee +0 -5
- data/spec/javascripts/components/table_view_spec.coffee +0 -17
- data/spec/javascripts/concerns/collection_event_bindings_spec.coffee +0 -15
- data/spec/javascripts/concerns/dom_helpers_spec.coffee +0 -16
- data/spec/javascripts/concerns/filterable_spec.coffee +0 -25
- data/spec/javascripts/concerns/model_presenter_spec.coffee +0 -31
- data/spec/javascripts/concerns/state_model_spec.coffee +0 -55
- data/spec/javascripts/containers/card_view_spec.coffee +0 -108
- data/spec/javascripts/core/concerns_spec.coffee +0 -88
- data/spec/javascripts/core/container_spec.coffee +0 -287
- data/spec/javascripts/core/define_spec.coffee +0 -116
- data/spec/javascripts/core/events_spec.coffee +0 -26
- data/spec/javascripts/core/field_spec.coffee +0 -4
- data/spec/javascripts/core/util_spec.coffee +0 -24
- data/spec/javascripts/dependencies/index.coffee +0 -3
- data/spec/lib/component_definition_spec.rb +0 -63
- data/spec/lib/input_compiler_spec.rb +0 -9
- data/spec/lib/luca_application_spec.rb +0 -30
- data/spec/support/fixtures/application.coffee +0 -45
- data/spec/support/fixtures/component.coffee +0 -34
- data/tutorials/component-driven-design.md +0 -140
- data/tutorials/structure-of-a-project.md +0 -63
- data/vendor/assets/javascripts/backbone-ext.js +0 -21
- data/vendor/assets/javascripts/backbone-min.js +0 -42
- data/vendor/assets/javascripts/backbone-query.min.js +0 -1
- data/vendor/assets/javascripts/bootstrap.min.js +0 -7
- data/vendor/assets/javascripts/codemirror-ui.js +0 -503
- data/vendor/assets/javascripts/hogan.js +0 -707
- data/vendor/assets/javascripts/inflections.js +0 -656
- data/vendor/assets/javascripts/jasmine-html.js +0 -190
- data/vendor/assets/javascripts/jasmine.js +0 -2476
- data/vendor/assets/javascripts/jquery.js +0 -5
- data/vendor/assets/javascripts/keymaster.min.js +0 -4
- data/vendor/assets/javascripts/luca-dependencies.min.js +0 -8
- data/vendor/assets/javascripts/luca-development.min.js +0 -1
- data/vendor/assets/javascripts/luca-spec.js +0 -11
- data/vendor/assets/javascripts/luca.full.min.js +0 -12
- data/vendor/assets/javascripts/luca.min.js +0 -5
- data/vendor/assets/javascripts/sinon.js +0 -3469
- data/vendor/assets/javascripts/underscore-min.js +0 -1
- data/vendor/assets/javascripts/underscore-string.min.js +0 -1
- data/vendor/assets/stylesheets/bootstrap-responsive.min.css +0 -9
- data/vendor/assets/stylesheets/bootstrap.min.css +0 -9
- data/vendor/assets/stylesheets/luca-components.css +0 -202
- data/vendor/assets/stylesheets/luca-development.css +0 -23
data/site/html5bp-docs/extend.md
DELETED
@@ -1,507 +0,0 @@
|
|
1
|
-
[HTML5 Boilerplate homepage](http://html5boilerplate.com) | [Documentation
|
2
|
-
table of contents](README.md)
|
3
|
-
|
4
|
-
# Extend and customise HTML5 Boilerplate
|
5
|
-
|
6
|
-
Here is some useful advice for how you can make your project with HTML5
|
7
|
-
Boilerplate even better. We don't want to include it all by default, as not
|
8
|
-
everything fits with everyone's needs.
|
9
|
-
|
10
|
-
|
11
|
-
## DNS prefetching
|
12
|
-
|
13
|
-
In short, DNS Prefetching is a method of informing the browser of domain names
|
14
|
-
referenced on a site so that the client can resolve the DNS for those hosts,
|
15
|
-
cache them, and when it comes time to use them, have a faster turn around on
|
16
|
-
the request.
|
17
|
-
|
18
|
-
### Implicit prefetches
|
19
|
-
|
20
|
-
There is a lot of prefetching done for you automatically by the browser. When
|
21
|
-
the browser encounters an anchor in your html that does not share the same
|
22
|
-
domain name as the current location the browser requests, from the client OS,
|
23
|
-
the IP address for this new domain. The client first checks its cache and
|
24
|
-
then, lacking a cached copy, makes a request from a DNS server. These requests
|
25
|
-
happen in the background and are not meant to block the rendering of the
|
26
|
-
page.
|
27
|
-
|
28
|
-
The goal of this is that when the foreign IP address is finally needed it will
|
29
|
-
already be in the client cache and will not block the loading of the foreign
|
30
|
-
content. Less requests result in faster page load times. The perception of this
|
31
|
-
is increased on a mobile platform where DNS latency can be greater.
|
32
|
-
|
33
|
-
#### Disable implicit prefetching
|
34
|
-
|
35
|
-
```html
|
36
|
-
<meta http-equiv="x-dns-prefetch-control" content="off">
|
37
|
-
```
|
38
|
-
|
39
|
-
Even with X-DNS-Prefetch-Control meta tag (or http header) browsers will still
|
40
|
-
prefetch any explicit dns-prefetch links.
|
41
|
-
|
42
|
-
**_WARNING:_** THIS MAY MAKE YOUR SITE SLOWER IF YOU RELY ON RESOURCES FROM
|
43
|
-
FOREIGN DOMAINS.
|
44
|
-
|
45
|
-
### Explicit prefetches
|
46
|
-
|
47
|
-
Typically the browser only scans the HTML for foreign domains. If you have
|
48
|
-
resources that are outside of your HTML (a javascript request to a remote
|
49
|
-
server or a CDN that hosts content that may not be present on every page of
|
50
|
-
your site, for example) then you can queue up a domain name to be prefetched.
|
51
|
-
|
52
|
-
```html
|
53
|
-
<link rel="dns-prefetch" href="//example.com">
|
54
|
-
<link rel="dns-prefetch" href="//ajax.googleapis.com">
|
55
|
-
```
|
56
|
-
|
57
|
-
You can use as many of these as you need, but it's best if they are all
|
58
|
-
immediately after the [Meta
|
59
|
-
Charset](https://developer.mozilla.org/en/HTML/Element/meta#attr-charset)
|
60
|
-
element (which should go right at the top of the `head`), so the browser can
|
61
|
-
act on them ASAP.
|
62
|
-
|
63
|
-
#### Common Prefetch Links
|
64
|
-
|
65
|
-
Amazon S3:
|
66
|
-
|
67
|
-
```html
|
68
|
-
<link rel="dns-prefetch" href="//s3.amazonaws.com">
|
69
|
-
```
|
70
|
-
|
71
|
-
Google APIs:
|
72
|
-
|
73
|
-
```html
|
74
|
-
<link rel="dns-prefetch" href="//ajax.googleapis.com">
|
75
|
-
```
|
76
|
-
|
77
|
-
Microsoft Ajax Content Delivery Network:
|
78
|
-
|
79
|
-
```html
|
80
|
-
<link rel="dns-prefetch" href="//ajax.microsoft.com">
|
81
|
-
<link rel="dns-prefetch" href="//ajax.aspnetcdn.com">
|
82
|
-
```
|
83
|
-
|
84
|
-
### Browser support for DNS prefetching
|
85
|
-
|
86
|
-
Chrome, Firefox 3.5+, Safari 5+, Opera (Unknown), IE 9 (called "Pre-resolution"
|
87
|
-
on blogs.msdn.com)
|
88
|
-
|
89
|
-
### Further reading about DNS prefetching
|
90
|
-
|
91
|
-
* https://developer.mozilla.org/En/Controlling_DNS_prefetching
|
92
|
-
* http://dev.chromium.org/developers/design-documents/dns-prefetching
|
93
|
-
* http://www.apple.com/safari/whats-new.html
|
94
|
-
* http://blogs.msdn.com/b/ie/archive/2011/03/17/internet-explorer-9-network-performance-improvements.aspx
|
95
|
-
* http://dayofjs.com/videos/22158462/web-browsers_alex-russel
|
96
|
-
|
97
|
-
|
98
|
-
## Search
|
99
|
-
|
100
|
-
### Direct search spiders to your sitemap
|
101
|
-
|
102
|
-
[Learn how to make a sitemap](http://www.sitemaps.org/protocol.php)
|
103
|
-
|
104
|
-
```html
|
105
|
-
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
|
106
|
-
```
|
107
|
-
|
108
|
-
### Hide pages from search engines
|
109
|
-
|
110
|
-
According to Heather Champ, former community manager at Flickr, you should not
|
111
|
-
allow search engines to index your "Contact Us" or "Complaints" page if you
|
112
|
-
value your sanity. This is an HTML-centric way of achieving that.
|
113
|
-
|
114
|
-
```html
|
115
|
-
<meta name="robots" content="noindex">
|
116
|
-
```
|
117
|
-
|
118
|
-
**_WARNING:_** DO NOT INCLUDE ON PAGES THAT SHOULD APPEAR IN SEARCH ENGINES.
|
119
|
-
|
120
|
-
### Firefox and IE Search Plugins
|
121
|
-
|
122
|
-
Sites with in-site search functionality should be strongly considered for a
|
123
|
-
browser search plugin. A "search plugin" is an XML file which defines how your
|
124
|
-
plugin behaves in the browser. [How to make a browser search
|
125
|
-
plugin](http://www.google.com/search?ie=UTF-8&q=how+to+make+browser+search+plugin).
|
126
|
-
|
127
|
-
```html
|
128
|
-
<link rel="search" title="" type="application/opensearchdescription+xml" href="">
|
129
|
-
```
|
130
|
-
|
131
|
-
|
132
|
-
## Internet Explorer
|
133
|
-
|
134
|
-
### Prompt users to switch to "Desktop Mode" in IE10 Metro
|
135
|
-
|
136
|
-
IE10 does not support plugins, such as Flash, in Metro mode. If your site
|
137
|
-
requires plugins, you can let users know that via the X-UA-Compatible meta
|
138
|
-
element, which will prompt them to switch to Desktop Mode.
|
139
|
-
|
140
|
-
```html
|
141
|
-
<meta http-equiv="X-UA-Compatible" content="requiresActiveX=true">
|
142
|
-
```
|
143
|
-
|
144
|
-
Here's what it looks like alongside H5BP's default X-UA-Compatible values:
|
145
|
-
|
146
|
-
```html
|
147
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1,requiresActiveX=true">
|
148
|
-
```
|
149
|
-
|
150
|
-
You can find more information in [Microsoft's IEBlog post about prompting for
|
151
|
-
plugin use in IE10 Metro
|
152
|
-
Mode](http://blogs.msdn.com/b/ie/archive/2012/01/31/web-sites-and-a-plug-in-free-web.aspx).
|
153
|
-
|
154
|
-
### IE Pinned Sites (IE9+)
|
155
|
-
|
156
|
-
Enabling your application for pinning will allow IE9 users to add it to their
|
157
|
-
Windows Taskbar and Start Menu. This comes with a range of new tools that you
|
158
|
-
can easily configure with the elements below. See more [documentation on IE9
|
159
|
-
Pinned Sites](http://msdn.microsoft.com/en-us/library/gg131029.aspx).
|
160
|
-
|
161
|
-
### Name the Pinned Site for Windows
|
162
|
-
|
163
|
-
Without this rule, Windows will use the page title as the name for your
|
164
|
-
application.
|
165
|
-
|
166
|
-
```html
|
167
|
-
<meta name="application-name" content="Sample Title">
|
168
|
-
```
|
169
|
-
|
170
|
-
### Give your Pinned Site a tooltip
|
171
|
-
|
172
|
-
You know — a tooltip. A little textbox that appears when the user holds their
|
173
|
-
mouse over your Pinned Site's icon.
|
174
|
-
|
175
|
-
```html
|
176
|
-
<meta name="msapplication-tooltip" content="A description of what this site does.">
|
177
|
-
```
|
178
|
-
|
179
|
-
### Set a default page for your Pinned Site
|
180
|
-
|
181
|
-
If the site should go to a specific URL when it is pinned (such as the
|
182
|
-
homepage), enter it here. One idea is to send it to a special URL so you can
|
183
|
-
track the number of pinned users, like so:
|
184
|
-
`http://www.example.com/index.html?pinned=true`
|
185
|
-
|
186
|
-
```html
|
187
|
-
<meta name="msapplication-starturl" content="http://www.example.com/index.html?pinned=true">
|
188
|
-
```
|
189
|
-
|
190
|
-
### Recolor IE's controls manually for a Pinned Site
|
191
|
-
|
192
|
-
IE9+ will automatically use the overall color of your Pinned Site's favicon to
|
193
|
-
shade its browser buttons. UNLESS you give it another color here. Only use
|
194
|
-
named colors (`red`) or hex colors (`#ff0000`).
|
195
|
-
|
196
|
-
```html
|
197
|
-
<meta name="msapplication-navbutton-color" content="#ff0000">
|
198
|
-
```
|
199
|
-
|
200
|
-
### Manually set the window size of a Pinned Site
|
201
|
-
|
202
|
-
If the site should open at a certain window size once pinned, you can specify
|
203
|
-
the dimensions here. It only supports static pixel dimensions. 800x600
|
204
|
-
minimum.
|
205
|
-
|
206
|
-
```html
|
207
|
-
<meta name="msapplication-window" content="width=800;height=600">
|
208
|
-
```
|
209
|
-
|
210
|
-
### Jump List "Tasks" for Pinned Sites
|
211
|
-
|
212
|
-
Add Jump List Tasks that will appear when the Pinned Site's icon gets a
|
213
|
-
right-click. Each Task goes to the specified URL, and gets its own mini icon
|
214
|
-
(essentially a favicon, a 16x16 .ICO). You can add as many of these as you
|
215
|
-
need.
|
216
|
-
|
217
|
-
```html
|
218
|
-
<meta name="msapplication-task" content="name=Task 1;action-uri=http://host/Page1.html;icon-uri=http://host/icon1.ico">
|
219
|
-
<meta name="msapplication-task" content="name=Task 2;action-uri=http://microsoft.com/Page2.html;icon-uri=http://host/icon2.ico">
|
220
|
-
```
|
221
|
-
|
222
|
-
### (Windows 8) High quality visuals for Pinned Sites
|
223
|
-
|
224
|
-
Windows 8 adds the ability for you to provide a PNG tile image and specify the
|
225
|
-
tile's background color. [Full details on the IE
|
226
|
-
blog](http://blogs.msdn.com/b/ie/archive/2012/06/08/high-quality-visuals-for-pinned-sites-in-windows-8.aspx).
|
227
|
-
|
228
|
-
* Create a 144x144 image of your site icon, filling all of the canvas, and
|
229
|
-
using a transparent background.
|
230
|
-
* Save this image as a 32-bit PNG and optimize it without reducing
|
231
|
-
colour-depth. It can be named whatever you want (e.g. `metro-tile.png`).
|
232
|
-
* To reference the tile and its color, add the HTML `meta` elements described
|
233
|
-
in the IE Blog post.
|
234
|
-
|
235
|
-
### (Windows 8) Badges for Pinned Sites
|
236
|
-
|
237
|
-
IE10 will poll an XML document for badge information to display on your app's
|
238
|
-
tile in the Start screen. The user will be able to receive these badge updates
|
239
|
-
even when your app isn't actively running. The badge's value can be a number,
|
240
|
-
or one of a predefined list of glyphs.
|
241
|
-
|
242
|
-
* [Tutorial on IEBlog with link to badge XML schema](http://blogs.msdn.com/b/ie/archive/2012/04/03/pinned-sites-in-windows-8.aspx)
|
243
|
-
* [Available badge values](http://msdn.microsoft.com/en-us/library/ie/br212849.aspx)
|
244
|
-
|
245
|
-
```html
|
246
|
-
<meta name="msapplication-badge" value="frequency=NUMBER_IN_MINUTES;polling-uri=http://www.example.com/path/to/file.xml">
|
247
|
-
```
|
248
|
-
|
249
|
-
### Suppress IE6 image toolbar
|
250
|
-
|
251
|
-
Kill IE6's pop-up-on-mouseover toolbar for images that can interfere with
|
252
|
-
certain designs and be pretty distracting in general.
|
253
|
-
|
254
|
-
```html
|
255
|
-
<meta http-equiv="imagetoolbar" content="false">
|
256
|
-
```
|
257
|
-
|
258
|
-
|
259
|
-
## Social Networks
|
260
|
-
|
261
|
-
### Facebook Open Graph data
|
262
|
-
|
263
|
-
You can control the information that Facebook and others display when users
|
264
|
-
share your site. Below are just the most basic data points you might need. For
|
265
|
-
specific content types (including "website"), see [Facebook's built-in Open
|
266
|
-
Graph content
|
267
|
-
templates](https://developers.facebook.com/docs/opengraph/objects/builtin/).
|
268
|
-
Take full advantage of Facebook's support for complex data and activity by
|
269
|
-
following the [Open Graph
|
270
|
-
tutorial](https://developers.facebook.com/docs/opengraph/tutorial/).
|
271
|
-
|
272
|
-
```html
|
273
|
-
<meta property="og:title" content="">
|
274
|
-
<meta property="og:description" content="">
|
275
|
-
<meta property="og:image" content="">
|
276
|
-
```
|
277
|
-
|
278
|
-
### Twitter Cards
|
279
|
-
|
280
|
-
Twitter provides a snippet specification that serves a similar purpose to Open
|
281
|
-
Graph. In fact, Twitter will use Open Graph when Cards is not available. Note
|
282
|
-
that, as of this writing, Twitter requires that app developers activate Cards
|
283
|
-
on a per-domain basis. You can read more about the various snippet formats
|
284
|
-
and application process in the [official Twitter Cards
|
285
|
-
documentation](https://dev.twitter.com/docs/cards).
|
286
|
-
|
287
|
-
```html
|
288
|
-
<meta name="twitter:card" content="summary">
|
289
|
-
<meta name="twitter:site" content="@site_account">
|
290
|
-
<meta name="twitter:creator" content="@individual_account">
|
291
|
-
<meta name="twitter:url" content="http://www.example.com/path/to/page.html">
|
292
|
-
<meta name="twitter:title" content="">
|
293
|
-
<meta name="twitter:description" content="">
|
294
|
-
<meta name="twitter:image" content="http://www.example.com/path/to/image.jpg">
|
295
|
-
```
|
296
|
-
|
297
|
-
|
298
|
-
## URLs
|
299
|
-
|
300
|
-
### Canonical URL
|
301
|
-
|
302
|
-
Signal to search engines and others "Use this URL for this page!" Useful when
|
303
|
-
parameters after a `#` or `?` is used to control the display state of a page.
|
304
|
-
`http://www.example.com/cart.html?shopping-cart-open=true` can be indexed as
|
305
|
-
the cleaner, more accurate `http://www.example.com/cart.html`.
|
306
|
-
|
307
|
-
```html
|
308
|
-
<link rel="canonical" href="">
|
309
|
-
```
|
310
|
-
|
311
|
-
### Official shortlink
|
312
|
-
|
313
|
-
Signal to the world "This is the shortened URL to use this page!" Poorly
|
314
|
-
supported at this time. Learn more by reading the [article about shortlinks on
|
315
|
-
the Microformats wiki](http://microformats.org/wiki/rel-shortlink).
|
316
|
-
|
317
|
-
```html
|
318
|
-
<link rel="shortlink" href="h5bp.com">
|
319
|
-
```
|
320
|
-
|
321
|
-
|
322
|
-
## News Feeds
|
323
|
-
|
324
|
-
### RSS
|
325
|
-
|
326
|
-
Have an RSS feed? Link to it here. Want to [learn how to write an RSS feed from
|
327
|
-
scratch](http://www.rssboard.org/rss-specification)?
|
328
|
-
|
329
|
-
```html
|
330
|
-
<link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml">
|
331
|
-
```
|
332
|
-
|
333
|
-
### Atom
|
334
|
-
|
335
|
-
Atom is similar to RSS, and you might prefer to use it instead of or in
|
336
|
-
addition to it. [See what Atom's all
|
337
|
-
about](http://www.atomenabled.org/developers/syndication/).
|
338
|
-
|
339
|
-
```html
|
340
|
-
<link rel="alternate" type="application/atom+xml" title="Atom" href="/atom.xml">
|
341
|
-
```
|
342
|
-
|
343
|
-
### Pingbacks
|
344
|
-
|
345
|
-
Your server may be notified when another site links to yours. The href
|
346
|
-
attribute should contain the location of your pingback service.
|
347
|
-
|
348
|
-
```html
|
349
|
-
<link rel="pingback" href="">
|
350
|
-
```
|
351
|
-
|
352
|
-
* High-level explanation: http://codex.wordpress.org/Introduction_to_Blogging#Pingbacks
|
353
|
-
* Step-by-step example case: http://www.hixie.ch/specs/pingback/pingback-1.0#TOC5
|
354
|
-
* PHP pingback service: http://blog.perplexedlabs.com/2009/07/15/xmlrpc-pingbacks-using-php/
|
355
|
-
|
356
|
-
|
357
|
-
## App Stores
|
358
|
-
|
359
|
-
### Install a Chrome Web Store app
|
360
|
-
|
361
|
-
Users can install a Chrome app directly from your website, as long as the app
|
362
|
-
and site have been associated via Google's Webmaster Tools. Read more on
|
363
|
-
[Chrome Web Store's Inline Installation
|
364
|
-
docs](https://developers.google.com/chrome/web-store/docs/inline_installation).
|
365
|
-
|
366
|
-
```html
|
367
|
-
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/APP_ID">
|
368
|
-
```
|
369
|
-
|
370
|
-
### Smart App Banners in iOS 6 Safari
|
371
|
-
|
372
|
-
Stop bothering everyone with gross modals advertising your entry in the App Store.
|
373
|
-
This bit of code will unintrusively allow the user the option to download your iOS
|
374
|
-
app, or open it with some data about the user's current state on the website.
|
375
|
-
|
376
|
-
```html
|
377
|
-
<meta name="apple-itunes-app" content="app-id=APP_ID,app-argument=SOME_TEXT">
|
378
|
-
```
|
379
|
-
|
380
|
-
## Google Analytics augments
|
381
|
-
|
382
|
-
### More tracking settings
|
383
|
-
|
384
|
-
The [optimized Google Analytics
|
385
|
-
snippet](http://mathiasbynens.be/notes/async-analytics-snippet) included with
|
386
|
-
HTML5 Boilerplate includes something like this:
|
387
|
-
|
388
|
-
```js
|
389
|
-
var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
|
390
|
-
```
|
391
|
-
|
392
|
-
In case you need more settings, just extend the array literal instead of
|
393
|
-
[`.push()`ing to the
|
394
|
-
array](http://mathiasbynens.be/notes/async-analytics-snippet#dont-push-it)
|
395
|
-
afterwards:
|
396
|
-
|
397
|
-
```js
|
398
|
-
var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview'], ['_setAllowAnchor', true]];
|
399
|
-
```
|
400
|
-
|
401
|
-
### Anonymize IP addresses
|
402
|
-
|
403
|
-
In some countries, no personal data may be transferred outside jurisdictions
|
404
|
-
that do not have similarly strict laws (i.e. from Germany to outside the EU).
|
405
|
-
Thus a webmaster using the Google Analytics script may have to ensure that no
|
406
|
-
personal (trackable) data is transferred to the US. You can do that with [the
|
407
|
-
`_gat.anonymizeIp`
|
408
|
-
option](http://code.google.com/apis/analytics/docs/gaJS/gaJSApi_gat.html#_gat._anonymizeIp).
|
409
|
-
In use it looks like this:
|
410
|
-
|
411
|
-
```js
|
412
|
-
var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_gat._anonymizeIp'], ['_trackPageview']];
|
413
|
-
```
|
414
|
-
|
415
|
-
### Track jQuery AJAX requests in Google Analytics
|
416
|
-
|
417
|
-
An article by @JangoSteve explains how to [track jQuery AJAX requests in Google
|
418
|
-
Analytics](http://www.alfajango.com/blog/track-jquery-ajax-requests-in-google-analytics/).
|
419
|
-
|
420
|
-
Add this to `plugins.js`:
|
421
|
-
|
422
|
-
```js
|
423
|
-
/*
|
424
|
-
* Log all jQuery AJAX requests to Google Analytics
|
425
|
-
* See: http://www.alfajango.com/blog/track-jquery-ajax-requests-in-google-analytics/
|
426
|
-
*/
|
427
|
-
if (typeof _gaq !== "undefined" && _gaq !== null) {
|
428
|
-
$(document).ajaxSend(function(event, xhr, settings){
|
429
|
-
_gaq.push(['_trackPageview', settings.url]);
|
430
|
-
});
|
431
|
-
}
|
432
|
-
```
|
433
|
-
|
434
|
-
### Track JavaScript errors in Google Analytics
|
435
|
-
|
436
|
-
Add this function after `_gaq` is defined:
|
437
|
-
|
438
|
-
```js
|
439
|
-
(function(window){
|
440
|
-
var undefined,
|
441
|
-
link = function (href) {
|
442
|
-
var a = window.document.createElement('a');
|
443
|
-
a.href = href;
|
444
|
-
return a;
|
445
|
-
};
|
446
|
-
window.onerror = function (message, file, row) {
|
447
|
-
var host = link(file).hostname;
|
448
|
-
_gaq.push([
|
449
|
-
'_trackEvent',
|
450
|
-
(host == window.location.hostname || host == undefined || host == '' ? '' : 'external ') + 'error',
|
451
|
-
message, file + ' LINE: ' + row, undefined, undefined, true
|
452
|
-
]);
|
453
|
-
};
|
454
|
-
}(window));
|
455
|
-
```
|
456
|
-
|
457
|
-
### Track page scroll
|
458
|
-
|
459
|
-
Add this function after `_gaq` is defined:
|
460
|
-
|
461
|
-
```js
|
462
|
-
$(function(){
|
463
|
-
var isDuplicateScrollEvent,
|
464
|
-
scrollTimeStart = new Date,
|
465
|
-
$window = $(window),
|
466
|
-
$document = $(document),
|
467
|
-
scrollPercent;
|
468
|
-
|
469
|
-
$window.scroll(function() {
|
470
|
-
scrollPercent = Math.round(100 * ($window.height() + $window.scrollTop())/$document.height());
|
471
|
-
if (scrollPercent > 90 && !isDuplicateScrollEvent) { //page scrolled to 90%
|
472
|
-
isDuplicateScrollEvent = 1;
|
473
|
-
_gaq.push(['_trackEvent', 'scroll',
|
474
|
-
'Window: ' + $window.height() + 'px; Document: ' + $document.height() + 'px; Time: ' + Math.round((new Date - scrollTimeStart )/1000,1) + 's',
|
475
|
-
undefined, undefined, true
|
476
|
-
]);
|
477
|
-
}
|
478
|
-
});
|
479
|
-
});
|
480
|
-
```
|
481
|
-
|
482
|
-
|
483
|
-
## Miscellaneous
|
484
|
-
|
485
|
-
* Use [HTML5
|
486
|
-
polyfills](https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills).
|
487
|
-
|
488
|
-
* Use [Microformats](http://microformats.org/wiki/Main_Page) (via
|
489
|
-
[microdata](http://microformats.org/wiki/microdata)) for optimum search
|
490
|
-
results
|
491
|
-
[visibility](http://googlewebmastercentral.blogspot.com/2009/05/introducing-rich-snippets.html).
|
492
|
-
|
493
|
-
* If you're building a web app you may want [native style momentum scrolling in
|
494
|
-
iOS5](http://johanbrook.com/browsers/native-momentum-scrolling-ios-5/) using
|
495
|
-
`-webkit-overflow-scrolling: touch`.
|
496
|
-
|
497
|
-
* Avoid development/stage websites "leaking" into SERPs (search engine results
|
498
|
-
page) by [implementing X-Robots-tag
|
499
|
-
headers](https://github.com/h5bp/html5-boilerplate/issues/804).
|
500
|
-
|
501
|
-
* Screen readers currently have less-than-stellar support for HTML5 but the JS
|
502
|
-
script [accessifyhtml5.js](https://github.com/yatil/accessifyhtml5.js) can
|
503
|
-
help increase accessibility by adding ARIA roles to HTML5 elements.
|
504
|
-
|
505
|
-
|
506
|
-
*Many thanks to [Brian Blakely](https://github.com/brianblakely) for
|
507
|
-
contributing much of this information.*
|
data/site/html5bp-docs/faq.md
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
[HTML5 Boilerplate homepage](http://html5boilerplate.com) | [Documentation
|
2
|
-
table of contents](README.md)
|
3
|
-
|
4
|
-
# Frequently asked questions
|
5
|
-
|
6
|
-
### Why is the URL for jQuery without "http"?
|
7
|
-
|
8
|
-
This is an intentional use of [protocol-relative
|
9
|
-
URLs](http://paulirish.com/2010/the-protocol-relative-url/)
|
10
|
-
|
11
|
-
**N.B.** Using a protocol-relative URL for files that exist on a CDN is
|
12
|
-
problematic when you try to view your local files directly in the browser. The
|
13
|
-
browser will attempt to fetch the file from your local file system. We
|
14
|
-
recommend that you use a local server to test your pages (or Dropbox). This can
|
15
|
-
be done using Python by running `python -m SimpleHTTPServer` from your local
|
16
|
-
directory, using Ruby by installing and running
|
17
|
-
[asdf](https://rubygems.org/gems/asdf), and by installing any one of XAMPP,
|
18
|
-
MAMP, or WAMP.
|
19
|
-
|
20
|
-
|
21
|
-
### Why don't you automatically load the latest version of jQuery from the Google CDN?
|
22
|
-
|
23
|
-
1. The latest version of jQuery may not be compatible with the existing
|
24
|
-
plugins/code on the site. Version updating should be an intentional
|
25
|
-
decision.
|
26
|
-
2. The latest version has a very short `max-age=3600` compares to the specific
|
27
|
-
version of `max-age=31536000`, which means you won't get the benefits of
|
28
|
-
long-term caching.
|
29
|
-
|
30
|
-
|
31
|
-
### Why is the Google Analytics code at the bottom? Google recommends it be placed the `head`.
|
32
|
-
|
33
|
-
The advantage to placing it in the `head` is that you will track a user's
|
34
|
-
pageview even if they leave the page before it has been fully loaded. However,
|
35
|
-
putting the code at the bottom keeps all the scripts together and reinforces
|
36
|
-
that scripts at the bottom are the right move.
|
37
|
-
|
38
|
-
|
39
|
-
### How can I integrate [Twitter Bootstrap](http://twitter.github.com/bootstrap/) with HTML5 Boilerplate?
|
40
|
-
|
41
|
-
You can use [Initializr](http://initializr.com) to create a custom build that
|
42
|
-
includes HTML5 Boilerplate with Twitter Bootstrap.
|
43
|
-
|
44
|
-
Read more about how [HTML5 Boilerplate and Twitter Bootstrap complement each
|
45
|
-
other](http://www.quora.com/Is-Bootstrap-a-complement-OR-an-alternative-to-HTML5-Boilerplate-or-viceversa/answer/Nicolas-Gallagher).
|
46
|
-
|
47
|
-
|
48
|
-
### How do I prevent phone numbers looking twice as large and having a Skype highlight?
|
49
|
-
|
50
|
-
If this is occurring, it is because a user has the Skype browser extension
|
51
|
-
installed.
|
52
|
-
|
53
|
-
Use the following CSS to prevent Skype from formatting the numbers on your
|
54
|
-
page:
|
55
|
-
|
56
|
-
```css
|
57
|
-
span.skype_pnh_container {
|
58
|
-
display: none !important;
|
59
|
-
}
|
60
|
-
|
61
|
-
span.skype_pnh_print_container {
|
62
|
-
display: inline !important;
|
63
|
-
}
|
64
|
-
```
|
65
|
-
|
66
|
-
|
67
|
-
### Do I need to upgrade my sites each time a new version of HTML5 Boilerplate is released?
|
68
|
-
|
69
|
-
No. You don't normally replace the foundations of a house once it has been
|
70
|
-
built. There is nothing stopping you from trying to work in the latest changes
|
71
|
-
but you'll have to assess the costs/benefits of doing so.
|
72
|
-
|
73
|
-
|
74
|
-
### Where can I get help for support questions?
|
75
|
-
|
76
|
-
Please ask for help on
|
77
|
-
[StackOverflow](http://stackoverflow.com/questions/tagged/html5boilerplate).
|