forked from cory/tildefriends
		
	Move most of the specification of terminal API client-side, so that the terminal can be changed without restarting the core. Add descriptions to some packages. Other minor improvements.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3222 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
		| @@ -1,5 +1,7 @@ | ||||
| "use strict"; | ||||
|  | ||||
| //! {"description": "A list of all packages and connected users"} | ||||
|  | ||||
| core.register("onSessionBegin", index); | ||||
| core.register("onSessionEnd", index); | ||||
|  | ||||
| @@ -64,7 +66,8 @@ function index() { | ||||
| 			terminal.print( | ||||
| 				"* ", | ||||
| 				{href: "/~" + app.owner + "/" + app.name}, | ||||
| 				message); | ||||
| 				message, | ||||
| 				app.manifest && app.manifest.description ? " - " + app.manifest.description.toString() : ""); | ||||
| 		}); | ||||
| 		terminal.uncork(); | ||||
| 	}); | ||||
|   | ||||
| @@ -1,5 +1,7 @@ | ||||
| "use strict"; | ||||
|  | ||||
| //! {"description": "Massively multiplayer online Turtle Graphics"} | ||||
|  | ||||
| // This script runs server-side, once for each client session. | ||||
|  | ||||
| if (imports.terminal) { | ||||
|   | ||||
| @@ -118,12 +118,12 @@ function testEdit(event) { | ||||
| 	}); | ||||
| } | ||||
|  | ||||
| if (imports.terminal) { | ||||
| /*if (imports.terminal) { | ||||
| 	fileList({ | ||||
| 		title: "Test File List", | ||||
| 		prefix: "fileList_", | ||||
| 		edit: testEdit, | ||||
| 	}); | ||||
| } | ||||
| }*/ | ||||
|  | ||||
| exports.fileList = fileList; | ||||
| @@ -783,7 +783,7 @@ function schedulePing(socket) { | ||||
| terminal.split([ | ||||
| 	{type: "horizontal", children: [ | ||||
| 		{name: "terminal", grow: 1}, | ||||
| 		{name: "users", basis: "2in", grow: 0, shrink: 0}, | ||||
| 		{name: "users", basis: "2in", grow: "0", shrink: "0"}, | ||||
| 	]}, | ||||
| ]); | ||||
| terminal.select("terminal"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user