@@ -18,6 +18,7 @@ import {
|
||||
updateUpdateAvailable,
|
||||
isNewVersionAvailable
|
||||
} from '../../../common/reducers/actions';
|
||||
import BisectHosting from '../../../ui/BisectHosting';
|
||||
import Logo from '../../../ui/Logo';
|
||||
import ga from '../../../common/utils/analytics';
|
||||
|
||||
@@ -197,6 +198,21 @@ const SystemNavbar = () => {
|
||||
height: 100%;
|
||||
`}
|
||||
>
|
||||
<div
|
||||
css={`
|
||||
white-space: nowrap;
|
||||
`}
|
||||
>
|
||||
Partnered with
|
||||
</div>
|
||||
<BisectHosting
|
||||
showPointerCursor
|
||||
onClick={() => {
|
||||
ga.sendCustomEvent('BHAdViewNavbar');
|
||||
dispatch(openModal('BisectHosting'));
|
||||
}}
|
||||
/>
|
||||
{/* <PulsatingCircle /> */}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
@@ -279,6 +295,11 @@ const SystemNavbar = () => {
|
||||
height: 100%;
|
||||
`}
|
||||
>
|
||||
Partnered with
|
||||
<BisectHosting
|
||||
showPointerCursor
|
||||
onClick={() => dispatch(openModal('BisectHosting'))}
|
||||
/>
|
||||
{/* <PulsatingCircle /> */}
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -324,52 +324,6 @@ 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;
|
||||
|
||||
@@ -52,6 +52,11 @@ 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
|
||||
|
||||
@@ -10,6 +10,7 @@ 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';
|
||||
|
||||
@@ -124,7 +125,7 @@ const Home = () => {
|
||||
padding: 0 120px;
|
||||
`}
|
||||
>
|
||||
{account.selectedProfile.name}, welcome to GDLauncher Continuation!
|
||||
{account.selectedProfile.name}, welcome to GDLauncher!
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
@@ -147,7 +148,22 @@ const Home = () => {
|
||||
margin: 20% 10%;
|
||||
`}
|
||||
>
|
||||
GDlauncher Continuation is completely free and open source. <br />
|
||||
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>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
|
||||
@@ -206,16 +206,6 @@ 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);
|
||||
|
||||
@@ -54,8 +54,6 @@ import {
|
||||
getFabricJson,
|
||||
getFabricManifest,
|
||||
getForgeManifest,
|
||||
getNeoforgeManifest,
|
||||
getQuiltManifest,
|
||||
getJavaLatestManifest,
|
||||
getJavaManifest,
|
||||
getMcManifest,
|
||||
|
||||
Reference in New Issue
Block a user