Last ES6 files in our app/assets/javascripts

Last ES6 files in our app/assets/javascripts

diff --git a/app/assets/javascripts/activate-account.js b/app/assets/javascripts/activate-account.js
new file mode 100644
index 0000000..b637b27
--- /dev/null
+++ b/app/assets/javascripts/activate-account.js
@@ -0,0 +1,25 @@
+// discourse-skip-module
+(function() {
+  setTimeout(function() {
+    const $activateButton = $("#activate-account-button");
+    $activateButton.on("click", function() {
+      $activateButton.prop("disabled", true);
+      const hpPath = document.getElementById("data-activate-account").dataset
+        .path;
+      $.ajax(hpPath)
+        .then(function(hp) {
+          $("#password_confirmation").val(hp.value);
+          $("#challenge").val(
+            hp.challenge
+              .split("")
+              .reverse()
+              .join("")
+          );
+          $("#activate-account-form").submit();
+        })
+        .fail(function() {
+          $activateButton.prop("disabled", false);
+        });
+    });
+  }, 50);
+})();
diff --git a/app/assets/javascripts/activate-account.js.es6 b/app/assets/javascripts/activate-account.js.es6
deleted file mode 100644
index b637b27..0000000
--- a/app/assets/javascripts/activate-account.js.es6
+++ /dev/null
@@ -1,25 +0,0 @@
-// discourse-skip-module
-(function() {
-  setTimeout(function() {
-    const $activateButton = $("#activate-account-button");
-    $activateButton.on("click", function() {
-      $activateButton.prop("disabled", true);
-      const hpPath = document.getElementById("data-activate-account").dataset
-        .path;
-      $.ajax(hpPath)
-        .then(function(hp) {
-          $("#password_confirmation").val(hp.value);
-          $("#challenge").val(
-            hp.challenge
-              .split("")
-              .reverse()
-              .join("")
-          );
-          $("#activate-account-form").submit();
-        })
-        .fail(function() {
-          $activateButton.prop("disabled", false);
-        });
-    });
-  }, 50);
-})();
diff --git a/app/assets/javascripts/auto-redirect.js b/app/assets/javascripts/auto-redirect.js
new file mode 100644
index 0000000..0308edb
--- /dev/null
+++ b/app/assets/javascripts/auto-redirect.js
@@ -0,0 +1,7 @@
+// discourse-skip-module
+(function() {
+  const path = document.getElementById("data-auto-redirect").dataset.path;
+  setTimeout(function() {
+    window.location.href = path;
+  }, 2000);
+})();
diff --git a/app/assets/javascripts/auto-redirect.js.es6 b/app/assets/javascripts/auto-redirect.js.es6
deleted file mode 100644
index 0308edb..0000000
--- a/app/assets/javascripts/auto-redirect.js.es6
+++ /dev/null
@@ -1,7 +0,0 @@
-// discourse-skip-module
-(function() {
-  const path = document.getElementById("data-auto-redirect").dataset.path;
-  setTimeout(function() {
-    window.location.href = path;
-  }, 2000);
-})();
diff --git a/app/assets/javascripts/confirm-new-email/bootstrap.js b/app/assets/javascripts/confirm-new-email/bootstrap.js
new file mode 100644
index 0000000..5754bc2
--- /dev/null
+++ b/app/assets/javascripts/confirm-new-email/bootstrap.js
@@ -0,0 +1,4 @@
+// discourse-skip-module
+(function() {
+  require("confirm-new-email/confirm-new-email");
+})();
diff --git a/app/assets/javascripts/confirm-new-email/bootstrap.js.es6 b/app/assets/javascripts/confirm-new-email/bootstrap.js.es6
deleted file mode 100644
index 5754bc2..0000000
--- a/app/assets/javascripts/confirm-new-email/bootstrap.js.es6
+++ /dev/null
@@ -1,4 +0,0 @@
-// discourse-skip-module
-(function() {
-  require("confirm-new-email/confirm-new-email");
-})();
diff --git a/app/assets/javascripts/confirm-new-email/confirm-new-email.js b/app/assets/javascripts/confirm-new-email/confirm-new-email.js
new file mode 100644
index 0000000..8a61d76
--- /dev/null
+++ b/app/assets/javascripts/confirm-new-email/confirm-new-email.js
@@ -0,0 +1,26 @@
+import { getWebauthnCredential } from "discourse/lib/webauthn";
+
+const security = document.getElementById("submit-security-key");
+if (security) {
+  security.onclick = function(e) {
+    e.preventDefault();
+    getWebauthnCredential(
+      document.getElementById("security-key-challenge").value,
+      document
+        .getElementById("security-key-allowed-credential-ids")
+        .value.split(","),
+      credentialData => {
+        document.getElementById(
+          "security-key-credential"
+        ).value = JSON.stringify(credentialData);
+
+        $(e.target)
+          .parents("form")
+          .submit();
+      },
+      errorMessage => {
+        document.getElementById("security-key-error").innerText = errorMessage;
+      }
+    );
+  };
+}
diff --git a/app/assets/javascripts/confirm-new-email/confirm-new-email.js.es6 b/app/assets/javascripts/confirm-new-email/confirm-new-email.js.es6
deleted file mode 100644
index 8a61d76..0000000
--- a/app/assets/javascripts/confirm-new-email/confirm-new-email.js.es6
+++ /dev/null
@@ -1,26 +0,0 @@
-import { getWebauthnCredential } from "discourse/lib/webauthn";
-
-const security = document.getElementById("submit-security-key");
-if (security) {
-  security.onclick = function(e) {
-    e.preventDefault();
-    getWebauthnCredential(
-      document.getElementById("security-key-challenge").value,
-      document
-        .getElementById("security-key-allowed-credential-ids")
-        .value.split(","),
-      credentialData => {
-        document.getElementById(
-          "security-key-credential"
-        ).value = JSON.stringify(credentialData);
-
-        $(e.target)
-          .parents("form")
-          .submit();
-      },
-      errorMessage => {
-        document.getElementById("security-key-error").innerText = errorMessage;
-      }
-    );
-  };
-}
diff --git a/app/assets/javascripts/discourse/components/auth-token-dropdown.es6 b/app/assets/javascripts/discourse/components/auth-token-dropdown.es6
deleted file mode 100644
index ef4d819..0000000
--- a/app/assets/javascripts/discourse/components/auth-token-dropdown.es6
+++ /dev/null
@@ -1,41 +0,0 @@
-import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
-import { computed } from "@ember/object";
-
-export default DropdownSelectBoxComponent.extend({
-  classNames: ["auth-token-dropdown"],
-
-  selectKitOptions: {
-    icon: "wrench",
-    showFullTitle: false
-  },
-
-  content: computed(function() {
-    return [
-      {
-        id: "notYou",
-        icon: "user-times",
-        name: I18n.t("user.auth_tokens.not_you"),
-        description: ""
-      },
-      {
-        id: "logOut",
-        icon: "sign-out-alt",
-        name: I18n.t("user.log_out"),
-        description: ""
-      }
-    ];
-  }),
-
-  actions: {
-    onChange(id) {
-      switch (id) {
-        case "notYou":
-          this.showToken(this.token);
-          break;
-        case "logOut":
-          this.revokeAuthToken(this.token);
-          break;
-      }
-    }
-  }
-});
diff --git a/app/assets/javascripts/discourse/components/auth-token-dropdown.js b/app/assets/javascripts/discourse/components/auth-token-dropdown.js
new file mode 100644
index 0000000..ef4d819
--- /dev/null
+++ b/app/assets/javascripts/discourse/components/auth-token-dropdown.js
@@ -0,0 +1,41 @@
+import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
+import { computed } from "@ember/object";
+
+export default DropdownSelectBoxComponent.extend({
+  classNames: ["auth-token-dropdown"],
+
+  selectKitOptions: {
+    icon: "wrench",
+    showFullTitle: false
+  },
+
+  content: computed(function() {
+    return [
+      {
+        id: "notYou",
+        icon: "user-times",
+        name: I18n.t("user.auth_tokens.not_you"),
+        description: ""
+      },
+      {
+        id: "logOut",
+        icon: "sign-out-alt",
+        name: I18n.t("user.log_out"),
+        description: ""
+      }
+    ];
+  }),
+
+  actions: {
+    onChange(id) {
+      switch (id) {
+        case "notYou":
+          this.showToken(this.token);
+          break;
+        case "logOut":

[... diff too long, it was truncated ...]

GitHub sha: f2f8ede2