From ff4206275bd562b4c0957920480f8060790c5c83 Mon Sep 17 00:00:00 2001 From: anibilag Date: Tue, 21 Oct 2025 23:55:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D1=81=D0=B8=D1=8F=201.1.3=20?= =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BA=D0=B0=D0=B7=20=D0=B4=D0=B0=D1=82=D1=8B=20=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D1=82=D1=8C=D0=B8=20=D0=B2=20=D1=81=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D0=BA=D0=B5=20=D1=81=D1=82=D0=B0=D1=82=D0=B5=D0=B9=20=D0=B0?= =?UTF-8?q?=D0=B4=D0=BC=D0=B8=D0=BD=D0=B8=D1=81=D1=82=D1=80=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/ArticleList.tsx | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3cf1c55..a90e15b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vite-react-typescript-starter", "private": true, - "version": "1.1.2", + "version": "1.1.3", "type": "module", "scripts": { "dev": "vite", diff --git a/src/components/ArticleList.tsx b/src/components/ArticleList.tsx index d4fc594..d6fc4b2 100644 --- a/src/components/ArticleList.tsx +++ b/src/components/ArticleList.tsx @@ -194,7 +194,7 @@ export const ArticleList = React.memo(function ArticleList({ className="inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" > - Новая статья + Новая )} @@ -225,7 +225,12 @@ export const ArticleList = React.memo(function ArticleList({

{article.title}

· {CategoryTitles[article.categoryId]} · {CityTitles[article.cityId]} · {article.readTime}{' '} - чтения + ·{' '} + {new Date(article.publishedAt).toLocaleDateString('ru-RU', { + month: 'long', + day: 'numeric', + year: 'numeric', + })}

{(() => { const writerAuthors = article.authors