From d71331e0cfc0ae43404677d33cf8b4bb65267680 Mon Sep 17 00:00:00 2001 From: Pierre Romera Date: Fri, 5 Jul 2024 10:39:31 +0000 Subject: [PATCH] doc: install router globally --- .storybook/preview.js | 3 +++ components.d.ts | 36 ------------------------------------ 2 files changed, 3 insertions(+), 36 deletions(-) diff --git a/.storybook/preview.js b/.storybook/preview.js index 7e13c7c21e..1434bc93ca 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -3,6 +3,7 @@ import { setup } from '@storybook/vue3' import { useArgs } from '@storybook/preview-api' import { styled } from '@storybook/theming' import { withThemeByDataAttribute } from '@storybook/addon-themes' +import { createRouter, createWebHashHistory } from 'vue-router' import { createBootstrap } from 'bootstrap-vue-next' import { createI18n } from 'vue-i18n' import Vue3Toastify from 'vue3-toastify' @@ -13,6 +14,7 @@ import settings from '@/utils/settings' import './preview.scss' setup((app) => { + const router = createRouter({ routes: [], history: createWebHashHistory() }) const bootstrap = createBootstrap({ components: true, directives: true }) const i18n = createI18n({ warnHtmlInMessage: 'off', @@ -25,6 +27,7 @@ setup((app) => { [settings.defaultLocale]: messages } }) + app.use(router) app.use(bootstrap) app.use(i18n) app.use(Vue3Toastify) diff --git a/components.d.ts b/components.d.ts index 219173f1b1..1939174d22 100644 --- a/components.d.ts +++ b/components.d.ts @@ -15,7 +15,6 @@ declare module 'vue' { AppSidebarFooter: typeof import('./src/components/AppSidebarFooter.vue')['default'] AppSidebarSection: typeof import('./src/components/AppSidebarSection.vue')['default'] AppSidebarSectionEntry: typeof import('./src/components/AppSidebarSectionEntry.vue')['default'] - AppSidebarSectionItem: typeof import('./src/components/AppSidebarSectionItem.vue')['default'] AppSidebarSectionTitle: typeof import('./src/components/AppSidebarSectionTitle.vue')['default'] AppSidebarSectionToggler: typeof import('./src/components/AppSidebarSectionToggler.vue')['default'] AppSidebarToggler: typeof import('./src/components/AppSidebarToggler.vue')['default'] @@ -33,45 +32,12 @@ declare module 'vue' { BatchSearchResultsTable: typeof import('./src/components/BatchSearchResultsTable.vue')['default'] BatchSearchStatus: typeof import('./src/components/BatchSearchStatus.vue')['default'] BatchSearchTable: typeof import('./src/components/BatchSearchTable.vue')['default'] - BBadge: typeof import('bootstrap-vue-next')['BBadge'] BButton: typeof import('bootstrap-vue-next')['BButton'] - BButtonGroup: typeof import('bootstrap-vue-next')['BButtonGroup'] - BCard: typeof import('bootstrap-vue-next')['BCard'] - BCardText: typeof import('bootstrap-vue-next')['BCardText'] - BCol: typeof import('bootstrap-vue-next')['BCol'] - BCollapse: typeof import('bootstrap-vue-next')['BCollapse'] - BDropdown: typeof import('bootstrap-vue-next')['BDropdown'] - BDropdownDivider: typeof import('bootstrap-vue-next')['BDropdownDivider'] - BDropdownHeader: typeof import('bootstrap-vue-next')['BDropdownHeader'] - BDropdownItem: typeof import('bootstrap-vue-next')['BDropdownItem'] - BDropdownItemButton: typeof import('bootstrap-vue-next')['BDropdownItemButton'] - BForm: typeof import('bootstrap-vue-next')['BForm'] - BFormCheckbox: typeof import('bootstrap-vue-next')['BFormCheckbox'] - BFormCheckboxGroup: typeof import('bootstrap-vue-next')['BFormCheckboxGroup'] - BFormGroup: typeof import('bootstrap-vue-next')['BFormGroup'] - BFormInput: typeof import('bootstrap-vue-next')['BFormInput'] - BFormInvalidFeedback: typeof import('bootstrap-vue-next')['BFormInvalidFeedback'] - BFormRadio: typeof import('bootstrap-vue-next')['BFormRadio'] - BFormSelect: typeof import('bootstrap-vue-next')['BFormSelect'] - BInputGroup: typeof import('bootstrap-vue-next')['BInputGroup'] - BInputGroupText: typeof import('bootstrap-vue-next')['BInputGroupText'] - BLink: typeof import('bootstrap-vue-next')['BLink'] - BListGroup: typeof import('bootstrap-vue-next')['BListGroup'] - BListGroupItem: typeof import('bootstrap-vue-next')['BListGroupItem'] - BModal: typeof import('bootstrap-vue-next')['BModal'] - BOverlay: typeof import('bootstrap-vue-next')['BOverlay'] - BPopover: typeof import('bootstrap-vue-next')['BPopover'] - BRow: typeof import('bootstrap-vue-next')['BRow'] - BTab: typeof import('bootstrap-vue-next')['BTab'] - BTable: typeof import('bootstrap-vue-next')['BTable'] - BTabs: typeof import('bootstrap-vue-next')['BTabs'] - BTooltip: typeof import('bootstrap-vue-next')['BTooltip'] ColumnChartPicker: typeof import('./src/components/ColumnChartPicker.vue')['default'] ColumnFilter: typeof import('./src/components/ColumnFilter.vue')['default'] ColumnFilterBadge: typeof import('./src/components/ColumnFilterBadge.vue')['default'] ColumnFilterDropdown: typeof import('./src/components/ColumnFilterDropdown.vue')['default'] ContentTypeBadge: typeof import('./src/components/ContentTypeBadge.vue')['default'] - copy: typeof import('./src/components/AppSidebarSection copy.vue')['default'] DismissableAlert: typeof import('./src/components/DismissableAlert.vue')['default'] DocumentActions: typeof import('./src/components/DocumentActions.vue')['default'] DocumentAttachments: typeof import('./src/components/DocumentAttachments.vue')['default'] @@ -116,7 +82,6 @@ declare module 'vue' { FilterText: typeof import('./src/components/filter/types/FilterText.vue')['default'] FindNamedEntitiesForm: typeof import('./src/components/FindNamedEntitiesForm.vue')['default'] Hook: typeof import('./src/components/Hook.vue')['default'] - Icon: typeof import('./src/components/Icon.vue')['default'] IconButton: typeof import('./src/components/IconButton.vue')['default'] ImageViewer: typeof import('./src/components/document/viewers/ImageViewer.vue')['default'] InlineDirectoryPicker: typeof import('./src/components/InlineDirectoryPicker.vue')['default'] @@ -189,7 +154,6 @@ declare module 'vue' { WidgetTreeMap: typeof import('./src/components/widget/WidgetTreeMap.vue')['default'] } export interface ComponentCustomProperties { - vBModal: typeof import('bootstrap-vue-next')['vBModal'] vBTooltip: typeof import('bootstrap-vue-next')['vBTooltip'] } }