Browse files

updating the side bar

  • Loading branch information...
1 parent a34fd96 commit 6544916f8883eb623e29f281c7f53fc6312d59c3 @matthewfl matthewfl committed Dec 12, 2010
Showing with 9 additions and 5 deletions.
  1. +2 −2 Bespin/control.js
  2. +7 −3 static/index.html
View
4 Bespin/control.js
@@ -392,7 +392,7 @@ exports.logoutCommand = function (args, request) {
exports.loginCommand = function (args,request) {
if(userName !== null) return exports.logoutCommand();
request.done();
- $.facebox('<div id="login" class="bespin"><form action="/newUser" method="post" type="input">User:<input id="userName" name="userName" type="input" style="color:#000; width:90%;"/><br>Password:<input id="password" name="password" type="password" style="color:#000; width: 90%; "/><div id="moreUser" style="display:none;">Password Again:<input id="password2" name="password2" type="password" style="color: #000; width:90%" /><br>Email:<input id="userEmail" name="userEmail" type="input" style="color: #000; width:90%" /></div><br><input value="login" type="button" id="loginButton" style="width:40%; display: inline;" /><input value="new user" type="submit" id="newUserButton" style="width:40%; display:inline;"/></form></div>');
+ $.facebox('<div id="login" class="bespin"><p>Check out the new profile and sharing command listing in the sidebar</p><form action="/newUser" method="post" type="input">User:<input id="userName" name="userName" type="input" style="color:#000; width:90%;"/><br>Password:<input id="password" name="password" type="password" style="color:#000; width: 90%; "/><div id="moreUser" style="display:none;">Password Again:<input id="password2" name="password2" type="password" style="color: #000; width:90%" /><br>Email:<input id="userEmail" name="userEmail" type="input" style="color: #000; width:90%" /></div><br><input value="login" type="button" id="loginButton" style="width:40%; display: inline;" /><input value="new user" type="submit" id="newUserButton" style="width:40%; display:inline;"/></form></div>');
setTimeout('$("#userName").focus();', 30);
$("#userName,#password").keypress(function (e) {
if(e.keyCode == '13') {
@@ -575,7 +575,7 @@ exports.deleteCommand = function (args, request) {
if(fileList.indexOf(name)!=-1) {
Ajax.Call({
"action": "delete",
- "name": name,
+ "name": name
}, function (d) {
request.done(d ? "File deleted" : "failed to delete");
if(d) {
View
10 static/index.html
@@ -66,7 +66,7 @@
<body>
<div id="editor" class="bespin" data-bespinoptions='{ "settings": { "tabstop": 2, "maxConsoleHeight": 150 }, "syntax": "js", "stealFocus": true }'>{CODE}</div>
<div id="entro">
-<h2>Welcome to JsApp.US</h2>
+<h2>Welcome to JsApp.US <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://jsapp.us" data-text="JSApp.US: quick way to try #nodejs and host web based node application" data-count="horizontal" data-related="matthewfl">Tweet</a></h2>
<p>JsApp.US is a hosting platform for <a href="http://nodejs.org">node.js</a> applications. It is setup to be a platform to coddle to quick, weekend hack like projects.</p>
<p>To get started you can run the test command from the bottom command line or press Control-b.</p>
<br>
@@ -86,6 +86,10 @@
<tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#save" cmd="save">save</a></td><td>Ctrl-s</td><td>Save a file to the vitural file system</td></tr>
<tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#open" cmd="open">open</a></td><td>Ctrl-o</td><td>Open a file by name</td></tr>
<tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#list" cmd="ls">list/ls</a></td><td></td><td>List files on vitural file system</td></tr>
+ <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#delete" cmd="rm">delete/rm</a></td><td></td><td>Delete a file from the vitural file system</td></tr>
+ <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#rename" cmd="mv">rename/mv</a></td><td></td><td>Rename a file on the vitural file system</td></tr>
+ <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#profile" cmd="profile">profile</a></td><td></td><td>Edit a user profile</td></tr>
+ <tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#files" cmd="files">files</a></td><td></td><td>Manage files on the vitural file system</td></tr>
<tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#deploy" cmd="deploy">deploy</a></td><td></td><td>Deploy a project to a subdomain for public viewing</td></tr>
<tr><td><a href="https://github.com/matthewfl/node-host/wiki/Commands#login_logout" cmd="logout">logout</a></td><td>Ctrl-l</td><td></td></tr>
</table>
@@ -94,9 +98,9 @@
<br>
<a href="https://github.com/matthewfl/node-host/wiki/Api" target="_blank">Database API</a>
<br><a href="https://github.com/matthewfl/node-host/issues" target="_blank">Issue tracking</a>
-<br><br>
-Share JsApp.US: <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://jsapp.us" data-text="JSApp.US: quick way to try #nodejs and host web based node application" data-count="horizontal" data-related="matthewfl">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
+<br><a href="http://matthewfl.com/category/jsapp-us" target="_blank">Blog</a>
</div>
+<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script type="text/javascript">
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

0 comments on commit 6544916

Please sign in to comment.