From ce79cc624cdd611fe973e7a3a47ce0b9b20656bc Mon Sep 17 00:00:00 2001
From: Zach
Date: Wed, 20 Mar 2024 19:43:44 +0000
Subject: [PATCH 01/11] Add new directory
---
src/routes/faq/.gitkeep | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 src/routes/faq/.gitkeep
diff --git a/src/routes/faq/.gitkeep b/src/routes/faq/.gitkeep
new file mode 100644
index 0000000..e69de29
From ca0573d5e143dc53f3a3f57a4c347c671b261dcb Mon Sep 17 00:00:00 2001
From: Zach
Date: Wed, 20 Mar 2024 19:44:05 +0000
Subject: [PATCH 02/11] temp
---
src/routes/faq/+page.svelte | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 src/routes/faq/+page.svelte
diff --git a/src/routes/faq/+page.svelte b/src/routes/faq/+page.svelte
new file mode 100644
index 0000000..e69de29
From 50572b55e18b34f55def1547779bbc916f8345db Mon Sep 17 00:00:00 2001
From: Zach
Date: Wed, 20 Mar 2024 19:50:48 +0000
Subject: [PATCH 03/11] Update file +page.svelte
---
src/routes/faq/+page.svelte | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/src/routes/faq/+page.svelte b/src/routes/faq/+page.svelte
index e69de29..e851fdc 100644
--- a/src/routes/faq/+page.svelte
+++ b/src/routes/faq/+page.svelte
@@ -0,0 +1,34 @@
+
+ Coming Soon
+
+
+
+
+
+
+
+
+
+ FAQ
+
+
+ Got some questions? We got answers!
+
+
Accounts are used for:
+
From 4225dc58f36bb44bff9ddefadb24070e36562111 Mon Sep 17 00:00:00 2001
From: million1156
Date: Wed, 20 Mar 2024 15:18:44 -0500
Subject: [PATCH 04/11] feat: FAQ
---
src/routes/+layout.svelte | 4 ++--
src/routes/faq/+page.svelte | 13 +++++++++++--
src/routes/faq/.gitkeep | 0
3 files changed, 13 insertions(+), 4 deletions(-)
delete mode 100644 src/routes/faq/.gitkeep
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index ffc066e..2476d0c 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -142,7 +142,7 @@
},
{
name: "FAQ",
- href: "/coming-soon",
+ href: "/faq",
},
{
name: "Discord",
@@ -290,7 +290,7 @@
>
Blog
Docs
- FAQ
+ FAQ
diff --git a/src/routes/faq/+page.svelte b/src/routes/faq/+page.svelte
index e851fdc..ff9cbf5 100644
--- a/src/routes/faq/+page.svelte
+++ b/src/routes/faq/+page.svelte
@@ -1,5 +1,5 @@
- Coming Soon
+ FAQ
Got some questions? We got answers!
-
Accounts are used for:
+
Q: How is this project different from Yuzu? How do we know you won't have the same fate as Yuzu?
+
A: Unlike Yuzu, Suyu does not include many of the core "requirements" to run it. You need to legally dump your Nintendo Switch to obtain a title.keys file, which Yuzu did not do. Additionally, you must dump your own firmware.
+
Q: What is the purpose of Suyu?
+
A: The purpose of this project is to provide a free, open-source alternative to the now-dead Yuzu emulator. We believe that the community should be able to emulate their Switch device (legally) and be able to enjoy their favorite game titles.
+
Q: How can I contribute to Suyu?
+
A: You can contribute to this project by submitting a pull request on our GitLab page. We are always looking for new contributors to help us improve the project!
+
Q: Where can I download Suyu?
+
A: You can download the latest build Suyu from our GitLab . Please make sure you are using the right URL (our GitLab username is suyu-emu!)
+
Q: What is the current progress for Suyu?
+
A: As of 3/20/2024, we have released our first Windows binary 🎉! You can find it here . We are always trying to make more and more progress, so please feel free to join the Discord!
diff --git a/src/routes/faq/.gitkeep b/src/routes/faq/.gitkeep
deleted file mode 100644
index e69de29..0000000
From b1d3f27521762c2263e440bb4ff8d9922f01e8df Mon Sep 17 00:00:00 2001
From: million1156
Date: Wed, 20 Mar 2024 18:40:59 -0500
Subject: [PATCH 05/11] my brain has stopped functioning, please help
---
src/routes/api/redirect/+server.ts | 26 ++++++++++++
src/routes/download/+page.svelte | 64 ++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+)
create mode 100644 src/routes/api/redirect/+server.ts
create mode 100644 src/routes/download/+page.svelte
diff --git a/src/routes/api/redirect/+server.ts b/src/routes/api/redirect/+server.ts
new file mode 100644
index 0000000..3c8657b
--- /dev/null
+++ b/src/routes/api/redirect/+server.ts
@@ -0,0 +1,26 @@
+async function fetchLatestReleaseTag() {
+ const url = `https://gitlab.com/api/v4/projects/55558123/releases`;
+ try {
+ const response = await fetch(url, {
+ headers: {
+ "Content-Type": "application/json",
+ },
+ });
+ const releases = await response.json();
+
+ if (releases && releases.length > 0) {
+ console.log("Latest release tag:", releases[0].tag_name);
+ return releases[0].tag_name; // Assuming the first release is the latest
+ } else {
+ console.log("No releases found.");
+ return null;
+ }
+ } catch (error) {
+ console.error("Error fetching latest release tag:", error);
+ return null;
+ }
+}
+export const load = (async () => {
+ let latestReleaseTag = await fetchLatestReleaseTag();
+ return latestReleaseTag ? { body: latestReleaseTag } : { status: 404 };
+})
\ No newline at end of file
diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte
new file mode 100644
index 0000000..df15a0d
--- /dev/null
+++ b/src/routes/download/+page.svelte
@@ -0,0 +1,64 @@
+
+
+
+ Downloading Suyu
+
+
+
+
+
+
+
+
Download Suyu
+
+ Your download should start automatically. If it doesn't, click the link below.
+
+
+
+
+
+
From d2c3646fd9c940a68952699d5aa7e1eea0774189 Mon Sep 17 00:00:00 2001
From: million1156
Date: Wed, 20 Mar 2024 18:46:50 -0500
Subject: [PATCH 06/11] fix
---
.../api/{redirect => fetchtag}/+server.ts | 2 +-
src/routes/download/+page.svelte | 44 ++++++++-----------
2 files changed, 19 insertions(+), 27 deletions(-)
rename src/routes/api/{redirect => fetchtag}/+server.ts (91%)
diff --git a/src/routes/api/redirect/+server.ts b/src/routes/api/fetchtag/+server.ts
similarity index 91%
rename from src/routes/api/redirect/+server.ts
rename to src/routes/api/fetchtag/+server.ts
index 3c8657b..7b85843 100644
--- a/src/routes/api/redirect/+server.ts
+++ b/src/routes/api/fetchtag/+server.ts
@@ -22,5 +22,5 @@ async function fetchLatestReleaseTag() {
}
export const load = (async () => {
let latestReleaseTag = await fetchLatestReleaseTag();
- return latestReleaseTag ? { body: latestReleaseTag } : { status: 404 };
+ return latestReleaseTag //? { body: latestReleaseTag } : { status: 404 };
})
\ No newline at end of file
diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte
index df15a0d..0739e08 100644
--- a/src/routes/download/+page.svelte
+++ b/src/routes/download/+page.svelte
@@ -1,27 +1,20 @@
@@ -51,14 +44,13 @@
Download Suyu
- Your download should start automatically. If it doesn't, click the link below.
-
-
-
-
+ Your download should start automatically. If it doesn't, click the link below.
+
+
+
From 6372664ca33982741e4c58b36e630688ac60ada2 Mon Sep 17 00:00:00 2001
From: million1156
Date: Wed, 20 Mar 2024 18:58:57 -0500
Subject: [PATCH 07/11] fix wording
---
src/routes/download/+page.svelte | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte
index 0739e08..612e37d 100644
--- a/src/routes/download/+page.svelte
+++ b/src/routes/download/+page.svelte
@@ -42,9 +42,9 @@
stroke="white"
/>
- Download Suyu
+ Downloading Suyu..
- Your download should start automatically. If it doesn't, click the link below.
+ Your download should start shortly. If it doesn't, click here .
From d41e54215e4768d6c88eab91e8f48b249c0fc299 Mon Sep 17 00:00:00 2001
From: million1156
Date: Wed, 20 Mar 2024 18:59:20 -0500
Subject: [PATCH 08/11] remove testing function
---
src/routes/download/+page.svelte | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte
index 612e37d..51bd303 100644
--- a/src/routes/download/+page.svelte
+++ b/src/routes/download/+page.svelte
@@ -46,11 +46,4 @@
Your download should start shortly. If it doesn't, click here .
-
-
-
From a4d42a5251359db0830756754e33d3622c30b68e Mon Sep 17 00:00:00 2001
From: million1156
Date: Wed, 20 Mar 2024 19:23:20 -0500
Subject: [PATCH 09/11] Fix wording on FAQ
---
src/routes/faq/+page.svelte | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/routes/faq/+page.svelte b/src/routes/faq/+page.svelte
index ff9cbf5..90c55c7 100644
--- a/src/routes/faq/+page.svelte
+++ b/src/routes/faq/+page.svelte
@@ -37,7 +37,7 @@
Q: How can I contribute to Suyu?
A: You can contribute to this project by submitting a pull request on our GitLab page. We are always looking for new contributors to help us improve the project!
Q: Where can I download Suyu?
- A: You can download the latest build Suyu from our GitLab . Please make sure you are using the right URL (our GitLab username is suyu-emu!)
+ A: You can download the latest build of Suyu from our GitLab . Please make sure you are using the right URL (our GitLab username is suyu-emu!)
Q: What is the current progress for Suyu?
A: As of 3/20/2024, we have released our first Windows binary 🎉! You can find it here . We are always trying to make more and more progress, so please feel free to join the Discord!
From 5d4d09c544a29cc66db074c85a09ba1b6a309d92 Mon Sep 17 00:00:00 2001
From: million1156
Date: Thu, 21 Mar 2024 09:32:06 -0500
Subject: [PATCH 10/11] Fix downloading
---
src/routes/api/fetchtag/+server.ts | 2 +
src/routes/download/+page.svelte | 93 ++++++++++++++++++++++++------
2 files changed, 76 insertions(+), 19 deletions(-)
diff --git a/src/routes/api/fetchtag/+server.ts b/src/routes/api/fetchtag/+server.ts
index 7b85843..9089ce7 100644
--- a/src/routes/api/fetchtag/+server.ts
+++ b/src/routes/api/fetchtag/+server.ts
@@ -20,7 +20,9 @@ async function fetchLatestReleaseTag() {
return null;
}
}
+
export const load = (async () => {
let latestReleaseTag = await fetchLatestReleaseTag();
+ console.log(latestReleaseTag)
return latestReleaseTag //? { body: latestReleaseTag } : { status: 404 };
})
\ No newline at end of file
diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte
index 51bd303..f4426a5 100644
--- a/src/routes/download/+page.svelte
+++ b/src/routes/download/+page.svelte
@@ -1,22 +1,49 @@
-
+
Downloading Suyu
@@ -42,8 +69,36 @@
stroke="white"
/>
- Downloading Suyu..
+
+
+
+ Downloading Suyu...
+
+
+
+
+
- Your download should start shortly. If it doesn't, click here .
+ Your download should start shortly. If it doesn't, click here .
From ce8c7059d72df5fa48001753f11531593a01defc Mon Sep 17 00:00:00 2001
From: million1156
Date: Thu, 21 Mar 2024 10:13:11 -0500
Subject: [PATCH 11/11] Have the download button link to the "smart
downloading" page
---
src/routes/+page.svelte | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 4af965f..bf08371 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -70,7 +70,7 @@