diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.ts index 30086be..d7003a0 100644 --- a/frontend/src/types/index.ts +++ b/frontend/src/types/index.ts @@ -225,6 +225,27 @@ export interface WebstoreTransaction { created_at: string } +// Module Store types +export interface Module { + id: string + slug: string + name: string + description: string + price: number + category: string + preview_image_url: string + screenshots: string[] + features: string[] + version: string + is_purchased: boolean + is_installed: boolean +} + +export interface PurchaseRequest { + module_id: string + license_id: string +} + // Analytics types export interface AnalyticsSummary { peak_players: number diff --git a/frontend/src/views/admin/ModuleStoreView.vue b/frontend/src/views/admin/ModuleStoreView.vue index 55b8983..ed4fe1c 100644 --- a/frontend/src/views/admin/ModuleStoreView.vue +++ b/frontend/src/views/admin/ModuleStoreView.vue @@ -1,54 +1,153 @@