From b396064cb50c776c3c4061a0a175cddae60ea0f7 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 18 Oct 2024 22:34:46 -0500 Subject: [PATCH] Disable Wasmboy --- package.json | 1 - src/components/media-gallery.tsx | 8 ++++---- yarn.lock | 26 +------------------------- 3 files changed, 5 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index a1da1e162..79ec2b281 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,6 @@ "@sentry/browser": "^8.34.0", "@sentry/react": "^8.34.0", "@sentry/types": "^8.34.0", - "@soapbox.pub/wasmboy": "^0.8.0", "@soapbox/weblock": "npm:@jsr/soapbox__weblock", "@tabler/icons": "^3.19.0", "@tailwindcss/aspect-ratio": "^0.4.2", diff --git a/src/components/media-gallery.tsx b/src/components/media-gallery.tsx index aba466327..a4ee9dd1b 100644 --- a/src/components/media-gallery.tsx +++ b/src/components/media-gallery.tsx @@ -1,5 +1,5 @@ import clsx from 'clsx'; -import React, { useState, useRef, useLayoutEffect, Suspense } from 'react'; +import React, { useState, useRef, useLayoutEffect } from 'react'; import Blurhash from 'soapbox/components/blurhash'; import Icon from 'soapbox/components/icon'; @@ -15,7 +15,7 @@ import { isPanoramic, isPortrait, isNonConformingRatio, minimumAspectRatio, maxi import type { Property } from 'csstype'; import type { List as ImmutableList } from 'immutable'; -const Gameboy = React.lazy(() => import('./gameboy')); +// const Gameboy = React.lazy(() => import('./gameboy')); const ATTACHMENT_LIMIT = 4; const MAX_FILENAME_LENGTH = 45; @@ -144,7 +144,7 @@ const Item: React.FC = ({ let thumbnail: React.ReactNode = ''; const ext = attachment.url.split('.').pop()?.toLowerCase(); - if (attachment.type === 'unknown' && ['gb', 'gbc'].includes(ext!)) { + /*if (attachment.type === 'unknown' && ['gb', 'gbc'].includes(ext!)) { return (
= ({
); - } else if (attachment.type === 'unknown') { + } else */if (attachment.type === 'unknown') { const filename = truncateFilename(attachment.url, MAX_FILENAME_LENGTH); const attachmentIcon = ( = 2.1.2 < 3.0.0" -idb@^2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/idb/-/idb-2.1.3.tgz#7b295fa1a46ab7851e42dd85543a271435f87fee" - integrity sha512-1He6QAuavrD38HCiJasi4lEEK87Y22ldFuM+ZHkp433n4Fd5jXjWKutClYFp8w4mgx3zgrjnWxL8dpjMzcQ+WQ== - idb@^7.0.1: version "7.1.1" resolved "https://registry.yarnpkg.com/idb/-/idb-7.1.1.tgz#d910ded866d32c7ced9befc5bfdf36f572ced72b" @@ -7224,7 +7205,7 @@ quick-lru@^5.1.1: resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932" integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== -raf@^3.1.0, raf@^3.4.0: +raf@^3.1.0: version "3.4.1" resolved "https://registry.yarnpkg.com/raf/-/raf-3.4.1.tgz#0742e99a4a6552f445d73e3ee0328af0ff1ede39" integrity sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA== @@ -7733,11 +7714,6 @@ responselike@^2.0.0: dependencies: lowercase-keys "^2.0.0" -responsive-gamepad@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/responsive-gamepad/-/responsive-gamepad-1.1.0.tgz#0173d05199e3c41c09f3b1b9fa8eb811dad8e585" - integrity sha512-njsJuKvany9eYjywXm8iorTeXeAAPqwMNaRWOo8jlh0iQboXgGPf6Z6bLGntELrfU+vR94jTPJYRW0Zzb2gaRA== - restore-cursor@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e"