Migrate `discourse-common` from es6 -> js

Migrate discourse-common from es6 -> js

diff --git a/app/assets/javascripts/discourse-common/config/environment.js b/app/assets/javascripts/discourse-common/config/environment.js
new file mode 100644
index 0000000..18ce3cc
--- /dev/null
+++ b/app/assets/javascripts/discourse-common/config/environment.js
@@ -0,0 +1,3 @@
+export const INPUT_DELAY = 250;
+
+export default { environment: Ember.testing ? "test" : "development" };
diff --git a/app/assets/javascripts/discourse-common/config/environment.js.es6 b/app/assets/javascripts/discourse-common/config/environment.js.es6
deleted file mode 100644
index 18ce3cc..0000000
--- a/app/assets/javascripts/discourse-common/config/environment.js.es6
+++ /dev/null
@@ -1,3 +0,0 @@
-export const INPUT_DELAY = 250;
-
-export default { environment: Ember.testing ? "test" : "development" };
diff --git a/app/assets/javascripts/discourse-common/helpers/bound-i18n.js b/app/assets/javascripts/discourse-common/helpers/bound-i18n.js
new file mode 100644
index 0000000..0d58d0f
--- /dev/null
+++ b/app/assets/javascripts/discourse-common/helpers/bound-i18n.js
@@ -0,0 +1,3 @@
+import { htmlHelper } from "discourse-common/lib/helpers";
+
+export default htmlHelper((key, params) => I18n.t(key, params.hash));
diff --git a/app/assets/javascripts/discourse-common/helpers/bound-i18n.js.es6 b/app/assets/javascripts/discourse-common/helpers/bound-i18n.js.es6
deleted file mode 100644
index 0d58d0f..0000000
--- a/app/assets/javascripts/discourse-common/helpers/bound-i18n.js.es6
+++ /dev/null
@@ -1,3 +0,0 @@
-import { htmlHelper } from "discourse-common/lib/helpers";
-
-export default htmlHelper((key, params) => I18n.t(key, params.hash));
diff --git a/app/assets/javascripts/discourse-common/helpers/component-for-collection.js b/app/assets/javascripts/discourse-common/helpers/component-for-collection.js
new file mode 100644
index 0000000..384012a
--- /dev/null
+++ b/app/assets/javascripts/discourse-common/helpers/component-for-collection.js
@@ -0,0 +1,8 @@
+import { registerUnbound } from "discourse-common/lib/helpers";
+
+registerUnbound(
+  "component-for-collection",
+  (collectionIdentifier, selectKit) => {
+    return selectKit.modifyComponentForCollection(collectionIdentifier);
+  }
+);
diff --git a/app/assets/javascripts/discourse-common/helpers/component-for-collection.js.es6 b/app/assets/javascripts/discourse-common/helpers/component-for-collection.js.es6
deleted file mode 100644
index 384012a..0000000
--- a/app/assets/javascripts/discourse-common/helpers/component-for-collection.js.es6
+++ /dev/null
@@ -1,8 +0,0 @@
-import { registerUnbound } from "discourse-common/lib/helpers";
-
-registerUnbound(
-  "component-for-collection",
-  (collectionIdentifier, selectKit) => {
-    return selectKit.modifyComponentForCollection(collectionIdentifier);
-  }
-);
diff --git a/app/assets/javascripts/discourse-common/helpers/component-for-row.js b/app/assets/javascripts/discourse-common/helpers/component-for-row.js
new file mode 100644
index 0000000..4f8ba12
--- /dev/null
+++ b/app/assets/javascripts/discourse-common/helpers/component-for-row.js
@@ -0,0 +1,8 @@
+import { registerUnbound } from "discourse-common/lib/helpers";
+
+registerUnbound(
+  "component-for-row",
+  (collectionForIdentifier, item, selectKit) => {
+    return selectKit.modifyComponentForRow(collectionForIdentifier, item);
+  }
+);
diff --git a/app/assets/javascripts/discourse-common/helpers/component-for-row.js.es6 b/app/assets/javascripts/discourse-common/helpers/component-for-row.js.es6
deleted file mode 100644
index 4f8ba12..0000000
--- a/app/assets/javascripts/discourse-common/helpers/component-for-row.js.es6
+++ /dev/null
@@ -1,8 +0,0 @@
-import { registerUnbound } from "discourse-common/lib/helpers";
-
-registerUnbound(
-  "component-for-row",
-  (collectionForIdentifier, item, selectKit) => {
-    return selectKit.modifyComponentForRow(collectionForIdentifier, item);
-  }
-);
diff --git a/app/assets/javascripts/discourse-common/helpers/d-icon.js b/app/assets/javascripts/discourse-common/helpers/d-icon.js
new file mode 100644
index 0000000..454bb22
--- /dev/null
+++ b/app/assets/javascripts/discourse-common/helpers/d-icon.js
@@ -0,0 +1,6 @@
+import { registerUnbound } from "discourse-common/lib/helpers";
+import { renderIcon } from "discourse-common/lib/icon-library";
+
+registerUnbound("d-icon", function(id, params) {
+  return new Handlebars.SafeString(renderIcon("string", id, params));
+});
diff --git a/app/assets/javascripts/discourse-common/helpers/d-icon.js.es6 b/app/assets/javascripts/discourse-common/helpers/d-icon.js.es6
deleted file mode 100644
index 454bb22..0000000
--- a/app/assets/javascripts/discourse-common/helpers/d-icon.js.es6
+++ /dev/null
@@ -1,6 +0,0 @@
-import { registerUnbound } from "discourse-common/lib/helpers";
-import { renderIcon } from "discourse-common/lib/icon-library";
-
-registerUnbound("d-icon", function(id, params) {
-  return new Handlebars.SafeString(renderIcon("string", id, params));
-});
diff --git a/app/assets/javascripts/discourse-common/helpers/fa-icon.js b/app/assets/javascripts/discourse-common/helpers/fa-icon.js
new file mode 100644
index 0000000..1d657d0
--- /dev/null
+++ b/app/assets/javascripts/discourse-common/helpers/fa-icon.js
@@ -0,0 +1,12 @@
+import { registerUnbound } from "discourse-common/lib/helpers";
+import { renderIcon } from "discourse-common/lib/icon-library";
+import deprecated from "discourse-common/lib/deprecated";
+
+export function iconHTML(id, params) {
+  return renderIcon("string", id, params);
+}
+
+registerUnbound("fa-icon", function(icon, params) {
+  deprecated("Use `{{d-icon}}` instead of `{{fa-icon}}");
+  return new Handlebars.SafeString(iconHTML(icon, params));
+});
diff --git a/app/assets/javascripts/discourse-common/helpers/fa-icon.js.es6 b/app/assets/javascripts/discourse-common/helpers/fa-icon.js.es6
deleted file mode 100644
index 1d657d0..0000000
--- a/app/assets/javascripts/discourse-common/helpers/fa-icon.js.es6
+++ /dev/null
@@ -1,12 +0,0 @@
-import { registerUnbound } from "discourse-common/lib/helpers";
-import { renderIcon } from "discourse-common/lib/icon-library";
-import deprecated from "discourse-common/lib/deprecated";
-
-export function iconHTML(id, params) {
-  return renderIcon("string", id, params);
-}
-
-registerUnbound("fa-icon", function(icon, params) {
-  deprecated("Use `{{d-icon}}` instead of `{{fa-icon}}");
-  return new Handlebars.SafeString(iconHTML(icon, params));
-});
diff --git a/app/assets/javascripts/discourse-common/helpers/get-url.js b/app/assets/javascripts/discourse-common/helpers/get-url.js
new file mode 100644
index 0000000..e3847c4
--- /dev/null
+++ b/app/assets/javascripts/discourse-common/helpers/get-url.js
@@ -0,0 +1,4 @@
+import { registerUnbound } from "discourse-common/lib/helpers";
+import getUrl from "discourse-common/lib/get-url";
+
+registerUnbound("get-url", value => getUrl(value));
diff --git a/app/assets/javascripts/discourse-common/helpers/get-url.js.es6 b/app/assets/javascripts/discourse-common/helpers/get-url.js.es6
deleted file mode 100644
index e3847c4..0000000
--- a/app/assets/javascripts/discourse-common/helpers/get-url.js.es6
+++ /dev/null
@@ -1,4 +0,0 @@
-import { registerUnbound } from "discourse-common/lib/helpers";
-import getUrl from "discourse-common/lib/get-url";
-
-registerUnbound("get-url", value => getUrl(value));
diff --git a/app/assets/javascripts/discourse-common/helpers/html-safe.js b/app/assets/javascripts/discourse-common/helpers/html-safe.js
new file mode 100644
index 0000000..dc6d5da
--- /dev/null
+++ b/app/assets/javascripts/discourse-common/helpers/html-safe.js
@@ -0,0 +1,6 @@
+import { registerUnbound } from "discourse-common/lib/helpers";
+import { htmlSafe } from "@ember/template";
+
+registerUnbound("html-safe", function(string) {
+  return htmlSafe(string);
+});
diff --git a/app/assets/javascripts/discourse-common/helpers/html-safe.js.es6 b/app/assets/javascripts/discourse-common/helpers/html-safe.js.es6
deleted file mode 100644

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

GitHub sha: 27641f21