2005-08-31 13:16:21 +00:00
|
|
|
function read_action() {
|
|
|
|
this.readApplication();
|
|
|
|
res.redirect(this.href("main"));
|
2002-11-22 14:32:46 +00:00
|
|
|
}
|
|
|
|
|
2005-08-31 13:16:21 +00:00
|
|
|
function main_action() {
|
|
|
|
if (checkAddress() == false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement()) == false)
|
|
|
|
return;
|
|
|
|
this.renderSkin("frameset");
|
2002-11-21 18:36:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-08-31 13:16:21 +00:00
|
|
|
function prototypes_action() {
|
|
|
|
if (checkAddress() == false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement()) == false)
|
|
|
|
return;
|
|
|
|
res.data.body = this.renderSkinAsString("prototypes");
|
|
|
|
renderSkin("api");
|
2002-11-21 18:36:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-08-31 13:16:21 +00:00
|
|
|
function summary_action() {
|
|
|
|
if (checkAddress() == false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement()) == false)
|
|
|
|
return;
|
|
|
|
res.data.body = this.renderSkinAsString("summary");
|
|
|
|
renderSkin("api");
|
2002-11-21 18:36:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-08-31 13:16:21 +00:00
|
|
|
function functionindex_action() {
|
|
|
|
if (checkAddress() == false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement()) == false)
|
|
|
|
return;
|
|
|
|
res.data.body = this.renderSkinAsString("functionindex");
|
|
|
|
renderSkin("api");
|
2002-11-22 11:39:11 +00:00
|
|
|
}
|
|
|
|
|
2002-11-21 18:36:03 +00:00
|
|
|
|
2005-08-31 13:16:21 +00:00
|
|
|
function render_action() {
|
|
|
|
// set res.data.rendering, this will suppress the link back to the manage
|
|
|
|
// console in the apidocs actions
|
|
|
|
res.data.rendering = true;
|
|
|
|
if (checkAddress() == false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement()) == false)
|
|
|
|
return;
|
|
|
|
var ct = this.renderApi();
|
|
|
|
res.data.body = '<body>rendering API ...<br/>wrote ' + ct + ' files<br/><br/>';
|
|
|
|
res.data.body += '<a href="' + root.href("main") + '">back to manage console</a>';
|
|
|
|
res.data.title = "rendering helma api";
|
|
|
|
res.data.head = renderSkinAsString("head");
|
|
|
|
renderSkin("basic");
|
2002-11-21 18:36:03 +00:00
|
|
|
}
|