diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4f067f6 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,12 @@ +[submodule "DBIS"] + path = DBIS + url = https://gitea.d-bis.org/Gov_Web_Portals/DBIS.git +[submodule "ICCC"] + path = ICCC + url = https://gitea.d-bis.org/Gov_Web_Portals/ICCC.git +[submodule "OMNL"] + path = OMNL + url = https://gitea.d-bis.org/Gov_Web_Portals/OMNL.git +[submodule "XOM"] + path = XOM + url = https://gitea.d-bis.org/Gov_Web_Portals/XOM.git diff --git a/DBIS b/DBIS new file mode 160000 index 0000000..7cc2042 --- /dev/null +++ b/DBIS @@ -0,0 +1 @@ +Subproject commit 7cc20421015f20de2d86f28a68d40db2b20e9a63 diff --git a/DBIS/.env.example b/DBIS/.env.example deleted file mode 100644 index 8e389e0..0000000 --- a/DBIS/.env.example +++ /dev/null @@ -1,8 +0,0 @@ -# Next.js -NEXTAUTH_URL=http://localhost:3000 - -# OIDC / OAuth 2.0 (placeholder until identity provider is configured) -# OIDC_ISSUER= -# OIDC_CLIENT_ID= -# OIDC_CLIENT_SECRET= -# OIDC_REDIRECT_URI= diff --git a/DBIS/.eslintrc.cjs b/DBIS/.eslintrc.cjs deleted file mode 100644 index 53dff50..0000000 --- a/DBIS/.eslintrc.cjs +++ /dev/null @@ -1,5 +0,0 @@ -/** @type { import("eslint").Linter.Config } */ -module.exports = { - root: true, - extends: ["../.eslintrc.cjs", "next/core-web-vitals"], -}; diff --git a/DBIS/.gitignore b/DBIS/.gitignore deleted file mode 100644 index 71f76af..0000000 --- a/DBIS/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -node_modules/ -.next/ -out/ -dist/ -.env -.env.local -.env.*.local diff --git a/DBIS/README.md b/DBIS/README.md deleted file mode 100644 index 2d6b6d2..0000000 --- a/DBIS/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# DBIS Portal - -Portal for the **Digital Bank of International Settlements**. - -**Gitea repository:** https://gitea.d-bis.org/Gov_Web_Portals/DBIS.git Next-generation web application following the shared tech stack and policies. - -## Run locally - -```bash -pnpm install -pnpm dev -``` - -Open [http://localhost:3000](http://localhost:3000). - -## Environment - -Copy `.env.example` to `.env.local` and set values. No secrets in repo. - -## Standards - -- [TECH_STACK.md](../TECH_STACK.md) -- [TECH_POLICIES.md](../TECH_POLICIES.md) -- [PORTAL_NAVIGATION.md](../PORTAL_NAVIGATION.md) -- [ORG_STRUCTURE.md](../ORG_STRUCTURE.md) - -## Structure - -Same app structure as other portals: public routes, transparency, workflow (submit/apply/report/request), dashboard, auth. Entity-specific routes: Financial Bulletins, Monetary Operations. diff --git a/DBIS/app/(auth)/login/page.tsx b/DBIS/app/(auth)/login/page.tsx deleted file mode 100644 index 48101a9..0000000 --- a/DBIS/app/(auth)/login/page.tsx +++ /dev/null @@ -1,55 +0,0 @@ -"use client"; - -import { Suspense } from "react"; -import { useSearchParams } from "next/navigation"; -import Link from "next/link"; - -function LoginForm() { - const searchParams = useSearchParams(); - const returnUrl = searchParams.get("returnUrl") ?? "/dashboard"; - - return ( -
-

Sign in

-

- Placeholder login. Replace with OIDC/OAuth 2.0 when identity provider is configured. -

-
- -
- - -
- -
-

- - Return to previous page - -

-
- ); -} - -export default function LoginPage() { - return ( - Loading...}> - - - ); -} diff --git a/DBIS/app/(auth)/logout/page.tsx b/DBIS/app/(auth)/logout/page.tsx deleted file mode 100644 index fd763a6..0000000 --- a/DBIS/app/(auth)/logout/page.tsx +++ /dev/null @@ -1,20 +0,0 @@ -"use client"; - -import { useEffect } from "react"; -import Link from "next/link"; - -export default function LogoutPage() { - useEffect(() => { - document.cookie = "portal-role=; path=/; max-age=0"; - }, []); - - return ( -
-

Signed out

-

You have been signed out.

- - Return to home - -
- ); -} diff --git a/DBIS/app/(public)/about/page.tsx b/DBIS/app/(public)/about/page.tsx deleted file mode 100644 index 0b87c58..0000000 --- a/DBIS/app/(public)/about/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function AboutPage() { - return ( -
-

Mandate

-

About the Digital Bank of International Settlements.

-
- ); -} diff --git a/DBIS/app/(public)/accreditation/page.tsx b/DBIS/app/(public)/accreditation/page.tsx deleted file mode 100644 index c5e95d2..0000000 --- a/DBIS/app/(public)/accreditation/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function AccreditationPage() { - return ( -
-

Accreditation

-

Accreditation and credentials.

-
- ); -} diff --git a/DBIS/app/(public)/contact/page.tsx b/DBIS/app/(public)/contact/page.tsx deleted file mode 100644 index 7bb6a85..0000000 --- a/DBIS/app/(public)/contact/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function ContactPage() { - return ( -
-

Contact

-

General contact and enquiries.

-
- ); -} diff --git a/DBIS/app/(public)/departments/page.tsx b/DBIS/app/(public)/departments/page.tsx deleted file mode 100644 index ed01731..0000000 --- a/DBIS/app/(public)/departments/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function DepartmentsPage() { - return ( -
-

Departments

-

Mission departments and programs.

-
- ); -} diff --git a/DBIS/app/(public)/documents/page.tsx b/DBIS/app/(public)/documents/page.tsx deleted file mode 100644 index c641e1d..0000000 --- a/DBIS/app/(public)/documents/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function DocumentsPage() { - return ( -
-

Documents

-

Library, standards, and directives.

-
- ); -} diff --git a/DBIS/app/(public)/governance/page.tsx b/DBIS/app/(public)/governance/page.tsx deleted file mode 100644 index 8cf0212..0000000 --- a/DBIS/app/(public)/governance/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function GovernancePage() { - return ( -
-

Governance

-

Charters, instruments, and governance.

-
- ); -} diff --git a/DBIS/app/(public)/leadership/page.tsx b/DBIS/app/(public)/leadership/page.tsx deleted file mode 100644 index ff1f679..0000000 --- a/DBIS/app/(public)/leadership/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function LeadershipPage() { - return ( -
-

Leadership

-

Executive leadership and secretariat.

-
- ); -} diff --git a/DBIS/app/(public)/membership/page.tsx b/DBIS/app/(public)/membership/page.tsx deleted file mode 100644 index cf191d0..0000000 --- a/DBIS/app/(public)/membership/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function MembershipPage() { - return ( -
-

Membership

-

Member directory and accreditation.

-
- ); -} diff --git a/DBIS/app/(public)/news/page.tsx b/DBIS/app/(public)/news/page.tsx deleted file mode 100644 index 57d0061..0000000 --- a/DBIS/app/(public)/news/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function NewsPage() { - return ( -
-

News

-

News and announcements.

-
- ); -} diff --git a/DBIS/app/(public)/org-chart/page.tsx b/DBIS/app/(public)/org-chart/page.tsx deleted file mode 100644 index e01d431..0000000 --- a/DBIS/app/(public)/org-chart/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function OrgChartPage() { - return ( -
-

Org Chart

-

Organizational structure.

-
- ); -} diff --git a/DBIS/app/(public)/programs/page.tsx b/DBIS/app/(public)/programs/page.tsx deleted file mode 100644 index 57d0bb0..0000000 --- a/DBIS/app/(public)/programs/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function ProgramsPage() { - return ( -
-

Programs

-

Programs and initiatives.

-
- ); -} diff --git a/DBIS/app/(public)/publications/page.tsx b/DBIS/app/(public)/publications/page.tsx deleted file mode 100644 index 6b329f6..0000000 --- a/DBIS/app/(public)/publications/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function PublicationsPage() { - return ( -
-

Publications

-

Publications and reports.

-
- ); -} diff --git a/DBIS/app/(public)/regions/page.tsx b/DBIS/app/(public)/regions/page.tsx deleted file mode 100644 index 66978cc..0000000 --- a/DBIS/app/(public)/regions/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function RegionsPage() { - return ( -
-

Regional Offices

-

Americas, EMEA, APAC delegations and field missions.

-
- ); -} diff --git a/DBIS/app/(public)/standards/page.tsx b/DBIS/app/(public)/standards/page.tsx deleted file mode 100644 index 9327ef0..0000000 --- a/DBIS/app/(public)/standards/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function StandardsPage() { - return ( -
-

Standards

-

Standards and codes.

-
- ); -} diff --git a/DBIS/app/api/auth/mock-login/route.ts b/DBIS/app/api/auth/mock-login/route.ts deleted file mode 100644 index 57f672f..0000000 --- a/DBIS/app/api/auth/mock-login/route.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { NextRequest, NextResponse } from "next/server"; - -export async function POST(request: NextRequest) { - const form = await request.formData(); - const returnUrl = (form.get("returnUrl") as string) ?? "/dashboard"; - const role = (form.get("role") as string) ?? "member"; - const res = NextResponse.redirect(new URL(returnUrl, request.url)); - res.cookies.set("portal-role", role, { path: "/", httpOnly: true, maxAge: 60 * 60 * 24 }); - return res; -} diff --git a/DBIS/app/apply/page.tsx b/DBIS/app/apply/page.tsx deleted file mode 100644 index 7ee15cb..0000000 --- a/DBIS/app/apply/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function ApplyPage() { - return ( -
-

Apply

-

Apply for membership or accreditation.

-
- ); -} diff --git a/DBIS/app/dashboard/layout.tsx b/DBIS/app/dashboard/layout.tsx deleted file mode 100644 index 680435b..0000000 --- a/DBIS/app/dashboard/layout.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import Link from "next/link"; -import type { ReactNode } from "react"; - -export default function DashboardLayout({ children }: { children: ReactNode }) { - return ( -
- -
{children}
-
- ); -} diff --git a/DBIS/app/dashboard/page.tsx b/DBIS/app/dashboard/page.tsx deleted file mode 100644 index 199cd04..0000000 --- a/DBIS/app/dashboard/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function DashboardPage() { - return ( -
-

Dashboard

-

Role-based dashboard.

-
- ); -} diff --git a/DBIS/app/dashboard/requests/page.tsx b/DBIS/app/dashboard/requests/page.tsx deleted file mode 100644 index eb94812..0000000 --- a/DBIS/app/dashboard/requests/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function RequestsPage() { - return ( -
-

My requests

-

Track your requests.

-
- ); -} diff --git a/DBIS/app/dashboard/submissions/page.tsx b/DBIS/app/dashboard/submissions/page.tsx deleted file mode 100644 index dc57c54..0000000 --- a/DBIS/app/dashboard/submissions/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function SubmissionsPage() { - return ( -
-

My submissions

-

Track your submissions and status.

-
- ); -} diff --git a/DBIS/app/departments/monetary-operations/page.tsx b/DBIS/app/departments/monetary-operations/page.tsx deleted file mode 100644 index b92072a..0000000 --- a/DBIS/app/departments/monetary-operations/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function MonetaryOperationsPage() { - return ( -
-

Monetary Operations

-

Digital reserves and monetary operations.

-
- ); -} diff --git a/DBIS/app/documents/bulletins/page.tsx b/DBIS/app/documents/bulletins/page.tsx deleted file mode 100644 index ce3a40d..0000000 --- a/DBIS/app/documents/bulletins/page.tsx +++ /dev/null @@ -1,8 +0,0 @@ -export default function BulletinsPage() { - return ( -
-

Financial Bulletins

-

DBIS financial bulletins and reports.

-
- ); -} diff --git a/DBIS/app/globals.css b/DBIS/app/globals.css deleted file mode 100644 index b5c61c9..0000000 --- a/DBIS/app/globals.css +++ /dev/null @@ -1,3 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; diff --git a/DBIS/app/layout.tsx b/DBIS/app/layout.tsx deleted file mode 100644 index b847156..0000000 --- a/DBIS/app/layout.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import type { Metadata } from "next"; -import type { ReactNode } from "react"; -import "./globals.css"; -import { Header } from "@/components/layout/Header"; -import { Footer } from "@/components/layout/Footer"; - -export const metadata: Metadata = { - title: "Digital Bank of International Settlements", - description: "Official portal of the Digital Bank of International Settlements", -}; - -export default function RootLayout({ - children, -}: Readonly<{ - children: ReactNode; -}>) { - return ( - - - - Skip to main content - -
-
- {children} -
-