feat: add socks5 listener support

This commit is contained in:
xiamuceer-j
2026-03-06 16:13:41 +08:00
parent c37f26f376
commit 5484d6f65a
3 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "frontend", "name": "frontend",
"version": "0.0.0", "version": "1.0.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "frontend", "name": "frontend",
"version": "0.0.0", "version": "1.0.1",
"dependencies": { "dependencies": {
"react": "^19.2.0", "react": "^19.2.0",
"react-dom": "^19.2.0" "react-dom": "^19.2.0"
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "frontend", "name": "frontend",
"private": true, "private": true,
"version": "0.0.0", "version": "1.0.1",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
+4 -1
View File
@@ -5,6 +5,7 @@ import DebugPanel from './components/DebugPanel'
import SettingsPanel from './components/SettingsPanel' import SettingsPanel from './components/SettingsPanel'
import LoginPage from './components/LoginPage' import LoginPage from './components/LoginPage'
import { checkAuth, getToken, logout } from './api/client' import { checkAuth, getToken, logout } from './api/client'
import packageJson from '../package.json'
type AuthState = 'loading' | 'need_login' | 'authenticated' type AuthState = 'loading' | 'need_login' | 'authenticated'
type TabId = 'monitor' | 'manage' | 'debug' | 'settings' type TabId = 'monitor' | 'manage' | 'debug' | 'settings'
@@ -65,6 +66,8 @@ const MENU_ITEMS: { id: TabId; label: string; icon: React.ReactNode; desc: strin
const VALID_TABS: TabId[] = ['monitor', 'manage', 'debug', 'settings'] const VALID_TABS: TabId[] = ['monitor', 'manage', 'debug', 'settings']
const THEME_STORAGE_KEY = 'ep-theme' const THEME_STORAGE_KEY = 'ep-theme'
const APP_VERSION = `v${packageJson.version}`
const DARK_THEMES = new Set([ const DARK_THEMES = new Set([
'dark', 'synthwave', 'halloween', 'forest', 'black', 'luxury', 'dark', 'synthwave', 'halloween', 'forest', 'black', 'luxury',
'dracula', 'business', 'night', 'coffee', 'dim', 'sunset', 'abyss', 'dracula', 'business', 'night', 'coffee', 'dim', 'sunset', 'abyss',
@@ -379,7 +382,7 @@ function App() {
</div> </div>
<div className="flex flex-col"> <div className="flex flex-col">
<span className="text-sm font-semibold text-base-content/80">系统运行正常</span> <span className="text-sm font-semibold text-base-content/80">系统运行正常</span>
<span className="text-xs text-base-content/40">v1.0.0</span> <span className="text-xs text-base-content/40">{APP_VERSION}</span>
</div> </div>
</div> </div>
</div> </div>