From ab5a48747fbbaa5eb72b5c52d4abcc7623efebd4 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 10 Dec 2024 13:18:30 +0000 Subject: [PATCH] Fix spelling of "anonymous" --- .../multiwikiserver/modules/routes/handlers/get-acl.js | 2 +- .../multiwikiserver/modules/routes/handlers/get-index.js | 4 ++-- .../multiwikiserver/modules/routes/handlers/get-users.js | 2 +- .../multiwikiserver/modules/routes/handlers/manage-roles.js | 2 +- .../multiwikiserver/modules/routes/handlers/manage-user.js | 2 +- plugins/tiddlywiki/multiwikiserver/templates/get-index.tid | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-acl.js b/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-acl.js index 6938dae0b6f..fa8434f7132 100644 --- a/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-acl.js +++ b/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-acl.js @@ -85,7 +85,7 @@ exports.handler = function (request, response, state) { "recipe": JSON.stringify(recipe), "recipe-acl-records": JSON.stringify(recipeAclRecords), "bag-acl-records": JSON.stringify(bagAclRecords), - "username": state.authenticatedUser ? state.authenticatedUser.username : state.firstGuestUser ? "Annonymous User" : "Guest", + "username": state.authenticatedUser ? state.authenticatedUser.username : state.firstGuestUser ? "Anonymous User" : "Guest", "user-is-admin": state.authenticatedUser && state.authenticatedUser.isAdmin ? "yes" : "no" } }); diff --git a/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-index.js b/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-index.js index 4973a60954d..88e51ac1cd4 100644 --- a/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-index.js +++ b/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-index.js @@ -41,10 +41,10 @@ exports.handler = function(request,response,state) { "page-content": "$:/plugins/tiddlywiki/multiwikiserver/templates/get-index", "bag-list": JSON.stringify(allowedBags), "recipe-list": JSON.stringify(allowedRecipes), - "username": state.authenticatedUser ? state.authenticatedUser.username : state.firstGuestUser ? "Annonymous User" : "Guest", + "username": state.authenticatedUser ? state.authenticatedUser.username : state.firstGuestUser ? "Anonymous User" : "Guest", "user-is-admin": state.authenticatedUser && state.authenticatedUser.isAdmin ? "yes" : "no", "first-guest-user": state.firstGuestUser ? "yes" : "no", - "show-annon-config": state.showAnonConfig ? "yes" : "no", + "show-anon-config": state.showAnonConfig ? "yes" : "no", "user": JSON.stringify(state.authenticatedUser), }}); response.write(html); diff --git a/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-users.js b/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-users.js index 4ecb6e7fd0e..142258aa0d5 100644 --- a/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-users.js +++ b/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/get-users.js @@ -53,7 +53,7 @@ exports.handler = function(request,response,state) { variables: { "page-content": "$:/plugins/tiddlywiki/multiwikiserver/templates/get-users", "user-list": JSON.stringify(userList), - "username": state.authenticatedUser ? state.authenticatedUser.username : state.firstGuestUser ? "Annonymous User" : "Guest", + "username": state.authenticatedUser ? state.authenticatedUser.username : state.firstGuestUser ? "Anonymous User" : "Guest", "user-is-admin": state.authenticatedUser && state.authenticatedUser.isAdmin ? "yes" : "no", "first-guest-user": state.firstGuestUser ? "yes" : "no" } diff --git a/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/manage-roles.js b/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/manage-roles.js index f390c9db684..e6400dbb92c 100644 --- a/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/manage-roles.js +++ b/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/manage-roles.js @@ -35,7 +35,7 @@ exports.handler = function(request, response, state) { "page-content": "$:/plugins/tiddlywiki/multiwikiserver/templates/manage-roles", "roles-list": JSON.stringify(roles), "edit-role": editRole ? JSON.stringify(editRole) : "", - "username": state.authenticatedUser ? state.authenticatedUser.username : state.firstGuestUser ? "Annonymous User" : "Guest", + "username": state.authenticatedUser ? state.authenticatedUser.username : state.firstGuestUser ? "Anonymous User" : "Guest", "user-is-admin": state.authenticatedUser && state.authenticatedUser.isAdmin ? "yes" : "no" } }); diff --git a/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/manage-user.js b/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/manage-user.js index 35a1b19f593..89617aa5c09 100644 --- a/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/manage-user.js +++ b/plugins/tiddlywiki/multiwikiserver/modules/routes/handlers/manage-user.js @@ -88,7 +88,7 @@ exports.handler = function(request,response,state) { "all-roles": JSON.stringify(allRoles), "first-guest-user": state.firstGuestUser ? "yes" : "no", "is-current-user-profile": state.authenticatedUser && state.authenticatedUser.user_id === $tw.utils.parseInt(user_id, 10) ? "yes" : "no", - "username": state.authenticatedUser ? state.authenticatedUser.username : state.firstGuestUser ? "Annonymous User" : "Guest", + "username": state.authenticatedUser ? state.authenticatedUser.username : state.firstGuestUser ? "Anonymous User" : "Guest", "user-is-admin": state.authenticatedUser && state.authenticatedUser.isAdmin ? "yes" : "no", "user-id": user_id, } diff --git a/plugins/tiddlywiki/multiwikiserver/templates/get-index.tid b/plugins/tiddlywiki/multiwikiserver/templates/get-index.tid index 761d6546ff3..742e6aaf6dc 100644 --- a/plugins/tiddlywiki/multiwikiserver/templates/get-index.tid +++ b/plugins/tiddlywiki/multiwikiserver/templates/get-index.tid @@ -41,7 +41,7 @@ title: $:/plugins/tiddlywiki/multiwikiserver/templates/get-index -<$list filter="[match[yes]]"> +<$list filter="[match[yes]]"> <$tiddler tiddler="$:/plugins/tiddlywiki/multiwikiserver/templates/anon-config-modal"> <$transclude/>