From a435ead916ac770f4b38a4dc38abc964b4c28198 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Fri, 1 Aug 2025 07:53:31 -0400 Subject: [PATCH] Fix various typos (#156) Found via `codespell -q 3 -S "./yarn.lock" -L pris` --- README.md | 2 +- server/internal/acls/descriptions.ts | 2 +- server/internal/clients/README.md | 2 +- server/internal/notifications/index.ts | 2 +- server/internal/objects/objectHandler.ts | 2 +- server/internal/tasks/index.ts | 2 +- server/plugins/01.system-init.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 69ae307..ed9d9c6 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ To add a game to the drop library, do as follows: 6. Navigate to http://your.drop.server.ip:3000/ 7. Import game metadata (uses GiantBomb API Key) by selecting the game and specifying which entry to import 8. Navigate to http://your.drop.server.ip:3000/admin/library -9. You should see the game which you have just imported listed in this menu. There should be a notification that "Drop has detected you have new verions of this game to import". Select import here. +9. You should see the game which you have just imported listed in this menu. There should be a notification that "Drop has detected you have new versions of this game to import". Select import here. 10. Select the game version to import and thus fill in fields as required. ## Tech Stack diff --git a/server/internal/acls/descriptions.ts b/server/internal/acls/descriptions.ts index ebb8d50..1f090a1 100644 --- a/server/internal/acls/descriptions.ts +++ b/server/internal/acls/descriptions.ts @@ -19,7 +19,7 @@ export const userACLDescriptions: ObjectFromList = { "notifications:read": "Fetch this account's notifications.", "notifications:mark": "Mark notifications as read for this account.", - "notifications:listen": "Connect to a websocket to recieve notifications.", + "notifications:listen": "Connect to a websocket to receive notifications.", "notifications:delete": "Delete this account's notifications.", "screenshots:new": "Create screenshots for this account", diff --git a/server/internal/clients/README.md b/server/internal/clients/README.md index 0d15850..3007720 100644 --- a/server/internal/clients/README.md +++ b/server/internal/clients/README.md @@ -16,7 +16,7 @@ Server sends redirect to `drop://handshake/[id]/[token]`, where the token is an ## 3. Client requests certificates -Client makes request: `POST /api/v1/client/auth/handshake` with the token recieved in the previous step. +Client makes request: `POST /api/v1/client/auth/handshake` with the token received in the previous step. The server uses it's CA to generate a public-private key pair, the CN of the client ID. It then sends that pair, plus the CA's public key, to the client, which stores it all. diff --git a/server/internal/notifications/index.ts b/server/internal/notifications/index.ts index f17d13f..5585087 100644 --- a/server/internal/notifications/index.ts +++ b/server/internal/notifications/index.ts @@ -1,5 +1,5 @@ /* -The notification system handles the recieving, creation and sending of notifications in Drop +The notification system handles the receiving, creation and sending of notifications in Drop Design goals: 1. Nonce-based notifications; notifications should only be created once diff --git a/server/internal/objects/objectHandler.ts b/server/internal/objects/objectHandler.ts index eb5379d..21ec619 100644 --- a/server/internal/objects/objectHandler.ts +++ b/server/internal/objects/objectHandler.ts @@ -195,7 +195,7 @@ export class ObjectHandler { * @returns * @description If we need to fetch a remote resource, it doesn't make sense * to immediately fetch the object, *then* check permissions. - * Instead the caller can pass a simple anonymous funciton, like + * Instead the caller can pass a simple anonymous function, like * () => $dropFetch('/my-image'); * And if we actually have permission to write, it fetches it then. */ diff --git a/server/internal/tasks/index.ts b/server/internal/tasks/index.ts index 8e75da1..e7ee65f 100644 --- a/server/internal/tasks/index.ts +++ b/server/internal/tasks/index.ts @@ -41,7 +41,7 @@ type TaskPoolEntry = FinishedTask & { * easily without re-inventing the wheel every time. */ class TaskHandler { - // registry of schedualed tasks to be created + // registry of scheduled tasks to be created private taskCreators: Map Task> = new Map(); // list of all currently running tasks diff --git a/server/plugins/01.system-init.ts b/server/plugins/01.system-init.ts index a28edbe..edffdcc 100644 --- a/server/plugins/01.system-init.ts +++ b/server/plugins/01.system-init.ts @@ -3,7 +3,7 @@ import prisma from "~/server/internal/db/database"; export default defineNitroPlugin(async (_nitro) => { // Ensure system user exists // The system user owns any user-based code - // that we want to re-use for the app + // that we want to reuse for the app // e.g. notifications await prisma.user.upsert({ where: {