Commit Graph
15395 Commits
Author SHA1 Message Date
Ben Newman 83029eb756 Make the bin/jsx source and output directories configurable. 2013-06-03 13:20:13 -04:00
Paul O’Shannessy 99c577e210 Merge pull request #38 from camspiers/range-attributes
Add attributes used in input[type=range]
2013-06-03 10:19:19 -07:00
petehunt dd92335dc4 Merge pull request #46 from jordow/ChromeInstructions
Adding instructions for chrome. (No server needed! Just execute a single...
2013-06-03 03:22:19 -07:00
jordow 8c37499af8 Adding instructions for chrome. (No server needed! Just execute a single command
line to load in Chrome).
2013-06-03 02:43:48 -07:00
petehunt a32276e400 Fix bug in todomvc 2013-06-03 00:44:20 -07:00
petehunt 83b8ad7a31 Add TODOMVC features 2013-06-03 00:34:23 -07:00
Paul O’Shannessy dfdf1f82ae Merge pull request #44 from vjeux/script_download
Add <script> tags in the download page for easy embed
2013-06-02 17:25:49 -07:00
Vjeux cbda00c415 Add <script> tags in the download page for easy embed 2013-06-03 02:17:26 +02:00
Vjeux 21dab3d7d8 Add JSFiddle to the getting started section 2013-06-03 01:59:06 +02:00
Vjeux 9b399968eb Add a base link without JSX 2013-06-03 01:28:22 +02:00
Vjeux df361e9dd6 Adding \n at the end of the files 2013-06-03 01:06:05 +02:00
Vjeux 245f501120 Adding a left menu navigation 2013-06-03 01:04:19 +02:00
Vjeux 1902eafa8d Initial version of the blog 2013-06-03 00:48:15 +02:00
David Hu 7795968382 Consistently use autoBind on homepage examples
Except for todo.js, all the other examples on the homepage use React.autoBind
when defining event handler methods.

Test Plan: Added todo items successfully
2013-06-02 12:04:16 -07:00
Cam Spiers 415192c001 Add attributes used in input[type=range] 2013-06-02 13:32:12 +12:00
Ben Alpert 580e8f0dbb Simulate input event instead of relying on native
Test Plan:
With the ballmer-peak example (modified to use input), tested that the
percentage updates when adding or deleting text in the field on Chrome
and IE9. After adding es5-shim and es5-sham to the ballmer-peak page,
IE8 works properly too.
2013-06-01 16:55:19 -07:00
petehunt 095fccb974 ReactDOM->React.DOM 2013-06-01 13:01:52 -07:00
Ben Newman ebff2bc7a3 Merge pull request #36 from jeffreylin/master
Fix live_editor.js usage of class=
2013-06-01 06:37:55 -07:00
Jeffrey Lin a78f752143 Fix live_editor.js usage of class= 2013-05-31 20:50:21 -07:00
Paul O’Shannessy a70d567ec6 v0.3.2
Also some tweaks to package.json details.
2013-05-31 17:10:08 -07:00
petehunt 8d259093bf Merge pull request #34 from zpao/npm-ship-modules
Ship CJS modules instead of browserified build
2013-05-31 15:41:59 -07:00
Paul O’Shannessy 0c6bbf275b Ship CJS modules instead of browserified build
It turns out that if you try to browserify a file requiring react-tools,
it doesn't work. This is because browserify just visits the require
statements in the file and looks for files in that path.
./ReactCompositeComponent doesn't exist and that's the point that fails.
So the fix is to actually ship each of our CJS modules as individual
files like browserify expects. This should have no negative side effects
- we still only export React (though the rest of our modules are now
actually accessible, which might make it easier to do more with the
module).

The other change here is to move source-map to dependencies since it's
required in the transform code.

Test Plan:

```
$ npm pack .
$ cd /tmp
$ npm install path/to/react-tools-0.3.1.tgz
$ echo "require('react-tools')" > test.js
$ browserify test.js
```
2013-05-31 10:57:40 -07:00
petehunt 824a2e0630 Merge pull request #33 from spicyj/docs-fix
Update stale event docs in tutorial
2013-05-31 09:52:20 -07:00
Ben Newman 70a99cd1ee Merge pull request #20 from benjamn/issue-12-test-install-package
Provide `grunt npm:test` for verifying NPM package functionality
2013-05-31 07:39:42 -07:00
Ben Newman 60a6665bbd Provide grunt npm:test for verifying NPM package functionality.
This basically calls `npm pack`, installs the resulting package in a temporary directory, then requires it and attempts to use the .transform method.

Closes #12.
2013-05-31 10:35:39 -04:00
Ben Alpert 2e5dae0c25 Add return false; to onSubmit handlers 2013-05-31 01:46:55 -07:00
Jeff Morrison 2d253fe1dc Merge pull request #27 from seiffert/master
JSX Transformer / DisplayName Visitor: Multiple declarations with one `var` statement
2013-05-30 22:25:51 -07:00
petehunt bb4788e997 Merge pull request #31 from spicyj/immutable-state
Change TodoMVC to not modify state in place
2013-05-30 22:19:59 -07:00
Paul Seiffert 510ced1d13 Removed duplicate object type check 2013-05-31 07:13:49 +02:00
Ben Alpert 767391c26e Wording tweaks 2013-05-30 20:21:44 -07:00
Ben Alpert 6e805dda24 Change TodoMVC to not modify state in place
Instead, use .concat and make a new todos array.

Test Plan:
Added todo items successfully.
2013-05-30 20:19:19 -07:00
Ben Alpert ea82dba555 Update stale event docs in tutorial
The example uses onSubmit but the docs were still referring to onKeyUp.
2013-05-30 18:24:48 -07:00
Ben Alpert 2467c0e651 Update examples to use onInput instead of onKeyUp
onInput has the advantage that it responds to repeated key events before
onKeyUp and is called when modifying the input without the keyboard
(such as pasting with the mouse).

Test Plan:
Opened the ballmer-peak example and docs homepage in Chrome and checked
that both examples update whenever the text is changed.
2013-05-30 18:20:34 -07:00
Ben Alpert 292dd238e7 Add new onInput event
'input' is supported in IE9+ and all other browsers according to
https://developer.mozilla.org/en-US/docs/Web/API/window.oninput

Test Plan:
Modified ballmer-peak example to use onInput instead of onKeyUp and
tested that it works properly on latest Chrome.
2013-05-30 18:20:34 -07:00
Paul O’Shannessy b20a7c2beb Bump docs version to v0.3.1 2013-05-30 15:06:46 -07:00
Paul O’Shannessy de2832c0c0 Only re-write docs _config on version bumps
Doesn't fix, but mostly addresses the concerns in #24. Some churn at
version bumps is far better than what we have right now.
2013-05-30 14:57:32 -07:00
Paul O’Shannessy d40704ab85 Bump to 0.3.1 2013-05-30 14:57:32 -07:00
Timothy Yung 2cde6ff60f Merge pull request #29 from petehunt/mixin-docs
[docs] Return of mixin docs
2013-05-30 14:52:43 -07:00
petehunt f586c58f96 @yungsters 2013-05-30 14:45:22 -07:00
petehunt 84d4bbb13d bla 2013-05-30 14:23:53 -07:00
petehunt 071201e84b fixes 2013-05-30 14:22:05 -07:00
petehunt 15d8200b13 oops 2013-05-30 14:20:50 -07:00
petehunt d73c2b23e0 Return of mixin docs 2013-05-30 14:20:50 -07:00
petehunt a808d48169 add localstorage, oops 2013-05-30 14:19:33 -07:00
Paul O’Shannessy 6ed829ff95 Merge branch 'master' of github.com:facebook/react 2013-05-30 11:54:14 -07:00
petehunt a52512863e Clean up todomvc examples: autoBind(), onSubmit 2013-05-30 11:53:23 -07:00
petehunt 4297b1ad55 remove unused const 2013-05-30 11:53:23 -07:00
Paul Seiffert b03f04ff24 Fixing Bug in JSX transformer
The bug fixed by this commit prevented the correct parsing of
`var` statements with multiple variables being declared. Instead
of trying to parse a whole 'variable declarations' (a `var`
statement with all its declarations), this visitor now only
parses single 'variable declarators'.
2013-05-30 20:51:15 +02:00
Paul O’Shannessy 86eeef1ccd Update bower install command
Fixes #21
2013-05-30 11:49:57 -07:00
Timothy Yung ce2d7991c9 Merge pull request #23 from yungsters/jsx-compiler
Add a JSX Compiler tool.
2013-05-30 11:41:24 -07:00