项目文件夹

文件
TC-fighting ecfc19b7a0
Release / Prepare Scheduled Release (push) Has been skipped
Release / Publish Release (push) Failing after 0s
feat(secplane): add Security Protection Platform frontend console (#156)
Adds the complete Security Protection Platform (secplane) frontend — a
unified admin console covering 4 defense layers:

- Runtime layer: input/state/decision/output surface defense,
  asset tamper-proofing, human approval workflow (6 scenario pages)
- Host layer: host hardening (KSec + Falco/IDS) and container isolation
- Audit layer: SecureClaw data-and-component trust auditing
- Control layer: outbound trusted-endpoint governance, policy governance,
  kill-switch/circuit-breaker, full-chain audit, collaboration governance,
  and input detection (5 scenario pages + 2 collaboration pages)

Includes:
- 9 i18n translation files (en/zh/ja/ko/de) for all secplane modules
- Security overview page and event center
- Category navigation and scenario placeholder system
- Dispatch picker and apply dispatch buttons
- Host hardening service with Falco/IDS template data
- /api/host dev proxy in vite.config for ksec-bridge
- Navigation menu integration in AdminLayout
- Security center breadcrumb navigation
- Instance portal proxy URL fix (use Vite dev proxy)
- package.json: add js-yaml dependency for IDS template parsing
- 5-language README What's New entries for secplane

Excluded (per design):
- authStore.ts dev bypass (VITE_BYPASS_AUTH)
- Backend address override (minikube IP restored to 127.0.0.1:9001)
- Backend secplane Go code (separate PR)
- docs/ and tests/ (separate PRs)

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-13 10:17:34 +08:00
..
2026-03-20 19:06:48 +08:00
2026-03-20 19:06:48 +08:00
2026-03-20 19:06:48 +08:00

ClawReef Frontend

Virtual Desktop Management Platform - React Frontend

Tech Stack

  • React 19
  • TypeScript 5.9+
  • Vite 7+
  • Tailwind CSS 4
  • React Router 6
  • Zustand (State Management)
  • Axios (HTTP Client)
  • TanStack Query (Data Fetching)

Quick Start

Install Dependencies

npm install

Development

npm run dev

Build

npm run build

Environment Variables

Create .env.development file:

VITE_API_URL=http://localhost:9001/api/v1

Frontend dev server runs on port 9002.

Project Structure

src/
├── components/       # UI Components
│   ├── ui/          # Base UI components
│   ├── layout/      # Layout components
│   ├── common/      # Shared components
│   └── forms/       # Form components
├── pages/           # Route pages
│   ├── auth/        # Authentication pages
│   ├── dashboard/   # Dashboard pages
│   ├── instances/   # Instance management
│   └── admin/       # Admin pages
├── services/        # API services
├── stores/          # State management
├── types/           # TypeScript types
├── contexts/        # React contexts
├── router/          # Route configuration
└── lib/             # Utilities

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run preview - Preview production build
  • npm run lint - Run ESLint