From 57cf58d420710ff49a1717dce15ce1d02f976fd0 Mon Sep 17 00:00:00 2001 From: Eclipse Date: Wed, 13 May 2026 19:06:37 +0000 Subject: [PATCH] Add extensions to dump viewer (#146) --- i18n/en/code.json | 45 +++++++++++ i18n/en/docusaurus-theme-classic/footer.json | 4 + src/pages/utilities/dump-viewer.tsx | 79 ++++++++++++-------- 3 files changed, 96 insertions(+), 32 deletions(-) diff --git a/i18n/en/code.json b/i18n/en/code.json index e4a200b..fd55268 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -820,5 +820,50 @@ "theme.contentVisibility.draftBanner.message": { "message": "This page is a draft. It will only be visible in dev and be excluded from the production build.", "description": "The draft content banner message" + }, + "providers.provider.arth_hosting.description": { + "message": "Geyser is installed and configured on all servers by default. You can disable it in the 'Manage Plugins' menu." + }, + "providers.provider.mcserverhost.description": { + "message": "Under the server configuration, select 'Crossplay' to automatically install Geyser and Floodgate. Join with the connection address. To update Geyser and Floodgate, replace the plugin jars in the server manager and restart the server." + }, + "providers.provider.vemox_hosting.description": { + "message": "Full automatic installation. Go to one of the panel options and select the option to enable GeyserMC. Then, restart and connect to your server using your Java IP and port." + }, + "providers.provider.mcforfree.de.description": { + "message": "Create an extra port in the game panel, then change the `port` in the `bedrock` section to the newly created port. To connect on Bedrock edition, use the Java server's IP and the port you've created. It may take a few minutes for the port to become active." + }, + "providers.provider.modrinth.description": { + "message": "Check [Modrinth's documentation](https://support.modrinth.com/en/articles/10986613-adding-geyser-to-your-server) for specific instructions." + }, + "providers.provider.orionnodes.description": { + "message": "Open a port yourself from the network page in the game panel, use that port in the bedrock section of the Geyser config." + }, + "providers.provider.papernodes.description": { + "message": "Enable clone-remote-port (or manually set the Bedrock port to the Java port), and connect with the Java IP and port. Alternatively, you can contact the host to request an additional port or a dedicated IP." + }, + "providers.provider.wepwawet.description": { + "message": "Add a new port in the Network tab. Use this new port as the bedrock port." + }, + "pages.download.description.offhandextension": { + "message": "An extension that allows Bedrock players to switch their offhand and mainhand item by emoting." + }, + "pages.download.description.rainbow": { + "message": "A Minecraft mod to generate Geyser item mappings and bedrock resourcepacks for use with Geyser's custom item API (v2)." + }, + "pages.download.description.hydraulic": { + "message": "A companion mod to Geyser which allows for Bedrock players to join modded Minecraft: Java Edition servers." + }, + "pages.download.description.thunder": { + "message": "A java application to convert simple Java Edition resource packs to Bedrock Edition ones." + }, + "pages.dumpviewer.extensions": { + "message": "Extensions" + }, + "pages.dumpviewer.extensions.noextensions": { + "message": "No extensions to show." + }, + "pages.dumpviewer.extensions.helptext": { + "message": "Click on an extension to view more information." } } diff --git a/i18n/en/docusaurus-theme-classic/footer.json b/i18n/en/docusaurus-theme-classic/footer.json index d02fe02..60cc961 100644 --- a/i18n/en/docusaurus-theme-classic/footer.json +++ b/i18n/en/docusaurus-theme-classic/footer.json @@ -66,5 +66,9 @@ "logo.alt": { "message": "GeyserMC logo", "description": "The alt text of footer logo" + }, + "copyright": { + "message": "Copyright © 2026 GeyserMC. Built with Docusaurus.
This website is not an official Minecraft website and is not associated with Mojang Studios or Microsoft. All product and company names are trademarks or registered trademarks of their respective holders. Use of these names does not imply any affiliation or endorsement by them.", + "description": "The footer copyright" } } diff --git a/src/pages/utilities/dump-viewer.tsx b/src/pages/utilities/dump-viewer.tsx index 762e5ab..03c6be7 100644 --- a/src/pages/utilities/dump-viewer.tsx +++ b/src/pages/utilities/dump-viewer.tsx @@ -8,16 +8,10 @@ import { Grid } from '@site/src/components/Grid'; import CodeBlock from '@theme/CodeBlock'; import clsx from 'clsx'; -const DumpViewerPage: React.FC = () => { - const [dumpId, setDumpId] = useState(''); - const [data, setData] = useState({}); - const [statusMessage, setStatusMessage] = useState(''); +const PluginList = ({plugins}, {}) => { const [activePlugin, setActivePlugin] = useState({}); - const pluginPopoverRef = useRef(null); - const urlReg = /^(https?:\/\/)?dump\.geysermc\.org/; - useEffect(() => { const handleClickOutside = (event) => setActivePlugin({}); document.addEventListener("mousedown", handleClickOutside); @@ -27,6 +21,37 @@ const DumpViewerPage: React.FC = () => { }; }, [pluginPopoverRef]); + return + {plugins.map(plugin => ( +
+
setActivePlugin(plugin)} className={styles.pluginName}> + {plugin.name}
+
+ + {activePlugin?.main === plugin.main ? ( +
+

{plugin.name}

+

{plugin.version}

+

{plugin.enabled ? "Enabled" : "Disabled"}

+ +

Authors:

+
    + {plugin.authors.map(author =>
  • {author}
  • )} +
+
+ ) : undefined} +
+ ))} + +}; + +const DumpViewerPage: React.FC = () => { + const [dumpId, setDumpId] = useState(''); + const [data, setData] = useState({}); + const [statusMessage, setStatusMessage] = useState(''); + + const urlReg = /^(https?:\/\/)?dump\.geysermc\.org/; + useEffect(() => { // Get the ID from the URL let id = window.location.href.includes('?') ? window.location.href.split('?').pop() : ''; @@ -76,10 +101,6 @@ const DumpViewerPage: React.FC = () => { return string.charAt(0).toUpperCase() + string.slice(1) } - const handlePluginClick = (plugin) => { - setActivePlugin(plugin); - } - return ( <> { <>

Click on a plugin to view more information.

- - {data.bootstrapInfo.plugins.map(plugin => ( -
- handlePluginClick(plugin)} className={styles.pluginName}> - {plugin.name}
- + + + )} +
+
+
+
+ Extensions ({data.extensionInfo?.length ?? 0}) +
+
+ {!data.extensionInfo || data.extensionInfo.length === 0 ? ( +

No extensions to show.

) : ( + <> +

Click on an extension to view more information.

- {activePlugin?.main === plugin.main ? ( -
-

{plugin.name}

-

{plugin.version}

-

{plugin.enabled ? "Enabled" : "Disabled"}

- -

Authors:

-
    - {plugin.authors.map(author =>
  • {author}
  • )} -
-
- ) : undefined} -
- ))} - + )}