spade 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +14 -0
- data/.gitmodules +15 -0
- data/.rspec +1 -0
- data/Buildfile +18 -0
- data/Gemfile +19 -0
- data/Gemfile.lock +34 -0
- data/README.md +148 -0
- data/Rakefile +9 -0
- data/bin/spade +7 -0
- data/examples/format-app/lib/hello.coffee +1 -0
- data/examples/format-app/lib/main.js +6 -0
- data/examples/format-app/package.json +10 -0
- data/examples/format-app/resources/README.txt +1 -0
- data/examples/format-app/resources/config.json +3 -0
- data/examples/path-test/lib/hello.js +1 -0
- data/examples/path-test/lib/main.js +1 -0
- data/examples/path-test/package.json +5 -0
- data/examples/sc-app/index.html +13 -0
- data/examples/sc-app/lib/main.js +24 -0
- data/examples/sc-app/package.json +8 -0
- data/examples/single-file.js +22 -0
- data/examples/todos/index.html +11 -0
- data/examples/todos/lib/main.js +10 -0
- data/examples/todos/lib/todos.js +93 -0
- data/examples/todos/package.json +10 -0
- data/examples/todos/resources/stylesheets/todos.css +162 -0
- data/examples/todos/resources/templates/todos.handlebars +31 -0
- data/examples/web-app/README.md +83 -0
- data/examples/web-app/index.html +12 -0
- data/examples/web-app/lib/main.js +3 -0
- data/examples/web-app/package.json +6 -0
- data/examples/web-app/tests.html +12 -0
- data/examples/web-app/tests/ct-example-test.js +39 -0
- data/examples/web-app/tests/qunit-test.js +23 -0
- data/lib/index.js +14 -0
- data/lib/node/loader.js +145 -0
- data/lib/node/sandbox.js +34 -0
- data/lib/spade.js +1099 -0
- data/lib/spade.rb +52 -0
- data/lib/spade/bundle.rb +156 -0
- data/lib/spade/cli.rb +14 -0
- data/lib/spade/cli/base.rb +325 -0
- data/lib/spade/cli/owner.rb +45 -0
- data/lib/spade/compiler.rb +34 -0
- data/lib/spade/console.rb +39 -0
- data/lib/spade/context.rb +116 -0
- data/lib/spade/credentials.rb +36 -0
- data/lib/spade/environment.rb +35 -0
- data/lib/spade/exports.rb +71 -0
- data/lib/spade/loader.rb +243 -0
- data/lib/spade/local.rb +53 -0
- data/lib/spade/package.rb +143 -0
- data/lib/spade/reactor.rb +159 -0
- data/lib/spade/remote.rb +75 -0
- data/lib/spade/repository.rb +18 -0
- data/lib/spade/server.rb +54 -0
- data/lib/spade/shell.rb +36 -0
- data/lib/spade/version.rb +3 -0
- data/package.json +27 -0
- data/packages/coffee-script/.gitignore +8 -0
- data/packages/coffee-script/.npmignore +11 -0
- data/packages/coffee-script/Cakefile +229 -0
- data/packages/coffee-script/LICENSE +22 -0
- data/packages/coffee-script/README +47 -0
- data/packages/coffee-script/Rakefile +78 -0
- data/packages/coffee-script/bin/cake +7 -0
- data/packages/coffee-script/bin/coffee +7 -0
- data/packages/coffee-script/documentation/coffee/aliases.coffee +11 -0
- data/packages/coffee-script/documentation/coffee/array_comprehensions.coffee +2 -0
- data/packages/coffee-script/documentation/coffee/block_comment.coffee +6 -0
- data/packages/coffee-script/documentation/coffee/cake_tasks.coffee +9 -0
- data/packages/coffee-script/documentation/coffee/classes.coffee +25 -0
- data/packages/coffee-script/documentation/coffee/comparisons.coffee +5 -0
- data/packages/coffee-script/documentation/coffee/conditionals.coffee +13 -0
- data/packages/coffee-script/documentation/coffee/default_args.coffee +8 -0
- data/packages/coffee-script/documentation/coffee/do.coffee +4 -0
- data/packages/coffee-script/documentation/coffee/embedded.coffee +5 -0
- data/packages/coffee-script/documentation/coffee/existence.coffee +10 -0
- data/packages/coffee-script/documentation/coffee/expressions.coffee +9 -0
- data/packages/coffee-script/documentation/coffee/expressions_assignment.coffee +3 -0
- data/packages/coffee-script/documentation/coffee/expressions_comprehension.coffee +3 -0
- data/packages/coffee-script/documentation/coffee/expressions_try.coffee +7 -0
- data/packages/coffee-script/documentation/coffee/fat_arrow.coffee +6 -0
- data/packages/coffee-script/documentation/coffee/functions.coffee +2 -0
- data/packages/coffee-script/documentation/coffee/heredocs.coffee +7 -0
- data/packages/coffee-script/documentation/coffee/heregexes.coffee +11 -0
- data/packages/coffee-script/documentation/coffee/interpolation.coffee +6 -0
- data/packages/coffee-script/documentation/coffee/multiple_return_values.coffee +7 -0
- data/packages/coffee-script/documentation/coffee/object_comprehensions.coffee +4 -0
- data/packages/coffee-script/documentation/coffee/object_extraction.coffee +13 -0
- data/packages/coffee-script/documentation/coffee/objects_and_arrays.coffee +19 -0
- data/packages/coffee-script/documentation/coffee/objects_reserved.coffee +5 -0
- data/packages/coffee-script/documentation/coffee/overview.coffee +28 -0
- data/packages/coffee-script/documentation/coffee/parallel_assignment.coffee +6 -0
- data/packages/coffee-script/documentation/coffee/patterns_and_splats.coffee +7 -0
- data/packages/coffee-script/documentation/coffee/prototypes.coffee +3 -0
- data/packages/coffee-script/documentation/coffee/range_comprehensions.coffee +2 -0
- data/packages/coffee-script/documentation/coffee/scope.coffee +5 -0
- data/packages/coffee-script/documentation/coffee/slices.coffee +7 -0
- data/packages/coffee-script/documentation/coffee/soaks.coffee +1 -0
- data/packages/coffee-script/documentation/coffee/splats.coffee +27 -0
- data/packages/coffee-script/documentation/coffee/splices.coffee +5 -0
- data/packages/coffee-script/documentation/coffee/strings.coffee +8 -0
- data/packages/coffee-script/documentation/coffee/switch.coffee +10 -0
- data/packages/coffee-script/documentation/coffee/try.coffee +8 -0
- data/packages/coffee-script/documentation/coffee/while.coffee +10 -0
- data/packages/coffee-script/documentation/css/docs.css +374 -0
- data/packages/coffee-script/documentation/css/idle.css +64 -0
- data/packages/coffee-script/documentation/docs/browser.html +25 -0
- data/packages/coffee-script/documentation/docs/cake.html +43 -0
- data/packages/coffee-script/documentation/docs/coffee-script.html +51 -0
- data/packages/coffee-script/documentation/docs/command.html +161 -0
- data/packages/coffee-script/documentation/docs/docco.css +186 -0
- data/packages/coffee-script/documentation/docs/grammar.html +399 -0
- data/packages/coffee-script/documentation/docs/helpers.html +31 -0
- data/packages/coffee-script/documentation/docs/index.html +3 -0
- data/packages/coffee-script/documentation/docs/lexer.html +490 -0
- data/packages/coffee-script/documentation/docs/nodes.html +1338 -0
- data/packages/coffee-script/documentation/docs/optparse.html +78 -0
- data/packages/coffee-script/documentation/docs/repl.html +24 -0
- data/packages/coffee-script/documentation/docs/rewriter.html +251 -0
- data/packages/coffee-script/documentation/docs/scope.html +54 -0
- data/packages/coffee-script/documentation/docs/underscore.html +295 -0
- data/packages/coffee-script/documentation/images/background.png +0 -0
- data/packages/coffee-script/documentation/images/banding.png +0 -0
- data/packages/coffee-script/documentation/images/button_bg.png +0 -0
- data/packages/coffee-script/documentation/images/button_bg_dark.gif +0 -0
- data/packages/coffee-script/documentation/images/button_bg_green.gif +0 -0
- data/packages/coffee-script/documentation/images/favicon.ico +0 -0
- data/packages/coffee-script/documentation/images/logo.png +0 -0
- data/packages/coffee-script/documentation/images/screenshadow.png +0 -0
- data/packages/coffee-script/documentation/index.html.erb +1607 -0
- data/packages/coffee-script/documentation/js/aliases.js +17 -0
- data/packages/coffee-script/documentation/js/array_comprehensions.js +6 -0
- data/packages/coffee-script/documentation/js/block_comment.js +4 -0
- data/packages/coffee-script/documentation/js/cake_tasks.js +10 -0
- data/packages/coffee-script/documentation/js/classes.js +44 -0
- data/packages/coffee-script/documentation/js/comparisons.js +3 -0
- data/packages/coffee-script/documentation/js/conditionals.js +12 -0
- data/packages/coffee-script/documentation/js/default_args.js +7 -0
- data/packages/coffee-script/documentation/js/do.js +10 -0
- data/packages/coffee-script/documentation/js/embedded.js +4 -0
- data/packages/coffee-script/documentation/js/existence.js +6 -0
- data/packages/coffee-script/documentation/js/expressions.js +15 -0
- data/packages/coffee-script/documentation/js/expressions_assignment.js +2 -0
- data/packages/coffee-script/documentation/js/expressions_comprehension.js +9 -0
- data/packages/coffee-script/documentation/js/expressions_try.js +7 -0
- data/packages/coffee-script/documentation/js/fat_arrow.js +9 -0
- data/packages/coffee-script/documentation/js/functions.js +7 -0
- data/packages/coffee-script/documentation/js/heredocs.js +2 -0
- data/packages/coffee-script/documentation/js/heregexes.js +2 -0
- data/packages/coffee-script/documentation/js/interpolation.js +4 -0
- data/packages/coffee-script/documentation/js/multiple_return_values.js +5 -0
- data/packages/coffee-script/documentation/js/object_comprehensions.js +15 -0
- data/packages/coffee-script/documentation/js/object_extraction.js +10 -0
- data/packages/coffee-script/documentation/js/objects_and_arrays.js +17 -0
- data/packages/coffee-script/documentation/js/objects_reserved.js +4 -0
- data/packages/coffee-script/documentation/js/overview.js +35 -0
- data/packages/coffee-script/documentation/js/parallel_assignment.js +4 -0
- data/packages/coffee-script/documentation/js/patterns_and_splats.js +4 -0
- data/packages/coffee-script/documentation/js/prototypes.js +3 -0
- data/packages/coffee-script/documentation/js/range_comprehensions.js +9 -0
- data/packages/coffee-script/documentation/js/scope.js +8 -0
- data/packages/coffee-script/documentation/js/slices.js +4 -0
- data/packages/coffee-script/documentation/js/soaks.js +2 -0
- data/packages/coffee-script/documentation/js/splats.js +15 -0
- data/packages/coffee-script/documentation/js/splices.js +3 -0
- data/packages/coffee-script/documentation/js/strings.js +2 -0
- data/packages/coffee-script/documentation/js/switch.js +23 -0
- data/packages/coffee-script/documentation/js/try.js +8 -0
- data/packages/coffee-script/documentation/js/while.js +18 -0
- data/packages/coffee-script/documentation/vendor/jquery-1.4.2.js +6240 -0
- data/packages/coffee-script/examples/beautiful_code/binary_search.coffee +16 -0
- data/packages/coffee-script/examples/beautiful_code/quicksort_runtime.coffee +13 -0
- data/packages/coffee-script/examples/beautiful_code/regular_expression_matcher.coffee +34 -0
- data/packages/coffee-script/examples/blocks.coffee +54 -0
- data/packages/coffee-script/examples/code.coffee +167 -0
- data/packages/coffee-script/examples/computer_science/README +4 -0
- data/packages/coffee-script/examples/computer_science/binary_search.coffee +25 -0
- data/packages/coffee-script/examples/computer_science/bubble_sort.coffee +11 -0
- data/packages/coffee-script/examples/computer_science/linked_list.coffee +108 -0
- data/packages/coffee-script/examples/computer_science/luhn_algorithm.coffee +36 -0
- data/packages/coffee-script/examples/computer_science/merge_sort.coffee +19 -0
- data/packages/coffee-script/examples/computer_science/selection_sort.coffee +23 -0
- data/packages/coffee-script/examples/poignant.coffee +181 -0
- data/packages/coffee-script/examples/potion.coffee +206 -0
- data/packages/coffee-script/examples/underscore.coffee +682 -0
- data/packages/coffee-script/examples/web_server.coffee +12 -0
- data/packages/coffee-script/extras/EXTRAS +7 -0
- data/packages/coffee-script/extras/coffee-script.js +8 -0
- data/packages/coffee-script/extras/jsl.conf +44 -0
- data/packages/coffee-script/index.html +2515 -0
- data/packages/coffee-script/lib/browser.js +52 -0
- data/packages/coffee-script/lib/cake.js +76 -0
- data/packages/coffee-script/lib/coffee-script.js +82 -0
- data/packages/coffee-script/lib/command.js +263 -0
- data/packages/coffee-script/lib/grammar.js +581 -0
- data/packages/coffee-script/lib/helpers.js +66 -0
- data/packages/coffee-script/lib/index.js +8 -0
- data/packages/coffee-script/lib/lexer.js +633 -0
- data/packages/coffee-script/lib/nodes.js +2165 -0
- data/packages/coffee-script/lib/optparse.js +111 -0
- data/packages/coffee-script/lib/parser.js +649 -0
- data/packages/coffee-script/lib/repl.js +42 -0
- data/packages/coffee-script/lib/rewriter.js +353 -0
- data/packages/coffee-script/lib/scope.js +120 -0
- data/packages/coffee-script/lib/spade-format.js +45 -0
- data/packages/coffee-script/package.json +26 -0
- data/packages/coffee-script/src/browser.coffee +43 -0
- data/packages/coffee-script/src/cake.coffee +69 -0
- data/packages/coffee-script/src/coffee-script.coffee +92 -0
- data/packages/coffee-script/src/command.coffee +214 -0
- data/packages/coffee-script/src/grammar.coffee +590 -0
- data/packages/coffee-script/src/helpers.coffee +56 -0
- data/packages/coffee-script/src/index.coffee +2 -0
- data/packages/coffee-script/src/lexer.coffee +653 -0
- data/packages/coffee-script/src/nodes.coffee +1754 -0
- data/packages/coffee-script/src/optparse.coffee +99 -0
- data/packages/coffee-script/src/repl.coffee +42 -0
- data/packages/coffee-script/src/rewriter.coffee +326 -0
- data/packages/coffee-script/src/scope.coffee +94 -0
- data/packages/coffee-script/test/arguments.coffee +127 -0
- data/packages/coffee-script/test/assignment.coffee +98 -0
- data/packages/coffee-script/test/break.coffee +18 -0
- data/packages/coffee-script/test/comments.coffee +201 -0
- data/packages/coffee-script/test/conditionals.coffee +181 -0
- data/packages/coffee-script/test/exception_handling.coffee +90 -0
- data/packages/coffee-script/test/helpers.coffee +96 -0
- data/packages/coffee-script/test/importing.coffee +18 -0
- data/packages/coffee-script/test/operators.coffee +225 -0
- data/packages/coffee-script/test/ranges_slices_and_splices.coffee +186 -0
- data/packages/coffee-script/test/regular_expressions.coffee +56 -0
- data/packages/coffee-script/test/test.html +123 -0
- data/packages/coffee-script/test/test_chaining.coffee +77 -0
- data/packages/coffee-script/test/test_classes.coffee +372 -0
- data/packages/coffee-script/test/test_compilation.coffee +26 -0
- data/packages/coffee-script/test/test_comprehensions.coffee +318 -0
- data/packages/coffee-script/test/test_existence.coffee +165 -0
- data/packages/coffee-script/test/test_functions.coffee +379 -0
- data/packages/coffee-script/test/test_heredocs.coffee +111 -0
- data/packages/coffee-script/test/test_literals.coffee +270 -0
- data/packages/coffee-script/test/test_option_parser.coffee +27 -0
- data/packages/coffee-script/test/test_pattern_matching.coffee +162 -0
- data/packages/coffee-script/test/test_returns.coffee +63 -0
- data/packages/coffee-script/test/test_splats.coffee +102 -0
- data/packages/coffee-script/test/test_strings.coffee +118 -0
- data/packages/coffee-script/test/test_switch.coffee +103 -0
- data/packages/coffee-script/test/test_while.coffee +71 -0
- data/packages/core-test/.gitignore +2 -0
- data/packages/core-test/Buildfile +15 -0
- data/packages/core-test/CHANGELOG.md +24 -0
- data/packages/core-test/__preamble__.js +34 -0
- data/packages/core-test/bin/cot +3 -0
- data/packages/core-test/lib/assert.js +306 -0
- data/packages/core-test/lib/cli.js +258 -0
- data/packages/core-test/lib/core.js +311 -0
- data/packages/core-test/lib/loggers/browser.js +390 -0
- data/packages/core-test/lib/loggers/console.js +235 -0
- data/packages/core-test/lib/loggers/default.js +272 -0
- data/packages/core-test/lib/loggers/dummy.js +168 -0
- data/packages/core-test/lib/main.js +22 -0
- data/packages/core-test/lib/private/jquery.js +6079 -0
- data/packages/core-test/lib/qunit.js +159 -0
- data/packages/core-test/lib/runner.js +65 -0
- data/packages/core-test/lib/spec.js +302 -0
- data/packages/core-test/lib/sync.js +64 -0
- data/packages/core-test/lib/system/dump.js +208 -0
- data/packages/core-test/lib/system/equiv.js +199 -0
- data/packages/core-test/lib/system/ext.js +62 -0
- data/packages/core-test/lib/system/module.js +162 -0
- data/packages/core-test/lib/system/plan.js +223 -0
- data/packages/core-test/lib/system/stub.js +98 -0
- data/packages/core-test/lib/system/test.js +373 -0
- data/packages/core-test/lib/test.js +69 -0
- data/packages/core-test/lib/utils.js +256 -0
- data/packages/core-test/package.json +10 -0
- data/packages/core-test/resources/additions.css +8 -0
- data/packages/core-test/resources/runner.css +177 -0
- data/packages/core-test/tests/apis/commonjs-test.js +102 -0
- data/packages/core-test/tests/apis/core-test.js +154 -0
- data/packages/core-test/tests/apis/qunit-test.js +244 -0
- data/packages/core-test/tests/apis/spec-test.js +344 -0
- data/packages/core-test/tests/system/equiv/qunit-test.js +1400 -0
- data/packages/core-test/tests/system/test/assert-test.js +86 -0
- data/packages/core-test/tests/system/test/error-test.js +62 -0
- data/packages/core-test/tests/system/test/schedule-test.js +210 -0
- data/packages/core-test/tests/utils/fmt-test.js +24 -0
- data/packages/handlebars/Gemfile +4 -0
- data/packages/handlebars/README.markdown +205 -0
- data/packages/handlebars/Rakefile +65 -0
- data/packages/handlebars/lib/handlebars.js +19 -0
- data/packages/handlebars/lib/handlebars/ast.js +88 -0
- data/packages/handlebars/lib/handlebars/compiler.js +116 -0
- data/packages/handlebars/lib/handlebars/debug.js +25 -0
- data/packages/handlebars/lib/handlebars/printer.js +114 -0
- data/packages/handlebars/lib/handlebars/runtime.js +280 -0
- data/packages/handlebars/lib/handlebars/utils.js +61 -0
- data/packages/handlebars/lib/handlebars/visitor.js +14 -0
- data/packages/handlebars/lib/handlebars/vm.js +634 -0
- data/packages/handlebars/spec/acceptance_spec.rb +100 -0
- data/packages/handlebars/spec/parser_spec.rb +181 -0
- data/packages/handlebars/spec/qunit_spec.js +497 -0
- data/packages/handlebars/spec/spec_helper.rb +107 -0
- data/packages/handlebars/spec/tokenizer_spec.rb +145 -0
- data/packages/handlebars/src/handlebars.l +27 -0
- data/packages/handlebars/src/handlebars.yy +79 -0
- data/packages/handlebars/test.js +56 -0
- data/packages/ivory/LICENSE.txt +1 -0
- data/packages/ivory/README.md +19 -0
- data/packages/ivory/lib/buffer.js +111 -0
- data/packages/ivory/lib/events.js +137 -0
- data/packages/ivory/lib/fs.js +266 -0
- data/packages/ivory/lib/main.js +13 -0
- data/packages/ivory/lib/path.js +158 -0
- data/packages/ivory/lib/ruby/buffer.rb +145 -0
- data/packages/ivory/lib/ruby/constants.rb +585 -0
- data/packages/ivory/lib/ruby/events.rb +32 -0
- data/packages/ivory/lib/ruby/fs.rb +245 -0
- data/packages/ivory/lib/ruby/process.rb +28 -0
- data/packages/ivory/lib/stream.js +115 -0
- data/packages/ivory/lib/util.js +414 -0
- data/packages/ivory/package.json +11 -0
- data/packages/jquery-core/lib/main.js +897 -0
- data/packages/jquery-core/package.json +9 -0
- data/packages/jquery/main.js +7179 -0
- data/packages/jquery/package.json +10 -0
- data/packages/json/lib/main.js +14 -0
- data/packages/json/package.json +8 -0
- data/packages/lproj/README.md +77 -0
- data/packages/lproj/examples/demo-app/en.lproj/localized.strings +2 -0
- data/packages/lproj/examples/demo-app/fr.lproj/localized.strings +3 -0
- data/packages/lproj/examples/demo-app/index.html +8 -0
- data/packages/lproj/examples/demo-app/lib/main.js +7 -0
- data/packages/lproj/examples/demo-app/package.json +9 -0
- data/packages/lproj/lib/main.js +78 -0
- data/packages/lproj/lib/strings-format.js +6 -0
- data/packages/lproj/package.json +9 -0
- data/packages/optparse/README.md +161 -0
- data/packages/optparse/TODO +1 -0
- data/packages/optparse/examples/browser-test.html +75 -0
- data/packages/optparse/examples/nodejs-test.js +90 -0
- data/packages/optparse/lib/optparse.js +309 -0
- data/packages/optparse/package.json +13 -0
- data/packages/optparse/seed.yml +5 -0
- data/packages/sproutcore-bootstrap/lib/main.js +11 -0
- data/packages/sproutcore-bootstrap/package.json +15 -0
- data/packages/sproutcore-corefoundation/lib/main.js +66 -0
- data/packages/sproutcore-corefoundation/lib/tests.js +74 -0
- data/packages/sproutcore-corefoundation/package.json +27 -0
- data/packages/sproutcore-corefoundation/tests.html +12 -0
- data/packages/sproutcore-datastore/lib/main.js +23 -0
- data/packages/sproutcore-datastore/package.json +16 -0
- data/packages/sproutcore-datetime/lib/main.js +6 -0
- data/packages/sproutcore-datetime/package.json +16 -0
- data/packages/sproutcore-handlebars/lib/handlebars.js +5 -0
- data/packages/sproutcore-handlebars/lib/main.js +15 -0
- data/packages/sproutcore-handlebars/package.json +17 -0
- data/packages/sproutcore-jquery/lib/main.js +10 -0
- data/packages/sproutcore-jquery/package.json +12 -0
- data/packages/sproutcore-preprocessor/bin/chance +64 -0
- data/packages/sproutcore-preprocessor/lib/css.js +21 -0
- data/packages/sproutcore-preprocessor/lib/main.js +1 -0
- data/packages/sproutcore-preprocessor/lib/preprocessor.js +12 -0
- data/packages/sproutcore-preprocessor/lib/sc_static.js +9 -0
- data/packages/sproutcore-preprocessor/package.json +18 -0
- data/packages/sproutcore-runtime/lib/main.js +37 -0
- data/packages/sproutcore-runtime/package.json +21 -0
- data/packages/text/lib/main.js +8 -0
- data/packages/text/package.json +9 -0
- data/packages/web-file/README.md +7 -0
- data/packages/web-file/lib/errors.js +32 -0
- data/packages/web-file/lib/file-reader.js +10 -0
- data/packages/web-file/lib/file-system.js +234 -0
- data/packages/web-file/lib/file-writer.js +10 -0
- data/packages/web-file/lib/file.js +9 -0
- data/packages/web-file/lib/main.js +34 -0
- data/packages/web-file/lib/platform.js +25 -0
- data/packages/web-file/lib/ruby/file.rb +252 -0
- data/packages/web-file/lib/ruby/file_reader.rb +69 -0
- data/packages/web-file/lib/ruby/file_system.rb +134 -0
- data/packages/web-file/lib/ruby/file_writer.rb +78 -0
- data/packages/web-file/package.json +12 -0
- data/packages/web-typed-array/README.md +7 -0
- data/packages/web-typed-array/lib/array-buffer-view.js +9 -0
- data/packages/web-typed-array/lib/array-buffer.js +7 -0
- data/packages/web-typed-array/lib/main.js +33 -0
- data/packages/web-typed-array/lib/platform.js +20 -0
- data/packages/web-typed-array/lib/ruby/array_buffer.rb +31 -0
- data/packages/web-typed-array/lib/ruby/array_buffer_view.rb +130 -0
- data/packages/web-typed-array/lib/ruby/typed_array.rb +133 -0
- data/packages/web-typed-array/lib/typed-array.js +26 -0
- data/packages/web-typed-array/package.json +9 -0
- data/spade.gemspec +30 -0
- data/spec/cli/build_spec.rb +59 -0
- data/spec/cli/install_spec.rb +106 -0
- data/spec/cli/installed_spec.rb +55 -0
- data/spec/cli/list_spec.rb +75 -0
- data/spec/cli/login_spec.rb +76 -0
- data/spec/cli/owner_spec.rb +115 -0
- data/spec/cli/push_spec.rb +74 -0
- data/spec/cli/uninstall_spec.rb +58 -0
- data/spec/cli/unpack_spec.rb +73 -0
- data/spec/credentials_spec.rb +24 -0
- data/spec/fixtures/coffee/bin/cake +0 -0
- data/spec/fixtures/coffee/bin/coffee +0 -0
- data/spec/fixtures/coffee/lib/coffee.js +0 -0
- data/spec/fixtures/coffee/lib/coffee.png +0 -0
- data/spec/fixtures/coffee/lib/coffee/base.js +0 -0
- data/spec/fixtures/coffee/lib/coffee/mocha/chai.js +0 -0
- data/spec/fixtures/coffee/qunit/coffee/test.js +0 -0
- data/spec/fixtures/coffee/qunit/test.js +0 -0
- data/spec/fixtures/coffee/qunit/test.log +0 -0
- data/spec/fixtures/package.json +25 -0
- data/spec/gauntlet_spec.rb +30 -0
- data/spec/javascript/async-test.js +123 -0
- data/spec/javascript/compiler/javascript.js +13 -0
- data/spec/javascript/compiler/ruby.js +14 -0
- data/spec/javascript/loader-test.js +64 -0
- data/spec/javascript/normalize-test.js +59 -0
- data/spec/javascript/packages-test.js +44 -0
- data/spec/javascript/relative-require-test.js +72 -0
- data/spec/javascript/require-test.js +56 -0
- data/spec/javascript/sandbox/compile.js +37 -0
- data/spec/javascript/sandbox/creation.js +44 -0
- data/spec/javascript/sandbox/format.js +79 -0
- data/spec/javascript/sandbox/misc.js +57 -0
- data/spec/javascript/sandbox/preprocessor.js +81 -0
- data/spec/javascript/sandbox/require.js +48 -0
- data/spec/javascript/sandbox/run-command.js +21 -0
- data/spec/javascript/spade/externs.js +14 -0
- data/spec/javascript/spade/load-factory.js +15 -0
- data/spec/javascript/spade/misc.js +23 -0
- data/spec/javascript/spade/ready.js +12 -0
- data/spec/javascript/spade/register.js +13 -0
- data/spec/javascript_spec.rb +7 -0
- data/spec/package_spec.rb +257 -0
- data/spec/spec_helper.rb +30 -0
- data/spec/support/cli.rb +94 -0
- data/spec/support/core_test.rb +52 -0
- data/spec/support/fake.rb +42 -0
- data/spec/support/fake_gem_server.rb +50 -0
- data/spec/support/fake_gemcutter.rb +29 -0
- data/spec/support/matchers.rb +31 -0
- data/spec/support/path.rb +54 -0
- data/sproutcore/.gitignore +13 -0
- data/sproutcore/Buildfile +112 -0
- data/sproutcore/CHANGELOG.md +232 -0
- data/sproutcore/README.md +68 -0
- data/sproutcore/apps/docs/core.js +27 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Preview.pdf +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/data.plist +14378 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image10.png +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image11.png +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image13.png +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image14.png +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image8.png +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image9.tiff +0 -0
- data/sproutcore/apps/docs/english.lproj/loading.rhtml +9 -0
- data/sproutcore/apps/docs/english.lproj/main_page.js +22 -0
- data/sproutcore/apps/docs/english.lproj/strings.js +15 -0
- data/sproutcore/apps/docs/main.js +30 -0
- data/sproutcore/apps/greenhouse/README +18 -0
- data/sproutcore/apps/greenhouse/TODO +56 -0
- data/sproutcore/apps/greenhouse/beautify.js +1058 -0
- data/sproutcore/apps/greenhouse/controllers/design.js +20 -0
- data/sproutcore/apps/greenhouse/controllers/file.js +35 -0
- data/sproutcore/apps/greenhouse/controllers/files.js +40 -0
- data/sproutcore/apps/greenhouse/controllers/layout.js +53 -0
- data/sproutcore/apps/greenhouse/controllers/library.js +194 -0
- data/sproutcore/apps/greenhouse/controllers/page.js +18 -0
- data/sproutcore/apps/greenhouse/controllers/property.js +19 -0
- data/sproutcore/apps/greenhouse/controllers/property_editor.js +17 -0
- data/sproutcore/apps/greenhouse/controllers/target.js +20 -0
- data/sproutcore/apps/greenhouse/controllers/targets.js +43 -0
- data/sproutcore/apps/greenhouse/controllers/view_configs.js +100 -0
- data/sproutcore/apps/greenhouse/core.js +65 -0
- data/sproutcore/apps/greenhouse/core_file.js +124 -0
- data/sproutcore/apps/greenhouse/data_source.js +250 -0
- data/sproutcore/apps/greenhouse/english.lproj/app_page.js +399 -0
- data/sproutcore/apps/greenhouse/english.lproj/css/app-selector.css +107 -0
- data/sproutcore/apps/greenhouse/english.lproj/css/button.css +314 -0
- data/sproutcore/apps/greenhouse/english.lproj/css/dock.css +90 -0
- data/sproutcore/apps/greenhouse/english.lproj/css/general.css +51 -0
- data/sproutcore/apps/greenhouse/english.lproj/css/main-page.css +93 -0
- data/sproutcore/apps/greenhouse/english.lproj/css/menu.css +49 -0
- data/sproutcore/apps/greenhouse/english.lproj/css/modal.css +41 -0
- data/sproutcore/apps/greenhouse/english.lproj/css/picker.css +195 -0
- data/sproutcore/apps/greenhouse/english.lproj/css/search.css +60 -0
- data/sproutcore/apps/greenhouse/english.lproj/css/text-field.css +67 -0
- data/sproutcore/apps/greenhouse/english.lproj/dialogs.js +303 -0
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/actions.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/library-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/library.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/projects.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/run-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/run.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/save-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/save.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/main-bg.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/close-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/close.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/left.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/right.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/search-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/search.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/top-left.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/top-right.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/top.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/inspectors.js +365 -0
- data/sproutcore/apps/greenhouse/english.lproj/loading.rhtml +9 -0
- data/sproutcore/apps/greenhouse/english.lproj/main_page.js +95 -0
- data/sproutcore/apps/greenhouse/english.lproj/strings.js +93 -0
- data/sproutcore/apps/greenhouse/fixtures/file.js +35 -0
- data/sproutcore/apps/greenhouse/main.js +28 -0
- data/sproutcore/apps/greenhouse/mixins/drop_down.js +97 -0
- data/sproutcore/apps/greenhouse/models/design.js +26 -0
- data/sproutcore/apps/greenhouse/models/dir.js +93 -0
- data/sproutcore/apps/greenhouse/models/file.js +51 -0
- data/sproutcore/apps/greenhouse/models/target.js +82 -0
- data/sproutcore/apps/greenhouse/models/view_config.js +49 -0
- data/sproutcore/apps/greenhouse/resources/test_page.js +37 -0
- data/sproutcore/apps/greenhouse/states/inspector.js +152 -0
- data/sproutcore/apps/greenhouse/states/library.js +142 -0
- data/sproutcore/apps/greenhouse/states/main.js +283 -0
- data/sproutcore/apps/greenhouse/states/modals.js +299 -0
- data/sproutcore/apps/greenhouse/states/ready.js +235 -0
- data/sproutcore/apps/greenhouse/tests/controllers/design.js +15 -0
- data/sproutcore/apps/greenhouse/tests/controllers/designs.js +15 -0
- data/sproutcore/apps/greenhouse/tests/controllers/file.js +15 -0
- data/sproutcore/apps/greenhouse/tests/controllers/files.js +15 -0
- data/sproutcore/apps/greenhouse/tests/models/file.js +15 -0
- data/sproutcore/apps/greenhouse/tests/models/view_config.js +15 -0
- data/sproutcore/apps/greenhouse/tests/views/list_item.js +16 -0
- data/sproutcore/apps/greenhouse/tests/views/plist_item.js +20 -0
- data/sproutcore/apps/greenhouse/theme.js +25 -0
- data/sproutcore/apps/greenhouse/views/anchor.js +277 -0
- data/sproutcore/apps/greenhouse/views/application_list_item.js +19 -0
- data/sproutcore/apps/greenhouse/views/event_blocker.js +32 -0
- data/sproutcore/apps/greenhouse/views/label_designer.js +16 -0
- data/sproutcore/apps/greenhouse/views/list_item.js +42 -0
- data/sproutcore/apps/greenhouse/views/plist_item.js +178 -0
- data/sproutcore/apps/greenhouse/views/simple_button.js +157 -0
- data/sproutcore/apps/greenhouse/views/tear_off_picker.js +56 -0
- data/sproutcore/apps/greenhouse/views/web.js +44 -0
- data/sproutcore/apps/test_controls/Buildfile +0 -0
- data/sproutcore/apps/test_controls/controllers/buttons.js +21 -0
- data/sproutcore/apps/test_controls/controllers/categories.js +108 -0
- data/sproutcore/apps/test_controls/controllers/category.js +36 -0
- data/sproutcore/apps/test_controls/core.js +29 -0
- data/sproutcore/apps/test_controls/main.js +14 -0
- data/sproutcore/apps/test_controls/resources/buttons_page.js +142 -0
- data/sproutcore/apps/test_controls/resources/checkboxes_page.js +45 -0
- data/sproutcore/apps/test_controls/resources/flow_layout_page.js +84 -0
- data/sproutcore/apps/test_controls/resources/list_page.js +40 -0
- data/sproutcore/apps/test_controls/resources/loading.rhtml +9 -0
- data/sproutcore/apps/test_controls/resources/main_page.css +60 -0
- data/sproutcore/apps/test_controls/resources/main_page.js +145 -0
- data/sproutcore/apps/test_controls/resources/progress_page.js +32 -0
- data/sproutcore/apps/test_controls/resources/radio_page.js +48 -0
- data/sproutcore/apps/test_controls/resources/scroll_page.js +76 -0
- data/sproutcore/apps/test_controls/resources/segmented_page.js +98 -0
- data/sproutcore/apps/test_controls/resources/select_page.js +60 -0
- data/sproutcore/apps/test_controls/resources/sliders_page.js +53 -0
- data/sproutcore/apps/test_controls/resources/strings.js +50 -0
- data/sproutcore/apps/test_controls/resources/tab_page.js +44 -0
- data/sproutcore/apps/test_controls/resources/text_field_page.js +41 -0
- data/sproutcore/apps/test_controls/theme.js +34 -0
- data/sproutcore/apps/tests/controllers/detail.js +25 -0
- data/sproutcore/apps/tests/controllers/source.js +29 -0
- data/sproutcore/apps/tests/controllers/target.js +26 -0
- data/sproutcore/apps/tests/controllers/targets.js +86 -0
- data/sproutcore/apps/tests/controllers/tests.js +33 -0
- data/sproutcore/apps/tests/core.js +133 -0
- data/sproutcore/apps/tests/english.lproj/loading.rhtml +9 -0
- data/sproutcore/apps/tests/english.lproj/main_page.css +48 -0
- data/sproutcore/apps/tests/english.lproj/main_page.js +233 -0
- data/sproutcore/apps/tests/english.lproj/strings.js +26 -0
- data/sproutcore/apps/tests/main.js +27 -0
- data/sproutcore/apps/tests/states/no_targets.js +26 -0
- data/sproutcore/apps/tests/states/ready.js +56 -0
- data/sproutcore/apps/tests/states/ready_detail.js +41 -0
- data/sproutcore/apps/tests/states/ready_empty.js +48 -0
- data/sproutcore/apps/tests/states/ready_list.js +41 -0
- data/sproutcore/apps/tests/states/ready_loading.js +44 -0
- data/sproutcore/apps/tests/states/ready_no_tests.js +31 -0
- data/sproutcore/apps/tests/states/start.js +39 -0
- data/sproutcore/apps/tests/tests/controllers/detail.js +15 -0
- data/sproutcore/apps/tests/tests/controllers/source.js +15 -0
- data/sproutcore/apps/tests/tests/controllers/target.js +15 -0
- data/sproutcore/apps/tests/tests/controllers/targets.js +15 -0
- data/sproutcore/apps/tests/tests/controllers/tests.js +15 -0
- data/sproutcore/apps/tests/tests/models/target.js +15 -0
- data/sproutcore/apps/tests/tests/models/test.js +15 -0
- data/sproutcore/apps/tests/tests/views/offset_checkbox.js +15 -0
- data/sproutcore/apps/tests/views/offset_checkbox.js +26 -0
- data/sproutcore/apps/welcome/controllers/targets.js +56 -0
- data/sproutcore/apps/welcome/core.js +30 -0
- data/sproutcore/apps/welcome/english.lproj/images/main-bg.png +0 -0
- data/sproutcore/apps/welcome/english.lproj/loading.rhtml +10 -0
- data/sproutcore/apps/welcome/english.lproj/main_page.css +25 -0
- data/sproutcore/apps/welcome/english.lproj/main_page.js +67 -0
- data/sproutcore/apps/welcome/english.lproj/strings.js +15 -0
- data/sproutcore/apps/welcome/main.js +19 -0
- data/sproutcore/apps/welcome/tests/controllers/targets.js +15 -0
- data/sproutcore/design/CollectionView State Charts.graffle +4848 -0
- data/sproutcore/design/Design Charts.graffle +16845 -0
- data/sproutcore/design/Record State Table.numbers +0 -0
- data/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Preview.pdf +0 -0
- data/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/sproutcore/design/SproutCore Datastore Design.graffle/data.plist +19588 -0
- data/sproutcore/design/SproutCore Datastore Design.graffle/image8.png +0 -0
- data/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Preview.pdf +0 -0
- data/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/sproutcore/design/SproutCore Design Template.graffle/data.plist +1452 -0
- data/sproutcore/design/SproutCore Design Template.graffle/image8.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/QuickLook/Preview.pdf +0 -0
- data/sproutcore/design/TestRunner Design.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/sproutcore/design/TestRunner Design.graffle/data.plist +24187 -0
- data/sproutcore/design/TestRunner Design.graffle/image10.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image11.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image13.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image15.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image16.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image17.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image18.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image19.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image22.tiff +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image23.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image24.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image25.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image30.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image31.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image8.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image9.png +0 -0
- data/sproutcore/design/greenhouse-statechart.graffle +9025 -0
- data/sproutcore/design/greenhouse-statechart.pdf +0 -0
- data/sproutcore/design/iphone-webapp-loading.psd +0 -0
- data/sproutcore/frameworks/animation/Buildfile +3 -0
- data/sproutcore/frameworks/animation/LICENSE +25 -0
- data/sproutcore/frameworks/animation/README.md +79 -0
- data/sproutcore/frameworks/animation/core.js +1206 -0
- data/sproutcore/frameworks/animation/tests/core.js +152 -0
- data/sproutcore/frameworks/bootstrap/README +9 -0
- data/sproutcore/frameworks/bootstrap/core.js +7 -0
- data/sproutcore/frameworks/bootstrap/setup_body_class_names.js +10 -0
- data/sproutcore/frameworks/bootstrap/system/bench.js +14 -0
- data/sproutcore/frameworks/bootstrap/system/browser.js +65 -0
- data/sproutcore/frameworks/bootstrap/system/loader.js +50 -0
- data/sproutcore/frameworks/bootstrap/tests/system/browser.js +187 -0
- data/sproutcore/frameworks/core_foundation/.greenhouseconf +33 -0
- data/sproutcore/frameworks/core_foundation/controllers/array.js +498 -0
- data/sproutcore/frameworks/core_foundation/controllers/controller.js +44 -0
- data/sproutcore/frameworks/core_foundation/controllers/object.js +342 -0
- data/sproutcore/frameworks/core_foundation/core.js +201 -0
- data/sproutcore/frameworks/core_foundation/ext/object.js +83 -0
- data/sproutcore/frameworks/core_foundation/ext/run_loop.js +163 -0
- data/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +110 -0
- data/sproutcore/frameworks/core_foundation/mixins/responder_context.js +269 -0
- data/sproutcore/frameworks/core_foundation/mixins/selection_support.js +250 -0
- data/sproutcore/frameworks/core_foundation/mixins/string.js +163 -0
- data/sproutcore/frameworks/core_foundation/panes/keyboard.js +68 -0
- data/sproutcore/frameworks/core_foundation/panes/layout.js +108 -0
- data/sproutcore/frameworks/core_foundation/panes/main.js +52 -0
- data/sproutcore/frameworks/core_foundation/panes/manipulation.js +27 -0
- data/sproutcore/frameworks/core_foundation/panes/pane.js +672 -0
- data/sproutcore/frameworks/core_foundation/panes/template.js +24 -0
- data/sproutcore/frameworks/core_foundation/panes/visibility.js +11 -0
- data/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js +40 -0
- data/sproutcore/frameworks/core_foundation/protocols/sparse_array_delegate.js +131 -0
- data/sproutcore/frameworks/core_foundation/resources/core.css +371 -0
- data/sproutcore/frameworks/core_foundation/resources/view.css +57 -0
- data/sproutcore/frameworks/core_foundation/system/application.js +35 -0
- data/sproutcore/frameworks/core_foundation/system/browser.js +36 -0
- data/sproutcore/frameworks/core_foundation/system/builder.js +210 -0
- data/sproutcore/frameworks/core_foundation/system/core_query.js +141 -0
- data/sproutcore/frameworks/core_foundation/system/cursor.js +131 -0
- data/sproutcore/frameworks/core_foundation/system/device.js +210 -0
- data/sproutcore/frameworks/core_foundation/system/event.js +914 -0
- data/sproutcore/frameworks/core_foundation/system/json.js +515 -0
- data/sproutcore/frameworks/core_foundation/system/locale.js +293 -0
- data/sproutcore/frameworks/core_foundation/system/page.js +108 -0
- data/sproutcore/frameworks/core_foundation/system/platform.js +399 -0
- data/sproutcore/frameworks/core_foundation/system/ready.js +77 -0
- data/sproutcore/frameworks/core_foundation/system/render_context.js +1063 -0
- data/sproutcore/frameworks/core_foundation/system/responder.js +124 -0
- data/sproutcore/frameworks/core_foundation/system/root_responder.js +2173 -0
- data/sproutcore/frameworks/core_foundation/system/selection_set.js +695 -0
- data/sproutcore/frameworks/core_foundation/system/sparse_array.js +393 -0
- data/sproutcore/frameworks/core_foundation/system/theme.js +316 -0
- data/sproutcore/frameworks/core_foundation/system/timer.js +553 -0
- data/sproutcore/frameworks/core_foundation/system/utils.js +151 -0
- data/sproutcore/frameworks/core_foundation/system/utils/rect.js +98 -0
- data/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +218 -0
- data/sproutcore/frameworks/core_foundation/tests/controllers/array/enum_case.js +206 -0
- data/sproutcore/frameworks/core_foundation/tests/controllers/array/null_case.js +64 -0
- data/sproutcore/frameworks/core_foundation/tests/controllers/array/selection_support.js +344 -0
- data/sproutcore/frameworks/core_foundation/tests/controllers/array/single_case.js +136 -0
- data/sproutcore/frameworks/core_foundation/tests/controllers/object/empty_case.js +82 -0
- data/sproutcore/frameworks/core_foundation/tests/controllers/object/multiple_case.js +111 -0
- data/sproutcore/frameworks/core_foundation/tests/controllers/object/single_case.js +193 -0
- data/sproutcore/frameworks/core_foundation/tests/controllers/object/single_enumerable_case.js +265 -0
- data/sproutcore/frameworks/core_foundation/tests/mixins/responder_context.js +75 -0
- data/sproutcore/frameworks/core_foundation/tests/mixins/string.js +55 -0
- data/sproutcore/frameworks/core_foundation/tests/panes/template.js +14 -0
- data/sproutcore/frameworks/core_foundation/tests/system/builder.js +42 -0
- data/sproutcore/frameworks/core_foundation/tests/system/core_query/within.js +65 -0
- data/sproutcore/frameworks/core_foundation/tests/system/json.js +14 -0
- data/sproutcore/frameworks/core_foundation/tests/system/locale.js +134 -0
- data/sproutcore/frameworks/core_foundation/tests/system/ready/done.js +32 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/begin.js +47 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/element.js +44 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/end.js +124 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/get.js +51 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_attr.js +50 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_basic.js +28 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_className.js +177 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_style.js +109 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/init.js +55 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/join.js +28 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/push_text.js +74 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/tag.js +46 -0
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/update.js +218 -0
- data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeKeyPane.js +124 -0
- data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMainPane.js +68 -0
- data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMenuPane.js +48 -0
- data/sproutcore/frameworks/core_foundation/tests/system/root_responder/root_responder.js +101 -0
- data/sproutcore/frameworks/core_foundation/tests/system/root_responder/targetForAction.js +288 -0
- data/sproutcore/frameworks/core_foundation/tests/system/selection_set/add.js +92 -0
- data/sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js +17 -0
- data/sproutcore/frameworks/core_foundation/tests/system/selection_set/indexSetForSource.js +98 -0
- data/sproutcore/frameworks/core_foundation/tests/system/selection_set/isEqual.js +60 -0
- data/sproutcore/frameworks/core_foundation/tests/system/selection_set/remove.js +111 -0
- data/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +194 -0
- data/sproutcore/frameworks/core_foundation/tests/system/theme.js +77 -0
- data/sproutcore/frameworks/core_foundation/tests/system/timer/invalidate.js +38 -0
- data/sproutcore/frameworks/core_foundation/tests/system/timer/invokeLater.js +203 -0
- data/sproutcore/frameworks/core_foundation/tests/system/timer/isPaused.js +71 -0
- data/sproutcore/frameworks/core_foundation/tests/system/timer/performAction.js +69 -0
- data/sproutcore/frameworks/core_foundation/tests/system/timer/schedule.js +170 -0
- data/sproutcore/frameworks/core_foundation/tests/system/utils/normalizeURL.js +18 -0
- data/sproutcore/frameworks/core_foundation/tests/system/utils/offset.js +271 -0
- data/sproutcore/frameworks/core_foundation/tests/system/utils/rect.js +99 -0
- data/sproutcore/frameworks/core_foundation/tests/views/main_pane.js +43 -0
- data/sproutcore/frameworks/core_foundation/tests/views/pane/append_remove.js +218 -0
- data/sproutcore/frameworks/core_foundation/tests/views/pane/child_view.js +20 -0
- data/sproutcore/frameworks/core_foundation/tests/views/pane/firstResponder.js +148 -0
- data/sproutcore/frameworks/core_foundation/tests/views/pane/keyPane.js +133 -0
- data/sproutcore/frameworks/core_foundation/tests/views/pane/layout.js +31 -0
- data/sproutcore/frameworks/core_foundation/tests/views/pane/sendEvent.js +206 -0
- data/sproutcore/frameworks/core_foundation/tests/views/template/checkbox_support.js +32 -0
- data/sproutcore/frameworks/core_foundation/tests/views/template/text_field_support.js +73 -0
- data/sproutcore/frameworks/core_foundation/tests/views/template_view/collection.js +111 -0
- data/sproutcore/frameworks/core_foundation/tests/views/template_view/core.js +100 -0
- data/sproutcore/frameworks/core_foundation/tests/views/template_view/handlebars.js +580 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/animation.js +376 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/build.js +85 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/build_children.js +89 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/clippingFrame.js +117 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/convertFrames.js +248 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/convertLayouts.js +145 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/createChildViews.js +132 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/createLayer.js +97 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/destroyLayer.js +83 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/didAppendToDocument.js +51 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/findLayerInParentLayer.js +50 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/init.js +50 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/insertBefore.js +217 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/isVisible.js +79 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/isVisibleInWindow.js +116 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +22 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/layer.js +150 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/layoutChildViews.js +162 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/layoutDidChange.js +180 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/layoutStyle.js +735 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/parentViewDidChange.js +67 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/prepareContext.js +203 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/removeChild.js +189 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/render.js +125 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/render_delegate_support.js +163 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/replaceChild.js +29 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js +21 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/theme.js +43 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/updateLayer.js +148 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/updateLayerLocation.js +213 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/view.js +64 -0
- data/sproutcore/frameworks/core_foundation/tests/views/view/viewDidResize.js +202 -0
- data/sproutcore/frameworks/core_foundation/views/template.js +77 -0
- data/sproutcore/frameworks/core_foundation/views/template/checkbox_support.js +20 -0
- data/sproutcore/frameworks/core_foundation/views/template/collection.js +106 -0
- data/sproutcore/frameworks/core_foundation/views/template/text_field_support.js +35 -0
- data/sproutcore/frameworks/core_foundation/views/view.js +1458 -0
- data/sproutcore/frameworks/core_foundation/views/view/animation.js +181 -0
- data/sproutcore/frameworks/core_foundation/views/view/base.js +1 -0
- data/sproutcore/frameworks/core_foundation/views/view/cursor.js +48 -0
- data/sproutcore/frameworks/core_foundation/views/view/enabled.js +57 -0
- data/sproutcore/frameworks/core_foundation/views/view/keyboard.js +223 -0
- data/sproutcore/frameworks/core_foundation/views/view/layout.js +1087 -0
- data/sproutcore/frameworks/core_foundation/views/view/layout_style.js +618 -0
- data/sproutcore/frameworks/core_foundation/views/view/manipulation.js +426 -0
- data/sproutcore/frameworks/core_foundation/views/view/theming.js +362 -0
- data/sproutcore/frameworks/core_foundation/views/view/touch.js +67 -0
- data/sproutcore/frameworks/core_foundation/views/view/visibility.js +118 -0
- data/sproutcore/frameworks/core_tools/core.js +20 -0
- data/sproutcore/frameworks/core_tools/data_source.js +99 -0
- data/sproutcore/frameworks/core_tools/english.lproj/strings.js +15 -0
- data/sproutcore/frameworks/core_tools/fixtures/target.js +87 -0
- data/sproutcore/frameworks/core_tools/fixtures/test.js +44 -0
- data/sproutcore/frameworks/core_tools/models/target.js +108 -0
- data/sproutcore/frameworks/core_tools/models/test.js +48 -0
- data/sproutcore/frameworks/datastore/core.js +8 -0
- data/sproutcore/frameworks/datastore/data_sources/cascade.js +180 -0
- data/sproutcore/frameworks/datastore/data_sources/data_source.js +583 -0
- data/sproutcore/frameworks/datastore/data_sources/fixtures.js +393 -0
- data/sproutcore/frameworks/datastore/debug/json.js +71 -0
- data/sproutcore/frameworks/datastore/debug/standard_setup.js +96 -0
- data/sproutcore/frameworks/datastore/fixtures/author_fixtures.js +2503 -0
- data/sproutcore/frameworks/datastore/fixtures/sample.js +17 -0
- data/sproutcore/frameworks/datastore/models/child_attribute.js +96 -0
- data/sproutcore/frameworks/datastore/models/children_attribute.js +75 -0
- data/sproutcore/frameworks/datastore/models/fetched_attribute.js +100 -0
- data/sproutcore/frameworks/datastore/models/many_attribute.js +154 -0
- data/sproutcore/frameworks/datastore/models/record.js +1318 -0
- data/sproutcore/frameworks/datastore/models/record_attribute.js +567 -0
- data/sproutcore/frameworks/datastore/models/single_attribute.js +159 -0
- data/sproutcore/frameworks/datastore/system/child_array.js +222 -0
- data/sproutcore/frameworks/datastore/system/many_array.js +418 -0
- data/sproutcore/frameworks/datastore/system/nested_store.js +609 -0
- data/sproutcore/frameworks/datastore/system/query.js +1599 -0
- data/sproutcore/frameworks/datastore/system/record_array.js +710 -0
- data/sproutcore/frameworks/datastore/system/store.js +2860 -0
- data/sproutcore/frameworks/datastore/tests/data_sources/cascade.js +133 -0
- data/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +122 -0
- data/sproutcore/frameworks/datastore/tests/integration/contact_model.js +131 -0
- data/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +119 -0
- data/sproutcore/frameworks/datastore/tests/integration/mail_model.js +91 -0
- data/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +56 -0
- data/sproutcore/frameworks/datastore/tests/models/datetime_recordattribute.js +73 -0
- data/sproutcore/frameworks/datastore/tests/models/many_attribute.js +423 -0
- data/sproutcore/frameworks/datastore/tests/models/nested_records/data_store.js +180 -0
- data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +309 -0
- data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +363 -0
- data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +421 -0
- data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +304 -0
- data/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +55 -0
- data/sproutcore/frameworks/datastore/tests/models/record/destroy.js +92 -0
- data/sproutcore/frameworks/datastore/tests/models/record/error_methods.js +56 -0
- data/sproutcore/frameworks/datastore/tests/models/record/normalize.js +336 -0
- data/sproutcore/frameworks/datastore/tests/models/record/readAttribute.js +53 -0
- data/sproutcore/frameworks/datastore/tests/models/record/refresh.js +48 -0
- data/sproutcore/frameworks/datastore/tests/models/record/storeDidChangeProperties.js +170 -0
- data/sproutcore/frameworks/datastore/tests/models/record/unknownProperty.js +66 -0
- data/sproutcore/frameworks/datastore/tests/models/record/writeAttribute.js +112 -0
- data/sproutcore/frameworks/datastore/tests/models/record_attribute.js +252 -0
- data/sproutcore/frameworks/datastore/tests/models/single_attribute.js +284 -0
- data/sproutcore/frameworks/datastore/tests/system/many_array/core_methods.js +204 -0
- data/sproutcore/frameworks/datastore/tests/system/nested_store/chain.js +180 -0
- data/sproutcore/frameworks/datastore/tests/system/nested_store/commitChanges.js +173 -0
- data/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +158 -0
- data/sproutcore/frameworks/datastore/tests/system/nested_store/core_methods.js +70 -0
- data/sproutcore/frameworks/datastore/tests/system/nested_store/dataHashDidChange.js +113 -0
- data/sproutcore/frameworks/datastore/tests/system/nested_store/discardChanges.js +102 -0
- data/sproutcore/frameworks/datastore/tests/system/nested_store/readDataHash.js +180 -0
- data/sproutcore/frameworks/datastore/tests/system/nested_store/readEditableDataHash.js +126 -0
- data/sproutcore/frameworks/datastore/tests/system/nested_store/removeDataHash.js +163 -0
- data/sproutcore/frameworks/datastore/tests/system/nested_store/writeDataHash.js +166 -0
- data/sproutcore/frameworks/datastore/tests/system/query/builders.js +219 -0
- data/sproutcore/frameworks/datastore/tests/system/query/compare.js +144 -0
- data/sproutcore/frameworks/datastore/tests/system/query/contains.js +131 -0
- data/sproutcore/frameworks/datastore/tests/system/query/containsRecordTypes.js +81 -0
- data/sproutcore/frameworks/datastore/tests/system/query/copy.js +30 -0
- data/sproutcore/frameworks/datastore/tests/system/query/evaluation.js +197 -0
- data/sproutcore/frameworks/datastore/tests/system/query/evaluation_of_records.js +92 -0
- data/sproutcore/frameworks/datastore/tests/system/query/expandedRecordTypes.js +64 -0
- data/sproutcore/frameworks/datastore/tests/system/query/parse.js +216 -0
- data/sproutcore/frameworks/datastore/tests/system/query/queryWithScope.js +57 -0
- data/sproutcore/frameworks/datastore/tests/system/query/record_type_is.js +47 -0
- data/sproutcore/frameworks/datastore/tests/system/query/registered_comparisons.js +70 -0
- data/sproutcore/frameworks/datastore/tests/system/query/registered_query_extensions.js +71 -0
- data/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +177 -0
- data/sproutcore/frameworks/datastore/tests/system/record_array/error_methods.js +50 -0
- data/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +214 -0
- data/sproutcore/frameworks/datastore/tests/system/store/cancelRecord.js +54 -0
- data/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +137 -0
- data/sproutcore/frameworks/datastore/tests/system/store/commitRecord.js +221 -0
- data/sproutcore/frameworks/datastore/tests/system/store/core_methods.js +156 -0
- data/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +76 -0
- data/sproutcore/frameworks/datastore/tests/system/store/dataHashDidChange.js +157 -0
- data/sproutcore/frameworks/datastore/tests/system/store/dataSourceCallbacks.js +278 -0
- data/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +110 -0
- data/sproutcore/frameworks/datastore/tests/system/store/error_methods.js +62 -0
- data/sproutcore/frameworks/datastore/tests/system/store/find.js +530 -0
- data/sproutcore/frameworks/datastore/tests/system/store/init.js +23 -0
- data/sproutcore/frameworks/datastore/tests/system/store/loadRecord.js +64 -0
- data/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +61 -0
- data/sproutcore/frameworks/datastore/tests/system/store/readDataHash.js +74 -0
- data/sproutcore/frameworks/datastore/tests/system/store/readEditableDataHash.js +74 -0
- data/sproutcore/frameworks/datastore/tests/system/store/recordDidChange.js +76 -0
- data/sproutcore/frameworks/datastore/tests/system/store/removeDataHash.js +144 -0
- data/sproutcore/frameworks/datastore/tests/system/store/retrieveRecord.js +200 -0
- data/sproutcore/frameworks/datastore/tests/system/store/unloadRecords.js +41 -0
- data/sproutcore/frameworks/datastore/tests/system/store/writeDataHash.js +125 -0
- data/sproutcore/frameworks/datetime/resources/strings.js +14 -0
- data/sproutcore/frameworks/datetime/system/datetime.js +1111 -0
- data/sproutcore/frameworks/datetime/tests/system/datetime.js +383 -0
- data/sproutcore/frameworks/debug/core.js +114 -0
- data/sproutcore/frameworks/debug/invoke_once_last_debugging.js +259 -0
- data/sproutcore/frameworks/designer/coders/design.js +20 -0
- data/sproutcore/frameworks/designer/coders/object.js +347 -0
- data/sproutcore/frameworks/designer/controllers/controllers.js +16 -0
- data/sproutcore/frameworks/designer/controllers/design.js +37 -0
- data/sproutcore/frameworks/designer/controllers/designs.js +133 -0
- data/sproutcore/frameworks/designer/controllers/page_design.js +170 -0
- data/sproutcore/frameworks/designer/controllers/page_files.js +22 -0
- data/sproutcore/frameworks/designer/core.js +26 -0
- data/sproutcore/frameworks/designer/css/css_rule.js +22 -0
- data/sproutcore/frameworks/designer/css/css_style.js +29 -0
- data/sproutcore/frameworks/designer/css/css_style_sheet.js +201 -0
- data/sproutcore/frameworks/designer/designers/button.js +21 -0
- data/sproutcore/frameworks/designer/designers/label.js +16 -0
- data/sproutcore/frameworks/designer/designers/object_designer.js +296 -0
- data/sproutcore/frameworks/designer/designers/tab.js +18 -0
- data/sproutcore/frameworks/designer/designers/text_field.js +15 -0
- data/sproutcore/frameworks/designer/designers/view_designer.js +1267 -0
- data/sproutcore/frameworks/designer/english.lproj/css/designer.css +96 -0
- data/sproutcore/frameworks/designer/english.lproj/design_page.js +55 -0
- data/sproutcore/frameworks/designer/english.lproj/high_light.css +10 -0
- data/sproutcore/frameworks/designer/english.lproj/images/controller.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/dock-bg.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/dock-item-bg.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/dock-item-divider.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-bg.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-divider.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/main-bg.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/page.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/pane.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/view.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/selection_handles.css +58 -0
- data/sproutcore/frameworks/designer/ext/binding.js +33 -0
- data/sproutcore/frameworks/designer/ext/object.js +26 -0
- data/sproutcore/frameworks/designer/ext/page.js +58 -0
- data/sproutcore/frameworks/designer/ext/view.js +27 -0
- data/sproutcore/frameworks/designer/mixins/button.js +11 -0
- data/sproutcore/frameworks/designer/mixins/snap_lines.js +221 -0
- data/sproutcore/frameworks/designer/tests/coders/page.js +54 -0
- data/sproutcore/frameworks/designer/tests/designers/view_designer.js +47 -0
- data/sproutcore/frameworks/designer/views/designer_drop_target.js +144 -0
- data/sproutcore/frameworks/designer/views/drawing.js +219 -0
- data/sproutcore/frameworks/designer/views/high_light.js +66 -0
- data/sproutcore/frameworks/designer/views/page_item_view.js +130 -0
- data/sproutcore/frameworks/designer/views/selection_handles.js +78 -0
- data/sproutcore/frameworks/desktop/.greenhouseconf +218 -0
- data/sproutcore/frameworks/desktop/core.js +18 -0
- data/sproutcore/frameworks/desktop/debug/drag.js +41 -0
- data/sproutcore/frameworks/desktop/english.lproj/alert.css +56 -0
- data/sproutcore/frameworks/desktop/english.lproj/debug/a_sample_image.jpg +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/debug/apple-logo1.jpeg +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/debug/iframe.html +23 -0
- data/sproutcore/frameworks/desktop/english.lproj/disclosure.css +74 -0
- data/sproutcore/frameworks/desktop/english.lproj/drag.css +7 -0
- data/sproutcore/frameworks/desktop/english.lproj/icons.css +943 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/cap.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/downbutton.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/icons/shared.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/thumb-bottom.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/thumb-center.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/thumb-top.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/track.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/upbutton.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/list_item.css +185 -0
- data/sproutcore/frameworks/desktop/english.lproj/menu.css +12 -0
- data/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +109 -0
- data/sproutcore/frameworks/desktop/english.lproj/modal.css +9 -0
- data/sproutcore/frameworks/desktop/english.lproj/panel.css +91 -0
- data/sproutcore/frameworks/desktop/english.lproj/picker.css +35 -0
- data/sproutcore/frameworks/desktop/english.lproj/progress.css +33 -0
- data/sproutcore/frameworks/desktop/english.lproj/radio.css +10 -0
- data/sproutcore/frameworks/desktop/english.lproj/segmented.css +132 -0
- data/sproutcore/frameworks/desktop/english.lproj/separator.css +19 -0
- data/sproutcore/frameworks/desktop/english.lproj/slider.css +66 -0
- data/sproutcore/frameworks/desktop/english.lproj/split.css +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/split_divider.css +6 -0
- data/sproutcore/frameworks/desktop/english.lproj/strings.js +14 -0
- data/sproutcore/frameworks/desktop/english.lproj/tab.css +7 -0
- data/sproutcore/frameworks/desktop/english.lproj/toolbar.css +5 -0
- data/sproutcore/frameworks/desktop/english.lproj/touch-scroller.css +196 -0
- data/sproutcore/frameworks/desktop/english.lproj/well.css +71 -0
- data/sproutcore/frameworks/desktop/mixins/border.js +151 -0
- data/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +694 -0
- data/sproutcore/frameworks/desktop/mixins/collection_group.js +22 -0
- data/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +95 -0
- data/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +295 -0
- data/sproutcore/frameworks/desktop/mixins/navigation_builder.js +130 -0
- data/sproutcore/frameworks/desktop/mixins/scrollable.js +253 -0
- data/sproutcore/frameworks/desktop/panes/alert.js +457 -0
- data/sproutcore/frameworks/desktop/panes/menu.js +1141 -0
- data/sproutcore/frameworks/desktop/panes/modal.js +71 -0
- data/sproutcore/frameworks/desktop/panes/palette.js +74 -0
- data/sproutcore/frameworks/desktop/panes/panel.js +207 -0
- data/sproutcore/frameworks/desktop/panes/picker.js +796 -0
- data/sproutcore/frameworks/desktop/panes/select_button.js +895 -0
- data/sproutcore/frameworks/desktop/panes/sheet.js +214 -0
- data/sproutcore/frameworks/desktop/protocols/drag_data_source.js +39 -0
- data/sproutcore/frameworks/desktop/protocols/drag_source.js +81 -0
- data/sproutcore/frameworks/desktop/protocols/drop_target.js +175 -0
- data/sproutcore/frameworks/desktop/protocols/responder.js +299 -0
- data/sproutcore/frameworks/desktop/render_delegates/button.js +105 -0
- data/sproutcore/frameworks/desktop/render_delegates/checkbox.js +100 -0
- data/sproutcore/frameworks/desktop/render_delegates/collection.js +24 -0
- data/sproutcore/frameworks/desktop/render_delegates/disclosure.js +69 -0
- data/sproutcore/frameworks/desktop/render_delegates/helpers/slicing.js +34 -0
- data/sproutcore/frameworks/desktop/render_delegates/image_button.js +30 -0
- data/sproutcore/frameworks/desktop/render_delegates/master_detail.js +28 -0
- data/sproutcore/frameworks/desktop/render_delegates/menu.js +47 -0
- data/sproutcore/frameworks/desktop/render_delegates/panel.js +28 -0
- data/sproutcore/frameworks/desktop/render_delegates/picker.js +43 -0
- data/sproutcore/frameworks/desktop/render_delegates/progress.js +187 -0
- data/sproutcore/frameworks/desktop/render_delegates/radio.js +95 -0
- data/sproutcore/frameworks/desktop/render_delegates/radio_group.js +109 -0
- data/sproutcore/frameworks/desktop/render_delegates/segment.js +55 -0
- data/sproutcore/frameworks/desktop/render_delegates/segmented.js +77 -0
- data/sproutcore/frameworks/desktop/render_delegates/slider.js +58 -0
- data/sproutcore/frameworks/desktop/render_delegates/source_list.js +8 -0
- data/sproutcore/frameworks/desktop/render_delegates/toolbar.js +18 -0
- data/sproutcore/frameworks/desktop/render_delegates/well.js +27 -0
- data/sproutcore/frameworks/desktop/render_delegates/workspace.js +18 -0
- data/sproutcore/frameworks/desktop/system/drag.js +974 -0
- data/sproutcore/frameworks/desktop/system/key_bindings.js +40 -0
- data/sproutcore/frameworks/desktop/system/undo_manager.js +187 -0
- data/sproutcore/frameworks/desktop/tests/integration/dialog.js +48 -0
- data/sproutcore/frameworks/desktop/tests/mixins/border.js +97 -0
- data/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +10 -0
- data/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +158 -0
- data/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +135 -0
- data/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +258 -0
- data/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +10 -0
- data/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +35 -0
- data/sproutcore/frameworks/desktop/tests/panes/pane_page.js +41 -0
- data/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +10 -0
- data/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +83 -0
- data/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +10 -0
- data/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +92 -0
- data/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +194 -0
- data/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +220 -0
- data/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +10 -0
- data/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +44 -0
- data/sproutcore/frameworks/desktop/tests/views/button/methods.js +166 -0
- data/sproutcore/frameworks/desktop/tests/views/button/ui.js +236 -0
- data/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +126 -0
- data/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +124 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/content.js +249 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +82 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +215 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js +31 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +300 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +65 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/length.js +88 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +240 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +121 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/reload.js +177 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/select.js +240 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +205 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +211 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/selection.js +141 -0
- data/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +188 -0
- data/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +76 -0
- data/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +456 -0
- data/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +10 -0
- data/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +104 -0
- data/sproutcore/frameworks/desktop/tests/views/grid/methods.js +10 -0
- data/sproutcore/frameworks/desktop/tests/views/grid/ui.js +10 -0
- data/sproutcore/frameworks/desktop/tests/views/image_button/ui.js +25 -0
- data/sproutcore/frameworks/desktop/tests/views/list/render.js +92 -0
- data/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +183 -0
- data/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +133 -0
- data/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +131 -0
- data/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +130 -0
- data/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +56 -0
- data/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +205 -0
- data/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +127 -0
- data/sproutcore/frameworks/desktop/tests/views/list_item.js +396 -0
- data/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +10 -0
- data/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +46 -0
- data/sproutcore/frameworks/desktop/tests/views/progress/methods.js +128 -0
- data/sproutcore/frameworks/desktop/tests/views/progress/ui.js +421 -0
- data/sproutcore/frameworks/desktop/tests/views/radio/methods.js +119 -0
- data/sproutcore/frameworks/desktop/tests/views/radio/ui.js +349 -0
- data/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +143 -0
- data/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +162 -0
- data/sproutcore/frameworks/desktop/tests/views/scroller.js +118 -0
- data/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +108 -0
- data/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +457 -0
- data/sproutcore/frameworks/desktop/tests/views/select/methods.js +144 -0
- data/sproutcore/frameworks/desktop/tests/views/select/ui.js +224 -0
- data/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +163 -0
- data/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +117 -0
- data/sproutcore/frameworks/desktop/tests/views/separator.js +44 -0
- data/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +10 -0
- data/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +10 -0
- data/sproutcore/frameworks/desktop/tests/views/split/methods.js +60 -0
- data/sproutcore/frameworks/desktop/tests/views/split/ui.js +59 -0
- data/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +238 -0
- data/sproutcore/frameworks/desktop/tests/views/static_content.js +46 -0
- data/sproutcore/frameworks/desktop/tests/views/tab/methods.js +54 -0
- data/sproutcore/frameworks/desktop/tests/views/tab/ui.js +92 -0
- data/sproutcore/frameworks/desktop/tests/views/toolbar/method.js +33 -0
- data/sproutcore/frameworks/desktop/tests/views/toolbar/ui.js +29 -0
- data/sproutcore/frameworks/desktop/tests/views/web/methods.js +10 -0
- data/sproutcore/frameworks/desktop/tests/views/web/ui.js +110 -0
- data/sproutcore/frameworks/desktop/tests/views/well/ui.js +54 -0
- data/sproutcore/frameworks/desktop/views/button.js +564 -0
- data/sproutcore/frameworks/desktop/views/checkbox.js +110 -0
- data/sproutcore/frameworks/desktop/views/collection.js +3090 -0
- data/sproutcore/frameworks/desktop/views/date_field.js +319 -0
- data/sproutcore/frameworks/desktop/views/disclosure.js +68 -0
- data/sproutcore/frameworks/desktop/views/file.js +112 -0
- data/sproutcore/frameworks/desktop/views/grid.js +207 -0
- data/sproutcore/frameworks/desktop/views/image_button.js +74 -0
- data/sproutcore/frameworks/desktop/views/list.js +637 -0
- data/sproutcore/frameworks/desktop/views/list_item.js +923 -0
- data/sproutcore/frameworks/desktop/views/master_detail.js +257 -0
- data/sproutcore/frameworks/desktop/views/menu_item.js +704 -0
- data/sproutcore/frameworks/desktop/views/menu_scroll.js +615 -0
- data/sproutcore/frameworks/desktop/views/navigation.js +237 -0
- data/sproutcore/frameworks/desktop/views/navigation_bar.js +181 -0
- data/sproutcore/frameworks/desktop/views/popup_button.js +299 -0
- data/sproutcore/frameworks/desktop/views/progress.js +197 -0
- data/sproutcore/frameworks/desktop/views/radio.js +347 -0
- data/sproutcore/frameworks/desktop/views/scene.js +204 -0
- data/sproutcore/frameworks/desktop/views/scroll.js +1824 -0
- data/sproutcore/frameworks/desktop/views/scroller.js +917 -0
- data/sproutcore/frameworks/desktop/views/segment.js +104 -0
- data/sproutcore/frameworks/desktop/views/segmented.js +1002 -0
- data/sproutcore/frameworks/desktop/views/select.js +809 -0
- data/sproutcore/frameworks/desktop/views/select_field.js +344 -0
- data/sproutcore/frameworks/desktop/views/separator.js +36 -0
- data/sproutcore/frameworks/desktop/views/slider.js +291 -0
- data/sproutcore/frameworks/desktop/views/source_list.js +49 -0
- data/sproutcore/frameworks/desktop/views/source_list_group.js +169 -0
- data/sproutcore/frameworks/desktop/views/split.js +891 -0
- data/sproutcore/frameworks/desktop/views/split_divider.js +52 -0
- data/sproutcore/frameworks/desktop/views/stacked.js +110 -0
- data/sproutcore/frameworks/desktop/views/static_content.js +134 -0
- data/sproutcore/frameworks/desktop/views/tab.js +186 -0
- data/sproutcore/frameworks/desktop/views/thumb.js +53 -0
- data/sproutcore/frameworks/desktop/views/toolbar.js +88 -0
- data/sproutcore/frameworks/desktop/views/web.js +87 -0
- data/sproutcore/frameworks/desktop/views/well.js +65 -0
- data/sproutcore/frameworks/desktop/views/workspace.js +251 -0
- data/sproutcore/frameworks/documentation/core.js +0 -0
- data/sproutcore/frameworks/experimental/README.md +23 -0
- data/sproutcore/frameworks/experimental/frameworks/device_motion/README.md +11 -0
- data/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +215 -0
- data/sproutcore/frameworks/experimental/frameworks/device_motion/platform.js +67 -0
- data/sproutcore/frameworks/experimental/frameworks/polymorphism/README.md +34 -0
- data/sproutcore/frameworks/experimental/frameworks/polymorphism/models/polymorphic_single_attribute.js +183 -0
- data/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +23 -0
- data/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphic/single.js +124 -0
- data/sproutcore/frameworks/forms/english.lproj/default_styles.css +5 -0
- data/sproutcore/frameworks/forms/english.lproj/strings.js +15 -0
- data/sproutcore/frameworks/forms/mixins/edit_mode.js +43 -0
- data/sproutcore/frameworks/forms/mixins/emptiness.js +95 -0
- data/sproutcore/frameworks/forms/renderer_delegates/form.js +22 -0
- data/sproutcore/frameworks/forms/renderer_delegates/form_row.js +21 -0
- data/sproutcore/frameworks/forms/tests/views/form.js +15 -0
- data/sproutcore/frameworks/forms/tests/views/form_checkbox_field.js +15 -0
- data/sproutcore/frameworks/forms/tests/views/form_field.js +15 -0
- data/sproutcore/frameworks/forms/tests/views/form_label.js +15 -0
- data/sproutcore/frameworks/forms/tests/views/form_radio_field.js +15 -0
- data/sproutcore/frameworks/forms/tests/views/form_row.js +15 -0
- data/sproutcore/frameworks/forms/tests/views/form_text_field.js +15 -0
- data/sproutcore/frameworks/forms/views/form.js +282 -0
- data/sproutcore/frameworks/forms/views/form_row.js +183 -0
- data/sproutcore/frameworks/foundation/.greenhouseconf +35 -0
- data/sproutcore/frameworks/foundation/TESTING +46 -0
- data/sproutcore/frameworks/foundation/controllers/tree.js +127 -0
- data/sproutcore/frameworks/foundation/core.js +0 -0
- data/sproutcore/frameworks/foundation/debug/control_test_pane.js +191 -0
- data/sproutcore/frameworks/foundation/english.lproj/benchmark.css +146 -0
- data/sproutcore/frameworks/foundation/english.lproj/blank.gif +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +67 -0
- data/sproutcore/frameworks/foundation/english.lproj/button_view.css +40 -0
- data/sproutcore/frameworks/foundation/english.lproj/debug/control-test-pane.css +9 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/favicon.ico +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-logo.png +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.jpg +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.png +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.jpg +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.png +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup.png +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/inline_editor.css +12 -0
- data/sproutcore/frameworks/foundation/english.lproj/label.css +47 -0
- data/sproutcore/frameworks/foundation/english.lproj/static_layout.css +5 -0
- data/sproutcore/frameworks/foundation/english.lproj/text_field.css +146 -0
- data/sproutcore/frameworks/foundation/fixtures/file_exists.json +1 -0
- data/sproutcore/frameworks/foundation/fixtures/malformed.json +11 -0
- data/sproutcore/frameworks/foundation/gestures/pinch.js +81 -0
- data/sproutcore/frameworks/foundation/gestures/swipe.js +144 -0
- data/sproutcore/frameworks/foundation/gestures/tap.js +113 -0
- data/sproutcore/frameworks/foundation/license.js +28 -0
- data/sproutcore/frameworks/foundation/mixins/auto_mixin.js +39 -0
- data/sproutcore/frameworks/foundation/mixins/auto_resize.js +233 -0
- data/sproutcore/frameworks/foundation/mixins/button.js +360 -0
- data/sproutcore/frameworks/foundation/mixins/collection_content.js +178 -0
- data/sproutcore/frameworks/foundation/mixins/content_display.js +114 -0
- data/sproutcore/frameworks/foundation/mixins/control.js +422 -0
- data/sproutcore/frameworks/foundation/mixins/editable.js +158 -0
- data/sproutcore/frameworks/foundation/mixins/flowed_layout.js +628 -0
- data/sproutcore/frameworks/foundation/mixins/gestureable.js +214 -0
- data/sproutcore/frameworks/foundation/mixins/inline_editable.js +89 -0
- data/sproutcore/frameworks/foundation/mixins/inline_editor_delegate.js +139 -0
- data/sproutcore/frameworks/foundation/mixins/inline_text_field.js +589 -0
- data/sproutcore/frameworks/foundation/mixins/inner_frame.js +184 -0
- data/sproutcore/frameworks/foundation/mixins/static_layout.js +77 -0
- data/sproutcore/frameworks/foundation/mixins/string.js +391 -0
- data/sproutcore/frameworks/foundation/mixins/tree_item_content.js +160 -0
- data/sproutcore/frameworks/foundation/mixins/validatable.js +189 -0
- data/sproutcore/frameworks/foundation/private/tree_item_observer.js +914 -0
- data/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +110 -0
- data/sproutcore/frameworks/foundation/render_delegates/container.js +18 -0
- data/sproutcore/frameworks/foundation/render_delegates/image.js +97 -0
- data/sproutcore/frameworks/foundation/render_delegates/label.js +139 -0
- data/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +17 -0
- data/sproutcore/frameworks/foundation/system/benchmark.js +718 -0
- data/sproutcore/frameworks/foundation/system/chance.js +64 -0
- data/sproutcore/frameworks/foundation/system/cookie.js +171 -0
- data/sproutcore/frameworks/foundation/system/core_query.js +56 -0
- data/sproutcore/frameworks/foundation/system/exception_handler.js +88 -0
- data/sproutcore/frameworks/foundation/system/gesture.js +363 -0
- data/sproutcore/frameworks/foundation/system/image_queue.js +433 -0
- data/sproutcore/frameworks/foundation/system/math.js +57 -0
- data/sproutcore/frameworks/foundation/system/module.js +583 -0
- data/sproutcore/frameworks/foundation/system/request.js +596 -0
- data/sproutcore/frameworks/foundation/system/response.js +550 -0
- data/sproutcore/frameworks/foundation/system/routes.js +519 -0
- data/sproutcore/frameworks/foundation/system/staticqueue.js +53 -0
- data/sproutcore/frameworks/foundation/system/task_queue.js +153 -0
- data/sproutcore/frameworks/foundation/system/text_selection.js +103 -0
- data/sproutcore/frameworks/foundation/system/time.js +473 -0
- data/sproutcore/frameworks/foundation/system/user_defaults.js +392 -0
- data/sproutcore/frameworks/foundation/system/utils/colors.js +80 -0
- data/sproutcore/frameworks/foundation/system/utils/misc.js +137 -0
- data/sproutcore/frameworks/foundation/system/utils/range.js +64 -0
- data/sproutcore/frameworks/foundation/system/utils/string_measurement.js +247 -0
- data/sproutcore/frameworks/foundation/tasks/preload_bundle.js +41 -0
- data/sproutcore/frameworks/foundation/tasks/task.js +17 -0
- data/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +108 -0
- data/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +340 -0
- data/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +10 -0
- data/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +113 -0
- data/sproutcore/frameworks/foundation/tests/integration/creating_views.js +118 -0
- data/sproutcore/frameworks/foundation/tests/mixins/button/content.js +195 -0
- data/sproutcore/frameworks/foundation/tests/mixins/button/displayProperties.js +89 -0
- data/sproutcore/frameworks/foundation/tests/mixins/button/keyEquivalents.js +57 -0
- data/sproutcore/frameworks/foundation/tests/mixins/button/ui.js +69 -0
- data/sproutcore/frameworks/foundation/tests/mixins/content_display.js +51 -0
- data/sproutcore/frameworks/foundation/tests/mixins/control/content.js +168 -0
- data/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +89 -0
- data/sproutcore/frameworks/foundation/tests/mixins/editable/ui.js +44 -0
- data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +52 -0
- data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +238 -0
- data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/ui.js +64 -0
- data/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +144 -0
- data/sproutcore/frameworks/foundation/tests/mixins/string.js +28 -0
- data/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +74 -0
- data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +325 -0
- data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +718 -0
- data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +484 -0
- data/sproutcore/frameworks/foundation/tests/system/cookie.js +179 -0
- data/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +59 -0
- data/sproutcore/frameworks/foundation/tests/system/math.js +39 -0
- data/sproutcore/frameworks/foundation/tests/system/request.js +273 -0
- data/sproutcore/frameworks/foundation/tests/system/routes.js +356 -0
- data/sproutcore/frameworks/foundation/tests/system/task_queue.js +43 -0
- data/sproutcore/frameworks/foundation/tests/system/user_defaults.js +24 -0
- data/sproutcore/frameworks/foundation/tests/system/utils/pointInElement.js +235 -0
- data/sproutcore/frameworks/foundation/tests/system/utils/range.js +62 -0
- data/sproutcore/frameworks/foundation/tests/validators/credit_card.js +35 -0
- data/sproutcore/frameworks/foundation/tests/validators/date.js +26 -0
- data/sproutcore/frameworks/foundation/tests/validators/not_empty.js +56 -0
- data/sproutcore/frameworks/foundation/tests/validators/number.js +47 -0
- data/sproutcore/frameworks/foundation/tests/validators/password.js +13 -0
- data/sproutcore/frameworks/foundation/tests/validators/validator.js +20 -0
- data/sproutcore/frameworks/foundation/tests/views/container/methods.js +18 -0
- data/sproutcore/frameworks/foundation/tests/views/container/ui.js +145 -0
- data/sproutcore/frameworks/foundation/tests/views/image/ui.js +492 -0
- data/sproutcore/frameworks/foundation/tests/views/label/ui.js +179 -0
- data/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +87 -0
- data/sproutcore/frameworks/foundation/tests/views/text_field/nextValidKeyView.js +110 -0
- data/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +577 -0
- data/sproutcore/frameworks/foundation/validators/credit_card.js +125 -0
- data/sproutcore/frameworks/foundation/validators/date.js +52 -0
- data/sproutcore/frameworks/foundation/validators/date_time.js +48 -0
- data/sproutcore/frameworks/foundation/validators/email.js +45 -0
- data/sproutcore/frameworks/foundation/validators/not_empty.js +37 -0
- data/sproutcore/frameworks/foundation/validators/number.js +99 -0
- data/sproutcore/frameworks/foundation/validators/password.js +86 -0
- data/sproutcore/frameworks/foundation/validators/positive_integer.js +84 -0
- data/sproutcore/frameworks/foundation/validators/validator.js +326 -0
- data/sproutcore/frameworks/foundation/views/container.js +140 -0
- data/sproutcore/frameworks/foundation/views/field.js +337 -0
- data/sproutcore/frameworks/foundation/views/image.js +381 -0
- data/sproutcore/frameworks/foundation/views/label.js +219 -0
- data/sproutcore/frameworks/foundation/views/text_field.js +1073 -0
- data/sproutcore/frameworks/handlebars/extensions.js +44 -0
- data/sproutcore/frameworks/handlebars/extensions/bind.js +156 -0
- data/sproutcore/frameworks/handlebars/extensions/collection.js +75 -0
- data/sproutcore/frameworks/handlebars/extensions/localization.js +5 -0
- data/sproutcore/frameworks/handlebars/extensions/view.js +115 -0
- data/sproutcore/frameworks/handlebars/handlebars.js +1401 -0
- data/sproutcore/frameworks/jquery/jquery-buffer.js +376 -0
- data/sproutcore/frameworks/jquery/jquery-buffered.js +205 -0
- data/sproutcore/frameworks/jquery/jquery-sc.js +7 -0
- data/sproutcore/frameworks/jquery/jquery.js +7179 -0
- data/sproutcore/frameworks/media/.greenhouseconf +29 -0
- data/sproutcore/frameworks/media/resources/controls.png +0 -0
- data/sproutcore/frameworks/media/resources/playeras3.fla +0 -0
- data/sproutcore/frameworks/media/resources/video.css +124 -0
- data/sproutcore/frameworks/media/resources/videoCanvas.swf +0 -0
- data/sproutcore/frameworks/media/views/audio.js +741 -0
- data/sproutcore/frameworks/media/views/controls.js +88 -0
- data/sproutcore/frameworks/media/views/media_slider.js +243 -0
- data/sproutcore/frameworks/media/views/mini_controls.js +63 -0
- data/sproutcore/frameworks/media/views/simple_controls.js +54 -0
- data/sproutcore/frameworks/media/views/video.js +832 -0
- data/sproutcore/frameworks/mini/license.js +29 -0
- data/sproutcore/frameworks/runtime/README +12 -0
- data/sproutcore/frameworks/runtime/core.js +1102 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array.js +14 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +397 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +33 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +121 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +34 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +50 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +46 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +371 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +100 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +49 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +94 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +50 -0
- data/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +47 -0
- data/sproutcore/frameworks/runtime/license.js +29 -0
- data/sproutcore/frameworks/runtime/mixins/array.js +658 -0
- data/sproutcore/frameworks/runtime/mixins/comparable.js +45 -0
- data/sproutcore/frameworks/runtime/mixins/copyable.js +72 -0
- data/sproutcore/frameworks/runtime/mixins/enumerable.js +1426 -0
- data/sproutcore/frameworks/runtime/mixins/freezable.js +110 -0
- data/sproutcore/frameworks/runtime/mixins/observable.js +1408 -0
- data/sproutcore/frameworks/runtime/private/chain_observer.js +178 -0
- data/sproutcore/frameworks/runtime/private/observer_queue.js +178 -0
- data/sproutcore/frameworks/runtime/private/observer_set.js +123 -0
- data/sproutcore/frameworks/runtime/system/binding.js +1000 -0
- data/sproutcore/frameworks/runtime/system/enumerator.js +107 -0
- data/sproutcore/frameworks/runtime/system/error.js +157 -0
- data/sproutcore/frameworks/runtime/system/index_set.js +1199 -0
- data/sproutcore/frameworks/runtime/system/logger.js +1582 -0
- data/sproutcore/frameworks/runtime/system/object.js +947 -0
- data/sproutcore/frameworks/runtime/system/range_observer.js +270 -0
- data/sproutcore/frameworks/runtime/system/run_loop.js +308 -0
- data/sproutcore/frameworks/runtime/system/set.js +536 -0
- data/sproutcore/frameworks/runtime/tests/core/IsEqual.js +30 -0
- data/sproutcore/frameworks/runtime/tests/core/beget.js +23 -0
- data/sproutcore/frameworks/runtime/tests/core/clone.js +108 -0
- data/sproutcore/frameworks/runtime/tests/core/compare.js +44 -0
- data/sproutcore/frameworks/runtime/tests/core/console.js +16 -0
- data/sproutcore/frameworks/runtime/tests/core/guidFor.js +109 -0
- data/sproutcore/frameworks/runtime/tests/core/inspect.js +27 -0
- data/sproutcore/frameworks/runtime/tests/core/itemType.js +71 -0
- data/sproutcore/frameworks/runtime/tests/core/keys.js +20 -0
- data/sproutcore/frameworks/runtime/tests/core/makeArray.js +44 -0
- data/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +19 -0
- data/sproutcore/frameworks/runtime/tests/core/tupleForPropertyPath.js +37 -0
- data/sproutcore/frameworks/runtime/tests/mixins/array.js +59 -0
- data/sproutcore/frameworks/runtime/tests/mixins/comparable.js +44 -0
- data/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +658 -0
- data/sproutcore/frameworks/runtime/tests/mixins/observable/chained.js +37 -0
- data/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +733 -0
- data/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +155 -0
- data/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +79 -0
- data/sproutcore/frameworks/runtime/tests/mixins/propertyChanges.js +81 -0
- data/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +55 -0
- data/sproutcore/frameworks/runtime/tests/system/binding.js +395 -0
- data/sproutcore/frameworks/runtime/tests/system/error.js +53 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/add.js +212 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/addEach.js +49 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/clone.js +43 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +74 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/create.js +42 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +38 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +38 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +74 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/max.js +40 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/min.js +50 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/rangeStartForIndex.js +36 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/remove.js +189 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/removeEach.js +49 -0
- data/sproutcore/frameworks/runtime/tests/system/index_set/without.js +89 -0
- data/sproutcore/frameworks/runtime/tests/system/logger.js +260 -0
- data/sproutcore/frameworks/runtime/tests/system/object/base.js +195 -0
- data/sproutcore/frameworks/runtime/tests/system/object/bindings.js +374 -0
- data/sproutcore/frameworks/runtime/tests/system/object/concatenated_properties.js +71 -0
- data/sproutcore/frameworks/runtime/tests/system/object/enhance.js +177 -0
- data/sproutcore/frameworks/runtime/tests/system/observer_set.js +50 -0
- data/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +59 -0
- data/sproutcore/frameworks/runtime/tests/system/range_observer/destroy.js +75 -0
- data/sproutcore/frameworks/runtime/tests/system/range_observer/objectPropertyDidChange.js +117 -0
- data/sproutcore/frameworks/runtime/tests/system/range_observer/rangeDidChange.js +110 -0
- data/sproutcore/frameworks/runtime/tests/system/range_observer/update.js +65 -0
- data/sproutcore/frameworks/runtime/tests/system/run_loop.js +120 -0
- data/sproutcore/frameworks/runtime/tests/system/set.js +318 -0
- data/sproutcore/frameworks/statechart/core.js +5 -0
- data/sproutcore/frameworks/statechart/debug/monitor.js +136 -0
- data/sproutcore/frameworks/statechart/system/state.js +713 -0
- data/sproutcore/frameworks/statechart/system/statechart.js +951 -0
- data/sproutcore/frameworks/statechart/tests/async.js +94 -0
- data/sproutcore/frameworks/statechart/tests/event_handling/advanced_event_handling.js +310 -0
- data/sproutcore/frameworks/statechart/tests/namespace/access_substates.js +252 -0
- data/sproutcore/frameworks/statechart/tests/state/is_current_state.js +64 -0
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_history_state.js +88 -0
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_advanced.js +234 -0
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_async.js +123 -0
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_basic.js +139 -0
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_intermediate.js +119 -0
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/send_event.js +183 -0
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/default_responder.js +90 -0
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_history_state.js +200 -0
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state.js +256 -0
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state_async.js +187 -0
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/send_event.js +122 -0
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/state_plugin.js +99 -0
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/transient.js +162 -0
- data/sproutcore/frameworks/table/mixins/table_delegate.js +41 -0
- data/sproutcore/frameworks/table/system/table_column.js +125 -0
- data/sproutcore/frameworks/table/views/table.js +440 -0
- data/sproutcore/frameworks/table/views/table_cell.js +63 -0
- data/sproutcore/frameworks/table/views/table_head.js +158 -0
- data/sproutcore/frameworks/table/views/table_header.js +214 -0
- data/sproutcore/frameworks/table/views/table_row.js +155 -0
- data/sproutcore/frameworks/testing/core.js +196 -0
- data/sproutcore/frameworks/testing/english.lproj/additions.css +8 -0
- data/sproutcore/frameworks/testing/english.lproj/runner.css +128 -0
- data/sproutcore/frameworks/testing/english.lproj/testsuite.css +136 -0
- data/sproutcore/frameworks/testing/extras.js +17 -0
- data/sproutcore/frameworks/testing/jquery.js +3559 -0
- data/sproutcore/frameworks/testing/qunit.js +827 -0
- data/sproutcore/frameworks/testing/system/dump.js +205 -0
- data/sproutcore/frameworks/testing/system/equiv.js +201 -0
- data/sproutcore/frameworks/testing/system/plan.js +703 -0
- data/sproutcore/frameworks/testing/system/runner.js +220 -0
- data/sproutcore/frameworks/testing/system/suite.js +228 -0
- data/sproutcore/frameworks/testing/utils.js +62 -0
- data/sproutcore/lib/index.rhtml +164 -0
- data/sproutcore/license.js +31 -0
- data/sproutcore/themes/ace/designs/dark.png +0 -0
- data/sproutcore/themes/ace/designs/dark.psd +0 -0
- data/sproutcore/themes/ace/designs/light.png +0 -0
- data/sproutcore/themes/ace/designs/light.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/18px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/18px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/44px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/44px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/popup/active_select.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/popup/normal_select.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/collection/source-list/selection.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/checkmark.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/checkmark_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/down.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/menu.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/menu_item.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/up.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/panel/panel.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/panel/pointers.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/picker/popover/popover.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/picker/popover/popover_empty.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/picker/popover/popover_notoolbar.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers_notoolbar.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_content.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_indeterminate_content.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_track.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_mixed.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_mixed_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_selected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_selected_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_unselected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/horizontal/thumb.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/vertical/thumb.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_normal.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_normal.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_normal.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_normal.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/22px/track.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/track.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/toolbar/toolbar.psd +0 -0
- data/sproutcore/themes/ace/designs/switch/switch.psd +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_handle.png +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_handle.psd +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_off.png +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_off.psd +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_on.png +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_on.psd +0 -0
- data/sproutcore/themes/ace/resources/body.css +13 -0
- data/sproutcore/themes/ace/resources/button/ace/18px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/18px/button.css +33 -0
- data/sproutcore/themes/ace/resources/button/ace/18px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/18px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/18px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/active_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/button.css +98 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/normal_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/normal_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/button.css +78 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/normal_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/selected_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/44px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/44px/button.css +39 -0
- data/sproutcore/themes/ace/resources/button/ace/44px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/44px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/44px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/button.css +36 -0
- data/sproutcore/themes/ace/resources/button/button.js +75 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/active_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/button.css +93 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/normal_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/normal_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/button.css +72 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/normal_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/selected_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/button.css +17 -0
- data/sproutcore/themes/ace/resources/button/dark/button.js +3 -0
- data/sproutcore/themes/ace/resources/button/popup/active_select.png +0 -0
- data/sproutcore/themes/ace/resources/button/popup/normal_select.png +0 -0
- data/sproutcore/themes/ace/resources/button/popup/select.css +20 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox.css +40 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox.css +40 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/checkbox.css +7 -0
- data/sproutcore/themes/ace/resources/collection/normal/list.css +4 -0
- data/sproutcore/themes/ace/resources/collection/normal/list_item.css +17 -0
- data/sproutcore/themes/ace/resources/collection/source-list/selection.png +0 -0
- data/sproutcore/themes/ace/resources/collection/source-list/source-list.js +3 -0
- data/sproutcore/themes/ace/resources/collection/source-list/source_list_view.css +36 -0
- data/sproutcore/themes/ace/resources/disclosure/ace/disclosure.css +24 -0
- data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed.png +0 -0
- data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed_active.png +0 -0
- data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open.png +0 -0
- data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open_active.png +0 -0
- data/sproutcore/themes/ace/resources/imagebutton/ace/imagebutton.css +11 -0
- data/sproutcore/themes/ace/resources/loading.css +50 -0
- data/sproutcore/themes/ace/resources/master-detail/master-detail.css +27 -0
- data/sproutcore/themes/ace/resources/menu/checkmark.png +0 -0
- data/sproutcore/themes/ace/resources/menu/checkmark_active.png +0 -0
- data/sproutcore/themes/ace/resources/menu/down.png +0 -0
- data/sproutcore/themes/ace/resources/menu/menu.css +75 -0
- data/sproutcore/themes/ace/resources/menu/menu.png +0 -0
- data/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
- data/sproutcore/themes/ace/resources/menu/up.png +0 -0
- data/sproutcore/themes/ace/resources/pane/pane.css +3 -0
- data/sproutcore/themes/ace/resources/panel/panel.css +13 -0
- data/sproutcore/themes/ace/resources/panel/panel.js +20 -0
- data/sproutcore/themes/ace/resources/panel/panel.png +0 -0
- data/sproutcore/themes/ace/resources/picker/ace/panel.png +0 -0
- data/sproutcore/themes/ace/resources/picker/ace/picker.css +41 -0
- data/sproutcore/themes/ace/resources/picker/ace/picker.js +0 -0
- data/sproutcore/themes/ace/resources/picker/ace/pointers.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/picker.js +32 -0
- data/sproutcore/themes/ace/resources/picker/popover/popover.css +111 -0
- data/sproutcore/themes/ace/resources/picker/popover/popover.js +12 -0
- data/sproutcore/themes/ace/resources/picker/popover/popover.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/popover_empty.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/popover_notoolbar.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/popover_pointers.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/popover_pointers_notoolbar.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/workspace.js +28 -0
- data/sproutcore/themes/ace/resources/progress/ace/progress.css +27 -0
- data/sproutcore/themes/ace/resources/progress/ace/progress_view_content.png +0 -0
- data/sproutcore/themes/ace/resources/progress/ace/progress_view_track.png +0 -0
- data/sproutcore/themes/ace/resources/progress/progress.js +78 -0
- data/sproutcore/themes/ace/resources/radio/radio.css +63 -0
- data/sproutcore/themes/ace/resources/radio/radio_active.png +0 -0
- data/sproutcore/themes/ace/resources/radio/radio_mixed.png +0 -0
- data/sproutcore/themes/ace/resources/radio/radio_mixed_active.png +0 -0
- data/sproutcore/themes/ace/resources/radio/radio_selected.png +0 -0
- data/sproutcore/themes/ace/resources/radio/radio_selected_active.png +0 -0
- data/sproutcore/themes/ace/resources/radio/radio_unselected.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/horizontal/horizontal.css +78 -0
- data/sproutcore/themes/ace/resources/scroller/horizontal/horizontal_touch.css +91 -0
- data/sproutcore/themes/ace/resources/scroller/horizontal/thumb.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows_active.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/vertical/thumb.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows_active.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/vertical/vertical.css +80 -0
- data/sproutcore/themes/ace/resources/scroller/vertical/vertical_touch.css +92 -0
- data/sproutcore/themes/ace/resources/segmented/18px/segmented.css +91 -0
- data/sproutcore/themes/ace/resources/segmented/18px/segmented_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/18px/segmented_normal.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/18px/segmented_selected.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/18px/segmented_selected_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/24px/segmented.css +91 -0
- data/sproutcore/themes/ace/resources/segmented/24px/segmented_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/24px/segmented_normal.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/24px/segmented_selected.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/24px/segmented_selected_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/30px/segmented.css +91 -0
- data/sproutcore/themes/ace/resources/segmented/30px/segmented_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/30px/segmented_normal.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/30px/segmented_selected.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/30px/segmented_selected_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/44px/segmented.css +95 -0
- data/sproutcore/themes/ace/resources/segmented/44px/segmented_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/44px/segmented_normal.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/44px/segmented_selected.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/44px/segmented_selected_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/segmented.css +83 -0
- data/sproutcore/themes/ace/resources/slider/ace/14px/knob.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/14px/knob_active.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/14px/slider.css +27 -0
- data/sproutcore/themes/ace/resources/slider/ace/16px/knob.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/16px/knob_active.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/16px/slider.css +27 -0
- data/sproutcore/themes/ace/resources/slider/ace/22px/knob.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/22px/knob_active.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/22px/slider.css +27 -0
- data/sproutcore/themes/ace/resources/slider/ace/22px/track.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/slider.css +7 -0
- data/sproutcore/themes/ace/resources/slider/ace/slider.js +56 -0
- data/sproutcore/themes/ace/resources/slider/ace/track.png +0 -0
- data/sproutcore/themes/ace/resources/split/split.css +5 -0
- data/sproutcore/themes/ace/resources/tab/tab.css +3 -0
- data/sproutcore/themes/ace/resources/toolbar/toolbar.css +8 -0
- data/sproutcore/themes/ace/resources/toolbar/toolbar.png +0 -0
- data/sproutcore/themes/ace/resources/well/well.css +7 -0
- data/sproutcore/themes/ace/resources/well/well.js +17 -0
- data/sproutcore/themes/ace/theme.js +14 -0
- data/sproutcore/themes/empty_theme/tests/mini_icons.rhtml +69 -0
- data/sproutcore/themes/empty_theme/theme.js +16 -0
- data/sproutcore/themes/iphone_theme/english.lproj/button.css +41 -0
- data/sproutcore/themes/iphone_theme/english.lproj/core.css +8 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/backButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/blueButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/cancel.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/grayButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/leftButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/listArrow.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/listArrowSel.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/listGroup.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/loading.gif +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/pinstripes.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/rightButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/selection.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/thumb.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/toggle.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/toggleOn.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/toolButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/toolbar.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/whiteButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/strings.js +15 -0
- data/sproutcore/themes/standard_theme/Source/Panel.drawit/Data +0 -0
- data/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Preview.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/SproutCore Theme Buttons.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/Data +0 -0
- data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Preview.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/10.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/100.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/102.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/110.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/120.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/127.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/18.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/19.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/2.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/24.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/26.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/27.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/28.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/29.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/30.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/31.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/33.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/37.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/41.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/99.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/10.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/100.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/102.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/110.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/120.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/127.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/18.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/19.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/2.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/24.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/26.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/27.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/28.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/29.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/30.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/31.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/33.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/37.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/41.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/99.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/10.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/100.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/102.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/110.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/120.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/127.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/18.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/19.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/2.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/24.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/26.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/27.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/28.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/29.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/30.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/31.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/33.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/37.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/41.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/99.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/48/10.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/48/18.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/48/19.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/48/2.png +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/Data +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Preview.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/Data +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Preview.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x-2.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/sc-theme-sprite.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/sc-theme-ysprite.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/shared-icons.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/sproutcore-logo.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/sticky-note.psd +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/button.css +399 -0
- data/sproutcore/themes/standard_theme/english.lproj/checkbox.css +78 -0
- data/sproutcore/themes/standard_theme/english.lproj/collection.css +135 -0
- data/sproutcore/themes/standard_theme/english.lproj/core.css +76 -0
- data/sproutcore/themes/standard_theme/english.lproj/disclosure.css +57 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_222222.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_454545.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_888888.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_ffffff.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-x.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-y.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-x.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-y.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-sprite.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-repeat-x.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-ysprite.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-toolbar-view.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/label.css +11 -0
- data/sproutcore/themes/standard_theme/english.lproj/list_item.css +82 -0
- data/sproutcore/themes/standard_theme/english.lproj/menu.css +20 -0
- data/sproutcore/themes/standard_theme/english.lproj/menu_item_view.css +36 -0
- data/sproutcore/themes/standard_theme/english.lproj/pane.css +18 -0
- data/sproutcore/themes/standard_theme/english.lproj/panel.css +33 -0
- data/sproutcore/themes/standard_theme/english.lproj/picker.css +17 -0
- data/sproutcore/themes/standard_theme/english.lproj/progress.css +27 -0
- data/sproutcore/themes/standard_theme/english.lproj/radio.css +125 -0
- data/sproutcore/themes/standard_theme/english.lproj/scroller.css +159 -0
- data/sproutcore/themes/standard_theme/english.lproj/segmented.css +270 -0
- data/sproutcore/themes/standard_theme/english.lproj/slider.css +94 -0
- data/sproutcore/themes/standard_theme/english.lproj/split_view.css +11 -0
- data/sproutcore/themes/standard_theme/english.lproj/tab.css +14 -0
- data/sproutcore/themes/standard_theme/english.lproj/table.css +14 -0
- data/sproutcore/themes/standard_theme/english.lproj/text_field.css +5 -0
- data/sproutcore/themes/standard_theme/english.lproj/toolbar.css +7 -0
- data/sproutcore/themes/standard_theme/english.lproj/well.css +36 -0
- data/test-spade.html +8 -0
- metadata +2111 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html> <html> <head> <title>browser.coffee</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To … <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="browser.html"> browser.coffee </a> <a class="source" href="cake.html"> cake.coffee </a> <a class="source" href="coffee-script.html"> coffee-script.coffee </a> <a class="source" href="command.html"> command.coffee </a> <a class="source" href="grammar.html"> grammar.coffee </a> <a class="source" href="helpers.html"> helpers.coffee </a> <a class="source" href="index.html"> index.coffee </a> <a class="source" href="lexer.html"> lexer.coffee </a> <a class="source" href="nodes.html"> nodes.coffee </a> <a class="source" href="optparse.html"> optparse.coffee </a> <a class="source" href="repl.html"> repl.coffee </a> <a class="source" href="rewriter.html"> rewriter.coffee </a> <a class="source" href="scope.html"> scope.coffee </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> browser.coffee </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">¶</a> </div> <p>Override exported methods for non-Node.js engines.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">CoffeeScript = </span><span class="nx">require</span> <span class="s1">'./coffee-script'</span>
|
2
|
+
<span class="nv">CoffeeScript.require = </span><span class="nx">require</span></pre></div> </td> </tr> <tr id="section-2"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-2">¶</a> </div> <p>Use standard JavaScript <code>eval</code> to eval code.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">CoffeeScript.eval = </span><span class="p">(</span><span class="nx">code</span><span class="p">,</span> <span class="nx">options</span><span class="p">)</span> <span class="o">-></span>
|
3
|
+
<span class="nb">eval</span> <span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">compile</span> <span class="nx">code</span><span class="p">,</span> <span class="nx">options</span></pre></div> </td> </tr> <tr id="section-3"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-3">¶</a> </div> <p>Running code does not provide access to this scope.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">CoffeeScript.run = </span><span class="p">(</span><span class="nx">code</span><span class="p">,</span> <span class="nv">options = </span><span class="p">{})</span> <span class="o">-></span>
|
4
|
+
<span class="nv">options.bare = </span><span class="kc">on</span>
|
5
|
+
<span class="nb">Function</span><span class="p">(</span><span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">compile</span> <span class="nx">code</span><span class="p">,</span> <span class="nx">options</span><span class="p">)()</span></pre></div> </td> </tr> <tr id="section-4"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-4">¶</a> </div> <p>If we're not in a browser environment, we're finished with the public API.</p> </td> <td class="code"> <div class="highlight"><pre><span class="k">return</span> <span class="nx">unless</span> <span class="nb">window</span><span class="o">?</span></pre></div> </td> </tr> <tr id="section-5"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-5">¶</a> </div> <p>Load a remote script from the current domain via XHR.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">CoffeeScript.load = </span><span class="p">(</span><span class="nx">url</span><span class="p">,</span> <span class="nx">options</span><span class="p">)</span> <span class="o">-></span>
|
6
|
+
<span class="nv">xhr = </span><span class="k">new</span> <span class="p">(</span><span class="nb">window</span><span class="p">.</span><span class="nx">ActiveXObject</span> <span class="o">or</span> <span class="nx">XMLHttpRequest</span><span class="p">)(</span><span class="s1">'Microsoft.XMLHTTP'</span><span class="p">)</span>
|
7
|
+
<span class="nx">xhr</span><span class="p">.</span><span class="nx">open</span> <span class="s1">'GET'</span><span class="p">,</span> <span class="nx">url</span><span class="p">,</span> <span class="kc">true</span>
|
8
|
+
<span class="nx">xhr</span><span class="p">.</span><span class="nx">overrideMimeType</span> <span class="s1">'text/plain'</span> <span class="k">if</span> <span class="s1">'overrideMimeType'</span> <span class="k">of</span> <span class="nx">xhr</span>
|
9
|
+
<span class="nv">xhr.onreadystatechange = </span><span class="o">-></span>
|
10
|
+
<span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">run</span> <span class="nx">xhr</span><span class="p">.</span><span class="nx">responseText</span><span class="p">,</span> <span class="nx">options</span> <span class="k">if</span> <span class="nx">xhr</span><span class="p">.</span><span class="nx">readyState</span> <span class="o">is</span> <span class="mi">4</span>
|
11
|
+
<span class="nx">xhr</span><span class="p">.</span><span class="nx">send</span> <span class="kc">null</span></pre></div> </td> </tr> <tr id="section-6"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-6">¶</a> </div> <p>Activate CoffeeScript in the browser by having it compile and evaluate
|
12
|
+
all script tags with a content-type of <code>text/coffeescript</code>.
|
13
|
+
This happens on page load.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">runScripts = </span><span class="o">-></span>
|
14
|
+
<span class="k">for</span> <span class="nx">script</span> <span class="k">in</span> <span class="nb">document</span><span class="p">.</span><span class="nx">getElementsByTagName</span> <span class="s1">'script'</span>
|
15
|
+
<span class="k">if</span> <span class="nx">script</span><span class="p">.</span><span class="nx">type</span> <span class="o">is</span> <span class="s1">'text/coffeescript'</span>
|
16
|
+
<span class="k">if</span> <span class="nx">script</span><span class="p">.</span><span class="nx">src</span>
|
17
|
+
<span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">load</span> <span class="nx">script</span><span class="p">.</span><span class="nx">src</span>
|
18
|
+
<span class="k">else</span>
|
19
|
+
<span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">run</span> <span class="nx">script</span><span class="p">.</span><span class="nx">innerHTML</span>
|
20
|
+
<span class="kc">null</span></pre></div> </td> </tr> <tr id="section-7"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-7">¶</a> </div> <p>Listen for window load, both in browsers and in IE.</p> </td> <td class="code"> <div class="highlight"><pre><span class="k">if</span> <span class="nb">window</span><span class="p">.</span><span class="nx">addEventListener</span>
|
21
|
+
<span class="nx">addEventListener</span> <span class="s1">'DOMContentLoaded'</span><span class="p">,</span> <span class="nx">runScripts</span><span class="p">,</span> <span class="kc">no</span>
|
22
|
+
<span class="k">else</span>
|
23
|
+
<span class="nx">attachEvent</span> <span class="s1">'onload'</span><span class="p">,</span> <span class="nx">runScripts</span>
|
24
|
+
|
25
|
+
</pre></div> </td> </tr> </tbody> </table> </div> </body> </html>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<!DOCTYPE html> <html> <head> <title>cake.coffee</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To … <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="browser.html"> browser.coffee </a> <a class="source" href="cake.html"> cake.coffee </a> <a class="source" href="coffee-script.html"> coffee-script.coffee </a> <a class="source" href="command.html"> command.coffee </a> <a class="source" href="grammar.html"> grammar.coffee </a> <a class="source" href="helpers.html"> helpers.coffee </a> <a class="source" href="index.html"> index.coffee </a> <a class="source" href="lexer.html"> lexer.coffee </a> <a class="source" href="nodes.html"> nodes.coffee </a> <a class="source" href="optparse.html"> optparse.coffee </a> <a class="source" href="repl.html"> repl.coffee </a> <a class="source" href="rewriter.html"> rewriter.coffee </a> <a class="source" href="scope.html"> scope.coffee </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> cake.coffee </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">¶</a> </div> <p><code>cake</code> is a simplified version of <a href="http://www.gnu.org/software/make/">Make</a>
|
2
|
+
(<a href="http://rake.rubyforge.org/">Rake</a>, <a href="http://github.com/280north/jake">Jake</a>)
|
3
|
+
for CoffeeScript. You define tasks with names and descriptions in a Cakefile,
|
4
|
+
and can call them from the command line, or invoke them from other tasks.</p>
|
5
|
+
|
6
|
+
<p>Running <code>cake</code> with no arguments will print out a list of all the tasks in the
|
7
|
+
current directory's Cakefile.</p> </td> <td class="code"> <div class="highlight"><pre></pre></div> </td> </tr> <tr id="section-2"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-2">¶</a> </div> <p>External dependencies.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">fs = </span><span class="nx">require</span> <span class="s1">'fs'</span>
|
8
|
+
<span class="nv">path = </span><span class="nx">require</span> <span class="s1">'path'</span>
|
9
|
+
<span class="nv">helpers = </span><span class="nx">require</span> <span class="s1">'./helpers'</span>
|
10
|
+
<span class="nv">optparse = </span><span class="nx">require</span> <span class="s1">'./optparse'</span>
|
11
|
+
<span class="nv">CoffeeScript = </span><span class="nx">require</span> <span class="s1">'./coffee-script'</span></pre></div> </td> </tr> <tr id="section-3"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-3">¶</a> </div> <p>Keep track of the list of defined tasks, the accepted options, and so on.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">tasks = </span><span class="p">{}</span>
|
12
|
+
<span class="nv">options = </span><span class="p">{}</span>
|
13
|
+
<span class="nv">switches = </span><span class="p">[]</span>
|
14
|
+
<span class="nv">oparse = </span><span class="kc">null</span></pre></div> </td> </tr> <tr id="section-4"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-4">¶</a> </div> <p>Mixin the top-level Cake functions for Cakefiles to use directly.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">helpers</span><span class="p">.</span><span class="nx">extend</span> <span class="nx">global</span><span class="p">,</span></pre></div> </td> </tr> <tr id="section-5"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-5">¶</a> </div> <p>Define a Cake task with a short name, an optional sentence description,
|
15
|
+
and the function to run as the action itself.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nx">task</span><span class="o">:</span> <span class="p">(</span><span class="nx">name</span><span class="p">,</span> <span class="nx">description</span><span class="p">,</span> <span class="nx">action</span><span class="p">)</span> <span class="o">-></span>
|
16
|
+
<span class="p">[</span><span class="nx">action</span><span class="p">,</span> <span class="nx">description</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="nx">description</span><span class="p">,</span> <span class="nx">action</span><span class="p">]</span> <span class="nx">unless</span> <span class="nx">action</span>
|
17
|
+
<span class="nx">tasks</span><span class="p">[</span><span class="nx">name</span><span class="p">]</span> <span class="o">=</span> <span class="p">{</span><span class="nx">name</span><span class="p">,</span> <span class="nx">description</span><span class="p">,</span> <span class="nx">action</span><span class="p">}</span></pre></div> </td> </tr> <tr id="section-6"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-6">¶</a> </div> <p>Define an option that the Cakefile accepts. The parsed options hash,
|
18
|
+
containing all of the command-line options passed, will be made available
|
19
|
+
as the first argument to the action.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nx">option</span><span class="o">:</span> <span class="p">(</span><span class="nx">letter</span><span class="p">,</span> <span class="nx">flag</span><span class="p">,</span> <span class="nx">description</span><span class="p">)</span> <span class="o">-></span>
|
20
|
+
<span class="nx">switches</span><span class="p">.</span><span class="nx">push</span> <span class="p">[</span><span class="nx">letter</span><span class="p">,</span> <span class="nx">flag</span><span class="p">,</span> <span class="nx">description</span><span class="p">]</span></pre></div> </td> </tr> <tr id="section-7"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-7">¶</a> </div> <p>Invoke another task in the current Cakefile.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nx">invoke</span><span class="o">:</span> <span class="p">(</span><span class="nx">name</span><span class="p">)</span> <span class="o">-></span>
|
21
|
+
<span class="nx">missingTask</span> <span class="nx">name</span> <span class="nx">unless</span> <span class="nx">tasks</span><span class="p">[</span><span class="nx">name</span><span class="p">]</span>
|
22
|
+
<span class="nx">tasks</span><span class="p">[</span><span class="nx">name</span><span class="p">].</span><span class="nx">action</span> <span class="nx">options</span></pre></div> </td> </tr> <tr id="section-8"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-8">¶</a> </div> <p>Run <code>cake</code>. Executes all of the tasks you pass, in order. Note that Node's
|
23
|
+
asynchrony may cause tasks to execute in a different order than you'd expect.
|
24
|
+
If no tasks are passed, print the help screen.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.run = </span><span class="o">-></span>
|
25
|
+
<span class="nx">path</span><span class="p">.</span><span class="nx">exists</span> <span class="s1">'Cakefile'</span><span class="p">,</span> <span class="p">(</span><span class="nx">exists</span><span class="p">)</span> <span class="o">-></span>
|
26
|
+
<span class="k">throw</span> <span class="k">new</span> <span class="nb">Error</span><span class="p">(</span><span class="s2">"Cakefile not found in #{process.cwd()}"</span><span class="p">)</span> <span class="nx">unless</span> <span class="nx">exists</span>
|
27
|
+
<span class="nv">args = </span><span class="nx">process</span><span class="p">.</span><span class="nx">argv</span><span class="p">.</span><span class="nx">slice</span> <span class="mi">2</span>
|
28
|
+
<span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">run</span> <span class="nx">fs</span><span class="p">.</span><span class="nx">readFileSync</span><span class="p">(</span><span class="s1">'Cakefile'</span><span class="p">).</span><span class="nx">toString</span><span class="p">(),</span> <span class="nx">fileName</span><span class="o">:</span> <span class="s1">'Cakefile'</span>
|
29
|
+
<span class="nv">oparse = </span><span class="k">new</span> <span class="nx">optparse</span><span class="p">.</span><span class="nx">OptionParser</span> <span class="nx">switches</span>
|
30
|
+
<span class="k">return</span> <span class="nx">printTasks</span><span class="p">()</span> <span class="nx">unless</span> <span class="nx">args</span><span class="p">.</span><span class="nx">length</span>
|
31
|
+
<span class="nv">options = </span><span class="nx">oparse</span><span class="p">.</span><span class="nx">parse</span><span class="p">(</span><span class="nx">args</span><span class="p">)</span>
|
32
|
+
<span class="nx">invoke</span> <span class="nx">arg</span> <span class="k">for</span> <span class="nx">arg</span> <span class="k">in</span> <span class="nx">options</span><span class="p">.</span><span class="nx">arguments</span></pre></div> </td> </tr> <tr id="section-9"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-9">¶</a> </div> <p>Display the list of Cake tasks in a format similar to <code>rake -T</code></p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">printTasks = </span><span class="o">-></span>
|
33
|
+
<span class="nx">console</span><span class="p">.</span><span class="nx">log</span> <span class="s1">''</span>
|
34
|
+
<span class="k">for</span> <span class="nx">name</span><span class="p">,</span> <span class="nx">task</span> <span class="k">of</span> <span class="nx">tasks</span>
|
35
|
+
<span class="nv">spaces = </span><span class="mi">20</span> <span class="o">-</span> <span class="nx">name</span><span class="p">.</span><span class="nx">length</span>
|
36
|
+
<span class="nv">spaces = </span><span class="k">if</span> <span class="nx">spaces</span> <span class="o">></span> <span class="mi">0</span> <span class="k">then</span> <span class="nb">Array</span><span class="p">(</span><span class="nx">spaces</span> <span class="o">+</span> <span class="mi">1</span><span class="p">).</span><span class="nx">join</span><span class="p">(</span><span class="s1">' '</span><span class="p">)</span> <span class="k">else</span> <span class="s1">''</span>
|
37
|
+
<span class="nv">desc = </span><span class="k">if</span> <span class="nx">task</span><span class="p">.</span><span class="nx">description</span> <span class="k">then</span> <span class="s2">"# #{task.description}"</span> <span class="k">else</span> <span class="s1">''</span>
|
38
|
+
<span class="nx">console</span><span class="p">.</span><span class="nx">log</span> <span class="s2">"cake #{name}#{spaces} #{desc}"</span>
|
39
|
+
<span class="nx">console</span><span class="p">.</span><span class="nx">log</span> <span class="nx">oparse</span><span class="p">.</span><span class="nx">help</span><span class="p">()</span> <span class="k">if</span> <span class="nx">switches</span><span class="p">.</span><span class="nx">length</span></pre></div> </td> </tr> <tr id="section-10"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-10">¶</a> </div> <p>Print an error and exit when attempting to all an undefined task.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">missingTask = </span><span class="p">(</span><span class="nx">task</span><span class="p">)</span> <span class="o">-></span>
|
40
|
+
<span class="nx">console</span><span class="p">.</span><span class="nx">log</span> <span class="s2">"No such task: \"#{task}\""</span>
|
41
|
+
<span class="nx">process</span><span class="p">.</span><span class="nx">exit</span> <span class="mi">1</span>
|
42
|
+
|
43
|
+
</pre></div> </td> </tr> </tbody> </table> </div> </body> </html>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<!DOCTYPE html> <html> <head> <title>coffee-script.coffee</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To … <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="browser.html"> browser.coffee </a> <a class="source" href="cake.html"> cake.coffee </a> <a class="source" href="coffee-script.html"> coffee-script.coffee </a> <a class="source" href="command.html"> command.coffee </a> <a class="source" href="grammar.html"> grammar.coffee </a> <a class="source" href="helpers.html"> helpers.coffee </a> <a class="source" href="index.html"> index.coffee </a> <a class="source" href="lexer.html"> lexer.coffee </a> <a class="source" href="nodes.html"> nodes.coffee </a> <a class="source" href="optparse.html"> optparse.coffee </a> <a class="source" href="repl.html"> repl.coffee </a> <a class="source" href="rewriter.html"> rewriter.coffee </a> <a class="source" href="scope.html"> scope.coffee </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> coffee-script.coffee </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">¶</a> </div> <p>CoffeeScript can be used both on the server, as a command-line compiler based
|
2
|
+
on Node.js/V8, or to run CoffeeScripts directly in the browser. This module
|
3
|
+
contains the main entry functions for tokenizing, parsing, and compiling
|
4
|
+
source CoffeeScript into JavaScript.</p>
|
5
|
+
|
6
|
+
<p>If included on a webpage, it will automatically sniff out, compile, and
|
7
|
+
execute all scripts present in <code>text/coffeescript</code> tags.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">fs = </span><span class="nx">require</span> <span class="s1">'fs'</span>
|
8
|
+
<span class="nv">path = </span><span class="nx">require</span> <span class="s1">'path'</span>
|
9
|
+
<span class="p">{</span><span class="nx">Lexer</span><span class="p">,</span><span class="nx">RESERVED</span><span class="p">}</span> <span class="o">=</span> <span class="nx">require</span> <span class="s1">'./lexer'</span>
|
10
|
+
<span class="p">{</span><span class="nx">parser</span><span class="p">}</span> <span class="o">=</span> <span class="nx">require</span> <span class="s1">'./parser'</span></pre></div> </td> </tr> <tr id="section-2"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-2">¶</a> </div> <p>TODO: Remove registerExtension when fully deprecated.</p> </td> <td class="code"> <div class="highlight"><pre><span class="k">if</span> <span class="nx">require</span><span class="p">.</span><span class="nx">extensions</span>
|
11
|
+
<span class="nx">require</span><span class="p">.</span><span class="nx">extensions</span><span class="p">[</span><span class="s1">'.coffee'</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="nx">module</span><span class="p">,</span> <span class="nx">filename</span><span class="p">)</span> <span class="o">-></span>
|
12
|
+
<span class="nv">content = </span><span class="nx">compile</span> <span class="nx">fs</span><span class="p">.</span><span class="nx">readFileSync</span> <span class="nx">filename</span><span class="p">,</span> <span class="s1">'utf8'</span>
|
13
|
+
<span class="nx">module</span><span class="p">.</span><span class="nx">_compile</span> <span class="nx">content</span><span class="p">,</span> <span class="nx">filename</span>
|
14
|
+
<span class="k">else</span> <span class="k">if</span> <span class="nx">require</span><span class="p">.</span><span class="nx">registerExtension</span>
|
15
|
+
<span class="nx">require</span><span class="p">.</span><span class="nx">registerExtension</span> <span class="s1">'.coffee'</span><span class="p">,</span> <span class="p">(</span><span class="nx">content</span><span class="p">)</span> <span class="o">-></span> <span class="nx">compile</span> <span class="nx">content</span></pre></div> </td> </tr> <tr id="section-3"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-3">¶</a> </div> <p>The current CoffeeScript version number.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.VERSION = </span><span class="s1">'1.0.0'</span></pre></div> </td> </tr> <tr id="section-4"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-4">¶</a> </div> <p>Words that cannot be used as identifiers in CoffeeScript code</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.RESERVED = </span><span class="nx">RESERVED</span></pre></div> </td> </tr> <tr id="section-5"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-5">¶</a> </div> <p>Expose helpers for testing.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.helpers = </span><span class="nx">require</span> <span class="s1">'./helpers'</span></pre></div> </td> </tr> <tr id="section-6"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-6">¶</a> </div> <p>Compile a string of CoffeeScript code to JavaScript, using the Coffee/Jison
|
16
|
+
compiler.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.compile = compile = </span><span class="p">(</span><span class="nx">code</span><span class="p">,</span> <span class="nv">options = </span><span class="p">{})</span> <span class="o">-></span>
|
17
|
+
<span class="k">try</span>
|
18
|
+
<span class="p">(</span><span class="nx">parser</span><span class="p">.</span><span class="nx">parse</span> <span class="nx">lexer</span><span class="p">.</span><span class="nx">tokenize</span> <span class="nx">code</span><span class="p">).</span><span class="nx">compile</span> <span class="nx">options</span>
|
19
|
+
<span class="k">catch</span> <span class="nx">err</span>
|
20
|
+
<span class="nv">err.message = </span><span class="s2">"In #{options.fileName}, #{err.message}"</span> <span class="k">if</span> <span class="nx">options</span><span class="p">.</span><span class="nx">fileName</span>
|
21
|
+
<span class="k">throw</span> <span class="nx">err</span></pre></div> </td> </tr> <tr id="section-7"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-7">¶</a> </div> <p>Tokenize a string of CoffeeScript code, and return the array of tokens.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.tokens = </span><span class="p">(</span><span class="nx">code</span><span class="p">,</span> <span class="nx">options</span><span class="p">)</span> <span class="o">-></span>
|
22
|
+
<span class="nx">lexer</span><span class="p">.</span><span class="nx">tokenize</span> <span class="nx">code</span><span class="p">,</span> <span class="nx">options</span></pre></div> </td> </tr> <tr id="section-8"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-8">¶</a> </div> <p>Parse a string of CoffeeScript code or an array of lexed tokens, and
|
23
|
+
return the AST. You can then compile it by calling <code>.compile()</code> on the root,
|
24
|
+
or traverse it by using <code>.traverse()</code> with a callback.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.nodes = </span><span class="p">(</span><span class="nx">source</span><span class="p">,</span> <span class="nx">options</span><span class="p">)</span> <span class="o">-></span>
|
25
|
+
<span class="k">if</span> <span class="k">typeof</span> <span class="nx">source</span> <span class="o">is</span> <span class="s1">'string'</span>
|
26
|
+
<span class="nx">parser</span><span class="p">.</span><span class="nx">parse</span> <span class="nx">lexer</span><span class="p">.</span><span class="nx">tokenize</span> <span class="nx">source</span><span class="p">,</span> <span class="nx">options</span>
|
27
|
+
<span class="k">else</span>
|
28
|
+
<span class="nx">parser</span><span class="p">.</span><span class="nx">parse</span> <span class="nx">source</span></pre></div> </td> </tr> <tr id="section-9"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-9">¶</a> </div> <p>Compile and execute a string of CoffeeScript (on the server), correctly
|
29
|
+
setting <code>__filename</code>, <code>__dirname</code>, and relative <code>require()</code>.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.run = </span><span class="p">(</span><span class="nx">code</span><span class="p">,</span> <span class="nx">options</span><span class="p">)</span> <span class="o">-></span></pre></div> </td> </tr> <tr id="section-10"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-10">¶</a> </div> <p>We want the root module.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nv">root = </span><span class="nx">module</span>
|
30
|
+
<span class="k">while</span> <span class="nx">root</span><span class="p">.</span><span class="nx">parent</span>
|
31
|
+
<span class="nv">root = </span><span class="nx">root</span><span class="p">.</span><span class="nx">parent</span></pre></div> </td> </tr> <tr id="section-11"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-11">¶</a> </div> <p>Set the filename.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nv">root.filename = </span><span class="nx">fs</span><span class="p">.</span><span class="nx">realpathSync</span> <span class="nx">options</span><span class="p">.</span><span class="nx">fileName</span> <span class="o">or</span> <span class="s1">'.'</span></pre></div> </td> </tr> <tr id="section-12"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-12">¶</a> </div> <p>Clear the module cache.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nv">root.moduleCache = </span><span class="p">{}</span> <span class="k">if</span> <span class="nx">root</span><span class="p">.</span><span class="nx">moduleCache</span></pre></div> </td> </tr> <tr id="section-13"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-13">¶</a> </div> <p>Compile.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="k">if</span> <span class="nx">path</span><span class="p">.</span><span class="nx">extname</span><span class="p">(</span><span class="nx">root</span><span class="p">.</span><span class="nx">filename</span><span class="p">)</span> <span class="o">isnt</span> <span class="s1">'.coffee'</span> <span class="o">or</span> <span class="nx">require</span><span class="p">.</span><span class="nx">extensions</span>
|
32
|
+
<span class="nx">root</span><span class="p">.</span><span class="nx">_compile</span> <span class="nx">compile</span><span class="p">(</span><span class="nx">code</span><span class="p">,</span> <span class="nx">options</span><span class="p">),</span> <span class="nx">root</span><span class="p">.</span><span class="nx">filename</span>
|
33
|
+
<span class="k">else</span>
|
34
|
+
<span class="nx">root</span><span class="p">.</span><span class="nx">_compile</span> <span class="nx">code</span><span class="p">,</span> <span class="nx">root</span><span class="p">.</span><span class="nx">filename</span></pre></div> </td> </tr> <tr id="section-14"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-14">¶</a> </div> <p>Compile and evaluate a string of CoffeeScript (in a Node.js-like environment).
|
35
|
+
The CoffeeScript REPL uses this to run the input.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.eval = </span><span class="p">(</span><span class="nx">code</span><span class="p">,</span> <span class="nx">options</span><span class="p">)</span> <span class="o">-></span>
|
36
|
+
<span class="nv">__filename = </span><span class="nx">options</span><span class="p">.</span><span class="nx">fileName</span>
|
37
|
+
<span class="nv">__dirname = </span><span class="nx">path</span><span class="p">.</span><span class="nx">dirname</span> <span class="nx">__filename</span>
|
38
|
+
<span class="nb">eval</span> <span class="nx">compile</span> <span class="nx">code</span><span class="p">,</span> <span class="nx">options</span></pre></div> </td> </tr> <tr id="section-15"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-15">¶</a> </div> <p>Instantiate a Lexer for our use here.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">lexer = </span><span class="k">new</span> <span class="nx">Lexer</span></pre></div> </td> </tr> <tr id="section-16"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-16">¶</a> </div> <p>The real Lexer produces a generic stream of tokens. This object provides a
|
39
|
+
thin wrapper around it, compatible with the Jison API. We can then pass it
|
40
|
+
directly as a "Jison lexer".</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">parser.lexer =</span>
|
41
|
+
<span class="nx">lex</span><span class="o">:</span> <span class="o">-></span>
|
42
|
+
<span class="p">[</span><span class="nx">tag</span><span class="p">,</span> <span class="nx">@yytext</span><span class="p">,</span> <span class="nx">@yylineno</span><span class="p">]</span> <span class="o">=</span> <span class="nx">@tokens</span><span class="p">[</span><span class="nx">@pos</span><span class="o">++</span><span class="p">]</span> <span class="o">or</span> <span class="p">[</span><span class="s1">''</span><span class="p">]</span>
|
43
|
+
<span class="nx">tag</span>
|
44
|
+
<span class="nx">setInput</span><span class="o">:</span> <span class="p">(</span><span class="nx">@tokens</span><span class="p">)</span> <span class="o">-></span>
|
45
|
+
<span class="vi">@pos = </span><span class="mi">0</span>
|
46
|
+
<span class="nx">upcomingInput</span><span class="o">:</span> <span class="o">-></span>
|
47
|
+
<span class="s2">""</span>
|
48
|
+
|
49
|
+
<span class="nv">parser.yy = </span><span class="nx">require</span> <span class="s1">'./nodes'</span>
|
50
|
+
|
51
|
+
</pre></div> </td> </tr> </tbody> </table> </div> </body> </html>
|
@@ -0,0 +1,161 @@
|
|
1
|
+
<!DOCTYPE html> <html> <head> <title>command.coffee</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To … <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="browser.html"> browser.coffee </a> <a class="source" href="cake.html"> cake.coffee </a> <a class="source" href="coffee-script.html"> coffee-script.coffee </a> <a class="source" href="command.html"> command.coffee </a> <a class="source" href="grammar.html"> grammar.coffee </a> <a class="source" href="helpers.html"> helpers.coffee </a> <a class="source" href="index.html"> index.coffee </a> <a class="source" href="lexer.html"> lexer.coffee </a> <a class="source" href="nodes.html"> nodes.coffee </a> <a class="source" href="optparse.html"> optparse.coffee </a> <a class="source" href="repl.html"> repl.coffee </a> <a class="source" href="rewriter.html"> rewriter.coffee </a> <a class="source" href="scope.html"> scope.coffee </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> command.coffee </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">¶</a> </div> <p>The <code>coffee</code> utility. Handles command-line compilation of CoffeeScript
|
2
|
+
into various forms: saved into <code>.js</code> files or printed to stdout, piped to
|
3
|
+
<a href="http://javascriptlint.com/">JSLint</a> or recompiled every time the source is
|
4
|
+
saved, printed as a token stream or as the syntax tree, or launch an
|
5
|
+
interactive REPL.</p> </td> <td class="code"> <div class="highlight"><pre></pre></div> </td> </tr> <tr id="section-2"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-2">¶</a> </div> <p>External dependencies.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">fs = </span><span class="nx">require</span> <span class="s1">'fs'</span>
|
6
|
+
<span class="nv">path = </span><span class="nx">require</span> <span class="s1">'path'</span>
|
7
|
+
<span class="nv">util = </span><span class="nx">require</span> <span class="s1">'util'</span>
|
8
|
+
<span class="nv">helpers = </span><span class="nx">require</span> <span class="s1">'./helpers'</span>
|
9
|
+
<span class="nv">optparse = </span><span class="nx">require</span> <span class="s1">'./optparse'</span>
|
10
|
+
<span class="nv">CoffeeScript = </span><span class="nx">require</span> <span class="s1">'./coffee-script'</span>
|
11
|
+
<span class="p">{</span><span class="nx">spawn</span><span class="p">,</span> <span class="nx">exec</span><span class="p">}</span> <span class="o">=</span> <span class="nx">require</span> <span class="s1">'child_process'</span>
|
12
|
+
<span class="p">{</span><span class="nx">EventEmitter</span><span class="p">}</span> <span class="o">=</span> <span class="nx">require</span> <span class="s1">'events'</span></pre></div> </td> </tr> <tr id="section-3"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-3">¶</a> </div> <p>Allow CoffeeScript to emit Node.js events.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">helpers</span><span class="p">.</span><span class="nx">extend</span> <span class="nx">CoffeeScript</span><span class="p">,</span> <span class="k">new</span> <span class="nx">EventEmitter</span>
|
13
|
+
|
14
|
+
<span class="nv">printLine = </span><span class="p">(</span><span class="nx">line</span><span class="p">)</span> <span class="o">-></span> <span class="nx">process</span><span class="p">.</span><span class="nx">stdout</span><span class="p">.</span><span class="nx">write</span> <span class="nx">line</span> <span class="o">+</span> <span class="s1">'\n'</span>
|
15
|
+
<span class="nv">printWarn = </span><span class="p">(</span><span class="nx">line</span><span class="p">)</span> <span class="o">-></span> <span class="nx">process</span><span class="p">.</span><span class="nx">binding</span><span class="p">(</span><span class="s1">'stdio'</span><span class="p">).</span><span class="nx">writeError</span> <span class="nx">line</span> <span class="o">+</span> <span class="s1">'\n'</span></pre></div> </td> </tr> <tr id="section-4"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-4">¶</a> </div> <p>The help banner that is printed when <code>coffee</code> is called without arguments.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">BANNER = </span><span class="s1">'''</span>
|
16
|
+
<span class="s1"> Usage: coffee [options] path/to/script.coffee</span>
|
17
|
+
<span class="s1"> '''</span></pre></div> </td> </tr> <tr id="section-5"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-5">¶</a> </div> <p>The list of all the valid option flags that <code>coffee</code> knows how to handle.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">SWITCHES = </span><span class="p">[</span>
|
18
|
+
<span class="p">[</span><span class="s1">'-c'</span><span class="p">,</span> <span class="s1">'--compile'</span><span class="p">,</span> <span class="s1">'compile to JavaScript and save as .js files'</span><span class="p">]</span>
|
19
|
+
<span class="p">[</span><span class="s1">'-i'</span><span class="p">,</span> <span class="s1">'--interactive'</span><span class="p">,</span> <span class="s1">'run an interactive CoffeeScript REPL'</span><span class="p">]</span>
|
20
|
+
<span class="p">[</span><span class="s1">'-o'</span><span class="p">,</span> <span class="s1">'--output [DIR]'</span><span class="p">,</span> <span class="s1">'set the directory for compiled JavaScript'</span><span class="p">]</span>
|
21
|
+
<span class="p">[</span><span class="s1">'-j'</span><span class="p">,</span> <span class="s1">'--join'</span><span class="p">,</span> <span class="s1">'concatenate the scripts before compiling'</span><span class="p">]</span>
|
22
|
+
<span class="p">[</span><span class="s1">'-w'</span><span class="p">,</span> <span class="s1">'--watch'</span><span class="p">,</span> <span class="s1">'watch scripts for changes, and recompile'</span><span class="p">]</span>
|
23
|
+
<span class="p">[</span><span class="s1">'-p'</span><span class="p">,</span> <span class="s1">'--print'</span><span class="p">,</span> <span class="s1">'print the compiled JavaScript to stdout'</span><span class="p">]</span>
|
24
|
+
<span class="p">[</span><span class="s1">'-l'</span><span class="p">,</span> <span class="s1">'--lint'</span><span class="p">,</span> <span class="s1">'pipe the compiled JavaScript through JSLint'</span><span class="p">]</span>
|
25
|
+
<span class="p">[</span><span class="s1">'-s'</span><span class="p">,</span> <span class="s1">'--stdio'</span><span class="p">,</span> <span class="s1">'listen for and compile scripts over stdio'</span><span class="p">]</span>
|
26
|
+
<span class="p">[</span><span class="s1">'-e'</span><span class="p">,</span> <span class="s1">'--eval'</span><span class="p">,</span> <span class="s1">'compile a string from the command line'</span><span class="p">]</span>
|
27
|
+
<span class="p">[</span><span class="s1">'-r'</span><span class="p">,</span> <span class="s1">'--require [FILE*]'</span><span class="p">,</span> <span class="s1">'require a library before executing your script'</span><span class="p">]</span>
|
28
|
+
<span class="p">[</span><span class="s1">'-b'</span><span class="p">,</span> <span class="s1">'--bare'</span><span class="p">,</span> <span class="s1">'compile without the top-level function wrapper'</span><span class="p">]</span>
|
29
|
+
<span class="p">[</span><span class="s1">'-t'</span><span class="p">,</span> <span class="s1">'--tokens'</span><span class="p">,</span> <span class="s1">'print the tokens that the lexer produces'</span><span class="p">]</span>
|
30
|
+
<span class="p">[</span><span class="s1">'-n'</span><span class="p">,</span> <span class="s1">'--nodes'</span><span class="p">,</span> <span class="s1">'print the parse tree that Jison produces'</span><span class="p">]</span>
|
31
|
+
<span class="p">[</span> <span class="s1">'--nodejs [ARGS]'</span><span class="p">,</span> <span class="s1">'pass options through to the "node" binary'</span><span class="p">]</span>
|
32
|
+
<span class="p">[</span><span class="s1">'-v'</span><span class="p">,</span> <span class="s1">'--version'</span><span class="p">,</span> <span class="s1">'display CoffeeScript version'</span><span class="p">]</span>
|
33
|
+
<span class="p">[</span><span class="s1">'-h'</span><span class="p">,</span> <span class="s1">'--help'</span><span class="p">,</span> <span class="s1">'display this help message'</span><span class="p">]</span>
|
34
|
+
<span class="p">]</span></pre></div> </td> </tr> <tr id="section-6"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-6">¶</a> </div> <p>Top-level objects shared by all the functions.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">opts = </span><span class="p">{}</span>
|
35
|
+
<span class="nv">sources = </span><span class="p">[]</span>
|
36
|
+
<span class="nv">contents = </span><span class="p">[]</span>
|
37
|
+
<span class="nv">optionParser = </span><span class="kc">null</span></pre></div> </td> </tr> <tr id="section-7"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-7">¶</a> </div> <p>Run <code>coffee</code> by parsing passed options and determining what action to take.
|
38
|
+
Many flags cause us to divert before compiling anything. Flags passed after
|
39
|
+
<code>--</code> will be passed verbatim to your script as arguments in <code>process.argv</code></p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">exports.run = </span><span class="o">-></span>
|
40
|
+
<span class="nx">parseOptions</span><span class="p">()</span>
|
41
|
+
<span class="k">return</span> <span class="nx">forkNode</span><span class="p">()</span> <span class="k">if</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">nodejs</span>
|
42
|
+
<span class="k">return</span> <span class="nx">usage</span><span class="p">()</span> <span class="k">if</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">help</span>
|
43
|
+
<span class="k">return</span> <span class="nx">version</span><span class="p">()</span> <span class="k">if</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">version</span>
|
44
|
+
<span class="k">return</span> <span class="nx">require</span> <span class="s1">'./repl'</span> <span class="k">if</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">interactive</span>
|
45
|
+
<span class="k">return</span> <span class="nx">compileStdio</span><span class="p">()</span> <span class="k">if</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">stdio</span>
|
46
|
+
<span class="k">return</span> <span class="nx">compileScript</span> <span class="kc">null</span><span class="p">,</span> <span class="nx">sources</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="k">if</span> <span class="nx">opts</span><span class="p">.</span><span class="nb">eval</span>
|
47
|
+
<span class="k">return</span> <span class="nx">require</span> <span class="s1">'./repl'</span> <span class="nx">unless</span> <span class="nx">sources</span><span class="p">.</span><span class="nx">length</span>
|
48
|
+
<span class="k">if</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">run</span>
|
49
|
+
<span class="nv">opts.literals = </span><span class="nx">sources</span><span class="p">.</span><span class="nx">splice</span><span class="p">(</span><span class="mi">1</span><span class="p">).</span><span class="nx">concat</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">literals</span>
|
50
|
+
<span class="nv">process.ARGV = process.argv = </span><span class="nx">process</span><span class="p">.</span><span class="nx">argv</span><span class="p">.</span><span class="nx">slice</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">2</span><span class="p">).</span><span class="nx">concat</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">literals</span>
|
51
|
+
<span class="nx">compileScripts</span><span class="p">()</span></pre></div> </td> </tr> <tr id="section-8"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-8">¶</a> </div> <p>Asynchronously read in each CoffeeScript in a list of source files and
|
52
|
+
compile them. If a directory is passed, recursively compile all
|
53
|
+
'.coffee' extension source files in it and all subdirectories.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">compileScripts = </span><span class="o">-></span>
|
54
|
+
<span class="k">for</span> <span class="nx">source</span> <span class="k">in</span> <span class="nx">sources</span>
|
55
|
+
<span class="nv">base = </span><span class="nx">path</span><span class="p">.</span><span class="nx">join</span><span class="p">(</span><span class="nx">source</span><span class="p">)</span>
|
56
|
+
<span class="nv">compile = </span><span class="p">(</span><span class="nx">source</span><span class="p">,</span> <span class="nx">topLevel</span><span class="p">)</span> <span class="o">-></span>
|
57
|
+
<span class="nx">path</span><span class="p">.</span><span class="nx">exists</span> <span class="nx">source</span><span class="p">,</span> <span class="p">(</span><span class="nx">exists</span><span class="p">)</span> <span class="o">-></span>
|
58
|
+
<span class="k">throw</span> <span class="k">new</span> <span class="nb">Error</span> <span class="s2">"File not found: #{source}"</span> <span class="nx">unless</span> <span class="nx">exists</span>
|
59
|
+
<span class="nx">fs</span><span class="p">.</span><span class="nx">stat</span> <span class="nx">source</span><span class="p">,</span> <span class="p">(</span><span class="nx">err</span><span class="p">,</span> <span class="nx">stats</span><span class="p">)</span> <span class="o">-></span>
|
60
|
+
<span class="k">if</span> <span class="nx">stats</span><span class="p">.</span><span class="nx">isDirectory</span><span class="p">()</span>
|
61
|
+
<span class="nx">fs</span><span class="p">.</span><span class="nx">readdir</span> <span class="nx">source</span><span class="p">,</span> <span class="p">(</span><span class="nx">err</span><span class="p">,</span> <span class="nx">files</span><span class="p">)</span> <span class="o">-></span>
|
62
|
+
<span class="k">for</span> <span class="nx">file</span> <span class="k">in</span> <span class="nx">files</span>
|
63
|
+
<span class="nx">compile</span> <span class="nx">path</span><span class="p">.</span><span class="nx">join</span><span class="p">(</span><span class="nx">source</span><span class="p">,</span> <span class="nx">file</span><span class="p">)</span>
|
64
|
+
<span class="k">else</span> <span class="k">if</span> <span class="nx">topLevel</span> <span class="o">or</span> <span class="nx">path</span><span class="p">.</span><span class="nx">extname</span><span class="p">(</span><span class="nx">source</span><span class="p">)</span> <span class="o">is</span> <span class="s1">'.coffee'</span>
|
65
|
+
<span class="nx">fs</span><span class="p">.</span><span class="nx">readFile</span> <span class="nx">source</span><span class="p">,</span> <span class="p">(</span><span class="nx">err</span><span class="p">,</span> <span class="nx">code</span><span class="p">)</span> <span class="o">-></span>
|
66
|
+
<span class="k">if</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">join</span>
|
67
|
+
<span class="nx">contents</span><span class="p">[</span><span class="nx">sources</span><span class="p">.</span><span class="nx">indexOf</span> <span class="nx">source</span><span class="p">]</span> <span class="o">=</span> <span class="nx">code</span><span class="p">.</span><span class="nx">toString</span><span class="p">()</span>
|
68
|
+
<span class="nx">compileJoin</span><span class="p">()</span> <span class="k">if</span> <span class="nx">helpers</span><span class="p">.</span><span class="nx">compact</span><span class="p">(</span><span class="nx">contents</span><span class="p">).</span><span class="nx">length</span> <span class="o">is</span> <span class="nx">sources</span><span class="p">.</span><span class="nx">length</span>
|
69
|
+
<span class="k">else</span>
|
70
|
+
<span class="nx">compileScript</span><span class="p">(</span><span class="nx">source</span><span class="p">,</span> <span class="nx">code</span><span class="p">.</span><span class="nx">toString</span><span class="p">(),</span> <span class="nx">base</span><span class="p">)</span>
|
71
|
+
<span class="nx">watch</span> <span class="nx">source</span><span class="p">,</span> <span class="nx">base</span> <span class="k">if</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">watch</span> <span class="o">and</span> <span class="o">not</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">join</span>
|
72
|
+
<span class="nx">compile</span> <span class="nx">source</span><span class="p">,</span> <span class="kc">true</span></pre></div> </td> </tr> <tr id="section-9"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-9">¶</a> </div> <p>Compile a single source script, containing the given code, according to the
|
73
|
+
requested options. If evaluating the script directly sets <code>__filename</code>,
|
74
|
+
<code>__dirname</code> and <code>module.filename</code> to be correct relative to the script's path.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">compileScript = </span><span class="p">(</span><span class="nx">file</span><span class="p">,</span> <span class="nx">input</span><span class="p">,</span> <span class="nx">base</span><span class="p">)</span> <span class="o">-></span>
|
75
|
+
<span class="nv">o = </span><span class="nx">opts</span>
|
76
|
+
<span class="nv">options = </span><span class="nx">compileOptions</span> <span class="nx">file</span>
|
77
|
+
<span class="k">if</span> <span class="nx">o</span><span class="p">.</span><span class="nx">require</span>
|
78
|
+
<span class="nx">require</span><span class="p">(</span><span class="k">if</span> <span class="nx">helpers</span><span class="p">.</span><span class="nx">starts</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="s1">'.'</span><span class="p">)</span> <span class="k">then</span> <span class="nx">fs</span><span class="p">.</span><span class="nx">realpathSync</span><span class="p">(</span><span class="nx">req</span><span class="p">)</span> <span class="k">else</span> <span class="nx">req</span><span class="p">)</span> <span class="k">for</span> <span class="nx">req</span> <span class="k">in</span> <span class="nx">o</span><span class="p">.</span><span class="nx">require</span>
|
79
|
+
<span class="k">try</span>
|
80
|
+
<span class="nv">t = task = </span><span class="p">{</span><span class="nx">file</span><span class="p">,</span> <span class="nx">input</span><span class="p">,</span> <span class="nx">options</span><span class="p">}</span>
|
81
|
+
<span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">emit</span> <span class="s1">'compile'</span><span class="p">,</span> <span class="nx">task</span>
|
82
|
+
<span class="k">if</span> <span class="nx">o</span><span class="p">.</span><span class="nx">tokens</span> <span class="k">then</span> <span class="nx">printTokens</span> <span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">tokens</span> <span class="nx">t</span><span class="p">.</span><span class="nx">input</span>
|
83
|
+
<span class="k">else</span> <span class="k">if</span> <span class="nx">o</span><span class="p">.</span><span class="nx">nodes</span> <span class="k">then</span> <span class="nx">printLine</span> <span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">nodes</span><span class="p">(</span><span class="nx">t</span><span class="p">.</span><span class="nx">input</span><span class="p">).</span><span class="nx">toString</span><span class="p">().</span><span class="nx">trim</span><span class="p">()</span>
|
84
|
+
<span class="k">else</span> <span class="k">if</span> <span class="nx">o</span><span class="p">.</span><span class="nx">run</span> <span class="k">then</span> <span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">run</span> <span class="nx">t</span><span class="p">.</span><span class="nx">input</span><span class="p">,</span> <span class="nx">t</span><span class="p">.</span><span class="nx">options</span>
|
85
|
+
<span class="k">else</span>
|
86
|
+
<span class="nv">t.output = </span><span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">compile</span> <span class="nx">t</span><span class="p">.</span><span class="nx">input</span><span class="p">,</span> <span class="nx">t</span><span class="p">.</span><span class="nx">options</span>
|
87
|
+
<span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">emit</span> <span class="s1">'success'</span><span class="p">,</span> <span class="nx">task</span>
|
88
|
+
<span class="k">if</span> <span class="nx">o</span><span class="p">.</span><span class="nx">print</span> <span class="k">then</span> <span class="nx">printLine</span> <span class="nx">t</span><span class="p">.</span><span class="nx">output</span><span class="p">.</span><span class="nx">trim</span><span class="p">()</span>
|
89
|
+
<span class="k">else</span> <span class="k">if</span> <span class="nx">o</span><span class="p">.</span><span class="nx">compile</span> <span class="k">then</span> <span class="nx">writeJs</span> <span class="nx">t</span><span class="p">.</span><span class="nx">file</span><span class="p">,</span> <span class="nx">t</span><span class="p">.</span><span class="nx">output</span><span class="p">,</span> <span class="nx">base</span>
|
90
|
+
<span class="k">else</span> <span class="k">if</span> <span class="nx">o</span><span class="p">.</span><span class="nx">lint</span> <span class="k">then</span> <span class="nx">lint</span> <span class="nx">t</span><span class="p">.</span><span class="nx">file</span><span class="p">,</span> <span class="nx">t</span><span class="p">.</span><span class="nx">output</span>
|
91
|
+
<span class="k">catch</span> <span class="nx">err</span>
|
92
|
+
<span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">emit</span> <span class="s1">'failure'</span><span class="p">,</span> <span class="nx">err</span><span class="p">,</span> <span class="nx">task</span>
|
93
|
+
<span class="k">return</span> <span class="k">if</span> <span class="nx">CoffeeScript</span><span class="p">.</span><span class="nx">listeners</span><span class="p">(</span><span class="s1">'failure'</span><span class="p">).</span><span class="nx">length</span>
|
94
|
+
<span class="k">return</span> <span class="nx">printLine</span> <span class="nx">err</span><span class="p">.</span><span class="nx">message</span> <span class="k">if</span> <span class="nx">o</span><span class="p">.</span><span class="nx">watch</span>
|
95
|
+
<span class="nx">printWarn</span> <span class="nx">err</span><span class="p">.</span><span class="nx">stack</span>
|
96
|
+
<span class="nx">process</span><span class="p">.</span><span class="nx">exit</span> <span class="mi">1</span></pre></div> </td> </tr> <tr id="section-10"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-10">¶</a> </div> <p>Attach the appropriate listeners to compile scripts incoming over <strong>stdin</strong>,
|
97
|
+
and write them back to <strong>stdout</strong>.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">compileStdio = </span><span class="o">-></span>
|
98
|
+
<span class="nv">code = </span><span class="s1">''</span>
|
99
|
+
<span class="nv">stdin = </span><span class="nx">process</span><span class="p">.</span><span class="nx">openStdin</span><span class="p">()</span>
|
100
|
+
<span class="nx">stdin</span><span class="p">.</span><span class="kc">on</span> <span class="s1">'data'</span><span class="p">,</span> <span class="p">(</span><span class="nx">buffer</span><span class="p">)</span> <span class="o">-></span>
|
101
|
+
<span class="nx">code</span> <span class="o">+=</span> <span class="nx">buffer</span><span class="p">.</span><span class="nx">toString</span><span class="p">()</span> <span class="k">if</span> <span class="nx">buffer</span>
|
102
|
+
<span class="nx">stdin</span><span class="p">.</span><span class="kc">on</span> <span class="s1">'end'</span><span class="p">,</span> <span class="o">-></span>
|
103
|
+
<span class="nx">compileScript</span> <span class="kc">null</span><span class="p">,</span> <span class="nx">code</span></pre></div> </td> </tr> <tr id="section-11"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-11">¶</a> </div> <p>After all of the source files are done being read, concatenate and compile
|
104
|
+
them together.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">compileJoin = </span><span class="o">-></span>
|
105
|
+
<span class="nv">code = </span><span class="nx">contents</span><span class="p">.</span><span class="nx">join</span> <span class="s1">'\n'</span>
|
106
|
+
<span class="nx">compileScript</span> <span class="s2">"concatenation"</span><span class="p">,</span> <span class="nx">code</span><span class="p">,</span> <span class="s2">"concatenation"</span></pre></div> </td> </tr> <tr id="section-12"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-12">¶</a> </div> <p>Watch a source CoffeeScript file using <code>fs.watchFile</code>, recompiling it every
|
107
|
+
time the file is updated. May be used in combination with other options,
|
108
|
+
such as <code>--lint</code> or <code>--print</code>.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">watch = </span><span class="p">(</span><span class="nx">source</span><span class="p">,</span> <span class="nx">base</span><span class="p">)</span> <span class="o">-></span>
|
109
|
+
<span class="nx">fs</span><span class="p">.</span><span class="nx">watchFile</span> <span class="nx">source</span><span class="p">,</span> <span class="p">{</span><span class="nx">persistent</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span> <span class="nx">interval</span><span class="o">:</span> <span class="mi">500</span><span class="p">},</span> <span class="p">(</span><span class="nx">curr</span><span class="p">,</span> <span class="nx">prev</span><span class="p">)</span> <span class="o">-></span>
|
110
|
+
<span class="k">return</span> <span class="k">if</span> <span class="nx">curr</span><span class="p">.</span><span class="nx">size</span> <span class="o">is</span> <span class="nx">prev</span><span class="p">.</span><span class="nx">size</span> <span class="o">and</span> <span class="nx">curr</span><span class="p">.</span><span class="nx">mtime</span><span class="p">.</span><span class="nx">getTime</span><span class="p">()</span> <span class="o">is</span> <span class="nx">prev</span><span class="p">.</span><span class="nx">mtime</span><span class="p">.</span><span class="nx">getTime</span><span class="p">()</span>
|
111
|
+
<span class="nx">fs</span><span class="p">.</span><span class="nx">readFile</span> <span class="nx">source</span><span class="p">,</span> <span class="p">(</span><span class="nx">err</span><span class="p">,</span> <span class="nx">code</span><span class="p">)</span> <span class="o">-></span>
|
112
|
+
<span class="k">throw</span> <span class="nx">err</span> <span class="k">if</span> <span class="nx">err</span>
|
113
|
+
<span class="nx">compileScript</span><span class="p">(</span><span class="nx">source</span><span class="p">,</span> <span class="nx">code</span><span class="p">.</span><span class="nx">toString</span><span class="p">(),</span> <span class="nx">base</span><span class="p">)</span></pre></div> </td> </tr> <tr id="section-13"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-13">¶</a> </div> <p>Write out a JavaScript source file with the compiled code. By default, files
|
114
|
+
are written out in <code>cwd</code> as <code>.js</code> files with the same name, but the output
|
115
|
+
directory can be customized with <code>--output</code>.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">writeJs = </span><span class="p">(</span><span class="nx">source</span><span class="p">,</span> <span class="nx">js</span><span class="p">,</span> <span class="nx">base</span><span class="p">)</span> <span class="o">-></span>
|
116
|
+
<span class="nv">filename = </span><span class="nx">path</span><span class="p">.</span><span class="nx">basename</span><span class="p">(</span><span class="nx">source</span><span class="p">,</span> <span class="nx">path</span><span class="p">.</span><span class="nx">extname</span><span class="p">(</span><span class="nx">source</span><span class="p">))</span> <span class="o">+</span> <span class="s1">'.js'</span>
|
117
|
+
<span class="nv">srcDir = </span><span class="nx">path</span><span class="p">.</span><span class="nx">dirname</span> <span class="nx">source</span>
|
118
|
+
<span class="nv">baseDir = </span><span class="k">if</span> <span class="nx">base</span> <span class="o">is</span> <span class="s1">'.'</span> <span class="k">then</span> <span class="nx">srcDir</span> <span class="k">else</span> <span class="nx">srcDir</span><span class="p">.</span><span class="nx">substring</span> <span class="nx">base</span><span class="p">.</span><span class="nx">length</span>
|
119
|
+
<span class="nv">dir = </span><span class="k">if</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">output</span> <span class="k">then</span> <span class="nx">path</span><span class="p">.</span><span class="nx">join</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">output</span><span class="p">,</span> <span class="nx">baseDir</span> <span class="k">else</span> <span class="nx">srcDir</span>
|
120
|
+
<span class="nv">jsPath = </span><span class="nx">path</span><span class="p">.</span><span class="nx">join</span> <span class="nx">dir</span><span class="p">,</span> <span class="nx">filename</span>
|
121
|
+
<span class="nv">compile = </span><span class="o">-></span>
|
122
|
+
<span class="nv">js = </span><span class="s1">' '</span> <span class="k">if</span> <span class="nx">js</span><span class="p">.</span><span class="nx">length</span> <span class="o"><=</span> <span class="mi">0</span>
|
123
|
+
<span class="nx">fs</span><span class="p">.</span><span class="nx">writeFile</span> <span class="nx">jsPath</span><span class="p">,</span> <span class="nx">js</span><span class="p">,</span> <span class="p">(</span><span class="nx">err</span><span class="p">)</span> <span class="o">-></span>
|
124
|
+
<span class="k">if</span> <span class="nx">err</span> <span class="k">then</span> <span class="nx">printLine</span> <span class="nx">err</span><span class="p">.</span><span class="nx">message</span>
|
125
|
+
<span class="k">else</span> <span class="k">if</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">compile</span> <span class="o">and</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">watch</span> <span class="k">then</span> <span class="nx">util</span><span class="p">.</span><span class="nx">log</span> <span class="s2">"compiled #{source}"</span>
|
126
|
+
<span class="nx">path</span><span class="p">.</span><span class="nx">exists</span> <span class="nx">dir</span><span class="p">,</span> <span class="p">(</span><span class="nx">exists</span><span class="p">)</span> <span class="o">-></span>
|
127
|
+
<span class="k">if</span> <span class="nx">exists</span> <span class="k">then</span> <span class="nx">compile</span><span class="p">()</span> <span class="k">else</span> <span class="nx">exec</span> <span class="s2">"mkdir -p #{dir}"</span><span class="p">,</span> <span class="nx">compile</span></pre></div> </td> </tr> <tr id="section-14"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-14">¶</a> </div> <p>Pipe compiled JS through JSLint (requires a working <code>jsl</code> command), printing
|
128
|
+
any errors or warnings that arise.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">lint = </span><span class="p">(</span><span class="nx">file</span><span class="p">,</span> <span class="nx">js</span><span class="p">)</span> <span class="o">-></span>
|
129
|
+
<span class="nv">printIt = </span><span class="p">(</span><span class="nx">buffer</span><span class="p">)</span> <span class="o">-></span> <span class="nx">printLine</span> <span class="nx">file</span> <span class="o">+</span> <span class="s1">':\t'</span> <span class="o">+</span> <span class="nx">buffer</span><span class="p">.</span><span class="nx">toString</span><span class="p">().</span><span class="nx">trim</span><span class="p">()</span>
|
130
|
+
<span class="nv">conf = </span><span class="nx">__dirname</span> <span class="o">+</span> <span class="s1">'/../extras/jsl.conf'</span>
|
131
|
+
<span class="nv">jsl = </span><span class="nx">spawn</span> <span class="s1">'jsl'</span><span class="p">,</span> <span class="p">[</span><span class="s1">'-nologo'</span><span class="p">,</span> <span class="s1">'-stdin'</span><span class="p">,</span> <span class="s1">'-conf'</span><span class="p">,</span> <span class="nx">conf</span><span class="p">]</span>
|
132
|
+
<span class="nx">jsl</span><span class="p">.</span><span class="nx">stdout</span><span class="p">.</span><span class="kc">on</span> <span class="s1">'data'</span><span class="p">,</span> <span class="nx">printIt</span>
|
133
|
+
<span class="nx">jsl</span><span class="p">.</span><span class="nx">stderr</span><span class="p">.</span><span class="kc">on</span> <span class="s1">'data'</span><span class="p">,</span> <span class="nx">printIt</span>
|
134
|
+
<span class="nx">jsl</span><span class="p">.</span><span class="nx">stdin</span><span class="p">.</span><span class="nx">write</span> <span class="nx">js</span>
|
135
|
+
<span class="nx">jsl</span><span class="p">.</span><span class="nx">stdin</span><span class="p">.</span><span class="nx">end</span><span class="p">()</span></pre></div> </td> </tr> <tr id="section-15"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-15">¶</a> </div> <p>Pretty-print a stream of tokens.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">printTokens = </span><span class="p">(</span><span class="nx">tokens</span><span class="p">)</span> <span class="o">-></span>
|
136
|
+
<span class="nv">strings = </span><span class="k">for</span> <span class="nx">token</span> <span class="k">in</span> <span class="nx">tokens</span>
|
137
|
+
<span class="p">[</span><span class="nx">tag</span><span class="p">,</span> <span class="nx">value</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="nx">token</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="nx">token</span><span class="p">[</span><span class="mi">1</span><span class="p">].</span><span class="nx">toString</span><span class="p">().</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\n/</span><span class="p">,</span> <span class="s1">'\\n'</span><span class="p">)]</span>
|
138
|
+
<span class="s2">"[#{tag} #{value}]"</span>
|
139
|
+
<span class="nx">printLine</span> <span class="nx">strings</span><span class="p">.</span><span class="nx">join</span><span class="p">(</span><span class="s1">' '</span><span class="p">)</span></pre></div> </td> </tr> <tr id="section-16"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-16">¶</a> </div> <p>Use the <a href="optparse.html">OptionParser module</a> to extract all options from
|
140
|
+
<code>process.argv</code> that are specified in <code>SWITCHES</code>.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">parseOptions = </span><span class="o">-></span>
|
141
|
+
<span class="nv">optionParser = </span><span class="k">new</span> <span class="nx">optparse</span><span class="p">.</span><span class="nx">OptionParser</span> <span class="nx">SWITCHES</span><span class="p">,</span> <span class="nx">BANNER</span>
|
142
|
+
<span class="nv">o = opts = </span><span class="nx">optionParser</span><span class="p">.</span><span class="nx">parse</span> <span class="nx">process</span><span class="p">.</span><span class="nx">argv</span><span class="p">.</span><span class="nx">slice</span> <span class="mi">2</span>
|
143
|
+
<span class="nx">o</span><span class="p">.</span><span class="nx">compile</span> <span class="o">or=</span> <span class="o">!!</span><span class="nx">o</span><span class="p">.</span><span class="nx">output</span>
|
144
|
+
<span class="nv">o.run = </span><span class="o">not</span> <span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">compile</span> <span class="o">or</span> <span class="nx">o</span><span class="p">.</span><span class="nx">print</span> <span class="o">or</span> <span class="nx">o</span><span class="p">.</span><span class="nx">lint</span><span class="p">)</span>
|
145
|
+
<span class="nv">o.print = </span><span class="o">!!</span> <span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">print</span> <span class="o">or</span> <span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nb">eval</span> <span class="o">or</span> <span class="nx">o</span><span class="p">.</span><span class="nx">stdio</span> <span class="o">and</span> <span class="nx">o</span><span class="p">.</span><span class="nx">compile</span><span class="p">))</span>
|
146
|
+
<span class="nv">sources = </span><span class="nx">o</span><span class="p">.</span><span class="nx">arguments</span></pre></div> </td> </tr> <tr id="section-17"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-17">¶</a> </div> <p>The compile-time options to pass to the CoffeeScript compiler.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">compileOptions = </span><span class="p">(</span><span class="nx">fileName</span><span class="p">)</span> <span class="o">-></span> <span class="p">{</span><span class="nx">fileName</span><span class="p">,</span> <span class="nx">bare</span><span class="o">:</span> <span class="nx">opts</span><span class="p">.</span><span class="nx">bare</span><span class="p">}</span></pre></div> </td> </tr> <tr id="section-18"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-18">¶</a> </div> <p>Start up a new Node.js instance with the arguments in <code>--nodejs</code> passed to
|
147
|
+
the <code>node</code> binary, preserving the other options.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">forkNode = </span><span class="o">-></span>
|
148
|
+
<span class="nv">nodeArgs = </span><span class="nx">opts</span><span class="p">.</span><span class="nx">nodejs</span><span class="p">.</span><span class="nx">split</span> <span class="sr">/\s+/</span>
|
149
|
+
<span class="nv">args = </span><span class="nx">process</span><span class="p">.</span><span class="nx">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">..]</span>
|
150
|
+
<span class="nx">args</span><span class="p">.</span><span class="nx">splice</span> <span class="nx">args</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="s1">'--nodejs'</span><span class="p">),</span> <span class="mi">2</span>
|
151
|
+
<span class="nx">spawn</span> <span class="nx">process</span><span class="p">.</span><span class="nx">execPath</span><span class="p">,</span> <span class="nx">nodeArgs</span><span class="p">.</span><span class="nx">concat</span><span class="p">(</span><span class="nx">args</span><span class="p">),</span>
|
152
|
+
<span class="nx">cwd</span><span class="o">:</span> <span class="nx">process</span><span class="p">.</span><span class="nx">cwd</span><span class="p">()</span>
|
153
|
+
<span class="nx">env</span><span class="o">:</span> <span class="nx">process</span><span class="p">.</span><span class="nx">env</span>
|
154
|
+
<span class="nx">customFds</span><span class="o">:</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">]</span></pre></div> </td> </tr> <tr id="section-19"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-19">¶</a> </div> <p>Print the <code>--help</code> usage message and exit. Deprecated switches are not
|
155
|
+
shown.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">usage = </span><span class="o">-></span>
|
156
|
+
<span class="nx">printLine</span> <span class="p">(</span><span class="k">new</span> <span class="nx">optparse</span><span class="p">.</span><span class="nx">OptionParser</span> <span class="nx">SWITCHES</span><span class="p">,</span> <span class="nx">BANNER</span><span class="p">).</span><span class="nx">help</span><span class="p">()</span>
|
157
|
+
<span class="nx">process</span><span class="p">.</span><span class="nx">exit</span> <span class="mi">0</span></pre></div> </td> </tr> <tr id="section-20"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-20">¶</a> </div> <p>Print the <code>--version</code> message and exit.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">version = </span><span class="o">-></span>
|
158
|
+
<span class="nx">printLine</span> <span class="s2">"CoffeeScript version #{CoffeeScript.VERSION}"</span>
|
159
|
+
<span class="nx">process</span><span class="p">.</span><span class="nx">exit</span> <span class="mi">0</span>
|
160
|
+
|
161
|
+
</pre></div> </td> </tr> </tbody> </table> </div> </body> </html>
|
@@ -0,0 +1,186 @@
|
|
1
|
+
/*--------------------- Layout and Typography ----------------------------*/
|
2
|
+
body {
|
3
|
+
font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
|
4
|
+
font-size: 15px;
|
5
|
+
line-height: 22px;
|
6
|
+
color: #252519;
|
7
|
+
margin: 0; padding: 0;
|
8
|
+
}
|
9
|
+
a {
|
10
|
+
color: #261a3b;
|
11
|
+
}
|
12
|
+
a:visited {
|
13
|
+
color: #261a3b;
|
14
|
+
}
|
15
|
+
p {
|
16
|
+
margin: 0 0 15px 0;
|
17
|
+
}
|
18
|
+
h1, h2, h3, h4, h5, h6 {
|
19
|
+
margin: 0px 0 15px 0;
|
20
|
+
}
|
21
|
+
h1 {
|
22
|
+
margin-top: 40px;
|
23
|
+
}
|
24
|
+
#container {
|
25
|
+
position: relative;
|
26
|
+
}
|
27
|
+
#background {
|
28
|
+
position: fixed;
|
29
|
+
top: 0; left: 525px; right: 0; bottom: 0;
|
30
|
+
background: #f5f5ff;
|
31
|
+
border-left: 1px solid #e5e5ee;
|
32
|
+
z-index: -1;
|
33
|
+
}
|
34
|
+
#jump_to, #jump_page {
|
35
|
+
background: white;
|
36
|
+
-webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777;
|
37
|
+
-webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px;
|
38
|
+
font: 10px Arial;
|
39
|
+
text-transform: uppercase;
|
40
|
+
cursor: pointer;
|
41
|
+
text-align: right;
|
42
|
+
}
|
43
|
+
#jump_to, #jump_wrapper {
|
44
|
+
position: fixed;
|
45
|
+
right: 0; top: 0;
|
46
|
+
padding: 5px 10px;
|
47
|
+
}
|
48
|
+
#jump_wrapper {
|
49
|
+
padding: 0;
|
50
|
+
display: none;
|
51
|
+
}
|
52
|
+
#jump_to:hover #jump_wrapper {
|
53
|
+
display: block;
|
54
|
+
}
|
55
|
+
#jump_page {
|
56
|
+
padding: 5px 0 3px;
|
57
|
+
margin: 0 0 25px 25px;
|
58
|
+
}
|
59
|
+
#jump_page .source {
|
60
|
+
display: block;
|
61
|
+
padding: 5px 10px;
|
62
|
+
text-decoration: none;
|
63
|
+
border-top: 1px solid #eee;
|
64
|
+
}
|
65
|
+
#jump_page .source:hover {
|
66
|
+
background: #f5f5ff;
|
67
|
+
}
|
68
|
+
#jump_page .source:first-child {
|
69
|
+
}
|
70
|
+
table td {
|
71
|
+
border: 0;
|
72
|
+
outline: 0;
|
73
|
+
}
|
74
|
+
td.docs, th.docs {
|
75
|
+
max-width: 450px;
|
76
|
+
min-width: 450px;
|
77
|
+
min-height: 5px;
|
78
|
+
padding: 10px 25px 1px 50px;
|
79
|
+
overflow-x: hidden;
|
80
|
+
vertical-align: top;
|
81
|
+
text-align: left;
|
82
|
+
}
|
83
|
+
.docs pre {
|
84
|
+
margin: 15px 0 15px;
|
85
|
+
padding-left: 15px;
|
86
|
+
}
|
87
|
+
.docs p tt, .docs p code {
|
88
|
+
background: #f8f8ff;
|
89
|
+
border: 1px solid #dedede;
|
90
|
+
font-size: 12px;
|
91
|
+
padding: 0 0.2em;
|
92
|
+
}
|
93
|
+
.pilwrap {
|
94
|
+
position: relative;
|
95
|
+
}
|
96
|
+
.pilcrow {
|
97
|
+
font: 12px Arial;
|
98
|
+
text-decoration: none;
|
99
|
+
color: #454545;
|
100
|
+
position: absolute;
|
101
|
+
top: 3px; left: -20px;
|
102
|
+
padding: 1px 2px;
|
103
|
+
opacity: 0;
|
104
|
+
-webkit-transition: opacity 0.2s linear;
|
105
|
+
}
|
106
|
+
td.docs:hover .pilcrow {
|
107
|
+
opacity: 1;
|
108
|
+
}
|
109
|
+
td.code, th.code {
|
110
|
+
padding: 14px 15px 16px 25px;
|
111
|
+
width: 100%;
|
112
|
+
vertical-align: top;
|
113
|
+
background: #f5f5ff;
|
114
|
+
border-left: 1px solid #e5e5ee;
|
115
|
+
}
|
116
|
+
pre, tt, code {
|
117
|
+
font-size: 12px; line-height: 18px;
|
118
|
+
font-family: Monaco, Consolas, "Lucida Console", monospace;
|
119
|
+
margin: 0; padding: 0;
|
120
|
+
}
|
121
|
+
|
122
|
+
|
123
|
+
/*---------------------- Syntax Highlighting -----------------------------*/
|
124
|
+
td.linenos { background-color: #f0f0f0; padding-right: 10px; }
|
125
|
+
span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }
|
126
|
+
body .hll { background-color: #ffffcc }
|
127
|
+
body .c { color: #408080; font-style: italic } /* Comment */
|
128
|
+
body .err { border: 1px solid #FF0000 } /* Error */
|
129
|
+
body .k { color: #954121 } /* Keyword */
|
130
|
+
body .o { color: #666666 } /* Operator */
|
131
|
+
body .cm { color: #408080; font-style: italic } /* Comment.Multiline */
|
132
|
+
body .cp { color: #BC7A00 } /* Comment.Preproc */
|
133
|
+
body .c1 { color: #408080; font-style: italic } /* Comment.Single */
|
134
|
+
body .cs { color: #408080; font-style: italic } /* Comment.Special */
|
135
|
+
body .gd { color: #A00000 } /* Generic.Deleted */
|
136
|
+
body .ge { font-style: italic } /* Generic.Emph */
|
137
|
+
body .gr { color: #FF0000 } /* Generic.Error */
|
138
|
+
body .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
139
|
+
body .gi { color: #00A000 } /* Generic.Inserted */
|
140
|
+
body .go { color: #808080 } /* Generic.Output */
|
141
|
+
body .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
|
142
|
+
body .gs { font-weight: bold } /* Generic.Strong */
|
143
|
+
body .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
144
|
+
body .gt { color: #0040D0 } /* Generic.Traceback */
|
145
|
+
body .kc { color: #954121 } /* Keyword.Constant */
|
146
|
+
body .kd { color: #954121; font-weight: bold } /* Keyword.Declaration */
|
147
|
+
body .kn { color: #954121; font-weight: bold } /* Keyword.Namespace */
|
148
|
+
body .kp { color: #954121 } /* Keyword.Pseudo */
|
149
|
+
body .kr { color: #954121; font-weight: bold } /* Keyword.Reserved */
|
150
|
+
body .kt { color: #B00040 } /* Keyword.Type */
|
151
|
+
body .m { color: #666666 } /* Literal.Number */
|
152
|
+
body .s { color: #219161 } /* Literal.String */
|
153
|
+
body .na { color: #7D9029 } /* Name.Attribute */
|
154
|
+
body .nb { color: #954121 } /* Name.Builtin */
|
155
|
+
body .nc { color: #0000FF; font-weight: bold } /* Name.Class */
|
156
|
+
body .no { color: #880000 } /* Name.Constant */
|
157
|
+
body .nd { color: #AA22FF } /* Name.Decorator */
|
158
|
+
body .ni { color: #999999; font-weight: bold } /* Name.Entity */
|
159
|
+
body .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
|
160
|
+
body .nf { color: #0000FF } /* Name.Function */
|
161
|
+
body .nl { color: #A0A000 } /* Name.Label */
|
162
|
+
body .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
|
163
|
+
body .nt { color: #954121; font-weight: bold } /* Name.Tag */
|
164
|
+
body .nv { color: #19469D } /* Name.Variable */
|
165
|
+
body .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
|
166
|
+
body .w { color: #bbbbbb } /* Text.Whitespace */
|
167
|
+
body .mf { color: #666666 } /* Literal.Number.Float */
|
168
|
+
body .mh { color: #666666 } /* Literal.Number.Hex */
|
169
|
+
body .mi { color: #666666 } /* Literal.Number.Integer */
|
170
|
+
body .mo { color: #666666 } /* Literal.Number.Oct */
|
171
|
+
body .sb { color: #219161 } /* Literal.String.Backtick */
|
172
|
+
body .sc { color: #219161 } /* Literal.String.Char */
|
173
|
+
body .sd { color: #219161; font-style: italic } /* Literal.String.Doc */
|
174
|
+
body .s2 { color: #219161 } /* Literal.String.Double */
|
175
|
+
body .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
|
176
|
+
body .sh { color: #219161 } /* Literal.String.Heredoc */
|
177
|
+
body .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
|
178
|
+
body .sx { color: #954121 } /* Literal.String.Other */
|
179
|
+
body .sr { color: #BB6688 } /* Literal.String.Regex */
|
180
|
+
body .s1 { color: #219161 } /* Literal.String.Single */
|
181
|
+
body .ss { color: #19469D } /* Literal.String.Symbol */
|
182
|
+
body .bp { color: #954121 } /* Name.Builtin.Pseudo */
|
183
|
+
body .vc { color: #19469D } /* Name.Variable.Class */
|
184
|
+
body .vg { color: #19469D } /* Name.Variable.Global */
|
185
|
+
body .vi { color: #19469D } /* Name.Variable.Instance */
|
186
|
+
body .il { color: #666666 } /* Literal.Number.Integer.Long */
|