Commit Graph

40 Commits

Author SHA1 Message Date
Daniel Lo Nigro
4bfdaa7929 Move htmltojsx.js to React-Magic project.
The HTMLtoJSX file is really a part of the React-Magic project, and should belong there rather than here:
 - It doesn't really follow the release cycle of React at all
 - It is totally standalone with no dependency on React
 - The only usage of this script is in React-Magic and on the HTML to JSX page on the React website (http://facebook.github.io/react/html-jsx.html)

I've hotlinked it from the Github site for that project since this was the easiest way to pull it in.

Due to the fact that Github Pages lacks redirects (among other basic web hosting functionality), I've replaced the `html-jsx-lib.js` file with a comment explaining where the file has moved to, just in case anyone was hotlinking it from the React site.
2014-09-06 22:51:52 -07:00
Daniel Lo Nigro
5a6eac6ba2 Small tweaks to HTML to JSX page:
- Remove "Compiled JS" tab since it doesn't make sense
 - Relabelled editor to "Live HTML Editor" rather than "Live JSX Editor"
2014-08-31 21:48:10 -07:00
Ben Alpert
1cd3c3e7e9 Add --harmony option to live JSX compiler page 2014-06-28 17:29:30 -07:00
Paul O’Shannessy
d23ee2f817 Update copyrights for 2014.
grep -rl 'Copyright 2013 Facebook' static_upstream | xargs perl -pi -w -e s/Copyright 2013 Facebook/Copyright 2013-2014 Facebook/g;'

Not going to check in a script to do this since it will just change every year.
Closes #1006
2014-02-18 17:06:43 -08:00
Cheng Lou
8116e9cb38 [Docs] Hide compiled js tab in jsx-compiler.html
Fixes #1049
2014-02-10 23:22:59 -08:00
Ben Alpert
27087a5704 Disable CodeMirror smart indentation
Fixes #966.
2014-01-31 22:10:37 -08:00
Ben Alpert
2a4e16536d Merge pull request #914 from chenglou/jsx
tweak frontpage first example code
2014-01-17 18:27:51 -08:00
Cheng Lou
99304a3a20 [docs] Tweak frontpage first example and jsx-compiler example 2014-01-17 17:53:44 -08:00
Ben Alpert
dd2dc27184 Simplify live editor execution logic 2014-01-17 17:42:53 -08:00
Ben Alpert
d4553afa1f Properly clear live editor on JSX compile failure 2014-01-17 17:42:40 -08:00
Cheng Lou
353981f384 docs add jsx->js tab to live editors 2014-01-17 15:49:59 -08:00
Cheng Lou
c0a9df9e5b docs better error display for live editor and JSX compiler 2014-01-01 19:41:08 -05:00
Christopher Chedeau
b627e76d7c Merge pull request #755 from spicyj/cm-scroll
Upgrade codemirror and enable line wrapping
2013-12-30 20:56:59 -08:00
Ben Alpert
3e8520f9d8 Upgrade codemirror and enable line wrapping
Fixes #678.
2013-12-30 18:06:00 -07:00
Ben Alpert
2deed9882e IE8 style fixes
- Add html5shiv so that HTML5 elements like header, footer, etc can be styled
- Remove a couple uses of :first-child/:last-child which IE8 doesn't support
2013-12-30 17:17:17 -07:00
Christopher Chedeau
9f2a159628 Merge pull request #749 from spicyj/docs-ie8
Make React website work in IE8
2013-12-30 14:28:19 -08:00
Ben Alpert
315c58b7cf Make React website work in IE8
Fixes #406.

Empty conditional comment is for http://www.phpied.com/conditional-comments-block-downloads/.
2013-12-30 15:25:26 -07:00
jhiswin
daaed17d12 live_editor.js using deprecated function
unmountAndReleaseReactRootNode -> unmountComponentAtNode
breaks html-jsx.html
2013-12-29 09:42:35 -05:00
Vjeux
70941c0354 Fix html-jsx compiler
It changed React Playground to add a required props but unfortunately didn't update the call sites of the front-page. I don't think it should be required so I'm just making it optional and providing the correct default value.

Test Plan:
 - Open the front page and make sure examples are working
 - Open /react/jsx-compiler.html and make sure it is working
 - Open /react/html-jsx.html and make sure it is working
2013-12-23 18:24:22 +01:00
Daniel Lo Nigro
03b64bef0c Simple HTML to JSX converter, built during Hackathon 40 at Facebook.
See /react/html-jsx.html. Not directly linked from the site yet as there may still be some minor issues with it.
2013-12-21 17:44:38 -08:00
petehunt
3bf34d3255 Fix frontpage example to retain selection 2013-12-02 04:04:45 -08:00
Cheng Lou
0e18bc2843 make docs jsx compiler highlight transpiled js code 2013-11-25 19:04:28 -05:00
Paul O’Shannessy
9c8084f396 Fix live editor examples on home page.
Remember that one time I wrote release notes and said:

> This is a breaking change - if you were using class, you must change
> this to className or your components will be visually broken.

Good thing I didn't listen to myself!
2013-10-16 17:56:51 -07:00
Ben Alpert
8b5822bdf8 Fix all errors and warnings on homepage
Also onChange instead of onInput in two places!
2013-07-17 13:31:52 -07:00
Paul O’Shannessy
c3b5e071e5 Merge branch 'chenglou-master'
Conflicts:
	docs/_js/examples/markdown.js
2013-07-17 13:30:22 -07:00
Cheng Lou
bdd6911dff todo fix 2013-07-17 16:28:04 -04:00
Cheng Lou
084e726d3c jsx 2013-07-17 16:25:25 -04:00
Cheng Lou
d0b7884924 textarea format 2013-07-17 16:22:30 -04:00
Paul O’Shannessy
459daa63da Remove React.autoBind from examples 2013-07-16 23:44:09 -07:00
jordow
42ff8cf7dc Make todo example shorter and not rely on the DOM. 2013-06-07 13:11:40 -07:00
Paul O’Shannessy
b342c9ef2c Merge pull request #32 from spicyj/input
Add new onInput event
2013-06-05 14:57:25 -07:00
David Hu
efce85fe3c 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
Jeffrey Lin
b72f012fb7 Fix live_editor.js usage of class= 2013-05-31 20:50:21 -07:00
Ben Alpert
ccba6965b6 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
yungsters
01e8f9dff1 Revise 'live_editor.js' using JSX. 2013-05-30 11:31:21 -07:00
yungsters
c63eddc525 Add a JSX Compiler tool. 2013-05-30 11:26:36 -07:00
petehunt
f0805bee14 Docs updates per community response 2013-05-30 01:16:15 -07:00
Paul Shen
d12a80fb6e [docs] Fix couple minor typos/spelling 2013-05-29 13:37:07 -07:00
petehunt
a17b1662b7 Fix live editor on mobile devices 2013-05-29 13:24:51 -07:00
Paul O’Shannessy
eb278167cd Initial public release 2013-05-29 12:54:02 -07:00