mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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:
@@ -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,4 +1,3 @@
|
||||
export { iconMixin, iconPlugin } from "./icons";
|
||||
export { localizationPlugin } from "./localization";
|
||||
export { vueRxShortcutPlugin, vueRxShortcuts } from "./vueRxShortcuts";
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user