This commit is contained in:
2025-11-29 12:10:23 -05:00
parent 010244847f
commit 1349158dcb
55 changed files with 2227 additions and 142 deletions

27
src2/stores/MainStore.vue Normal file
View File

@@ -0,0 +1,27 @@
<script>
import { defineStore } from 'pinia'
import {ref, computed} from 'vue'
// the first argument is a unique id of the store across your application
export const mainStore = defineStore('store', () => {
const isOpen = ref(false)
const modal = ref(false)
const promo_display = []
function changeGallery(isopen, n, val, promo) {
modal.value = val
if (n == 0) {
isOpen.value = !isopen
}
if (!(promo === null)) {
promo_display.push(promo);
if (promo_display.length > 1) {
promo_display.shift();
}
}
}
return { isOpen, modal, changeGallery, promo_display}
})
</script>