diff --git a/apps/app-frontend/package.json b/apps/app-frontend/package.json index f45bfeae..79648c4f 100644 --- a/apps/app-frontend/package.json +++ b/apps/app-frontend/package.json @@ -1,7 +1,7 @@ { "name": "@modrinth/app-frontend", "private": true, - "version": "0.8.503", + "version": "0.8.504", "development_build": false, "type": "module", "scripts": { diff --git a/apps/app-frontend/src/components/ui/InstanceCreationModal.vue b/apps/app-frontend/src/components/ui/InstanceCreationModal.vue index e439c203..131393ea 100644 --- a/apps/app-frontend/src/components/ui/InstanceCreationModal.vue +++ b/apps/app-frontend/src/components/ui/InstanceCreationModal.vue @@ -417,7 +417,7 @@ const openFile = async () => { const newProject = await open({ multiple: false }) if (!newProject) return hide() - await install_from_file(newProject.path).catch(handleError) + await install_from_file(newProject).catch(handleError) trackEvent('InstanceCreate', { source: 'CreationModalFileOpen', diff --git a/apps/frontend/src/components/ui/AdPlaceholder.vue b/apps/frontend/src/components/ui/AdPlaceholder.vue index 948ac273..c965ec75 100644 --- a/apps/frontend/src/components/ui/AdPlaceholder.vue +++ b/apps/frontend/src/components/ui/AdPlaceholder.vue @@ -13,7 +13,7 @@
-
+
@@ -23,7 +23,9 @@ import { ChevronRightIcon } from "@modrinth/assets"; useHead({ script: [ { - src: "https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js", + type: "module", + src: "//js.rev.iq", + "data-domain": "modrinth.com", async: true, }, { @@ -31,25 +33,6 @@ useHead({ async: true, }, ], - link: [ - { - rel: "preload", - as: "script", - href: "https://www.googletagservices.com/tag/js/gpt.js", - }, - ], -}); - -onMounted(() => { - window.tude = window.tude || { cmd: [] }; - tude.cmd.push(function () { - tude.refreshAdsViaDivMappings([ - { - divId: "modrinth-rail-1", - baseDivId: "pb-slot-square-2", - }, - ]); - }); }); + + +
+ +
+
+ - + document.addEventListener("contextmenu", (event) => event.preventDefault()); + + diff --git a/patches/fix-import-mrpack.patch b/patches/fix-import-mrpack.patch new file mode 100644 index 00000000..85c3bd90 --- /dev/null +++ b/patches/fix-import-mrpack.patch @@ -0,0 +1,13 @@ +diff --git a/apps/app-frontend/src/components/ui/InstanceCreationModal.vue b/apps/app-frontend/src/components/ui/InstanceCreationModal.vue +index e439c203..131393ea 100644 +--- a/apps/app-frontend/src/components/ui/InstanceCreationModal.vue ++++ b/apps/app-frontend/src/components/ui/InstanceCreationModal.vue +@@ -417,7 +417,7 @@ const openFile = async () => { + const newProject = await open({ multiple: false }) + if (!newProject) return + hide() +- await install_from_file(newProject.path).catch(handleError) ++ await install_from_file(newProject).catch(handleError) + + trackEvent('InstanceCreate', { + source: 'CreationModalFileOpen',