import os apps = [ ("payment-dashboard", "Payment Dashboard", 3002), ("customer-directory", "Customer Directory", 3003), ("customer-detail", "Customer Detail", 3004), ("inventory-manager", "Inventory Manager", 3005), ("product-catalog", "Product Catalog", 3006), ("employee-schedule", "Employee Schedule", 3007), ("shift-manager", "Shift Manager", 3008), ("discount-manager", "Discount Manager", 3009), ("tax-configuration", "Tax Configuration", 3010), ("sales-analytics", "Sales Analytics", 3011), ("refund-manager", "Refund Manager", 3012), ("device-manager", "Device Manager", 3013), ("merchant-settings", "Merchant Settings", 3014), ] base_dir = "src/ui/react-app/src/apps" for app_slug, app_title, port in apps: app_dir = f"{base_dir}/{app_slug}" component_name = "".join(word.capitalize() for word in app_slug.split("-")) # Create App.tsx app_tsx = f'''import React from 'react'; export default function {component_name}() {{ return (
Manage your {app_slug.replace("-", " ")}
This application provides comprehensive {app_slug.replace("-", " ")} management for Clover POS.