Skip to content

Commit

Permalink
Made some changes to ChiliPeppr myWorkspace using Cloud9
Browse files Browse the repository at this point in the history
  • Loading branch information
bastian-f committed Jul 3, 2017
1 parent 0479fae commit 20a4c79
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ To better understand how ChiliPeppr's publish() method works see amplify.js's do
</tr>
</thead>
<tbody>
<tr><td colspan="2">(No signals defined in this workspace)</td></tr>
<tr valign="top"><td>/com-chilipeppr-workspace-bastianf2/com-chilipeppr-elem-dragdrop/ondragover</td><td>The Chilipeppr drag drop element will publish on channel /com-chilipeppr-elem-dragdrop/ondropped when a file is dropped so we subscribe to it so we can load a Gcode file when the user drags it onto the browser. It also adds a hover class to the bound DOM elem so we can add a CSS to hilite on hover</td></tr><tr valign="top"><td>/com-chilipeppr-workspace-bastianf2/com-chilipeppr-elem-dragdrop/ondragleave</td><td>We need to know when the drag is over to remove the CSS hilites.</td></tr><tr valign="top"><td>/com-chilipeppr-workspace-bastianf2/com-chilipeppr-widget-gcode/resize</td><td>We watch if the Gcode viewer resizes so that we can reposition or resize other elements in the workspace. Specifically we ask the Serial Port Console to resize. We also redraw the 3D Viewer so it fills the whole screen.</td></tr>
</tbody>
</table>

Expand All @@ -135,7 +135,7 @@ The table below shows, in order, the methods and properties inside the workspace
</tr>
</thead>
<tbody>
<tr valign="top"><td>id</td><td>string</td><td>"com-chilipeppr-workspace-bastianf2"<br><br>The ID of the widget. You must define this and make it unique.</td></tr><tr valign="top"><td>name</td><td>string</td><td>"Workspace / bastianf2"</td></tr><tr valign="top"><td>desc</td><td>string</td><td>"A ChiliPeppr Workspace bastianf2."</td></tr><tr valign="top"><td>url</td><td>string</td><td>"http://raw.githubusercontent.com/bastian-f/workspace-bastianf2/master/auto-generated-workspace.html"</td></tr><tr valign="top"><td>fiddleurl</td><td>string</td><td>"http://ide.c9.io/bastianf/chillipeppr-test-2"</td></tr><tr valign="top"><td>githuburl</td><td>string</td><td>"http://github.com/bastian-f/workspace-bastianf2"</td></tr><tr valign="top"><td>testurl</td><td>string</td><td>"http://chillipeppr-test-2-bastianf.c9users.io/workspace.html"</td></tr><tr valign="top"><td>widgetConsole</td><td>object</td><td>Contains reference to the Console widget object. Hang onto the reference
<tr valign="top"><td>id</td><td>string</td><td>"com-chilipeppr-workspace-bastianf2"<br><br>The ID of the widget. You must define this and make it unique.</td></tr><tr valign="top"><td>name</td><td>string</td><td>"Workspace / bastianf2"</td></tr><tr valign="top"><td>desc</td><td>string</td><td>"A ChiliPeppr Workspace bastianf2."</td></tr><tr valign="top"><td>url</td><td>string</td><td>"http://raw.githubusercontent.com/bastian-f/workspace-bastianf2/master/auto-generated-workspace.html"</td></tr><tr valign="top"><td>fiddleurl</td><td>string</td><td>"http://ide.c9.io/bastianf/chillipeppr-test-2"</td></tr><tr valign="top"><td>githuburl</td><td>string</td><td>"http://github.com/bastian-f/workspace-bastianf2"</td></tr><tr valign="top"><td>testurl</td><td>string</td><td>"http://chillipeppr-test-2-bastianf.c9users.io/workspace.html"</td></tr><tr valign="top"><td>foreignSubscribe</td><td>object</td><td>Please see docs above.</td></tr><tr valign="top"><td>widgetConsole</td><td>object</td><td>Contains reference to the Console widget object. Hang onto the reference
so we can resize it when the window resizes because we want it to manually
resize to fill the height of the browser so it looks clean.</td></tr><tr valign="top"><td>widgetSpjs</td><td>object</td><td>Contains reference to the Serial Port JSON Server object.</td></tr><tr valign="top"><td>init</td><td>function</td><td>function () <br><br>The workspace's init method. It loads the all the widgets contained in the workspace
and inits them.</td></tr><tr valign="top"><td>getBillboard</td><td>function</td><td>function () <br><br>Returns the billboard HTML, CSS, and Javascript for this Workspace. The billboard
Expand Down
5 changes: 5 additions & 0 deletions auto-generated-workspace.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@
fiddleurl: "http://ide.c9.io/bastianf/chillipeppr-test-2", // The edit URL. This can be auto-filled by runme.js in Cloud9 if you'd like, or just define it on your own to help people know where they can edit/fork your widget
githuburl: "http://github.com/bastian-f/workspace-bastianf2", // The backing github repo
testurl: "http://chillipeppr-test-2-bastianf.c9users.io/workspace.html", // The standalone working widget so can view it working by itself
foreignSubscribe: {
"/com-chilipeppr-elem-dragdrop/ondragover": "The Chilipeppr drag drop element will publish on channel /com-chilipeppr-elem-dragdrop/ondropped when a file is dropped so we subscribe to it so we can load a Gcode file when the user drags it onto the browser. It also adds a hover class to the bound DOM elem so we can add a CSS to hilite on hover",
"/com-chilipeppr-elem-dragdrop/ondragleave": "We need to know when the drag is over to remove the CSS hilites.",
"/com-chilipeppr-widget-gcode/resize": "We watch if the Gcode viewer resizes so that we can reposition or resize other elements in the workspace. Specifically we ask the Serial Port Console to resize. We also redraw the 3D Viewer so it fills the whole screen."
},
/**
* Contains reference to the Console widget object. Hang onto the reference
* so we can resize it when the window resizes because we want it to manually
Expand Down
5 changes: 5 additions & 0 deletions workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ cpdefine("inline:com-chilipeppr-workspace-bastianf2", ["chilipeppr_ready"], func
fiddleurl: "(auto fill by runme.js)", // The edit URL. This can be auto-filled by runme.js in Cloud9 if you'd like, or just define it on your own to help people know where they can edit/fork your widget
githuburl: "(auto fill by runme.js)", // The backing github repo
testurl: "(auto fill by runme.js)", // The standalone working widget so can view it working by itself
foreignSubscribe: {
"/com-chilipeppr-elem-dragdrop/ondragover": "The Chilipeppr drag drop element will publish on channel /com-chilipeppr-elem-dragdrop/ondropped when a file is dropped so we subscribe to it so we can load a Gcode file when the user drags it onto the browser. It also adds a hover class to the bound DOM elem so we can add a CSS to hilite on hover",
"/com-chilipeppr-elem-dragdrop/ondragleave": "We need to know when the drag is over to remove the CSS hilites.",
"/com-chilipeppr-widget-gcode/resize": "We watch if the Gcode viewer resizes so that we can reposition or resize other elements in the workspace. Specifically we ask the Serial Port Console to resize. We also redraw the 3D Viewer so it fills the whole screen."
},
/**
* Contains reference to the Console widget object. Hang onto the reference
* so we can resize it when the window resizes because we want it to manually
Expand Down

0 comments on commit 20a4c79

Please sign in to comment.