feat: 搭建控制面管理前端并剥离底座管理功能

1. 新增controlplane/frontend Vue3管理前端,实现登录、账号CRUD、插件上传/管理、权限授权
2. 为controlplane/app.py添加CORS中间件并挂载前端静态产物
3. 重构环境变量加载,统一使用app/common/env.load_app_env()
4. 剥离webhost/的管理UI与代理接口,仅保留基础登录能力
5. 新增环境隔离规范文档与架构蓝图说明
This commit is contained in:
2026-09-09 17:10:12 +08:00
parent 65540fb121
commit 3f901d3882
31 changed files with 2865 additions and 337 deletions
-10
View File
@@ -63,14 +63,6 @@
<span class="scene-name">{{ p.name }}</span>
<em>v{{ p.version }}</em>
</li>
<li
class="admin-entry"
:class="{ active: store.view === 'admin' }"
@click="store.view = 'admin'"
>
<span class="scene-icon" style="background: #3b3f4a">⚙</span>
<span class="scene-name">控制面管理</span>
</li>
</ul>
<div class="side-foot">场景以插件方式接入</div>
</aside>
@@ -78,7 +70,6 @@
<main class="main">
<div class="page-scroll panel">
<PluginPage v-if="store.view === 'plugin'" />
<ManagementView v-else-if="store.view === 'admin'" />
</div>
<LogPanel />
</main>
@@ -90,7 +81,6 @@
import { computed, onMounted, ref } from 'vue'
import PluginPage from './components/PluginPage.vue'
import LogPanel from './components/LogPanel.vue'
import ManagementView from './components/ManagementView.vue'
import LoginPage from './components/LoginPage.vue'
import { store, handleEvent, clearLogs } from './store'
import { connectWS, fetchMeta, loginPlatform, adminLogout } from './api'