This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/todomvc/react/js/app.js b/todomvc/react/js/app.js | |
index c72cd7d..5b88cd5 100755 | |
--- a/todomvc/react/js/app.js | |
+++ b/todomvc/react/js/app.js | |
@@ -23,7 +23,6 @@ | |
return { | |
todos: todos, | |
nowShowing: ALL_TODOS, | |
- editing: null | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uncaught Error: Invariant Violation: You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side. |
atom-shellとNode-Webkitとの技術的な違い
Node-Webkitのように、atom-shwllはJavaScriptとHTMLでデスクトップアプリケーションを書くダメのプラットフォームを提供します。そしてシステムのローレベルな権限へのアクセスも可能です。
しかしながら、そこには根本的な違いがあって、atom-shellはNode-Webkitとは完全に別なプロダクトになっています。
1. Entry of application
Node-WebkitはアプリケーションのエントリポイントがWebページで、package.jsonにメインページを指定します。そしてそれがアプリケーションのメインウィンドウとしてブラウザで開かれます。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "App.request", -> | |
beforeEach -> | |
sinon.stub(App, "request").yieldsTo('done', {res: "ok"}) | |
afterEach -> | |
App.request.restore() | |
it "res should be 'ok'", (done) -> | |
App.request( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "App.request", -> | |
beforeEach -> | |
sinon.stub(App, "request").yieldsTo('done', {res: "ok"}) | |
afterEach -> | |
App.request.restore() | |
it "res should be 'ok'", (done) -> | |
App.request( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "App.request", -> | |
deferred = null | |
beforeEach -> | |
deferred = $.Deferred() | |
sinon.stub(App, "request").returns deferred.promise() | |
afterEach -> | |
App.request.restore() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body { | |
font: 13px Helvetica, Arial; | |
} |