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 5f5f164 commit 0479fae
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ and inits them.</td></tr><tr valign="top"><td>getBillboard</td><td>function</td>
is used by the home page, the workspace picker, and the fork pulldown to show a
consistent name/image/description tag for the workspace throughout the ChiliPeppr ecosystem.</td></tr><tr valign="top"><td>addBillboardToWorkspaceMenu</td><td>function</td><td>function () <br><br>Inject the billboard into the Workspace upper right corner pulldown which
follows the standard template for workspace pulldown menus.</td></tr><tr valign="top"><td>setupResize</td><td>function</td><td>function () <br><br>Listen to window resize event.</td></tr><tr valign="top"><td>onResize</td><td>function</td><td>function () <br><br>When browser window resizes, forcibly resize the Console window</td></tr><tr valign="top"><td>loadTemplateWidget</td><td>function</td><td>function (callback) <br><br>Load the Template widget via chilipeppr.load() so folks have a sample
widget they can fork as a starting point for their own.</td></tr><tr valign="top"><td>loadSpjsWidget</td><td>function</td><td>function (callback) <br><br>Load the Serial Port JSON Server widget via chilipeppr.load()</td></tr><tr valign="top"><td>loadSenscapeBootloaderWidget</td><td>function</td><td>function (callback) <br><br>Load Senscape Bootloader Wedget via chilipeppr.load()</td></tr><tr valign="top"><td>loadLuaEditorWidget</td><td>function</td><td>function (callback) <br><br>Load the Lua Editor Widget widget via chilipeppr.load()</td></tr><tr valign="top"><td>loadConsoleWidget</td><td>function</td><td>function (callback) <br><br>Load the Console widget via chilipeppr.load()</td></tr><tr valign="top"><td>loadWorkspaceMenu</td><td>function</td><td>function (callback) <br><br>Load the workspace menu and show the pubsubviewer and fork links using
widget they can fork as a starting point for their own.</td></tr><tr valign="top"><td>loadSpjsWidget</td><td>function</td><td>function (callback) <br><br>Load the Serial Port JSON Server widget via chilipeppr.load()</td></tr><tr valign="top"><td>loadSenscapeBootloaderWidget</td><td>function</td><td>function (callback) <br><br>Load Senscape Bootloader Wedget via chilipeppr.load()</td></tr><tr valign="top"><td>loadDropTestWidget</td><td>function</td><td>function (callback) <br><br>Load Senscape Bootloader Wedget via chilipeppr.load()</td></tr><tr valign="top"><td>loadLuaEditorWidget</td><td>function</td><td>function (callback) <br><br>Load the Lua Editor Widget widget via chilipeppr.load()</td></tr><tr valign="top"><td>loadConsoleWidget</td><td>function</td><td>function (callback) <br><br>Load the Console widget via chilipeppr.load()</td></tr><tr valign="top"><td>loadWorkspaceMenu</td><td>function</td><td>function (callback) <br><br>Load the workspace menu and show the pubsubviewer and fork links using
our pubsubviewer widget that makes those links for us.</td></tr>
</tbody>
</table>
Expand Down
26 changes: 26 additions & 0 deletions auto-generated-workspace.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
this.loadTemplateWidget();
this.loadSenscapeBootloaderWidget();
this.loadLuaEditorWidget();
this.loadDropTestWidget();

// Create our workspace upper right corner triangle menu
this.loadWorkspaceMenu();
Expand Down Expand Up @@ -284,6 +285,27 @@
);
}
);
},
/**
* Load Senscape Bootloader Wedget via chilipeppr.load()
*/
loadDropTestWidget: function(callback) {
chilipeppr.load(
"#drop-test-instance",
"http://raw.githubusercontent.com/chilipeppr/elem-dragdrop/master/auto-generated-widget.html",
function() {
// Callback after widget loaded into #myDivElemDragdrop
// Now use require.js to get reference to instantiated widget
cprequire(
["inline:drop-test"], // the id you gave your widget
function(myObjElemDragdrop) {
// Callback that is passed reference to the newly loaded widget
console.log("Element / Drag Drop just got loaded.", myObjElemDragdrop);
myObjElemDragdrop.init();
}
);
}
);
},
/**
* Load the Lua Editor Widget widget via chilipeppr.load()
Expand Down Expand Up @@ -410,6 +432,10 @@
</div>

</div>

<div id="drop-test-instance">
<p class="sample">drop test goes here</p>
</div>

<div id="mywidget1-instance">
<p class="sample">Widget 1 goes here</p>
Expand Down
4 changes: 4 additions & 0 deletions workspace.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
</div>

</div>

<div id="drop-test-instance">
<p class="sample">drop test goes here</p>
</div>

<div id="mywidget1-instance">
<p class="sample">Widget 1 goes here</p>
Expand Down
22 changes: 22 additions & 0 deletions workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ cpdefine("inline:com-chilipeppr-workspace-bastianf2", ["chilipeppr_ready"], func
this.loadTemplateWidget();
this.loadSenscapeBootloaderWidget();
this.loadLuaEditorWidget();
this.loadDropTestWidget();

// Create our workspace upper right corner triangle menu
this.loadWorkspaceMenu();
Expand Down Expand Up @@ -192,6 +193,27 @@ cpdefine("inline:com-chilipeppr-workspace-bastianf2", ["chilipeppr_ready"], func
);
}
);
},
/**
* Load Senscape Bootloader Wedget via chilipeppr.load()
*/
loadDropTestWidget: function(callback) {
chilipeppr.load(
"#drop-test-instance",
"http://raw.githubusercontent.com/chilipeppr/elem-dragdrop/master/auto-generated-widget.html",
function() {
// Callback after widget loaded into #myDivElemDragdrop
// Now use require.js to get reference to instantiated widget
cprequire(
["inline:drop-test"], // the id you gave your widget
function(myObjElemDragdrop) {
// Callback that is passed reference to the newly loaded widget
console.log("Element / Drag Drop just got loaded.", myObjElemDragdrop);
myObjElemDragdrop.init();
}
);
}
);
},
/**
* Load the Lua Editor Widget widget via chilipeppr.load()
Expand Down

0 comments on commit 0479fae

Please sign in to comment.