feat(edit): live edit mode with draft store, inline editing, JSON panel, save bar, branch targeting

?edit entry with Basic-auth probe; DraftStore copy-on-write over live
branch documents (?ref GET / branch PUT, last_commit_sha optimistic
concurrency, three-way rebase on 412); EditableText inline editors;
JsonPanel with templates and orphan-free delete; EditBar sequential-PUT
save with conflict actions and merge hint on non-master branches.
scripts/smoke-draft.ts regression check.
This commit is contained in:
dong.nguyen committed 2026-10-22 09:55:24 +07:00
1 parent f113dfc7b5
commit 6482c993e8
24 files changed
+2523 -52

No files matched your search

+61
View File
@@ -124,5 +124,66 @@
"PROJECTS": "Dự án",
"UPDATED": "Cập nhật lần cuối",
"QR_ALT": "mã QR"
},
"edit": {
"title": "Chế độ sửa",
"changes": "Thay đổi chưa lưu",
"noChanges": "Không có thay đổi chưa lưu",
"openPanel": "Bảng JSON",
"closePanel": "Đóng bảng",
"save": "Lưu",
"saving": "Đang lưu…",
"resume": "Tiếp tục lưu",
"exit": "Thoát",
"exitConfirm": "Hủy các thay đổi chưa lưu?",
"changesTitle": "Changes",
"discardDoc": "Bỏ tài liệu",
"revert": "Hoàn tác",
"conflicts": "Xung đột",
"conflictDetail": "đã bị sửa từ ngoài sau khi bản nháp này được tạo",
"rebase": "Rebase",
"takeTheirs": "Lấy bản gốc",
"handMerge": "Tự hợp nhất",
"written": "đã ghi",
"conflictStatus": "xung đột",
"failed": "thất bại",
"deployQueued": "đã xếp lịch deploy — nội dung lên site sau khi pipeline chạy xong",
"branchLabel": "branch đích",
"mergeHint": "đã ghi lên branch — merge vào master để deploy",
"offline": "ngoại tuyến — đang hiển thị nội dung đóng gói, không lưu được",
"draftRestored": "bản nháp đã khôi phục từ phiên này",
"unionNote": "id mới cũng được thêm vào src/types/index.ts",
"unionFailed": "không cập nhật được src/types/index.ts — hãy hoàn tất sửa trong Gitea",
"panel": {
"title": "Tài liệu nội dung",
"readOnly": "chỉ đọc",
"valid": "hợp lệ",
"invalid": "không hợp lệ",
"parseError": "Lỗi JSON",
"addProject": "Thêm dự án",
"addExperience": "Thêm kinh nghiệm",
"addSkillGroup": "Thêm nhóm kỹ năng",
"addPhilosophy": "Thêm nguyên lý",
"addSection": "Thêm mục",
"projectLabel": "dự án",
"deleteRecord": "Xóa",
"deleteConfirm": "Xóa bản ghi này và text của cả hai ngôn ngữ?",
"baseLabel": "bản master",
"draftLabel": "bản nháp",
"applyMerge": "Áp dụng bản hợp nhất"
},
"fields": {
"title": "tiêu đề",
"summary": "tóm tắt",
"bio": "giới thiệu",
"tagline": "đoạn tagline",
"groupTitle": "tiêu đề nhóm kỹ năng",
"expTitle": "tên vị trí",
"responsibility": "trách nhiệm",
"sectionTitle": "tiêu đề mục",
"sectionContent": "nội dung mục",
"pointTitle": "tiêu đề nguyên lý",
"pointDescription": "mô tả nguyên lý"
}
}
}