From 04a9c9739369e98a4dddf9cc134d0e3e5b1f9df8 Mon Sep 17 00:00:00 2001
From: Yo <58630804+flowed@users.noreply.github.com>
Date: Mon, 23 Dec 2019 22:22:55 +0530
Subject: [PATCH] Fix Typos (#11644)
* Fix Typos
* Fix More Typos
---
migrations/s3-upload.js | 2 +-
test/api/unit/libs/analyticsService.test.js | 4 ++--
test/api/unit/libs/payments/payments.test.js | 2 +-
test/api/v3/integration/challenges/POST-challenges.test.js | 2 +-
test/api/v3/integration/groups/GET-groups_id.test.js | 4 ++--
test/api/v3/integration/groups/POST-groups_groupId_leave.js | 4 ++--
.../payments/amazon/POST-payments_amazon_checkout.test.js | 2 +-
test/api/v3/integration/tasks/DELETE-tasks_id.test.js | 2 +-
test/api/v3/integration/tasks/GET-tasks_id.test.js | 2 +-
.../DELETE-tasks_id_challenge_challengeId.test.js | 2 +-
.../v3/integration/user/auth/PUT-user_update_email.test.js | 2 +-
test/common/libs/getDebuffPotionItems.test.js | 2 +-
test/common/ops/unlock.js | 2 +-
website/client/src/components/achievements/death.vue | 2 +-
website/client/src/components/achievements/streak.vue | 4 ++--
website/client/src/components/auth/registerLoginReset.vue | 2 +-
website/client/src/components/chat/chatMessages.vue | 2 +-
website/client/src/components/creatorIntro.vue | 4 ++--
website/client/src/components/groups/membersModal.vue | 2 +-
website/client/src/components/inventory/equipment/index.vue | 4 ++--
website/client/src/libs/logging.js | 2 +-
website/client/src/mixins/spells.js | 2 +-
website/client/tests/unit/components/avatar.spec.js | 2 +-
website/common/locales/en_GB/gear.json | 2 +-
website/common/script/cron.js | 2 +-
website/common/script/ops/pinnedGearUtils.js | 2 +-
website/server/controllers/api-v3/content.js | 6 +++---
website/server/controllers/api-v3/groups.js | 2 +-
website/server/controllers/api-v3/hall.js | 2 +-
website/server/controllers/api-v3/members.js | 2 +-
website/server/controllers/api-v3/user.js | 2 +-
website/server/controllers/top-level/dataexport.js | 2 +-
website/server/libs/auth/index.js | 2 +-
website/server/libs/i18n.js | 2 +-
website/server/libs/taskManager.js | 2 +-
website/server/middlewares/errorHandler.js | 2 +-
website/server/models/challenge.js | 2 +-
website/server/models/group.js | 2 +-
website/server/models/user/methods.js | 2 +-
39 files changed, 47 insertions(+), 47 deletions(-)
diff --git a/migrations/s3-upload.js b/migrations/s3-upload.js
index fabb819d7d..32ae1d71cb 100644
--- a/migrations/s3-upload.js
+++ b/migrations/s3-upload.js
@@ -27,7 +27,7 @@ function uploadFile (buffer, fileName) {
if (error) {
reject(error);
} else {
- // console.info(`${fileName} uploaded to ${BUCKET_NAME} succesfully.`);
+ // console.info(`${fileName} uploaded to ${BUCKET_NAME} successfully.`);
resolve(fileName);
}
});
diff --git a/test/api/unit/libs/analyticsService.test.js b/test/api/unit/libs/analyticsService.test.js
index 27d78d3f3c..c977bef7fc 100644
--- a/test/api/unit/libs/analyticsService.test.js
+++ b/test/api/unit/libs/analyticsService.test.js
@@ -155,7 +155,7 @@ describe('analyticsService', () => {
});
});
- it('sets Unkown if headers are not passed in', () => {
+ it('sets Unknown if headers are not passed in', () => {
delete data.headers;
return analyticsService.track(eventType, data)
@@ -476,7 +476,7 @@ describe('analyticsService', () => {
});
});
- it('sets Unkown if headers are not passed in', () => {
+ it('sets Unknown if headers are not passed in', () => {
delete data.headers;
return analyticsService.trackPurchase(data)
diff --git a/test/api/unit/libs/payments/payments.test.js b/test/api/unit/libs/payments/payments.test.js
index b3c5e3c59d..efc11f8e2a 100644
--- a/test/api/unit/libs/payments/payments.test.js
+++ b/test/api/unit/libs/payments/payments.test.js
@@ -697,7 +697,7 @@ describe('payments/index', () => {
.calledWith(recipient, { receiverMsg: msg, senderMsg: msg, save: false });
});
- it('sends a message from purchaser to recipient wtih custom message', async () => {
+ it('sends a message from purchaser to recipient with custom message', async () => {
data.gift.message = 'giftmessage';
await api.buyGems(data);
diff --git a/test/api/v3/integration/challenges/POST-challenges.test.js b/test/api/v3/integration/challenges/POST-challenges.test.js
index 23475c1f23..8896c3e79d 100644
--- a/test/api/v3/integration/challenges/POST-challenges.test.js
+++ b/test/api/v3/integration/challenges/POST-challenges.test.js
@@ -251,7 +251,7 @@ describe('POST /challenges', () => {
expect(groupLeader.balance).to.eql(oldUserBalance);
});
- it('sets all properites of the challenge as passed', async () => {
+ it('sets all properties of the challenge as passed', async () => {
const name = 'Test Challenge';
const shortName = 'TC Label';
const description = 'Test Description';
diff --git a/test/api/v3/integration/groups/GET-groups_id.test.js b/test/api/v3/integration/groups/GET-groups_id.test.js
index 3e2f3b8742..801ee3d434 100644
--- a/test/api/v3/integration/groups/GET-groups_id.test.js
+++ b/test/api/v3/integration/groups/GET-groups_id.test.js
@@ -177,7 +177,7 @@ describe('GET /groups/:id', () => {
});
});
- it('removes non-existant guild from user\'s guild list', async () => {
+ it('removes non-existent guild from user\'s guild list', async () => {
const guildId = generateUUID();
await user.update({
@@ -197,7 +197,7 @@ describe('GET /groups/:id', () => {
expect(user.guilds).to.not.include(guildId);
});
- it('removes non-existant party from user\'s party object', async () => {
+ it('removes non-existent party from user\'s party object', async () => {
const partyId = generateUUID();
await user.update({
diff --git a/test/api/v3/integration/groups/POST-groups_groupId_leave.js b/test/api/v3/integration/groups/POST-groups_groupId_leave.js
index 70d60cc3d0..c4764e3428 100644
--- a/test/api/v3/integration/groups/POST-groups_groupId_leave.js
+++ b/test/api/v3/integration/groups/POST-groups_groupId_leave.js
@@ -210,7 +210,7 @@ describe('POST /groups/:groupId/leave', () => {
expect(userWithoutInvitation.invitations.guilds).to.not.be.empty;
});
- it('deletes non existant guild from user when user tries to leave', async () => {
+ it('deletes non existent guild from user when user tries to leave', async () => {
const nonExistentGuildId = generateUUID();
const userWithNonExistentGuild = await generateUser({ guilds: [nonExistentGuildId] });
expect(userWithNonExistentGuild.guilds).to.contain(nonExistentGuildId);
@@ -258,7 +258,7 @@ describe('POST /groups/:groupId/leave', () => {
});
});
- it('deletes non existant party from user when user tries to leave', async () => {
+ it('deletes non existent party from user when user tries to leave', async () => {
const nonExistentPartyId = generateUUID();
const userWithNonExistentParty = await generateUser({ 'party._id': nonExistentPartyId });
expect(userWithNonExistentParty.party._id).to.eql(nonExistentPartyId);
diff --git a/test/api/v3/integration/payments/amazon/POST-payments_amazon_checkout.test.js b/test/api/v3/integration/payments/amazon/POST-payments_amazon_checkout.test.js
index 93d08dc44b..6774317c9c 100644
--- a/test/api/v3/integration/payments/amazon/POST-payments_amazon_checkout.test.js
+++ b/test/api/v3/integration/payments/amazon/POST-payments_amazon_checkout.test.js
@@ -29,7 +29,7 @@ describe('payments - amazon - #checkout', () => {
amzLib.checkout.restore();
});
- it('makes a purcahse with amazon checkout', async () => {
+ it('makes a purchase with amazon checkout', async () => {
user = await generateUser({
'profile.name': 'sender',
'purchased.plan.customerId': 'customer-id',
diff --git a/test/api/v3/integration/tasks/DELETE-tasks_id.test.js b/test/api/v3/integration/tasks/DELETE-tasks_id.test.js
index d1835ac022..e64923e14d 100644
--- a/test/api/v3/integration/tasks/DELETE-tasks_id.test.js
+++ b/test/api/v3/integration/tasks/DELETE-tasks_id.test.js
@@ -120,7 +120,7 @@ describe('DELETE /tasks/:id', () => {
});
context('task cannot be deleted', () => {
- it('cannot delete a non-existant task', async () => {
+ it('cannot delete a non-existent task', async () => {
await expect(user.del('/tasks/550e8400-e29b-41d4-a716-446655440000')).to.eventually.be.rejected.and.eql({
code: 404,
error: 'NotFound',
diff --git a/test/api/v3/integration/tasks/GET-tasks_id.test.js b/test/api/v3/integration/tasks/GET-tasks_id.test.js
index e46a08706c..d56b3fd151 100644
--- a/test/api/v3/integration/tasks/GET-tasks_id.test.js
+++ b/test/api/v3/integration/tasks/GET-tasks_id.test.js
@@ -39,7 +39,7 @@ describe('GET /tasks/:id', () => {
});
context('task cannot be accessed', () => {
- it('cannot get a non-existant task', async () => {
+ it('cannot get a non-existent task', async () => {
const dummyId = generateUUID();
await expect(user.get(`/tasks/${dummyId}`)).to.eventually.be.rejected.and.eql({
diff --git a/test/api/v3/integration/tasks/challenges/DELETE-tasks_id_challenge_challengeId.test.js b/test/api/v3/integration/tasks/challenges/DELETE-tasks_id_challenge_challengeId.test.js
index 14245c3e54..f329775baf 100644
--- a/test/api/v3/integration/tasks/challenges/DELETE-tasks_id_challenge_challengeId.test.js
+++ b/test/api/v3/integration/tasks/challenges/DELETE-tasks_id_challenge_challengeId.test.js
@@ -27,7 +27,7 @@ describe('DELETE /tasks/:id', () => {
});
});
- it('cannot delete a non-existant task', async () => {
+ it('cannot delete a non-existent task', async () => {
await expect(user.del(`/tasks/${generateUUID()}`)).to.eventually.be.rejected.and.eql({
code: 404,
error: 'NotFound',
diff --git a/test/api/v3/integration/user/auth/PUT-user_update_email.test.js b/test/api/v3/integration/user/auth/PUT-user_update_email.test.js
index d924a99ebf..9f54b8eeba 100644
--- a/test/api/v3/integration/user/auth/PUT-user_update_email.test.js
+++ b/test/api/v3/integration/user/auth/PUT-user_update_email.test.js
@@ -16,7 +16,7 @@ describe('PUT /user/auth/update-email', () => {
const newEmail = 'SOmE-nEw-emAIl_2@example.net';
const oldPassword = 'password'; // from habitrpg/test/helpers/api-integration/v3/object-generators.js
- context('Local Authenticaion User', async () => {
+ context('Local Authentication User', async () => {
let user;
beforeEach(async () => {
diff --git a/test/common/libs/getDebuffPotionItems.test.js b/test/common/libs/getDebuffPotionItems.test.js
index b1cb41658a..512c2a8834 100644
--- a/test/common/libs/getDebuffPotionItems.test.js
+++ b/test/common/libs/getDebuffPotionItems.test.js
@@ -15,7 +15,7 @@ describe('getDebuffPotionItems', () => {
for (const key of Object.keys(TRANSFORMATION_DEBUFFS_LIST)) {
const debuff = TRANSFORMATION_DEBUFFS_LIST[key];
- // Here we itterate whole object to dynamicaly create test suites as
+ // Here we itterate whole object to dynamically create test suites as
// it described in dock of mocha
// https://mochajs.org/#dynamically-generating-tests
// That's why we have eslint-disable here
diff --git a/test/common/ops/unlock.js b/test/common/ops/unlock.js
index 5087534b48..80354c2ffc 100644
--- a/test/common/ops/unlock.js
+++ b/test/common/ops/unlock.js
@@ -54,7 +54,7 @@ describe('shared.ops.unlock', () => {
}
});
- // disabled untill fully implemente
+ // disabled until fully implemente
xit('returns an error when user already owns items in a full set', done => {
try {
unlock(user, { query: { path: unlockPath } });
diff --git a/website/client/src/components/achievements/death.vue b/website/client/src/components/achievements/death.vue
index c94b99c848..998c8745e9 100644
--- a/website/client/src/components/achievements/death.vue
+++ b/website/client/src/components/achievements/death.vue
@@ -32,7 +32,7 @@
:avatar-only="true"
:with-background="true"
/>
-
+
diff --git a/website/client/src/components/achievements/streak.vue b/website/client/src/components/achievements/streak.vue
index 4eac3c1228..d2b9b8be53 100644
--- a/website/client/src/components/achievements/streak.vue
+++ b/website/client/src/components/achievements/streak.vue
@@ -71,8 +71,8 @@ export default {
this.$root.$emit('bv::hide::modal', 'streak');
},
suppressModals () {
- const surpress = !!this.user.preferences.suppressModals.streak;
- this.$store.dispatch('user:set', { 'preferences.suppressModals.streak': surpress });
+ const suppress = !!this.user.preferences.suppressModals.streak;
+ this.$store.dispatch('user:set', { 'preferences.suppressModals.streak': suppress });
},
},
};
diff --git a/website/client/src/components/auth/registerLoginReset.vue b/website/client/src/components/auth/registerLoginReset.vue
index c771514c34..8d1dc9db69 100644
--- a/website/client/src/components/auth/registerLoginReset.vue
+++ b/website/client/src/components/auth/registerLoginReset.vue
@@ -700,7 +700,7 @@ export default {
return;
}
- // @TODO: implement langauge and invite accepting
+ // @TODO: implement language and invite accepting
// var url = ApiUrl.get() + "/api/v4/user/auth/local/register";
// if (location.search && location.search.indexOf('Invite=') !== -1)
// { // matches groupInvite and partyInvite
diff --git a/website/client/src/components/chat/chatMessages.vue b/website/client/src/components/chat/chatMessages.vue
index 050c03623c..eb9ed8508c 100644
--- a/website/client/src/components/chat/chatMessages.vue
+++ b/website/client/src/components/chat/chatMessages.vue
@@ -282,7 +282,7 @@ export default {
const promises = [];
const noProfilesLoaded = Object.keys(this.cachedProfileData).length === 0;
- // @TODO: write an explination
+ // @TODO: write an explanation
// @TODO: Remove this after enough messages are cached
if (
!noProfilesLoaded
diff --git a/website/client/src/components/creatorIntro.vue b/website/client/src/components/creatorIntro.vue
index c939251526..93195cda15 100644
--- a/website/client/src/components/creatorIntro.vue
+++ b/website/client/src/components/creatorIntro.vue
@@ -329,7 +329,7 @@
diff --git a/website/client/src/components/groups/membersModal.vue b/website/client/src/components/groups/membersModal.vue
index b48109ac72..33e48a14e6 100644
--- a/website/client/src/components/groups/membersModal.vue
+++ b/website/client/src/components/groups/membersModal.vue
@@ -499,7 +499,7 @@ export default {
},
watch: {
groupId () {
- // @TOOD: We might not need this since groupId is computed now
+ // @TODO: We might not need this since groupId is computed now
this.getMembers();
},
challengeId () {
diff --git a/website/client/src/components/inventory/equipment/index.vue b/website/client/src/components/inventory/equipment/index.vue
index 0d9d819c65..105aed4de8 100644
--- a/website/client/src/components/inventory/equipment/index.vue
+++ b/website/client/src/components/inventory/equipment/index.vue
@@ -341,7 +341,7 @@ export default {
const { firstRender } = viewOptions;
const { itemsInFirstPosition } = viewOptions;
- // Render selected items in first postion only for the first render
+ // Render selected items in first position only for the first render
if (itemsInFirstPosition.indexOf(ownedItem.key) !== -1 && firstRender === false) {
gearItemsByType[type].unshift(ownedItem);
} else if (isEquipped === true && firstRender === true) {
@@ -382,7 +382,7 @@ export default {
const { firstRender } = viewOptions;
const { itemsInFirstPosition } = viewOptions;
- // Render selected items in first postion only for the first render
+ // Render selected items in first position only for the first render
if (itemsInFirstPosition.indexOf(ownedItem.key) !== -1 && firstRender === false) {
gearItemsByClass[klass].unshift(ownedItem);
} else if (isEquipped === true && firstRender === true) {
diff --git a/website/client/src/libs/logging.js b/website/client/src/libs/logging.js
index 89a7725fe4..f2c442e101 100644
--- a/website/client/src/libs/logging.js
+++ b/website/client/src/libs/logging.js
@@ -29,7 +29,7 @@ export function setUpLogging () { // eslint-disable-line import/prefer-default-e
Vue.config.errorHandler = (err, vm, info) => {
console.error('Unhandled error in Vue.js code.');
console.error('Error:', err);
- console.error('Component where it occured:', vm);
+ console.error('Component where it occurred:', vm);
console.error('Info:', info);
_LTracker.push({
diff --git a/website/client/src/mixins/spells.js b/website/client/src/mixins/spells.js
index 22da51019b..dc64b987c8 100644
--- a/website/client/src/mixins/spells.js
+++ b/website/client/src/mixins/spells.js
@@ -165,7 +165,7 @@ export default {
}
return null;
- // @TOOD: User.sync();
+ // @TODO: User.sync();
},
castCancel () {
this.potionClickMode = false;
diff --git a/website/client/tests/unit/components/avatar.spec.js b/website/client/tests/unit/components/avatar.spec.js
index d7e970ee5e..96d09702a2 100644
--- a/website/client/tests/unit/components/avatar.spec.js
+++ b/website/client/tests/unit/components/avatar.spec.js
@@ -112,7 +112,7 @@ context('avatar.vue', () => {
};
});
- it('returns if showing equiped gear', () => {
+ it('returns if showing equipped gear', () => {
expect(vm.costumeClass).to.equal('equipped');
});
it('returns if wearing a costume', () => {
diff --git a/website/common/locales/en_GB/gear.json b/website/common/locales/en_GB/gear.json
index 70dc1bfed0..ec7be61cf3 100644
--- a/website/common/locales/en_GB/gear.json
+++ b/website/common/locales/en_GB/gear.json
@@ -540,7 +540,7 @@
"armorSpecialWinter2016MageNotes": "The wisest wizard keeps well-bundled in the winter wind. Increases Intelligence by <%= int %>. Limited Edition 2015-2016 Winter Gear.",
"armorSpecialWinter2016HealerText": "Festive Fairy Cloak",
"armorSpecialWinter2016HealerNotes": "Festive Fairies wrap their body wings around themselves for protection as they use their head wings to catch headwinds and fly around Habitica at speeds of up to 100 mph, delivering gifts and spraying everyone with confetti. How droll. Increases Constitution by <%= con %>. Limited Edition 2015-2016 Winter Gear.",
- "armorSpecialSpring2016RogueText": "Canine Camouflauge Suit",
+ "armorSpecialSpring2016RogueText": "Canine Camouflage Suit",
"armorSpecialSpring2016RogueNotes": "A clever pup knows to choose a brighter guise for concealment when everything is green and vibrant. Increases Perception by <%= per %>. Limited Edition 2016 Spring Gear.",
"armorSpecialSpring2016WarriorText": "Mighty Mail",
"armorSpecialSpring2016WarriorNotes": "Though you be but little, you are fierce! Increases Constitution by <%= con %>. Limited Edition 2016 Spring Gear.",
diff --git a/website/common/script/cron.js b/website/common/script/cron.js
index 53be939a4e..8afca4bcda 100644
--- a/website/common/script/cron.js
+++ b/website/common/script/cron.js
@@ -66,7 +66,7 @@ export function startOfWeek (options = {}) {
/*
This is designed for use with any date that has an important time portion
(e.g., when comparing the current date-time with the previous cron's date-time
- for determing if cron should run now).
+ for determining if cron should run now).
It changes the time portion of the date-time to be the Custom Day Start hour,
so that the date-time is now the user's correct start of day.
It SUBTRACTS a day if the date-time's original hour is before CDS
diff --git a/website/common/script/ops/pinnedGearUtils.js b/website/common/script/ops/pinnedGearUtils.js
index 1150fb6a2f..e7a0f98bd1 100644
--- a/website/common/script/ops/pinnedGearUtils.js
+++ b/website/common/script/ops/pinnedGearUtils.js
@@ -157,7 +157,7 @@ export function togglePinnedItem (user, { item, type, path }, req = {}) {
}
if (isOfficialPinned) {
- // if an offical item is also present in the user.pinnedItems array
+ // if an official item is also present in the user.pinnedItems array
const itemInUserItems = pathExistsInArray(user.pinnedItems, path);
if (itemInUserItems !== -1) {
diff --git a/website/server/controllers/api-v3/content.js b/website/server/controllers/api-v3/content.js
index 727a56fa13..15cbf282c8 100644
--- a/website/server/controllers/api-v3/content.js
+++ b/website/server/controllers/api-v3/content.js
@@ -82,7 +82,7 @@ async function saveContentToDisk (language, content) {
* the user's configured language.
*
* @apiSuccess {Object} data Various data about the content of Habitica. The content route
- * contains many keys, but the data listed below are the recomended data to use.
+ * contains many keys, but the data listed below are the recommended data to use.
* @apiSuccess {Object} data.mystery The mystery sets awarded to paying subscribers.
* @apiSuccess {Object} data.gear The gear that can be equipped.
* @apiSuccess {Object} data.gear.tree Detailed information about the gear, organized by type.
@@ -101,7 +101,7 @@ async function saveContentToDisk (language, content) {
* @apiSuccess {Object} data.food All the food.
* @apiSuccess {Array} data.userCanOwnQuestCategories The types of quests that a user can own.
* @apiSuccess {Object} data.quests Data about the quests.
- * @apiSuccess {Object} data.appearances Data about the apperance properties.
+ * @apiSuccess {Object} data.appearances Data about the appearance properties.
* @apiSuccess {Object} data.appearances.hair Data about available hair options.
* @apiSuccess {Object} data.appearances.shirt Data about available shirt options.
* @apiSuccess {Object} data.appearances.size Data about available body size options.
@@ -109,7 +109,7 @@ async function saveContentToDisk (language, content) {
* @apiSuccess {Object} data.appearances.chair Data about available chair options.
* @apiSuccess {Object} data.appearances.background Data about available background options.
* @apiSuccess {Object} data.backgrounds Data about the background sets.
- * @apiSuccess {Object} data.subscriptionBlocks Data about the various subscirption blocks.
+ * @apiSuccess {Object} data.subscriptionBlocks Data about the various subscriptions blocks.
*
*/
api.getContent = {
diff --git a/website/server/controllers/api-v3/groups.js b/website/server/controllers/api-v3/groups.js
index dbfaac3ba2..1fb322e0f3 100644
--- a/website/server/controllers/api-v3/groups.js
+++ b/website/server/controllers/api-v3/groups.js
@@ -1049,7 +1049,7 @@ api.removeGroupMember = {
*
* @apiSuccess {Array} data The invites
* @apiSuccess {Object} data[0] If the invitation was a User ID, you'll receive back an object.
- * You'll receive one Object for each succesful User ID invite.
+ * You'll receive one Object for each successful User ID invite.
* @apiSuccess {String} data[1] If the invitation was an email, you'll receive back the email.
* You'll receive one String for each successful email invite.
*
diff --git a/website/server/controllers/api-v3/hall.js b/website/server/controllers/api-v3/hall.js
index 2874cd9b35..8e28fbc17a 100644
--- a/website/server/controllers/api-v3/hall.js
+++ b/website/server/controllers/api-v3/hall.js
@@ -267,7 +267,7 @@ api.updateHero = {
while (tierDiff) {
hero.balance += gemsPerTier[newTier] / 4; // balance is in $
tierDiff -= 1;
- newTier -= 1; // give them gems for the next tier down if they weren't aready that tier
+ newTier -= 1; // give them gems for the next tier down if they weren't already that tier
}
hero.addNotification('NEW_CONTRIBUTOR_LEVEL');
diff --git a/website/server/controllers/api-v3/members.js b/website/server/controllers/api-v3/members.js
index 74e5ea15d5..9a2736d0a8 100644
--- a/website/server/controllers/api-v3/members.js
+++ b/website/server/controllers/api-v3/members.js
@@ -486,7 +486,7 @@ api.getInvitesForGroup = {
* until you get less than 30 results.
* BETA You can also use ?includeAllMembers=true. This option is currently in BETA
* and may be removed in future.
- * Its use is discouraged and its performaces are not optimized especially for large challenges.
+ * Its use is discouraged and its performances are not optimized especially for large challenges.
*
* @apiName GetMembersForChallenge
* @apiGroup Member
diff --git a/website/server/controllers/api-v3/user.js b/website/server/controllers/api-v3/user.js
index 1594e4fd7c..3fe24678f4 100644
--- a/website/server/controllers/api-v3/user.js
+++ b/website/server/controllers/api-v3/user.js
@@ -989,7 +989,7 @@ api.purchase = {
if (!canGetGems) throw new NotAuthorized(res.t('groupPolicyCannotGetGems'));
}
- // Req is currently used as options. Slighly confusing, but this will solve that for now.
+ // Req is currently used as options. Slightly confusing, but this will solve that for now.
let quantity = 1;
if (req.body.quantity) quantity = req.body.quantity;
req.quantity = quantity;
diff --git a/website/server/controllers/top-level/dataexport.js b/website/server/controllers/top-level/dataexport.js
index 4aead64047..7d55fb4074 100644
--- a/website/server/controllers/top-level/dataexport.js
+++ b/website/server/controllers/top-level/dataexport.js
@@ -27,7 +27,7 @@ const api = {};
* @apiDefine DataExport Data Export
* These routes allow you to download backups of your data.
*
- * **Note:** They are intented to be used on the website only and as such are part
+ * **Note:** They are intended to be used on the website only and as such are part
* of the private API and may change at any time.
*/
diff --git a/website/server/libs/auth/index.js b/website/server/libs/auth/index.js
index 495096062e..7b5b3c8c73 100644
--- a/website/server/libs/auth/index.js
+++ b/website/server/libs/auth/index.js
@@ -113,7 +113,7 @@ async function registerLocal (req, res, { isV3 = false }) {
const { password } = req.body;
// Get the lowercase version of username to check that we do not have duplicates
- // So we can search for it in the database and then reject the choosen
+ // So we can search for it in the database and then reject the chosen
// username if 1 or more results are found
email = email.toLowerCase();
username = username.trim();
diff --git a/website/server/libs/i18n.js b/website/server/libs/i18n.js
index de620003a6..85f8c14880 100644
--- a/website/server/libs/i18n.js
+++ b/website/server/libs/i18n.js
@@ -10,7 +10,7 @@ export const translations = {};
// Store MomentJS localization files
export const momentLangs = {};
-// Handle differencies in language codes between MomentJS and /locales
+// Handle differences in language codes between MomentJS and /locales
const momentLangsMapping = {
en: 'en-gb',
en_GB: 'en-gb', // eslint-disable-line camelcase
diff --git a/website/server/libs/taskManager.js b/website/server/libs/taskManager.js
index 729bb4f30b..9a06be5772 100644
--- a/website/server/libs/taskManager.js
+++ b/website/server/libs/taskManager.js
@@ -268,7 +268,7 @@ export function syncableAttrs (task) {
*
* @param order The list of ordered tasks
* @param taskId The Task._id of the task to move
- * @param to A integer specifiying the index to move the task to
+ * @param to A integer specifying the index to move the task to
*
* @return Empty
*/
diff --git a/website/server/middlewares/errorHandler.js b/website/server/middlewares/errorHandler.js
index 4fddc09dd0..b73b9d6df3 100644
--- a/website/server/middlewares/errorHandler.js
+++ b/website/server/middlewares/errorHandler.js
@@ -84,7 +84,7 @@ export default function errorHandler (err, req, res, next) { // eslint-disable-l
jsonRes.errors = responseErr.errors;
}
- // In some occasions like when invalid JSON is supplied `res.respond` might be not yet avalaible,
+ // In some occasions like when invalid JSON is supplied `res.respond` might be not yet available,
// in this case we use the standard res.status(...).json(...)
return res.status(responseErr.httpCode).json(jsonRes);
}
diff --git a/website/server/models/challenge.js b/website/server/models/challenge.js
index 3707b2a929..5f37c3aa9e 100644
--- a/website/server/models/challenge.js
+++ b/website/server/models/challenge.js
@@ -56,7 +56,7 @@ schema.plugin(baseModel, {
schema.pre('init', chal => {
// The Vue website makes the summary be mandatory for all new challenges, but the
- // Angular website did not, and the API does not yet for backwards-compatibilty.
+ // Angular website did not, and the API does not yet for backwards-compatibility.
// When any challenge without a summary is fetched from the database, this code
// supplies the name as the summary. This can be removed when all challenges have
// a summary and the API makes it mandatory (a breaking change!)
diff --git a/website/server/models/group.js b/website/server/models/group.js
index 805532f280..dbdcee2d60 100644
--- a/website/server/models/group.js
+++ b/website/server/models/group.js
@@ -158,7 +158,7 @@ schema.plugin(baseModel, {
schema.pre('init', group => {
// The Vue website makes the summary be mandatory for all new groups, but the
- // Angular website did not, and the API does not yet for backwards-compatibilty.
+ // Angular website did not, and the API does not yet for backwards-compatibility.
// When any guild without a summary is fetched from the database, this code
// supplies the name as the summary. This can be removed when all guilds have
// a summary and the API makes it mandatory (a breaking change!)
diff --git a/website/server/models/user/methods.js b/website/server/models/user/methods.js
index d1ef743b1e..49fe2fc73f 100644
--- a/website/server/models/user/methods.js
+++ b/website/server/models/user/methods.js
@@ -329,7 +329,7 @@ schema.statics.addComputedStatsToJSONObj = function addComputedStatsToUserJSONOb
// This creates some odd Dependency Injection issues. To counter that,
// we use the user as the third layer
// To negotiate between the payment providers and the payment helper
-// (which probably has too many responsiblities)
+// (which probably has too many responsibilities)
// In summary, currently is is best practice to use this method to cancel a user subscription,
// rather than calling the
// payment helper.