Initial commit: Rampart v0.2.0
Multi-layer DDoS protection for Minecraft servers. - rampart-core: Edge node with XDP/eBPF + Rust L7 filtering - rampart-manager: REST API with JWT auth, Redis sync - rampart-cli: CLI tool for operators - velocity-plugin: Domain check, HMAC verify, server registry, load balancer - paper-plugin: Auto-registration, heartbeat, HMAC verify - dashboard: React + Vite web UI for management
This commit is contained in:
commit
cf9608ce5d
159 changed files with 15341 additions and 0 deletions
17
dashboard/src/App.tsx
Normal file
17
dashboard/src/App.tsx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { useState } from 'react'
|
||||
import Login from './components/Login'
|
||||
import Layout from './components/Layout'
|
||||
|
||||
function App() {
|
||||
const [token, setToken] = useState<string | null>(
|
||||
() => sessionStorage.getItem('rampart_token')
|
||||
)
|
||||
|
||||
if (!token) {
|
||||
return <Login onLogin={(t) => setToken(t)} />
|
||||
}
|
||||
|
||||
return <Layout />
|
||||
}
|
||||
|
||||
export default App
|
||||
Loading…
Add table
Add a link
Reference in a new issue