feat(R2)+refactor: 平台管理分区 + 删 3 桩页(档案80 #7)+ 无浏览器验收脚本

- R2:business-plugins 0.2.9 新增原生「平台管理」只读分区(已铺发到 admin/guest profile 并生效)
- 档案80 #7:删 web/{desktop,plugins,skills}.html(9→6 页)+ 5 处引用改直达 portal(nginx 已加 301)
- 新增 scripts/verify-platform-admin-section.mjs(打桩 react/jsx-runtime 真执行 client.js 做渲染断言)并接入 npm run verify
This commit is contained in:
admin committed 2026-09-13 19:27:30 +08:00
1 parent 8d5597b3f9
commit f25723b743
9 files changed
+121 -39

No files matched your search

+1 -1
View File
@@ -184,7 +184,7 @@ export const dshRoutes: FastifyPluginAsync = async (app) => {
// 所有已放行角色(admin / active)统一:已运行实例复用其 launchToken URL,
// 未运行则在 ws 根目录 launch 后返回带 token 的会话 URL。
// desktop 管理台不再作为登录落点,admin 经会话侧栏"门户/管理台"入口或直
// 接访问 /desktop.html 进入。
// 接访问 /portal.html 进入。
app.post('/api/dsh/enter', { preHandler: requireAuth }, async (request, reply) => {
const user = request.user!
if (user.role !== 'active' && user.role !== 'admin') return reply.code(403).send({ error: 'not_allowed' })