How dushixiang/next-terminal works
Project type and purpose
• From the file‐tree and README, this repo is the *front‐end* of Next Terminal: a React/TypeScript/Vite single‐page application (SPA) that provides an interactive auditing dashboard and terminal access UI. It is part of a larger full‐stack system where the UI communicates with a REST/gateway backend to manage remote sessions (RDP, SSH, VNC, etc.), recording, auditing, and compliance.
File structure
• Top‐level:
• index.html + src/main.tsx bootstraps the React app via Vite.
• src/App.tsx is the root component.
• src/pages/… holds route‐based page components (access, account, identity, audit, sysops, etc.).
• src/components/…, components/ui/…, and components/theme-provider.tsx implement reusable UI primitives (buttons, tables, charts, modals, theme).
• src/api/… contains a thin REST client layer—one file per endpoint—built atop src/api/core (generic request, event emitter).
• src/layout/… defines application shells (ManagerLayout, UserLayout, header/footer).
• src/hook/… holds custom React hooks for state, theme, language, session, Guacamole integration.
• src/utils/…, lib/utils.ts: utility functions.
• public, assets: static assets and images.
• Configs: vite.config.ts, tsconfig.json, tailwind.config.js, PostCSS.