Jonathan Druart
4cb736fb7a
We had "home/main page" for eholdings, eholdings/local and eholdings/ebsco. They only contains a list for links we can find in the navigation menu on the left. This patch suggests to remove them, and adjust the style of the links to make them non-clickable. In the breadcrumb, on E-Resource managemente / eHoldings / Local / Titles => Holdings and Local will be black, without cursor on hover In the nav menu, eHoldings, EBSCO and Local are not clickable and black. Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
62 lines
1.6 KiB
TypeScript
62 lines
1.6 KiB
TypeScript
import { createApp } from "vue";
|
|
import { createWebHistory, createRouter } from "vue-router";
|
|
import { createPinia } from "pinia";
|
|
|
|
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
import {
|
|
faPlus,
|
|
faMinus,
|
|
faPencil,
|
|
faTrash,
|
|
faSpinner,
|
|
} from "@fortawesome/free-solid-svg-icons";
|
|
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|
import vSelect from "vue-select";
|
|
|
|
library.add(faPlus, faMinus, faPencil, faTrash, faSpinner);
|
|
|
|
import App from "./components/ERM/ERMMain.vue";
|
|
|
|
import { routes } from "./routes";
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
linkExactActiveClass: "current",
|
|
routes,
|
|
});
|
|
|
|
import { useMainStore } from "./stores/main";
|
|
import { useVendorStore } from "./stores/vendors";
|
|
import { useAVStore } from "./stores/authorised_values";
|
|
|
|
const pinia = createPinia();
|
|
|
|
const i18n = {
|
|
install: (app, options) => {
|
|
app.config.globalProperties.$__ = (key) => {
|
|
return window["__"](key);
|
|
};
|
|
},
|
|
};
|
|
|
|
const app = createApp(App);
|
|
|
|
const rootComponent = app
|
|
.use(i18n)
|
|
.use(pinia)
|
|
.use(router)
|
|
.component("font-awesome-icon", FontAwesomeIcon)
|
|
.component("v-select", vSelect);
|
|
|
|
app.config.unwrapInjectedRef = true;
|
|
app.provide("vendorStore", useVendorStore(pinia));
|
|
const mainStore = useMainStore(pinia);
|
|
app.provide("mainStore", mainStore);
|
|
app.provide("AVStore", useAVStore(pinia));
|
|
|
|
app.mount("#erm");
|
|
|
|
const { removeMessages } = mainStore;
|
|
router.beforeEach((to, from) => {
|
|
removeMessages(); // This will actually flag the messages as displayed already
|
|
});
|