DEV: stop relying on global jQuery, import "jquery" instead (#23924)

We'll probably have to keep the globals around for compatibility, but we should always import it ourselves. We'll followup with an updated eslint config to enforce this.
This commit is contained in:
Godfrey Chan
2023-10-17 05:56:59 -07:00
committed by GitHub
parent 070f4e318b
commit 6036001667
71 changed files with 131 additions and 55 deletions

View File

@@ -2,6 +2,7 @@ import Component from "@ember/component";
import { action } from "@ember/object";
import { classNames } from "@ember-decorators/component";
import { observes, on } from "@ember-decorators/object";
import $ from "jquery";
import loadScript from "discourse/lib/load-script";
import getURL from "discourse-common/lib/get-url";
import { bind } from "discourse-common/utils/decorators";

View File

@@ -2,6 +2,7 @@ import Component from "@ember/component";
import EmberObject, { action } from "@ember/object";
import { inject as service } from "@ember/service";
import { classNames } from "@ember-decorators/component";
import $ from "jquery";
import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";
import copyText from "discourse/lib/copy-text";