This component is now built with Vue3 and Vite, Vue2 is no longer maintained but the source code can be found in this branch.
<template>
<div>
<Gallery :items="dataInput" @card-clicked="cardClicked" />
</div>
</template>
<script>
import Gallery from './components/Gallery.vue'
import "@abi-software/gallery/dist/style.css";
export default {
name: "App",
components: {
Gallery,
},
...
}
Contains the defaultImg
source and the getRequest
function for fetching the dataset images.
<script>
/* eslint-disable no-alert, no-console */
import GalleryHelper from "@abi-software/gallery/src/mixins/GalleryHelpers";
export default {
mixins: [ GalleryHelper ],
...
}
See Vite Configuration Reference.
npm install
npm run serve
npm run build-bundle
Lint with ESLint
npm run lint
The API documentation is developed with vitepress
and vuese
. Documentation pages are in the docs
folder.
npm run docs:watch
This will start the documentation server with vitepress
on port :5173
and watch the components' changes.