DEV: Reorganize files and remove .es6 suffix

DEV: Reorganize files and remove .es6 suffix

diff --git a/assets/javascripts/discourse/components/encrypt-enable-dropdown.js b/assets/javascripts/discourse/components/encrypt-enable-dropdown.js
new file mode 100644
index 0000000..c0434fc
--- /dev/null
+++ b/assets/javascripts/discourse/components/encrypt-enable-dropdown.js
@@ -0,0 +1,36 @@
+import { computed } from "@ember/object";
+import I18n from "I18n";
+import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
+
+export default DropdownSelectBoxComponent.extend({
+  classNames: ["encrypt-enable-dropdown"],
+
+  selectKitOptions: {
+    icon: "bars",
+    showFullTitle: false,
+  },
+
+  content: computed("importIdentity", "isEncryptEnabled", function () {
+    const content = [];
+
+    content.push({
+      id: "import",
+      icon: "file-import",
+      name: this.importIdentity
+        ? this.isEncryptEnabled
+          ? I18n.t("encrypt.preferences.use_paper_key")
+          : I18n.t("encrypt.preferences.generate_key")
+        : I18n.t("encrypt.preferences.import"),
+    });
+
+    if (this.isEncryptEnabled) {
+      content.push({
+        id: "reset",
+        icon: "trash-alt",
+        name: I18n.t("encrypt.reset.title"),
+      });
+    }
+
+    return content;
+  }),
+});
diff --git a/assets/javascripts/discourse/components/encrypt-enable-dropdown.js.es6 b/assets/javascripts/discourse/components/encrypt-enable-dropdown.js.es6
deleted file mode 100644
index c0434fc..0000000
--- a/assets/javascripts/discourse/components/encrypt-enable-dropdown.js.es6
+++ /dev/null
@@ -1,36 +0,0 @@
-import { computed } from "@ember/object";
-import I18n from "I18n";
-import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
-
-export default DropdownSelectBoxComponent.extend({
-  classNames: ["encrypt-enable-dropdown"],
-
-  selectKitOptions: {
-    icon: "bars",
-    showFullTitle: false,
-  },
-
-  content: computed("importIdentity", "isEncryptEnabled", function () {
-    const content = [];
-
-    content.push({
-      id: "import",
-      icon: "file-import",
-      name: this.importIdentity
-        ? this.isEncryptEnabled
-          ? I18n.t("encrypt.preferences.use_paper_key")
-          : I18n.t("encrypt.preferences.generate_key")
-        : I18n.t("encrypt.preferences.import"),
-    });
-
-    if (this.isEncryptEnabled) {
-      content.push({
-        id: "reset",
-        icon: "trash-alt",
-        name: I18n.t("encrypt.reset.title"),
-      });
-    }
-
-    return content;
-  }),
-});
diff --git a/assets/javascripts/discourse/components/encrypt-preferences-dropdown.js b/assets/javascripts/discourse/components/encrypt-preferences-dropdown.js
new file mode 100644
index 0000000..4e5d38c
--- /dev/null
+++ b/assets/javascripts/discourse/components/encrypt-preferences-dropdown.js
@@ -0,0 +1,34 @@
+import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
+import I18n from "I18n";
+
+export default DropdownSelectBoxComponent.extend({
+  classNames: ["encrypt-preferences-dropdown"],
+
+  selectKitOptions: {
+    icon: "wrench",
+    showFullTitle: false,
+  },
+
+  content: [
+    {
+      id: "export",
+      icon: "file-export",
+      name: I18n.t("encrypt.export.title"),
+    },
+    {
+      id: "managePaperKeys",
+      icon: "ticket-alt",
+      name: I18n.t("encrypt.manage_paper_keys.title"),
+    },
+    {
+      id: "rotate",
+      icon: "sync",
+      name: I18n.t("encrypt.rotate.title"),
+    },
+    {
+      id: "reset",
+      icon: "trash-alt",
+      name: I18n.t("encrypt.reset.title"),
+    },
+  ],
+});
diff --git a/assets/javascripts/discourse/components/encrypt-preferences-dropdown.js.es6 b/assets/javascripts/discourse/components/encrypt-preferences-dropdown.js.es6
deleted file mode 100644
index 4e5d38c..0000000
--- a/assets/javascripts/discourse/components/encrypt-preferences-dropdown.js.es6
+++ /dev/null
@@ -1,34 +0,0 @@
-import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
-import I18n from "I18n";
-
-export default DropdownSelectBoxComponent.extend({
-  classNames: ["encrypt-preferences-dropdown"],
-
-  selectKitOptions: {
-    icon: "wrench",
-    showFullTitle: false,
-  },
-
-  content: [
-    {
-      id: "export",
-      icon: "file-export",
-      name: I18n.t("encrypt.export.title"),
-    },
-    {
-      id: "managePaperKeys",
-      icon: "ticket-alt",
-      name: I18n.t("encrypt.manage_paper_keys.title"),
-    },
-    {
-      id: "rotate",
-      icon: "sync",
-      name: I18n.t("encrypt.rotate.title"),
-    },
-    {
-      id: "reset",
-      icon: "trash-alt",
-      name: I18n.t("encrypt.reset.title"),
-    },
-  ],
-});
diff --git a/assets/javascripts/discourse/components/encrypted-post-timer-dropdown.js b/assets/javascripts/discourse/components/encrypted-post-timer-dropdown.js
new file mode 100644
index 0000000..2a71554
--- /dev/null
+++ b/assets/javascripts/discourse/components/encrypted-post-timer-dropdown.js
@@ -0,0 +1,40 @@
+import I18n from "I18n";
+import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
+import { computed } from "@ember/object";
+import { empty } from "@ember/object/computed";
+
+const TIMER_OPTIONS = [
+  { id: "", name: I18n.t("encrypt.time_bomb.never") },
+  { id: "3", name: I18n.t("encrypt.time_bomb.3_minutes") },
+  { id: "60", name: I18n.t("encrypt.time_bomb.1_hour") },
+  { id: "180", name: I18n.t("encrypt.time_bomb.3_hours") },
+  { id: "720", name: I18n.t("encrypt.time_bomb.12_hours") },
+  { id: "1440", name: I18n.t("encrypt.time_bomb.24_hours") },
+  { id: "4320", name: I18n.t("encrypt.time_bomb.3_days") },
+  { id: "10080", name: I18n.t("encrypt.time_bomb.7_days") },
+];
+
+export default DropdownSelectBoxComponent.extend({
+  classNames: ["encrypted-post-timer-dropdown"],
+  classNameBindings: ["hidden:hidden"],
+
+  selectKitOptions: {
+    icon: "discourse-trash-clock",
+    showFullTitle: true,
+  },
+
+  content: computed("topicDeleteAt", function () {
+    if (this.topicDeleteAt) {
+      return TIMER_OPTIONS.filter((option) => {
+        return (
+          option.id.length > 0 &&
+          moment().add(option.id, "minutes") < moment(this.topicDeleteAt)
+        );
+      });
+    } else {
+      return TIMER_OPTIONS;
+    }
+  }),
+
+  hidden: empty("content"),
+});
diff --git a/assets/javascripts/discourse/components/encrypted-post-timer-dropdown.js.es6 b/assets/javascripts/discourse/components/encrypted-post-timer-dropdown.js.es6
deleted file mode 100644
index 2a71554..0000000
--- a/assets/javascripts/discourse/components/encrypted-post-timer-dropdown.js.es6
+++ /dev/null
@@ -1,40 +0,0 @@
-import I18n from "I18n";
-import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
-import { computed } from "@ember/object";
-import { empty } from "@ember/object/computed";
-
-const TIMER_OPTIONS = [
-  { id: "", name: I18n.t("encrypt.time_bomb.never") },
-  { id: "3", name: I18n.t("encrypt.time_bomb.3_minutes") },
-  { id: "60", name: I18n.t("encrypt.time_bomb.1_hour") },
-  { id: "180", name: I18n.t("encrypt.time_bomb.3_hours") },
-  { id: "720", name: I18n.t("encrypt.time_bomb.12_hours") },
-  { id: "1440", name: I18n.t("encrypt.time_bomb.24_hours") },
-  { id: "4320", name: I18n.t("encrypt.time_bomb.3_days") },
-  { id: "10080", name: I18n.t("encrypt.time_bomb.7_days") },
-];
-
-export default DropdownSelectBoxComponent.extend({
-  classNames: ["encrypted-post-timer-dropdown"],
-  classNameBindings: ["hidden:hidden"],
-
-  selectKitOptions: {
-    icon: "discourse-trash-clock",
-    showFullTitle: true,
-  },
-
-  content: computed("topicDeleteAt", function () {
-    if (this.topicDeleteAt) {
-      return TIMER_OPTIONS.filter((option) => {
-        return (
-          option.id.length > 0 &&
-          moment().add(option.id, "minutes") < moment(this.topicDeleteAt)
-        );
-      });
-    } else {
-      return TIMER_OPTIONS;
-    }
-  }),
-
-  hidden: empty("content"),
-});

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

GitHub sha: 0f0303df19b1298856ab4853fd6cfca673ed60e0

This commit appears in #97 which was approved by eviltrout. It was merged by udan11.