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:
parent
4a3d2012be
commit
c284ad5778
16 changed files with 23 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue