added initial files

This commit is contained in:
2025-07-31 01:31:31 +02:00
parent 2a3dc51ce9
commit 018442e94f
6 changed files with 60 additions and 44 deletions
@@ -18,7 +18,6 @@ import {
updateUpdateAvailable,
isNewVersionAvailable
} from '../../../common/reducers/actions';
import BisectHosting from '../../../ui/BisectHosting';
import Logo from '../../../ui/Logo';
import ga from '../../../common/utils/analytics';
@@ -198,21 +197,6 @@ const SystemNavbar = () => {
height: 100%;
`}
>
<div
css={`
white-space: nowrap;
`}
>
Partnered with &nbsp;&nbsp;
</div>
<BisectHosting
showPointerCursor
onClick={() => {
ga.sendCustomEvent('BHAdViewNavbar');
dispatch(openModal('BisectHosting'));
}}
/>
{/* <PulsatingCircle /> */}
</div>
</>
)}
@@ -295,11 +279,6 @@ const SystemNavbar = () => {
height: 100%;
`}
>
Partnered with &nbsp;&nbsp;
<BisectHosting
showPointerCursor
onClick={() => dispatch(openModal('BisectHosting'))}
/>
{/* <PulsatingCircle /> */}
</div>
<div>
+46
View File
@@ -324,6 +324,52 @@ export const getFilteredVersions = (
}))
}
]
},
{
value: 'quilt',
label: 'Quilt',
children: [
{
value: 'release',
label: 'Releases',
children: fabricManifest.game
.filter(v => v.stable)
.map(v => ({
value: v.version,
label: v.version,
children: fabricManifest.loader.map(c => ({
value: c.version,
label: c.version
}))
}))
},
{
value: 'snapshot',
label: 'Snapshots',
children: fabricManifest.game
.filter(v => !v.stable)
.map(v => ({
value: v.version,
label: v.version,
children: fabricManifest.loader.map(c => ({
value: c.version,
label: c.version
}))
}))
}
]
},
{
value: 'neoforge',
label: 'NeoForge',
children: Object.entries(forgeManifest).map(([k, v]) => ({
value: k,
label: k,
children: v.sort(sortByForgeVersionDesc).map(child => ({
value: child,
label: child.split('-')[1]
}))
}))
}
];
return versions;
-5
View File
@@ -52,11 +52,6 @@ const Home = () => {
useEffect(() => {
const init = async () => {
const appVersion = await ipcRenderer.invoke('getAppVersion');
if (lastUpdateVersion !== appVersion) {
dispatch(updateLastUpdateVersion(appVersion));
dispatch(openModal('ChangeLogs'));
}
try {
const { data } = await axios.get(
null
+2 -18
View File
@@ -10,7 +10,6 @@ import {
} from '@fortawesome/free-solid-svg-icons';
import backgroundVideo from '../../../common/assets/onboarding.webm';
import { _getCurrentAccount } from '../../../common/utils/selectors';
import BisectHosting from '../../../ui/BisectHosting';
import KoFiButton from '../../../common/assets/ko-fi.png';
import { openModal } from '../../../common/reducers/modals/actions';
@@ -125,7 +124,7 @@ const Home = () => {
padding: 0 120px;
`}
>
{account.selectedProfile.name}, welcome to GDLauncher!
{account.selectedProfile.name}, welcome to GDLauncher Continuation!
</div>
</div>
<div
@@ -148,22 +147,7 @@ const Home = () => {
margin: 20% 10%;
`}
>
GDlauncher is completely free and open source. <br />
If you want to support us, consider renting a server on BisectHosting,
our official partner!
<br />
<br />
<div
css={`
cursor: pointer;
`}
>
<BisectHosting
showPointerCursor
size={100}
onClick={() => dispatch(openModal('BisectHosting'))}
/>
</div>
GDlauncher Continuation is completely free and open source. <br />
</div>
</div>
<div
+10
View File
@@ -206,6 +206,16 @@ export const getFabricManifest = () => {
return axios.get(url);
};
export const getNeoforgeManifest = () => {
const url = `https://maven.neoforged.net/releases/net/neoforged/neoforge/maven-metadata.json?timestamp=${new Date().getTime()}`;
return axios.get(url);
};
export const getQuiltManifest = () => {
const url = `${FABRIC_APIS}/quilt/versions`;
return axios.get(url);
};
export const getJavaManifest = () => {
const url = JAVA_MANIFEST_URL;
return axios.get(url);
+2
View File
@@ -54,6 +54,8 @@ import {
getFabricJson,
getFabricManifest,
getForgeManifest,
getNeoforgeManifest,
getQuiltManifest,
getJavaLatestManifest,
getJavaManifest,
getMcManifest,