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:
Padreug 2026-05-27 11:10:16 +02:00
commit b751e26eec
3 changed files with 3 additions and 39 deletions

View file

@ -9,7 +9,6 @@
"cssVariables": true,
"prefix": ""
},
"framework": "vite",
"aliases": {
"components": "@/components",
"composables": "@/composables",

View file

@ -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 }
})

View file

@ -1,32 +1,8 @@
<script setup lang="ts">
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>
<script setup lang="ts"></script>
<template>
<main class="mx-auto max-w-2xl space-y-6 p-8">
<h1 class="text-3xl font-bold">{{ t('home.heading') }}</h1>
<p class="text-muted-foreground">{{ t('home.intro') }}</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>
<h1 class="text-3xl font-bold">Earth Walker Design</h1>
<p class="text-muted-foreground">Home view content arriving in a later commit.</p>
</main>
</template>