From 2a134f0b096766852027a6dfcc6c247fc0049175 Mon Sep 17 00:00:00 2001 From: KeksNino Date: Thu, 31 Jul 2025 01:32:02 +0200 Subject: [PATCH] Revert "added initial files" This reverts commit 018442e94f37bd0a156d39a522db1ca7b93aa54b. --- src/app/desktop/components/SystemNavbar.js | 21 ++++++++++ src/app/desktop/utils/index.js | 46 ---------------------- src/app/desktop/views/Home.js | 5 +++ src/app/desktop/views/Onboarding.js | 20 +++++++++- src/common/api.js | 10 ----- src/common/reducers/actions.js | 2 - 6 files changed, 44 insertions(+), 60 deletions(-) diff --git a/src/app/desktop/components/SystemNavbar.js b/src/app/desktop/components/SystemNavbar.js index 2848d7d..ff9b842 100644 --- a/src/app/desktop/components/SystemNavbar.js +++ b/src/app/desktop/components/SystemNavbar.js @@ -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%; `} > +
+ Partnered with    +
+ { + ga.sendCustomEvent('BHAdViewNavbar'); + dispatch(openModal('BisectHosting')); + }} + /> + {/* */} )} @@ -279,6 +295,11 @@ const SystemNavbar = () => { height: 100%; `} > + Partnered with    + dispatch(openModal('BisectHosting'))} + /> {/* */}
diff --git a/src/app/desktop/utils/index.js b/src/app/desktop/utils/index.js index 14c9e11..dcd0e3a 100644 --- a/src/app/desktop/utils/index.js +++ b/src/app/desktop/utils/index.js @@ -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; diff --git a/src/app/desktop/views/Home.js b/src/app/desktop/views/Home.js index 25db192..0e64ba7 100644 --- a/src/app/desktop/views/Home.js +++ b/src/app/desktop/views/Home.js @@ -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 diff --git a/src/app/desktop/views/Onboarding.js b/src/app/desktop/views/Onboarding.js index 3a24ef0..4784e38 100644 --- a/src/app/desktop/views/Onboarding.js +++ b/src/app/desktop/views/Onboarding.js @@ -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!
{ margin: 20% 10%; `} > - GDlauncher Continuation is completely free and open source.
+ GDlauncher is completely free and open source.
+ If you want to support us, consider renting a server on BisectHosting, + our official partner! +
+
+
+ dispatch(openModal('BisectHosting'))} + /> +
{ 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); diff --git a/src/common/reducers/actions.js b/src/common/reducers/actions.js index 8fa8623..acf160f 100644 --- a/src/common/reducers/actions.js +++ b/src/common/reducers/actions.js @@ -54,8 +54,6 @@ import { getFabricJson, getFabricManifest, getForgeManifest, - getNeoforgeManifest, - getQuiltManifest, getJavaLatestManifest, getJavaManifest, getMcManifest,