Skip to content

A platform for community discussion. Free, open, simple.

DEV: Move admin data-explorer code to the admin bundle (#38022)

Jarek Radoszbe1231fbb1d2
diff --git a/plugins/discourse-data-explorer/assets/javascripts/discourse/templates/admin-plugins/show/explorer/details.gjs b/plugins/discourse-data-explorer/assets/javascripts/admin/templates/admin-plugins/show/explorer/details.gjs
similarity index 95%
rename from plugins/discourse-data-explorer/assets/javascripts/discourse/templates/admin-plugins/show/explorer/details.gjs
rename to plugins/discourse-data-explorer/assets/javascripts/admin/templates/admin-plugins/show/explorer/details.gjs
index f1e325de7cc..231004485aa 100644
--- a/plugins/discourse-data-explorer/assets/javascripts/discourse/templates/admin-plugins/show/explorer/details.gjs
+++ b/plugins/discourse-data-explorer/assets/javascripts/admin/templates/admin-plugins/show/explorer/details.gjs
@@ -12,10 +12,10 @@ import icon from "discourse/helpers/d-icon";
import draggable from "discourse/modifiers/draggable";
import MultiSelect from "discourse/select-kit/components/multi-select";
import { i18n } from "discourse-i18n";
-import CodeView from "../../../../components/code-view";
-import ExplorerSchema from "../../../../components/explorer-schema";
-import ParamInputForm from "../../../../components/param-input-form";
-import QueryResultsWrapper from "../../../../components/query-results-wrapper";
+import CodeView from "discourse/plugins/discourse-data-explorer/discourse/components/code-view";
+import ExplorerSchema from "discourse/plugins/discourse-data-explorer/discourse/components/explorer-schema";
+import ParamInputForm from "discourse/plugins/discourse-data-explorer/discourse/components/param-input-form";
+import QueryResultsWrapper from "discourse/plugins/discourse-data-explorer/discourse/components/query-results-wrapper";
export default class QueriesDetails extends Component {
get showDestroyQuery() {
diff --git a/plugins/discourse-data-explorer/assets/javascripts/discourse/templates/admin-plugins/show/explorer/index.gjs b/plugins/discourse-data-explorer/assets/javascripts/admin/templates/admin-plugins/show/explorer/index.gjs
similarity index 98%
rename from plugins/discourse-data-explorer/assets/javascripts/discourse/templates/admin-plugins/show/explorer/index.gjs
rename to plugins/discourse-data-explorer/assets/javascripts/admin/templates/admin-plugins/show/explorer/index.gjs
index f8536b8c52a..be9ffb29918 100644
--- a/plugins/discourse-data-explorer/assets/javascripts/discourse/templates/admin-plugins/show/explorer/index.gjs
+++ b/plugins/discourse-data-explorer/assets/javascripts/admin/templates/admin-plugins/show/explorer/index.gjs
@@ -11,7 +11,7 @@ import ageWithTooltip from "discourse/helpers/age-with-tooltip";
import icon from "discourse/helpers/d-icon";
import { not } from "discourse/truth-helpers";
import { i18n } from "discourse-i18n";
-import ShareReport from "../../../../components/share-report";
+import ShareReport from "discourse/plugins/discourse-data-explorer/discourse/components/share-report";
export default <template>
<div class="admin-detail">