1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-22 13:29:59 +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", "name": "upscayl",
"private": true, "private": true,
"version": "1.1.0", "version": "1.1.1",
"productName": "Upscayl", "productName": "Upscayl",
"contributors": [ "contributors": [
{ {

View File

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