From b6ba41e1206139fb0a87bb356f7013c6793a6a98 Mon Sep 17 00:00:00 2001
From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com>
Date: Sat, 23 May 2026 06:55:58 +0700
Subject: [PATCH] feat: add showcase example component and integrate booking
and storage demos
---
apps/web/src/apps/index.tsx | 3 +-
.../src/apps/modules/example/example.page.tsx | 18 +-----
.../apps/showcase/example/example.page.tsx | 22 +++++++
.../booking/data/booking.data-services.ts | 0
.../booking/presentation/BookingSample.tsx | 0
.../features/i18n/locales/en/booking.json | 0
.../features/i18n/locales/id/booking.json | 0
.../features/i18n/presentation/I18nSample.tsx | 63 ++++++++++++-------
.../storage/presentation/StorageSample.tsx | 4 +-
apps/web/src/apps/showcase/showcase-view.tsx | 13 +++-
10 files changed, 80 insertions(+), 43 deletions(-)
create mode 100644 apps/web/src/apps/showcase/example/example.page.tsx
rename apps/web/src/apps/{modules => showcase}/example/features/booking/data/booking.data-services.ts (100%)
rename apps/web/src/apps/{modules => showcase}/example/features/booking/presentation/BookingSample.tsx (100%)
rename apps/web/src/apps/{modules => showcase}/example/features/i18n/locales/en/booking.json (100%)
rename apps/web/src/apps/{modules => showcase}/example/features/i18n/locales/id/booking.json (100%)
rename apps/web/src/apps/{modules => showcase}/example/features/i18n/presentation/I18nSample.tsx (87%)
rename apps/web/src/apps/{modules => showcase}/example/features/storage/presentation/StorageSample.tsx (98%)
diff --git a/apps/web/src/apps/index.tsx b/apps/web/src/apps/index.tsx
index 0b35f3d..7ca77b6 100644
--- a/apps/web/src/apps/index.tsx
+++ b/apps/web/src/apps/index.tsx
@@ -33,8 +33,7 @@ export default function App() {
Current Active Language: {i18n.language} @@ -173,7 +174,14 @@ export default function I18nSample() { type="text" value={adminModuleName} onChange={(e) => setAdminModuleName(e.target.value)} - style={{ padding: 6, borderRadius: 4, background: '#1e293b', border: '1px solid #475569', color: '#fff', width: 250 }} + style={{ + padding: 6, + borderRadius: 4, + background: '#1e293b', + border: '1px solid #475569', + color: '#fff', + width: 250, + }} />
- Simulates a user logging in. It fetches the config directly from IndexedDB (mock database) and applies the deep-merge override. + Simulates a user logging in. It fetches the config directly from IndexedDB (mock database) and applies the + deep-merge override.