mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-23 00:20:40 +07:00
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:
1 parent
f113dfc7b5
commit
6482c993e8
24 files changed
+2523
-52
No files matched your search
@@ -124,5 +124,66 @@
|
||||
"PROJECTS": "Projects",
|
||||
"UPDATED": "Last updated",
|
||||
"QR_ALT": "QR code"
|
||||
},
|
||||
"edit": {
|
||||
"title": "Edit mode",
|
||||
"changes": "Unsaved changes",
|
||||
"noChanges": "No unsaved changes",
|
||||
"openPanel": "JSON panel",
|
||||
"closePanel": "Close panel",
|
||||
"save": "Save",
|
||||
"saving": "Saving…",
|
||||
"resume": "Resume save",
|
||||
"exit": "Exit",
|
||||
"exitConfirm": "Discard unsaved changes?",
|
||||
"changesTitle": "Changes",
|
||||
"discardDoc": "Discard document",
|
||||
"revert": "Revert",
|
||||
"conflicts": "Conflicts",
|
||||
"conflictDetail": "changed externally after this draft was taken",
|
||||
"rebase": "Rebase",
|
||||
"takeTheirs": "Take theirs",
|
||||
"handMerge": "Hand-merge",
|
||||
"written": "written",
|
||||
"conflictStatus": "conflict",
|
||||
"failed": "failed",
|
||||
"deployQueued": "deploy queued — the change goes live after the pipeline finishes",
|
||||
"branchLabel": "target branch",
|
||||
"mergeHint": "written to the branch — merge into master to deploy",
|
||||
"offline": "offline — showing bundled content, save disabled",
|
||||
"draftRestored": "draft restored from this session",
|
||||
"unionNote": "new ids are also appended to src/types/index.ts",
|
||||
"unionFailed": "could not update src/types/index.ts — finish that edit in Gitea",
|
||||
"panel": {
|
||||
"title": "Content documents",
|
||||
"readOnly": "read-only",
|
||||
"valid": "valid",
|
||||
"invalid": "invalid",
|
||||
"parseError": "JSON error",
|
||||
"addProject": "Add project",
|
||||
"addExperience": "Add experience",
|
||||
"addSkillGroup": "Add skill group",
|
||||
"addPhilosophy": "Add philosophy point",
|
||||
"addSection": "Add section",
|
||||
"projectLabel": "project",
|
||||
"deleteRecord": "Delete",
|
||||
"deleteConfirm": "Delete this record and its text in both languages?",
|
||||
"baseLabel": "live master",
|
||||
"draftLabel": "draft",
|
||||
"applyMerge": "Apply merged draft"
|
||||
},
|
||||
"fields": {
|
||||
"title": "title",
|
||||
"summary": "summary",
|
||||
"bio": "bio",
|
||||
"tagline": "tagline segment",
|
||||
"groupTitle": "skill group title",
|
||||
"expTitle": "role title",
|
||||
"responsibility": "responsibility",
|
||||
"sectionTitle": "section title",
|
||||
"sectionContent": "section content",
|
||||
"pointTitle": "philosophy title",
|
||||
"pointDescription": "philosophy description"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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ý"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user