fix: show version in footer from manifest file

This commit is contained in:
2026-10-04 07:30:58 +05:00
parent 1d337f065b
commit f89811c116
3 changed files with 11 additions and 4 deletions
+3 -2
View File
@@ -101,8 +101,9 @@
- [ ] Радиусы бордеров: `--radius-m` ненулевой и применён ко всем бордерам
(`app.css`, `SchemaToolView.svelte`). Решить, где скругления реально есть
в дизайне, а где должен быть 0
- [ ] `Footer`: версию брать из `package.json`, а не писать `v0.1.0` вручную
(`web/src/lib/components/layout/Footer.svelte`).
- [ ] надо добавить версионирование и changelog (cocogitto), пример можно взять
отсюда -
[https://github.com/Ku6epXBOCTuK/XBOCT-page](https://github.com/Ku6epXBOCTuK/XBOCT-page)
## Переезд
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "web",
"private": true,
"version": "0.0.1",
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite dev",
+7 -1
View File
@@ -1,5 +1,11 @@
<script lang="ts">
import { version } from "../../../../package.json";
const versionLabel = `v${version}`;
</script>
<footer class="preview-footer">
<span>easy-png-tools <b class="version">v0.1.0</b></span>
<span>easy-png-tools <b class="version">{versionLabel}</b></span>
<span>© 2026</span>
</footer>