mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
parent
c43271eb9b
commit
d06431ba9b
@ -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) {
|
||||
|
@ -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",
|
||||
|
@ -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();
|
||||
});
|
||||
|
@ -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"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
@ -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: {},
|
||||
|
@ -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.
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user