1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-12 01:40:53 +01:00

Updated version text

This commit is contained in:
Feenix 2022-08-23 20:07:21 +05:30
parent abb7ac3928
commit 143f9f449e
2 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"name": "upscayl",
"private": true,
"version": "1.1.0",
"version": "1.1.1",
"productName": "Upscayl",
"contributors": [
{

View File

@ -16,6 +16,11 @@ const Home = () => {
const [progress, setProgress] = useState("");
const [model, setModel] = useState("realesrgan-x4plus");
const [loaded, setLoaded] = useState(false);
const [version, setVersion] = useState("");
useEffect(() => {
setVersion(navigator.userAgent.match(/Upscayl\/([\d\.]+\d+)/)[1]);
}, []);
useEffect(() => {
setLoaded(true);
@ -203,9 +208,12 @@ const Home = () => {
)}
{imagePath.length === 0 ? (
<p className="p-5 text-lg font-medium text-neutral-400">
Select an Image to Upscale
</p>
<>
<p className="p-5 text-lg font-medium text-neutral-400">
Select an Image to Upscale
</p>
<p className="text-neutral-600">Upscale v{version}</p>
</>
) : upscaledImagePath.length === 0 ? (
<img
className="h-full w-full object-contain"