From ae9f7e0a84bad6f36361c6b1c1741f8498be8ee5 Mon Sep 17 00:00:00 2001 From: Fabian Zills Date: Tue, 7 Jan 2025 15:36:25 +0100 Subject: [PATCH] show the ZnDraw version in the GUI next to the title --- app/package.json | 4 ++-- app/src/components/headbar.tsx | 3 ++- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/package.json b/app/package.json index 7d732bd85..7b17d0248 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { - "name": "my-app", + "name": "zndraw", "private": true, - "version": "0.0.0", + "version": "0.5.8", "type": "module", "scripts": { "dev": "vite", diff --git a/app/src/components/headbar.tsx b/app/src/components/headbar.tsx index 30c503c40..7e07332ad 100644 --- a/app/src/components/headbar.tsx +++ b/app/src/components/headbar.tsx @@ -20,6 +20,7 @@ import { Row, ToggleButton, } from "react-bootstrap"; +import {version} from "../../package.json"; import { MdOutlineAutoGraph } from "react-icons/md"; import { SiMoleculer } from "react-icons/si"; import Select from "react-select"; @@ -895,7 +896,7 @@ const HeadBar = ({ href="https://github.com/zincware/zndraw" target="_blank" > - ZnDraw + ZnDraw {version} {showSiMGen && ( <> diff --git a/pyproject.toml b/pyproject.toml index 1823dddf7..9a8d9d408 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "zndraw" -version = "0.5.7" +version = "0.5.8" description = "Display and Edit Molecular Structures and Trajectories in the Browser." authors = ["zincwarecode "] license = "License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)"