Skip to content

Commit

Permalink
fixing Vue Compare Image, updating Storybook to 8.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Jun 10, 2024
1 parent 2fecebf commit 3f90ce0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/nuxt/dist/module.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const module = defineNuxtModule({
addPlugin(resolver.resolve(pluginDir, "dayjs"));
addPlugin(resolver.resolve(pluginDir, "filters"));
addPlugin(resolver.resolve(pluginDir, "vue-click-outside"));
addPlugin(resolver.resolve(pluginDir, "vue-compare-image.client"));
if (_options.includeStyles) {
await installModule("@nuxtjs/tailwindcss", {
configPath: resolver.resolve(runtimeDir, "tailwind.config")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: any;
export default _default;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import VueCompareImage from "vue3-compare-image";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueCompareImage);
});
3 changes: 2 additions & 1 deletion packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"dayjs": "^1.11.11",
"lodash": "^4.17.21",
"qs": "^6.12.1",
"swiper": "^11.1.3"
"swiper": "^11.1.3",
"vue3-compare-image": "^1.2.5"
},
"devDependencies": {
"@explorer-1/common": "workspace:*",
Expand Down
1 change: 1 addition & 0 deletions packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default defineNuxtModule<ModuleOptions>({
addPlugin(resolver.resolve(pluginDir, 'dayjs'))
addPlugin(resolver.resolve(pluginDir, 'filters'))
addPlugin(resolver.resolve(pluginDir, 'vue-click-outside'))
addPlugin(resolver.resolve(pluginDir, 'vue-compare-image.client'))

if (_options.includeStyles) {
await installModule('@nuxtjs/tailwindcss', {
Expand Down
6 changes: 6 additions & 0 deletions packages/nuxt/src/runtime/plugins/vue-compare-image.client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// @ts-nocheck
import VueCompareImage from 'vue3-compare-image'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueCompareImage)
})
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3f90ce0

Please sign in to comment.