Remove legacy compatibility layer and enforce modular architecture

- Delete src/stores/market.ts compatibility re-export file
- Update 15 files to import from proper module path @/modules/market/stores/market
- Add necessary type exports to market store for external consumers
- Remove empty src/stores/ directory completely
- Enforce clean modular architecture without global store shortcuts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
padreug 2025-09-07 02:30:37 +02:00
parent 4a3d2012be
commit c284ad5778
16 changed files with 23 additions and 21 deletions

View file

@ -143,7 +143,7 @@ import { ref, computed } from 'vue'
import { useRouter } from 'vue-router'
import { Button } from '@/components/ui/button'
import { Shield } from 'lucide-vue-next'
import type { ShippingZone } from '@/stores/market'
import type { ShippingZone } from '@/modules/market/stores/market'
interface Props {
stallId: string

View file

@ -301,7 +301,7 @@
<script setup lang="ts">
import { ref, computed, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { useMarketStore } from '@/stores/market'
import { useMarketStore } from '@/modules/market/stores/market'
import { Button } from '@/components/ui/button'
import { Badge } from '@/components/ui/badge'
import {
@ -319,7 +319,7 @@ import {
Settings,
BarChart3
} from 'lucide-vue-next'
import type { OrderStatus } from '@/stores/market'
import type { OrderStatus } from '@/modules/market/stores/market'
import type { NostrmarketService } from '../services/nostrmarketService'
import { auth } from '@/composables/useAuthService'
import { injectService, SERVICE_TOKENS } from '@/core/di-container'

View file

@ -253,7 +253,7 @@ import { Button } from '@/components/ui/button'
import { Badge } from '@/components/ui/badge'
import { Package, Store, Zap, Copy, QrCode, CheckCircle } from 'lucide-vue-next'
import { toast } from 'vue-sonner'
import type { OrderStatus } from '@/stores/market'
import type { OrderStatus } from '@/modules/market/stores/market'
// Order type no longer needed since we use any for readonly compatibility
const router = useRouter()

View file

@ -188,7 +188,7 @@ import {
Info,
CheckCircle
} from 'lucide-vue-next'
import { useMarketStore } from '@/stores/market'
import { useMarketStore } from '@/modules/market/stores/market'
import QRCode from 'qrcode'

View file

@ -101,12 +101,12 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useMarketStore } from '@/stores/market'
import { useMarketStore } from '@/modules/market/stores/market'
import { Card, CardContent, CardFooter, CardTitle } from '@/components/ui/card'
import { Button } from '@/components/ui/button'
import { Badge } from '@/components/ui/badge'
import { ShoppingCart } from 'lucide-vue-next'
import type { Product } from '@/stores/market'
import type { Product } from '@/modules/market/stores/market'
interface Props {
product: Product

View file

@ -183,7 +183,7 @@
<script setup lang="ts">
import { computed } from 'vue'
import { useRouter } from 'vue-router'
import { useMarketStore } from '@/stores/market'
import { useMarketStore } from '@/modules/market/stores/market'
import { Button } from '@/components/ui/button'
import {
ShoppingCart,