Переделаны истории

This commit is contained in:
Халимов Рустам
2026-04-03 01:03:32 +03:00
parent 943699139b
commit 1b8abbc995
14 changed files with 1459 additions and 656 deletions

View File

@@ -146,6 +146,24 @@ const translations = {
pinChat: 'Закрепить чат',
unpinChat: 'Открепить чат',
chatCleared: 'Чат очищен',
typeYourStoryPlaceholder: 'Напишите историю...',
uploadMedia: 'Загрузить медиа',
chooseBackground: 'Цвет фона',
viewedBy: 'Просмотрели',
storyDetails: 'Информация',
viewCountSuffix: 'посмотрели эту историю',
storyPrivacyNote: 'Истории зашифрованы и исчезнут через 24 часа. Сообщения о прочтении видны только автору.',
storiesEditor: 'Редактор историй',
tools: 'Инструменты',
privacyNote: 'Выберите, кто может просматривать вашу новую историю.',
allUsers: 'Все пользователи',
onlyContacts: 'Только контакты',
selectedContacts: 'Выбранные контакты',
yourStory: 'Ваша история',
stickers: 'Стикеры',
brush: 'Кисть',
filters: 'Фильтры',
report: 'Пожаловаться',
groupSettings: 'Настройки группы',
editGroupName: 'Изменить название',
addMember: 'Добавить участника',
@@ -567,6 +585,24 @@ const translations = {
loadChatsError: 'Error loading chats',
loadMessagesError: 'Error loading messages',
unreadMessages: 'Unread messages',
typeYourStoryPlaceholder: 'Write your story...',
uploadMedia: 'Upload media',
chooseBackground: 'Background',
viewedBy: 'Viewed by',
storyDetails: 'Details',
viewCountSuffix: 'people viewed this story',
storyPrivacyNote: 'Stories are encrypted and disappear in 24 hours. View receipts are only visible to you.',
storiesEditor: 'Stories Editor',
tools: 'Tools',
privacyNote: 'Choose who can view your new story.',
allUsers: 'All users',
onlyContacts: 'Only contacts',
selectedContacts: 'Selected contacts',
yourStory: 'Your story',
stickers: 'Stickers',
brush: 'Brush',
filters: 'Filters',
report: 'Report',
attachmentDiscardConfirm: 'You have attached files. If you switch to another chat, they will be lost. Continue?',
},
} as const;

View File

@@ -21,7 +21,8 @@ import ChatListItem from '../../../modules/chats/presentation/components/ChatLis
import NewChatModal from '../../../modules/chats/presentation/components/NewChatModal';
import UserProfile from '../../../modules/users/presentation/components/UserProfile';
import SideMenu from './SideMenu';
import StoryViewer, { CreateStoryModal } from '../../../modules/stories/presentation/components/StoryViewer';
import StoryViewer from '../../../modules/stories/presentation/components/StoryViewer';
import { CreateStoryModal } from '../../../modules/stories/presentation/components/CreateStoryModal';
import { useStoryStore } from '../../../modules/stories/application/storyStore';
const API_URL = import.meta.env.VITE_API_URL || '';