Skip to content

Commit

Permalink
Add config editor and dump viewer (#1)
Browse files Browse the repository at this point in the history
* Begin working on config editor

* Finish working on config editor

* Add dump viewer

* Fix online mode not showing in dump viewer

* remove debug logging

* Replace " with '

* Fix syntax error

* Add more functionality to dump viewer

* Improve style of plugin popover

* Change card header colour

* Use crypto api for generating uuids

* Fix broken regex

* Add german translations from @onebeastchris

Co-authored-by: chris <[email protected]>

* Move pretty much all hardcoded text on dump and config viewer pages to translations

* Use old yarn.lock

* Add indicator to show if a plugin is enabled

---------

Co-authored-by: chris <[email protected]>
  • Loading branch information
lukeeey and onebeastchris authored May 15, 2024
1 parent be8823e commit aa3f447
Show file tree
Hide file tree
Showing 12 changed files with 1,542 additions and 2 deletions.
18 changes: 18 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,24 @@ const config: Config = {
position: 'left',
className: 'header-blog-link'
},
{
type: 'dropdown',
label: 'Utilities',
className: 'header-utilities-link',
position: 'left',
items: [
{

to: 'utilities/config-editor',
label: 'Config Editor',
},
{

to: 'utilities/dump-viewer',
label: 'Dump Viewer',
}
]
},
{
to: 'download',
label: 'Download',
Expand Down
111 changes: 111 additions & 0 deletions i18n/de/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,117 @@
"pages.download.description.geyseroptionalpack": {
"message": "An optional Bedrock resource pack to extend Geyser functionality."
},
"pages.configeditor.title": {
"message": "Konfigurationseditor"
},
"pages.configeditor.subheading": {
"message": "Bearbeite deine Geyser Konfigurationsdatei."
},
"pages.configeditor.noconfigselected.heading": {
"message": "No config selected."
},
"pages.configeditor.noconfigselected.subheading": {
"message": "Upload a file or get started with the default config!"
},
"pages.configeditor.button.defaultconfig": {
"message": "Default"
},
"pages.configeditor.button.upload": {
"message": "Upload"
},
"pages.configeditor.button.export": {
"message": "Export"
},
"pages.dumpviewer.title": {
"message": "Dump Betrachter"
},
"pages.dumpviewer.subheading": {
"message": "Schau dir eine Zusammenfassung deines Geyser Dumps an."
},
"pages.dumpviewer.enterdumpid": {
"message": "Enter Dump ID or URL below and click load."
},
"pages.dumpviewer.button.load": {
"message": "Load"
},
"pages.dumpviewer.versions": {
"message": "Versions"
},
"pages.dumpviewer.versions.geyserver": {
"message": "Geyser Version"
},
"pages.dumpviewer.versions.javaver": {
"message": "Java Version"
},
"pages.dumpviewer.versions.os": {
"message": "Operating System"
},
"pages.dumpviewer.geyserver": {
"message": "Geyser Version"
},
"pages.dumpviewer.geyserver.build": {
"message": "Build"
},
"pages.dumpviewer.geyserver.commit": {
"message": "Commit Hash"
},
"pages.dumpviewer.geyserver.branch": {
"message": "Branch"
},
"pages.dumpviewer.platform": {
"message": "Platform Info"
},
"pages.dumpviewer.platform.id": {
"message": "Platform Identifier"
},
"pages.dumpviewer.platform.name": {
"message": "Platform Name"
},
"pages.dumpviewer.platform.version": {
"message": "Platform Version"
},
"pages.dumpviewer.platform.apiver": {
"message": "Platform API Version"
},
"pages.dumpviewer.platform.onlinemode": {
"message": "Online Mode"
},
"pages.dumpviewer.sysinfo": {
"message": "System Info"
},
"pages.dumpviewer.sysinfo.cpucount": {
"message": "CPU Count"
},
"pages.dumpviewer.sysinfo.cpuname": {
"message": "CPU Name"
},
"pages.dumpviewer.sysinfo.ram": {
"message": "RAM"
},
"pages.dumpviewer.sysinfo.javaname": {
"message": "Java Name"
},
"pages.dumpviewer.sysinfo.javavendor": {
"message": "Java Vendor"
},
"pages.dumpviewer.sysinfo.dockercheck": {
"message": "Uses Docker?"
},
"pages.dumpviewer.plugins": {
"message": "Plugins"
},
"pages.dumpviewer.plugins.helptext": {
"message": "Click on a plugin to view more information."
},
"pages.dumpviewer.plugins.noplugins": {
"message": "No plugins to show."
},
"pages.dumpviewer.config": {
"message": "Config"
},
"pages.dumpviewer.viewsource": {
"message": "View dump source"
},
"theme.ErrorPageContent.title": {
"message": "Die Seite ist abgestürzt.",
"description": "The title of the fallback page when the page crashed"
Expand Down
160 changes: 160 additions & 0 deletions i18n/de/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,165 @@
"sidebar.geyserSidebar.category.Geyser API": {
"message": "Geyser API",
"description": "The label for category Geyser API in sidebar geyserSidebar"
},
"sidebar.apiSidebar.category.api.geysermc.org": {
"message": "api.geysermc.org",
"description": "The label for category api.geysermc.org in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.api.geysermc.org.link.generated-index.title": {
"message": "Global API",
"description": "The generated-index page title for category api.geysermc.org in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.api.geysermc.org.link.generated-index.description": {
"message": "Global API",
"description": "The generated-index page description for category api.geysermc.org in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.health": {
"message": "health",
"description": "The label for category health in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.link": {
"message": "link",
"description": "The label for category link in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.stats": {
"message": "stats",
"description": "The label for category stats in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.xbox": {
"message": "xbox",
"description": "The label for category xbox in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.skin": {
"message": "skin",
"description": "The label for category skin in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.utils": {
"message": "utils",
"description": "The label for category utils in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.UNTAGGED": {
"message": "UNTAGGED",
"description": "The label for category UNTAGGED in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.download.geysermc.org": {
"message": "download.geysermc.org",
"description": "The label for category download.geysermc.org in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.download.geysermc.org.link.generated-index.title": {
"message": "Downloads API",
"description": "The generated-index page title for category download.geysermc.org in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.download.geysermc.org.link.generated-index.description": {
"message": "Downloads API",
"description": "The generated-index page description for category download.geysermc.org in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.projects-controller": {
"message": "projects-controller",
"description": "The label for category projects-controller in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.project-controller": {
"message": "project-controller",
"description": "The label for category project-controller in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.version-controller": {
"message": "version-controller",
"description": "The label for category version-controller in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.version-builds-controller": {
"message": "version-builds-controller",
"description": "The label for category version-builds-controller in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.version-build-controller": {
"message": "version-build-controller",
"description": "The label for category version-build-controller in sidebar apiSidebar"
},
"sidebar.apiSidebar.category.download-controller": {
"message": "download-controller",
"description": "The label for category download-controller in sidebar apiSidebar"
},
"sidebar.apiSidebar.doc.Simple server online check": {
"message": "Simple server online check",
"description": "The label for the doc item Simple server online check in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-health-controller-health"
},
"sidebar.apiSidebar.doc.GlobalApiWeb.Api.LinkController.get_bedrock_link_v1": {
"message": "GlobalApiWeb.Api.LinkController.get_bedrock_link_v1",
"description": "The label for the doc item GlobalApiWeb.Api.LinkController.get_bedrock_link_v1 in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-link-controller-get-bedrock-link-v-1"
},
"sidebar.apiSidebar.doc.GlobalApiWeb.Api.LinkController.get_java_link_v1": {
"message": "GlobalApiWeb.Api.LinkController.get_java_link_v1",
"description": "The label for the doc item GlobalApiWeb.Api.LinkController.get_java_link_v1 in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-link-controller-get-java-link-v-1"
},
"sidebar.apiSidebar.doc.Get linked Java account from Bedrock xuid": {
"message": "Get linked Java account from Bedrock xuid",
"description": "The label for the doc item Get linked Java account from Bedrock xuid in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-link-controller-get-bedrock-link-v-2"
},
"sidebar.apiSidebar.doc.Get linked Bedrock account from Java UUID": {
"message": "Get linked Bedrock account from Java UUID",
"description": "The label for the doc item Get linked Bedrock account from Java UUID in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-link-controller-get-java-link-v-2"
},
"sidebar.apiSidebar.doc.Get all publicly available Global Api statistics": {
"message": "Get all publicly available Global Api statistics",
"description": "The label for the doc item Get all publicly available Global Api statistics in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-stats-controller-get-all-stats-2"
},
"sidebar.apiSidebar.doc.GlobalApiWeb.Api.XboxController.get_gamertag_v1": {
"message": "GlobalApiWeb.Api.XboxController.get_gamertag_v1",
"description": "The label for the doc item GlobalApiWeb.Api.XboxController.get_gamertag_v1 in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-xbox-controller-get-gamertag-v-1"
},
"sidebar.apiSidebar.doc.GlobalApiWeb.Api.XboxController.get_xuid_v1": {
"message": "GlobalApiWeb.Api.XboxController.get_xuid_v1",
"description": "The label for the doc item GlobalApiWeb.Api.XboxController.get_xuid_v1 in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-xbox-controller-get-xuid-v-1"
},
"sidebar.apiSidebar.doc.Get the gamertag from a xuid": {
"message": "Get the gamertag from a xuid",
"description": "The label for the doc item Get the gamertag from a xuid in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-xbox-controller-get-gamertag-v-2"
},
"sidebar.apiSidebar.doc.Get the xuid from a gamertag": {
"message": "Get the xuid from a gamertag",
"description": "The label for the doc item Get the xuid from a gamertag in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-xbox-controller-get-xuid-v-2"
},
"sidebar.apiSidebar.doc.Get a list of the most recently uploaded skins": {
"message": "Get a list of the most recently uploaded skins",
"description": "The label for the doc item Get a list of the most recently uploaded skins in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-skin-controller-get-recent-uploads"
},
"sidebar.apiSidebar.doc.Get the most recently converted skin of a Bedrock player": {
"message": "Get the most recently converted skin of a Bedrock player",
"description": "The label for the doc item Get the most recently converted skin of a Bedrock player in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-skin-controller-get-skin"
},
"sidebar.apiSidebar.doc.Utility endpoint to get either a Java UUID or a Bedrock xuid": {
"message": "Utility endpoint to get either a Java UUID or a Bedrock xuid",
"description": "The label for the doc item Utility endpoint to get either a Java UUID or a Bedrock xuid in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-utils-controller-get-bedrock-or-java-uuid"
},
"sidebar.apiSidebar.doc.GlobalApiWeb.Api.RenderController.get_front_texture": {
"message": "GlobalApiWeb.Api.RenderController.get_front_texture",
"description": "The label for the doc item GlobalApiWeb.Api.RenderController.get_front_texture in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-render-controller-get-front-texture"
},
"sidebar.apiSidebar.doc.GlobalApiWeb.Api.RenderController.get_raw_texture": {
"message": "GlobalApiWeb.Api.RenderController.get_raw_texture",
"description": "The label for the doc item GlobalApiWeb.Api.RenderController.get_raw_texture in sidebar apiSidebar, linking to the doc api/api.geysermc.org/global-api-web-api-render-controller-get-raw-texture"
},
"sidebar.apiSidebar.doc.Gets a list of all available projects.": {
"message": "Gets a list of all available projects.",
"description": "The label for the doc item Gets a list of all available projects. in sidebar apiSidebar, linking to the doc api/downloads.geysermc.org/projects"
},
"sidebar.apiSidebar.doc.Gets information about a project.": {
"message": "Gets information about a project.",
"description": "The label for the doc item Gets information about a project. in sidebar apiSidebar, linking to the doc api/downloads.geysermc.org/project"
},
"sidebar.apiSidebar.doc.Gets information about a version.": {
"message": "Gets information about a version.",
"description": "The label for the doc item Gets information about a version. in sidebar apiSidebar, linking to the doc api/downloads.geysermc.org/version"
},
"sidebar.apiSidebar.doc.Gets all available builds for a project's version.": {
"message": "Gets all available builds for a project's version.",
"description": "The label for the doc item Gets all available builds for a project's version. in sidebar apiSidebar, linking to the doc api/downloads.geysermc.org/builds"
},
"sidebar.apiSidebar.doc.Gets information related to a specific build.": {
"message": "Gets information related to a specific build.",
"description": "The label for the doc item Gets information related to a specific build. in sidebar apiSidebar, linking to the doc api/downloads.geysermc.org/build-latest"
},
"sidebar.apiSidebar.doc.Downloads the given file from a build's data.": {
"message": "Downloads the given file from a build's data.",
"description": "The label for the doc item Downloads the given file from a build's data. in sidebar apiSidebar, linking to the doc api/downloads.geysermc.org/download-latest"
}
}
20 changes: 20 additions & 0 deletions i18n/de/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,25 @@
"item.label.Other": {
"message": "Other",
"description": "Navbar item with label Other"
},
"item.label.Blog": {
"message": "Blog",
"description": "Navbar item with label Blog"
},
"item.label.Utilities": {
"message": "Utilities",
"description": "Navbar item with label Utilities"
},
"item.label.REST APIs": {
"message": "REST APIs",
"description": "Navbar item with label REST APIs"
},
"item.label.Config Editor": {
"message": "Config Editor",
"description": "Navbar item with label Config Editor"
},
"item.label.Dump Viewer": {
"message": "Dump Viewer",
"description": "Navbar item with label Dump Viewer"
}
}
Loading

0 comments on commit aa3f447

Please sign in to comment.