mirror of
https://github.com/discourse/discourse.git
synced 2025-06-16 10:51:21 +08:00
DEV: Modernize poll JS directory structure and colocate components
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
import Component from "@ember/component";
|
import Component from "@ember/component";
|
||||||
import I18n from "I18n";
|
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 discourseComputed from "discourse-common/utils/decorators";
|
||||||
import { getColors } from "discourse/plugins/poll/lib/chart-colors";
|
import { getColors } from "discourse/plugins/poll/lib/chart-colors";
|
||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
@ -1,5 +1,5 @@
|
|||||||
import I18n from "I18n";
|
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 RawHtml from "discourse/widgets/raw-html";
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
import { avatarFor } from "discourse/widgets/post";
|
import { avatarFor } from "discourse/widgets/post";
|
@ -4,7 +4,7 @@ import {
|
|||||||
MULTIPLE_POLL_TYPE,
|
MULTIPLE_POLL_TYPE,
|
||||||
NUMBER_POLL_TYPE,
|
NUMBER_POLL_TYPE,
|
||||||
REGULAR_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";
|
import { settled } from "@ember/test-helpers";
|
||||||
|
|
||||||
function setupController(ctx) {
|
function setupController(ctx) {
|
||||||
|
Reference in New Issue
Block a user