@promakeai/cli 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/index.js +209 -415
  2. package/dist/registry/about-page.json +3 -3
  3. package/dist/registry/about-section.json +4 -4
  4. package/dist/registry/animations.json +2 -2
  5. package/dist/registry/announcement-bar.json +4 -4
  6. package/dist/registry/api.json +1 -1
  7. package/dist/registry/auth-core.json +3 -3
  8. package/dist/registry/bento-grid-section.json +4 -4
  9. package/dist/registry/blog-core.json +5 -5
  10. package/dist/registry/blog-list-page.json +3 -3
  11. package/dist/registry/blog-section.json +4 -4
  12. package/dist/registry/cards-carousel-section.json +4 -4
  13. package/dist/registry/cart-drawer.json +3 -3
  14. package/dist/registry/cart-page.json +3 -3
  15. package/dist/registry/case-study-page.json +3 -3
  16. package/dist/registry/category-section.json +3 -3
  17. package/dist/registry/checkout-page.json +3 -3
  18. package/dist/registry/coming-soon-page-minimal.json +4 -4
  19. package/dist/registry/coming-soon-page.json +4 -4
  20. package/dist/registry/contact-info-grid.json +4 -4
  21. package/dist/registry/contact-page-centered.json +4 -4
  22. package/dist/registry/contact-page-split.json +4 -4
  23. package/dist/registry/contact-page.json +3 -3
  24. package/dist/registry/content-section.json +4 -4
  25. package/dist/registry/cookie-consent.json +4 -4
  26. package/dist/registry/cookies-page.json +3 -3
  27. package/dist/registry/cta-section.json +3 -3
  28. package/dist/registry/ecommerce-core.json +10 -10
  29. package/dist/registry/empty-page.json +3 -3
  30. package/dist/registry/faq-categorized.json +4 -4
  31. package/dist/registry/faq-simple.json +4 -4
  32. package/dist/registry/favorites-blog-block.json +1 -1
  33. package/dist/registry/favorites-blog-page.json +4 -4
  34. package/dist/registry/favorites-ecommerce-block.json +1 -1
  35. package/dist/registry/favorites-ecommerce-page.json +4 -4
  36. package/dist/registry/feature-section.json +3 -3
  37. package/dist/registry/featured-products.json +3 -3
  38. package/dist/registry/footer-detailed.json +4 -4
  39. package/dist/registry/footer-minimal.json +3 -3
  40. package/dist/registry/footer.json +3 -3
  41. package/dist/registry/forgot-password-page-split.json +4 -4
  42. package/dist/registry/forgot-password-page.json +4 -4
  43. package/dist/registry/google-adsense.json +4 -4
  44. package/dist/registry/google-map.json +2 -2
  45. package/dist/registry/header-centered-pill.json +4 -4
  46. package/dist/registry/header-ecommerce.json +3 -3
  47. package/dist/registry/header-mega.json +4 -4
  48. package/dist/registry/header-minimal.json +4 -4
  49. package/dist/registry/header-simple.json +3 -3
  50. package/dist/registry/hero-carousel.json +3 -3
  51. package/dist/registry/hero-cta.json +4 -4
  52. package/dist/registry/hero-gradient.json +4 -4
  53. package/dist/registry/hero-grid.json +4 -4
  54. package/dist/registry/hero-profile.json +3 -3
  55. package/dist/registry/hero.json +3 -3
  56. package/dist/registry/landing-page-app.json +3 -3
  57. package/dist/registry/landing-page-saas.json +3 -3
  58. package/dist/registry/login-page-split.json +4 -4
  59. package/dist/registry/login-page.json +4 -4
  60. package/dist/registry/logo-cloud.json +4 -4
  61. package/dist/registry/masonry-grid.json +3 -3
  62. package/dist/registry/my-orders-page.json +4 -4
  63. package/dist/registry/newsletter-section.json +4 -4
  64. package/dist/registry/order-card-compact.json +1 -1
  65. package/dist/registry/order-confirmation-page.json +4 -4
  66. package/dist/registry/order-detail-block.json +1 -1
  67. package/dist/registry/orders-list-block.json +1 -1
  68. package/dist/registry/payment-success-block.json +1 -1
  69. package/dist/registry/portfolio-page.json +4 -4
  70. package/dist/registry/post-card.json +3 -3
  71. package/dist/registry/post-detail-block.json +1 -1
  72. package/dist/registry/post-detail-page.json +4 -4
  73. package/dist/registry/pricing-card.json +3 -3
  74. package/dist/registry/pricing-page.json +4 -4
  75. package/dist/registry/pricing-section.json +4 -4
  76. package/dist/registry/privacy-page.json +3 -3
  77. package/dist/registry/product-card-detailed.json +4 -4
  78. package/dist/registry/product-card-hover.json +4 -4
  79. package/dist/registry/product-card.json +3 -3
  80. package/dist/registry/product-detail-block.json +1 -1
  81. package/dist/registry/product-detail-page.json +4 -4
  82. package/dist/registry/product-detail-section.json +4 -4
  83. package/dist/registry/product-quick-view.json +4 -4
  84. package/dist/registry/products-page.json +3 -3
  85. package/dist/registry/reading-progress.json +4 -4
  86. package/dist/registry/register-page-split.json +4 -4
  87. package/dist/registry/register-page.json +4 -4
  88. package/dist/registry/related-posts-block.json +1 -1
  89. package/dist/registry/related-products-block.json +1 -1
  90. package/dist/registry/reset-password-page-split.json +4 -4
  91. package/dist/registry/service-card.json +1 -1
  92. package/dist/registry/share-buttons.json +4 -4
  93. package/dist/registry/skill-card.json +1 -1
  94. package/dist/registry/team-page.json +4 -4
  95. package/dist/registry/terms-page.json +3 -3
  96. package/dist/registry/testimonials-carousel.json +4 -4
  97. package/dist/registry/testimonials-grid.json +4 -4
  98. package/dist/registry/timeline-section.json +4 -4
  99. package/dist/registry/video-hero.json +4 -4
  100. package/dist/registry/youtube-embed.json +4 -4
  101. package/package.json +2 -2
  102. package/template/.env +6 -6
  103. package/template/public/_redirects +1 -1
  104. package/template/public/robots.txt +14 -14
  105. package/template/src/components/GoogleAnalytics.tsx +34 -34
  106. package/template/src/components/LanguageSwitcher.tsx +53 -53
  107. package/template/src/components/ScriptInjector.tsx +62 -62
  108. package/template/src/lib/env.ts +19 -19
  109. package/template/src/router.tsx +14 -14
  110. package/template/src/vite-env.d.ts +1 -1
  111. package/dist/registry/auth.json +0 -70
  112. package/dist/registry/docs/reset-password-page.md +0 -36
  113. package/dist/registry/reset-password-page.json +0 -39
@@ -12,25 +12,25 @@
12
12
  "path": "faq-categorized/index.ts",
13
13
  "type": "registry:index",
14
14
  "target": "$modules$/faq-categorized/index.ts",
15
- "content": "export * from './faq-categorized';\r\n"
15
+ "content": "export * from './faq-categorized';\n"
16
16
  },
17
17
  {
18
18
  "path": "faq-categorized/faq-categorized.tsx",
19
19
  "type": "registry:component",
20
20
  "target": "$modules$/faq-categorized/faq-categorized.tsx",
21
- "content": "import { useTranslation } from \"react-i18next\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport {\r\n Accordion,\r\n AccordionContent,\r\n AccordionItem,\r\n AccordionTrigger,\r\n} from \"@/components/ui/accordion\";\r\n\r\ninterface FaqCategorizedProps {\r\n className?: string;\r\n}\r\n\r\nexport function FaqCategorized({ className }: FaqCategorizedProps) {\r\n const { t } = useTranslation(\"faq-categorized\");\r\n\r\n const categories = [\r\n {\r\n title: t(\"generalTitle\", \"General\"),\r\n items: [\r\n {\r\n question: t(\"general1Q\", \"What is this platform?\"),\r\n answer: t(\"general1A\", \"Our platform is a comprehensive solution for building modern web applications. It provides tools, components, and infrastructure to help you ship faster.\"),\r\n },\r\n {\r\n question: t(\"general2Q\", \"How do I get started?\"),\r\n answer: t(\"general2A\", \"Getting started is easy! Sign up for a free account, follow our quick start guide, and you'll be up and running in minutes.\"),\r\n },\r\n {\r\n question: t(\"general3Q\", \"Is there a free trial?\"),\r\n answer: t(\"general3A\", \"Yes, we offer a 14-day free trial with full access to all features. No credit card required to start.\"),\r\n },\r\n ],\r\n },\r\n {\r\n title: t(\"billingTitle\", \"Billing\"),\r\n items: [\r\n {\r\n question: t(\"billing1Q\", \"What payment methods do you accept?\"),\r\n answer: t(\"billing1A\", \"We accept all major credit cards (Visa, MasterCard, American Express), PayPal, and bank transfers for annual plans.\"),\r\n },\r\n {\r\n question: t(\"billing2Q\", \"Can I change my plan later?\"),\r\n answer: t(\"billing2A\", \"Absolutely! You can upgrade or downgrade your plan at any time. Changes take effect immediately, and we'll prorate the difference.\"),\r\n },\r\n {\r\n question: t(\"billing3Q\", \"Do you offer refunds?\"),\r\n answer: t(\"billing3A\", \"Yes, we offer a 30-day money-back guarantee. If you're not satisfied within the first 30 days, we'll issue a full refund.\"),\r\n },\r\n ],\r\n },\r\n {\r\n title: t(\"technicalTitle\", \"Technical\"),\r\n items: [\r\n {\r\n question: t(\"technical1Q\", \"What technologies do you support?\"),\r\n answer: t(\"technical1A\", \"We support React, Vue, Angular, and vanilla JavaScript. Our APIs are RESTful and work with any backend technology.\"),\r\n },\r\n {\r\n question: t(\"technical2Q\", \"Is there an API available?\"),\r\n answer: t(\"technical2A\", \"Yes, we provide a comprehensive REST API with detailed documentation, SDKs for popular languages, and webhook support.\"),\r\n },\r\n {\r\n question: t(\"technical3Q\", \"How is my data protected?\"),\r\n answer: t(\"technical3A\", \"We use industry-standard encryption (AES-256 at rest, TLS 1.3 in transit), regular security audits, and comply with SOC 2 and GDPR requirements.\"),\r\n },\r\n ],\r\n },\r\n ];\r\n\r\n return (\r\n <section className={cn(\"py-16 md:py-24\", className)}>\r\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4\">\r\n <div className=\"text-center mb-12\">\r\n <h2 className=\"text-3xl font-bold md:text-4xl mb-4\">\r\n {t(\"title\", \"Frequently Asked Questions\")}\r\n </h2>\r\n <p className=\"text-muted-foreground max-w-2xl mx-auto\">\r\n {t(\"subtitle\", \"Browse through our categorized FAQ to find answers to your questions.\")}\r\n </p>\r\n </div>\r\n\r\n <div className=\"grid md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-6xl mx-auto\">\r\n {categories.map((category, categoryIndex) => (\r\n <div key={categoryIndex}>\r\n <h3 className=\"font-semibold text-lg mb-4 text-primary\">\r\n {category.title}\r\n </h3>\r\n <Accordion type=\"single\" collapsible className=\"w-full\">\r\n {category.items.map((item, itemIndex) => (\r\n <AccordionItem\r\n key={itemIndex}\r\n value={`${categoryIndex}-${itemIndex}`}\r\n >\r\n <AccordionTrigger className=\"text-left text-sm font-medium hover:no-underline\">\r\n {item.question}\r\n </AccordionTrigger>\r\n <AccordionContent className=\"text-sm text-muted-foreground\">\r\n {item.answer}\r\n </AccordionContent>\r\n </AccordionItem>\r\n ))}\r\n </Accordion>\r\n </div>\r\n ))}\r\n </div>\r\n </div>\r\n </section>\r\n );\r\n}\r\n"
21
+ "content": "import { useTranslation } from \"react-i18next\";\nimport { cn } from \"@/lib/utils\";\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"@/components/ui/accordion\";\n\ninterface FaqCategorizedProps {\n className?: string;\n}\n\nexport function FaqCategorized({ className }: FaqCategorizedProps) {\n const { t } = useTranslation(\"faq-categorized\");\n\n const categories = [\n {\n title: t(\"generalTitle\", \"General\"),\n items: [\n {\n question: t(\"general1Q\", \"What is this platform?\"),\n answer: t(\"general1A\", \"Our platform is a comprehensive solution for building modern web applications. It provides tools, components, and infrastructure to help you ship faster.\"),\n },\n {\n question: t(\"general2Q\", \"How do I get started?\"),\n answer: t(\"general2A\", \"Getting started is easy! Sign up for a free account, follow our quick start guide, and you'll be up and running in minutes.\"),\n },\n {\n question: t(\"general3Q\", \"Is there a free trial?\"),\n answer: t(\"general3A\", \"Yes, we offer a 14-day free trial with full access to all features. No credit card required to start.\"),\n },\n ],\n },\n {\n title: t(\"billingTitle\", \"Billing\"),\n items: [\n {\n question: t(\"billing1Q\", \"What payment methods do you accept?\"),\n answer: t(\"billing1A\", \"We accept all major credit cards (Visa, MasterCard, American Express), PayPal, and bank transfers for annual plans.\"),\n },\n {\n question: t(\"billing2Q\", \"Can I change my plan later?\"),\n answer: t(\"billing2A\", \"Absolutely! You can upgrade or downgrade your plan at any time. Changes take effect immediately, and we'll prorate the difference.\"),\n },\n {\n question: t(\"billing3Q\", \"Do you offer refunds?\"),\n answer: t(\"billing3A\", \"Yes, we offer a 30-day money-back guarantee. If you're not satisfied within the first 30 days, we'll issue a full refund.\"),\n },\n ],\n },\n {\n title: t(\"technicalTitle\", \"Technical\"),\n items: [\n {\n question: t(\"technical1Q\", \"What technologies do you support?\"),\n answer: t(\"technical1A\", \"We support React, Vue, Angular, and vanilla JavaScript. Our APIs are RESTful and work with any backend technology.\"),\n },\n {\n question: t(\"technical2Q\", \"Is there an API available?\"),\n answer: t(\"technical2A\", \"Yes, we provide a comprehensive REST API with detailed documentation, SDKs for popular languages, and webhook support.\"),\n },\n {\n question: t(\"technical3Q\", \"How is my data protected?\"),\n answer: t(\"technical3A\", \"We use industry-standard encryption (AES-256 at rest, TLS 1.3 in transit), regular security audits, and comply with SOC 2 and GDPR requirements.\"),\n },\n ],\n },\n ];\n\n return (\n <section className={cn(\"py-16 md:py-24\", className)}>\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4\">\n <div className=\"text-center mb-12\">\n <h2 className=\"text-3xl font-bold md:text-4xl mb-4\">\n {t(\"title\", \"Frequently Asked Questions\")}\n </h2>\n <p className=\"text-muted-foreground max-w-2xl mx-auto\">\n {t(\"subtitle\", \"Browse through our categorized FAQ to find answers to your questions.\")}\n </p>\n </div>\n\n <div className=\"grid md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-6xl mx-auto\">\n {categories.map((category, categoryIndex) => (\n <div key={categoryIndex}>\n <h3 className=\"font-semibold text-lg mb-4 text-primary\">\n {category.title}\n </h3>\n <Accordion type=\"single\" collapsible className=\"w-full\">\n {category.items.map((item, itemIndex) => (\n <AccordionItem\n key={itemIndex}\n value={`${categoryIndex}-${itemIndex}`}\n >\n <AccordionTrigger className=\"text-left text-sm font-medium hover:no-underline\">\n {item.question}\n </AccordionTrigger>\n <AccordionContent className=\"text-sm text-muted-foreground\">\n {item.answer}\n </AccordionContent>\n </AccordionItem>\n ))}\n </Accordion>\n </div>\n ))}\n </div>\n </div>\n </section>\n );\n}\n"
22
22
  },
23
23
  {
24
24
  "path": "faq-categorized/lang/en.json",
25
25
  "type": "registry:lang",
26
26
  "target": "$modules$/faq-categorized/lang/en.json",
27
- "content": "{\r\n \"title\": \"Frequently Asked Questions\",\r\n \"subtitle\": \"This introductory text helps visitors navigate your categorized FAQs. Explain how the categories are organized, encourage visitors to explore relevant sections, or mention that you're available for additional questions. Use Promake to create a helpful guide to your FAQ structure.\",\r\n \"generalTitle\": \"General\",\r\n \"general1Q\": \"Replace this with your first general question\",\r\n \"general1A\": \"Provide a comprehensive answer to this general question. Include key information that helps visitors understand your offering at a high level. Use Promake to customize with specific details that address common initial questions about what you do and how it works.\",\r\n \"general2Q\": \"This is a placeholder question that needs customization\",\r\n \"general2A\": \"Give a clear, informative answer that provides value to visitors with general questions. Be thorough but accessible. Use Promake to add information that helps newcomers understand your offering and its benefits.\",\r\n \"general3Q\": \"Customize this question for your FAQ section\",\r\n \"general3A\": \"Offer a detailed response that addresses this general aspect of your offering. Include relevant context and examples. Use Promake to ensure this answer helps visitors understand the fundamentals of what you provide.\",\r\n \"billingTitle\": \"Billing\",\r\n \"billing1Q\": \"Replace with your billing-related question\",\r\n \"billing1A\": \"Provide clear information about your billing practices, payment methods, or pricing structure. Be transparent and specific about costs, payment terms, and any relevant policies. Use Promake to add details that help customers understand your billing process.\",\r\n \"billing2Q\": \"This question should be replaced with real billing FAQ\",\r\n \"billing2A\": \"Explain billing-related policies, procedures, or options in detail. Address common concerns about payments, refunds, or invoicing. Use Promake to provide accurate information that builds trust in your billing practices.\",\r\n \"billing3Q\": \"Customize this billing question\",\r\n \"billing3A\": \"Give a thorough answer about billing or payment matters. Include important details about pricing tiers, payment schedules, or billing support. Use Promake to ensure customers have all the billing information they need.\",\r\n \"technicalTitle\": \"Technical\",\r\n \"technical1Q\": \"Replace with your technical question\",\r\n \"technical1A\": \"Provide technical information that helps users understand system requirements, compatibility, or implementation details. Be specific but avoid unnecessary jargon. Use Promake to add technical details that are relevant and helpful to your users.\",\r\n \"technical2Q\": \"This is a placeholder technical question\",\r\n \"technical2A\": \"Explain technical aspects in a way that's accessible to your audience. Include specific details about features, integrations, or technical capabilities. Use Promake to customize with technical information that addresses common questions.\",\r\n \"technical3Q\": \"Customize this final technical question\",\r\n \"technical3A\": \"Give a detailed technical answer that provides the specific information users need. Include relevant specifications, limitations, or technical support options. Use Promake to ensure technical questions are answered thoroughly and accurately.\"\r\n}"
27
+ "content": "{\n \"title\": \"Frequently Asked Questions\",\n \"subtitle\": \"This introductory text helps visitors navigate your categorized FAQs. Explain how the categories are organized, encourage visitors to explore relevant sections, or mention that you're available for additional questions. Use Promake to create a helpful guide to your FAQ structure.\",\n \"generalTitle\": \"General\",\n \"general1Q\": \"Replace this with your first general question\",\n \"general1A\": \"Provide a comprehensive answer to this general question. Include key information that helps visitors understand your offering at a high level. Use Promake to customize with specific details that address common initial questions about what you do and how it works.\",\n \"general2Q\": \"This is a placeholder question that needs customization\",\n \"general2A\": \"Give a clear, informative answer that provides value to visitors with general questions. Be thorough but accessible. Use Promake to add information that helps newcomers understand your offering and its benefits.\",\n \"general3Q\": \"Customize this question for your FAQ section\",\n \"general3A\": \"Offer a detailed response that addresses this general aspect of your offering. Include relevant context and examples. Use Promake to ensure this answer helps visitors understand the fundamentals of what you provide.\",\n \"billingTitle\": \"Billing\",\n \"billing1Q\": \"Replace with your billing-related question\",\n \"billing1A\": \"Provide clear information about your billing practices, payment methods, or pricing structure. Be transparent and specific about costs, payment terms, and any relevant policies. Use Promake to add details that help customers understand your billing process.\",\n \"billing2Q\": \"This question should be replaced with real billing FAQ\",\n \"billing2A\": \"Explain billing-related policies, procedures, or options in detail. Address common concerns about payments, refunds, or invoicing. Use Promake to provide accurate information that builds trust in your billing practices.\",\n \"billing3Q\": \"Customize this billing question\",\n \"billing3A\": \"Give a thorough answer about billing or payment matters. Include important details about pricing tiers, payment schedules, or billing support. Use Promake to ensure customers have all the billing information they need.\",\n \"technicalTitle\": \"Technical\",\n \"technical1Q\": \"Replace with your technical question\",\n \"technical1A\": \"Provide technical information that helps users understand system requirements, compatibility, or implementation details. Be specific but avoid unnecessary jargon. Use Promake to add technical details that are relevant and helpful to your users.\",\n \"technical2Q\": \"This is a placeholder technical question\",\n \"technical2A\": \"Explain technical aspects in a way that's accessible to your audience. Include specific details about features, integrations, or technical capabilities. Use Promake to customize with technical information that addresses common questions.\",\n \"technical3Q\": \"Customize this final technical question\",\n \"technical3A\": \"Give a detailed technical answer that provides the specific information users need. Include relevant specifications, limitations, or technical support options. Use Promake to ensure technical questions are answered thoroughly and accurately.\"\n}"
28
28
  },
29
29
  {
30
30
  "path": "faq-categorized/lang/tr.json",
31
31
  "type": "registry:lang",
32
32
  "target": "$modules$/faq-categorized/lang/tr.json",
33
- "content": "{\r\n \"title\": \"Sıkça Sorulan Sorular\",\r\n \"subtitle\": \"Bu giriş metni ziyaretçilerin kategorize edilmiş SSS'lerinizde gezinmesine yardımcı olur. Kategorilerin nasıl düzenlendiğini açıklayın, ziyaretçileri ilgili bölümleri keşfetmeye teşvik edin veya ek sorular için müsait olduğunuzdan bahsedin. Promake ile SSS yapınıza yardımcı bir rehber oluşturun.\",\r\n \"generalTitle\": \"Genel\",\r\n \"general1Q\": \"Bunu ilk genel sorunuzla değiştirin\",\r\n \"general1A\": \"Bu genel soruya kapsamlı bir cevap verin. Ziyaretçilerin teklifinizi genel düzeyde anlamalarına yardımcı olacak temel bilgileri ekleyin. Promake ile ne yaptığınız ve nasıl çalıştığı hakkındaki yaygın başlangıç sorularını ele alan özel detaylarla özelleştirin.\",\r\n \"general2Q\": \"Bu özelleştirilmesi gereken bir placeholder sorudur\",\r\n \"general2A\": \"Genel sorular olan ziyaretçilere değer sağlayan açık ve bilgilendirici bir cevap verin. Kapsamlı ama anlaşılır olun. Promake ile yeni gelenlerin teklifinizi ve faydalarını anlamalarına yardımcı olan bilgiler ekleyin.\",\r\n \"general3Q\": \"Bu soruyu SSS bölümünüz için özelleştirin\",\r\n \"general3A\": \"Teklifinizin bu genel yönünü ele alan detaylı bir yanıt sunun. İlgili bağlam ve örnekler ekleyin. Promake ile bu cevabın ziyaretçilerin sağladığınız şeyin temellerini anlamalarına yardımcı olduğundan emin olun.\",\r\n \"billingTitle\": \"Faturalama\",\r\n \"billing1Q\": \"Faturalama ile ilgili sorunuzla değiştirin\",\r\n \"billing1A\": \"Faturalama uygulamalarınız, ödeme yöntemleriniz veya fiyatlandırma yapınız hakkında açık bilgi sağlayın. Maliyetler, ödeme koşulları ve ilgili politikalar konusunda şeffaf ve spesifik olun. Promake ile müşterilerin faturalama sürecinizi anlamalarına yardımcı olan detaylar ekleyin.\",\r\n \"billing2Q\": \"Bu soru gerçek faturalama SSS'si ile değiştirilmelidir\",\r\n \"billing2A\": \"Faturalandırmayla ilgili politikaları, prosedürleri veya seçenekleri detaylı açıklayın. Ödemeler, iadeler veya faturalandırma hakkındaki yaygın endişeleri ele alın. Promake ile faturalama uygulamalarınıza güven oluşturan doğru bilgiler sağlayın.\",\r\n \"billing3Q\": \"Bu faturalama sorusunu özelleştirin\",\r\n \"billing3A\": \"Faturalama veya ödeme konuları hakkında kapsamlı bir cevap verin. Fiyatlandırma katmanları, ödeme programları veya faturalama desteği hakkında önemli detayları ekleyin. Promake ile müşterilerin ihtiyaç duydukları tüm faturalama bilgilerine sahip olduklarından emin olun.\",\r\n \"technicalTitle\": \"Teknik\",\r\n \"technical1Q\": \"Teknik sorunuzla değiştirin\",\r\n \"technical1A\": \"Kullanıcıların sistem gereksinimlerini, uyumluluğu veya uygulama detaylarını anlamalarına yardımcı olan teknik bilgiler sağlayın. Spesifik olun ama gereksiz jargondan kaçının. Promake ile kullanıcılarınız için alakalı ve yardımcı olan teknik detaylar ekleyin.\",\r\n \"technical2Q\": \"Bu bir placeholder teknik sorudur\",\r\n \"technical2A\": \"Teknik yönleri hedef kitlenize erişilebilir bir şekilde açıklayın. Özellikler, entegrasyonlar veya teknik yetenekler hakkında özel detaylar ekleyin. Promake ile yaygın soruları ele alan teknik bilgilerle özelleştirin.\",\r\n \"technical3Q\": \"Bu son teknik soruyu özelleştirin\",\r\n \"technical3A\": \"Kullanıcıların ihtiyaç duyduğu özel bilgiyi sağlayan detaylı bir teknik cevap verin. İlgili özellikleri, sınırlamaları veya teknik destek seçeneklerini ekleyin. Promake ile teknik soruların kapsamlı ve doğru şekilde yanıtlandığından emin olun.\"\r\n}"
33
+ "content": "{\n \"title\": \"Sıkça Sorulan Sorular\",\n \"subtitle\": \"Bu giriş metni ziyaretçilerin kategorize edilmiş SSS'lerinizde gezinmesine yardımcı olur. Kategorilerin nasıl düzenlendiğini açıklayın, ziyaretçileri ilgili bölümleri keşfetmeye teşvik edin veya ek sorular için müsait olduğunuzdan bahsedin. Promake ile SSS yapınıza yardımcı bir rehber oluşturun.\",\n \"generalTitle\": \"Genel\",\n \"general1Q\": \"Bunu ilk genel sorunuzla değiştirin\",\n \"general1A\": \"Bu genel soruya kapsamlı bir cevap verin. Ziyaretçilerin teklifinizi genel düzeyde anlamalarına yardımcı olacak temel bilgileri ekleyin. Promake ile ne yaptığınız ve nasıl çalıştığı hakkındaki yaygın başlangıç sorularını ele alan özel detaylarla özelleştirin.\",\n \"general2Q\": \"Bu özelleştirilmesi gereken bir placeholder sorudur\",\n \"general2A\": \"Genel sorular olan ziyaretçilere değer sağlayan açık ve bilgilendirici bir cevap verin. Kapsamlı ama anlaşılır olun. Promake ile yeni gelenlerin teklifinizi ve faydalarını anlamalarına yardımcı olan bilgiler ekleyin.\",\n \"general3Q\": \"Bu soruyu SSS bölümünüz için özelleştirin\",\n \"general3A\": \"Teklifinizin bu genel yönünü ele alan detaylı bir yanıt sunun. İlgili bağlam ve örnekler ekleyin. Promake ile bu cevabın ziyaretçilerin sağladığınız şeyin temellerini anlamalarına yardımcı olduğundan emin olun.\",\n \"billingTitle\": \"Faturalama\",\n \"billing1Q\": \"Faturalama ile ilgili sorunuzla değiştirin\",\n \"billing1A\": \"Faturalama uygulamalarınız, ödeme yöntemleriniz veya fiyatlandırma yapınız hakkında açık bilgi sağlayın. Maliyetler, ödeme koşulları ve ilgili politikalar konusunda şeffaf ve spesifik olun. Promake ile müşterilerin faturalama sürecinizi anlamalarına yardımcı olan detaylar ekleyin.\",\n \"billing2Q\": \"Bu soru gerçek faturalama SSS'si ile değiştirilmelidir\",\n \"billing2A\": \"Faturalandırmayla ilgili politikaları, prosedürleri veya seçenekleri detaylı açıklayın. Ödemeler, iadeler veya faturalandırma hakkındaki yaygın endişeleri ele alın. Promake ile faturalama uygulamalarınıza güven oluşturan doğru bilgiler sağlayın.\",\n \"billing3Q\": \"Bu faturalama sorusunu özelleştirin\",\n \"billing3A\": \"Faturalama veya ödeme konuları hakkında kapsamlı bir cevap verin. Fiyatlandırma katmanları, ödeme programları veya faturalama desteği hakkında önemli detayları ekleyin. Promake ile müşterilerin ihtiyaç duydukları tüm faturalama bilgilerine sahip olduklarından emin olun.\",\n \"technicalTitle\": \"Teknik\",\n \"technical1Q\": \"Teknik sorunuzla değiştirin\",\n \"technical1A\": \"Kullanıcıların sistem gereksinimlerini, uyumluluğu veya uygulama detaylarını anlamalarına yardımcı olan teknik bilgiler sağlayın. Spesifik olun ama gereksiz jargondan kaçının. Promake ile kullanıcılarınız için alakalı ve yardımcı olan teknik detaylar ekleyin.\",\n \"technical2Q\": \"Bu bir placeholder teknik sorudur\",\n \"technical2A\": \"Teknik yönleri hedef kitlenize erişilebilir bir şekilde açıklayın. Özellikler, entegrasyonlar veya teknik yetenekler hakkında özel detaylar ekleyin. Promake ile yaygın soruları ele alan teknik bilgilerle özelleştirin.\",\n \"technical3Q\": \"Bu son teknik soruyu özelleştirin\",\n \"technical3A\": \"Kullanıcıların ihtiyaç duyduğu özel bilgiyi sağlayan detaylı bir teknik cevap verin. İlgili özellikleri, sınırlamaları veya teknik destek seçeneklerini ekleyin. Promake ile teknik soruların kapsamlı ve doğru şekilde yanıtlandığından emin olun.\"\n}"
34
34
  }
35
35
  ],
36
36
  "exports": {
@@ -12,25 +12,25 @@
12
12
  "path": "faq-simple/index.ts",
13
13
  "type": "registry:index",
14
14
  "target": "$modules$/faq-simple/index.ts",
15
- "content": "export * from './faq-simple';\r\n"
15
+ "content": "export * from './faq-simple';\n"
16
16
  },
17
17
  {
18
18
  "path": "faq-simple/faq-simple.tsx",
19
19
  "type": "registry:component",
20
20
  "target": "$modules$/faq-simple/faq-simple.tsx",
21
- "content": "import { useTranslation } from \"react-i18next\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport {\r\n Accordion,\r\n AccordionContent,\r\n AccordionItem,\r\n AccordionTrigger,\r\n} from \"@/components/ui/accordion\";\r\n\r\ninterface FaqSimpleProps {\r\n className?: string;\r\n}\r\n\r\nexport function FaqSimple({ className }: FaqSimpleProps) {\r\n const { t } = useTranslation(\"faq-simple\");\r\n\r\n const faqItems = [\r\n {\r\n id: \"faq-1\",\r\n question: t(\"q1\", \"What is included in the free plan?\"),\r\n answer: t(\"a1\", \"The free plan includes basic features such as up to 3 projects, 1GB storage, and email support. Perfect for individuals and small teams getting started.\"),\r\n },\r\n {\r\n id: \"faq-2\",\r\n question: t(\"q2\", \"Can I upgrade or downgrade my plan?\"),\r\n answer: t(\"a2\", \"Yes, you can upgrade or downgrade your plan at any time. Changes will be reflected in your next billing cycle. No penalties for switching plans.\"),\r\n },\r\n {\r\n id: \"faq-3\",\r\n question: t(\"q3\", \"How do I cancel my subscription?\"),\r\n answer: t(\"a3\", \"You can cancel your subscription from your account settings. Your access will continue until the end of your current billing period.\"),\r\n },\r\n {\r\n id: \"faq-4\",\r\n question: t(\"q4\", \"Is my data secure?\"),\r\n answer: t(\"a4\", \"Yes, we take security seriously. All data is encrypted at rest and in transit. We comply with industry standards and regularly undergo security audits.\"),\r\n },\r\n {\r\n id: \"faq-5\",\r\n question: t(\"q5\", \"Do you offer customer support?\"),\r\n answer: t(\"a5\", \"We offer 24/7 customer support via email and live chat. Premium plans also include phone support and dedicated account managers.\"),\r\n },\r\n {\r\n id: \"faq-6\",\r\n question: t(\"q6\", \"Can I get a refund?\"),\r\n answer: t(\"a6\", \"We offer a 30-day money-back guarantee for all paid plans. If you're not satisfied, contact our support team for a full refund.\"),\r\n },\r\n ];\r\n\r\n return (\r\n <section className={cn(\"py-16 md:py-24\", className)}>\r\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4 max-w-3xl\">\r\n <div className=\"text-center mb-12\">\r\n <h2 className=\"text-3xl font-bold md:text-4xl mb-4\">\r\n {t(\"title\", \"Frequently Asked Questions\")}\r\n </h2>\r\n <p className=\"text-muted-foreground\">\r\n {t(\"subtitle\", \"Find answers to common questions about our service.\")}\r\n </p>\r\n </div>\r\n\r\n <Accordion type=\"single\" collapsible className=\"w-full\">\r\n {faqItems.map((item, index) => (\r\n <AccordionItem key={item.id} value={`item-${index}`}>\r\n <AccordionTrigger className=\"text-left font-semibold hover:no-underline\">\r\n {item.question}\r\n </AccordionTrigger>\r\n <AccordionContent className=\"text-muted-foreground\">\r\n {item.answer}\r\n </AccordionContent>\r\n </AccordionItem>\r\n ))}\r\n </Accordion>\r\n </div>\r\n </section>\r\n );\r\n}\r\n"
21
+ "content": "import { useTranslation } from \"react-i18next\";\nimport { cn } from \"@/lib/utils\";\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n} from \"@/components/ui/accordion\";\n\ninterface FaqSimpleProps {\n className?: string;\n}\n\nexport function FaqSimple({ className }: FaqSimpleProps) {\n const { t } = useTranslation(\"faq-simple\");\n\n const faqItems = [\n {\n id: \"faq-1\",\n question: t(\"q1\", \"What is included in the free plan?\"),\n answer: t(\"a1\", \"The free plan includes basic features such as up to 3 projects, 1GB storage, and email support. Perfect for individuals and small teams getting started.\"),\n },\n {\n id: \"faq-2\",\n question: t(\"q2\", \"Can I upgrade or downgrade my plan?\"),\n answer: t(\"a2\", \"Yes, you can upgrade or downgrade your plan at any time. Changes will be reflected in your next billing cycle. No penalties for switching plans.\"),\n },\n {\n id: \"faq-3\",\n question: t(\"q3\", \"How do I cancel my subscription?\"),\n answer: t(\"a3\", \"You can cancel your subscription from your account settings. Your access will continue until the end of your current billing period.\"),\n },\n {\n id: \"faq-4\",\n question: t(\"q4\", \"Is my data secure?\"),\n answer: t(\"a4\", \"Yes, we take security seriously. All data is encrypted at rest and in transit. We comply with industry standards and regularly undergo security audits.\"),\n },\n {\n id: \"faq-5\",\n question: t(\"q5\", \"Do you offer customer support?\"),\n answer: t(\"a5\", \"We offer 24/7 customer support via email and live chat. Premium plans also include phone support and dedicated account managers.\"),\n },\n {\n id: \"faq-6\",\n question: t(\"q6\", \"Can I get a refund?\"),\n answer: t(\"a6\", \"We offer a 30-day money-back guarantee for all paid plans. If you're not satisfied, contact our support team for a full refund.\"),\n },\n ];\n\n return (\n <section className={cn(\"py-16 md:py-24\", className)}>\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4 max-w-3xl\">\n <div className=\"text-center mb-12\">\n <h2 className=\"text-3xl font-bold md:text-4xl mb-4\">\n {t(\"title\", \"Frequently Asked Questions\")}\n </h2>\n <p className=\"text-muted-foreground\">\n {t(\"subtitle\", \"Find answers to common questions about our service.\")}\n </p>\n </div>\n\n <Accordion type=\"single\" collapsible className=\"w-full\">\n {faqItems.map((item, index) => (\n <AccordionItem key={item.id} value={`item-${index}`}>\n <AccordionTrigger className=\"text-left font-semibold hover:no-underline\">\n {item.question}\n </AccordionTrigger>\n <AccordionContent className=\"text-muted-foreground\">\n {item.answer}\n </AccordionContent>\n </AccordionItem>\n ))}\n </Accordion>\n </div>\n </section>\n );\n}\n"
22
22
  },
23
23
  {
24
24
  "path": "faq-simple/lang/en.json",
25
25
  "type": "registry:lang",
26
26
  "target": "$modules$/faq-simple/lang/en.json",
27
- "content": "{\r\n \"title\": \"Frequently Asked Questions\",\r\n \"subtitle\": \"Find answers to common questions. Contact us if you need more help.\",\r\n \"q1\": \"How do I get started?\",\r\n \"a1\": \"Getting started is easy. Simply sign up for an account and follow our onboarding guide.\",\r\n \"q2\": \"What payment methods do you accept?\",\r\n \"a2\": \"We accept all major credit cards, PayPal, and bank transfers.\",\r\n \"q3\": \"Can I cancel my subscription anytime?\",\r\n \"a3\": \"Yes, you can cancel your subscription at any time from your account settings.\",\r\n \"q4\": \"Do you offer refunds?\",\r\n \"a4\": \"We offer a 30-day money-back guarantee for all new purchases.\",\r\n \"q5\": \"How can I contact support?\",\r\n \"a5\": \"You can reach our support team via email, live chat, or phone during business hours.\",\r\n \"q6\": \"Is my data secure?\",\r\n \"a6\": \"Yes, we use industry-standard encryption and security measures to protect your data.\"\r\n}"
27
+ "content": "{\n \"title\": \"Frequently Asked Questions\",\n \"subtitle\": \"Find answers to common questions. Contact us if you need more help.\",\n \"q1\": \"How do I get started?\",\n \"a1\": \"Getting started is easy. Simply sign up for an account and follow our onboarding guide.\",\n \"q2\": \"What payment methods do you accept?\",\n \"a2\": \"We accept all major credit cards, PayPal, and bank transfers.\",\n \"q3\": \"Can I cancel my subscription anytime?\",\n \"a3\": \"Yes, you can cancel your subscription at any time from your account settings.\",\n \"q4\": \"Do you offer refunds?\",\n \"a4\": \"We offer a 30-day money-back guarantee for all new purchases.\",\n \"q5\": \"How can I contact support?\",\n \"a5\": \"You can reach our support team via email, live chat, or phone during business hours.\",\n \"q6\": \"Is my data secure?\",\n \"a6\": \"Yes, we use industry-standard encryption and security measures to protect your data.\"\n}"
28
28
  },
29
29
  {
30
30
  "path": "faq-simple/lang/tr.json",
31
31
  "type": "registry:lang",
32
32
  "target": "$modules$/faq-simple/lang/tr.json",
33
- "content": "{\r\n \"title\": \"Sıkça Sorulan Sorular\",\r\n \"subtitle\": \"Sık sorulan sorulara cevaplar. Daha fazla yardım için iletişime geçin.\",\r\n \"q1\": \"Nasıl başlarım?\",\r\n \"a1\": \"Başlamak kolay. Sadece hesap oluşturun ve başlangıç rehberimizi takip edin.\",\r\n \"q2\": \"Hangi ödeme yöntemlerini kabul ediyorsunuz?\",\r\n \"a2\": \"Tüm büyük kredi kartlarını, PayPal ve banka havalelerini kabul ediyoruz.\",\r\n \"q3\": \"Aboneliğimi istediğim zaman iptal edebilir miyim?\",\r\n \"a3\": \"Evet, aboneliğinizi istediğiniz zaman hesap ayarlarından iptal edebilirsiniz.\",\r\n \"q4\": \"Para iadesi yapıyor musunuz?\",\r\n \"a4\": \"Tüm yeni satın alımlar için 30 günlük para iade garantisi sunuyoruz.\",\r\n \"q5\": \"Destekle nasıl iletişime geçebilirim?\",\r\n \"a5\": \"Destek ekibimize e-posta, canlı sohbet veya telefon ile mesai saatlerinde ulaşabilirsiniz.\",\r\n \"q6\": \"Verilerim güvende mi?\",\r\n \"a6\": \"Evet, verilerinizi korumak için endüstri standardı şifreleme ve güvenlik önlemleri kullanıyoruz.\"\r\n}"
33
+ "content": "{\n \"title\": \"Sıkça Sorulan Sorular\",\n \"subtitle\": \"Sık sorulan sorulara cevaplar. Daha fazla yardım için iletişime geçin.\",\n \"q1\": \"Nasıl başlarım?\",\n \"a1\": \"Başlamak kolay. Sadece hesap oluşturun ve başlangıç rehberimizi takip edin.\",\n \"q2\": \"Hangi ödeme yöntemlerini kabul ediyorsunuz?\",\n \"a2\": \"Tüm büyük kredi kartlarını, PayPal ve banka havalelerini kabul ediyoruz.\",\n \"q3\": \"Aboneliğimi istediğim zaman iptal edebilir miyim?\",\n \"a3\": \"Evet, aboneliğinizi istediğiniz zaman hesap ayarlarından iptal edebilirsiniz.\",\n \"q4\": \"Para iadesi yapıyor musunuz?\",\n \"a4\": \"Tüm yeni satın alımlar için 30 günlük para iade garantisi sunuyoruz.\",\n \"q5\": \"Destekle nasıl iletişime geçebilirim?\",\n \"a5\": \"Destek ekibimize e-posta, canlı sohbet veya telefon ile mesai saatlerinde ulaşabilirsiniz.\",\n \"q6\": \"Verilerim güvende mi?\",\n \"a6\": \"Evet, verilerinizi korumak için endüstri standardı şifreleme ve güvenlik önlemleri kullanıyoruz.\"\n}"
34
34
  }
35
35
  ],
36
36
  "exports": {
@@ -13,7 +13,7 @@
13
13
  "path": "favorites-blog-block/index.ts",
14
14
  "type": "registry:index",
15
15
  "target": "$modules$/favorites-blog-block/index.ts",
16
- "content": "export * from './favorites-blog-block';\r\n"
16
+ "content": "export * from './favorites-blog-block';\n"
17
17
  },
18
18
  {
19
19
  "path": "favorites-blog-block/favorites-blog-block.tsx",
@@ -17,25 +17,25 @@
17
17
  "path": "favorites-blog-page/index.ts",
18
18
  "type": "registry:index",
19
19
  "target": "$modules$/favorites-blog-page/index.ts",
20
- "content": "export * from './favorites-blog-page';\r\nexport { FavoritesBlogPage as default } from './favorites-blog-page';\r\n"
20
+ "content": "export * from './favorites-blog-page';\nexport { FavoritesBlogPage as default } from './favorites-blog-page';\n"
21
21
  },
22
22
  {
23
23
  "path": "favorites-blog-page/favorites-blog-page.tsx",
24
24
  "type": "registry:page",
25
25
  "target": "$modules$/favorites-blog-page/favorites-blog-page.tsx",
26
- "content": "import { Link } from \"react-router\";\r\nimport { Heart, BookOpen } from \"lucide-react\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { Layout } from \"@/components/Layout\";\r\nimport { PostCard } from \"@/modules/post-card/post-card\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useBlog } from \"@/modules/blog-core\";\r\nimport { usePageTitle } from \"@/hooks/use-page-title\";\r\n\r\nexport function FavoritesBlogPage() {\r\n const { t } = useTranslation(\"favorites-blog-page\");\r\n const { favorites, clearFavorites } = useBlog();\r\n usePageTitle({ title: t(\"title\", \"My Favorites\") });\r\n\r\n // Empty State\r\n if (favorites.length === 0) {\r\n return (\r\n <Layout>\r\n <div className=\"min-h-screen bg-muted/30 py-12\">\r\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4\">\r\n <div className=\"text-center max-w-md mx-auto\">\r\n <Heart className=\"w-16 h-16 text-muted-foreground mx-auto mb-6\" />\r\n <h1 className=\"text-3xl font-bold text-foreground mb-4\">\r\n {t(\"noFavoritesYet\", \"No Favorites Yet\")}\r\n </h1>\r\n <p className=\"text-muted-foreground mb-8\">\r\n {t(\r\n \"noFavoritesDescription\",\r\n \"Start browsing our blog and add posts to your favorites by clicking the heart icon.\"\r\n )}\r\n </p>\r\n <Button asChild size=\"lg\">\r\n <Link to=\"/blog\">\r\n <BookOpen className=\"w-5 h-5 mr-2\" />\r\n {t(\"browseBlog\", \"Browse Blog\")}\r\n </Link>\r\n </Button>\r\n </div>\r\n </div>\r\n </div>\r\n </Layout>\r\n );\r\n }\r\n\r\n // Favorites Grid\r\n return (\r\n <Layout>\r\n <div className=\"min-h-screen py-12\">\r\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4\">\r\n {/* Header */}\r\n <div className=\"flex justify-between items-center mb-8\">\r\n <div>\r\n <h1 className=\"text-3xl font-bold mb-2\">\r\n {t(\"title\", \"My Favorites\")}\r\n </h1>\r\n <p className=\"text-muted-foreground\">\r\n {t(\r\n \"favoritesCount\",\r\n `You have ${favorites.length} favorite posts`\r\n )}\r\n </p>\r\n </div>\r\n <Button variant=\"outline\" onClick={clearFavorites}>\r\n {t(\"clearAll\", \"Clear All\")}\r\n </Button>\r\n </div>\r\n\r\n {/* Posts Grid */}\r\n <div className=\"grid gap-6 md:grid-cols-2 lg:grid-cols-3\">\r\n {favorites.map((post) => (\r\n <PostCard key={post.id} post={post} layout=\"grid\" />\r\n ))}\r\n </div>\r\n </div>\r\n </div>\r\n </Layout>\r\n );\r\n}\r\n\r\nexport default FavoritesBlogPage;\r\n"
26
+ "content": "import { Link } from \"react-router\";\nimport { Heart, BookOpen } from \"lucide-react\";\nimport { Button } from \"@/components/ui/button\";\nimport { Layout } from \"@/components/Layout\";\nimport { PostCard } from \"@/modules/post-card/post-card\";\nimport { useTranslation } from \"react-i18next\";\nimport { useBlog } from \"@/modules/blog-core\";\nimport { usePageTitle } from \"@/hooks/use-page-title\";\n\nexport function FavoritesBlogPage() {\n const { t } = useTranslation(\"favorites-blog-page\");\n const { favorites, clearFavorites } = useBlog();\n usePageTitle({ title: t(\"title\", \"My Favorites\") });\n\n // Empty State\n if (favorites.length === 0) {\n return (\n <Layout>\n <div className=\"min-h-screen bg-muted/30 py-12\">\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4\">\n <div className=\"text-center max-w-md mx-auto\">\n <Heart className=\"w-16 h-16 text-muted-foreground mx-auto mb-6\" />\n <h1 className=\"text-3xl font-bold text-foreground mb-4\">\n {t(\"noFavoritesYet\", \"No Favorites Yet\")}\n </h1>\n <p className=\"text-muted-foreground mb-8\">\n {t(\n \"noFavoritesDescription\",\n \"Start browsing our blog and add posts to your favorites by clicking the heart icon.\"\n )}\n </p>\n <Button asChild size=\"lg\">\n <Link to=\"/blog\">\n <BookOpen className=\"w-5 h-5 mr-2\" />\n {t(\"browseBlog\", \"Browse Blog\")}\n </Link>\n </Button>\n </div>\n </div>\n </div>\n </Layout>\n );\n }\n\n // Favorites Grid\n return (\n <Layout>\n <div className=\"min-h-screen py-12\">\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4\">\n {/* Header */}\n <div className=\"flex justify-between items-center mb-8\">\n <div>\n <h1 className=\"text-3xl font-bold mb-2\">\n {t(\"title\", \"My Favorites\")}\n </h1>\n <p className=\"text-muted-foreground\">\n {t(\n \"favoritesCount\",\n `You have ${favorites.length} favorite posts`\n )}\n </p>\n </div>\n <Button variant=\"outline\" onClick={clearFavorites}>\n {t(\"clearAll\", \"Clear All\")}\n </Button>\n </div>\n\n {/* Posts Grid */}\n <div className=\"grid gap-6 md:grid-cols-2 lg:grid-cols-3\">\n {favorites.map((post) => (\n <PostCard key={post.id} post={post} layout=\"grid\" />\n ))}\n </div>\n </div>\n </div>\n </Layout>\n );\n}\n\nexport default FavoritesBlogPage;\n"
27
27
  },
28
28
  {
29
29
  "path": "favorites-blog-page/lang/en.json",
30
30
  "type": "registry:lang",
31
31
  "target": "$modules$/favorites-blog-page/lang/en.json",
32
- "content": "{\r\n \"title\": \"My Favorites\",\r\n \"noFavoritesYet\": \"No Favorites Yet\",\r\n \"noFavoritesDescription\": \"Start browsing our blog and add posts to your favorites by clicking the heart icon.\",\r\n \"browseBlog\": \"Browse Blog\",\r\n \"favoritesCount\": \"favorite posts\",\r\n \"clearAll\": \"Clear All\"\r\n}\r\n"
32
+ "content": "{\n \"title\": \"My Favorites\",\n \"noFavoritesYet\": \"No Favorites Yet\",\n \"noFavoritesDescription\": \"Start browsing our blog and add posts to your favorites by clicking the heart icon.\",\n \"browseBlog\": \"Browse Blog\",\n \"favoritesCount\": \"favorite posts\",\n \"clearAll\": \"Clear All\"\n}\n"
33
33
  },
34
34
  {
35
35
  "path": "favorites-blog-page/lang/tr.json",
36
36
  "type": "registry:lang",
37
37
  "target": "$modules$/favorites-blog-page/lang/tr.json",
38
- "content": "{\r\n \"title\": \"Favorilerim\",\r\n \"noFavoritesYet\": \"Henüz Favori Yok\",\r\n \"noFavoritesDescription\": \"Blog yazılarımıza göz atın ve kalp ikonuna tıklayarak favorilerinize ekleyin.\",\r\n \"browseBlog\": \"Bloga Göz At\",\r\n \"favoritesCount\": \"favori yazı\",\r\n \"clearAll\": \"Tümünü Temizle\"\r\n}\r\n"
38
+ "content": "{\n \"title\": \"Favorilerim\",\n \"noFavoritesYet\": \"Henüz Favori Yok\",\n \"noFavoritesDescription\": \"Blog yazılarımıza göz atın ve kalp ikonuna tıklayarak favorilerinize ekleyin.\",\n \"browseBlog\": \"Bloga Göz At\",\n \"favoritesCount\": \"favori yazı\",\n \"clearAll\": \"Tümünü Temizle\"\n}\n"
39
39
  }
40
40
  ],
41
41
  "exports": {
@@ -13,7 +13,7 @@
13
13
  "path": "favorites-ecommerce-block/index.ts",
14
14
  "type": "registry:index",
15
15
  "target": "$modules$/favorites-ecommerce-block/index.ts",
16
- "content": "export * from './favorites-ecommerce-block';\r\n"
16
+ "content": "export * from './favorites-ecommerce-block';\n"
17
17
  },
18
18
  {
19
19
  "path": "favorites-ecommerce-block/favorites-ecommerce-block.tsx",
@@ -17,25 +17,25 @@
17
17
  "path": "favorites-ecommerce-page/index.ts",
18
18
  "type": "registry:index",
19
19
  "target": "$modules$/favorites-ecommerce-page/index.ts",
20
- "content": "export * from './favorites-ecommerce-page';\r\nexport { FavoritesEcommercePage as default } from './favorites-ecommerce-page';\r\n"
20
+ "content": "export * from './favorites-ecommerce-page';\nexport { FavoritesEcommercePage as default } from './favorites-ecommerce-page';\n"
21
21
  },
22
22
  {
23
23
  "path": "favorites-ecommerce-page/favorites-ecommerce-page.tsx",
24
24
  "type": "registry:page",
25
25
  "target": "$modules$/favorites-ecommerce-page/favorites-ecommerce-page.tsx",
26
- "content": "import { Link } from \"react-router\";\r\nimport { Heart, ShoppingBag } from \"lucide-react\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { Layout } from \"@/components/Layout\";\r\nimport { ProductCard } from \"@/modules/product-card/product-card\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { useFavorites } from \"@/modules/ecommerce-core\";\r\nimport { usePageTitle } from \"@/hooks/use-page-title\";\r\n\r\nexport function FavoritesEcommercePage() {\r\n const { t } = useTranslation(\"favorites-ecommerce-page\");\r\n const { favorites, clearFavorites } = useFavorites();\r\n usePageTitle({ title: t(\"title\", \"My Favorites\") });\r\n\r\n // Empty State\r\n if (favorites.length === 0) {\r\n return (\r\n <Layout>\r\n <div className=\"min-h-screen bg-muted/30 py-12\">\r\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4\">\r\n <div className=\"text-center max-w-md mx-auto\">\r\n <Heart className=\"w-16 h-16 text-muted-foreground mx-auto mb-6\" />\r\n <h1 className=\"text-3xl font-bold text-foreground mb-4\">\r\n {t(\"noFavoritesYet\", \"No Favorites Yet\")}\r\n </h1>\r\n <p className=\"text-muted-foreground mb-8\">\r\n {t(\r\n \"noFavoritesDescription\",\r\n \"Start browsing our products and add items to your favorites by clicking the heart icon.\"\r\n )}\r\n </p>\r\n <Button asChild size=\"lg\">\r\n <Link to=\"/products\">\r\n <ShoppingBag className=\"w-5 h-5 mr-2\" />\r\n {t(\"browseProducts\", \"Browse Products\")}\r\n </Link>\r\n </Button>\r\n </div>\r\n </div>\r\n </div>\r\n </Layout>\r\n );\r\n }\r\n\r\n // Favorites Grid\r\n return (\r\n <Layout>\r\n <div className=\"min-h-screen bg-muted/30 py-12\">\r\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4\">\r\n {/* Header */}\r\n <div className=\"flex items-center justify-between mb-8\">\r\n <div>\r\n <h1 className=\"text-3xl font-bold text-foreground mb-2\">\r\n {t(\"title\", \"My Favorites\")}\r\n </h1>\r\n <p className=\"text-muted-foreground\">\r\n {favorites.length}{\" \"}\r\n {t(\r\n \"itemsInFavorites\",\r\n `item${favorites.length !== 1 ? \"s\" : \"\"} in your favorites`\r\n )}\r\n </p>\r\n </div>\r\n <Button variant=\"outline\" onClick={clearFavorites}>\r\n {t(\"clearAll\", \"Clear All\")}\r\n </Button>\r\n </div>\r\n\r\n {/* Products Grid */}\r\n <div className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6\">\r\n {favorites.map((product) => (\r\n <ProductCard key={product.id} product={product} variant=\"grid\" />\r\n ))}\r\n </div>\r\n </div>\r\n </div>\r\n </Layout>\r\n );\r\n}\r\n\r\nexport default FavoritesEcommercePage;\r\n"
26
+ "content": "import { Link } from \"react-router\";\nimport { Heart, ShoppingBag } from \"lucide-react\";\nimport { Button } from \"@/components/ui/button\";\nimport { Layout } from \"@/components/Layout\";\nimport { ProductCard } from \"@/modules/product-card/product-card\";\nimport { useTranslation } from \"react-i18next\";\nimport { useFavorites } from \"@/modules/ecommerce-core\";\nimport { usePageTitle } from \"@/hooks/use-page-title\";\n\nexport function FavoritesEcommercePage() {\n const { t } = useTranslation(\"favorites-ecommerce-page\");\n const { favorites, clearFavorites } = useFavorites();\n usePageTitle({ title: t(\"title\", \"My Favorites\") });\n\n // Empty State\n if (favorites.length === 0) {\n return (\n <Layout>\n <div className=\"min-h-screen bg-muted/30 py-12\">\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4\">\n <div className=\"text-center max-w-md mx-auto\">\n <Heart className=\"w-16 h-16 text-muted-foreground mx-auto mb-6\" />\n <h1 className=\"text-3xl font-bold text-foreground mb-4\">\n {t(\"noFavoritesYet\", \"No Favorites Yet\")}\n </h1>\n <p className=\"text-muted-foreground mb-8\">\n {t(\n \"noFavoritesDescription\",\n \"Start browsing our products and add items to your favorites by clicking the heart icon.\"\n )}\n </p>\n <Button asChild size=\"lg\">\n <Link to=\"/products\">\n <ShoppingBag className=\"w-5 h-5 mr-2\" />\n {t(\"browseProducts\", \"Browse Products\")}\n </Link>\n </Button>\n </div>\n </div>\n </div>\n </Layout>\n );\n }\n\n // Favorites Grid\n return (\n <Layout>\n <div className=\"min-h-screen bg-muted/30 py-12\">\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4\">\n {/* Header */}\n <div className=\"flex items-center justify-between mb-8\">\n <div>\n <h1 className=\"text-3xl font-bold text-foreground mb-2\">\n {t(\"title\", \"My Favorites\")}\n </h1>\n <p className=\"text-muted-foreground\">\n {favorites.length}{\" \"}\n {t(\n \"itemsInFavorites\",\n `item${favorites.length !== 1 ? \"s\" : \"\"} in your favorites`\n )}\n </p>\n </div>\n <Button variant=\"outline\" onClick={clearFavorites}>\n {t(\"clearAll\", \"Clear All\")}\n </Button>\n </div>\n\n {/* Products Grid */}\n <div className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6\">\n {favorites.map((product) => (\n <ProductCard key={product.id} product={product} variant=\"grid\" />\n ))}\n </div>\n </div>\n </div>\n </Layout>\n );\n}\n\nexport default FavoritesEcommercePage;\n"
27
27
  },
28
28
  {
29
29
  "path": "favorites-ecommerce-page/lang/en.json",
30
30
  "type": "registry:lang",
31
31
  "target": "$modules$/favorites-ecommerce-page/lang/en.json",
32
- "content": "{\r\n \"title\": \"My Favorites\",\r\n \"noFavoritesYet\": \"No Favorites Yet\",\r\n \"noFavoritesDescription\": \"Start browsing our products and add items to your favorites by clicking the heart icon.\",\r\n \"browseProducts\": \"Browse Products\",\r\n \"itemsInFavorites\": \"items in your favorites\",\r\n \"clearAll\": \"Clear All\"\r\n}\r\n"
32
+ "content": "{\n \"title\": \"My Favorites\",\n \"noFavoritesYet\": \"No Favorites Yet\",\n \"noFavoritesDescription\": \"Start browsing our products and add items to your favorites by clicking the heart icon.\",\n \"browseProducts\": \"Browse Products\",\n \"itemsInFavorites\": \"items in your favorites\",\n \"clearAll\": \"Clear All\"\n}\n"
33
33
  },
34
34
  {
35
35
  "path": "favorites-ecommerce-page/lang/tr.json",
36
36
  "type": "registry:lang",
37
37
  "target": "$modules$/favorites-ecommerce-page/lang/tr.json",
38
- "content": "{\r\n \"title\": \"Favorilerim\",\r\n \"noFavoritesYet\": \"Henüz Favori Yok\",\r\n \"noFavoritesDescription\": \"Ürünlerimize göz atın ve kalp ikonuna tıklayarak favorilerinize ekleyin.\",\r\n \"browseProducts\": \"Ürünlere Göz At\",\r\n \"itemsInFavorites\": \"ürün favorilerinizde\",\r\n \"clearAll\": \"Tümünü Temizle\"\r\n}\r\n"
38
+ "content": "{\n \"title\": \"Favorilerim\",\n \"noFavoritesYet\": \"Henüz Favori Yok\",\n \"noFavoritesDescription\": \"Ürünlerimize göz atın ve kalp ikonuna tıklayarak favorilerinize ekleyin.\",\n \"browseProducts\": \"Ürünlere Göz At\",\n \"itemsInFavorites\": \"ürün favorilerinizde\",\n \"clearAll\": \"Tümünü Temizle\"\n}\n"
39
39
  }
40
40
  ],
41
41
  "exports": {
@@ -10,7 +10,7 @@
10
10
  "path": "feature-section/index.ts",
11
11
  "type": "registry:index",
12
12
  "target": "$modules$/feature-section/index.ts",
13
- "content": "export * from './feature-section';\r\n"
13
+ "content": "export * from './feature-section';\n"
14
14
  },
15
15
  {
16
16
  "path": "feature-section/feature-section.tsx",
@@ -22,13 +22,13 @@
22
22
  "path": "feature-section/lang/en.json",
23
23
  "type": "registry:lang",
24
24
  "target": "$modules$/feature-section/lang/en.json",
25
- "content": "{\r\n \"heading\": \"Your Site Title Here\",\r\n \"description\": \"Discover powerful features designed to help you succeed.\",\r\n \"feature1\": \"Key feature or benefit #1\",\r\n \"feature2\": \"Key feature or benefit #2\",\r\n \"feature3\": \"Key feature or benefit #3\",\r\n \"primaryButton\": \"Learn More\",\r\n \"secondaryButton\": \"Get Started\",\r\n \"imageAlt\": \"Site Preview\"\r\n}"
25
+ "content": "{\n \"heading\": \"Your Site Title Here\",\n \"description\": \"Discover powerful features designed to help you succeed.\",\n \"feature1\": \"Key feature or benefit #1\",\n \"feature2\": \"Key feature or benefit #2\",\n \"feature3\": \"Key feature or benefit #3\",\n \"primaryButton\": \"Learn More\",\n \"secondaryButton\": \"Get Started\",\n \"imageAlt\": \"Site Preview\"\n}"
26
26
  },
27
27
  {
28
28
  "path": "feature-section/lang/tr.json",
29
29
  "type": "registry:lang",
30
30
  "target": "$modules$/feature-section/lang/tr.json",
31
- "content": "{\r\n \"heading\": \"Site Başlığınız\",\r\n \"description\": \"Başarılı olmanıza yardımcı olmak için tasarlanmış güçlü özellikleri keşfedin.\",\r\n \"feature1\": \"Anahtar özellik veya avantaj #1\",\r\n \"feature2\": \"Anahtar özellik veya avantaj #2\",\r\n \"feature3\": \"Anahtar özellik veya avantaj #3\",\r\n \"primaryButton\": \"Daha Fazla Öğren\",\r\n \"secondaryButton\": \"Başlayın\",\r\n \"imageAlt\": \"Site Önizlemesi\"\r\n}"
31
+ "content": "{\n \"heading\": \"Site Başlığınız\",\n \"description\": \"Başarılı olmanıza yardımcı olmak için tasarlanmış güçlü özellikleri keşfedin.\",\n \"feature1\": \"Anahtar özellik veya avantaj #1\",\n \"feature2\": \"Anahtar özellik veya avantaj #2\",\n \"feature3\": \"Anahtar özellik veya avantaj #3\",\n \"primaryButton\": \"Daha Fazla Öğren\",\n \"secondaryButton\": \"Başlayın\",\n \"imageAlt\": \"Site Önizlemesi\"\n}"
32
32
  }
33
33
  ],
34
34
  "exports": {
@@ -13,7 +13,7 @@
13
13
  "path": "featured-products/index.ts",
14
14
  "type": "registry:index",
15
15
  "target": "$modules$/featured-products/index.ts",
16
- "content": "export * from './featured-products';\r\n"
16
+ "content": "export * from './featured-products';\n"
17
17
  },
18
18
  {
19
19
  "path": "featured-products/featured-products.tsx",
@@ -25,13 +25,13 @@
25
25
  "path": "featured-products/lang/en.json",
26
26
  "type": "registry:lang",
27
27
  "target": "$modules$/featured-products/lang/en.json",
28
- "content": "{\r\n \"title\": \"Featured Products\",\r\n \"subtitle\": \"Hand-picked favorites from our collection\",\r\n \"viewAll\": \"View All Products\"\r\n}\r\n"
28
+ "content": "{\n \"title\": \"Featured Products\",\n \"subtitle\": \"Hand-picked favorites from our collection\",\n \"viewAll\": \"View All Products\"\n}\n"
29
29
  },
30
30
  {
31
31
  "path": "featured-products/lang/tr.json",
32
32
  "type": "registry:lang",
33
33
  "target": "$modules$/featured-products/lang/tr.json",
34
- "content": "{\r\n \"title\": \"Öne Çıkan Ürünler\",\r\n \"subtitle\": \"Koleksiyonumuzdan özenle seçilmiş favoriler\",\r\n \"viewAll\": \"Tüm Ürünleri Gör\"\r\n}\r\n"
34
+ "content": "{\n \"title\": \"Öne Çıkan Ürünler\",\n \"subtitle\": \"Koleksiyonumuzdan özenle seçilmiş favoriler\",\n \"viewAll\": \"Tüm Ürünleri Gör\"\n}\n"
35
35
  }
36
36
  ],
37
37
  "exports": {
@@ -13,25 +13,25 @@
13
13
  "path": "footer-detailed/index.ts",
14
14
  "type": "registry:index",
15
15
  "target": "$modules$/footer-detailed/index.ts",
16
- "content": "export * from './footer-detailed';\r\n"
16
+ "content": "export * from './footer-detailed';\n"
17
17
  },
18
18
  {
19
19
  "path": "footer-detailed/footer-detailed.tsx",
20
20
  "type": "registry:component",
21
21
  "target": "$modules$/footer-detailed/footer-detailed.tsx",
22
- "content": "import { useState, useMemo } from \"react\";\r\nimport { Link } from \"react-router\";\r\nimport {\r\n Facebook,\r\n Twitter,\r\n Instagram,\r\n Linkedin,\r\n Youtube,\r\n Mail,\r\n Phone,\r\n ArrowUp,\r\n Send,\r\n CreditCard,\r\n} from \"lucide-react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { Input } from \"@/components/ui/input\";\r\nimport { Logo } from \"@/components/Logo\";\r\nimport constants from \"@/constants/constants.json\";\r\n\r\nconst socialIcons: Record<string, React.ElementType> = {\r\n facebook: Facebook,\r\n twitter: Twitter,\r\n instagram: Instagram,\r\n linkedin: Linkedin,\r\n youtube: Youtube,\r\n};\r\n\r\ninterface FooterDetailedProps {\r\n className?: string;\r\n}\r\n\r\nexport function FooterDetailed({ className }: FooterDetailedProps) {\r\n const { t } = useTranslation(\"footer-detailed\");\r\n const [email, setEmail] = useState(\"\");\r\n\r\n const socialLinks = useMemo(() => {\r\n const socialMedia = constants.socialMedia as Record<string, string> | undefined;\r\n if (!socialMedia) return [];\r\n return Object.entries(socialMedia)\r\n .filter(([platform, url]) => url && socialIcons[platform])\r\n .map(([platform, url]) => ({ platform, url, Icon: socialIcons[platform] }));\r\n }, []);\r\n\r\n const handleNewsletterSubmit = (e: React.FormEvent) => {\r\n e.preventDefault();\r\n // Newsletter subscription logic\r\n console.log(\"Newsletter subscription:\", email);\r\n setEmail(\"\");\r\n };\r\n\r\n const scrollToTop = () => {\r\n window.scrollTo({ top: 0, behavior: \"smooth\" });\r\n };\r\n\r\n const currentYear = new Date().getFullYear();\r\n\r\n const linkSections = [\r\n {\r\n title: t(\"shop\", \"Shop\"),\r\n links: [\r\n { text: t(\"allProducts\", \"All Products\"), url: \"/products\" },\r\n { text: t(\"featured\", \"Featured\"), url: \"/products?featured=true\" },\r\n { text: t(\"newArrivals\", \"New Arrivals\"), url: \"/products?new=true\" },\r\n { text: t(\"onSale\", \"On Sale\"), url: \"/products?sale=true\" },\r\n ],\r\n },\r\n {\r\n title: t(\"company\", \"Company\"),\r\n links: [\r\n { text: t(\"about\", \"About Us\"), url: \"/about\" },\r\n { text: t(\"careers\", \"Careers\"), url: \"/careers\" },\r\n { text: t(\"blog\", \"Blog\"), url: \"/blog\" },\r\n { text: t(\"press\", \"Press\"), url: \"/press\" },\r\n ],\r\n },\r\n {\r\n title: t(\"support\", \"Support\"),\r\n links: [\r\n { text: t(\"helpCenter\", \"Help Center\"), url: \"/help\" },\r\n { text: t(\"faq\", \"FAQ\"), url: \"/faq\" },\r\n { text: t(\"contact\", \"Contact Us\"), url: \"/contact\" },\r\n { text: t(\"returns\", \"Returns\"), url: \"/returns\" },\r\n ],\r\n },\r\n {\r\n title: t(\"legal\", \"Legal\"),\r\n links: [\r\n { text: t(\"privacy\", \"Privacy Policy\"), url: \"/privacy\" },\r\n { text: t(\"terms\", \"Terms of Service\"), url: \"/terms\" },\r\n { text: t(\"cookies\", \"Cookie Policy\"), url: \"/cookies\" },\r\n { text: t(\"refund\", \"Refund Policy\"), url: \"/refund\" },\r\n ],\r\n },\r\n ];\r\n\r\n return (\r\n <footer className={cn(\"border-t bg-muted/30\", className)}>\r\n {/* Main Footer */}\r\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4 py-12 lg:py-16\">\r\n <div className=\"grid grid-cols-1 gap-10 sm:grid-cols-2 lg:grid-cols-6\">\r\n {/* Brand & Newsletter - spans 2 columns */}\r\n <div className=\"sm:col-span-2 space-y-6\">\r\n <Logo size=\"lg\" />\r\n <p className=\"text-sm text-muted-foreground leading-relaxed max-w-sm\">\r\n {t(\"description\", \"Your trusted destination for quality products. We deliver excellence with every order.\")}\r\n </p>\r\n\r\n {/* Newsletter */}\r\n <div className=\"space-y-3\">\r\n <h4 className=\"font-semibold text-sm\">\r\n {t(\"newsletter\", \"Subscribe to our newsletter\")}\r\n </h4>\r\n <form onSubmit={handleNewsletterSubmit} className=\"flex gap-2\">\r\n <Input\r\n type=\"email\"\r\n placeholder={t(\"emailPlaceholder\", \"Enter your email\")}\r\n value={email}\r\n onChange={(e) => setEmail(e.target.value)}\r\n className=\"flex-1 h-10\"\r\n required\r\n />\r\n <Button type=\"submit\" size=\"sm\" className=\"h-10 px-4\">\r\n <Send className=\"h-4 w-4\" />\r\n </Button>\r\n </form>\r\n <p className=\"text-xs text-muted-foreground\">\r\n {t(\"newsletterNote\", \"Get updates on new products and exclusive offers.\")}\r\n </p>\r\n </div>\r\n\r\n {/* Social Links */}\r\n {socialLinks.length > 0 && (\r\n <div className=\"flex gap-1 pt-2\">\r\n {socialLinks.map(({ platform, url, Icon }) => (\r\n <a\r\n key={platform}\r\n href={url}\r\n target=\"_blank\"\r\n rel=\"noopener noreferrer\"\r\n className=\"h-10 w-10 flex items-center justify-center rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted transition-colors\"\r\n >\r\n <Icon className=\"h-5 w-5\" />\r\n </a>\r\n ))}\r\n </div>\r\n )}\r\n </div>\r\n\r\n {/* Link Sections */}\r\n {linkSections.map((section, idx) => (\r\n <div key={idx} className=\"space-y-4\">\r\n <h4 className=\"font-semibold\">{section.title}</h4>\r\n <ul className=\"space-y-2.5\">\r\n {section.links.map((link, linkIdx) => (\r\n <li key={linkIdx}>\r\n <Link\r\n to={link.url}\r\n className=\"text-sm text-muted-foreground hover:text-foreground transition-colors\"\r\n >\r\n {link.text}\r\n </Link>\r\n </li>\r\n ))}\r\n </ul>\r\n </div>\r\n ))}\r\n </div>\r\n </div>\r\n\r\n {/* Bottom Bar */}\r\n <div className=\"border-t bg-muted/50\">\r\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4 py-6\">\r\n <div className=\"flex flex-col lg:flex-row justify-between items-center gap-6\">\r\n {/* Copyright & Contact */}\r\n <div className=\"flex flex-col sm:flex-row items-center gap-4 sm:gap-6 text-sm text-muted-foreground\">\r\n <span>© {currentYear} {constants.site.name}. {t(\"allRightsReserved\", \"All rights reserved.\")}</span>\r\n <div className=\"hidden sm:block w-px h-4 bg-border\" />\r\n <div className=\"flex items-center gap-4\">\r\n <a href={`tel:${constants.phone}`} className=\"flex items-center gap-1.5 hover:text-foreground transition-colors\">\r\n <Phone className=\"h-3.5 w-3.5\" />\r\n <span>{constants.phone}</span>\r\n </a>\r\n <a href={`mailto:${constants.email}`} className=\"flex items-center gap-1.5 hover:text-foreground transition-colors\">\r\n <Mail className=\"h-3.5 w-3.5\" />\r\n <span>{constants.email}</span>\r\n </a>\r\n </div>\r\n </div>\r\n\r\n {/* Payment & Back to Top */}\r\n <div className=\"flex items-center gap-6\">\r\n {/* Payment Methods */}\r\n <div className=\"flex items-center gap-2 text-muted-foreground\">\r\n <CreditCard className=\"h-5 w-5\" />\r\n <span className=\"text-xs\">{t(\"securePayment\", \"Secure Payment\")}</span>\r\n </div>\r\n\r\n {/* Back to Top */}\r\n <Button\r\n variant=\"outline\"\r\n size=\"sm\"\r\n onClick={scrollToTop}\r\n className=\"gap-2\"\r\n >\r\n <ArrowUp className=\"h-4 w-4\" />\r\n {t(\"backToTop\", \"Top\")}\r\n </Button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </footer>\r\n );\r\n}\r\n"
22
+ "content": "import { useState, useMemo } from \"react\";\nimport { Link } from \"react-router\";\nimport {\n Facebook,\n Twitter,\n Instagram,\n Linkedin,\n Youtube,\n Mail,\n Phone,\n ArrowUp,\n Send,\n CreditCard,\n} from \"lucide-react\";\nimport { useTranslation } from \"react-i18next\";\nimport { cn } from \"@/lib/utils\";\nimport { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Logo } from \"@/components/Logo\";\nimport constants from \"@/constants/constants.json\";\n\nconst socialIcons: Record<string, React.ElementType> = {\n facebook: Facebook,\n twitter: Twitter,\n instagram: Instagram,\n linkedin: Linkedin,\n youtube: Youtube,\n};\n\ninterface FooterDetailedProps {\n className?: string;\n}\n\nexport function FooterDetailed({ className }: FooterDetailedProps) {\n const { t } = useTranslation(\"footer-detailed\");\n const [email, setEmail] = useState(\"\");\n\n const socialLinks = useMemo(() => {\n const socialMedia = constants.socialMedia as Record<string, string> | undefined;\n if (!socialMedia) return [];\n return Object.entries(socialMedia)\n .filter(([platform, url]) => url && socialIcons[platform])\n .map(([platform, url]) => ({ platform, url, Icon: socialIcons[platform] }));\n }, []);\n\n const handleNewsletterSubmit = (e: React.FormEvent) => {\n e.preventDefault();\n // Newsletter subscription logic\n console.log(\"Newsletter subscription:\", email);\n setEmail(\"\");\n };\n\n const scrollToTop = () => {\n window.scrollTo({ top: 0, behavior: \"smooth\" });\n };\n\n const currentYear = new Date().getFullYear();\n\n const linkSections = [\n {\n title: t(\"shop\", \"Shop\"),\n links: [\n { text: t(\"allProducts\", \"All Products\"), url: \"/products\" },\n { text: t(\"featured\", \"Featured\"), url: \"/products?featured=true\" },\n { text: t(\"newArrivals\", \"New Arrivals\"), url: \"/products?new=true\" },\n { text: t(\"onSale\", \"On Sale\"), url: \"/products?sale=true\" },\n ],\n },\n {\n title: t(\"company\", \"Company\"),\n links: [\n { text: t(\"about\", \"About Us\"), url: \"/about\" },\n { text: t(\"careers\", \"Careers\"), url: \"/careers\" },\n { text: t(\"blog\", \"Blog\"), url: \"/blog\" },\n { text: t(\"press\", \"Press\"), url: \"/press\" },\n ],\n },\n {\n title: t(\"support\", \"Support\"),\n links: [\n { text: t(\"helpCenter\", \"Help Center\"), url: \"/help\" },\n { text: t(\"faq\", \"FAQ\"), url: \"/faq\" },\n { text: t(\"contact\", \"Contact Us\"), url: \"/contact\" },\n { text: t(\"returns\", \"Returns\"), url: \"/returns\" },\n ],\n },\n {\n title: t(\"legal\", \"Legal\"),\n links: [\n { text: t(\"privacy\", \"Privacy Policy\"), url: \"/privacy\" },\n { text: t(\"terms\", \"Terms of Service\"), url: \"/terms\" },\n { text: t(\"cookies\", \"Cookie Policy\"), url: \"/cookies\" },\n { text: t(\"refund\", \"Refund Policy\"), url: \"/refund\" },\n ],\n },\n ];\n\n return (\n <footer className={cn(\"border-t bg-muted/30\", className)}>\n {/* Main Footer */}\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4 py-12 lg:py-16\">\n <div className=\"grid grid-cols-1 gap-10 sm:grid-cols-2 lg:grid-cols-6\">\n {/* Brand & Newsletter - spans 2 columns */}\n <div className=\"sm:col-span-2 space-y-6\">\n <Logo size=\"lg\" />\n <p className=\"text-sm text-muted-foreground leading-relaxed max-w-sm\">\n {t(\"description\", \"Your trusted destination for quality products. We deliver excellence with every order.\")}\n </p>\n\n {/* Newsletter */}\n <div className=\"space-y-3\">\n <h4 className=\"font-semibold text-sm\">\n {t(\"newsletter\", \"Subscribe to our newsletter\")}\n </h4>\n <form onSubmit={handleNewsletterSubmit} className=\"flex gap-2\">\n <Input\n type=\"email\"\n placeholder={t(\"emailPlaceholder\", \"Enter your email\")}\n value={email}\n onChange={(e) => setEmail(e.target.value)}\n className=\"flex-1 h-10\"\n required\n />\n <Button type=\"submit\" size=\"sm\" className=\"h-10 px-4\">\n <Send className=\"h-4 w-4\" />\n </Button>\n </form>\n <p className=\"text-xs text-muted-foreground\">\n {t(\"newsletterNote\", \"Get updates on new products and exclusive offers.\")}\n </p>\n </div>\n\n {/* Social Links */}\n {socialLinks.length > 0 && (\n <div className=\"flex gap-1 pt-2\">\n {socialLinks.map(({ platform, url, Icon }) => (\n <a\n key={platform}\n href={url}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"h-10 w-10 flex items-center justify-center rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted transition-colors\"\n >\n <Icon className=\"h-5 w-5\" />\n </a>\n ))}\n </div>\n )}\n </div>\n\n {/* Link Sections */}\n {linkSections.map((section, idx) => (\n <div key={idx} className=\"space-y-4\">\n <h4 className=\"font-semibold\">{section.title}</h4>\n <ul className=\"space-y-2.5\">\n {section.links.map((link, linkIdx) => (\n <li key={linkIdx}>\n <Link\n to={link.url}\n className=\"text-sm text-muted-foreground hover:text-foreground transition-colors\"\n >\n {link.text}\n </Link>\n </li>\n ))}\n </ul>\n </div>\n ))}\n </div>\n </div>\n\n {/* Bottom Bar */}\n <div className=\"border-t bg-muted/50\">\n <div className=\"w-full max-w-[var(--container-max-width)] mx-auto px-4 py-6\">\n <div className=\"flex flex-col lg:flex-row justify-between items-center gap-6\">\n {/* Copyright & Contact */}\n <div className=\"flex flex-col sm:flex-row items-center gap-4 sm:gap-6 text-sm text-muted-foreground\">\n <span>© {currentYear} {constants.site.name}. {t(\"allRightsReserved\", \"All rights reserved.\")}</span>\n <div className=\"hidden sm:block w-px h-4 bg-border\" />\n <div className=\"flex items-center gap-4\">\n <a href={`tel:${constants.phone}`} className=\"flex items-center gap-1.5 hover:text-foreground transition-colors\">\n <Phone className=\"h-3.5 w-3.5\" />\n <span>{constants.phone}</span>\n </a>\n <a href={`mailto:${constants.email}`} className=\"flex items-center gap-1.5 hover:text-foreground transition-colors\">\n <Mail className=\"h-3.5 w-3.5\" />\n <span>{constants.email}</span>\n </a>\n </div>\n </div>\n\n {/* Payment & Back to Top */}\n <div className=\"flex items-center gap-6\">\n {/* Payment Methods */}\n <div className=\"flex items-center gap-2 text-muted-foreground\">\n <CreditCard className=\"h-5 w-5\" />\n <span className=\"text-xs\">{t(\"securePayment\", \"Secure Payment\")}</span>\n </div>\n\n {/* Back to Top */}\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={scrollToTop}\n className=\"gap-2\"\n >\n <ArrowUp className=\"h-4 w-4\" />\n {t(\"backToTop\", \"Top\")}\n </Button>\n </div>\n </div>\n </div>\n </div>\n </footer>\n );\n}\n"
23
23
  },
24
24
  {
25
25
  "path": "footer-detailed/lang/en.json",
26
26
  "type": "registry:lang",
27
27
  "target": "$modules$/footer-detailed/lang/en.json",
28
- "content": "{\r\n \"description\": \"Your trusted destination for quality products. We deliver excellence with every order.\",\r\n \"newsletter\": \"Subscribe to our newsletter\",\r\n \"emailPlaceholder\": \"Enter your email\",\r\n \"newsletterNote\": \"Get updates on new products and exclusive offers.\",\r\n \"shop\": \"Shop\",\r\n \"allProducts\": \"All Products\",\r\n \"featured\": \"Featured\",\r\n \"newArrivals\": \"New Arrivals\",\r\n \"onSale\": \"On Sale\",\r\n \"company\": \"Company\",\r\n \"about\": \"About Us\",\r\n \"careers\": \"Careers\",\r\n \"blog\": \"Blog\",\r\n \"press\": \"Press\",\r\n \"support\": \"Support\",\r\n \"helpCenter\": \"Help Center\",\r\n \"faq\": \"FAQ\",\r\n \"contact\": \"Contact Us\",\r\n \"returns\": \"Returns\",\r\n \"legal\": \"Legal\",\r\n \"privacy\": \"Privacy Policy\",\r\n \"terms\": \"Terms of Service\",\r\n \"cookies\": \"Cookie Policy\",\r\n \"refund\": \"Refund Policy\",\r\n \"securePayment\": \"Secure Payment\",\r\n \"backToTop\": \"Top\",\r\n \"allRightsReserved\": \"All rights reserved.\"\r\n}\r\n"
28
+ "content": "{\n \"description\": \"Your trusted destination for quality products. We deliver excellence with every order.\",\n \"newsletter\": \"Subscribe to our newsletter\",\n \"emailPlaceholder\": \"Enter your email\",\n \"newsletterNote\": \"Get updates on new products and exclusive offers.\",\n \"shop\": \"Shop\",\n \"allProducts\": \"All Products\",\n \"featured\": \"Featured\",\n \"newArrivals\": \"New Arrivals\",\n \"onSale\": \"On Sale\",\n \"company\": \"Company\",\n \"about\": \"About Us\",\n \"careers\": \"Careers\",\n \"blog\": \"Blog\",\n \"press\": \"Press\",\n \"support\": \"Support\",\n \"helpCenter\": \"Help Center\",\n \"faq\": \"FAQ\",\n \"contact\": \"Contact Us\",\n \"returns\": \"Returns\",\n \"legal\": \"Legal\",\n \"privacy\": \"Privacy Policy\",\n \"terms\": \"Terms of Service\",\n \"cookies\": \"Cookie Policy\",\n \"refund\": \"Refund Policy\",\n \"securePayment\": \"Secure Payment\",\n \"backToTop\": \"Top\",\n \"allRightsReserved\": \"All rights reserved.\"\n}\n"
29
29
  },
30
30
  {
31
31
  "path": "footer-detailed/lang/tr.json",
32
32
  "type": "registry:lang",
33
33
  "target": "$modules$/footer-detailed/lang/tr.json",
34
- "content": "{\r\n \"description\": \"Kaliteli ürünler için güvenilir adresiniz. Her siparişte mükemmellik sunuyoruz.\",\r\n \"newsletter\": \"Bültenimize abone olun\",\r\n \"emailPlaceholder\": \"E-posta adresiniz\",\r\n \"newsletterNote\": \"Yeni ürünler ve özel tekliflerden haberdar olun.\",\r\n \"shop\": \"Mağaza\",\r\n \"allProducts\": \"Tüm Ürünler\",\r\n \"featured\": \"Öne Çıkanlar\",\r\n \"newArrivals\": \"Yeni Gelenler\",\r\n \"onSale\": \"İndirimli\",\r\n \"company\": \"Şirket\",\r\n \"about\": \"Hakkımızda\",\r\n \"careers\": \"Kariyer\",\r\n \"blog\": \"Blog\",\r\n \"press\": \"Basın\",\r\n \"support\": \"Destek\",\r\n \"helpCenter\": \"Yardım Merkezi\",\r\n \"faq\": \"SSS\",\r\n \"contact\": \"İletişim\",\r\n \"returns\": \"İade\",\r\n \"legal\": \"Yasal\",\r\n \"privacy\": \"Gizlilik Politikası\",\r\n \"terms\": \"Kullanım Şartları\",\r\n \"cookies\": \"Çerez Politikası\",\r\n \"refund\": \"İade Politikası\",\r\n \"securePayment\": \"Güvenli Ödeme\",\r\n \"backToTop\": \"Yukarı\",\r\n \"allRightsReserved\": \"Tüm hakları saklıdır.\"\r\n}\r\n"
34
+ "content": "{\n \"description\": \"Kaliteli ürünler için güvenilir adresiniz. Her siparişte mükemmellik sunuyoruz.\",\n \"newsletter\": \"Bültenimize abone olun\",\n \"emailPlaceholder\": \"E-posta adresiniz\",\n \"newsletterNote\": \"Yeni ürünler ve özel tekliflerden haberdar olun.\",\n \"shop\": \"Mağaza\",\n \"allProducts\": \"Tüm Ürünler\",\n \"featured\": \"Öne Çıkanlar\",\n \"newArrivals\": \"Yeni Gelenler\",\n \"onSale\": \"İndirimli\",\n \"company\": \"Şirket\",\n \"about\": \"Hakkımızda\",\n \"careers\": \"Kariyer\",\n \"blog\": \"Blog\",\n \"press\": \"Basın\",\n \"support\": \"Destek\",\n \"helpCenter\": \"Yardım Merkezi\",\n \"faq\": \"SSS\",\n \"contact\": \"İletişim\",\n \"returns\": \"İade\",\n \"legal\": \"Yasal\",\n \"privacy\": \"Gizlilik Politikası\",\n \"terms\": \"Kullanım Şartları\",\n \"cookies\": \"Çerez Politikası\",\n \"refund\": \"İade Politikası\",\n \"securePayment\": \"Güvenli Ödeme\",\n \"backToTop\": \"Yukarı\",\n \"allRightsReserved\": \"Tüm hakları saklıdır.\"\n}\n"
35
35
  }
36
36
  ],
37
37
  "exports": {
@@ -10,7 +10,7 @@
10
10
  "path": "footer-minimal/index.ts",
11
11
  "type": "registry:index",
12
12
  "target": "$modules$/footer-minimal/index.ts",
13
- "content": "export * from './footer-minimal';\r\n"
13
+ "content": "export * from './footer-minimal';\n"
14
14
  },
15
15
  {
16
16
  "path": "footer-minimal/footer-minimal.tsx",
@@ -22,13 +22,13 @@
22
22
  "path": "footer-minimal/lang/en.json",
23
23
  "type": "registry:lang",
24
24
  "target": "$modules$/footer-minimal/lang/en.json",
25
- "content": "{\r\n \"privacy\": \"Privacy\",\r\n \"terms\": \"Terms\",\r\n \"allRightsReserved\": \"All rights reserved.\"\r\n}\r\n"
25
+ "content": "{\n \"privacy\": \"Privacy\",\n \"terms\": \"Terms\",\n \"allRightsReserved\": \"All rights reserved.\"\n}\n"
26
26
  },
27
27
  {
28
28
  "path": "footer-minimal/lang/tr.json",
29
29
  "type": "registry:lang",
30
30
  "target": "$modules$/footer-minimal/lang/tr.json",
31
- "content": "{\r\n \"privacy\": \"Gizlilik\",\r\n \"terms\": \"Şartlar\",\r\n \"allRightsReserved\": \"Tüm hakları saklıdır.\"\r\n}\r\n"
31
+ "content": "{\n \"privacy\": \"Gizlilik\",\n \"terms\": \"Şartlar\",\n \"allRightsReserved\": \"Tüm hakları saklıdır.\"\n}\n"
32
32
  }
33
33
  ],
34
34
  "exports": {
@@ -10,7 +10,7 @@
10
10
  "path": "footer/index.ts",
11
11
  "type": "registry:index",
12
12
  "target": "$modules$/footer/index.ts",
13
- "content": "export * from './footer';\r\n"
13
+ "content": "export * from './footer';\n"
14
14
  },
15
15
  {
16
16
  "path": "footer/footer.tsx",
@@ -22,13 +22,13 @@
22
22
  "path": "footer/lang/en.json",
23
23
  "type": "registry:lang",
24
24
  "target": "$modules$/footer/lang/en.json",
25
- "content": "{\r\n \"description\": \"Let Promake personalize this footer description for your brand and purpose.\",\r\n \"quickLinks\": \"Quick Links\",\r\n \"about\": \"About\",\r\n \"contact\": \"Contact\",\r\n \"legal\": \"Legal\",\r\n \"privacy\": \"Privacy Policy\",\r\n \"terms\": \"Terms of Service\",\r\n \"cookies\": \"Cookie Policy\",\r\n \"contactTitle\": \"Contact\",\r\n \"allRightsReserved\": \"All rights reserved.\"\r\n}\r\n"
25
+ "content": "{\n \"description\": \"Let Promake personalize this footer description for your brand and purpose.\",\n \"quickLinks\": \"Quick Links\",\n \"about\": \"About\",\n \"contact\": \"Contact\",\n \"legal\": \"Legal\",\n \"privacy\": \"Privacy Policy\",\n \"terms\": \"Terms of Service\",\n \"cookies\": \"Cookie Policy\",\n \"contactTitle\": \"Contact\",\n \"allRightsReserved\": \"All rights reserved.\"\n}\n"
26
26
  },
27
27
  {
28
28
  "path": "footer/lang/tr.json",
29
29
  "type": "registry:lang",
30
30
  "target": "$modules$/footer/lang/tr.json",
31
- "content": "{\r\n \"description\": \"Promake ile bu footer açıklamasını markanız ve amacınız için kişiselleştirin.\",\r\n \"quickLinks\": \"Hızlı Bağlantılar\",\r\n \"about\": \"Hakkımızda\",\r\n \"contact\": \"İletişim\",\r\n \"legal\": \"Yasal\",\r\n \"privacy\": \"Gizlilik Politikası\",\r\n \"terms\": \"Kullanım Şartları\",\r\n \"cookies\": \"Çerez Politikası\",\r\n \"contactTitle\": \"İletişim\",\r\n \"allRightsReserved\": \"Tüm hakları saklıdır.\"\r\n}\r\n"
31
+ "content": "{\n \"description\": \"Promake ile bu footer açıklamasını markanız ve amacınız için kişiselleştirin.\",\n \"quickLinks\": \"Hızlı Bağlantılar\",\n \"about\": \"Hakkımızda\",\n \"contact\": \"İletişim\",\n \"legal\": \"Yasal\",\n \"privacy\": \"Gizlilik Politikası\",\n \"terms\": \"Kullanım Şartları\",\n \"cookies\": \"Çerez Politikası\",\n \"contactTitle\": \"İletişim\",\n \"allRightsReserved\": \"Tüm hakları saklıdır.\"\n}\n"
32
32
  }
33
33
  ],
34
34
  "exports": {
@@ -17,25 +17,25 @@
17
17
  "path": "forgot-password-page-split/index.ts",
18
18
  "type": "registry:index",
19
19
  "target": "$modules$/forgot-password-page-split/index.ts",
20
- "content": "export * from './forgot-password-page-split';\r\nexport { default } from './forgot-password-page-split';\r\n"
20
+ "content": "export * from './forgot-password-page-split';\nexport { default } from './forgot-password-page-split';\n"
21
21
  },
22
22
  {
23
23
  "path": "forgot-password-page-split/forgot-password-page-split.tsx",
24
24
  "type": "registry:page",
25
25
  "target": "$modules$/forgot-password-page-split/forgot-password-page-split.tsx",
26
- "content": "import { useState } from \"react\";\r\nimport { Link } from \"react-router\";\r\nimport { toast } from \"sonner\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { usePageTitle } from \"@/hooks/use-page-title\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { Input } from \"@/components/ui/input\";\r\nimport { Label } from \"@/components/ui/label\";\r\nimport { Logo } from \"@/components/Logo\";\r\nimport { Mail, ArrowLeft, CheckCircle } from \"lucide-react\";\r\nimport { useAuth } from \"@/modules/auth-core\";\r\nimport { getErrorMessage } from \"@/modules/api\";\r\n\r\ninterface ForgotPasswordPageSplitProps {\r\n image?: string;\r\n}\r\n\r\nexport function ForgotPasswordPageSplit({\r\n image = \"/images/placeholder.png\",\r\n}: ForgotPasswordPageSplitProps) {\r\n const { t } = useTranslation(\"forgot-password-page-split\");\r\n usePageTitle({ title: t(\"title\", \"Forgot Password\") });\r\n const { forgotPassword } = useAuth();\r\n\r\n const [username, setUsername] = useState(\"\");\r\n const [isLoading, setIsLoading] = useState(false);\r\n const [error, setError] = useState<string | null>(null);\r\n const [isEmailSent, setIsEmailSent] = useState(false);\r\n\r\n const handleSubmit = async (e: React.FormEvent) => {\r\n e.preventDefault();\r\n setError(null);\r\n setIsLoading(true);\r\n\r\n try {\r\n await forgotPassword(username);\r\n\r\n setIsEmailSent(true);\r\n toast.success(t(\"emailSent\", \"Reset link sent!\"), {\r\n description: t(\"checkInbox\", \"Please check your email inbox.\"),\r\n });\r\n } catch (err) {\r\n const errorMessage = getErrorMessage(\r\n err,\r\n t(\"forgotPasswordError\", \"Failed to send reset link. Please try again.\")\r\n );\r\n setError(errorMessage);\r\n } finally {\r\n setIsLoading(false);\r\n }\r\n };\r\n\r\n // Success state - email sent\r\n if (isEmailSent) {\r\n return (\r\n <section className=\"w-full md:grid md:min-h-screen md:grid-cols-2\">\r\n <div className=\"flex items-center justify-center px-4 py-12\">\r\n <div className=\"mx-auto grid w-full max-w-sm gap-6 text-center\">\r\n <Logo />\r\n <hr />\r\n\r\n <div className=\"flex justify-center\">\r\n <div className=\"w-16 h-16 bg-green-100 dark:bg-green-900/30 rounded-full flex items-center justify-center\">\r\n <CheckCircle className=\"w-8 h-8 text-green-600 dark:text-green-400\" />\r\n </div>\r\n </div>\r\n\r\n <div>\r\n <h1 className=\"text-xl font-bold tracking-tight\">\r\n {t(\"checkYourEmail\", \"Check your email\")}\r\n </h1>\r\n <p className=\"text-sm text-muted-foreground mt-2\">\r\n {t(\"emailSentTo\", \"We've sent a password reset link to\")}\r\n </p>\r\n <p className=\"text-sm font-medium mt-1\">{username}</p>\r\n </div>\r\n\r\n <div className=\"text-sm text-muted-foreground\">\r\n <p>{t(\"didntReceive\", \"Didn't receive the email?\")}</p>\r\n <Button\r\n variant=\"link\"\r\n className=\"p-0 h-auto\"\r\n onClick={() => {\r\n setIsEmailSent(false);\r\n setError(null);\r\n }}\r\n >\r\n {t(\"tryAgain\", \"Click here to try again\")}\r\n </Button>\r\n </div>\r\n\r\n <Link\r\n to=\"/login\"\r\n className=\"inline-flex items-center justify-center gap-2 text-sm text-muted-foreground hover:text-foreground\"\r\n >\r\n <ArrowLeft className=\"w-4 h-4\" />\r\n {t(\"backToLogin\", \"Back to login\")}\r\n </Link>\r\n\r\n <hr />\r\n <p className=\"text-sm text-muted-foreground\">\r\n © {new Date().getFullYear()} {t(\"copyright\", \"All rights reserved.\")}\r\n </p>\r\n </div>\r\n </div>\r\n <div className=\"hidden p-4 md:block\">\r\n <img\r\n loading=\"lazy\"\r\n decoding=\"async\"\r\n width=\"1920\"\r\n height=\"1080\"\r\n alt={t(\"imageAlt\", \"Forgot password background\")}\r\n src={image}\r\n className=\"size-full rounded-lg border bg-muted object-cover object-center\"\r\n />\r\n </div>\r\n </section>\r\n );\r\n }\r\n\r\n return (\r\n <section className=\"w-full md:grid md:min-h-screen md:grid-cols-2\">\r\n <div className=\"flex items-center justify-center px-4 py-12\">\r\n <div className=\"mx-auto grid w-full max-w-sm gap-6\">\r\n <Logo />\r\n <hr />\r\n\r\n <div className=\"flex justify-center\">\r\n <div className=\"w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center\">\r\n <Mail className=\"w-6 h-6 text-primary\" />\r\n </div>\r\n </div>\r\n\r\n <div className=\"text-center\">\r\n <h1 className=\"text-xl font-bold tracking-tight\">\r\n {t(\"title\", \"Forgot Password\")}\r\n </h1>\r\n <p className=\"text-sm text-muted-foreground mt-1\">\r\n {t(\"subtitle\", \"Enter your username to reset your password\")}\r\n </p>\r\n </div>\r\n\r\n {error && (\r\n <div className=\"p-3 text-sm text-red-600 bg-red-50 dark:bg-red-950 dark:text-red-400 rounded-md\">\r\n {error}\r\n </div>\r\n )}\r\n\r\n <form onSubmit={handleSubmit} className=\"grid gap-4\">\r\n <div className=\"grid gap-2\">\r\n <Label htmlFor=\"username\">{t(\"username\", \"Username\")}</Label>\r\n <Input\r\n required\r\n id=\"username\"\r\n type=\"text\"\r\n autoComplete=\"username\"\r\n placeholder={t(\"usernamePlaceholder\", \"Enter your username\")}\r\n value={username}\r\n onChange={(e) => setUsername(e.target.value)}\r\n disabled={isLoading}\r\n />\r\n </div>\r\n\r\n <Button type=\"submit\" className=\"w-full\" disabled={isLoading}>\r\n {isLoading ? (\r\n <>\r\n <div className=\"w-4 h-4 border-2 border-primary-foreground border-t-transparent rounded-full animate-spin mr-2\" />\r\n {t(\"sending\", \"Sending...\")}\r\n </>\r\n ) : (\r\n t(\"sendLink\", \"Send Reset Link\")\r\n )}\r\n </Button>\r\n </form>\r\n\r\n <Link\r\n to=\"/login\"\r\n className=\"inline-flex items-center justify-center gap-2 text-sm text-muted-foreground hover:text-foreground\"\r\n >\r\n <ArrowLeft className=\"w-4 h-4\" />\r\n {t(\"backToLogin\", \"Back to login\")}\r\n </Link>\r\n\r\n <hr />\r\n <p className=\"text-sm text-muted-foreground\">\r\n © {new Date().getFullYear()} {t(\"copyright\", \"All rights reserved.\")}\r\n </p>\r\n </div>\r\n </div>\r\n <div className=\"hidden p-4 md:block\">\r\n <img\r\n loading=\"lazy\"\r\n decoding=\"async\"\r\n width=\"1920\"\r\n height=\"1080\"\r\n alt={t(\"imageAlt\", \"Forgot password background\")}\r\n src={image}\r\n className=\"size-full rounded-lg border bg-muted object-cover object-center\"\r\n />\r\n </div>\r\n </section>\r\n );\r\n}\r\n\r\nexport default ForgotPasswordPageSplit;\r\n"
26
+ "content": "import { useState } from \"react\";\nimport { Link } from \"react-router\";\nimport { toast } from \"sonner\";\nimport { useTranslation } from \"react-i18next\";\nimport { usePageTitle } from \"@/hooks/use-page-title\";\nimport { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\nimport { Logo } from \"@/components/Logo\";\nimport { Mail, ArrowLeft, CheckCircle } from \"lucide-react\";\nimport { useAuth } from \"@/modules/auth-core\";\nimport { getErrorMessage } from \"@/modules/api\";\n\ninterface ForgotPasswordPageSplitProps {\n image?: string;\n}\n\nexport function ForgotPasswordPageSplit({\n image = \"/images/placeholder.png\",\n}: ForgotPasswordPageSplitProps) {\n const { t } = useTranslation(\"forgot-password-page-split\");\n usePageTitle({ title: t(\"title\", \"Forgot Password\") });\n const { forgotPassword } = useAuth();\n\n const [username, setUsername] = useState(\"\");\n const [isLoading, setIsLoading] = useState(false);\n const [error, setError] = useState<string | null>(null);\n const [isEmailSent, setIsEmailSent] = useState(false);\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n setError(null);\n setIsLoading(true);\n\n try {\n await forgotPassword(username);\n\n setIsEmailSent(true);\n toast.success(t(\"emailSent\", \"Reset link sent!\"), {\n description: t(\"checkInbox\", \"Please check your email inbox.\"),\n });\n } catch (err) {\n const errorMessage = getErrorMessage(\n err,\n t(\"forgotPasswordError\", \"Failed to send reset link. Please try again.\")\n );\n setError(errorMessage);\n } finally {\n setIsLoading(false);\n }\n };\n\n // Success state - email sent\n if (isEmailSent) {\n return (\n <section className=\"w-full md:grid md:min-h-screen md:grid-cols-2\">\n <div className=\"flex items-center justify-center px-4 py-12\">\n <div className=\"mx-auto grid w-full max-w-sm gap-6 text-center\">\n <Logo />\n <hr />\n\n <div className=\"flex justify-center\">\n <div className=\"w-16 h-16 bg-green-100 dark:bg-green-900/30 rounded-full flex items-center justify-center\">\n <CheckCircle className=\"w-8 h-8 text-green-600 dark:text-green-400\" />\n </div>\n </div>\n\n <div>\n <h1 className=\"text-xl font-bold tracking-tight\">\n {t(\"checkYourEmail\", \"Check your email\")}\n </h1>\n <p className=\"text-sm text-muted-foreground mt-2\">\n {t(\"emailSentTo\", \"We've sent a password reset link to\")}\n </p>\n <p className=\"text-sm font-medium mt-1\">{username}</p>\n </div>\n\n <div className=\"text-sm text-muted-foreground\">\n <p>{t(\"didntReceive\", \"Didn't receive the email?\")}</p>\n <Button\n variant=\"link\"\n className=\"p-0 h-auto\"\n onClick={() => {\n setIsEmailSent(false);\n setError(null);\n }}\n >\n {t(\"tryAgain\", \"Click here to try again\")}\n </Button>\n </div>\n\n <Link\n to=\"/login\"\n className=\"inline-flex items-center justify-center gap-2 text-sm text-muted-foreground hover:text-foreground\"\n >\n <ArrowLeft className=\"w-4 h-4\" />\n {t(\"backToLogin\", \"Back to login\")}\n </Link>\n\n <hr />\n <p className=\"text-sm text-muted-foreground\">\n © {new Date().getFullYear()} {t(\"copyright\", \"All rights reserved.\")}\n </p>\n </div>\n </div>\n <div className=\"hidden p-4 md:block\">\n <img\n loading=\"lazy\"\n decoding=\"async\"\n width=\"1920\"\n height=\"1080\"\n alt={t(\"imageAlt\", \"Forgot password background\")}\n src={image}\n className=\"size-full rounded-lg border bg-muted object-cover object-center\"\n />\n </div>\n </section>\n );\n }\n\n return (\n <section className=\"w-full md:grid md:min-h-screen md:grid-cols-2\">\n <div className=\"flex items-center justify-center px-4 py-12\">\n <div className=\"mx-auto grid w-full max-w-sm gap-6\">\n <Logo />\n <hr />\n\n <div className=\"flex justify-center\">\n <div className=\"w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center\">\n <Mail className=\"w-6 h-6 text-primary\" />\n </div>\n </div>\n\n <div className=\"text-center\">\n <h1 className=\"text-xl font-bold tracking-tight\">\n {t(\"title\", \"Forgot Password\")}\n </h1>\n <p className=\"text-sm text-muted-foreground mt-1\">\n {t(\"subtitle\", \"Enter your username to reset your password\")}\n </p>\n </div>\n\n {error && (\n <div className=\"p-3 text-sm text-red-600 bg-red-50 dark:bg-red-950 dark:text-red-400 rounded-md\">\n {error}\n </div>\n )}\n\n <form onSubmit={handleSubmit} className=\"grid gap-4\">\n <div className=\"grid gap-2\">\n <Label htmlFor=\"username\">{t(\"username\", \"Username\")}</Label>\n <Input\n required\n id=\"username\"\n type=\"text\"\n autoComplete=\"username\"\n placeholder={t(\"usernamePlaceholder\", \"Enter your username\")}\n value={username}\n onChange={(e) => setUsername(e.target.value)}\n disabled={isLoading}\n />\n </div>\n\n <Button type=\"submit\" className=\"w-full\" disabled={isLoading}>\n {isLoading ? (\n <>\n <div className=\"w-4 h-4 border-2 border-primary-foreground border-t-transparent rounded-full animate-spin mr-2\" />\n {t(\"sending\", \"Sending...\")}\n </>\n ) : (\n t(\"sendLink\", \"Send Reset Link\")\n )}\n </Button>\n </form>\n\n <Link\n to=\"/login\"\n className=\"inline-flex items-center justify-center gap-2 text-sm text-muted-foreground hover:text-foreground\"\n >\n <ArrowLeft className=\"w-4 h-4\" />\n {t(\"backToLogin\", \"Back to login\")}\n </Link>\n\n <hr />\n <p className=\"text-sm text-muted-foreground\">\n © {new Date().getFullYear()} {t(\"copyright\", \"All rights reserved.\")}\n </p>\n </div>\n </div>\n <div className=\"hidden p-4 md:block\">\n <img\n loading=\"lazy\"\n decoding=\"async\"\n width=\"1920\"\n height=\"1080\"\n alt={t(\"imageAlt\", \"Forgot password background\")}\n src={image}\n className=\"size-full rounded-lg border bg-muted object-cover object-center\"\n />\n </div>\n </section>\n );\n}\n\nexport default ForgotPasswordPageSplit;\n"
27
27
  },
28
28
  {
29
29
  "path": "forgot-password-page-split/lang/en.json",
30
30
  "type": "registry:lang",
31
31
  "target": "$modules$/forgot-password-page-split/lang/en.json",
32
- "content": "{\r\n \"title\": \"Forgot Password\",\r\n \"subtitle\": \"Enter your username to reset your password\",\r\n \"username\": \"Username\",\r\n \"usernamePlaceholder\": \"Enter your username\",\r\n \"email\": \"Email\",\r\n \"emailPlaceholder\": \"you@example.com\",\r\n \"sendLink\": \"Send Reset Link\",\r\n \"sending\": \"Sending...\",\r\n \"emailSent\": \"Reset link sent!\",\r\n \"checkInbox\": \"Please check your email inbox.\",\r\n \"forgotPasswordError\": \"Failed to send reset link. Please try again.\",\r\n \"checkYourEmail\": \"Check your email\",\r\n \"emailSentTo\": \"We've sent a password reset link to\",\r\n \"didntReceive\": \"Didn't receive the email?\",\r\n \"tryAgain\": \"Click here to try again\",\r\n \"backToLogin\": \"Back to login\",\r\n \"copyright\": \"All rights reserved.\",\r\n \"imageAlt\": \"Forgot password background\"\r\n}\r\n"
32
+ "content": "{\n \"title\": \"Forgot Password\",\n \"subtitle\": \"Enter your username to reset your password\",\n \"username\": \"Username\",\n \"usernamePlaceholder\": \"Enter your username\",\n \"email\": \"Email\",\n \"emailPlaceholder\": \"you@example.com\",\n \"sendLink\": \"Send Reset Link\",\n \"sending\": \"Sending...\",\n \"emailSent\": \"Reset link sent!\",\n \"checkInbox\": \"Please check your email inbox.\",\n \"forgotPasswordError\": \"Failed to send reset link. Please try again.\",\n \"checkYourEmail\": \"Check your email\",\n \"emailSentTo\": \"We've sent a password reset link to\",\n \"didntReceive\": \"Didn't receive the email?\",\n \"tryAgain\": \"Click here to try again\",\n \"backToLogin\": \"Back to login\",\n \"copyright\": \"All rights reserved.\",\n \"imageAlt\": \"Forgot password background\"\n}\n"
33
33
  },
34
34
  {
35
35
  "path": "forgot-password-page-split/lang/tr.json",
36
36
  "type": "registry:lang",
37
37
  "target": "$modules$/forgot-password-page-split/lang/tr.json",
38
- "content": "{\r\n \"title\": \"Şifremi Unuttum\",\r\n \"subtitle\": \"Şifrenizi sıfırlamak için kullanıcı adınızı girin\",\r\n \"username\": \"Kullanıcı Adı\",\r\n \"usernamePlaceholder\": \"Kullanıcı adınızı girin\",\r\n \"email\": \"E-posta\",\r\n \"emailPlaceholder\": \"ornek@email.com\",\r\n \"sendLink\": \"Sıfırlama Linki Gönder\",\r\n \"sending\": \"Gönderiliyor...\",\r\n \"emailSent\": \"Sıfırlama linki gönderildi!\",\r\n \"checkInbox\": \"Lütfen e-posta gelen kutunuzu kontrol edin.\",\r\n \"forgotPasswordError\": \"Sıfırlama linki gönderilemedi. Lütfen tekrar deneyin.\",\r\n \"checkYourEmail\": \"E-postanızı kontrol edin\",\r\n \"emailSentTo\": \"Şifre sıfırlama linki gönderildi:\",\r\n \"didntReceive\": \"E-posta almadınız mı?\",\r\n \"tryAgain\": \"Tekrar denemek için tıklayın\",\r\n \"backToLogin\": \"Girişe dön\",\r\n \"copyright\": \"Tüm hakları saklıdır.\",\r\n \"imageAlt\": \"Şifre sıfırlama arka planı\"\r\n}\r\n"
38
+ "content": "{\n \"title\": \"Şifremi Unuttum\",\n \"subtitle\": \"Şifrenizi sıfırlamak için kullanıcı adınızı girin\",\n \"username\": \"Kullanıcı Adı\",\n \"usernamePlaceholder\": \"Kullanıcı adınızı girin\",\n \"email\": \"E-posta\",\n \"emailPlaceholder\": \"ornek@email.com\",\n \"sendLink\": \"Sıfırlama Linki Gönder\",\n \"sending\": \"Gönderiliyor...\",\n \"emailSent\": \"Sıfırlama linki gönderildi!\",\n \"checkInbox\": \"Lütfen e-posta gelen kutunuzu kontrol edin.\",\n \"forgotPasswordError\": \"Sıfırlama linki gönderilemedi. Lütfen tekrar deneyin.\",\n \"checkYourEmail\": \"E-postanızı kontrol edin\",\n \"emailSentTo\": \"Şifre sıfırlama linki gönderildi:\",\n \"didntReceive\": \"E-posta almadınız mı?\",\n \"tryAgain\": \"Tekrar denemek için tıklayın\",\n \"backToLogin\": \"Girişe dön\",\n \"copyright\": \"Tüm hakları saklıdır.\",\n \"imageAlt\": \"Şifre sıfırlama arka planı\"\n}\n"
39
39
  }
40
40
  ],
41
41
  "exports": {