diff --git a/client/src/components/plugins/icons.js b/client/src/components/plugins/icons.js deleted file mode 100644 index d4d63ab0418..00000000000 --- a/client/src/components/plugins/icons.js +++ /dev/null @@ -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); - }, -}; diff --git a/client/src/components/plugins/index.js b/client/src/components/plugins/index.js index 47ae8061c66..ba8bb8bd068 100644 --- a/client/src/components/plugins/index.js +++ b/client/src/components/plugins/index.js @@ -1,4 +1,3 @@ -export { iconMixin, iconPlugin } from "./icons"; export { localizationPlugin } from "./localization"; export { vueRxShortcutPlugin, vueRxShortcuts } from "./vueRxShortcuts"; diff --git a/client/src/utils/mountVueComponent.js b/client/src/utils/mountVueComponent.js index d3affb82098..73e2585e1b7 100644 --- a/client/src/utils/mountVueComponent.js +++ b/client/src/utils/mountVueComponent.js @@ -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 diff --git a/client/tests/jest/helpers.js b/client/tests/jest/helpers.js index a036e2fd38d..4ec2136f4a0 100644 --- a/client/tests/jest/helpers.js +++ b/client/tests/jest/helpers.js @@ -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;