{"action":"created","issue":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/1133","labels_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/1133/labels{/name}","comments_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/1133/comments","events_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/1133/events","html_url":"https://github.com/code-dot-org/code-dot-org/pull/1133","id":55312813,"number":1133,"title":"Create netsim app","user":{"login":"islemaster","id":1615761,"avatar_url":"https://avatars.githubusercontent.com/u/1615761?v=3","gravatar_id":"","url":"https://api.github.com/users/islemaster","html_url":"https://github.com/islemaster","followers_url":"https://api.github.com/users/islemaster/followers","following_url":"https://api.github.com/users/islemaster/following{/other_user}","gists_url":"https://api.github.com/users/islemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/islemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/islemaster/subscriptions","organizations_url":"https://api.github.com/users/islemaster/orgs","repos_url":"https://api.github.com/users/islemaster/repos","events_url":"https://api.github.com/users/islemaster/events{/privacy}","received_events_url":"https://api.github.com/users/islemaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-23T18:07:16Z","updated_at":"2015-01-23T20:21:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/1133","html_url":"https://github.com/code-dot-org/code-dot-org/pull/1133","diff_url":"https://github.com/code-dot-org/code-dot-org/pull/1133.diff","patch_url":"https://github.com/code-dot-org/code-dot-org/pull/1133.patch"},"body":"This is an 'initial commit' for getting an empty \"Internet simulator\" (abbr: netsim) placeholder in place.  You can see it at `/s/netsim/stage/1/puzzle/1`:\r\n![screenshot from 2015-01-23 09 55 00](https://cloud.githubusercontent.com/assets/1615761/5879668/f6660444-a2e5-11e4-9fdd-3592b68964be.png)\r\nThe scariest part of this change is that we're introducing an app for which neither `usingBlockly_` nor `editCode` are true.  Moving forward there will be some significant work to stop treating those as a single binary value.  For now I've introduced a couple of new configuration options on StudioApp.\r\n\r\n1. `isEditorless`: Defaults to false, set to true for netsim.  Mostly a hack for turning both `usingBlockly_` and `editCode` off, and dealing with the consequences later.\r\n2. `usesCustomLayout`: Defaults to false, set to true for netsim.  Maps inversely to private `usesStandardLayout_`.  I've given netsim its own [page.html.ejs](page.html.ejs) because it's going to have a heavily customized layout, and doesn't necessarily need the standard vizualization column, run button, toolbox and show_code headers, etc.  That said, StudioApp makes a number of assumptions about which elements are present on the page, and it needs to know when a nonstandard layout is being used.  This probably merits a refactor at some point."},"comment":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/comments/71259055","html_url":"https://github.com/code-dot-org/code-dot-org/pull/1133#issuecomment-71259055","issue_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/1133","id":71259055,"user":{"login":"islemaster","id":1615761,"avatar_url":"https://avatars.githubusercontent.com/u/1615761?v=3","gravatar_id":"","url":"https://api.github.com/users/islemaster","html_url":"https://github.com/islemaster","followers_url":"https://api.github.com/users/islemaster/followers","following_url":"https://api.github.com/users/islemaster/following{/other_user}","gists_url":"https://api.github.com/users/islemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/islemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/islemaster/subscriptions","organizations_url":"https://api.github.com/users/islemaster/orgs","repos_url":"https://api.github.com/users/islemaster/repos","events_url":"https://api.github.com/users/islemaster/events{/privacy}","received_events_url":"https://api.github.com/users/islemaster/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T20:21:53Z","updated_at":"2015-01-23T20:21:53Z","body":"@Bjvanminnen changed according to your comment about overriding onResize, and did the same with configureDom since it's also dramatically different for the netsim case.  This allowed me to remove the standard layout/custom layout parameter entirely. "}}