Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesray committed Nov 5, 2024
1 parent 9324948 commit 2f5644b
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 57 deletions.
10 changes: 5 additions & 5 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"@explorer-1/common": "workspace:*",
"@explorer-1/vue": "workspace:*",
"@fancyapps/ui": "^4.0.26",
"@nuxt/kit": "^3.14.0",
"@nuxt/kit": "^3.13.2",
"@nuxtjs/tailwindcss": "^6.12.2",
"@pinia/nuxt": "^0.7.0",
"@pinia/nuxt": "^0.5.0",
"@tailwindcss/forms": "^0.5.7",
"click-outside-vue3": "^4.0.1",
"datebook": "^8.0.1",
Expand All @@ -57,11 +57,11 @@
"@explorer-1/prettier-config": "workspace:*",
"@nuxt/devtools": "^1.6.0",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.14.0",
"@nuxt/test-utils": "^3.14.4",
"@nuxt/schema": "^3.13.2",
"@nuxt/test-utils": "^3.13.2",
"@types/node": "^22.9.0",
"changelogen": "^0.5.5",
"nuxt": "^3.14.0",
"nuxt": "^3.13.2",
"typescript": "^5.6.3",
"vue-tsc": "^2.1.10"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"lint:fix": "eslint --fix"
},
"dependencies": {
"nuxt": "^3.14.0"
"nuxt": "^3.13.2"
}
}
1 change: 1 addition & 0 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@vitejs/plugin-vue": "^5.1.4",
"a11y-dialog": "^8.1.1",
"autoprefixer": "^10.4.20",
"eslint": "^9.14.0",
"postcss": "^8.4.47",
"postcss-import": "^16.1.0",
"typescript": "^5.6.3",
Expand Down
50 changes: 35 additions & 15 deletions packages/vue/src/components/MixinFancybox/MixinFancybox.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<!-- eslint-disable vue/require-explicit-emits -->
<!-- eslint-disable vue/require-default-prop -->
<script lang="ts">
// MixinFancybox.vue
// @ts-nocheck
import { defineComponent } from 'vue'
import { Fancybox } from '@fancyapps/ui'
import { Fullscreen } from '@fancyapps/ui/src/shared/utils/Fullscreen.js'
import '@fancyapps/ui/dist/fancybox.css'
import { Fullscreen } from '@fancyapps/ui/src/shared/utils/Fullscreen.js'
import { defineComponent } from 'vue'
import MixinFancyboxOpenButton from './MixinFancyboxOpenButton.vue'
export const fancyboxThemes = {
Expand Down Expand Up @@ -256,14 +259,16 @@ export default defineComponent({
if (slide.type === 'image') {
caption = `<div class="mx-auto container">
${slide.title ? `<h6 class="font-semibold text-4xl mb-1">${slide.title}</h6>` : ''}
${caption.length
? `<div class="caption inline sm:flex text-body-md pb-2 mr-2 sm:mr-0"><div class="inline">${caption}</div></div>`
: ''
}
${slide.url
? `<a href="${slide.url}" class="inline-block text-body-md whitespace-nowrap relative text-primary can-hover:hover:text-primary-dark cursor-pointer focus:outline-none" title="Full Image Details">Full Image Details</a>`
: ''
}
${
caption.length
? `<div class="caption inline sm:flex text-body-md pb-2 mr-2 sm:mr-0"><div class="inline">${caption}</div></div>`
: ''
}
${
slide.url
? `<a href="${slide.url}" class="inline-block text-body-md whitespace-nowrap relative text-primary can-hover:hover:text-primary-dark cursor-pointer focus:outline-none" title="Full Image Details">Full Image Details</a>`
: ''
}
</div>`
}
Expand All @@ -279,11 +284,26 @@ export default defineComponent({
})
</script>
<template>
<a class="MixinFancybox group cursor-pointer block" role="link" aria-label="Open in Lightbox" :href="src"
:data-fancybox="galleryName || ''" :data-src="src" :data-width="src ? src.width : null"
:data-height="src ? src.height : null" :data-srcset="srcSet" :data-sizes="sizes" :data-theme="computedClass"
:data-caption="computedCaption" :data-title="title" :data-animated="animated" :data-download-src="downloadSrc"
:data-url="detailUrl" :data-max-width="src ? src.width : null" @click="$emit('click')">
<a
class="MixinFancybox group cursor-pointer block"
role="link"
aria-label="Open in Lightbox"
:href="src"
:data-fancybox="galleryName || ''"
:data-src="src"
:data-width="src ? src.width : null"
:data-height="src ? src.height : null"
:data-srcset="srcSet"
:data-sizes="sizes"
:data-theme="computedClass"
:data-caption="computedCaption"
:data-title="title"
:data-animated="animated"
:data-download-src="downloadSrc"
:data-url="detailUrl"
:data-max-width="src ? src.width : null"
@click="$emit('click')"
>
<MixinFancyboxOpenButton />
<slot></slot>
</a>
Expand Down
Loading

0 comments on commit 2f5644b

Please sign in to comment.