@@ -18,6 +18,7 @@ import {
|
|||||||
updateUpdateAvailable,
|
updateUpdateAvailable,
|
||||||
isNewVersionAvailable
|
isNewVersionAvailable
|
||||||
} from '../../../common/reducers/actions';
|
} from '../../../common/reducers/actions';
|
||||||
|
import BisectHosting from '../../../ui/BisectHosting';
|
||||||
import Logo from '../../../ui/Logo';
|
import Logo from '../../../ui/Logo';
|
||||||
import ga from '../../../common/utils/analytics';
|
import ga from '../../../common/utils/analytics';
|
||||||
|
|
||||||
@@ -197,6 +198,21 @@ const SystemNavbar = () => {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
`}
|
`}
|
||||||
>
|
>
|
||||||
|
<div
|
||||||
|
css={`
|
||||||
|
white-space: nowrap;
|
||||||
|
`}
|
||||||
|
>
|
||||||
|
Partnered with
|
||||||
|
</div>
|
||||||
|
<BisectHosting
|
||||||
|
showPointerCursor
|
||||||
|
onClick={() => {
|
||||||
|
ga.sendCustomEvent('BHAdViewNavbar');
|
||||||
|
dispatch(openModal('BisectHosting'));
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
{/* <PulsatingCircle /> */}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@@ -279,6 +295,11 @@ const SystemNavbar = () => {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
`}
|
`}
|
||||||
>
|
>
|
||||||
|
Partnered with
|
||||||
|
<BisectHosting
|
||||||
|
showPointerCursor
|
||||||
|
onClick={() => dispatch(openModal('BisectHosting'))}
|
||||||
|
/>
|
||||||
{/* <PulsatingCircle /> */}
|
{/* <PulsatingCircle /> */}
|
||||||
</div>
|
</div>
|
||||||
<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;
|
return versions;
|
||||||
|
|||||||
@@ -52,6 +52,11 @@ const Home = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
|
const appVersion = await ipcRenderer.invoke('getAppVersion');
|
||||||
|
if (lastUpdateVersion !== appVersion) {
|
||||||
|
dispatch(updateLastUpdateVersion(appVersion));
|
||||||
|
dispatch(openModal('ChangeLogs'));
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const { data } = await axios.get(
|
const { data } = await axios.get(
|
||||||
null
|
null
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import {
|
|||||||
} from '@fortawesome/free-solid-svg-icons';
|
} from '@fortawesome/free-solid-svg-icons';
|
||||||
import backgroundVideo from '../../../common/assets/onboarding.webm';
|
import backgroundVideo from '../../../common/assets/onboarding.webm';
|
||||||
import { _getCurrentAccount } from '../../../common/utils/selectors';
|
import { _getCurrentAccount } from '../../../common/utils/selectors';
|
||||||
|
import BisectHosting from '../../../ui/BisectHosting';
|
||||||
import KoFiButton from '../../../common/assets/ko-fi.png';
|
import KoFiButton from '../../../common/assets/ko-fi.png';
|
||||||
import { openModal } from '../../../common/reducers/modals/actions';
|
import { openModal } from '../../../common/reducers/modals/actions';
|
||||||
|
|
||||||
@@ -124,7 +125,7 @@ const Home = () => {
|
|||||||
padding: 0 120px;
|
padding: 0 120px;
|
||||||
`}
|
`}
|
||||||
>
|
>
|
||||||
{account.selectedProfile.name}, welcome to GDLauncher Continuation!
|
{account.selectedProfile.name}, welcome to GDLauncher!
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -147,7 +148,22 @@ const Home = () => {
|
|||||||
margin: 20% 10%;
|
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>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -206,16 +206,6 @@ export const getFabricManifest = () => {
|
|||||||
return axios.get(url);
|
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 = () => {
|
export const getJavaManifest = () => {
|
||||||
const url = JAVA_MANIFEST_URL;
|
const url = JAVA_MANIFEST_URL;
|
||||||
return axios.get(url);
|
return axios.get(url);
|
||||||
|
|||||||
@@ -54,8 +54,6 @@ import {
|
|||||||
getFabricJson,
|
getFabricJson,
|
||||||
getFabricManifest,
|
getFabricManifest,
|
||||||
getForgeManifest,
|
getForgeManifest,
|
||||||
getNeoforgeManifest,
|
|
||||||
getQuiltManifest,
|
|
||||||
getJavaLatestManifest,
|
getJavaLatestManifest,
|
||||||
getJavaManifest,
|
getJavaManifest,
|
||||||
getMcManifest,
|
getMcManifest,
|
||||||
|
|||||||
Reference in New Issue
Block a user