Diagrams是一个云系统架构原型图制作库,它的诞生是为了在没有任何设计工具的情况下对新的系统架构进行原型设计。您还可以描述或可视化现有系统架构,Diagram as Code允许您跟踪任何版本控制系统中的架构图更改。相比于在 UI 上面对各种图标进行拖拽和调整,这种方式更符合我们程序员的使用习惯。
Share props gain four flags: allow_upload, allow_edit, preview_only,
upload_only. Enforcement is server-side through a layered model:
- static share-navigator capability superset admits operations to share
resolution; props-derived capability set is stamped on resolved files
- writePermitted() replaces owner-equality checks on write paths so
visitors act only within the share's granted capabilities
- upload-only shares return no children and strip read/edit caps
- preview-only shares keep entity fetches for inline viewers but deny
explicit downloads and direct links via IsDownloadCtxKey in hooks
- move/copy allowed within the same share only; cross-share rejected
- new files created under a share belong to the share owner and count
towards their storage quota
Frontend exposes the flags in the share dialog (folder-scoped for
write toggles), renders write actions for permitted share visitors via
the capability boolset, and hides the download button on preview-only
share pages. en-US and zh-CN strings added.
Metadata/props, version control and restore remain owner-only.
Authored By: TDvorak <info@tdvorak.dev>
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>