Files
ctms/onlyoffice/Dockerfile
T
chengchengzhou7 6c45cef4b7
Client Quality Gates / Shared client and Web (push) Has been cancelled
Client Quality Gates / macOS Desktop (push) Has been cancelled
Storage Persistence Guard / storage-persistence-audit (push) Has been cancelled
Client Quality Gates / Shared client and Web (pull_request) Has been cancelled
Client Quality Gates / macOS Desktop (pull_request) Has been cancelled
Storage Persistence Guard / storage-persistence-audit (pull_request) Has been cancelled
同步全局协作台账与工作台界面优化
工作台新增与项目平级的全局协作台账,复用共享库在线协作能力。两本台账使用合同台账明细表、临床运营项目编号的空白模板,支持独立账号授权、在线编辑和历史版本保留,禁止删除整个台账及历史版本。

台账管理拆分为信息维护、访问与权限、历史版本三个独立入口;后两者与项目共享组件。统一项目和台账的卡片高度、数量徽标与标题布局,缩小工作台顶部留白,优化信息维护弹窗,并修复空用途说明和版本命名的默认提示。同步现有飞线图白色残影修复,以及在线文档的字体构建支持。

已验证:前端五百五十四项测试、后端台账与在线文档七十四项测试、类型检查、界面约束、运行时边界、桌面发布静态检查、网页构建和本地桌面应用构建均通过。数据库表结构升级已完成离线脚本生成检查,存储持久化检查通过。桌面凭据测试显式隔离构建环境,并覆盖使用默认服务器地址读取凭据的场景;在注入默认服务器地址的环境中完成全部前端测试。

提交包含必需的表结构升级和只有表头的初始模板;不包含本地台账业务记录、数据库导出、账号授权运行数据或上传目录中的历史文件。字体文件沿用部署方单独提供的方式。
2026-09-04 08:42:21 +08:00

36 lines
1.7 KiB
Docker

ARG ONLYOFFICE_IMAGE=onlyoffice/documentserver:9.4.0.1
FROM ${ONLYOFFICE_IMAGE}
USER root
# Use redistributable Noto CJK fonts for Chinese document preview. Proprietary
# Microsoft fonts must be supplied separately by an authorized deployment.
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends fonts-noto-cjk \
&& rm -rf /var/lib/apt/lists/*
# CTMS defines "Save As" as creating a workspace copy. Keep the upstream
# request-save-as event, but use the product terminology in every Chinese editor.
RUN locale_root=/var/www/onlyoffice/documentserver/web-apps/apps \
&& matches="$(grep -RIl '另存副本为' "$locale_root"/*/main/locale/zh.json)" \
&& test -n "$matches" \
&& sed -i 's/另存副本为/另存为/g' $matches \
&& ! grep -RIl '另存副本为' "$locale_root"/*/main/locale/zh.json
# Deployment-supplied fonts are kept out of Git, but included in local builds.
COPY fonts/ /usr/local/share/fonts/ctms/
# The upstream image contains an older Times New Roman family. Remove those
# duplicates only when the deployment supplies all four replacement faces.
RUN if [ -s /usr/local/share/fonts/ctms/times.ttf ] \
&& [ -s /usr/local/share/fonts/ctms/timesbd.ttf ] \
&& [ -s /usr/local/share/fonts/ctms/timesi.ttf ] \
&& [ -s /usr/local/share/fonts/ctms/timesbi.ttf ]; then \
rm -f /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman*.ttf \
/usr/share/fonts/truetype/msttcorefonts/times.ttf \
/usr/share/fonts/truetype/msttcorefonts/timesbd.ttf \
/usr/share/fonts/truetype/msttcorefonts/timesi.ttf \
/usr/share/fonts/truetype/msttcorefonts/timesbi.ttf; \
fi \
&& fc-cache -f