Commit Graph

69 Commits

Author SHA1 Message Date
Paul O’Shannessy
77150630e2 Merge pull request #1542 from remixz/gh-1420
Add harmony transform support in browser

Fixes #1420. Moved some code around in the merge to account for more
changes in the transform code.

Conflicts:
	vendor/browser-transforms.js
2014-06-20 10:55:06 -04:00
Bojan Mihelac
84135bc605 Missing semicolon in TodoStore.js 2014-06-18 10:34:53 +02:00
Randall Randall
6d0e2feb52 Fix wording.
The Ballmer Peak XKCD suggests that it's a graph of ability, rather than bug frequency, which should be inversely correlated with ability.  A simple change of the wording fixes this terrible mishandling of Ballmer Peak data.
2014-06-12 10:15:13 -04:00
Ben Alpert
03df8d7de0 Ignore built todomvc-flux bundles 2014-05-26 20:27:48 -07:00
Ben Alpert
f761f770e1 Don't load todomvc-common/base.js
Fixes #1603.

It's unnecessary and makes a request to learn.json which doesn't exist.
2014-05-26 20:19:16 -07:00
Ben Alpert
db4a90a9ef Capitalize README for consistency 2014-05-26 20:14:54 -07:00
Ben Alpert
e1457a14fd Run all tests, fix indentation 2014-05-23 23:03:13 -07:00
Ben Alpert
1e268c3591 Merge pull request #1556 from joshma/flux-dispatcher-docs
Update Flux Dispatcher.dispatch and waitFor examples
2014-05-23 23:01:25 -07:00
Ben Alpert
3e30940bf3 Bump to React 0.10 in TodoMVC Flux 2014-05-23 16:09:47 -07:00
Joshua Ma
7954a861d1 Add more complicated fourth listener to AppDispatcher-test 2014-05-23 12:42:09 -07:00
Joshua Ma
a616742fce Configure todomvc-flux npm test to use jest 2014-05-23 12:36:38 -07:00
Joshua Ma
f8d0291874 Fix doc typo and remove underscore from local var 2014-05-23 12:34:40 -07:00
Ben Alpert
49652c8e20 Merge pull request #1575 from spicyj/dispatch-index
Make promise selection logic clearer
2014-05-21 15:39:53 -07:00
Ben Alpert
4cb4bd0220 Add shims to examples
I find myself often using (modified) examples to test in IE and it's a pain to have to add the shims in every time. Might as well just add them in always.
2014-05-21 00:07:18 -07:00
Ben Alpert
e58899cdff Make promise selection logic clearer 2014-05-20 17:09:05 -07:00
Joshua Ma
de1f783188 Update todomvc dispatcher to match docs, add AppDispatcher test 2014-05-17 22:01:18 -07:00
remixz
3f31ec463f Change harmony option to "harmony=true" 2014-05-14 15:50:35 -07:00
remixz
65c258a7b7 Add harmony transform support in browser (Fixes GH-1420)
I implemented this by checking for `type="text/jsx;harmony"`, since this
has a bit of a cleaner implementation rather than parsing a JSON object
out of a data attribute. If in the future there are other options to
pass, it would make sense to move to a system like that.

Along with adding support, there is also a new example added that's
the basic-jsx example with Harmony syntax.
2014-05-13 22:07:02 -07:00
Ben Alpert
d46e1588f9 Update Flux README to point at website post/docs 2014-05-12 01:33:53 -07:00
Ben Alpert
76abdddae8 todomvc-flux: Depend on uglify-js, not uglifyjs
Fixes #1505.

Confusingly, the uglify-js package provides the `uglifyjs` binary and `npm run-script build` didn't work if uglify-js wasn't installed globally; now it does.
2014-05-12 01:14:01 -07:00
volkanunsal
035a648a2d Update Dispatcher.js 2014-05-05 12:20:25 -04:00
volkanunsal
c81c07c816 Update Dispatcher.js 2014-05-04 19:15:44 -04:00
volkanunsal
a7823a3624 Update Dispatcher.js 2014-05-04 19:08:46 -04:00
volkanunsal
31477dbf94 Update Dispatcher.js
I think Array.filter expects a boolean return value, am I correct?
2014-05-04 19:04:51 -04:00
Ben Alpert
f1096c6bb3 Fix ASCII-art arrow alignment 2014-05-03 23:45:12 -03:00
Pete Hunt
b02a5dc0f8 Merge pull request #1479 from fisherwebdev/master
Clean up Flux documentation and add more info about dependencies btwn stores
2014-05-02 23:56:06 +02:00
fisherwebdev
b0f82bfe4c Clean up Flux documentation and add more info about managing dependencies between stores 2014-05-02 13:22:15 -07:00
Kyle Mathews
72b830ec4c Typo 2014-05-02 11:10:13 -07:00
petehunt
fa154e6e21 Add some backticks to flux docs 2014-05-02 16:44:43 +02:00
fisherwebdev
b97cf7a180 Additional Flux documentation 2014-05-02 07:17:49 -07:00
Andrey Popp
93fed1a459 Add basic CommonJS example with browserify 2014-04-29 21:57:08 +04:00
petehunt
9a78db3457 Initial add
Add readme

remove gitignore

fix graphic
2014-04-04 18:47:33 -07:00
fisherwebdev
85339bfdae TodoMVC Flux Example 2014-03-26 12:13:17 -07:00
Jeff Carpenter
652f5aea28 Remove unused variable 2014-03-10 19:48:13 -07:00
Pete Hunt
f34f0d2912 Update README.md 2014-02-24 14:25:09 -08:00
Cheng Lou
2f0507f730 Remove TodoMVCs from examples/
Fixes #1154.
Added a README to point to TodoMVC's site instead.
2014-02-21 14:31:54 -08:00
Ben Alpert
7b5da078c6 Make transitions example use CSSTransitionGroup 2014-02-16 14:11:42 -08:00
Fernando Correia
425fd2ca08 jQuery Mobile React Example 2014-01-12 17:04:42 -02:00
Ben Alpert
be75e3be66 Remove mentions of browserify in examples 2014-01-03 22:58:51 -07:00
David Hellsing
a79ef7fc29 Changed key from Math.random() to todo.cid
It doesn’t make much sense to generate a random key for each todo render, because it will re-draw all todo’s DOM nodes on each model change. I changed it to the unique identifier ``todo.cid`` already supplied by the backbone model.
2013-11-26 18:07:56 +01:00
Pete Hunt
dab167c0e3 Merge pull request #460 from chenglou/opacity-1
fix doc & example transition opacity from .99 to 1
2013-11-13 17:31:08 -08:00
Cheng Lou
d6cbc710bd remove examples/wrapup
Apparently it's no longer relevant.
2013-11-03 15:41:40 -05:00
Cheng Lou
e455e28ff8 fix doc & example transition opacity from .99 to 1
The initial thought was that an opacity animation from 0.01 to 1 causes trouble on some browser. But after testing on opera 12.15, ff 23, ie 10, chrome 30, desktop/mobile safari 7 and chrome android I confirm this works.
2013-10-31 17:35:38 -04:00
Paul O’Shannessy
7da874d835 Add TransitionGroup example 2013-10-08 16:49:11 -07:00
Paul O’Shannessy
848a8e1180 Remove animation "example"
It was never a real example and shouldn't have been checked in.
2013-09-25 11:08:24 -07:00
Paul O’Shannessy
d83fe785c5 Stop transforming class -> className
Update the broken examples too (`git grep class=`)
2013-09-09 15:37:43 -07:00
Cheng Lou
78d305eb16 Fix backbone todo example bugs.
Fixed:
- New todo not submitting correctly (page refreshes. `preventDefault`
wasn't there.
- Old checked todo being removed will leave the checkmark on the next
todo replacing its position.
- Cannot change todo (`value`'s now a controlled field).
- `autofocus` (should be `autoFocus`, how ironic given the current
situation) on new todo input isn't working. Switched to manual
`focus()` in `componentDidMount` for now.
- More consistent breathing space between lines.
- Gutter at 80.

Added:
- Use todomvc-common base.css. The old one had to change ids to
classes. No longer necessary.
- Give `cx` a better name and move it in `Utils`.
- Trim input upon finishing edit.
- Remove todo if the new edited value is empty.
- Submit edited todo value on input blur.
- README to explain the existence of this example. Being able to
maintain a non-compilant version allows nice deviations from the
todomvc specs, such as animations, in the future.
2013-09-07 17:44:05 -04:00
Cheng Lou
2b9c34b5c7 sync with tastejs todomvc 2013-08-31 21:54:37 -04:00
Peter Cottle
a21556314d Fix Github links in examples
Looks like we link to github.com/facebook/react/ instead of react-js. This just fixes the links

`grep -r "facebook/react.js" .` comes up clean now
2013-08-04 16:40:12 -07:00
Daniel Gasienica
6f2848f4a6 Fix incorrect port of standard Python server
/ht @zpao
2013-07-29 10:59:43 -07:00