Remove icon plugin

Deleted the icon plugin file and removed it from the plugin index, mountVueComponent, and test helpers. Some tests will fail temporarily because a few components still use string-based icon references that relied on the global icon library.
This commit is contained in:
Dannon Baker
2025-11-02 12:58:33 -05:00
parent 27079d670d
commit acf6fe29e1
4 changed files with 1 additions and 130 deletions
-123
View File
@@ -1,123 +0,0 @@
import { library } from "@fortawesome/fontawesome-svg-core";
import {
faArrowUp,
faBell,
faBolt,
faBurn,
faCalculator,
faChartArea,
faChartBar,
faCheckSquare,
faClock,
faCloud,
faCodeBranch,
faCog,
faColumns,
faCompress,
faCopy,
faDownload,
faEllipsisH,
faEllipsisV,
faExchangeAlt,
faExclamationTriangle,
faExternalLinkAlt,
faEye,
faFile,
faFileArchive,
faFileContract,
faFileExport,
faFilter,
faFolder,
faHdd,
faInfoCircle,
faLaptop,
faLink,
faList,
faLock,
faMinusSquare,
faPause,
faPen,
faPlay,
faPlus,
faPlusSquare,
faQuestion,
faShareAlt,
faSitemap,
faStream,
faTags,
faTools,
faTrash,
faTrashRestore,
faUndo,
faUserCog,
faUserLock,
faWrench,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
library.add(
faArrowUp,
faBell,
faBolt,
faBurn,
faCalculator,
faChartArea,
faChartBar,
faCheckSquare,
faClock,
faCloud,
faCodeBranch,
faColumns,
faCompress,
faCopy,
faDownload,
faEllipsisH,
faEllipsisV,
faExchangeAlt,
faExternalLinkAlt,
faEye,
faFileArchive,
faFileContract,
faFileExport,
faFilter,
faFile,
faFolder,
faCog,
faHdd,
faInfoCircle,
faLaptop,
faLink,
faList,
faLock,
faMinusSquare,
faPause,
faPen,
faPlay,
faPlus,
faPlusSquare,
faQuestion,
faShareAlt,
faSitemap,
faStream,
faTags,
faTools,
faTrash,
faTrashRestore,
faExclamationTriangle,
faUndo,
faUserCog,
faUserLock,
faWrench,
);
export const iconMixin = {
components: {
Icon: FontAwesomeIcon,
},
};
export const iconPlugin = {
install(Vue) {
Vue.mixin(iconMixin);
},
};
-1
View File
@@ -1,4 +1,3 @@
export { iconMixin, iconPlugin } from "./icons";
export { localizationPlugin } from "./localization";
export { vueRxShortcutPlugin, vueRxShortcuts } from "./vueRxShortcuts";
+1 -4
View File
@@ -3,7 +3,7 @@
// the same plugins and events.
import BootstrapVue from "bootstrap-vue";
import { iconPlugin, localizationPlugin, vueRxShortcutPlugin } from "components/plugins";
import { localizationPlugin, vueRxShortcutPlugin } from "components/plugins";
import { createPinia, getActivePinia, PiniaVuePlugin } from "pinia";
import Vue from "vue";
@@ -19,9 +19,6 @@ Vue.use(localizationPlugin);
// rxjs utilities
Vue.use(vueRxShortcutPlugin);
// font-awesome svg icon registration/loading
Vue.use(iconPlugin);
function getOrCreatePinia() {
// We sometimes use this utility mounting function in a context where there
// is no existing vue application or pinia store (e.g. individual charts
-2
View File
@@ -3,7 +3,6 @@
*/
import { createLocalVue, shallowMount } from "@vue/test-utils";
import BootstrapVue from "bootstrap-vue";
import { iconPlugin } from "components/plugins/icons";
import { localizationPlugin } from "components/plugins/localization";
import { vueRxShortcutPlugin } from "components/plugins/vueRxShortcuts";
import { PiniaVuePlugin } from "pinia";
@@ -192,7 +191,6 @@ export function getLocalVue(instrumentLocalization = false) {
const l = instrumentLocalization ? testLocalize : _l;
localVue.use(localizationPlugin, l);
localVue.use(vueRxShortcutPlugin);
localVue.use(iconPlugin);
localVue.directive("b-tooltip", mockedDirective);
localVue.directive("b-popover", mockedDirective);
return localVue;