From 36b2b4fba4bd61e61df5e0fb590290a405401ac0 Mon Sep 17 00:00:00 2001 From: ecelebi29 Date: Fri, 18 Dec 2020 14:45:31 +0300 Subject: [PATCH] docs: fixed multiple typos, updated latest en.json strings (#371) [skip ci] --- overseerr-api.yml | 8 ++++---- server/middleware/auth.ts | 2 +- server/routes/auth.ts | 2 +- src/components/Login/index.tsx | 2 +- src/components/UserEdit/index.tsx | 7 +++---- src/utils/typeHelpers.ts | 2 +- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/overseerr-api.yml b/overseerr-api.yml index e6faa7f21..d84ac3fac 100644 --- a/overseerr-api.yml +++ b/overseerr-api.yml @@ -1000,7 +1000,7 @@ paths: /settings/main: get: summary: Returns main settings - description: Retreives all main settings in JSON format + description: Retrieves all main settings in JSON format tags: - settings responses: @@ -1178,7 +1178,7 @@ paths: /settings/radarr/test: post: summary: Test radarr configuration - description: Test if the provided Radarr congifuration values are valid. Returns profiles and root folders on success + description: Test if the provided Radarr configuration values are valid. Returns profiles and root folders on success tags: - settings requestBody: @@ -1322,7 +1322,7 @@ paths: /settings/sonarr/test: post: summary: Test Sonarr configuration - description: Test if the provided Sonarr congifuration values are valid. Returns profiles and root folders on success + description: Test if the provided Sonarr configuration values are valid. Returns profiles and root folders on success tags: - settings requestBody: @@ -1425,7 +1425,7 @@ paths: /settings/initialize: get: summary: Set the application as initialized - description: Sets the app as initalized and allows the user to navigate to pages other than the setup page + description: Sets the app as initialized and allows the user to navigate to pages other than the setup page tags: - settings responses: diff --git a/server/middleware/auth.ts b/server/middleware/auth.ts index f541c3d60..946a0b72b 100644 --- a/server/middleware/auth.ts +++ b/server/middleware/auth.ts @@ -40,7 +40,7 @@ export const isAuthenticated = ( if (!req.user || !req.user.hasPermission(permissions ?? 0)) { res.status(403).json({ status: 403, - error: 'You do not have permisson to access this endpoint', + error: 'You do not have permission to access this endpoint', }); } else { next(); diff --git a/server/routes/auth.ts b/server/routes/auth.ts index 50a5f2201..c734e7020 100644 --- a/server/routes/auth.ts +++ b/server/routes/auth.ts @@ -14,7 +14,7 @@ authRoutes.get('/me', isAuthenticated(), async (req, res) => { return res.status(500).json({ status: 500, error: - 'Requsted user endpoint withuot valid authenticated user in session', + 'Requested user endpoint without valid authenticated user in session', }); } const user = await userRepository.findOneOrFail({ diff --git a/src/components/Login/index.tsx b/src/components/Login/index.tsx index 87095b7bf..56dd81e12 100644 --- a/src/components/Login/index.tsx +++ b/src/components/Login/index.tsx @@ -20,7 +20,7 @@ const Login: React.FC = () => { // Effect that is triggered when the `authToken` comes back from the Plex OAuth // We take the token and attempt to login. If we get a success message, we will - // ask swr to revalidate the user which _shouid_ come back with a valid user. + // ask swr to revalidate the user which _should_ come back with a valid user. useEffect(() => { const login = async () => { setProcessing(true); diff --git a/src/components/UserEdit/index.tsx b/src/components/UserEdit/index.tsx index 36b05a696..1df498d77 100644 --- a/src/components/UserEdit/index.tsx +++ b/src/components/UserEdit/index.tsx @@ -23,13 +23,12 @@ const messages = defineMessages({ 'Grants permission to manage Overseerr users. Users with this permission cannot modify users with Administrator privilege, or grant it.', settings: 'Manage Settings', settingsDescription: - 'Grants permission to modify all Overseerr settings. User must have this permission to be able to grant it to others.', + 'Grants permission to modify all Overseerr settings. A user must have this permission to grant it to others.', managerequests: 'Manage Requests', managerequestsDescription: 'Grants permission to manage Overseerr requests. This includes approving and denying requests.', request: 'Request', - requestDescription: - 'Grants permission to make requests for movies or tv shows.', + requestDescription: 'Grants permission to request movies and series.', vote: 'Vote', voteDescription: 'Grants permission to vote on requests (voting not yet implemented)', @@ -38,7 +37,7 @@ const messages = defineMessages({ 'Grants auto approval for any requests made by this user.', save: 'Save', saving: 'Saving...', - usersaved: 'User succesfully saved', + usersaved: 'User saved', userfail: 'Something went wrong saving the user.', }); diff --git a/src/utils/typeHelpers.ts b/src/utils/typeHelpers.ts index 4d5cc1242..1ec82c427 100644 --- a/src/utils/typeHelpers.ts +++ b/src/utils/typeHelpers.ts @@ -3,7 +3,7 @@ export type Nullable = T | null; export type Maybe = T | null | undefined; /** - * Helps type objects with an abitrary number of properties that are + * Helps type objects with an arbitrary number of properties that are * usually being defined at export. * * @param component Main object you want to apply properties to