Версия 1.1.4 Мелкие правки.

This commit is contained in:
anibilag 2025-10-22 16:20:16 +03:00
parent ff4206275b
commit 915b8274a6
4 changed files with 8 additions and 11 deletions

View File

@ -1,7 +1,7 @@
{
"name": "vite-react-typescript-starter",
"private": true,
"version": "1.1.3",
"version": "1.1.4",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -94,9 +94,6 @@ export function ArticleForm({
const [newAuthorId, setNewAuthorId] = useState('');
const [showAddAuthorModal, setShowAddAuthorModal] = useState(false);
// Добавляем состояние для отслеживания загрузки галереи
//const [galleryLoaded, setGalleryLoaded] = useState(false);
// Изменяем логику отслеживания состояния загрузки
const [dataLoaded, setDataLoaded] = useState(false);
@ -254,7 +251,6 @@ export function ArticleForm({
//console.log('Содержимое статьи перед сохранением:', content);
if (isSubmitting) {
//console.log('Форма уже отправляется, игнорируем повторную отправку');
return;
}
@ -299,6 +295,7 @@ export function ArticleForm({
setIsConfirmModalOpen(true); // Открываем модальное окно
} else {
onCancel();
window.scrollTo({ top: 0, behavior: 'smooth' });
}
};

View File

@ -13,7 +13,7 @@ export function SEO({
title = 'Культура двух Столиц',
description = 'Последние новинки искусства, музыки, театра и культурных мероприятий Москвы и Санкт-Петербурга.',
keywords = ['культура', 'искусство', 'музыка', 'театр', 'кино'],
image = 'https://images.unsplash.com/photo-1460661419201-fd4cecdf8a8b?auto=format&fit=crop&q=80&w=2070',
image = '/images/Logo-2.webp',
url = typeof window !== 'undefined' ? window.location.href : '',
type = 'website'
}: SEOProps) {

View File

@ -53,7 +53,7 @@ export function HomePage() {
return (
<div className="min-h-screen bg-cover bg-center bg-fixed bg-white/95" style={{ backgroundImage: `url('/images/gpt_main-bg.webp')` }}>
<SEO
title={categoryId ? `${CategoryTitles[Number(categoryId)]} Статьи - Куоьтура двух Столиц` : undefined}
title={categoryId ? `${CategoryTitles[Number(categoryId)]} Статьи - Культура двух Столиц` : undefined}
description={getSEODescription()}
keywords={categoryId ? [CategoryTitles[Number(categoryId)].toLowerCase(), 'культура', 'искусство', 'события'] : undefined}
image={backgroundImage}