DEV: Fix random typos (#22804)

A fresh batch of stashed changes :P
This commit is contained in:
Jarek Radosz 2023-07-26 12:45:35 +02:00 committed by GitHub
parent c43271eb9b
commit d06431ba9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 10 deletions

View File

@ -61,7 +61,7 @@ let alreadyRegistered = false;
* https://guides.emberjs.com/release/applications/dependency-injection/
*
* Incremental migration to newer patterns can be achieved using the `@disableImplicitInjections`
* helper (availble on `discourse/lib/implicit-injections')
* helper (available on `discourse/lib/implicit-injections')
*/
export function registerDiscourseImplicitInjections() {
if (alreadyRegistered) {

View File

@ -52,7 +52,7 @@ export const SELECTORS = {
};
export const LIGHTBOX_APP_EVENT_NAMES = {
// this cannot use dom:clean else #cleanupLightboxes will be called after #setupLighboxes
// this cannot use dom:clean else #cleanupLightboxes will be called after #setupLightboxes
CLEAN: "lightbox:clean",
CLOSE: "lightbox:close",
CLOSED: "lightbox:closed",

View File

@ -960,7 +960,7 @@ acceptance("Experimental Lightbox - conditional buttons", function (needs) {
await visit("/t/internationalization-localization/280");
await click(SELECTORS.DEFAULT_ITEM_SELECTOR);
// it doesn not show the newtab or download button
// it does not show the newtab or download button
assert.dom(SELECTORS.TAB_BUTTON).doesNotExist();
assert.dom(SELECTORS.DOWNLOAD_BUTTON).doesNotExist();
});

View File

@ -50,7 +50,7 @@ acceptance("Implicit injections shims", function () {
assert.strictEqual(
newModel.appEvents,
"overridden app events",
"overriden app events are passed though when creating from another objects"
"overridden app events are passed though when creating from another objects"
);
});
});

View File

@ -105,7 +105,7 @@ export const LIGHTBOX_IMAGE_FIXTURES = {
};
export function generateLightboxObject() {
const trimmedLighboxItem = Object.keys(LIGHTBOX_IMAGE_FIXTURES.first).reduce(
const trimmedLightboxItem = Object.keys(LIGHTBOX_IMAGE_FIXTURES.first).reduce(
(acc, key) => {
if (key !== "height" && key !== "width" && key !== "alt") {
acc[key] = LIGHTBOX_IMAGE_FIXTURES.first[key];
@ -116,7 +116,7 @@ export function generateLightboxObject() {
);
return {
items: [{ ...trimmedLighboxItem }],
items: [{ ...trimmedLightboxItem }],
startingIndex: 0,
callbacks: {},
options: {},

View File

@ -4819,7 +4819,7 @@ en:
update: Update a topic. Change the title, category, tags, status, archetype, featured_link etc.
delete: Delete a topic.
read_lists: Read topic lists like top, new, latest, etc. RSS is also supported.
status: "Update a topic's status. Status: closed, archive, visisble, pinned. Enabled: true, false. Specify a category_id here and in the request payload to only allow status changes on topics in that category."
status: "Update a topic's status. Status: closed, archive, visible, pinned. Enabled: true, false. Specify a category_id here and in the request payload to only allow status changes on topics in that category."
posts:
edit: Edit any post or a specific one.
delete: Delete a post.

View File

@ -379,7 +379,7 @@ export default class ChatEmojiPicker extends Component {
}
schedule("afterRender", () => {
const firsEmoji = document.querySelector(
const firstEmoji = document.querySelector(
`.chat-emoji-picker__section[data-section="${section}"] .emoji:nth-child(1)`
);
@ -388,7 +388,7 @@ export default class ChatEmojiPicker extends Component {
...document.querySelectorAll(
`.chat-emoji-picker__section[data-section="${section}"] .emoji`
),
].find((emoji) => emoji.offsetTop > firsEmoji.offsetTop) || firsEmoji;
].find((emoji) => emoji.offsetTop > firstEmoji.offsetTop) || firstEmoji;
targetEmoji.focus();

View File

@ -372,7 +372,7 @@ RSpec.describe Auth::ManagedAuthenticator do
expect(result.user).to eq(nil)
end
it "does not match if default match_by_username not overriden" do
it "does not match if default match_by_username not overridden" do
SiteSetting.username_change_period = 0
authenticator =
Class