2002-11-22 14:32:46 +00:00
|
|
|
function read_action () {
|
|
|
|
this.readApplication ();
|
|
|
|
res.redirect (this.href("main"));
|
|
|
|
}
|
|
|
|
|
2002-11-21 18:36:03 +00:00
|
|
|
function main_action () {
|
2002-11-22 11:55:42 +00:00
|
|
|
if (checkAddress()==false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement ())==false)
|
|
|
|
return;
|
2002-11-21 18:36:03 +00:00
|
|
|
this.renderSkin ("frameset");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function prototypes_action () {
|
2002-11-22 11:55:42 +00:00
|
|
|
if (checkAddress()==false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement ())==false)
|
|
|
|
return;
|
2002-11-21 18:36:03 +00:00
|
|
|
res.data.body = this.renderSkinAsString ("prototypes");
|
|
|
|
renderSkin ("api");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function summary_action () {
|
2002-11-22 11:55:42 +00:00
|
|
|
if (checkAddress()==false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement ())==false)
|
|
|
|
return;
|
2002-11-21 18:36:03 +00:00
|
|
|
res.data.body = this.renderSkinAsString ("summary");
|
|
|
|
renderSkin ("api");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-11-22 11:39:11 +00:00
|
|
|
function functionindex_action () {
|
2002-11-22 11:55:42 +00:00
|
|
|
if (checkAddress()==false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement ())==false)
|
|
|
|
return;
|
2002-11-22 11:39:11 +00:00
|
|
|
res.data.body = this.renderSkinAsString ("functionindex");
|
|
|
|
renderSkin ("api");
|
|
|
|
}
|
|
|
|
|
2002-11-21 18:36:03 +00:00
|
|
|
|
|
|
|
function render_action () {
|
2002-11-22 11:55:42 +00:00
|
|
|
if (checkAddress()==false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement ())==false)
|
|
|
|
return;
|
2002-11-22 11:39:11 +00:00
|
|
|
res.writeln("<html><head><title>render</title></head><body>rendering API ... ");
|
2002-11-21 18:36:03 +00:00
|
|
|
var prefix = this.href ("");
|
2002-11-22 14:32:46 +00:00
|
|
|
this.storePage (this, "main", "", "index.html");
|
2002-11-21 18:36:03 +00:00
|
|
|
this.storePage (this, "prototypes");
|
|
|
|
this.storePage (this, "summary");
|
2002-11-22 11:39:11 +00:00
|
|
|
this.storePage (this, "functionindex");
|
|
|
|
var ct = 4;
|
2002-11-21 18:36:03 +00:00
|
|
|
var arr = this.listChildren ();
|
|
|
|
for (var i=0; i<arr.length; i++) {
|
|
|
|
this.storePage (arr[i], "list", "../");
|
|
|
|
this.storePage (arr[i], "main", "../");
|
2002-11-22 11:39:11 +00:00
|
|
|
ct += 2;
|
2002-11-21 18:36:03 +00:00
|
|
|
var subarr = arr[i].listChildren ();
|
|
|
|
for (var j=0; j<subarr.length; j++) {
|
2002-11-22 14:32:46 +00:00
|
|
|
this.storePage (subarr[j], "main", "../", subarr[j].getElementName () + ".html");
|
2002-11-22 11:39:11 +00:00
|
|
|
ct += 1;
|
2002-11-21 18:36:03 +00:00
|
|
|
}
|
|
|
|
}
|
2002-11-22 11:39:11 +00:00
|
|
|
res.writeln (" ... wrote " + ct + " files");
|
2002-11-21 18:36:03 +00:00
|
|
|
}
|