功能(文档预览):集成 ONLYOFFICE 安全只读预览与工作台体验
新增 ONLYOFFICE 配置签名、内部内容接口、容器编排与反向代理。 打通网页端和桌面端独立预览工作区,完善文档入口、布局及帮助体验。 补充桌面安全发布门禁、开发脚本、使用文档和前后端测试。
This commit is contained in:
@@ -2,6 +2,7 @@ import { readFileSync } from "node:fs";
|
||||
|
||||
const main = readFileSync("src/styles/main.css", "utf8");
|
||||
const unified = readFileSync("src/styles/unified-page.css", "utf8");
|
||||
const webLayout = readFileSync("src/components/WebLayout.vue", "utf8");
|
||||
|
||||
const requiredMainTokens = [
|
||||
"--ctms-primary",
|
||||
@@ -31,6 +32,29 @@ const missing = [
|
||||
...requiredUnifiedTokens.filter((t) => !unified.includes(t))
|
||||
];
|
||||
|
||||
const requiredWebEdgeTokens = [
|
||||
".web-layout-container .ctms-route-shell > *",
|
||||
".web-layout-container .ctms-route-shell > .page > .table-card"
|
||||
];
|
||||
|
||||
for (const token of requiredWebEdgeTokens) {
|
||||
if (!main.includes(token)) {
|
||||
missing.push(`src/styles/main.css:${token}`);
|
||||
}
|
||||
}
|
||||
|
||||
if (!/\.web-layout-container \.content-wrapper\s*\{[^}]*padding:\s*0;/s.test(webLayout)) {
|
||||
missing.push("src/components/WebLayout.vue:web content wrapper edge alignment");
|
||||
}
|
||||
|
||||
if (!/\.web-layout-container \.content-wrapper\s*\{[^}]*height:\s*100%;[^}]*min-height:\s*0;/s.test(webLayout)) {
|
||||
missing.push("src/components/WebLayout.vue:web content height chain");
|
||||
}
|
||||
|
||||
if (webLayout.includes("padding: 18px 24px 24px;") || webLayout.includes("padding: 22px 32px 32px;")) {
|
||||
missing.push("src/components/WebLayout.vue:large-screen content padding override");
|
||||
}
|
||||
|
||||
const pageContractChecks = [
|
||||
{
|
||||
file: "src/views/ia/ProjectMilestones.vue",
|
||||
|
||||
Reference in New Issue
Block a user