diff --git a/src/components/CGalleryImages/CGalleryImages.scss b/src/components/CGalleryImages/CGalleryImages.scss new file mode 100755 index 00000000..0e7557e9 --- /dev/null +++ b/src/components/CGalleryImages/CGalleryImages.scss @@ -0,0 +1,65 @@ +$heightBtn: 100%; +$grayshadow: #555; + +.text-subtitle-gallery { + font-size: 1rem; + font-weight: 400; + line-height: 1.75rem; + letter-spacing: .00937em; + text-shadow: .1rem .1rem .1rem $grayshadow; +} + +@media (max-width: 718px) { + // PER VERSIONE MOBILE + .text-subtitle-gallery { + font-size: 1rem; + } +} + +.myimg { + border-radius: 10px !important; + height: 200px; + cursor: pointer; +} + +.myimg-modify { + cursor: grab; +} + + +.barwidth{ + width: 250px !important; +} + + +.q-img { + &__image { + border-radius: 10px !important; + } +} + +.my-card-gallery { + width: 100%; + max-width: 300px; + min-width: 200px; + padding: 0.5rem 0.5rem; + height: 350px; + margin: auto; +} + +.my-card-gallery-noModif { + width: 100%; + max-width: 300px; + min-width: 200px; + padding: 1rem 1rem; + height: 220px; +} + + + +.my-card-gallery-view { + width: 100px; + height: 100px; + padding: 0.25rem 0.25rem; + margin: auto; +} diff --git a/src/components/CGalleryImages/CGalleryImages.ts b/src/components/CGalleryImages/CGalleryImages.ts new file mode 100755 index 00000000..42cc0af2 --- /dev/null +++ b/src/components/CGalleryImages/CGalleryImages.ts @@ -0,0 +1,40 @@ +import { defineComponent, ref, PropType, watch, onMounted, computed } from 'vue' +import { useI18n } from '@src/boot/i18n' +import { useUserStore } from '@store/UserStore' +import { useQuasar } from 'quasar' +import { IGallery, IImgGallery } from 'model' +import { CMyPage } from '@/components/CMyPage' +import { tools } from '@store/Modules/tools' +import { useGlobalStore } from '@store/globalStore' +import { costanti } from '@costanti' + +export default defineComponent({ + name: 'CGalleryImages', + props: { + imgGallery: { + type: Object as PropType, + required: true, + }, + directory: { + type: String, + required: true, + } + }, + components: { CMyPage }, + setup(props, { emit }) { + const $q = useQuasar() + const { t } = useI18n() + const userStore = useUserStore() + const globalStore = useGlobalStore() + + const slide = ref(0) + const autoplay = ref(5000) + + return { + tools, + costanti, + slide, + autoplay, + } + } +}) diff --git a/src/components/CGalleryImages/CGalleryImages.vue b/src/components/CGalleryImages/CGalleryImages.vue new file mode 100755 index 00000000..13c7427c --- /dev/null +++ b/src/components/CGalleryImages/CGalleryImages.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/components/CGalleryImages/index.ts b/src/components/CGalleryImages/index.ts new file mode 100755 index 00000000..bdf414ba --- /dev/null +++ b/src/components/CGalleryImages/index.ts @@ -0,0 +1 @@ +export {default as CGalleryImages} from './CGalleryImages.vue' diff --git a/src/components/CMyCardService/CMyCardService.ts b/src/components/CMyCardService/CMyCardService.ts index 904b4aa5..5c638170 100644 --- a/src/components/CMyCardService/CMyCardService.ts +++ b/src/components/CMyCardService/CMyCardService.ts @@ -138,10 +138,10 @@ export default defineComponent({ function clicca(tipo: any, set: any, title: string) { if (set && myrec.value.username !== userStore.my.username && tipo === costanti.TIPOFAVBOOK.FAVORITE) { - userStore.setFavorite($q, t, myrec.value._id, props.table, myrec.value); + userStore.setFavorite($q, t, myrec.value._id, props.table); } if (set && myrec.value.username !== userStore.my.username && tipo === costanti.TIPOFAVBOOK.BOOKMARK) { - userStore.setBookmark($q, t, myrec.value._id, props.table, myrec.value); + userStore.setBookmark($q, t, myrec.value._id, props.table); } if (!set) {