From 10fcc991bfa3ed1a228af2d5751e5c17f132635f Mon Sep 17 00:00:00 2001 From: Stephanie Smith Date: Wed, 18 Sep 2024 10:24:42 -0700 Subject: [PATCH 1/2] using FetchAsteroidWatchWidget --- .../.storybook/_mock-components.js | 3 +- .../PageAsteroidWatchContent.vue | 49 +++++++------------ 2 files changed, 21 insertions(+), 31 deletions(-) diff --git a/apps/vue-storybook/.storybook/_mock-components.js b/apps/vue-storybook/.storybook/_mock-components.js index 076fa55a..d03d3db8 100644 --- a/apps/vue-storybook/.storybook/_mock-components.js +++ b/apps/vue-storybook/.storybook/_mock-components.js @@ -1,6 +1,7 @@ // import and assign mock components import { action } from '@storybook/addon-actions' import DsnWidget from '@explorer-1/vue/src/components/DsnWidget/DsnWidget.vue' +import AsteroidWatchWidget from '@explorer-1/vue/src/components/AsteroidWatchWidget/AsteroidWatchWidget.vue' export default (app) => { // nuxt-link mock component @@ -26,5 +27,5 @@ export default (app) => { }) // use static dsn widget instead of fetch - app.component('FetchDsnWidget', DsnWidget) + app.component('FetchAsteroidWatchWidget', AsteroidWatchWidget) } diff --git a/packages/vue/src/templates/www/PageAsteroidWatchContent/PageAsteroidWatchContent.vue b/packages/vue/src/templates/www/PageAsteroidWatchContent/PageAsteroidWatchContent.vue index d90c4a7e..d057a128 100755 --- a/packages/vue/src/templates/www/PageAsteroidWatchContent/PageAsteroidWatchContent.vue +++ b/packages/vue/src/templates/www/PageAsteroidWatchContent/PageAsteroidWatchContent.vue @@ -1,3 +1,21 @@ + - From 85c8ae090225ccb9397270a9cf73a872b5084d80 Mon Sep 17 00:00:00 2001 From: Stephanie Smith Date: Wed, 18 Sep 2024 10:30:40 -0700 Subject: [PATCH 2/2] fixing mock component --- apps/vue-storybook/.storybook/_mock-components.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/vue-storybook/.storybook/_mock-components.js b/apps/vue-storybook/.storybook/_mock-components.js index d03d3db8..387d7a50 100644 --- a/apps/vue-storybook/.storybook/_mock-components.js +++ b/apps/vue-storybook/.storybook/_mock-components.js @@ -27,5 +27,8 @@ export default (app) => { }) // use static dsn widget instead of fetch + app.component('FetchDsnWidget', DsnWidget) + + // use static asteroid watch widget instead of fetch app.component('FetchAsteroidWatchWidget', AsteroidWatchWidget) }