chore: remove boilerplate demo content, fix components.json
Drop the unrecognized `framework` key from components.json (current shadcn-vue CLI rejects it). Delete the counter store demo and reduce HomeView to a placeholder; real content lands in a later commit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0a8ef64527
commit
b751e26eec
3 changed files with 3 additions and 39 deletions
|
|
@ -9,7 +9,6 @@
|
||||||
"cssVariables": true,
|
"cssVariables": true,
|
||||||
"prefix": ""
|
"prefix": ""
|
||||||
},
|
},
|
||||||
"framework": "vite",
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
"components": "@/components",
|
"components": "@/components",
|
||||||
"composables": "@/composables",
|
"composables": "@/composables",
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import { defineStore } from 'pinia'
|
|
||||||
import { computed, ref } from 'vue'
|
|
||||||
|
|
||||||
export const useCounterStore = defineStore('counter', () => {
|
|
||||||
const count = ref(0)
|
|
||||||
const double = computed(() => count.value * 2)
|
|
||||||
function increment() {
|
|
||||||
count.value++
|
|
||||||
}
|
|
||||||
return { count, double, increment }
|
|
||||||
})
|
|
||||||
|
|
@ -1,32 +1,8 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts"></script>
|
||||||
import { useI18n } from 'vue-i18n'
|
|
||||||
import { useCounterStore } from '@/stores/counter'
|
|
||||||
|
|
||||||
const { t, locale } = useI18n()
|
|
||||||
const counter = useCounterStore()
|
|
||||||
|
|
||||||
function toggleLocale() {
|
|
||||||
locale.value = locale.value === 'en' ? 'es' : 'en'
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<main class="mx-auto max-w-2xl space-y-6 p-8">
|
<main class="mx-auto max-w-2xl space-y-6 p-8">
|
||||||
<h1 class="text-3xl font-bold">{{ t('home.heading') }}</h1>
|
<h1 class="text-3xl font-bold">Earth Walker Design</h1>
|
||||||
<p class="text-muted-foreground">{{ t('home.intro') }}</p>
|
<p class="text-muted-foreground">Home view — content arriving in a later commit.</p>
|
||||||
|
|
||||||
<div class="space-y-2">
|
|
||||||
<p>{{ t('home.counter', { n: counter.count }) }}</p>
|
|
||||||
<button
|
|
||||||
class="rounded-md bg-primary px-4 py-2 text-primary-foreground hover:opacity-90"
|
|
||||||
@click="counter.increment"
|
|
||||||
>
|
|
||||||
{{ t('home.increment') }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button class="text-sm underline" @click="toggleLocale">
|
|
||||||
Switch to {{ locale === 'en' ? 'Español' : 'English' }}
|
|
||||||
</button>
|
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue