remove AAQSystemInfo from global scope

This commit is contained in:
Leo McArdle 2021-12-01 12:02:45 +00:00 коммит произвёл Leo McArdle
Родитель 3d078070de
Коммит 031054affa
4 изменённых файлов: 190 добавлений и 197 удалений

Просмотреть файл

@ -4,10 +4,7 @@ import BrowserDetect from "./browserdetect";
* Prepopulate system info in AAQ form * Prepopulate system info in AAQ form
*/ */
(function($) { export default function AAQSystemInfo($form) {
"use strict";
function AAQSystemInfo($form) {
AAQSystemInfo.prototype.init.call(this, $form); AAQSystemInfo.prototype.init.call(this, $form);
} }
@ -203,6 +200,3 @@ import BrowserDetect from "./browserdetect";
} }
} }
}; };
window.AAQSystemInfo = AAQSystemInfo;
})(jQuery);

Просмотреть файл

@ -7,6 +7,7 @@ import AjaxPreview from "sumo/js/ajaxpreview";
import AjaxVote from "sumo/js/ajaxvote"; import AjaxVote from "sumo/js/ajaxvote";
import { getQueryParamsAsDict, getReferrer, getSearchQuery, unquote } from "sumo/js/main"; import { getQueryParamsAsDict, getReferrer, getSearchQuery, unquote } from "sumo/js/main";
import Marky from "sumo/js/markup"; import Marky from "sumo/js/markup";
import AAQSystemInfo from "sumo/js/aaq";
/* /*
* questions.js * questions.js

Просмотреть файл

@ -35,7 +35,6 @@ const entrypoints = {
], ],
questions: [ questions: [
"sumo/js/remote.js", "sumo/js/remote.js",
"sumo/js/aaq.js",
"sumo/js/questions.js", "sumo/js/questions.js",
"sumo/js/tags.filter.js", "sumo/js/tags.filter.js",
"sumo/js/tags.js", "sumo/js/tags.js",

Просмотреть файл

@ -41,7 +41,6 @@ module.exports = {
"gettext": "readonly", "gettext": "readonly",
"interpolate": "readonly", "interpolate": "readonly",
"Modernizr": "readonly", "Modernizr": "readonly",
"AAQSystemInfo": "readonly",
"remoteTroubleshooting": "readonly", "remoteTroubleshooting": "readonly",
"d3": "readonly", "d3": "readonly",
"abs_y": "readonly", "abs_y": "readonly",