* initial (very incomplete) work on PC Services Admin (eg csops) * primitive account listing * add ban/unban/delete functionality * fix wtv-tricks theme * fix wtv-tricks theme (cSetup) * better tricks code * fix session_data.getTicketData() * speedtest and other tricks stuff * better protection against direct access to finished url * dependancies update (run `npm update`) * Bump path-to-regexp and express in /zefie_wtvp_minisrv (#29) Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) to 0.1.12 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together. Updates `path-to-regexp` from 0.1.10 to 0.1.12 - [Release notes](https://github.com/pillarjs/path-to-regexp/releases) - [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md) - [Commits](https://github.com/pillarjs/path-to-regexp/compare/v0.1.10...v0.1.12) Updates `express` from 4.21.1 to 4.21.2 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/4.21.2/History.md) - [Commits](https://github.com/expressjs/express/compare/4.21.1...4.21.2) --- updated-dependencies: - dependency-name: path-to-regexp dependency-type: indirect - dependency-name: express dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix up path functions * force version 1.2.1 of newsie due to breaking change * remove debug log print for usenet * fix account directory was broken due to previous changes * fix wtv-home:/home was hiding options bar * bump to 0.9.54 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
43 lines
941 B
JavaScript
43 lines
941 B
JavaScript
var minisrv_service_file = true;
|
|
|
|
var num_per_line = 4
|
|
var legend_every = 6;
|
|
|
|
function getLegend() {
|
|
d = "<tr>\n";
|
|
for (var i = 0; i < num_per_line; i++) {
|
|
d += "<td><b>Code</b>\n<td><b>Char</b>\n";
|
|
}
|
|
d += "<tr>\n";
|
|
return d;
|
|
}
|
|
|
|
|
|
headers = `200 OK
|
|
Content-Type: text/html`;
|
|
|
|
data = `<html><head><display allowoffline switchtowebmode>
|
|
<script src=/ROMCache/h.js></script><script src=/ROMCache/n.js></script>
|
|
<script src=htv-cSetup.js></script>
|
|
</head ><form name=t><input type=hidden name=h value=&pname;></form>
|
|
<script>head('WebTV Character Map');</script>
|
|
<br><br>
|
|
<table border=1>`;
|
|
|
|
|
|
for (var i = 0; i <= 255; i++) {
|
|
if (i % num_per_line === 0) {
|
|
if (i % (num_per_line * legend_every) === 0) {
|
|
data += getLegend();
|
|
} else {
|
|
data += "<tr>"
|
|
}
|
|
}
|
|
data += "<td>&#" + i + ";\n";
|
|
data += "<td>&#" + i + ";\n";
|
|
}
|
|
|
|
data += `</table>
|
|
</body>
|
|
</html>
|
|
` |