{"id":22545365,"url":"https://github.com/modbender/nuxt-easy-lightbox","last_synced_at":"2025-10-25T13:32:23.441Z","repository":{"id":235556660,"uuid":"790915304","full_name":"modbender/nuxt-easy-lightbox","owner":"modbender","description":"A plugin for simple Vue 3 Image Lightbox component with Zoom / Drag / Rotate / Switch.","archived":false,"fork":false,"pushed_at":"2025-01-29T18:29:24.000Z","size":13373,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T23:51:17.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modbender.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["modbender"],"patreon":"modbender","open_collective":null,"ko_fi":"modbender","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"custom":["paypal.me/modbender"]}},"created_at":"2024-04-23T18:58:39.000Z","updated_at":"2025-01-29T18:29:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe63dab1-46ba-4566-8d8c-85a144246071","html_url":"https://github.com/modbender/nuxt-easy-lightbox","commit_stats":{"total_commits":13,"total_committers":4,"mean_commits":3.25,"dds":"0.23076923076923073","last_synced_commit":"4f9fe2e7dfb1af6aca03c74d7430902a5e7e6caf"},"previous_names":["modbender/nuxt-easy-lightbox"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Fnuxt-easy-lightbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Fnuxt-easy-lightbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Fnuxt-easy-lightbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Fnuxt-easy-lightbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modbender","download_url":"https://codeload.github.com/modbender/nuxt-easy-lightbox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131455,"owners_count":21052819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T14:09:45.204Z","updated_at":"2025-10-25T13:32:23.123Z","avatar_url":"https://github.com/modbender.png","language":"TypeScript","funding_links":["https://github.com/sponsors/modbender","https://patreon.com/modbender","https://ko-fi.com/modbender","paypal.me/modbender"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\nNuxt Easy Lightbox\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://npmjs.com/package/nuxt-easy-lightbox\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/nuxt-easy-lightbox/latest.svg?style=flat\u0026colorA=020420\u0026colorB=00DC82\" alt=\"Nuxt Splide - NPM Package\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://npmjs.com/package/nuxt-easy-lightbox\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/nuxt-easy-lightbox.svg?style=flat\u0026colorA=020420\u0026colorB=00DC82\" alt=\"Nuxt Splide - NPM Package Downloads\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://npmjs.com/package/nuxt-easy-lightbox\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/nuxt-easy-lightbox.svg?style=flat\u0026colorA=020420\u0026\" alt=\"Nuxt Splide License\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://nuxt.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js\" alt=\"Nuxt Splide - Nuxt\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\nA plugin to the simple Vue 3 Image Lightbox component with Zoom / Drag / Rotate / Switch.\n\u003c/p\u003e\n\n![Nuxt Easy Lightbox](./.github/VueEasyLightbox.gif)\n\n- [✨ \u0026nbsp;Release Notes](/CHANGELOG.md)\n- [🏀 Online playground](https://stackblitz.com/github/modbender/nuxt-easy-lightbox?file=playground%2Fapp.vue)\n- [📖 \u0026nbsp;Documentation](https://github.com/XiongAmao/vue-easy-lightbox)\n\n## Features\n\n- 🪶 \u0026nbsp;Lightweight, Fast Loading\n- ❤️ \u0026nbsp;Easy to Use with Lots of Features\n- 🖼️ \u0026nbsp;Image Slider in Lightbox\n\n## Quick Setup\n\n1. Install the module to your Nuxt application with one command:\n\n    ```bash\n    npx nuxi module add nuxt-easy-lightbox\n    ```\n\n2. Add module to `nuxt.config.ts`\n  \n    ```js\n    export default defineNuxtConfig({\n      modules: ['nuxt-easy-lightbox'],\n    })\n    ```\n\n3. Next use the component `VueEasyLightbox` right next to image element for which you want to use lightbox.\n\n    ```vue\n    \u003ctemplate\u003e\n      \u003cdiv\u003e\n        \u003cdiv\n          v-for=\"(src, index) in imgs\"\n          :key=\"index\"\n          class=\"pic\"\n          @click=\"() =\u003e showImg(index)\"\n        \u003e\n          \u003cimg :src=\"src\" /\u003e\n        \u003c/div\u003e\n        \u003cVueEasyLightbox\n          :visible=\"visibleRef\"\n          :imgs=\"imgs\"\n          :index=\"indexRef\"\n          @hide=\"onHide\"\n        /\u003e\n      \u003c/div\u003e\n    \u003c/template\u003e\n\n    \u003cscript setup\u003e\n    const visibleRef = ref(false);\n    const indexRef = ref(0);\n\n    const imgs = [\n      \"https://via.placeholder.com/450.png/\",\n      \"https://via.placeholder.com/300.png/\",\n      \"https://via.placeholder.com/150.png/\",\n      { src: \"https://via.placeholder.com/450.png/\", title: \"this is title\" },\n    ];\n\n    const showImg = (index) =\u003e {\n      indexRef.value = index;\n      visibleRef.value = true;\n    };\n    const onHide = () =\u003e (visibleRef.value = false);\n    \u003c/script\u003e\n    ```\n  \n  Remember \n  - For group of images you need only a single `VueEasyLightbox` since they can be viewed through slider. Put all the images in an Array and pass it to `imgs` argument.\n  - For individual images, for each `img` element you need individual lightbox.\n\nThat's it! You can now use Easy Lightbox in your Nuxt app ✨\n\n\n## Contribution\n\n\u003cdetails\u003e\n  \u003csummary\u003eLocal development\u003c/summary\u003e\n  \n  ```bash\n  # Install dependencies\n  pnpm install\n  \n  # Generate type stubs\n  pnpm dev:prepare\n  \n  # Develop with the playground\n  pnpm dev\n  \n  # Build the playground\n  pnpm dev:build\n  \n  # Run ESLint\n  pnpm lint\n  \n  # Run Vitest\n  pnpm test\n  pnpm test:watch\n  \n  # Release new version\n  npm run release\n  ```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodbender%2Fnuxt-easy-lightbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodbender%2Fnuxt-easy-lightbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodbender%2Fnuxt-easy-lightbox/lists"}