Skip to content

Commit d4aa3ed

Browse files
committed
hmm
1 parent 1663851 commit d4aa3ed

File tree

9 files changed

+62
-50
lines changed

9 files changed

+62
-50
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/download/DownloadC.astro renamed to src/components/download/DownloadUKMCLC.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ type launch = {
66
};
77
88
// Linux
9-
import linData from '@public/launcher/latest-version-lin.json' assert { type: "json" };
10-
const data = linData.versions ?? linData
9+
import linData from '@public/apps/launcher/latest-version-lin.json' assert { type: "json" };
10+
const data = linData ?? linData
1111
const linVer = Array.isArray(data) ? (data as unknown as launch[]) : [];
1212
1313
// Windows
14-
import winData from '@public/launcher/latest-version-win.json' assert { type: "json" };
15-
const data1 = winData.versions ?? winData
14+
import winData from '@public/apps/launcher/latest-version-win.json' assert { type: "json" };
15+
const data1 = winData ?? winData
1616
const winVer = Array.isArray(data1) ? (data1 as unknown as launch[]) : [];
1717
1818
// Mac
19-
import macData from '@public/launcher/latest-version-mac.json' assert { type: "json" };
20-
const data2 = macData.versions ?? macData
19+
import macData from '@public/apps/launcher/latest-version-mac.json' assert { type: "json" };
20+
const data2 = macData ?? macData
2121
const macVer = Array.isArray(data2) ? (data2 as unknown as launch[]) : [];
2222
---
2323

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +0,0 @@
1-
<script>
2-
document.addEventListener("DOMContentLoaded", (event) => {
3-
event.preventDefault()
4-
history.pushState(null, "", "/download-files")
5-
});
6-
7-
let li = document.getElementById("linux")
8-
let wi = document.getElementById("wind")
9-
let ma = document.getElementById("maco")
10-
let up = document.getElementById("up");
11-
12-
li?.addEventListener("click", (event) => {
13-
location.href = "#lin"
14-
15-
event.preventDefault();
16-
history.pushState(null, "", "/download-files");
17-
});
18-
19-
wi?.addEventListener("click", (event) => {
20-
location.href = "#win"
21-
22-
event.preventDefault();
23-
history.pushState(null, "", "/download-files");
24-
});
25-
26-
ma?.addEventListener("click", (event) => {
27-
location.href = "#mac"
28-
29-
event.preventDefault();
30-
history.pushState(null, "", "/download-files");
31-
});
32-
33-
up?.addEventListener("click", (event) => {
34-
location.href = "#h"
35-
36-
event.preventDefault();
37-
history.pushState(null, "", "/download-files");
38-
});
39-
</script>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<script>
2+
document.addEventListener("DOMContentLoaded", (event) => {
3+
event.preventDefault()
4+
history.pushState(null, "", "/launcher/download-ukmcl")
5+
});
6+
7+
let li = document.getElementById("linux")
8+
let wi = document.getElementById("wind")
9+
let ma = document.getElementById("maco")
10+
let up = document.getElementById("up");
11+
12+
li?.addEventListener("click", (event) => {
13+
location.href = "#lin"
14+
15+
event.preventDefault();
16+
history.pushState(null, "", "/launcher/download-ukmcl");
17+
});
18+
19+
wi?.addEventListener("click", (event) => {
20+
location.href = "#win"
21+
22+
event.preventDefault();
23+
history.pushState(null, "", "/launcher/download-ukmcl");
24+
});
25+
26+
ma?.addEventListener("click", (event) => {
27+
location.href = "#mac"
28+
29+
event.preventDefault();
30+
history.pushState(null, "", "/launcher/download-ukmcl");
31+
});
32+
33+
up?.addEventListener("click", (event) => {
34+
location.href = "#h"
35+
36+
event.preventDefault();
37+
history.pushState(null, "", "/launcher/download-ukmcl");
38+
});
39+
</script>

src/pages/download.astro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
import '@/download.css';
3+
import FontDown from '@/components/download/FontDown.astro';
4+
import Icon from '@/components/Icon.astro';
5+
---
6+
<!doctype html>
7+
<html>
8+
<head>
9+
<FontDown />
10+
<Icon />
11+
</head>
12+
</html>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
import "@/download-files.css";
3-
import DownloadJS from "@/other/download/DownloadJS.astro";
2+
import "@/download-ukmcl.css";
3+
import DownloadUKMCLJS from "@/other/download/DownloadUKMCLJS.astro";
44
import FontDown from "@/components/download/FontDown.astro";
55
import Icon from "@/components/Icon.astro";
6-
import DownloadC from "@/components/download/DownloadC.astro";
6+
import DownloadUKMCLC from "@/components/download/DownloadUKMCLC.astro";
77
import HeaderDown from "@/components/download/HeaderDown.astro";
88
---
99
<!doctype html>
@@ -20,7 +20,7 @@ import HeaderDown from "@/components/download/HeaderDown.astro";
2020
<img src="../upbutton.svg" height="60" width="60">
2121
</a>
2222
</div>
23-
<DownloadC />
24-
<DownloadJS />
23+
<DownloadUKMCLC />
24+
<DownloadUKMCLJS />
2525
</body>
2626
</html>

0 commit comments

Comments
 (0)