From b4afda7b090c8e8fa64665aa752be16550444902 Mon Sep 17 00:00:00 2001 From: Kyle Harrison Date: Fri, 9 Jul 2021 17:50:01 +0100 Subject: [PATCH] apply fixes for common spelling mistakes --- hosting/scripts/linux/install-docker.sh | 2 +- packages/bbui/src/Form/Core/Select.svelte | 2 +- packages/builder/CONTRIBUTING.md | 2 +- packages/builder/cypress/setup.js | 2 +- .../FilterEditor/FilterEditor.svelte | 2 +- .../PropertyControls/IconSelect/icons.js | 14 +++++++------- .../users/_components/BasicOnboardingModal.svelte | 2 +- .../server/src/api/controllers/view/viewBuilder.js | 2 +- packages/server/src/utilities/usageQuota.js | 2 +- packages/standard-components/src/helpers.js | 2 +- .../src/processors/preprocessor.js | 2 +- packages/worker/src/utilities/email.js | 2 +- 12 files changed, 18 insertions(+), 18 deletions(-) diff --git a/hosting/scripts/linux/install-docker.sh b/hosting/scripts/linux/install-docker.sh index a71809c31f..fe92736d91 100755 --- a/hosting/scripts/linux/install-docker.sh +++ b/hosting/scripts/linux/install-docker.sh @@ -1,6 +1,6 @@ #!/bin/bash echo "**** WARNING - not for production environments ****" -# warning this is a convience script, for production installations install docker +# warning this is a convenience script, for production installations install docker # properly for your environment! curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh diff --git a/packages/bbui/src/Form/Core/Select.svelte b/packages/bbui/src/Form/Core/Select.svelte index 93e59e2420..515bd7397c 100644 --- a/packages/bbui/src/Form/Core/Select.svelte +++ b/packages/bbui/src/Form/Core/Select.svelte @@ -29,7 +29,7 @@ return "" } - // Render the label if the selected option is found, otherwide raw value + // Render the label if the selected option is found, otherwise raw value const index = options.findIndex( (option, idx) => getOptionValue(option, idx) === value ) diff --git a/packages/builder/CONTRIBUTING.md b/packages/builder/CONTRIBUTING.md index 24bd682585..dbefb5a16b 100644 --- a/packages/builder/CONTRIBUTING.md +++ b/packages/builder/CONTRIBUTING.md @@ -9,7 +9,7 @@ Please read this if you are unfamiliar with it. * Please maintain the existing code style. -* Please try to keep your commits small and focussed. +* Please try to keep your commits small and focused. * If the project diverges from your branch, please rebase instead of merging. This makes the commit graph easier to read. diff --git a/packages/builder/cypress/setup.js b/packages/builder/cypress/setup.js index 2c09c4b3c5..4ad8e5287d 100644 --- a/packages/builder/cypress/setup.js +++ b/packages/builder/cypress/setup.js @@ -34,7 +34,7 @@ async function run() { process.exit(-1) } - // dont make this a variable or top level require + // don't make this a variable or top level require // it will cause environment module to be loaded prematurely const server = require("../../server/dist/app") process.env.PORT = WORKER_PORT diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterEditor.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterEditor.svelte index dcda6ac1f1..900ac58971 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterEditor.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterEditor.svelte @@ -48,7 +48,7 @@ Add your first filter column. {:else} Results are filtered to only those which match all of the following - constaints. + constraints. {/if} diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/IconSelect/icons.js b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/IconSelect/icons.js index 8baf58c589..ca57f98180 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/IconSelect/icons.js +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/IconSelect/icons.js @@ -1153,10 +1153,10 @@ export default { space: ["空格"], "page-separator": ["insert", "分页符", "插入"], "code-view": ["代码视图"], - "double-quotes-l": ["left", "quotaion marks", "双引号"], - "double-quotes-r": ["right", "quotaion marks", "双引号"], - "single-quotes-l": ["left", "quotaion marks", "单引号"], - "single-quotes-r": ["right", "quotaion marks", "单引号"], + "double-quotes-l": ["left", "quotation marks", "双引号"], + "double-quotes-r": ["right", "quotation marks", "双引号"], + "single-quotes-l": ["left", "quotation marks", "单引号"], + "single-quotes-r": ["right", "quotation marks", "单引号"], "table-2": ["表格"], subscript: ["角标", "下标", "脚注"], "subscript-2": ["角标", "下标", "脚注"], @@ -1463,7 +1463,7 @@ export default { alipay: ["zhifubao", "支付宝"], amazon: ["亚马逊"], android: ["applications", "安卓", "应用"], - angularjs: ["angular", "programing framework"], + angularjs: ["angular", "programming framework"], "app-store": ["applications", "苹果应用商店"], apple: ["苹果"], baidu: ["du", "claw", "百度", "爪"], @@ -1519,7 +1519,7 @@ export default { playstation: ["ps"], "product-hunt": ["product hunt"], qq: ["penguin", "tencent", "腾讯", "企鹅"], - reactjs: ["react", "programing framework", "facebook"], + reactjs: ["react", "programming framework", "facebook"], reddit: ["reddit"], remixicon: ["remix icon", "图标"], safari: ["safari浏览器"], @@ -1543,7 +1543,7 @@ export default { unsplash: ["photos"], vimeo: ["视频"], visa: ["bank card", "银行卡"], - vuejs: ["vue", "programing framework"], + vuejs: ["vue", "programming framework"], wechat: ["微信"], "wechat-2": ["微信"], "wechat-pay": ["微信支付"], diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/BasicOnboardingModal.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/BasicOnboardingModal.svelte index 8ecb274585..9c7b9aa0ea 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/BasicOnboardingModal.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/BasicOnboardingModal.svelte @@ -20,7 +20,7 @@ if (res.status) { notifications.error(res.message) } else { - notifications.success("Succesfully created user") + notifications.success("Successfully created user") } } diff --git a/packages/server/src/api/controllers/view/viewBuilder.js b/packages/server/src/api/controllers/view/viewBuilder.js index ed1199fa5b..068c6ab7b1 100644 --- a/packages/server/src/api/controllers/view/viewBuilder.js +++ b/packages/server/src/api/controllers/view/viewBuilder.js @@ -108,7 +108,7 @@ function parseEmitExpression(field, groupBy) { * calculation: an optional calculation to be performed over the view data. */ function viewTemplate({ field, tableId, groupBy, filters = [], calculation }) { - // first filter can't have a conjuction + // first filter can't have a conjunction if (filters && filters.length > 0 && filters[0].conjunction) { delete filters[0].conjunction } diff --git a/packages/server/src/utilities/usageQuota.js b/packages/server/src/utilities/usageQuota.js index d042d290d5..bfe71a4093 100644 --- a/packages/server/src/utilities/usageQuota.js +++ b/packages/server/src/utilities/usageQuota.js @@ -85,7 +85,7 @@ exports.update = async (apiKey, property, usage) => { await apiKeyTable.put({ item: keyObj }) return } - // we have infact breached the reset period + // we have in fact breached the reset period else if (keyObj && keyObj.quotaReset <= Date.now()) { // update the quota reset period and reset the values for all properties keyObj.quotaReset = getNewQuotaReset() diff --git a/packages/standard-components/src/helpers.js b/packages/standard-components/src/helpers.js index 07a8081058..4a47d4e538 100644 --- a/packages/standard-components/src/helpers.js +++ b/packages/standard-components/src/helpers.js @@ -22,7 +22,7 @@ export const generateID = (size = 21) => { // It is incorrect to use bytes exceeding the alphabet size. // The following mask reduces the random byte in the 0-255 value // range to the 0-63 value range. Therefore, adding hacks, such - // as empty string fallback or magic numbers, is unneccessary because + // as empty string fallback or magic numbers, is unnecessary because // the bitmask trims bytes down to the alphabet size. let byte = bytes[size] & 63 if (byte < 36) { diff --git a/packages/string-templates/src/processors/preprocessor.js b/packages/string-templates/src/processors/preprocessor.js index ee3a3a9730..6f6537674a 100644 --- a/packages/string-templates/src/processors/preprocessor.js +++ b/packages/string-templates/src/processors/preprocessor.js @@ -28,7 +28,7 @@ module.exports.processors = [ let startBraceIdx = statement.indexOf("[") let lastIdx = 0 while (startBraceIdx !== -1) { - // if the character previous to the literal specifier is alpha-numeric this should happen + // if the character previous to the literal specifier is alphanumeric this should happen if (isAlphaNumeric(statement.charAt(startBraceIdx - 1))) { statement = swapStrings(statement, startBraceIdx + lastIdx, 1, ".[") } diff --git a/packages/worker/src/utilities/email.js b/packages/worker/src/utilities/email.js index 534456fe15..dc13bb948a 100644 --- a/packages/worker/src/utilities/email.js +++ b/packages/worker/src/utilities/email.js @@ -173,7 +173,7 @@ exports.sendEmail = async ( } /** - * Given an SMTP configuration this runs it through nodemailer to see if it is infact functional. + * Given an SMTP configuration this runs it through nodemailer to see if it is in fact functional. * @param {object} config an SMTP configuration - this is based on the nodemailer API. * @return {Promise} returns true if the configuration is valid. */