diff --git a/app/app.config.ts b/app/app.config.ts index be62ff5..be18ccc 100644 --- a/app/app.config.ts +++ b/app/app.config.ts @@ -1,6 +1,6 @@ export default defineAppConfig({ ui: { - gray: 'neutral', + gray: 'zinc', primary: 'red', container: { constrained: 'max-w-xl', diff --git a/app/app.vue b/app/app.vue index 3e75e9e..16db4bb 100644 --- a/app/app.vue +++ b/app/app.vue @@ -6,19 +6,19 @@ useHead({ title: 'Spanish Learning Process • By Arthur Danjou', }) -const { data: verb, refresh: refreshVerb } = await useAsyncData('verb', async () => $fetch('/api/verb')) -const { data: word, refresh: refreshWord } = await useAsyncData('word', async () => $fetch('/api/word')) +const { data: verb, refresh: refreshVerbData } = await useAsyncData('verb', async () => $fetch('/api/verb')) +const { data: word, refresh: refreshWordData } = await useAsyncData('word', async () => $fetch('/api/word')) const revealedVerb = ref(false) -async function revealVerb() { +async function refreshVerb() { revealedVerb.value = false - await refreshVerb() + await refreshVerbData() } const revealedWord = ref(false) -async function revealWord() { +async function refreshWord() { revealedWord.value = false - await refreshWord() + await refreshWordData() } @@ -46,18 +46,18 @@ async function revealWord() {

- Traducion: + Traduccion:

-

+

{{ verb.translation }}

@@ -78,20 +78,20 @@ async function revealWord() { {{ word.type }} -
+

- Tradución: + Traducción:

-

+

{{ word.translation }}