f91359f881
build / build (push) Successful in 1m15s
为什么:存储页原来只有占用数字,保留/依赖保护/清理预览写"未接线";这些都不需要生产写权限, 按"未设置就不做决定"的口径实现成只读计算。 - internal/libraryretention:按保留数量/天数生成预览;生产生效、每库最近封存、每次生产预备份、 在飞作业引用一律受保护;回收预览只算独占字节,共享 blob 不计。 - internal/libraryretention.CheckCapacity:预算未设置即不放行(无法证明装得下),超预算阻断; 已并入 POST /library/syncs 的 gate 缺项。 - 新增 GET /api/v1/library/storage:真实归档用量 + 三类版本保护依据 + 策略 + 预览 + 容量,只读。 - 系统设置→存储管理改为读该接口:策略未设置时明确"全部保留、不生成候选",自动清理恒关闭。 - 配置项 LIBRARY_CAPACITY_BUDGET_BYTES / LIBRARY_RETENTION_VERSIONS / LIBRARY_RETENTION_DAYS(未设=0)。
100 lines
1.9 KiB
CSS
100 lines
1.9 KiB
CSS
.library-storage {
|
|
border: 1px solid var(--border-base, #e2e8f0);
|
|
border-radius: 10px;
|
|
padding: 16px 18px;
|
|
margin-bottom: 18px;
|
|
background: #fff;
|
|
}
|
|
.library-storage header h3 {
|
|
margin: 0 0 4px;
|
|
font-size: 16px;
|
|
}
|
|
.library-storage header p {
|
|
margin: 0 0 12px;
|
|
font-size: 12px;
|
|
color: var(--ink-mute, #64748b);
|
|
line-height: 1.6;
|
|
}
|
|
.library-storage-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 10px;
|
|
margin: 0 0 12px;
|
|
}
|
|
.library-storage-grid div {
|
|
border: 1px solid #e6edf2;
|
|
border-radius: 8px;
|
|
padding: 9px 11px;
|
|
}
|
|
.library-storage-grid dt {
|
|
font-size: 11px;
|
|
color: var(--ink-mute, #64748b);
|
|
}
|
|
.library-storage-grid dd {
|
|
margin: 3px 0 0;
|
|
font-size: 16px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.library-storage-limits {
|
|
margin: 0;
|
|
padding-left: 18px;
|
|
font-size: 12px;
|
|
color: #986b24;
|
|
line-height: 1.8;
|
|
}
|
|
.library-storage-hint {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
color: var(--ink-mute, #64748b);
|
|
}
|
|
.library-storage-blocked {
|
|
border: 1px solid #f3c2b8;
|
|
background: #fff6f3;
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.library-storage-blocked strong {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: #a03a1e;
|
|
}
|
|
.library-storage-blocked p {
|
|
margin: 2px 0 0;
|
|
font-size: 12px;
|
|
color: #7c2d12;
|
|
}
|
|
|
|
.library-storage-panel {
|
|
border: 1px solid #e6edf2;
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.library-storage-panel h4 {
|
|
margin: 0 0 6px;
|
|
font-size: 13px;
|
|
}
|
|
.library-storage-panel p {
|
|
margin: 0 0 6px;
|
|
font-size: 12px;
|
|
line-height: 1.7;
|
|
color: #3f5566;
|
|
}
|
|
.library-storage-warn {
|
|
color: #986b24 !important;
|
|
}
|
|
.library-storage-versions {
|
|
margin: 4px 0 0;
|
|
padding-left: 18px;
|
|
font-size: 12px;
|
|
line-height: 1.8;
|
|
color: #3f5566;
|
|
}
|
|
.library-storage-blocked-list {
|
|
margin: 4px 0 0;
|
|
padding-left: 18px;
|
|
font-size: 12px;
|
|
color: #a03a1e;
|
|
}
|