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

@ -240,6 +240,15 @@ async function getProcessBlob(blobId, key, options) {
}
};
if (process.credentials?.permissions?.administration) {
imports.core.globalSettingsGet = function(key) {
return gGlobalSettings[key];
};
imports.core.globalSettingsSet = function(key, value) {
print('Setting', key, value);
gGlobalSettings[key] = value;
setGlobalSettings(gGlobalSettings);
print('Done.');
};
imports.core.deleteUser = function(user) {
return imports.core.permissionTest('delete_user').then(function() {
let db = new Database('auth');
@ -258,7 +267,7 @@ async function getProcessBlob(blobId, key, options) {
db.set('users', users);
}
});
}
};
}
if (options.api) {
imports.app = {};