Exposed deleting users, mostly for my own testing, and used it to make a primitive admin app. Add a handful of apps I've been kicking around without version control, while I'm at it.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3950 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-08-04 00:57:56 +00:00
parent 353f2ccc13
commit fbfbd6a6b4
13 changed files with 326 additions and 0 deletions

11
apps/cory/api/app.js Normal file
View File

@ -0,0 +1,11 @@
var global = Function('return this')();
function treeify(o) {
if (typeof(o) == 'object') {
return Object.fromEntries(Object.keys(o).map(x => [x, treeify(o[x])]));
} else if (typeof(o) == 'function') {
return 'function';
} else if (typeof(o) == 'string' || typeof(o) == 'number') {
return o;
}
}
app.setDocument(`<pre style="color:#fff">${JSON.stringify(treeify(global), null, 2)}</pre>`);