This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
import Modal from "@/Components/Modal.vue"; | |
import {useTeamStore} from "@/stores/TeamStore"; | |
import { ref } from "vue"; | |
let showModal = ref(false); | |
let team = useTeamStore(); | |
</script> | |
<template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
defineProps({ | |
show: Boolean | |
}); | |
</script> | |
<template> | |
<Transition | |
enter-from-class="opacity-0 scale-125" | |
enter-to-class="opacity-100 scale-100" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
defineProps({ | |
show: Boolean | |
}); | |
</script> | |
<template> | |
<div v-if="show" class="modal-mask"> | |
<div class="modal-container"> | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineStore } from "pinia"; | |
export let useTeamStore = defineStore('team', { | |
state: () => ({ | |
name: '', | |
spots: 0, | |
members: [] | |
}), | |
actions: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineStore } from "pinia"; | |
export let useCounterStore = defineStore('counter', { | |
// data | |
state() { | |
return { | |
count: 5 | |
}; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
import {counter} from "@/stores/counterStore"; | |
</script> | |
<template> | |
<div> | |
<h1>{{ counter.count }}</h1> | |
<button @click="counter.increment()">Increment</button> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<h5>{{ state.name }}</h5> | |
</div> | |
</template> | |
<script setup> | |
import {state} from "@/stores/quizStore"; | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
import TabbableTextarea from "@/components/TabbableTextarea.vue"; | |
import { ref } from "vue"; | |
let comment = ref('initial textarea value'); | |
</script> | |
<template> | |
<main> | |
<form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
import { useStorage } from "@/composables/useStorage"; | |
let food = useStorage('food', 'tacos'); | |
</script> | |
<template> | |
<main> | |
<p> | |
What is your favorite food? <input type="text" v-model="food"> |