@@ -76,7 +76,7 @@
{{#each act.params as |p|}}
-
+
{{/each}}
|
diff --git a/app/assets/javascripts/admin/addon/templates/api-keys-show.hbs b/app/assets/javascripts/admin/addon/templates/api-keys-show.hbs
index 43ae76c3ce7..f1db529b84a 100644
--- a/app/assets/javascripts/admin/addon/templates/api-keys-show.hbs
+++ b/app/assets/javascripts/admin/addon/templates/api-keys-show.hbs
@@ -11,7 +11,7 @@
{{#if this.editingDescription}}
-
+
{{else}}
{{if this.model.description this.model.description (i18n "admin.api.no_description")}}
diff --git a/app/assets/javascripts/admin/addon/templates/badges-show.hbs b/app/assets/javascripts/admin/addon/templates/badges-show.hbs
index 60948580a6b..520790be3b3 100644
--- a/app/assets/javascripts/admin/addon/templates/badges-show.hbs
+++ b/app/assets/javascripts/admin/addon/templates/badges-show.hbs
@@ -3,14 +3,14 @@
@@ -56,28 +56,28 @@
{{#if this.buffered.system}}
-
+
{{i18n "admin.badges.read_only_setting_help"}}
{{else}}
-
+
{{/if}}
{{#if this.buffered.system}}
-
+
{{i18n "admin.badges.read_only_setting_help"}}
{{else}}
-
+
{{/if}}
@@ -97,14 +97,14 @@
@@ -128,21 +128,21 @@
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-theme-editor.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-theme-editor.hbs
index fa9f5d153e6..ec8ed70f301 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-theme-editor.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-theme-editor.hbs
@@ -3,7 +3,7 @@
-
+
-
+
{{#if this.bufferedFieldType.hasOptions}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event-chooser.hbs b/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event-chooser.hbs
index 0f219ca670a..68f9a2ae9f6 100644
--- a/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event-chooser.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/admin-web-hook-event-chooser.hbs
@@ -1,3 +1,3 @@
-
+
{{this.details}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/embeddable-host.hbs b/app/assets/javascripts/admin/addon/templates/components/embeddable-host.hbs
index cf6b8ad88a2..8c1c331dd75 100644
--- a/app/assets/javascripts/admin/addon/templates/components/embeddable-host.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/embeddable-host.hbs
@@ -1,7 +1,7 @@
{{#if this.editing}}
{{i18n "admin.embedding.host"}}
-
+
|
{{i18n "admin.embedding.class_name"}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/embedding-setting.hbs b/app/assets/javascripts/admin/addon/templates/components/embedding-setting.hbs
index 795e4a7c417..2dfa75d3a06 100644
--- a/app/assets/javascripts/admin/addon/templates/components/embedding-setting.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/embedding-setting.hbs
@@ -1,11 +1,11 @@
{{#if this.isCheckbox}}
{{else}}
-
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/inline-edit-checkbox.hbs b/app/assets/javascripts/admin/addon/templates/components/inline-edit-checkbox.hbs
index 4ca3d9c2c00..ecf6231557f 100644
--- a/app/assets/javascripts/admin/addon/templates/components/inline-edit-checkbox.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/inline-edit-checkbox.hbs
@@ -1,5 +1,5 @@
{{#if this.changed}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs b/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs
index 3f0c38bc036..adca8cf2fbc 100644
--- a/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs
@@ -1 +1 @@
-
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/secret-value-list.hbs b/app/assets/javascripts/admin/addon/templates/components/secret-value-list.hbs
index ef447101e13..8924af30ba8 100644
--- a/app/assets/javascripts/admin/addon/templates/components/secret-value-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/secret-value-list.hbs
@@ -3,8 +3,8 @@
{{#each this.collection as |value index|}}
-
-
+
+
{{/each}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/simple-list.hbs b/app/assets/javascripts/admin/addon/templates/components/simple-list.hbs
index b13b021a7e5..d3433879f9f 100644
--- a/app/assets/javascripts/admin/addon/templates/components/simple-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/simple-list.hbs
@@ -4,21 +4,19 @@
-
+
{{#if this.showUpDownButtons}}
{{/if}}
-
{{/each}}
-
{{/if}}
-
+
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-setting.hbs b/app/assets/javascripts/admin/addon/templates/components/site-setting.hbs
index 8a305532564..f1ad69af963 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-setting.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-setting.hbs
@@ -2,7 +2,7 @@
{{#if this.staffLogFilter}}
{{this.settingName}}
-
+
{{d-icon "history"}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/site-settings/string.hbs b/app/assets/javascripts/admin/addon/templates/components/site-settings/string.hbs
index 7d0b7cb72e9..53d8555c042 100644
--- a/app/assets/javascripts/admin/addon/templates/components/site-settings/string.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/site-settings/string.hbs
@@ -1,9 +1,9 @@
{{#if this.setting.textarea}}
-
+
{{else if this.setting.json_schema}}
{{else if this.isSecret}}
-
+
{{else}}
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/staff-actions.hbs b/app/assets/javascripts/admin/addon/templates/components/staff-actions.hbs
index 67dae94ea5c..7f756aab274 100644
--- a/app/assets/javascripts/admin/addon/templates/components/staff-actions.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/staff-actions.hbs
@@ -1,4 +1,4 @@
{{!-- template-lint-disable no-invalid-interactive --}}
-
+
{{yield}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/themes-list.hbs b/app/assets/javascripts/admin/addon/templates/components/themes-list.hbs
index 378c6837a09..f71aa9dd52c 100644
--- a/app/assets/javascripts/admin/addon/templates/components/themes-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/themes-list.hbs
@@ -6,7 +6,7 @@
{{#if this.showFilter}}
-
+
{{d-icon "search"}}
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/value-list.hbs b/app/assets/javascripts/admin/addon/templates/components/value-list.hbs
index 265018d7f1f..7a2f12b5c3b 100644
--- a/app/assets/javascripts/admin/addon/templates/components/value-list.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/value-list.hbs
@@ -4,7 +4,7 @@
-
+
{{#if this.showUpDownButtons}}
diff --git a/app/assets/javascripts/admin/addon/templates/components/watched-word-form.hbs b/app/assets/javascripts/admin/addon/templates/components/watched-word-form.hbs
index e7f4434463c..b68a9f4f610 100644
--- a/app/assets/javascripts/admin/addon/templates/components/watched-word-form.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/watched-word-form.hbs
@@ -22,8 +22,8 @@
{{#if this.canLink}}
-
-
+
+
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/dashboard_reports.hbs b/app/assets/javascripts/admin/addon/templates/dashboard_reports.hbs
index aac0b4d145e..ef4fd8fbc5f 100644
--- a/app/assets/javascripts/admin/addon/templates/dashboard_reports.hbs
+++ b/app/assets/javascripts/admin/addon/templates/dashboard_reports.hbs
@@ -2,11 +2,11 @@
{{i18n "admin.reports.title"}}
-
+
- {{#each this.filterReports as |report|}}
+ {{#each this.filteredReports as |report|}}
-
{{report.title}}
diff --git a/app/assets/javascripts/admin/addon/templates/email-advanced-test.hbs b/app/assets/javascripts/admin/addon/templates/email-advanced-test.hbs
index 0acb7d9d4f8..7702ba14a65 100644
--- a/app/assets/javascripts/admin/addon/templates/email-advanced-test.hbs
+++ b/app/assets/javascripts/admin/addon/templates/email-advanced-test.hbs
@@ -2,7 +2,7 @@
-
+
diff --git a/app/assets/javascripts/admin/addon/templates/logs/screened-urls.hbs b/app/assets/javascripts/admin/addon/templates/logs/screened-urls.hbs
index 55096d98ab1..0b3bc2bf64c 100644
--- a/app/assets/javascripts/admin/addon/templates/logs/screened-urls.hbs
+++ b/app/assets/javascripts/admin/addon/templates/logs/screened-urls.hbs
@@ -1,7 +1,7 @@
{{i18n "admin.logs.screened_urls.description"}}
-
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-add-upload.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-add-upload.hbs
index 64a401e7a08..200930cb17a 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-add-upload.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-add-upload.hbs
@@ -6,7 +6,7 @@
{{#if this.fileSelected}}
{{#if this.errorMessage}}
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-incoming-email.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-incoming-email.hbs
index b5d2abae644..14ee7372819 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-incoming-email.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-incoming-email.hbs
@@ -14,7 +14,7 @@
-
+
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-install-theme.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-install-theme.hbs
index c732a486fa4..0918c6aee4e 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-install-theme.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-install-theme.hbs
@@ -72,7 +72,7 @@
{{i18n "admin.customize.theme.public_key"}}
-
+
{{else}}
diff --git a/app/assets/javascripts/admin/addon/templates/modal/admin-watched-word-test.hbs b/app/assets/javascripts/admin/addon/templates/modal/admin-watched-word-test.hbs
index 4a49a0c86fb..1f4f3cbbf22 100644
--- a/app/assets/javascripts/admin/addon/templates/modal/admin-watched-word-test.hbs
+++ b/app/assets/javascripts/admin/addon/templates/modal/admin-watched-word-test.hbs
@@ -1,6 +1,6 @@
{{i18n "admin.watched_words.test.description"}}
-
+
{{#if this.matches}}
{{i18n "admin.watched_words.test.found_matches"}}
diff --git a/app/assets/javascripts/admin/addon/templates/site-text-index.hbs b/app/assets/javascripts/admin/addon/templates/site-text-index.hbs
index da962af60c3..b10fa0d2391 100644
--- a/app/assets/javascripts/admin/addon/templates/site-text-index.hbs
+++ b/app/assets/javascripts/admin/addon/templates/site-text-index.hbs
@@ -14,7 +14,7 @@
diff --git a/app/assets/javascripts/admin/addon/templates/watched-words-action.hbs b/app/assets/javascripts/admin/addon/templates/watched-words-action.hbs
index 08ceade7092..5c604521f75 100644
--- a/app/assets/javascripts/admin/addon/templates/watched-words-action.hbs
+++ b/app/assets/javascripts/admin/addon/templates/watched-words-action.hbs
@@ -22,7 +22,7 @@
{{#if this.currentAction.words}}
{{/if}}
diff --git a/app/assets/javascripts/admin/addon/templates/web-hooks-show-events.hbs b/app/assets/javascripts/admin/addon/templates/web-hooks-show-events.hbs
index 8f5f4833876..2b5c768def3 100644
--- a/app/assets/javascripts/admin/addon/templates/web-hooks-show-events.hbs
+++ b/app/assets/javascripts/admin/addon/templates/web-hooks-show-events.hbs
@@ -1,9 +1,9 @@
-
+
{{d-icon "list"}} {{i18n "admin.web_hooks.events.go_list"}}
-
+
{{d-icon "far-edit"}} {{i18n "admin.web_hooks.events.go_details"}}
diff --git a/app/assets/javascripts/admin/addon/templates/web-hooks-show.hbs b/app/assets/javascripts/admin/addon/templates/web-hooks-show.hbs
index 784985b98cc..2ce340bc71f 100644
--- a/app/assets/javascripts/admin/addon/templates/web-hooks-show.hbs
+++ b/app/assets/javascripts/admin/addon/templates/web-hooks-show.hbs
@@ -66,11 +66,11 @@
- {{i18n "admin.web_hooks.verify_certificate"}}
+ {{i18n "admin.web_hooks.verify_certificate"}}
- {{i18n "admin.web_hooks.active"}}
+ {{i18n "admin.web_hooks.active"}}
{{#if this.model.active}}
{{i18n "admin.web_hooks.active_notice"}}
diff --git a/app/assets/javascripts/admin/addon/templates/web-hooks.hbs b/app/assets/javascripts/admin/addon/templates/web-hooks.hbs
index d92e06ccab2..ecf04bb08ff 100644
--- a/app/assets/javascripts/admin/addon/templates/web-hooks.hbs
+++ b/app/assets/javascripts/admin/addon/templates/web-hooks.hbs
@@ -1,7 +1,7 @@
{{i18n "admin.web_hooks.instruction"}}
-
+
{{d-icon "plus"}} {{i18n "admin.web_hooks.new"}}
@@ -23,7 +23,7 @@
{{webHook.payload_url}} |
{{webHook.description}} |
- {{d-icon "far-edit"}}
+ {{d-icon "far-edit"}}
|
diff --git a/app/assets/javascripts/confirm-new-email/confirm-new-email.js b/app/assets/javascripts/confirm-new-email/confirm-new-email.js
index eeec4e045ae..29cde23e569 100644
--- a/app/assets/javascripts/confirm-new-email/confirm-new-email.js
+++ b/app/assets/javascripts/confirm-new-email/confirm-new-email.js
@@ -10,9 +10,8 @@ if (security) {
.getElementById("security-key-allowed-credential-ids")
.value.split(","),
(credentialData) => {
- document.getElementById(
- "security-key-credential"
- ).value = JSON.stringify(credentialData);
+ document.getElementById("security-key-credential").value =
+ JSON.stringify(credentialData);
$(e.target).parents("form").submit();
},
diff --git a/app/assets/javascripts/discourse-hbr/raw-handlebars-compiler.js b/app/assets/javascripts/discourse-hbr/raw-handlebars-compiler.js
index ff9b87a04ad..f6376ca5dba 100644
--- a/app/assets/javascripts/discourse-hbr/raw-handlebars-compiler.js
+++ b/app/assets/javascripts/discourse-hbr/raw-handlebars-compiler.js
@@ -130,7 +130,8 @@ TemplateCompiler.prototype.targetExtension = "js";
TemplateCompiler.prototype.registerPlugins = function registerPlugins() {};
-TemplateCompiler.prototype.initializeFeatures = function initializeFeatures() {};
+TemplateCompiler.prototype.initializeFeatures =
+ function initializeFeatures() {};
TemplateCompiler.prototype.processString = function (string, relativePath) {
let filename = relativePath.replace(/^templates\//, "").replace(/\.hbr$/, "");
diff --git a/app/assets/javascripts/discourse-widget-hbs/index.js b/app/assets/javascripts/discourse-widget-hbs/index.js
index 2372ea55a00..21fe440d27d 100644
--- a/app/assets/javascripts/discourse-widget-hbs/index.js
+++ b/app/assets/javascripts/discourse-widget-hbs/index.js
@@ -1,7 +1,7 @@
"use strict";
-const WidgetHbsCompiler = require("../../../../lib/javascripts/widget-hbs-compiler")
- .WidgetHbsCompiler;
+const WidgetHbsCompiler =
+ require("../../../../lib/javascripts/widget-hbs-compiler").WidgetHbsCompiler;
const glimmer = require("@glimmer/syntax");
diff --git a/app/assets/javascripts/discourse/app/components/composer-editor.js b/app/assets/javascripts/discourse/app/components/composer-editor.js
index f836b7ff784..9741d27dbcc 100644
--- a/app/assets/javascripts/discourse/app/components/composer-editor.js
+++ b/app/assets/javascripts/discourse/app/components/composer-editor.js
@@ -48,7 +48,8 @@ import userSearch from "discourse/lib/user-search";
// Group 3 is optional. group 4 can match images with or without a markdown title.
// All matches are whitespace tolerant as long it's still valid markdown.
// If the image is inside a code block, we'll ignore it `(?!(.*`))`.
-const IMAGE_MARKDOWN_REGEX = /!\[(.*?)\|(\d{1,4}x\d{1,4})(,\s*\d{1,3}%)?(.*?)\]\((upload:\/\/.*?)\)(?!(.*`))/g;
+const IMAGE_MARKDOWN_REGEX =
+ /!\[(.*?)\|(\d{1,4}x\d{1,4})(,\s*\d{1,3}%)?(.*?)\]\((upload:\/\/.*?)\)(?!(.*`))/g;
let uploadHandlers = [];
export function addComposerUploadHandler(extensions, method) {
@@ -565,9 +566,8 @@ export default Component.extend(ComposerUploadUppy, {
);
const scale = event.target.dataset.scale;
- const matchingPlaceholder = this.get("composer.reply").match(
- IMAGE_MARKDOWN_REGEX
- );
+ const matchingPlaceholder =
+ this.get("composer.reply").match(IMAGE_MARKDOWN_REGEX);
if (matchingPlaceholder) {
const match = matchingPlaceholder[index];
@@ -608,9 +608,8 @@ export default Component.extend(ComposerUploadUppy, {
commitAltText(buttonWrapper) {
const index = parseInt(buttonWrapper.getAttribute("data-image-index"), 10);
- const matchingPlaceholder = this.get("composer.reply").match(
- IMAGE_MARKDOWN_REGEX
- );
+ const matchingPlaceholder =
+ this.get("composer.reply").match(IMAGE_MARKDOWN_REGEX);
const match = matchingPlaceholder[index];
const input = buttonWrapper.querySelector("input.alt-text-input");
const replacement = match.replace(
diff --git a/app/assets/javascripts/discourse/app/components/create-account.js b/app/assets/javascripts/discourse/app/components/create-account.js
index 695cbc1c33a..36ac076d183 100644
--- a/app/assets/javascripts/discourse/app/components/create-account.js
+++ b/app/assets/javascripts/discourse/app/components/create-account.js
@@ -51,9 +51,8 @@ export default Component.extend({
let userTextFields = document.getElementsByClassName("user-fields")[0];
if (userTextFields) {
- userTextFields = userTextFields.getElementsByClassName(
- "ember-text-field"
- );
+ userTextFields =
+ userTextFields.getElementsByClassName("ember-text-field");
}
if (userTextFields) {
@@ -76,9 +75,8 @@ export default Component.extend({
let userTextFields = document.getElementsByClassName("user-fields")[0];
if (userTextFields) {
- userTextFields = userTextFields.getElementsByClassName(
- "ember-text-field"
- );
+ userTextFields =
+ userTextFields.getElementsByClassName("ember-text-field");
}
if (userTextFields) {
diff --git a/app/assets/javascripts/discourse/app/components/d-editor.js b/app/assets/javascripts/discourse/app/components/d-editor.js
index e669a5685c1..305cc6baa4f 100644
--- a/app/assets/javascripts/discourse/app/components/d-editor.js
+++ b/app/assets/javascripts/discourse/app/components/d-editor.js
@@ -499,9 +499,10 @@ export default Component.extend(TextareaTextManipulation, {
return false;
}
- const matches = /(?:^|[\s.\?,@\/#!%&*;:\[\]{}=\-_()])(:(?!:).?[\w-]*:?(?!:)(?:t\d?)?:?) ?$/gi.exec(
- text.substring(0, cp)
- );
+ const matches =
+ /(?:^|[\s.\?,@\/#!%&*;:\[\]{}=\-_()])(:(?!:).?[\w-]*:?(?!:)(?:t\d?)?:?) ?$/gi.exec(
+ text.substring(0, cp)
+ );
if (matches && matches[1]) {
return [matches[1]];
diff --git a/app/assets/javascripts/discourse/app/components/d-modal.js b/app/assets/javascripts/discourse/app/components/d-modal.js
index 1b73307f7c8..d238fc3bea2 100644
--- a/app/assets/javascripts/discourse/app/components/d-modal.js
+++ b/app/assets/javascripts/discourse/app/components/d-modal.js
@@ -200,9 +200,8 @@ export default Component.extend({
}
focusableElements = focusableElements + ", button:enabled";
- const firstFocusableElement = innerContainer.querySelectorAll(
- focusableElements
- )?.[0];
+ const firstFocusableElement =
+ innerContainer.querySelectorAll(focusableElements)?.[0];
const focusableContent = innerContainer.querySelectorAll(focusableElements);
const lastFocusableElement = focusableContent[focusableContent.length - 1];
diff --git a/app/assets/javascripts/discourse/app/components/group-imap-email-settings.js b/app/assets/javascripts/discourse/app/components/group-imap-email-settings.js
index 012c1178691..190a9fb2f97 100644
--- a/app/assets/javascripts/discourse/app/components/group-imap-email-settings.js
+++ b/app/assets/javascripts/discourse/app/components/group-imap-email-settings.js
@@ -17,12 +17,9 @@ export default Component.extend({
"form.imap_port"
)
missingSettings(email_username, email_password, imap_server, imap_port) {
- return [
- email_username,
- email_password,
- imap_server,
- imap_port,
- ].some((value) => isEmpty(value));
+ return [email_username, email_password, imap_server, imap_port].some(
+ (value) => isEmpty(value)
+ );
},
@discourseComputed("group.imap_mailboxes")
diff --git a/app/assets/javascripts/discourse/app/components/group-smtp-email-settings.js b/app/assets/javascripts/discourse/app/components/group-smtp-email-settings.js
index 52c6d27ab9d..5456c75a792 100644
--- a/app/assets/javascripts/discourse/app/components/group-smtp-email-settings.js
+++ b/app/assets/javascripts/discourse/app/components/group-smtp-email-settings.js
@@ -17,12 +17,9 @@ export default Component.extend({
"form.smtp_port"
)
missingSettings(email_username, email_password, smtp_server, smtp_port) {
- return [
- email_username,
- email_password,
- smtp_server,
- smtp_port,
- ].some((value) => isEmpty(value));
+ return [email_username, email_password, smtp_server, smtp_port].some(
+ (value) => isEmpty(value)
+ );
},
@action
diff --git a/app/assets/javascripts/discourse/app/controllers/login.js b/app/assets/javascripts/discourse/app/controllers/login.js
index 4371268d09b..b5d1dcef7cc 100644
--- a/app/assets/javascripts/discourse/app/controllers/login.js
+++ b/app/assets/javascripts/discourse/app/controllers/login.js
@@ -206,9 +206,8 @@ export default Controller.extend(ModalFunctionality, {
} else {
this.set("loggedIn", true);
// Trigger the browser's password manager using the hidden static login form:
- const hiddenLoginForm = document.getElementById(
- "hidden-login-form"
- );
+ const hiddenLoginForm =
+ document.getElementById("hidden-login-form");
const applyHiddenFormInputValue = (value, key) => {
if (!hiddenLoginForm) {
return;
diff --git a/app/assets/javascripts/discourse/app/controllers/preferences/email.js b/app/assets/javascripts/discourse/app/controllers/preferences/email.js
index 8a2380807a4..f389c447f29 100644
--- a/app/assets/javascripts/discourse/app/controllers/preferences/email.js
+++ b/app/assets/javascripts/discourse/app/controllers/preferences/email.js
@@ -74,9 +74,10 @@ export default Controller.extend({
saveEmail() {
this.set("saving", true);
- return (this.new
- ? this.model.addEmail(this.newEmail)
- : this.model.changeEmail(this.newEmail)
+ return (
+ this.new
+ ? this.model.addEmail(this.newEmail)
+ : this.model.changeEmail(this.newEmail)
).then(
() => {
this.set("success", true);
diff --git a/app/assets/javascripts/discourse/app/controllers/topic.js b/app/assets/javascripts/discourse/app/controllers/topic.js
index 7d4321d6c6a..990c2dbd7fb 100644
--- a/app/assets/javascripts/discourse/app/controllers/topic.js
+++ b/app/assets/javascripts/discourse/app/controllers/topic.js
@@ -781,8 +781,8 @@ export default Controller.extend(bufferedProperty("model"), {
Bookmark.create({
bookmarkable_id: post.id,
bookmarkable_type: "Post",
- auto_delete_preference: this.currentUser
- .bookmark_auto_delete_preference,
+ auto_delete_preference:
+ this.currentUser.bookmark_auto_delete_preference,
}),
post
);
@@ -1335,8 +1335,8 @@ export default Controller.extend(bufferedProperty("model"), {
Bookmark.create({
bookmarkable_id: this.model.id,
bookmarkable_type: "Topic",
- auto_delete_preference: this.currentUser
- .bookmark_auto_delete_preference,
+ auto_delete_preference:
+ this.currentUser.bookmark_auto_delete_preference,
})
);
}
diff --git a/app/assets/javascripts/discourse/app/controllers/user-invited-show.js b/app/assets/javascripts/discourse/app/controllers/user-invited-show.js
index 866ddebd955..008a4b5946c 100644
--- a/app/assets/javascripts/discourse/app/controllers/user-invited-show.js
+++ b/app/assets/javascripts/discourse/app/controllers/user-invited-show.js
@@ -31,11 +31,9 @@ export default Controller.extend({
discourseDebounce(
this,
function () {
- Invite.findInvitedBy(
- this.user,
- this.filter,
- this.searchTerm
- ).then((invites) => this.set("model", invites));
+ Invite.findInvitedBy(this.user, this.filter, this.searchTerm).then(
+ (invites) => this.set("model", invites)
+ );
},
INPUT_DELAY
);
diff --git a/app/assets/javascripts/discourse/app/lib/offset-calculator.js b/app/assets/javascripts/discourse/app/lib/offset-calculator.js
index 976ac56b78a..bd1f8556d22 100644
--- a/app/assets/javascripts/discourse/app/lib/offset-calculator.js
+++ b/app/assets/javascripts/discourse/app/lib/offset-calculator.js
@@ -46,8 +46,8 @@ export default function offsetCalculator() {
const windowHeight = window.innerHeight;
const documentHeight = document.body.clientHeight;
- const topicBottomOffsetTop = document.getElementById("topic-bottom")
- .offsetTop;
+ const topicBottomOffsetTop =
+ document.getElementById("topic-bottom").offsetTop;
// the footer is bigger than the window, we can scroll down past the last post
if (documentHeight - windowHeight > topicBottomOffsetTop) {
diff --git a/app/assets/javascripts/discourse/app/lib/quote.js b/app/assets/javascripts/discourse/app/lib/quote.js
index 0013508cab4..a0e9c2f3902 100644
--- a/app/assets/javascripts/discourse/app/lib/quote.js
+++ b/app/assets/javascripts/discourse/app/lib/quote.js
@@ -1,7 +1,8 @@
import { prioritizeNameFallback } from "discourse/lib/settings";
import { helperContext } from "discourse-common/lib/helpers";
-export const QUOTE_REGEXP = /\[quote=([^\]]*)\]((?:[\s\S](?!\[quote=[^\]]*\]))*?)\[\/quote\]/im;
+export const QUOTE_REGEXP =
+ /\[quote=([^\]]*)\]((?:[\s\S](?!\[quote=[^\]]*\]))*?)\[\/quote\]/im;
// Build the BBCode quote around the selected text
export function buildQuote(post, contents, opts = {}) {
diff --git a/app/assets/javascripts/discourse/app/lib/sticky-avatars.js b/app/assets/javascripts/discourse/app/lib/sticky-avatars.js
index 65083ae6176..035035498c9 100644
--- a/app/assets/javascripts/discourse/app/lib/sticky-avatars.js
+++ b/app/assets/javascripts/discourse/app/lib/sticky-avatars.js
@@ -90,8 +90,8 @@ export default class StickyAvatars {
return;
}
- const postContentHeight = entry.target.querySelector(".contents")
- ?.clientHeight;
+ const postContentHeight =
+ entry.target.querySelector(".contents")?.clientHeight;
if (
this.direction === "⬆️" ||
postContentHeight > window.innerHeight - headerOffset()
diff --git a/app/assets/javascripts/discourse/app/lib/uploads.js b/app/assets/javascripts/discourse/app/lib/uploads.js
index 51a640a5d42..54729954b88 100644
--- a/app/assets/javascripts/discourse/app/lib/uploads.js
+++ b/app/assets/javascripts/discourse/app/lib/uploads.js
@@ -127,7 +127,8 @@ export function validateUploadedFile(file, opts) {
return true;
}
-export const IMAGES_EXTENSIONS_REGEX = /(png|jpe?g|gif|svg|ico|heic|heif|webp)/i;
+export const IMAGES_EXTENSIONS_REGEX =
+ /(png|jpe?g|gif|svg|ico|heic|heif|webp)/i;
function extensionsToArray(exts) {
return exts
diff --git a/app/assets/javascripts/discourse/app/lib/uppy-media-optimization-plugin.js b/app/assets/javascripts/discourse/app/lib/uppy-media-optimization-plugin.js
index b8e037fbaa7..26b465cbb13 100644
--- a/app/assets/javascripts/discourse/app/lib/uppy-media-optimization-plugin.js
+++ b/app/assets/javascripts/discourse/app/lib/uppy-media-optimization-plugin.js
@@ -51,8 +51,8 @@ export default class UppyMediaOptimization extends UploadPreProcessorPlugin {
@bind
async _optimizeSerial(fileIds) {
- let optimizeTasks = fileIds.map((fileId) => () =>
- this._optimizeFile(fileId)
+ let optimizeTasks = fileIds.map(
+ (fileId) => () => this._optimizeFile(fileId)
);
for (const task of optimizeTasks) {
diff --git a/app/assets/javascripts/discourse/app/lib/user-search.js b/app/assets/javascripts/discourse/app/lib/user-search.js
index 35bc32892da..f6b1f1c7591 100644
--- a/app/assets/javascripts/discourse/app/lib/user-search.js
+++ b/app/assets/javascripts/discourse/app/lib/user-search.js
@@ -199,7 +199,8 @@ function organizeResults(r, options) {
// will not find me, which is a reasonable compromise
//
// we also ignore if we notice a double space or a string that is only a space
-const ignoreRegex = /([\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*,\/:;<=>?\[\]^`{|}~])|\s\s|^\s$|^[^+]*\+[^@]*$/;
+const ignoreRegex =
+ /([\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*,\/:;<=>?\[\]^`{|}~])|\s\s|^\s$|^[^+]*\+[^@]*$/;
export function skipSearch(term, allowEmails, lastSeenUsers = false) {
if (lastSeenUsers) {
diff --git a/app/assets/javascripts/discourse/app/lib/utilities.js b/app/assets/javascripts/discourse/app/lib/utilities.js
index 8cb4ba45529..2d9da305638 100644
--- a/app/assets/javascripts/discourse/app/lib/utilities.js
+++ b/app/assets/javascripts/discourse/app/lib/utilities.js
@@ -139,13 +139,15 @@ export function highlightPost(postNumber) {
export function emailValid(email) {
// see: http://stackoverflow.com/questions/46155/validate-email-address-in-javascript
- const re = /^[a-zA-Z0-9!#$%&'*+\/=?\^_`{|}~\-]+(?:\.[a-zA-Z0-9!#$%&'\*+\/=?\^_`{|}~\-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/;
+ const re =
+ /^[a-zA-Z0-9!#$%&'*+\/=?\^_`{|}~\-]+(?:\.[a-zA-Z0-9!#$%&'\*+\/=?\^_`{|}~\-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/;
return re.test(email);
}
export function hostnameValid(hostname) {
// see: https://stackoverflow.com/questions/106179/regular-expression-to-match-dns-hostname-or-ip-address
- const re = /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/;
+ const re =
+ /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/;
return hostname && re.test(hostname);
}
@@ -457,7 +459,8 @@ export function postRNWebviewMessage(prop, value) {
}
}
-const CODE_BLOCKS_REGEX = /^( |\t).*|`[^`]+`|^```[^]*?^```|\[code\][^]*?\[\/code\]/gm;
+const CODE_BLOCKS_REGEX =
+ /^( |\t).*|`[^`]+`|^```[^]*?^```|\[code\][^]*?\[\/code\]/gm;
// | ^ | ^ | ^ | ^ |
// | | | |
// | | | code blocks between [code]
diff --git a/app/assets/javascripts/discourse/app/mixins/composer-upload-uppy.js b/app/assets/javascripts/discourse/app/mixins/composer-upload-uppy.js
index f0fed0ba845..a2536aba92c 100644
--- a/app/assets/javascripts/discourse/app/mixins/composer-upload-uppy.js
+++ b/app/assets/javascripts/discourse/app/mixins/composer-upload-uppy.js
@@ -125,8 +125,8 @@ export default Mixin.create(ExtendableUploader, UppyS3Multipart, {
user: this.currentUser,
siteSettings: this.siteSettings,
isPrivateMessage,
- allowStaffToUploadAnyFileInPm: this.siteSettings
- .allow_staff_to_upload_any_file_in_pm,
+ allowStaffToUploadAnyFileInPm:
+ this.siteSettings.allow_staff_to_upload_any_file_in_pm,
};
const isUploading = validateUploadedFile(currentFile, validationOpts);
diff --git a/app/assets/javascripts/discourse/app/mixins/textarea-text-manipulation.js b/app/assets/javascripts/discourse/app/mixins/textarea-text-manipulation.js
index 9e46e0c4543..4a790832441 100644
--- a/app/assets/javascripts/discourse/app/mixins/textarea-text-manipulation.js
+++ b/app/assets/javascripts/discourse/app/mixins/textarea-text-manipulation.js
@@ -95,9 +95,10 @@ export default Mixin.create({
const post = value.slice(end);
if (opts && opts.lineVal) {
- const lineVal = value.split("\n")[
- value.slice(0, this._textarea.selectionStart).split("\n").length - 1
- ];
+ const lineVal =
+ value.split("\n")[
+ value.slice(0, this._textarea.selectionStart).split("\n").length - 1
+ ];
return { start, end, value: selVal, pre, post, lineVal };
} else {
return { start, end, value: selVal, pre, post };
diff --git a/app/assets/javascripts/discourse/app/models/badge.js b/app/assets/javascripts/discourse/app/models/badge.js
index f9493129a5a..9c249f89c54 100644
--- a/app/assets/javascripts/discourse/app/models/badge.js
+++ b/app/assets/javascripts/discourse/app/models/badge.js
@@ -81,9 +81,8 @@ Badge.reopenClass({
if ("badge_groupings" in json) {
json.badge_groupings.forEach(
(badgeGroupingJson) =>
- (badgeGroupings[badgeGroupingJson.id] = BadgeGrouping.create(
- badgeGroupingJson
- ))
+ (badgeGroupings[badgeGroupingJson.id] =
+ BadgeGrouping.create(badgeGroupingJson))
);
}
diff --git a/app/assets/javascripts/discourse/app/models/category.js b/app/assets/javascripts/discourse/app/models/category.js
index c5b473cccc3..1c72cec4cfe 100644
--- a/app/assets/javascripts/discourse/app/models/category.js
+++ b/app/assets/javascripts/discourse/app/models/category.js
@@ -221,8 +221,8 @@ const Category = RestModel.extend({
custom_fields: this.custom_fields,
topic_template: this.topic_template,
all_topics_wiki: this.all_topics_wiki,
- allow_unlimited_owner_edits_on_first_post: this
- .allow_unlimited_owner_edits_on_first_post,
+ allow_unlimited_owner_edits_on_first_post:
+ this.allow_unlimited_owner_edits_on_first_post,
allowed_tags: this.allowed_tags,
allowed_tag_groups: this.allowed_tag_groups,
allow_global_tags: this.allow_global_tags,
diff --git a/app/assets/javascripts/discourse/app/models/group.js b/app/assets/javascripts/discourse/app/models/group.js
index cf6ac370577..fc1b4725fb8 100644
--- a/app/assets/javascripts/discourse/app/models/group.js
+++ b/app/assets/javascripts/discourse/app/models/group.js
@@ -258,8 +258,8 @@ const Group = RestModel.extend({
default_notification_level: this.default_notification_level,
membership_request_template: this.membership_request_template,
publish_read_state: this.publish_read_state,
- allow_unknown_sender_topic_replies: this
- .allow_unknown_sender_topic_replies,
+ allow_unknown_sender_topic_replies:
+ this.allow_unknown_sender_topic_replies,
};
["muted", "regular", "watching", "tracking", "watching_first_post"].forEach(
diff --git a/app/assets/javascripts/discourse/app/pre-initializers/dynamic-route-builders.js b/app/assets/javascripts/discourse/app/pre-initializers/dynamic-route-builders.js
index 38bd37bf0ef..c0fa1b93288 100644
--- a/app/assets/javascripts/discourse/app/pre-initializers/dynamic-route-builders.js
+++ b/app/assets/javascripts/discourse/app/pre-initializers/dynamic-route-builders.js
@@ -26,15 +26,12 @@ export default {
const site = Site.current();
site.get("filters").forEach((filter) => {
const filterCapitalized = capitalize(filter);
- app[
- `Discovery${filterCapitalized}Controller`
- ] = DiscoverySortableController.extend();
- app[
- `Discovery${filterCapitalized}CategoryController`
- ] = DiscoverySortableController.extend();
- app[
- `Discovery${filterCapitalized}CategoryNoneController`
- ] = DiscoverySortableController.extend();
+ app[`Discovery${filterCapitalized}Controller`] =
+ DiscoverySortableController.extend();
+ app[`Discovery${filterCapitalized}CategoryController`] =
+ DiscoverySortableController.extend();
+ app[`Discovery${filterCapitalized}CategoryNoneController`] =
+ DiscoverySortableController.extend();
if (filter === "top") {
app.DiscoveryTopRoute = buildTopicRoute("top", {
@@ -50,12 +47,10 @@ export default {
app[`Discovery${filterCapitalized}Route`] = buildTopicRoute(filter);
}
- app[`Discovery${filterCapitalized}CategoryRoute`] = buildCategoryRoute(
- filter
- );
- app[
- `Discovery${filterCapitalized}CategoryNoneRoute`
- ] = buildCategoryRoute(filter, { no_subcategories: true });
+ app[`Discovery${filterCapitalized}CategoryRoute`] =
+ buildCategoryRoute(filter);
+ app[`Discovery${filterCapitalized}CategoryNoneRoute`] =
+ buildCategoryRoute(filter, { no_subcategories: true });
});
app["TagsShowCategoryRoute"] = TagShowRoute.extend();
@@ -70,15 +65,12 @@ export default {
app["TagShow" + capitalize(filter) + "Route"] = TagShowRoute.extend({
navMode: filter,
});
- app[
- "TagsShowCategory" + capitalize(filter) + "Route"
- ] = TagShowRoute.extend({ navMode: filter });
- app[
- "TagsShowCategoryNone" + capitalize(filter) + "Route"
- ] = TagShowRoute.extend({ navMode: filter, noSubcategories: true });
- app[
- "TagsShowCategoryAll" + capitalize(filter) + "Route"
- ] = TagShowRoute.extend({ navMode: filter, noSubcategories: false });
+ app["TagsShowCategory" + capitalize(filter) + "Route"] =
+ TagShowRoute.extend({ navMode: filter });
+ app["TagsShowCategoryNone" + capitalize(filter) + "Route"] =
+ TagShowRoute.extend({ navMode: filter, noSubcategories: true });
+ app["TagsShowCategoryAll" + capitalize(filter) + "Route"] =
+ TagShowRoute.extend({ navMode: filter, noSubcategories: false });
});
},
};
diff --git a/app/assets/javascripts/discourse/app/pre-initializers/sniff-capabilities.js b/app/assets/javascripts/discourse/app/pre-initializers/sniff-capabilities.js
index deadbbaf6be..a6b3174956c 100644
--- a/app/assets/javascripts/discourse/app/pre-initializers/sniff-capabilities.js
+++ b/app/assets/javascripts/discourse/app/pre-initializers/sniff-capabilities.js
@@ -48,9 +48,8 @@ export default {
caps.isiOSPWA = caps.isPwa && caps.isIOS;
- caps.wasLaunchedFromDiscourseHub = window.location.search.includes(
- "discourse_app=1"
- );
+ caps.wasLaunchedFromDiscourseHub =
+ window.location.search.includes("discourse_app=1");
caps.isAppWebview = window.ReactNativeWebView !== undefined;
// Inject it
diff --git a/app/assets/javascripts/discourse/app/routes/account-created-edit-email.js b/app/assets/javascripts/discourse/app/routes/account-created-edit-email.js
index 8e305195f7c..5ef97968697 100644
--- a/app/assets/javascripts/discourse/app/routes/account-created-edit-email.js
+++ b/app/assets/javascripts/discourse/app/routes/account-created-edit-email.js
@@ -1,9 +1,8 @@
import Route from "@ember/routing/route";
export default Route.extend({
setupController(controller) {
- const accountCreated = this.controllerFor("account-created").get(
- "accountCreated"
- );
+ const accountCreated =
+ this.controllerFor("account-created").get("accountCreated");
controller.set("accountCreated", accountCreated);
controller.set("newEmail", accountCreated.email);
},
diff --git a/app/assets/javascripts/discourse/app/routes/forgot-password.js b/app/assets/javascripts/discourse/app/routes/forgot-password.js
index 932c63b7bb6..ddddb138dce 100644
--- a/app/assets/javascripts/discourse/app/routes/forgot-password.js
+++ b/app/assets/javascripts/discourse/app/routes/forgot-password.js
@@ -6,9 +6,8 @@ const ForgotPasswordRoute = buildStaticRoute("password-reset");
ForgotPasswordRoute.reopen({
beforeModel() {
- const loginRequired = this.controllerFor("application").get(
- "loginRequired"
- );
+ const loginRequired =
+ this.controllerFor("application").get("loginRequired");
this.replaceWith(
loginRequired ? "login" : `discovery.${defaultHomepage()}`
).then((e) => {
diff --git a/app/assets/javascripts/discourse/app/services/media-optimization-worker.js b/app/assets/javascripts/discourse/app/services/media-optimization-worker.js
index 4badc8499ab..12873d7c87f 100644
--- a/app/assets/javascripts/discourse/app/services/media-optimization-worker.js
+++ b/app/assets/javascripts/discourse/app/services/media-optimization-worker.js
@@ -73,18 +73,23 @@ export default class MediaOptimizationWorkerService extends Service {
width: imageData.width,
height: imageData.height,
settings: {
- resize_threshold: this.siteSettings
- .composer_media_optimization_image_resize_dimensions_threshold,
- resize_target: this.siteSettings
- .composer_media_optimization_image_resize_width_target,
- resize_pre_multiply: this.siteSettings
- .composer_media_optimization_image_resize_pre_multiply,
- resize_linear_rgb: this.siteSettings
- .composer_media_optimization_image_resize_linear_rgb,
- encode_quality: this.siteSettings
- .composer_media_optimization_image_encode_quality,
- debug_mode: this.siteSettings
- .composer_media_optimization_debug_mode,
+ resize_threshold:
+ this.siteSettings
+ .composer_media_optimization_image_resize_dimensions_threshold,
+ resize_target:
+ this.siteSettings
+ .composer_media_optimization_image_resize_width_target,
+ resize_pre_multiply:
+ this.siteSettings
+ .composer_media_optimization_image_resize_pre_multiply,
+ resize_linear_rgb:
+ this.siteSettings
+ .composer_media_optimization_image_resize_linear_rgb,
+ encode_quality:
+ this.siteSettings
+ .composer_media_optimization_image_encode_quality,
+ debug_mode:
+ this.siteSettings.composer_media_optimization_debug_mode,
},
},
[imageData.data.buffer]
diff --git a/app/assets/javascripts/discourse/app/services/presence.js b/app/assets/javascripts/discourse/app/services/presence.js
index 0219142a016..e0132a0b7ee 100644
--- a/app/assets/javascripts/discourse/app/services/presence.js
+++ b/app/assets/javascripts/discourse/app/services/presence.js
@@ -293,9 +293,8 @@ export default class PresenceService extends Service {
_getInitialData(channelName) {
let promiseProxy = this._initialDataRequests[channelName];
if (!promiseProxy) {
- promiseProxy = this._initialDataRequests[
- channelName
- ] = createPromiseProxy();
+ promiseProxy = this._initialDataRequests[channelName] =
+ createPromiseProxy();
}
once(this, this._makeInitialDataRequest);
diff --git a/app/assets/javascripts/discourse/app/templates/components/bookmark-list.hbs b/app/assets/javascripts/discourse/app/templates/components/bookmark-list.hbs
index 586e1801db0..5fdd4cf476d 100644
--- a/app/assets/javascripts/discourse/app/templates/components/bookmark-list.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/bookmark-list.hbs
@@ -13,7 +13,7 @@
{{#each this.content as |bookmark|}}
-
+ |
|
{{#unless this.site.mobileView}}
{{#if bookmark.user.avatar_template}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/bookmark.hbs b/app/assets/javascripts/discourse/app/templates/components/bookmark.hbs
index 1a68db973fe..887350ee2f1 100644
--- a/app/assets/javascripts/discourse/app/templates/components/bookmark.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/bookmark.hbs
@@ -8,7 +8,7 @@
{{/if}}
-
+
diff --git a/app/assets/javascripts/discourse/app/templates/components/choose-topic.hbs b/app/assets/javascripts/discourse/app/templates/components/choose-topic.hbs
index cf4566d325f..c27eec45a43 100644
--- a/app/assets/javascripts/discourse/app/templates/components/choose-topic.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/choose-topic.hbs
@@ -17,7 +17,7 @@
{{#each this.topics as |t|}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/user-fields/confirm.hbs b/app/assets/javascripts/discourse/app/templates/components/user-fields/confirm.hbs
index 5ada05e5fbd..9b204313b59 100644
--- a/app/assets/javascripts/discourse/app/templates/components/user-fields/confirm.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/user-fields/confirm.hbs
@@ -6,7 +6,7 @@
| |