Show the site version in the footer and release v1.0.1.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alexey Novikov
2026-09-16 13:26:04 +03:00
co-authored by Cursor
parent 388ad57c10
commit 09417b699f
15 changed files with 48 additions and 7 deletions
+15
View File
@@ -0,0 +1,15 @@
---
description: Commit local changes and push them to Gitea immediately
alwaysApply: true
---
# Git workflow
After any local change to this project, commit and push to Gitea immediately.
- Remote: `https://git.myunion.pro/Alex/Moniki_uslugi.git`
- Branch: `main`
- Do not wait for a separate "commit" request
- Do not commit `.env`, `.env.local`, passwords, tokens, or other secrets
- Do not force-push `main`
- For user-visible releases, bump `package.json` versions, update `CHANGELOG.md`, and push an annotated tag `vX.Y.Z`
+3 -1
View File
@@ -13,7 +13,9 @@ media
uploads uploads
apps/cms/src/app/(payload)/admin/importMap.js apps/cms/src/app/(payload)/admin/importMap.js
apps/cms/src/payload-types.ts apps/cms/src/payload-types.ts
.cursor .cursor/*
!.cursor/rules/
!.cursor/rules/**
*.pem *.pem
*.key *.key
credentials.json credentials.json
+7
View File
@@ -2,6 +2,12 @@
Формат основан на [Keep a Changelog](https://keepachangelog.com/ru/1.1.0/), версии — [SemVer](https://semver.org/lang/ru/). Формат основан на [Keep a Changelog](https://keepachangelog.com/ru/1.1.0/), версии — [SemVer](https://semver.org/lang/ru/).
## [1.0.1] — 2026-09-16
### Сайт
- В подвале отображается версия сайта (`v1.0.1`)
## [1.0.0] — 2026-09-16 ## [1.0.0] — 2026-09-16
Первый публикуемый снимок проекта **Moniki_uslugi**. Первый публикуемый снимок проекта **Moniki_uslugi**.
@@ -25,4 +31,5 @@
- Docker Compose для локальной БД - Docker Compose для локальной БД
- Секреты и логины в git не входят - Секреты и логины в git не входят
[1.0.1]: https://git.myunion.pro/Alex/Moniki_uslugi/src/tag/v1.0.1
[1.0.0]: https://git.myunion.pro/Alex/Moniki_uslugi/src/tag/v1.0.0 [1.0.0]: https://git.myunion.pro/Alex/Moniki_uslugi/src/tag/v1.0.0
+1 -1
View File
@@ -4,7 +4,7 @@
Репозиторий: [Moniki_uslugi](https://git.myunion.pro/Alex/Moniki_uslugi) на [git.myunion.pro](https://git.myunion.pro/). Репозиторий: [Moniki_uslugi](https://git.myunion.pro/Alex/Moniki_uslugi) на [git.myunion.pro](https://git.myunion.pro/).
Текущая версия: **v1.0.0** (см. [CHANGELOG.md](CHANGELOG.md)). Текущая версия: **v1.0.1** (см. [CHANGELOG.md](CHANGELOG.md)).
## Что внутри ## Что внутри
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@moniki/cms", "name": "@moniki/cms",
"version": "1.0.0", "version": "1.0.1",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@moniki/web", "name": "@moniki/web",
"version": "1.0.0", "version": "1.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 3000", "dev": "next dev -p 3000",
+10 -2
View File
@@ -3,6 +3,7 @@ import { Link } from "@/i18n/routing";
import { getBranches, getSiteNav } from "@/lib/api"; import { getBranches, getSiteNav } from "@/lib/api";
import { legalPages } from "@/lib/legal"; import { legalPages } from "@/lib/legal";
import { organizationPages } from "@/lib/organization"; import { organizationPages } from "@/lib/organization";
import { APP_VERSION } from "@/lib/version";
import { getLocale, getTranslations } from "next-intl/server"; import { getLocale, getTranslations } from "next-intl/server";
const socials = [ const socials = [
@@ -182,8 +183,15 @@ export async function Footer() {
</li> </li>
))} ))}
</ul> </ul>
<p className="mt-6 text-xs text-[var(--neutral-500)]">{footer("rights")}</p> <p className="mt-6 text-xs text-[var(--neutral-400)]">{t("meta.fullName")}</p>
<p className="mt-1 text-xs text-[var(--neutral-400)]">{t("meta.fullName")}</p> </div>
</div>
<div className="border-t border-[var(--border)]">
<div className="mx-auto flex max-w-6xl flex-wrap items-center justify-between gap-2 px-4 py-3 sm:px-6">
<p className="text-xs text-[var(--neutral-500)]">{footer("rights")}</p>
<p className="text-xs tabular-nums text-[var(--neutral-500)]">
{footer("version", { version: APP_VERSION })}
</p>
</div> </div>
</div> </div>
</footer> </footer>
+3
View File
@@ -0,0 +1,3 @@
import pkg from "../../package.json";
export const APP_VERSION = pkg.version;
+1
View File
@@ -364,6 +364,7 @@
"useful": "Карыснае", "useful": "Карыснае",
"social": "Мы ў сацсетках", "social": "Мы ў сацсетках",
"rights": "© МОНІКІ. Усе правы абаронены.", "rights": "© МОНІКІ. Усе правы абаронены.",
"version": "Версія сайта v{version}",
"vk": "УКантакце", "vk": "УКантакце",
"max": "Макс" "max": "Макс"
}, },
+1
View File
@@ -364,6 +364,7 @@
"useful": "Useful", "useful": "Useful",
"social": "Social media", "social": "Social media",
"rights": "© MONIKI. All rights reserved.", "rights": "© MONIKI. All rights reserved.",
"version": "Site version v{version}",
"vk": "VK", "vk": "VK",
"max": "Max" "max": "Max"
}, },
+1
View File
@@ -364,6 +364,7 @@
"useful": "Пайдалуу", "useful": "Пайдалуу",
"social": "Соцтармактарда", "social": "Соцтармактарда",
"rights": "© МОНИКИ. Бардык укуктар корголгон.", "rights": "© МОНИКИ. Бардык укуктар корголгон.",
"version": "Сайттын версиясы v{version}",
"vk": "ВКонтакте", "vk": "ВКонтакте",
"max": "Макс" "max": "Макс"
}, },
+1
View File
@@ -364,6 +364,7 @@
"useful": "Полезное", "useful": "Полезное",
"social": "Мы в соцсетях", "social": "Мы в соцсетях",
"rights": "© МОНИКИ. Все права защищены.", "rights": "© МОНИКИ. Все права защищены.",
"version": "Версия сайта v{version}",
"vk": "ВКонтакте", "vk": "ВКонтакте",
"max": "Макс" "max": "Макс"
}, },
+1
View File
@@ -364,6 +364,7 @@
"useful": "Фоиданок", "useful": "Фоиданок",
"social": "Мо дар шабакаҳои иҷтимоӣ", "social": "Мо дар шабакаҳои иҷтимоӣ",
"rights": "© МОНИКИ. Ҳамаи ҳуқуқҳо ҳифз шудаанд.", "rights": "© МОНИКИ. Ҳамаи ҳуқуқҳо ҳифз шудаанд.",
"version": "Версияи сайт v{version}",
"vk": "ВКонтакте", "vk": "ВКонтакте",
"max": "Макс" "max": "Макс"
}, },
+1
View File
@@ -364,6 +364,7 @@
"useful": "实用信息", "useful": "实用信息",
"social": "社交媒体", "social": "社交媒体",
"rights": "© МОНИКИ。保留所有权利。", "rights": "© МОНИКИ。保留所有权利。",
"version": "网站版本 v{version}",
"vk": "VK", "vk": "VK",
"max": "Max" "max": "Max"
}, },
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "moniki-platnye-uslugi", "name": "moniki-platnye-uslugi",
"version": "1.0.0", "version": "1.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "pnpm -r --parallel dev", "dev": "pnpm -r --parallel dev",