diff --git a/.storybook/HomeStorybook.vue b/.storybook/HomeStorybook.vue new file mode 100644 index 0000000..e519b41 --- /dev/null +++ b/.storybook/HomeStorybook.vue @@ -0,0 +1,3 @@ + + + diff --git a/.storybook/plugins/index.ts b/.storybook/plugins/index.ts index 8915986..598a608 100644 --- a/.storybook/plugins/index.ts +++ b/.storybook/plugins/index.ts @@ -1,7 +1,8 @@ import type { App } from 'vue' -import vuetify from './vuetify' +import { router } from './router' +import { vuetify } from './vuetify' export async function registerPlugins(app: App) { - app.use(vuetify) + app.use(vuetify).use(router) } diff --git a/.storybook/plugins/router.ts b/.storybook/plugins/router.ts new file mode 100644 index 0000000..6b763b2 --- /dev/null +++ b/.storybook/plugins/router.ts @@ -0,0 +1,21 @@ +import { createRouter, createWebHistory } from 'vue-router' + +import HomeStorybook from '../HomeStorybook.vue' + +const routes = [ + { + path: '/', + name: 'home', + component: HomeStorybook + }, + { + path: '/gene-details/:gene', + name: 'gene-details', + component: HomeStorybook + } +] + +export const router = createRouter({ + history: createWebHistory(), + routes +}) diff --git a/.storybook/plugins/vuetify.ts b/.storybook/plugins/vuetify.ts index d4caa46..c01856d 100644 --- a/.storybook/plugins/vuetify.ts +++ b/.storybook/plugins/vuetify.ts @@ -27,7 +27,7 @@ const customLightTheme: ThemeDefinition = { } // https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides -export default createVuetify({ +export const vuetify = createVuetify({ blueprint: md3, components: { ...components diff --git a/package-lock.json b/package-lock.json index 6f8dc49..92b8bf7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "vite-plugin-css-injected-by-js": "^3.3.1", "vite-plugin-static-copy": "^1.0.1", "vue": "^3.4.15", + "vue-router": "^4.2.5", "vuetify": "^3.5.1" }, "devDependencies": { @@ -6842,9 +6843,7 @@ "node_modules/@vue/devtools-api": { "version": "6.5.1", "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.5.1.tgz", - "integrity": "sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==", - "dev": true, - "peer": true + "integrity": "sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==" }, "node_modules/@vue/eslint-config-prettier": { "version": "9.0.0", @@ -20694,6 +20693,20 @@ "vue": ">=2" } }, + "node_modules/vue-router": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.2.5.tgz", + "integrity": "sha512-DIUpKcyg4+PTQKfFPX88UWhlagBEBEfJ5A8XDXRJLUnZOvcpMF8o/dnL90vpVkGaPbjvXazV/rC1qBKrZlFugw==", + "dependencies": { + "@vue/devtools-api": "^6.5.0" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "vue": "^3.2.0" + } + }, "node_modules/vue-template-compiler": { "version": "2.7.16", "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.7.16.tgz", diff --git a/package.json b/package.json index 27f2f69..727c519 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "vite-plugin-css-injected-by-js": "^3.3.1", "vite-plugin-static-copy": "^1.0.1", "vue": "^3.4.15", + "vue-router": "^4.2.5", "vuetify": "^3.5.1" }, "devDependencies": { diff --git a/src/components/StrucvarGeneListCard/GeneDosage.vue b/src/components/StrucvarGeneListCard/GeneDosage.vue index dad2672..27d2f43 100644 --- a/src/components/StrucvarGeneListCard/GeneDosage.vue +++ b/src/components/StrucvarGeneListCard/GeneDosage.vue @@ -1,18 +1,16 @@