新增图片画布项目页

新增 /project 项目页和我的页项目入口

补齐图片画布工程列表、重命名和删除 API

支持 /editor/canvas 按 projectid 加载指定工程

更新图片画布文档、TRACKING 和对应测试
This commit is contained in:
2026-06-14 00:11:36 +08:00
parent b2122481ff
commit 85834a423d
32 changed files with 1800 additions and 20 deletions

View File

@@ -2973,6 +2973,293 @@ html[data-mobile-keyboard-open='true'] .platform-mobile-bottom-dock {
background: #ffffff;
}
.project-gallery-stage-shell {
background: #ffffff;
}
.project-gallery {
position: relative;
display: flex;
min-height: 0;
height: 100%;
flex-direction: column;
overflow: hidden;
background: #ffffff;
color: #1f2937;
}
.project-gallery__header {
display: flex;
min-height: 4.5rem;
flex-shrink: 0;
align-items: center;
justify-content: space-between;
gap: 1rem;
border-bottom: 1px solid #e5e7eb;
padding: 0 1.5rem;
}
.project-gallery__header h1 {
margin: 0;
color: #111827;
font-size: 1.25rem;
font-weight: 900;
}
.project-gallery__header span {
display: block;
margin-top: 0.2rem;
color: #6b7280;
font-size: 0.8rem;
font-weight: 700;
}
.project-gallery__header-actions {
display: flex;
align-items: center;
gap: 0.6rem;
}
.project-gallery__grid {
display: grid;
min-height: 0;
flex: 1;
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
align-content: start;
gap: 1rem;
overflow: auto;
padding: 1.5rem;
padding-bottom: 6.5rem;
}
.project-gallery__card {
position: relative;
min-width: 0;
}
.project-gallery__card-button,
.project-gallery__new-card {
display: grid;
width: 100%;
min-width: 0;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
background: #ffffff;
color: #111827;
text-align: left;
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
transition:
border-color 160ms ease,
box-shadow 160ms ease,
transform 160ms ease;
}
.project-gallery__card-button {
overflow: hidden;
}
.project-gallery__card-button:hover,
.project-gallery__card--selected .project-gallery__card-button,
.project-gallery__new-card:hover {
border-color: rgba(75, 181, 170, 0.58);
box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
transform: translateY(-1px);
}
.project-gallery__preview {
position: relative;
display: grid;
aspect-ratio: 4 / 3;
overflow: hidden;
place-items: center;
background: #f3f5f8;
}
.project-gallery__preview img {
width: 100%;
height: 100%;
object-fit: cover;
}
.project-gallery__preview-empty {
width: 36%;
aspect-ratio: 1;
border-radius: 0.5rem;
background:
linear-gradient(135deg, rgba(75, 181, 170, 0.28), transparent 58%),
#e5e7eb;
}
.project-gallery__meta {
display: grid;
min-width: 0;
gap: 0.25rem;
padding: 0.8rem;
}
.project-gallery__meta span:first-child {
overflow: hidden;
color: #111827;
font-size: 0.94rem;
font-weight: 860;
text-overflow: ellipsis;
white-space: nowrap;
}
.project-gallery__meta span + span {
color: #6b7280;
font-size: 0.76rem;
font-weight: 680;
}
.project-gallery__card-menu-wrap {
position: absolute;
right: 0.6rem;
bottom: 3.7rem;
z-index: 3;
opacity: 0;
transition: opacity 140ms ease;
}
.project-gallery__card:hover .project-gallery__card-menu-wrap,
.project-gallery__card-menu-wrap:focus-within {
opacity: 1;
}
.project-gallery__card-menu {
position: absolute;
right: 0;
bottom: 2.4rem;
display: grid;
min-width: 7rem;
overflow: hidden;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
background: #ffffff;
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}
.project-gallery__card-menu button {
display: flex;
align-items: center;
gap: 0.45rem;
border: 0;
background: transparent;
padding: 0.65rem 0.75rem;
color: #111827;
font-size: 0.82rem;
font-weight: 760;
text-align: left;
}
.project-gallery__card-menu button:hover {
background: #f3f4f6;
}
.project-gallery__checkbox {
position: absolute;
top: 0.65rem;
right: 0.65rem;
display: grid;
width: 1.45rem;
height: 1.45rem;
place-items: center;
border: 1px solid rgba(15, 23, 42, 0.18);
border-radius: 0.35rem;
background: rgba(255, 255, 255, 0.92);
color: #238a82;
}
.project-gallery__batch-toolbar {
position: absolute;
left: 50%;
bottom: 1.1rem;
z-index: 12;
display: flex;
align-items: center;
gap: 0.6rem;
max-width: calc(100% - 2rem);
transform: translateX(-50%);
border: 1px solid #e5e7eb;
border-radius: 0.75rem;
background: rgba(255, 255, 255, 0.96);
padding: 0.55rem;
box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}
.project-gallery__new-card {
place-items: center;
align-self: center;
justify-self: center;
width: min(22rem, calc(100% - 2rem));
min-height: 13rem;
margin: auto;
color: #238a82;
font-weight: 860;
text-align: center;
}
.project-gallery__error {
flex-shrink: 0;
margin: 1rem 1.5rem 0;
border: 1px solid #fecdd3;
border-radius: 0.5rem;
background: #fff1f2;
padding: 0.75rem 0.9rem;
color: #be123c;
font-size: 0.85rem;
font-weight: 760;
}
.project-gallery__modal-backdrop {
position: absolute;
inset: 0;
z-index: 20;
display: grid;
place-items: center;
background: rgba(15, 23, 42, 0.18);
}
.project-gallery__rename-dialog {
display: grid;
width: min(24rem, calc(100% - 2rem));
gap: 0.9rem;
border: 1px solid #e5e7eb;
border-radius: 0.75rem;
background: #ffffff;
padding: 1rem;
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.project-gallery__rename-header,
.project-gallery__rename-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
}
.project-gallery__rename-header h2 {
margin: 0;
font-size: 1rem;
font-weight: 900;
}
.project-gallery__rename-dialog input {
min-height: 2.65rem;
border: 1px solid #d1d5db;
border-radius: 0.5rem;
padding: 0 0.8rem;
color: #111827;
font-weight: 760;
outline: none;
}
.project-gallery__rename-dialog input:focus {
border-color: #4bb5aa;
box-shadow: 0 0 0 3px rgba(75, 181, 170, 0.16);
}
.image-canvas-editor {
position: relative;
display: flex;