1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-31 04:03:51 +01:00

Added donate and fixed gpuId

This commit is contained in:
Feenix 2022-12-27 17:03:39 +05:30
parent bed17d9385
commit 332f9f91bb
2 changed files with 16 additions and 1 deletions

View File

@ -76,6 +76,12 @@ function LeftPaneImageSteps({
} else {
setCurrentModel(JSON.parse(localStorage.getItem("model")));
}
if (!localStorage.getItem("gpuId")) {
localStorage.setItem("gpuId", "");
} else {
setGpuId(localStorage.getItem("gpuId"));
}
}, []);
const setExportType = (format: string) => {
@ -89,6 +95,7 @@ function LeftPaneImageSteps({
const handleGpuIdChange = (e) => {
setGpuId(e.target.value);
localStorage.setItem("gpuId", e.target.value);
};
const customStyles = {
@ -316,6 +323,14 @@ function LeftPaneImageSteps({
onChange={handleGpuIdChange}
/>
</div>
<div className="flex flex-col gap-2">
<p>If you like what we do :)</p>
<a
href="https://buymeacoffee.com/fossisthefuture"
target="_blank">
<button className="btn-primary btn">Donate</button>
</a>
</div>
</div>
</div>
</div>

View File

@ -29,7 +29,7 @@ const Home = () => {
const [doubleUpscaylCounter, setDoubleUpscaylCounter] = useState(0);
const [gpuId, setGpuId] = useState("");
const [saveImageAs, setSaveImageAs] = useState("png");
const [zoomAmount, setZoomAmount] = useState("200%");
const [zoomAmount, setZoomAmount] = useState("100%");
const [backgroundPosition, setBackgroundPosition] = useState("0% 0%");
const [dimensions, setDimensions] = useState({
width: null,