DEV: Modernize poll JS directory structure and colocate components

This commit is contained in:
David Taylor 2023-06-16 17:18:58 +01:00
parent e8f91a0a4c
commit aebe6625d2
10 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import Component from "@ember/component";
import I18n from "I18n";
import { PIE_CHART_TYPE } from "discourse/plugins/poll/controllers/poll-ui-builder";
import { PIE_CHART_TYPE } from "../controllers/poll-ui-builder";
import discourseComputed from "discourse-common/utils/decorators";
import { getColors } from "discourse/plugins/poll/lib/chart-colors";
import { htmlSafe } from "@ember/template";

View File

@ -1,5 +1,5 @@
import I18n from "I18n";
import { PIE_CHART_TYPE } from "discourse/plugins/poll/controllers/poll-ui-builder";
import { PIE_CHART_TYPE } from "../controllers/poll-ui-builder";
import RawHtml from "discourse/widgets/raw-html";
import { ajax } from "discourse/lib/ajax";
import { avatarFor } from "discourse/widgets/post";

View File

@ -4,7 +4,7 @@ import {
MULTIPLE_POLL_TYPE,
NUMBER_POLL_TYPE,
REGULAR_POLL_TYPE,
} from "discourse/plugins/poll/controllers/poll-ui-builder";
} from "discourse/plugins/poll/discourse/controllers/poll-ui-builder";
import { settled } from "@ember/test-helpers";
function setupController(ctx) {