mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-07-13 16:23:29 +00:00
DEV: Apply eslint --fix
This commit is contained in:
parent
32a43a850f
commit
86ef7da2eb
@ -1,6 +1,6 @@
|
|||||||
import Component from "@ember/component";
|
import Component from "@ember/component";
|
||||||
import { inject as service } from "@ember/service";
|
|
||||||
import { alias, or } from "@ember/object/computed";
|
import { alias, or } from "@ember/object/computed";
|
||||||
|
import { inject as service } from "@ember/service";
|
||||||
import discourseComputed from "discourse-common/utils/decorators";
|
import discourseComputed from "discourse-common/utils/decorators";
|
||||||
import {
|
import {
|
||||||
isNthPost,
|
isNthPost,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import EmberObject from "@ember/object";
|
import EmberObject from "@ember/object";
|
||||||
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
|
||||||
import discourseComputed, { observes } from "discourse-common/utils/decorators";
|
|
||||||
import { isBlank } from "@ember/utils";
|
import { isBlank } from "@ember/utils";
|
||||||
|
import discourseComputed, { observes } from "discourse-common/utils/decorators";
|
||||||
|
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
||||||
import {
|
import {
|
||||||
isNthPost,
|
isNthPost,
|
||||||
isNthTopicListItem,
|
isNthTopicListItem,
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
|
||||||
import discourseComputed, { observes } from "discourse-common/utils/decorators";
|
|
||||||
import loadScript from "discourse/lib/load-script";
|
|
||||||
import RSVP from "rsvp";
|
|
||||||
import { scheduleOnce } from "@ember/runloop";
|
import { scheduleOnce } from "@ember/runloop";
|
||||||
|
import RSVP from "rsvp";
|
||||||
|
import loadScript from "discourse/lib/load-script";
|
||||||
import { isTesting } from "discourse-common/config/environment";
|
import { isTesting } from "discourse-common/config/environment";
|
||||||
|
import discourseComputed, { observes } from "discourse-common/utils/decorators";
|
||||||
|
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
||||||
|
|
||||||
let _loaded = false,
|
let _loaded = false,
|
||||||
_promise = null,
|
_promise = null,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
|
||||||
import discourseComputed from "discourse-common/utils/decorators";
|
|
||||||
import { and } from "@ember/object/computed";
|
import { and } from "@ember/object/computed";
|
||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
|
import discourseComputed from "discourse-common/utils/decorators";
|
||||||
|
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
||||||
|
|
||||||
export default AdComponent.extend({
|
export default AdComponent.extend({
|
||||||
classNames: ["amazon-product-links"],
|
classNames: ["amazon-product-links"],
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
|
||||||
import discourseComputed from "discourse-common/utils/decorators";
|
|
||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
|
import discourseComputed from "discourse-common/utils/decorators";
|
||||||
|
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
||||||
|
|
||||||
export default AdComponent.extend({
|
export default AdComponent.extend({
|
||||||
serve_id: null,
|
serve_id: null,
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
|
||||||
import discourseComputed, { observes } from "discourse-common/utils/decorators";
|
|
||||||
import loadScript from "discourse/lib/load-script";
|
|
||||||
import RSVP from "rsvp";
|
|
||||||
import { scheduleOnce } from "@ember/runloop";
|
import { scheduleOnce } from "@ember/runloop";
|
||||||
import { isTesting } from "discourse-common/config/environment";
|
|
||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
|
import RSVP from "rsvp";
|
||||||
|
import loadScript from "discourse/lib/load-script";
|
||||||
|
import { isTesting } from "discourse-common/config/environment";
|
||||||
|
import discourseComputed, { observes } from "discourse-common/utils/decorators";
|
||||||
|
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
||||||
|
|
||||||
let _loaded = false,
|
let _loaded = false,
|
||||||
_promise = null,
|
_promise = null,
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
|
||||||
import discourseComputed, { on } from "discourse-common/utils/decorators";
|
|
||||||
import loadScript from "discourse/lib/load-script";
|
|
||||||
import { alias } from "@ember/object/computed";
|
import { alias } from "@ember/object/computed";
|
||||||
import RSVP from "rsvp";
|
|
||||||
import { isTesting } from "discourse-common/config/environment";
|
|
||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
|
import RSVP from "rsvp";
|
||||||
|
import loadScript from "discourse/lib/load-script";
|
||||||
|
import { isTesting } from "discourse-common/config/environment";
|
||||||
|
import discourseComputed, { on } from "discourse-common/utils/decorators";
|
||||||
|
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
||||||
|
|
||||||
let _loaded = false,
|
let _loaded = false,
|
||||||
_promise = null,
|
_promise = null,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
|
||||||
import discourseComputed, { observes } from "discourse-common/utils/decorators";
|
|
||||||
import { isBlank } from "@ember/utils";
|
import { isBlank } from "@ember/utils";
|
||||||
|
import discourseComputed, { observes } from "discourse-common/utils/decorators";
|
||||||
|
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
|
||||||
|
|
||||||
const adIndex = {
|
const adIndex = {
|
||||||
topic_list_top: null,
|
topic_list_top: null,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import MultiSelectComponent from "select-kit/components/multi-select";
|
|
||||||
import Ember from "ember";
|
import Ember from "ember";
|
||||||
|
import MultiSelectComponent from "select-kit/components/multi-select";
|
||||||
const { makeArray } = Ember;
|
const { makeArray } = Ember;
|
||||||
import { computed } from "@ember/object";
|
import { computed } from "@ember/object";
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import HouseAdsSetting from "discourse/plugins/discourse-adplugin/discourse/components/house-ads-setting";
|
|
||||||
import { mapBy } from "@ember/object/computed";
|
import { mapBy } from "@ember/object/computed";
|
||||||
|
import HouseAdsSetting from "discourse/plugins/discourse-adplugin/discourse/components/house-ads-setting";
|
||||||
|
|
||||||
export default HouseAdsSetting.extend({
|
export default HouseAdsSetting.extend({
|
||||||
classNames: "house-ads-setting house-ads-list-setting",
|
classNames: "house-ads-setting house-ads-list-setting",
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import I18n from "I18n";
|
import Controller, { inject as controller } from "@ember/controller";
|
||||||
|
import { not, or } from "@ember/object/computed";
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||||
import { propertyNotEqual } from "discourse/lib/computed";
|
import { propertyNotEqual } from "discourse/lib/computed";
|
||||||
import { bufferedProperty } from "discourse/mixins/buffered-content";
|
import { bufferedProperty } from "discourse/mixins/buffered-content";
|
||||||
import Controller, { inject as controller } from "@ember/controller";
|
import I18n from "I18n";
|
||||||
import { not, or } from "@ember/object/computed";
|
|
||||||
|
|
||||||
export default Controller.extend(bufferedProperty("model"), {
|
export default Controller.extend(bufferedProperty("model"), {
|
||||||
adminPluginsHouseAds: controller("adminPlugins.houseAds"),
|
adminPluginsHouseAds: controller("adminPlugins.houseAds"),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import DiscourseRoute from "discourse/routes/discourse";
|
|
||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
|
import DiscourseRoute from "discourse/routes/discourse";
|
||||||
|
|
||||||
export default DiscourseRoute.extend({
|
export default DiscourseRoute.extend({
|
||||||
@action
|
@action
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import DiscourseRoute from "discourse/routes/discourse";
|
|
||||||
import EmberObject from "@ember/object";
|
import EmberObject from "@ember/object";
|
||||||
|
import DiscourseRoute from "discourse/routes/discourse";
|
||||||
import I18n from "I18n";
|
import I18n from "I18n";
|
||||||
|
|
||||||
export default DiscourseRoute.extend({
|
export default DiscourseRoute.extend({
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
import EmberObject from "@ember/object";
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
import DiscourseRoute from "discourse/routes/discourse";
|
import DiscourseRoute from "discourse/routes/discourse";
|
||||||
import EmberObject from "@ember/object";
|
|
||||||
|
|
||||||
export default DiscourseRoute.extend({
|
export default DiscourseRoute.extend({
|
||||||
settings: null,
|
settings: null,
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
import { visit } from "@ember/test-helpers";
|
||||||
|
import { test } from "qunit";
|
||||||
|
import groupFixtures from "discourse/tests/fixtures/group-fixtures";
|
||||||
import {
|
import {
|
||||||
acceptance,
|
acceptance,
|
||||||
updateCurrentUser,
|
updateCurrentUser,
|
||||||
} from "discourse/tests/helpers/qunit-helpers";
|
} from "discourse/tests/helpers/qunit-helpers";
|
||||||
import { test } from "qunit";
|
|
||||||
import groupFixtures from "discourse/tests/fixtures/group-fixtures";
|
|
||||||
import { visit } from "@ember/test-helpers";
|
|
||||||
|
|
||||||
acceptance("AdSense", function (needs) {
|
acceptance("AdSense", function (needs) {
|
||||||
needs.user();
|
needs.user();
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
import { visit } from "@ember/test-helpers";
|
||||||
|
import { test } from "qunit";
|
||||||
|
import groupFixtures from "discourse/tests/fixtures/group-fixtures";
|
||||||
import {
|
import {
|
||||||
acceptance,
|
acceptance,
|
||||||
updateCurrentUser,
|
updateCurrentUser,
|
||||||
} from "discourse/tests/helpers/qunit-helpers";
|
} from "discourse/tests/helpers/qunit-helpers";
|
||||||
import { test } from "qunit";
|
|
||||||
import groupFixtures from "discourse/tests/fixtures/group-fixtures";
|
|
||||||
import { visit } from "@ember/test-helpers";
|
|
||||||
|
|
||||||
acceptance("DFP Ads", function (needs) {
|
acceptance("DFP Ads", function (needs) {
|
||||||
needs.user();
|
needs.user();
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
import { visit } from "@ember/test-helpers";
|
||||||
|
import { test } from "qunit";
|
||||||
import {
|
import {
|
||||||
acceptance,
|
acceptance,
|
||||||
updateCurrentUser,
|
updateCurrentUser,
|
||||||
} from "discourse/tests/helpers/qunit-helpers";
|
} from "discourse/tests/helpers/qunit-helpers";
|
||||||
import { test } from "qunit";
|
|
||||||
import { visit } from "@ember/test-helpers";
|
|
||||||
|
|
||||||
acceptance("House Ads", function (needs) {
|
acceptance("House Ads", function (needs) {
|
||||||
needs.user();
|
needs.user();
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
import { visit } from "@ember/test-helpers";
|
||||||
|
import { test } from "qunit";
|
||||||
import {
|
import {
|
||||||
acceptance,
|
acceptance,
|
||||||
updateCurrentUser,
|
updateCurrentUser,
|
||||||
} from "discourse/tests/helpers/qunit-helpers";
|
} from "discourse/tests/helpers/qunit-helpers";
|
||||||
import { test } from "qunit";
|
|
||||||
import { visit } from "@ember/test-helpers";
|
|
||||||
|
|
||||||
acceptance("Mixed Ads", function (needs) {
|
acceptance("Mixed Ads", function (needs) {
|
||||||
needs.user();
|
needs.user();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user