mirror of
https://github.com/insistence/RuoYi-Vue3-FastAPI.git
synced 2026-10-15 13:25:45 +00:00
* feat: 支持 v2 插件、原生扩展与签名发布 * fix: 修复测试 * feat: 增强宿主 SDK、运行观测与制品维护能力 * feat: 增强文件传输、配置观测与本地开发能力 * feat: 支持 SSE 实时事件流并完善开发脚手架 * feat: 完善长连接鉴权复核与关闭回收 * feat: 增强生命周期与任务关闭可靠性 * feat: 收紧健康检查契约并补齐前端与真实网络验收 * feat: 增加SDK溯源与离线更新工具并验证跨版本兼容 * feat: 增加持久化业务示例与受控 Python 交付 * feat: 增加统一运行诊断与多worker状态观测 * feat: 增加固定目标发布等待与自动验收 * fix: 修复多环境插件部署前缀与代理配置不一致 * fix: 修复测试
99 lines
4.2 KiB
HTML
99 lines
4.2 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>独立前端示例</title>
|
|
</head>
|
|
<body>
|
|
<main aria-busy="true" id="workspace">
|
|
<header>
|
|
<div>
|
|
<p class="eyebrow">插件应用</p>
|
|
<h1>独立前端示例</h1>
|
|
<p class="description">查看当前会话,并验证页面与服务端的通信。</p>
|
|
</div>
|
|
<button id="refresh" type="button">刷新状态</button>
|
|
</header>
|
|
<p id="notice" class="notice" role="status" aria-live="polite">正在连接管理平台…</p>
|
|
<section class="facts" aria-label="当前会话">
|
|
<article>
|
|
<h2>当前用户</h2>
|
|
<p id="user-name">等待连接</p>
|
|
</article>
|
|
<article>
|
|
<h2>显示时区</h2>
|
|
<p id="time-zone">等待连接</p>
|
|
</article>
|
|
<article>
|
|
<h2>服务端时间</h2>
|
|
<p id="server-time">等待连接</p>
|
|
</article>
|
|
</section>
|
|
<section class="panel">
|
|
<nav aria-label="示例内容">
|
|
<button id="overview" type="button" aria-current="page">通信测试</button>
|
|
<button id="details" type="button">接入说明</button>
|
|
</nav>
|
|
<div id="overview-panel">
|
|
<h2>发送一条测试消息</h2>
|
|
<p class="description">消息仅用于回显,不保存到业务数据库。</p>
|
|
<form id="echo-form">
|
|
<label for="message">测试消息</label>
|
|
<div class="input-row">
|
|
<input id="message" name="message" maxlength="80" required value="独立页面连接成功" />
|
|
<button id="send" type="submit">发送测试</button>
|
|
</div>
|
|
</form>
|
|
<p id="echo-result" role="status" aria-live="polite" class="result">
|
|
发送后将在这里显示结果。
|
|
</p>
|
|
<section class="file-panel" aria-labelledby="file-heading">
|
|
<h2 id="file-heading">文件传输</h2>
|
|
<p class="description">上传仅检查文件摘要,不保存内容。单文件最多 10 MiB。</p>
|
|
<form id="file-form">
|
|
<label for="file">选择文件</label>
|
|
<div class="input-row">
|
|
<input id="file" type="file" required />
|
|
<button id="upload" type="submit">上传检查</button>
|
|
</div>
|
|
</form>
|
|
<div class="file-actions">
|
|
<button id="download" type="button">下载示例报表</button>
|
|
<button id="cancel-transfer" type="button" disabled>取消传输</button>
|
|
</div>
|
|
<progress
|
|
id="file-progress"
|
|
max="100"
|
|
value="0"
|
|
aria-label="文件传输进度"
|
|
hidden
|
|
></progress>
|
|
<p id="file-result" class="result" role="status" aria-live="polite">
|
|
等待选择文件或下载报表。
|
|
</p>
|
|
</section>
|
|
<section class="file-panel" aria-labelledby="stream-heading">
|
|
<h2 id="stream-heading">实时事件</h2>
|
|
<p class="description">逐条接收服务端状态。停止或断开后,可从上次收到的位置继续。</p>
|
|
<div class="file-actions">
|
|
<button id="start-stream" type="button">接收实时事件</button>
|
|
<button id="stop-stream" type="button" disabled>停止接收</button>
|
|
</div>
|
|
<p id="stream-status" class="result" role="status" aria-atomic="true">尚未开始接收。</p>
|
|
<ol id="stream-events" aria-label="最近收到的事件" class="stream-events"></ol>
|
|
</section>
|
|
</div>
|
|
<div id="details-panel" hidden>
|
|
<h2>独立构建,统一访问</h2>
|
|
<p class="description">
|
|
此页面来自插件自己的构建目录。主题、语言、时区与页面导航通过宿主桥同步;请求沿用宿主的权限和传输加密规则。
|
|
</p>
|
|
<p class="description">浏览器会话限定当前插件,退出管理平台后会失效。</p>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
<script type="module" src="/src/main.js"></script>
|
|
</body>
|
|
</html>
|