Merge pull request #1962 from apoclyps/fix/spellings
[Fix] apply fixes for common spelling mistakes
This commit is contained in:
commit
319aa81fc7
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "**** WARNING - not for production environments ****"
|
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!
|
# properly for your environment!
|
||||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||||
sudo sh get-docker.sh
|
sudo sh get-docker.sh
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
return ""
|
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(
|
const index = options.findIndex(
|
||||||
(option, idx) => getOptionValue(option, idx) === value
|
(option, idx) => getOptionValue(option, idx) === value
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,7 +9,7 @@ Please read this if you are unfamiliar with it.
|
||||||
|
|
||||||
* Please maintain the existing code style.
|
* 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.
|
* If the project diverges from your branch, please rebase instead of merging. This makes the commit graph easier to read.
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ async function run() {
|
||||||
process.exit(-1)
|
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
|
// it will cause environment module to be loaded prematurely
|
||||||
const server = require("../../server/dist/app")
|
const server = require("../../server/dist/app")
|
||||||
process.env.PORT = WORKER_PORT
|
process.env.PORT = WORKER_PORT
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
Add your first filter column.
|
Add your first filter column.
|
||||||
{:else}
|
{:else}
|
||||||
Results are filtered to only those which match all of the following
|
Results are filtered to only those which match all of the following
|
||||||
constaints.
|
constraints.
|
||||||
{/if}
|
{/if}
|
||||||
</Body>
|
</Body>
|
||||||
<LuceneFilterBuilder bind:value={tempValue} {schemaFields} />
|
<LuceneFilterBuilder bind:value={tempValue} {schemaFields} />
|
||||||
|
|
|
@ -1153,10 +1153,10 @@ export default {
|
||||||
space: ["空格"],
|
space: ["空格"],
|
||||||
"page-separator": ["insert", "分页符", "插入"],
|
"page-separator": ["insert", "分页符", "插入"],
|
||||||
"code-view": ["代码视图"],
|
"code-view": ["代码视图"],
|
||||||
"double-quotes-l": ["left", "quotaion marks", "双引号"],
|
"double-quotes-l": ["left", "quotation marks", "双引号"],
|
||||||
"double-quotes-r": ["right", "quotaion marks", "双引号"],
|
"double-quotes-r": ["right", "quotation marks", "双引号"],
|
||||||
"single-quotes-l": ["left", "quotaion marks", "单引号"],
|
"single-quotes-l": ["left", "quotation marks", "单引号"],
|
||||||
"single-quotes-r": ["right", "quotaion marks", "单引号"],
|
"single-quotes-r": ["right", "quotation marks", "单引号"],
|
||||||
"table-2": ["表格"],
|
"table-2": ["表格"],
|
||||||
subscript: ["角标", "下标", "脚注"],
|
subscript: ["角标", "下标", "脚注"],
|
||||||
"subscript-2": ["角标", "下标", "脚注"],
|
"subscript-2": ["角标", "下标", "脚注"],
|
||||||
|
@ -1463,7 +1463,7 @@ export default {
|
||||||
alipay: ["zhifubao", "支付宝"],
|
alipay: ["zhifubao", "支付宝"],
|
||||||
amazon: ["亚马逊"],
|
amazon: ["亚马逊"],
|
||||||
android: ["applications", "安卓", "应用"],
|
android: ["applications", "安卓", "应用"],
|
||||||
angularjs: ["angular", "programing framework"],
|
angularjs: ["angular", "programming framework"],
|
||||||
"app-store": ["applications", "苹果应用商店"],
|
"app-store": ["applications", "苹果应用商店"],
|
||||||
apple: ["苹果"],
|
apple: ["苹果"],
|
||||||
baidu: ["du", "claw", "百度", "爪"],
|
baidu: ["du", "claw", "百度", "爪"],
|
||||||
|
@ -1519,7 +1519,7 @@ export default {
|
||||||
playstation: ["ps"],
|
playstation: ["ps"],
|
||||||
"product-hunt": ["product hunt"],
|
"product-hunt": ["product hunt"],
|
||||||
qq: ["penguin", "tencent", "腾讯", "企鹅"],
|
qq: ["penguin", "tencent", "腾讯", "企鹅"],
|
||||||
reactjs: ["react", "programing framework", "facebook"],
|
reactjs: ["react", "programming framework", "facebook"],
|
||||||
reddit: ["reddit"],
|
reddit: ["reddit"],
|
||||||
remixicon: ["remix icon", "图标"],
|
remixicon: ["remix icon", "图标"],
|
||||||
safari: ["safari浏览器"],
|
safari: ["safari浏览器"],
|
||||||
|
@ -1543,7 +1543,7 @@ export default {
|
||||||
unsplash: ["photos"],
|
unsplash: ["photos"],
|
||||||
vimeo: ["视频"],
|
vimeo: ["视频"],
|
||||||
visa: ["bank card", "银行卡"],
|
visa: ["bank card", "银行卡"],
|
||||||
vuejs: ["vue", "programing framework"],
|
vuejs: ["vue", "programming framework"],
|
||||||
wechat: ["微信"],
|
wechat: ["微信"],
|
||||||
"wechat-2": ["微信"],
|
"wechat-2": ["微信"],
|
||||||
"wechat-pay": ["微信支付"],
|
"wechat-pay": ["微信支付"],
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
if (res.status) {
|
if (res.status) {
|
||||||
notifications.error(res.message)
|
notifications.error(res.message)
|
||||||
} else {
|
} else {
|
||||||
notifications.success("Succesfully created user")
|
notifications.success("Successfully created user")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -108,7 +108,7 @@ function parseEmitExpression(field, groupBy) {
|
||||||
* calculation: an optional calculation to be performed over the view data.
|
* calculation: an optional calculation to be performed over the view data.
|
||||||
*/
|
*/
|
||||||
function viewTemplate({ field, tableId, groupBy, filters = [], calculation }) {
|
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) {
|
if (filters && filters.length > 0 && filters[0].conjunction) {
|
||||||
delete filters[0].conjunction
|
delete filters[0].conjunction
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ exports.update = async (apiKey, property, usage) => {
|
||||||
await apiKeyTable.put({ item: keyObj })
|
await apiKeyTable.put({ item: keyObj })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// we have infact breached the reset period
|
// we have in fact breached the reset period
|
||||||
else if (keyObj && keyObj.quotaReset <= Date.now()) {
|
else if (keyObj && keyObj.quotaReset <= Date.now()) {
|
||||||
// update the quota reset period and reset the values for all properties
|
// update the quota reset period and reset the values for all properties
|
||||||
keyObj.quotaReset = getNewQuotaReset()
|
keyObj.quotaReset = getNewQuotaReset()
|
||||||
|
|
|
@ -22,7 +22,7 @@ export const generateID = (size = 21) => {
|
||||||
// It is incorrect to use bytes exceeding the alphabet size.
|
// It is incorrect to use bytes exceeding the alphabet size.
|
||||||
// The following mask reduces the random byte in the 0-255 value
|
// The following mask reduces the random byte in the 0-255 value
|
||||||
// range to the 0-63 value range. Therefore, adding hacks, such
|
// 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.
|
// the bitmask trims bytes down to the alphabet size.
|
||||||
let byte = bytes[size] & 63
|
let byte = bytes[size] & 63
|
||||||
if (byte < 36) {
|
if (byte < 36) {
|
||||||
|
|
|
@ -28,7 +28,7 @@ module.exports.processors = [
|
||||||
let startBraceIdx = statement.indexOf("[")
|
let startBraceIdx = statement.indexOf("[")
|
||||||
let lastIdx = 0
|
let lastIdx = 0
|
||||||
while (startBraceIdx !== -1) {
|
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))) {
|
if (isAlphaNumeric(statement.charAt(startBraceIdx - 1))) {
|
||||||
statement = swapStrings(statement, startBraceIdx + lastIdx, 1, ".[")
|
statement = swapStrings(statement, startBraceIdx + lastIdx, 1, ".[")
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
* @param {object} config an SMTP configuration - this is based on the nodemailer API.
|
||||||
* @return {Promise<boolean>} returns true if the configuration is valid.
|
* @return {Promise<boolean>} returns true if the configuration is valid.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue