feat: 章节软删除、对话左滑删除,移除已读状态
- 章节:详情页增加删除按钮,软删除(is_active=False),AI 不再修改但保留供参考 - 章节:get_chapter 增加 is_active 校验,已删除章节返回 404 - 章节:AI 生成时参考同类别已删除章节摘要 - 对话:左滑显示删除,调用 hard delete API,删除前二次确认 - 对话:根布局包裹 GestureHandlerRootView 以支持 Swipeable - 对话:移除已读/未读状态展示及相关 i18n
This commit is contained in:
@@ -15,7 +15,6 @@ interface Resources {
|
||||
profile: 'Profile';
|
||||
};
|
||||
theme: {
|
||||
brand: 'Brand';
|
||||
default: 'Default';
|
||||
};
|
||||
};
|
||||
@@ -64,17 +63,22 @@ interface Resources {
|
||||
conversation: {
|
||||
addMore: 'More';
|
||||
agentName: 'Life Echo';
|
||||
cancel: 'Cancel';
|
||||
cancelRecording: 'Cancel recording';
|
||||
chatTitle: 'Conversation';
|
||||
confirm: 'OK';
|
||||
confirmDeleteConversation: 'Are you sure you want to delete this conversation? It cannot be recovered.';
|
||||
connectionConnected: 'Connected';
|
||||
connectionConnecting: 'Connecting...';
|
||||
connectionDisconnected: 'Disconnected';
|
||||
createError: 'Unable to create conversation. Please check your network and try again.';
|
||||
delete: 'Delete';
|
||||
deleteConversation: 'Delete Conversation';
|
||||
emptyGreetingSubtitle: 'Chat with Echo and record your stories.';
|
||||
greetingTitle: 'Say Hello';
|
||||
inputPlaceholder: 'Type a message...';
|
||||
inputPlaceholderVoice: 'Type here or hold the mic to speak...';
|
||||
me: 'Me';
|
||||
read: 'Read';
|
||||
recentChats: 'Recent Chats';
|
||||
recordingPermissionDenied: 'Microphone permission is required to record';
|
||||
send: 'Send';
|
||||
@@ -83,8 +87,8 @@ interface Resources {
|
||||
switchToVoice: 'Switch to voice input';
|
||||
tapToEndRecording: 'Tap to end';
|
||||
tapToStartRecording: 'Tap to start recording';
|
||||
unread: 'Unread';
|
||||
viewAll: 'View All';
|
||||
voiceMessagePreview: 'Voice message';
|
||||
};
|
||||
explore: {};
|
||||
home: {};
|
||||
@@ -95,8 +99,12 @@ interface Resources {
|
||||
backgroundColor: 'Background';
|
||||
bgPureWhite: 'White';
|
||||
bgSepia: 'Sepia';
|
||||
cancel: 'Cancel';
|
||||
chapterNotFound: 'Chapter not found';
|
||||
close: 'Close';
|
||||
confirmDeleteMessage: 'Are you sure you want to delete this chapter? You will no longer be able to view it, but the content will be kept for future reference.';
|
||||
deleteChapter: 'Delete Chapter';
|
||||
deleteChapterAction: 'Delete';
|
||||
fontSans: 'Sans';
|
||||
fontSerif: 'Serif';
|
||||
fontSize: 'Font Size';
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
{
|
||||
"confirmDeleteConversation": "Are you sure you want to delete this conversation? It cannot be recovered.",
|
||||
"createError": "Unable to create conversation. Please check your network and try again.",
|
||||
"confirm": "OK",
|
||||
"cancel": "Cancel",
|
||||
"delete": "Delete",
|
||||
"deleteConversation": "Delete Conversation",
|
||||
"addMore": "More",
|
||||
"agentName": "Life Echo",
|
||||
"cancelRecording": "Cancel recording",
|
||||
@@ -13,7 +17,6 @@
|
||||
"inputPlaceholder": "Type a message...",
|
||||
"inputPlaceholderVoice": "Type here or hold the mic to speak...",
|
||||
"me": "Me",
|
||||
"read": "Read",
|
||||
"recentChats": "Recent Chats",
|
||||
"recordingPermissionDenied": "Microphone permission is required to record",
|
||||
"send": "Send",
|
||||
@@ -22,7 +25,6 @@
|
||||
"switchToVoice": "Switch to voice input",
|
||||
"tapToEndRecording": "Tap to end",
|
||||
"tapToStartRecording": "Tap to start recording",
|
||||
"unread": "Unread",
|
||||
"viewAll": "View All",
|
||||
"voiceMessagePreview": "Voice message"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
"chapterLabel": "Chapter {{index}}",
|
||||
"chapterReading": {
|
||||
"back": "Back",
|
||||
"cancel": "Cancel",
|
||||
"confirmDeleteMessage": "Are you sure you want to delete this chapter? You will no longer be able to view it, but the content will be kept for future reference.",
|
||||
"deleteChapter": "Delete Chapter",
|
||||
"deleteChapterAction": "Delete",
|
||||
"backgroundColor": "Background",
|
||||
"bgPureWhite": "White",
|
||||
"bgSepia": "Sepia",
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
{
|
||||
"confirmDeleteConversation": "确定要删除此对话吗?删除后无法恢复。",
|
||||
"createError": "无法创建对话,请检查网络连接或稍后重试",
|
||||
"confirm": "知道了",
|
||||
"cancel": "取消",
|
||||
"delete": "删除",
|
||||
"deleteConversation": "删除对话",
|
||||
"addMore": "更多功能",
|
||||
"agentName": "岁月知己",
|
||||
"cancelRecording": "取消录音发送",
|
||||
@@ -13,7 +17,6 @@
|
||||
"inputPlaceholder": "输入消息...",
|
||||
"inputPlaceholderVoice": "点击这里输入,或者按住左边说话...",
|
||||
"me": "我",
|
||||
"read": "已读",
|
||||
"recentChats": "最近对话",
|
||||
"recordingPermissionDenied": "需要麦克风权限才能录音",
|
||||
"send": "发送",
|
||||
@@ -22,7 +25,6 @@
|
||||
"switchToVoice": "切换到语音输入",
|
||||
"tapToEndRecording": "点击结束",
|
||||
"tapToStartRecording": "点击开始录音",
|
||||
"unread": "未读",
|
||||
"viewAll": "查看全部",
|
||||
"voiceMessagePreview": "语音消息"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
"chapterLabel": "第 {{index}} 章",
|
||||
"chapterReading": {
|
||||
"back": "返回",
|
||||
"cancel": "取消",
|
||||
"confirmDeleteMessage": "确定要删除本章节吗?删除后您将无法再查看,但内容会保留供后续参考。",
|
||||
"deleteChapter": "删除章节",
|
||||
"deleteChapterAction": "删除",
|
||||
"backgroundColor": "背景色",
|
||||
"bgPureWhite": "白色",
|
||||
"bgSepia": "护眼",
|
||||
|
||||
Reference in New Issue
Block a user