Exposing setting the index page in the admin app and added a crude emoji picker, finally.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3966 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-08-17 00:29:57 +00:00
parent 3729346961
commit 46d3e8f567
8 changed files with 15247 additions and 25 deletions

View File

@@ -4,9 +4,16 @@ tfrpc.register(function delete_user(user) {
return core.deleteUser(user);
});
tfrpc.register(function global_settings_set(key, value) {
return core.globalSettingsSet(key, value);
});
async function main() {
let data = {users: {}, granted: await core.allPermissionsGranted()};
print(JSON.stringify(data));
let data = {
users: {},
granted: await core.allPermissionsGranted(),
index: await core.globalSettingsGet('index'),
};
for (let user of await core.users()) {
data.users[user] = await core.permissionsForUser(user);
}