Skip to content

Commit

Permalink
doc: install router globally
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Jul 5, 2024
1 parent 24e7665 commit d71331e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 36 deletions.
3 changes: 3 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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',
Expand All @@ -25,6 +27,7 @@ setup((app) => {
[settings.defaultLocale]: messages
}
})
app.use(router)
app.use(bootstrap)
app.use(i18n)
app.use(Vue3Toastify)
Expand Down
36 changes: 0 additions & 36 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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']
Expand Down Expand Up @@ -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']
Expand Down Expand Up @@ -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']
}
}

0 comments on commit d71331e

Please sign in to comment.