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:
2016-04-30 10:50:43 +00:00
parent 9668723200
commit 25d97e5e3b
7 changed files with 44 additions and 48 deletions

View File

@ -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();
});

View File

@ -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) {

View File

@ -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;

View File

@ -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");