Adds the full Next.js app (app/, components/, lib/, scripts/, assets/, docs/, Dockerfile, compose, configs) to version control. Security: - CIPC BizPortal customer-code logins (Login 1 + Login 3) now read CIPC_LOGIN1_CODE / CIPC_LOGIN1_PASSWORD / CIPC_LOGIN3_CODE / CIPC_LOGIN3_PASSWORD from .env.local instead of source. - BizPortal personal login in apply-bizportal route reads BIZPORTAL_ID_NO / BIZPORTAL_PASSWORD. - Added .env.example as the committed template. .gitignore excludes .env*, node_modules, .next, logs, sqlite, Playwright storage_state.json (live CIPC cookies), scratch dirs, client PDFs and debug screenshots.
22 lines
No EOL
598 B
TypeScript
22 lines
No EOL
598 B
TypeScript
// app/providers.tsx
|
|
// Client-side providers wrapped around the whole app. Currently just
|
|
// next-themes; QueryProvider already lives inside RootLayout so it
|
|
// stays as-is to keep the QueryClient boundary above the navbar.
|
|
|
|
"use client";
|
|
|
|
import { ThemeProvider } from "next-themes";
|
|
import type { ReactNode } from "react";
|
|
|
|
export default function Providers({ children }: { children: ReactNode }) {
|
|
return (
|
|
<ThemeProvider
|
|
attribute="data-theme"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange={false}
|
|
>
|
|
{children}
|
|
</ThemeProvider>
|
|
);
|
|
} |