diff --git a/src/webpage/localuser.ts b/src/webpage/localuser.ts index e84241f..e171965 100644 --- a/src/webpage/localuser.ts +++ b/src/webpage/localuser.ts @@ -1919,6 +1919,17 @@ class Localuser { }); } } + { + const jankInfo = settings.addButton(I18n.jankInfo()); + const img = document.createElement("img"); + img.src = "/logo.svg"; + jankInfo.addHTMLArea(img); + img.width = 128; + img.height = 128; + jankInfo.addMDText( + I18n.clientDesc("Jank-Rolling", window.location.origin, this.rights.allow + ""), + ); + } settings.show(); } readonly botTokens: Map = new Map(); diff --git a/translations/en.json b/translations/en.json index d4cfa3b..0efe2e6 100644 --- a/translations/en.json +++ b/translations/en.json @@ -510,7 +510,8 @@ "confirmDel": "Are you sure you want to delete this emoji?" }, "incorrectURLS": "## This instance has likely sent the incorrect URLs.\n### If you're the instance owner please see [here](https://docs.spacebar.chat/setup/server/) under *Connecting from remote machines* to correct the issue.\n Would you like Jank Client to automatically try to fix this error to let you connect to the instance?", - + "jankInfo": "Client Information", + "clientDesc": "Client version: $1\n\n[Join the official Jank Client guild]($2/invite/USgYJo?instance=https%3A%2F%2Fspacebar.chat)\n\n[Help translate Jank Client](https://translatewiki.net/wiki/Translating:JankClient#sortable:3=desc) \n\n[Help create Jank client](https://github.com/MathMan05/JankClient)\n\n[Help maintain the server jank client relies on](https://github.com/spacebarchat/server)\n\nCalculated rights: $3", "uploadFilesText": "Upload your files here!", "errorReconnect": "Unable to connect to the server, retrying in **$1** seconds...", "retrying": "Retrying...",