update the usermananegement config

This commit is contained in:
mengstabketemaw
2026-06-13 09:36:40 +03:00
parent 2c9ec9a85d
commit 01c10777e5
9 changed files with 29 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -7,7 +7,7 @@
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no"
/>
<title>User Management</title>
<title>EMA Portal</title>
</head>
<body>
<div id="root"></div>

View File

@@ -1,11 +1,22 @@
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
// Consume the reusable module via its public barrel (@/ → ../user-management/src).
import i18n from "@/i18n";
import { UserManagementApp } from "@/index";
// Your project's config lives HERE in the host folder (resolved via @app-config).
// The module never imports it; the host passes it in.
import { projectTheme } from "@app-config/project.theme";
// Override submodule translation texts for EMA branding
// (the submodule is a readonly git submodule, so we patch i18n at runtime here)
i18n.addResourceBundle("en", "translation", {
auth: {
welcomeHeadline: "Welcome to EMA Portal",
paperlessOffice: "Ethiopian Maritime Authority",
welcomeSubtext: "Sign in to access your maritime services efficiently.",
},
}, true, true);
createRoot(document.getElementById("root")!).render(
<StrictMode>
<UserManagementApp config={projectTheme} />

View File

@@ -27,11 +27,9 @@ export const projectTheme: DesignConfig = {
// Replace with your organisation's assets.
// ─────────────────────────────────────────────────────────────────────────
brand: {
appName: "Federal Housing Corporation", // FHC — shown in the browser tab
// Drop the FHC logo at this path in /public to show it in the sidebar brand
// and as the favicon. Until then the sidebar falls back to a building icon.
// logoUrl: "/assets/logo/fhc.png",
// faviconUrl: "/favicon.ico", // optional — defaults to logoUrl
appName: "EMA Portal", // EMA — shown in the browser tab
logoUrl: "/assets/ema-logo.png",
faviconUrl: "/assets/ema-logo.png",
},
// ─────────────────────────────────────────────────────────────────────────
@@ -132,8 +130,8 @@ export const projectTheme: DesignConfig = {
sidebarHoverBackground: "rgba(255,255,255,0.08)",
sidebarBorder: "rgba(255,255,255,0.10)",
sidebarRail: "linear-gradient(180deg, #4A90E2 0%, #1A3A5C 100%)",
sidebarBrandLabel: "User Management",
sidebarBrandSublabel: "Federal Housing",
sidebarBrandLabel: "EMA Portal",
sidebarBrandSublabel: "User Management",
// ── THE MENU (data, shared by the side menu AND the top tabs) ──────────
// Edit/add/remove freely. `icon` is a name from the registry in