diff --git a/frontend/.gitignore b/frontend/.gitignore
index b2d6de30624f..e1b24c7c0b43 100644
--- a/frontend/.gitignore
+++ b/frontend/.gitignore
@@ -18,3 +18,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
+
+# Local build output
+/build-next
diff --git a/frontend/docusaurus.config.ts b/frontend/docusaurus.config.ts
index e44240a8e7d2..f482c50563d0 100644
--- a/frontend/docusaurus.config.ts
+++ b/frontend/docusaurus.config.ts
@@ -22,7 +22,7 @@ const config: Config = {
favicon: "favicon.ico",
// Set the production url of your site here
- url: "https://open.mp/",
+ url: process.env.SITE_URL || "https://open.mp/",
// Set the // pathname under which your site is served
// For GitHub pages deployment, it is often '//'
baseUrl: "/",
@@ -207,7 +207,7 @@ const config: Config = {
onUntruncatedBlogPosts: "warn",
},
theme: {
- customCss: "./src/css/custom.css",
+ customCss: ["./src/css/custom.css", "./src/css/ui.css"],
},
} satisfies Preset.Options,
],
@@ -302,23 +302,25 @@ const config: Config = {
{
type: "docSidebar",
sidebarId: "docsSidebar",
- position: "right",
+ position: "left",
label: "Docs",
+ className: "navbar-icon navbar-icon-docs",
+ },
+ { to: "/blog", label: "Blog", position: "left", className: "navbar-icon navbar-icon-blog" },
+ { to: "https://forum.open.mp/", label: "Forums", position: "left", className: "navbar-icon navbar-icon-forums" },
+ { to: "/servers", label: "Servers", position: "left", className: "navbar-icon navbar-icon-servers" },
+ { to: "/partners", label: "Partners", position: "left", className: "navbar-icon navbar-icon-partners" },
+ {
+ href: "https://opencollective.com/openmultiplayer",
+ label: "Donate to us",
+ position: "left",
+ className: "navbar-icon navbar-icon-donate navbar-donate",
},
- { to: "/blog", label: "Blog", position: "right" },
- { to: "https://forum.open.mp/", label: "Forums", position: "right" },
- { to: "/servers", label: "Servers", position: "right" },
- { to: "/partners", label: "Partners", position: "right" },
// {
// href: "https://github.com/openmultiplayer",
// label: "GitHub",
// position: "right",
// },
- {
- href: "https://opencollective.com/openmultiplayer",
- label: "Donate",
- position: "right",
- },
{
type: "localeDropdown", // This adds the language switcher
position: "right",
@@ -327,12 +329,14 @@ const config: Config = {
},
footer: {
logo: {
- alt: "open.mp logo",
- src: "images/assets/logo.svg",
+ alt: "open.mp",
+ src: "images/assets/wordmark-coloured.svg",
+ href: "/",
+ height: 44,
},
links: [
{
- title: "Documentations",
+ title: "Documentation",
items: [
{
label: "Introduction",
@@ -376,6 +380,14 @@ const config: Config = {
{
title: "More",
items: [
+ {
+ label: "Download Launcher",
+ to: "/downloads/launcher",
+ },
+ {
+ label: "Download Server",
+ to: "/downloads/server",
+ },
{
label: "Servers",
to: "/servers",
diff --git a/frontend/i18n/fa/code.json b/frontend/i18n/fa/code.json
index 00fe06c57875..8fd1d040debe 100644
--- a/frontend/i18n/fa/code.json
+++ b/frontend/i18n/fa/code.json
@@ -355,6 +355,872 @@
"navbar.item.Donate": {
"message": "حمایت مالی"
},
+ "serverInfo.copied": {
+ "message": "کپی شد",
+ "description": "Copied server address state"
+ },
+ "serverInfo.copy": {
+ "message": "کپی",
+ "description": "Copy server address state"
+ },
+ "serverInfo.gameMode": {
+ "message": "گیممود",
+ "description": "Game mode label"
+ },
+ "toast.close": {
+ "message": "بستن اعلان",
+ "description": "Accessible label for closing a toast notification"
+ },
+ "animations.layoutTitle": {
+ "message": "انیمیشنها",
+ "description": "Animations page browser title"
+ },
+ "animations.layoutDescription": {
+ "message": "نمایشگر تعاملی انیمیشنهای open.mp (SA-MP) همراه با پیشنمایش ویدیویی",
+ "description": "Animations page meta description"
+ },
+ "animations.videoUnavailable": {
+ "message": "ویدیو در دسترس نیست",
+ "description": "Fallback message when an animation video fails to load"
+ },
+ "animations.code.forPlayers": {
+ "message": "// برای بازیکنان",
+ "description": "Comment in animation usage example for player animations"
+ },
+ "animations.code.forActors": {
+ "message": "// برای اکتورها",
+ "description": "Comment in animation usage example for actor animations"
+ },
+ "homepage.layoutDescription": {
+ "message": "یک ماد چندنفره برای Grand Theft Auto: San Andreas که کاملاً با San Andreas Multiplayer سازگار است",
+ "description": "Homepage meta description"
+ },
+ "partners.note.dismissAria": {
+ "message": "بستن یادداشت شراکت",
+ "description": "Accessible label for dismissing the partner note"
+ },
+ "partners.page.title": {
+ "message": "سرورهای شریک",
+ "description": "Partner servers page title"
+ },
+ "partners.page.description": {
+ "message": "فهرست سرورهای San Andreas که از open.mp یا SA-MP استفاده میکنند",
+ "description": "Partner servers page description"
+ },
+ "uid.toast.copiedTitle": {
+ "message": "کپی شد",
+ "description": "UID copy success toast title"
+ },
+ "uid.toast.copiedMessage": {
+ "message": "ماکروی UID در کلیپبورد کپی شد.",
+ "description": "UID copy success toast message"
+ },
+ "uid.page.title": {
+ "message": "تولیدکننده UID",
+ "description": "UID generator page title"
+ },
+ "uid.page.description": {
+ "message": "تولید UID برای استفاده بهعنوان شناسه یکتای IComponent یا IExtension",
+ "description": "UID generator page description"
+ },
+ "launcherSim.join.connect": {
+ "message": "اتصال",
+ "description": "Launcher connect button"
+ },
+ "launcherSim.join.bannerText": {
+ "message": "سرور شما",
+ "description": "Sample server banner text"
+ },
+ "launcherSim.join.server": {
+ "message": "سرور",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.join.address": {
+ "message": "آدرس",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.column.players": {
+ "message": "بازیکنان",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.join.nickname": {
+ "message": "نام مستعار",
+ "description": "Launcher join dialog nickname label"
+ },
+ "launcherSim.join.version": {
+ "message": "نسخه SA-MP",
+ "description": "Launcher join dialog SA-MP version label"
+ },
+ "launcherSim.tab.favorites": {
+ "message": "علاقهمندیها",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.internet": {
+ "message": "اینترنت",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.partners": {
+ "message": "شرکاء",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.recent": {
+ "message": "اخیراً وارد شده",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.nicknamePlaceholder": {
+ "message": "نام مستعار...",
+ "description": "Launcher preview nickname placeholder"
+ },
+ "launcherSim.searchPlaceholder": {
+ "message": "جستجوی نام یا مود سرور",
+ "description": "Launcher preview search placeholder"
+ },
+ "launcherSim.column.name": {
+ "message": "نام",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.ping": {
+ "message": "پینگ",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.mode": {
+ "message": "مود",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.menu.connect": {
+ "message": "اتصال",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.addToFavorites": {
+ "message": "افزودن به علاقهمندیها",
+ "description": "Launcher preview button"
+ },
+ "launcherSim.menu.copy": {
+ "message": "کپی اطلاعات سرور",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.column.rule": {
+ "message": "قانون",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.value": {
+ "message": "مقدار",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.filter.title": {
+ "message": "فیلترها:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.omp": {
+ "message": "فقط سرورهای open.mp",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.nonEmpty": {
+ "message": "سرورهای غیرخالی",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.unpassworded": {
+ "message": "سرورهای بدون رمز",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.language": {
+ "message": "زبان:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.notification.favorited": {
+ "message": "به علاقهمندیها اضافه شد!",
+ "description": "Launcher preview: notification"
+ },
+ "launcherSim.ariaLabel": {
+ "message": "لانچر open.mp که فهرستی از سرورهای نمونه را نشان میدهد",
+ "description": "Accessible label for the launcher picture"
+ },
+ "launcherSim.column.player": {
+ "message": "بازیکن",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.score": {
+ "message": "امتیاز",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.copy": {
+ "message": "کپی",
+ "description": "Launcher preview: copy address"
+ },
+ "npcCallbacksNote.message": {
+ "message": "این فراخوانی میتواند توسط NPC نیز اجرا شود.",
+ "description": "Note shown on callback docs pages when NPCs can also call the callback"
+ },
+ "versionWarn.name.function": {
+ "message": "تابع",
+ "description": "Default item name in a version warning"
+ },
+ "versionWarn.name.callback": {
+ "message": "فراخوانی",
+ "description": "Callback item name in a version warning"
+ },
+ "versionWarn.message": {
+ "message": "این {name} در نسخه {version} اضافه شده و در نسخههای قبلی کار نخواهد کرد!",
+ "description": "Warning shown on scripting docs pages for APIs added in a specific server version"
+ },
+ "servers.add.successMessage": {
+ "message": "{serverName} به فهرست انتظار ما اضافه شد. اگر پس از حداکثر ۴۸ ساعت در دسترس نبود، میتوانید در Discord با ما تماس بگیرید!",
+ "description": "Toast message shown after submitting a server to the pending list"
+ },
+ "servers.add.successTitle": {
+ "message": "سرور ارسال شد!",
+ "description": "Toast title shown after a server submission succeeds"
+ },
+ "servers.add.failureMessage": {
+ "message": "وضعیت {status}: {error}",
+ "description": "Toast message shown after a server submission fails"
+ },
+ "servers.add.failureTitle": {
+ "message": "ارسال ناموفق بود!",
+ "description": "Toast title shown after a server submission fails"
+ },
+ "servers.add.errorMessage": {
+ "message": "هنگام ارسال سرور خطایی رخ داد",
+ "description": "Toast message shown after an unexpected server submission error"
+ },
+ "servers.add.errorTitle": {
+ "message": "خطا",
+ "description": "Generic toast error title"
+ },
+ "servers.add.addressPlaceholder": {
+ "message": "play.example.com:7777",
+ "description": "Add server address input placeholder"
+ },
+ "servers.pages.label": {
+ "message": "صفحات فهرست سرورها",
+ "description": "Accessible label for the server list pagination"
+ },
+ "servers.pages.previous": {
+ "message": "صفحه قبلی",
+ "description": "Server list previous page button"
+ },
+ "servers.pages.next": {
+ "message": "صفحه بعدی",
+ "description": "Server list next page button"
+ },
+ "servers.sort.name": {
+ "message": "نام",
+ "description": "Sort by server name"
+ },
+ "servers.sort.mode": {
+ "message": "مود",
+ "description": "Sort by game mode"
+ },
+ "servers.sort.language": {
+ "message": "زبان",
+ "description": "Sort by language"
+ },
+ "servers.language.all": {
+ "message": "همه زبانها",
+ "description": "All languages filter option"
+ },
+ "servers.add.closeModal": {
+ "message": "بستن پنجره افزودن سرور",
+ "description": "Accessible label for closing the add server modal"
+ },
+ "carousel.previous": {
+ "message": "قبلی",
+ "description": "Carousel previous button"
+ },
+ "carousel.next": {
+ "message": "بعدی",
+ "description": "Carousel next button"
+ },
+ "downloads.launcher.pageTitle": {
+ "message": "لانچر open.mp",
+ "description": "Launcher downloads page title"
+ },
+ "downloads.launcher.layoutDescription": {
+ "message": "دانلود نسخههای لانچر open.mp",
+ "description": "Launcher downloads page meta description"
+ },
+ "downloads.launcher.pageSubtitle": {
+ "message": "GTA San Andreas را بهصورت چندنفره در سرورهای open.mp و SA-MP بازی کنید.",
+ "description": "Launcher downloads page subtitle"
+ },
+ "downloads.server.pageTitle": {
+ "message": "سرور open.mp",
+ "description": "Server downloads page title"
+ },
+ "downloads.server.layoutDescription": {
+ "message": "دانلود نسخههای سرور open.mp",
+ "description": "Server downloads page meta description"
+ },
+ "downloads.server.pageSubtitle": {
+ "message": "سرور چندنفره GTA San Andreas خودتان را میزبانی کنید.",
+ "description": "Server downloads page subtitle"
+ },
+ "servers.page.title": {
+ "message": "سرورها",
+ "description": "Servers page title"
+ },
+ "servers.page.description": {
+ "message": "فهرست سرورهای San Andreas که از open.mp و SA-MP استفاده میکنند",
+ "description": "Servers page description"
+ },
+ "downloads.latestBadge": {
+ "message": "جدیدترین",
+ "description": "Badge for latest release"
+ },
+ "downloads.releaseDate": {
+ "message": "منتشرشده در {date}",
+ "description": "Release date label"
+ },
+ "downloads.release.highlights": {
+ "message": "نکات برجسته",
+ "description": "Release highlights heading"
+ },
+ "downloads.release.viewChangelog": {
+ "message": "مشاهده تغییرات کامل",
+ "description": "Expandable changelog summary"
+ },
+ "downloads.release.viewOnGitHub": {
+ "message": "مشاهده نسخه در GitHub",
+ "description": "Fallback button per release"
+ },
+ "downloads.release.githubTitle": {
+ "message": "مشاهده نسخه در GitHub",
+ "description": "Title attribute for the GitHub release link"
+ },
+ "downloads.release.github": {
+ "message": "GitHub",
+ "description": "Link to release page on GitHub"
+ },
+ "downloads.release.dynSslNote": {
+ "message": "* نسخه DynSSL نیاز دارد که libssl روی توزیع لینوکس شما نصب باشد.",
+ "description": "Note about DynSSL version requiring libssl"
+ },
+ "downloads.hideOlderReleases": {
+ "message": "پنهان کردن نسخههای قدیمیتر",
+ "description": "Button to hide older releases"
+ },
+ "downloads.showOlderReleases": {
+ "message": "مشاهده {count} نسخه قدیمیتر",
+ "description": "Button to show older releases"
+ },
+ "downloads.opensourceTrust": {
+ "message": "همه نسخهها متنباز هستند. از سورس بیلد کنید یا مستقیماً از GitHub دانلود کنید.",
+ "description": "Open source trust message for downloads pages"
+ },
+ "downloads.downloadFromGithub": {
+ "message": "دانلود از GitHub",
+ "description": "Button label to open GitHub releases page"
+ },
+ "notFound.title": {
+ "message": "صفحه پیدا نشد",
+ "description": "404 page title"
+ },
+ "notFound.imageAlt": {
+ "message": "تصویری از مأموریت قطار در GTA",
+ "description": "Alt text for the 404 page image"
+ },
+ "notFound.home": {
+ "message": "صفحه اصلی",
+ "description": "404 page home button"
+ },
+ "notFound.docs": {
+ "message": "مستندات",
+ "description": "404 page documentation button"
+ },
+ "notFound.servers": {
+ "message": "سرورها",
+ "description": "404 page servers button"
+ },
+ "theme.blog.post.paginator.navAriaLabel": {
+ "message": "کنترل پستهای صفحه وبلاگ",
+ "description": "The ARIA label for the blog posts pagination"
+ },
+ "theme.blog.post.paginator.newerPost": {
+ "message": "پست جدیدتر",
+ "description": "The blog post button label to navigate to the newer/previous post"
+ },
+ "theme.blog.post.paginator.olderPost": {
+ "message": "پست قدیمیتر",
+ "description": "The blog post button label to navigate to the older/next post"
+ },
+ "theme.tags.tagsPageLink": {
+ "message": "مشاهده تمام برچسبها",
+ "description": "The label of the link targeting the tag list page"
+ },
+ "theme.colorToggle.ariaLabel.mode.system": {
+ "message": "حالت سیستم",
+ "description": "The name for the system color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.light": {
+ "message": "حالت روشن",
+ "description": "The name for the light color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.dark": {
+ "message": "حالت تیره",
+ "description": "The name for the dark color mode"
+ },
+ "theme.colorToggle.ariaLabel": {
+ "message": "بین حالت تاریک و روشن سوئیچ کنید (الان {mode})",
+ "description": "The ARIA label for the color mode toggle"
+ },
+ "theme.docs.breadcrumbs.navAriaLabel": {
+ "message": "نشانگر صفحات",
+ "description": "The ARIA label for the breadcrumbs"
+ },
+ "theme.docs.paginator.navAriaLabel": {
+ "message": "صفحات مستندات",
+ "description": "The ARIA label for the docs pagination"
+ },
+ "theme.docs.paginator.previous": {
+ "message": "قبلی",
+ "description": "The label used to navigate to the previous doc"
+ },
+ "theme.docs.paginator.next": {
+ "message": "بعدی",
+ "description": "The label used to navigate to the next doc"
+ },
+ "theme.docs.tagDocListPageTitle.nDocsTagged": {
+ "message": "یک مطلب برچسب شده|{count} مطلب برچسب شده",
+ "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.docs.tagDocListPageTitle": {
+ "message": "{nDocsTagged} با \"{tagName}\"",
+ "description": "The title of the page for a docs tag"
+ },
+ "theme.docs.versionBadge.label": {
+ "message": "نسخه: {versionLabel}"
+ },
+ "theme.docs.versions.unreleasedVersionLabel": {
+ "message": "نسخه {siteTitle} {versionLabel} هنوز به صورت کامل منتشر نشده است.",
+ "description": "The label used to tell the user that he's browsing an unreleased doc version"
+ },
+ "theme.docs.versions.unmaintainedVersionLabel": {
+ "message": "نسخه {siteTitle} {versionLabel} دیگر به روز رسانی نمی شود.",
+ "description": "The label used to tell the user that he's browsing an unmaintained doc version"
+ },
+ "theme.docs.versions.latestVersionSuggestionLabel": {
+ "message": "برای دیدن آخرین نسخه این متن، نسخه {latestVersionLink} ({versionLabel}) را ببینید.",
+ "description": "The label used to tell the user to check the latest version"
+ },
+ "theme.docs.versions.latestVersionLinkLabel": {
+ "message": "آخرین نسخه",
+ "description": "The label used for the latest version suggestion link label"
+ },
+ "theme.common.editThisPage": {
+ "message": "ویرایش مطالب این صفحه",
+ "description": "The link label to edit the current page"
+ },
+ "theme.common.headingLinkTitle": {
+ "message": "لینک مستقیم به {heading}",
+ "description": "Title for link to heading"
+ },
+ "theme.lastUpdated.atDate": {
+ "message": " در تاریخ {date}",
+ "description": "The words used to describe on which date a page has been last updated"
+ },
+ "theme.lastUpdated.byUser": {
+ "message": " توسط {user}",
+ "description": "The words used to describe by who the page has been last updated"
+ },
+ "theme.lastUpdated.lastUpdatedAtBy": {
+ "message": "آخرین به روز رسانی{atDate}{byUser}",
+ "description": "The sentence used to display when a page has been last updated, and by who"
+ },
+ "theme.navbar.mobileVersionsDropdown.label": {
+ "message": "نسخهها",
+ "description": "The label for the navbar versions dropdown on mobile view"
+ },
+ "theme.tags.tagsListLabel": {
+ "message": "برچسبها:",
+ "description": "The label alongside a tag list"
+ },
+ "theme.AnnouncementBar.closeButtonAriaLabel": {
+ "message": "بستن",
+ "description": "The ARIA label for close button of announcement bar"
+ },
+ "theme.admonition.warning": {
+ "message": "هشدار",
+ "description": "The default label used for the Warning admonition (:::warning)"
+ },
+ "theme.blog.sidebar.navAriaLabel": {
+ "message": "کنترل پستهای اخیر وبلاگ",
+ "description": "The ARIA label for recent posts in the blog sidebar"
+ },
+ "theme.DocSidebarItem.expandCategoryAriaLabel": {
+ "message": "باز کردن دسته بندی در نوار کناری '{label}'",
+ "description": "The ARIA label to expand the sidebar category"
+ },
+ "theme.DocSidebarItem.collapseCategoryAriaLabel": {
+ "message": "بستن دسته بندی در نوار کناری '{label}'",
+ "description": "The ARIA label to collapse the sidebar category"
+ },
+ "theme.IconExternalLink.ariaLabel": {
+ "message": "(در زبانه جدید باز میشود)",
+ "description": "The ARIA label for the external link icon"
+ },
+ "theme.NavBar.navAriaLabel": {
+ "message": "صفحه اصلی",
+ "description": "The ARIA label for the main navigation"
+ },
+ "theme.navbar.mobileLanguageDropdown.label": {
+ "message": "زبانها",
+ "description": "The label for the mobile language switcher dropdown"
+ },
+ "theme.TOCCollapsible.toggleButtonLabel": {
+ "message": "مطالب این صفحه",
+ "description": "The label used by the button on the collapsible TOC component"
+ },
+ "theme.blog.post.readMore": {
+ "message": "ادامه مطلب",
+ "description": "The label used in blog post item excerpts to link to full blog posts"
+ },
+ "theme.blog.post.readMoreLabel": {
+ "message": "درباره {title} بیشتر بخوانید",
+ "description": "The ARIA label for the link to full blog posts from excerpts"
+ },
+ "theme.CodeBlock.copy": {
+ "message": "کپی",
+ "description": "The copy button label on code blocks"
+ },
+ "theme.CodeBlock.copied": {
+ "message": "کپی شد",
+ "description": "The copied button label on code blocks"
+ },
+ "theme.CodeBlock.copyButtonAriaLabel": {
+ "message": "کپی به کلیپبورد",
+ "description": "The ARIA label for copy code blocks button"
+ },
+ "theme.CodeBlock.wordWrapToggle": {
+ "message": "تغییر نحوه نمایش کلمه",
+ "description": "The title attribute for toggle word wrapping button of code block lines"
+ },
+ "theme.docs.breadcrumbs.home": {
+ "message": "صفحه اصلی",
+ "description": "The ARIA label for the home page in the breadcrumbs"
+ },
+ "theme.docs.sidebar.collapseButtonTitle": {
+ "message": "بستن نوار کناری",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.collapseButtonAriaLabel": {
+ "message": "بستن نوار کناری",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.navAriaLabel": {
+ "message": "نوار کناری مستندات",
+ "description": "The ARIA label for the sidebar navigation"
+ },
+ "theme.docs.sidebar.closeSidebarButtonAriaLabel": {
+ "message": "بستن منو",
+ "description": "The ARIA label for close button of mobile sidebar"
+ },
+ "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
+ "message": "→ بازگشت به منو اصلی",
+ "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
+ },
+ "theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
+ "message": "باز و بست منو",
+ "description": "The ARIA label for hamburger menu button of mobile navigation"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
+ "message": "باز کردن منوی کشویی",
+ "description": "The ARIA label of the button to expand the mobile dropdown navbar item"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
+ "message": "بستن منوی کشویی",
+ "description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
+ },
+ "theme.docs.sidebar.expandButtonTitle": {
+ "message": "باز کردن نوار کناری",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.docs.sidebar.expandButtonAriaLabel": {
+ "message": "باز کردن نوار کناری",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.SearchBar.seeAll": {
+ "message": "نمایش {count} نتیجه"
+ },
+ "theme.SearchBar.label": {
+ "message": "جستجو",
+ "description": "The ARIA label and placeholder for search button"
+ },
+ "theme.SearchModal.searchBox.resetButtonTitle": {
+ "message": "پاک کردن جستجو",
+ "description": "The label and ARIA label for search box reset button"
+ },
+ "theme.SearchModal.searchBox.cancelButtonText": {
+ "message": "کنسل",
+ "description": "The label and ARIA label for search box cancel button"
+ },
+ "theme.SearchModal.searchBox.placeholderText": {
+ "message": "جستجو در مستندات",
+ "description": "The placeholder text for the main search input field"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAi": {
+ "message": "سؤال دیگری بپرسید...",
+ "description": "The placeholder text when in AI question mode"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAiStreaming": {
+ "message": "در حال پاسخ دادن...",
+ "description": "The placeholder text for search box when AI is streaming an answer"
+ },
+ "theme.SearchModal.searchBox.enterKeyHint": {
+ "message": "جستجو",
+ "description": "The hint for the search box enter key text"
+ },
+ "theme.SearchModal.searchBox.enterKeyHintAskAi": {
+ "message": "ارسال",
+ "description": "The hint for the Ask AI search box enter key text"
+ },
+ "theme.SearchModal.searchBox.searchInputLabel": {
+ "message": "جستجو",
+ "description": "The ARIA label for search input"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonText": {
+ "message": "بازگشت به جستجوی کلیدواژه",
+ "description": "The text for back to keyword search button"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonAriaLabel": {
+ "message": "بازگشت به جستجوی کلیدواژه",
+ "description": "The ARIA label for back to keyword search button"
+ },
+ "theme.SearchModal.startScreen.recentSearchesTitle": {
+ "message": "اخیرا",
+ "description": "The title for recent searches"
+ },
+ "theme.SearchModal.startScreen.noRecentSearchesText": {
+ "message": "جستجوی اخیر مشاهده نشد",
+ "description": "The text when there are no recent searches"
+ },
+ "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": {
+ "message": "ذخیره این جستجو",
+ "description": "The title for save recent search button"
+ },
+ "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": {
+ "message": "این جستجو از تاریخچه پاک شود",
+ "description": "The title for remove recent search button"
+ },
+ "theme.SearchModal.startScreen.favoriteSearchesTitle": {
+ "message": "برگزیده",
+ "description": "The title for favorite searches"
+ },
+ "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": {
+ "message": "این جستجو از برگزیده ها پاک شود",
+ "description": "The title for remove favorite search button"
+ },
+ "theme.SearchModal.startScreen.recentConversationsTitle": {
+ "message": "گفتگوهای اخیر",
+ "description": "The title for recent conversations"
+ },
+ "theme.SearchModal.startScreen.removeRecentConversationButtonTitle": {
+ "message": "حذف این گفتگو از تاریخچه",
+ "description": "The title for remove recent conversation button"
+ },
+ "theme.SearchModal.errorScreen.titleText": {
+ "message": "دریافت نتایج ممکن نیست",
+ "description": "The title for error screen"
+ },
+ "theme.SearchModal.errorScreen.helpText": {
+ "message": "لطفا اتصال شبکه خود را بررسی کنید.",
+ "description": "The help text for error screen"
+ },
+ "theme.SearchModal.resultsScreen.askAiPlaceholder": {
+ "message": "از هوش مصنوعی بپرسید: ",
+ "description": "The placeholder text for Ask AI input"
+ },
+ "theme.SearchModal.askAiScreen.disclaimerText": {
+ "message": "پاسخها با هوش مصنوعی تولید میشوند که ممکن است اشتباه کند. پاسخها را بررسی کنید.",
+ "description": "The disclaimer text for AI answers"
+ },
+ "theme.SearchModal.askAiScreen.relatedSourcesText": {
+ "message": "منابع مرتبط",
+ "description": "The text for related sources"
+ },
+ "theme.SearchModal.askAiScreen.thinkingText": {
+ "message": "در حال فکر کردن...",
+ "description": "The text when AI is thinking"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonText": {
+ "message": "کپی",
+ "description": "The text for copy button"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonCopiedText": {
+ "message": "کپی شد!",
+ "description": "The text for copy button when copied"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonTitle": {
+ "message": "کپی",
+ "description": "The title for copy button"
+ },
+ "theme.SearchModal.askAiScreen.likeButtonTitle": {
+ "message": "پسندیدم",
+ "description": "The title for like button"
+ },
+ "theme.SearchModal.askAiScreen.dislikeButtonTitle": {
+ "message": "نپسندیدم",
+ "description": "The title for dislike button"
+ },
+ "theme.SearchModal.askAiScreen.thanksForFeedbackText": {
+ "message": "از بازخورد شما سپاسگزاریم!",
+ "description": "The text for thanks for feedback"
+ },
+ "theme.SearchModal.askAiScreen.preToolCallText": {
+ "message": "در حال جستجو...",
+ "description": "The text before tool call"
+ },
+ "theme.SearchModal.askAiScreen.duringToolCallText": {
+ "message": "در حال جستجو برای ",
+ "description": "The text during tool call"
+ },
+ "theme.SearchModal.askAiScreen.afterToolCallText": {
+ "message": "جستجو شد برای",
+ "description": "The text after tool call"
+ },
+ "theme.SearchModal.footer.selectText": {
+ "message": "انتخاب",
+ "description": "The select text for footer"
+ },
+ "theme.SearchModal.footer.submitQuestionText": {
+ "message": "ارسال سؤال",
+ "description": "The submit question text for footer"
+ },
+ "theme.SearchModal.footer.selectKeyAriaLabel": {
+ "message": "کلید اینتر",
+ "description": "The ARIA label for select key in footer"
+ },
+ "theme.SearchModal.footer.navigateText": {
+ "message": "پیمایش",
+ "description": "The navigate text for footer"
+ },
+ "theme.SearchModal.footer.navigateUpKeyAriaLabel": {
+ "message": "کلید بالا",
+ "description": "The ARIA label for navigate up key in footer"
+ },
+ "theme.SearchModal.footer.navigateDownKeyAriaLabel": {
+ "message": "کلید پایین",
+ "description": "The ARIA label for navigate down key in footer"
+ },
+ "theme.SearchModal.footer.closeText": {
+ "message": "بستن",
+ "description": "The close text for footer"
+ },
+ "theme.SearchModal.footer.closeKeyAriaLabel": {
+ "message": "کلید Escape",
+ "description": "The ARIA label for close key in footer"
+ },
+ "theme.SearchModal.footer.searchByText": {
+ "message": "جستجو برای",
+ "description": "The 'Powered by' text for footer"
+ },
+ "theme.SearchModal.footer.backToSearchText": {
+ "message": "بازگشت به جستجو",
+ "description": "The back to search text for footer"
+ },
+ "theme.SearchModal.noResultsScreen.noResultsText": {
+ "message": "هیچ نتیجه ای برای",
+ "description": "The text when there are no results"
+ },
+ "theme.SearchModal.noResultsScreen.suggestedQueryText": {
+ "message": "جستجو پیشنهادی برای",
+ "description": "The text for suggested query"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsText": {
+ "message": "آیا اطمینان دارید این جستجو باید نتیجه ای داشته باشد؟",
+ "description": "The text for reporting missing results"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": {
+ "message": "با ما در میان بگذارید.",
+ "description": "The link text for reporting missing results"
+ },
+ "theme.SearchModal.placeholder": {
+ "message": "جستجوی مستندات",
+ "description": "The placeholder of the input of the DocSearch pop-up modal"
+ },
+ "theme.SearchPage.documentsFound.plurals": {
+ "message": "یک مورد پیدا شد|{count} مورد پیدا شد",
+ "description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.SearchPage.existingResultsTitle": {
+ "message": "جستجو برای عبارت \"{query}\"",
+ "description": "The search page title for non-empty query"
+ },
+ "theme.SearchPage.emptyResultsTitle": {
+ "message": "جستجو در متن",
+ "description": "The search page title for empty query"
+ },
+ "theme.SearchPage.inputPlaceholder": {
+ "message": "جستجوی خود را اینجا تایپ کنید",
+ "description": "The placeholder for search page input"
+ },
+ "theme.SearchPage.inputLabel": {
+ "message": "جستجو",
+ "description": "The ARIA label for search page input"
+ },
+ "theme.SearchPage.algoliaLabel": {
+ "message": "قدرت گرفته از Algolia",
+ "description": "The description label for Algolia mention"
+ },
+ "theme.SearchPage.noResultsText": {
+ "message": "هیچ نتیجهای پیدا نشد",
+ "description": "The paragraph for empty search result"
+ },
+ "theme.SearchPage.fetchingNewResults": {
+ "message": "در حال دریافت نتایج...",
+ "description": "The paragraph for fetching new search results"
+ },
+ "theme.blog.post.plurals": {
+ "message": "یک پست|{count} پست",
+ "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.blog.tagTitle": {
+ "message": "{nPosts} با برچسب \"{tagName}\"",
+ "description": "The title of the page for a blog tag"
+ },
+ "theme.blog.author.pageTitle": {
+ "message": "{authorName} - {nPosts}",
+ "description": "The title of the page for a blog author"
+ },
+ "theme.blog.authorsList.pageTitle": {
+ "message": "نویسندگان",
+ "description": "The title of the authors page"
+ },
+ "theme.blog.authorsList.viewAll": {
+ "message": "View All Authors",
+ "description": "The label of the link targeting the blog authors page"
+ },
+ "theme.blog.author.noPosts": {
+ "message": "این نویسنده هنوز هیچ پستی ننوشته است.",
+ "description": "The text for authors with 0 blog post"
+ },
+ "theme.contentVisibility.unlistedBanner.title": {
+ "message": "صفحه فهرست نشده",
+ "description": "The unlisted content banner title"
+ },
+ "theme.contentVisibility.unlistedBanner.message": {
+ "message": "این صفحه فهرست نشده است. موتورهای جستجو آن را ایندکس نمی کنند و فقط کاربرانی که لینک مستقیم دارند می توانند به آن دسترسی داشته باشند.",
+ "description": "The unlisted content banner message"
+ },
+ "theme.contentVisibility.draftBanner.title": {
+ "message": "صفحه پیشنویس",
+ "description": "The draft content banner title"
+ },
+ "theme.contentVisibility.draftBanner.message": {
+ "message": "این صفحه یک پیشنویس است. فقط در حالت توسعه قابل مشاهده است و از نسخه نهایی (production) حذف خواهد شد.",
+ "description": "The draft content banner message"
+ },
+ "theme.docs.DocCard.categoryDescription.plurals": {
+ "message": "{count} مورد",
+ "description": "The default description for a category card in the generated index about how many items this category includes"
+ },
+ "theme.ErrorPageContent.tryAgain": {
+ "message": "تلاش مجدد",
+ "description": "The label of the button to try again rendering when the React error boundary captures an error"
+ },
+ "theme.common.skipToMainContent": {
+ "message": "پرش به مطلب اصلی",
+ "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
+ },
"theme.docs.sidebar.filterPlaceholder": {
"message": "فیلتر مستندات",
"description": "Placeholder for the docs sidebar filter input"
diff --git a/frontend/i18n/fa/docusaurus-plugin-content-blog/options.json b/frontend/i18n/fa/docusaurus-plugin-content-blog/options.json
new file mode 100644
index 000000000000..2ddb5a1c582c
--- /dev/null
+++ b/frontend/i18n/fa/docusaurus-plugin-content-blog/options.json
@@ -0,0 +1,14 @@
+{
+ "title": {
+ "message": "وبلاگ",
+ "description": "The title for the blog used in SEO"
+ },
+ "description": {
+ "message": "وبلاگ",
+ "description": "The description for the blog used in SEO"
+ },
+ "sidebar.title": {
+ "message": "پستهای اخیر",
+ "description": "The label for the left sidebar"
+ }
+}
diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current.json b/frontend/i18n/fa/docusaurus-plugin-content-docs/current.json
index 7cb1e2817d2c..3b714a8b1274 100644
--- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current.json
+++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current.json
@@ -28,5 +28,9 @@
},
"sidebar.docsSidebar.category.Meta": {
"message": "متا"
+ },
+ "version.label": {
+ "message": "بعدی",
+ "description": "The label for version current"
}
}
diff --git a/frontend/i18n/fa/docusaurus-theme-classic/footer.json b/frontend/i18n/fa/docusaurus-theme-classic/footer.json
index 37c623559902..84b75673004b 100644
--- a/frontend/i18n/fa/docusaurus-theme-classic/footer.json
+++ b/frontend/i18n/fa/docusaurus-theme-classic/footer.json
@@ -1,7 +1,7 @@
{
- "link.title.Documentations": {
+ "link.title.Documentation": {
"message": "مستندات",
- "description": "The title of the footer links column with title=Documentations in the footer"
+ "description": "The title of the footer links column with title=Documentation in the footer"
},
"link.title.Community": {
"message": "جامعه",
@@ -62,5 +62,21 @@
"link.item.label.SA-MP": {
"message": "SA-MP",
"description": "The label of footer link with label=SA-MP linking to https://sa-mp.mp/"
+ },
+ "link.item.label.Download Launcher": {
+ "message": "دانلود لانچر",
+ "description": "The label of footer link with label=Download Launcher linking to /downloads/launcher"
+ },
+ "link.item.label.Download Server": {
+ "message": "دانلود سرور",
+ "description": "The label of footer link with label=Download Server linking to /downloads/server"
+ },
+ "copyright": {
+ "message": "حق نشر © 2026 open.mp. ساخته شده با Docusaurus.",
+ "description": "The footer copyright"
+ },
+ "logo.alt": {
+ "message": "open.mp",
+ "description": "The alt text of footer logo"
}
}
diff --git a/frontend/i18n/fa/docusaurus-theme-classic/navbar.json b/frontend/i18n/fa/docusaurus-theme-classic/navbar.json
index b0be6a17d8bd..fb80f199e1c6 100644
--- a/frontend/i18n/fa/docusaurus-theme-classic/navbar.json
+++ b/frontend/i18n/fa/docusaurus-theme-classic/navbar.json
@@ -26,5 +26,13 @@
"item.label.Donate": {
"message": "حمایت مالی",
"description": "Navbar item with label Donate"
+ },
+ "logo.alt": {
+ "message": "لوگوی open.mp",
+ "description": "The alt text of navbar logo"
+ },
+ "item.label.Donate to us": {
+ "message": "حمایت مالی از ما",
+ "description": "Navbar item with label Donate to us"
}
}
diff --git a/frontend/i18n/id/code.json b/frontend/i18n/id/code.json
index 2cd5e6db8c8e..20db0520b8d1 100644
--- a/frontend/i18n/id/code.json
+++ b/frontend/i18n/id/code.json
@@ -406,6 +406,808 @@
"navbar.item.Donate": {
"message": "Donasi"
},
+ "serverInfo.copied": {
+ "message": "Disalin",
+ "description": "Copied server address state"
+ },
+ "serverInfo.copy": {
+ "message": "Salin",
+ "description": "Copy server address state"
+ },
+ "serverInfo.gameMode": {
+ "message": "Mode Permainan",
+ "description": "Game mode label"
+ },
+ "toast.close": {
+ "message": "Tutup notifikasi",
+ "description": "Accessible label for closing a toast notification"
+ },
+ "animations.layoutTitle": {
+ "message": "Animasi",
+ "description": "Animations page browser title"
+ },
+ "animations.layoutDescription": {
+ "message": "Penampil animasi open.mp (SA-MP) interaktif dengan pratinjau video",
+ "description": "Animations page meta description"
+ },
+ "animations.videoUnavailable": {
+ "message": "Video tidak tersedia",
+ "description": "Fallback message when an animation video fails to load"
+ },
+ "animations.code.forPlayers": {
+ "message": "// Untuk pemain",
+ "description": "Comment in animation usage example for player animations"
+ },
+ "animations.code.forActors": {
+ "message": "// Untuk aktor",
+ "description": "Comment in animation usage example for actor animations"
+ },
+ "homepage.layoutDescription": {
+ "message": "Mod multiplayer untuk Grand Theft Auto: San Andreas yang sepenuhnya kompatibel mundur dengan San Andreas Multiplayer",
+ "description": "Homepage meta description"
+ },
+ "partners.note.dismissAria": {
+ "message": "Tutup catatan kemitraan",
+ "description": "Accessible label for dismissing the partner note"
+ },
+ "partners.page.title": {
+ "message": "Server Mitra",
+ "description": "Partner servers page title"
+ },
+ "partners.page.description": {
+ "message": "Daftar server San Andreas yang menggunakan open.mp atau SA-MP",
+ "description": "Partner servers page description"
+ },
+ "uid.toast.copiedTitle": {
+ "message": "Disalin",
+ "description": "UID copy success toast title"
+ },
+ "uid.toast.copiedMessage": {
+ "message": "Makro UID telah disalin ke papan klip.",
+ "description": "UID copy success toast message"
+ },
+ "uid.page.title": {
+ "message": "Pembuat UID",
+ "description": "UID generator page title"
+ },
+ "uid.page.description": {
+ "message": "Buat UID untuk digunakan sebagai pengenal unik IComponent atau IExtension",
+ "description": "UID generator page description"
+ },
+ "launcherSim.join.connect": {
+ "message": "Hubungkan",
+ "description": "Launcher connect button"
+ },
+ "launcherSim.join.bannerText": {
+ "message": "Server Anda",
+ "description": "Sample server banner text"
+ },
+ "launcherSim.join.server": {
+ "message": "Server",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.join.address": {
+ "message": "Alamat",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.column.players": {
+ "message": "Pemain",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.join.nickname": {
+ "message": "Nama Panggilan",
+ "description": "Launcher join dialog nickname label"
+ },
+ "launcherSim.join.version": {
+ "message": "Versi SA-MP",
+ "description": "Launcher join dialog SA-MP version label"
+ },
+ "launcherSim.tab.favorites": {
+ "message": "Favorit",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.internet": {
+ "message": "Internet",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.partners": {
+ "message": "Mitra",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.recent": {
+ "message": "Baru Dimainkan",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.nicknamePlaceholder": {
+ "message": "Nama panggilan...",
+ "description": "Launcher preview nickname placeholder"
+ },
+ "launcherSim.searchPlaceholder": {
+ "message": "Cari nama host/mode server",
+ "description": "Launcher preview search placeholder"
+ },
+ "launcherSim.column.name": {
+ "message": "Nama",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.ping": {
+ "message": "Ping",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.mode": {
+ "message": "Mode",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.menu.connect": {
+ "message": "Hubungkan",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.addToFavorites": {
+ "message": "Tambah ke Favorit",
+ "description": "Launcher preview button"
+ },
+ "launcherSim.menu.copy": {
+ "message": "Salin Info Server",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.column.rule": {
+ "message": "Aturan",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.value": {
+ "message": "Nilai",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.filter.title": {
+ "message": "Filter:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.omp": {
+ "message": "Hanya server open.mp",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.nonEmpty": {
+ "message": "Server Tidak Kosong",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.unpassworded": {
+ "message": "Server Tanpa Kata Sandi",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.language": {
+ "message": "Bahasa:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.notification.favorited": {
+ "message": "Ditambahkan ke Favorit!",
+ "description": "Launcher preview: notification"
+ },
+ "launcherSim.ariaLabel": {
+ "message": "Launcher open.mp yang menampilkan daftar contoh server",
+ "description": "Accessible label for the launcher picture"
+ },
+ "launcherSim.column.player": {
+ "message": "Pemain",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.score": {
+ "message": "Skor",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.copy": {
+ "message": "SALIN",
+ "description": "Launcher preview: copy address"
+ },
+ "servers.add.successMessage": {
+ "message": "{serverName} telah ditambahkan ke daftar tunggu kami. Jika belum tersedia setelah maksimal 48 jam, Anda dapat menghubungi kami di Discord!",
+ "description": "Toast message shown after submitting a server to the pending list"
+ },
+ "servers.add.successTitle": {
+ "message": "Server Terkirim!",
+ "description": "Toast title shown after a server submission succeeds"
+ },
+ "servers.add.failureMessage": {
+ "message": "Status {status}: {error}",
+ "description": "Toast message shown after a server submission fails"
+ },
+ "servers.add.failureTitle": {
+ "message": "Pengiriman gagal!",
+ "description": "Toast title shown after a server submission fails"
+ },
+ "servers.add.errorMessage": {
+ "message": "Terjadi kesalahan saat mengirimkan server",
+ "description": "Toast message shown after an unexpected server submission error"
+ },
+ "servers.add.errorTitle": {
+ "message": "Kesalahan",
+ "description": "Generic toast error title"
+ },
+ "servers.add.addressPlaceholder": {
+ "message": "play.example.com:7777",
+ "description": "Add server address input placeholder"
+ },
+ "servers.pages.label": {
+ "message": "Halaman daftar server",
+ "description": "Accessible label for the server list pagination"
+ },
+ "servers.pages.previous": {
+ "message": "Halaman sebelumnya",
+ "description": "Server list previous page button"
+ },
+ "servers.pages.next": {
+ "message": "Halaman berikutnya",
+ "description": "Server list next page button"
+ },
+ "servers.sort.name": {
+ "message": "Nama",
+ "description": "Sort by server name"
+ },
+ "servers.sort.mode": {
+ "message": "Mode",
+ "description": "Sort by game mode"
+ },
+ "servers.sort.language": {
+ "message": "Bahasa",
+ "description": "Sort by language"
+ },
+ "servers.language.all": {
+ "message": "Semua bahasa",
+ "description": "All languages filter option"
+ },
+ "servers.add.closeModal": {
+ "message": "Tutup jendela tambah server",
+ "description": "Accessible label for closing the add server modal"
+ },
+ "npcCallbacksNote.message": {
+ "message": "Callback ini juga dapat dipanggil oleh NPC.",
+ "description": "Note shown on callback docs pages when NPCs can also call the callback"
+ },
+ "versionWarn.name.function": {
+ "message": "fungsi",
+ "description": "Default item name in a version warning"
+ },
+ "versionWarn.name.callback": {
+ "message": "callback",
+ "description": "Callback item name in a version warning"
+ },
+ "versionWarn.message": {
+ "message": "{name} ini ditambahkan di {version} dan tidak akan berfungsi di versi sebelumnya!",
+ "description": "Warning shown on scripting docs pages for APIs added in a specific server version"
+ },
+ "carousel.previous": {
+ "message": "Sebelumnya",
+ "description": "Carousel previous button"
+ },
+ "carousel.next": {
+ "message": "Berikutnya",
+ "description": "Carousel next button"
+ },
+ "downloads.release.githubTitle": {
+ "message": "Lihat rilis di GitHub",
+ "description": "Title attribute for the GitHub release link"
+ },
+ "servers.page.title": {
+ "message": "Server",
+ "description": "Servers page title"
+ },
+ "servers.page.description": {
+ "message": "Daftar server San Andreas yang menggunakan open.mp & SA-MP",
+ "description": "Servers page description"
+ },
+ "downloads.launcher.layoutDescription": {
+ "message": "Unduh rilis launcher open.mp",
+ "description": "Launcher downloads page meta description"
+ },
+ "downloads.server.layoutDescription": {
+ "message": "Unduh rilis server open.mp",
+ "description": "Server downloads page meta description"
+ },
+ "notFound.title": {
+ "message": "Halaman Tidak Ditemukan",
+ "description": "404 page title"
+ },
+ "notFound.imageAlt": {
+ "message": "Tangkapan layar misi kereta GTA",
+ "description": "Alt text for the 404 page image"
+ },
+ "notFound.home": {
+ "message": "Beranda",
+ "description": "404 page home button"
+ },
+ "notFound.docs": {
+ "message": "Dokumentasi",
+ "description": "404 page documentation button"
+ },
+ "notFound.servers": {
+ "message": "Server",
+ "description": "404 page servers button"
+ },
+ "theme.blog.post.paginator.navAriaLabel": {
+ "message": "Navigasi halaman pos blog",
+ "description": "The ARIA label for the blog posts pagination"
+ },
+ "theme.blog.post.paginator.newerPost": {
+ "message": "Pos lebih baru",
+ "description": "The blog post button label to navigate to the newer/previous post"
+ },
+ "theme.blog.post.paginator.olderPost": {
+ "message": "Pos lebih lama",
+ "description": "The blog post button label to navigate to the older/next post"
+ },
+ "theme.tags.tagsPageLink": {
+ "message": "Lihat Semua Tag",
+ "description": "The label of the link targeting the tag list page"
+ },
+ "theme.colorToggle.ariaLabel.mode.system": {
+ "message": "modus sistem",
+ "description": "The name for the system color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.light": {
+ "message": "modus terang",
+ "description": "The name for the light color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.dark": {
+ "message": "modus gelap",
+ "description": "The name for the dark color mode"
+ },
+ "theme.colorToggle.ariaLabel": {
+ "message": "Ubah antara modus gelap dan modus terang (saat ini {mode})",
+ "description": "The ARIA label for the color mode toggle"
+ },
+ "theme.docs.breadcrumbs.navAriaLabel": {
+ "message": "Runut navigasi",
+ "description": "The ARIA label for the breadcrumbs"
+ },
+ "theme.docs.paginator.navAriaLabel": {
+ "message": "Halaman dokumentasi",
+ "description": "The ARIA label for the docs pagination"
+ },
+ "theme.docs.paginator.previous": {
+ "message": "Sebelum",
+ "description": "The label used to navigate to the previous doc"
+ },
+ "theme.docs.paginator.next": {
+ "message": "Berikut",
+ "description": "The label used to navigate to the next doc"
+ },
+ "theme.docs.tagDocListPageTitle": {
+ "message": "{nDocsTagged} dengan \"{tagName}\"",
+ "description": "The title of the page for a docs tag"
+ },
+ "theme.docs.versionBadge.label": {
+ "message": "Versi: {versionLabel}"
+ },
+ "theme.docs.versions.unreleasedVersionLabel": {
+ "message": "Ini adalah dokumentasi yang belum dirilis untuk {siteTitle} {versionLabel}.",
+ "description": "The label used to tell the user that he's browsing an unreleased doc version"
+ },
+ "theme.docs.versions.unmaintainedVersionLabel": {
+ "message": "Ini adalah dokumentasi untuk {siteTitle} {versionLabel}, yang tidak lagi aktif dikelola.",
+ "description": "The label used to tell the user that he's browsing an unmaintained doc version"
+ },
+ "theme.docs.versions.latestVersionSuggestionLabel": {
+ "message": "Untuk dokumentasi terbaru, lihat {latestVersionLink} ({versionLabel}).",
+ "description": "The label used to tell the user to check the latest version"
+ },
+ "theme.docs.versions.latestVersionLinkLabel": {
+ "message": "versi terbaru",
+ "description": "The label used for the latest version suggestion link label"
+ },
+ "theme.common.editThisPage": {
+ "message": "Sunting halaman ini",
+ "description": "The link label to edit the current page"
+ },
+ "theme.common.headingLinkTitle": {
+ "message": "Taut langsung ke {heading}",
+ "description": "Title for link to heading"
+ },
+ "theme.lastUpdated.atDate": {
+ "message": " pada {date}",
+ "description": "The words used to describe on which date a page has been last updated"
+ },
+ "theme.lastUpdated.byUser": {
+ "message": " oleh {user}",
+ "description": "The words used to describe by who the page has been last updated"
+ },
+ "theme.lastUpdated.lastUpdatedAtBy": {
+ "message": "Diperbaharui{atDate}{byUser}",
+ "description": "The sentence used to display when a page has been last updated, and by who"
+ },
+ "theme.navbar.mobileVersionsDropdown.label": {
+ "message": "Versi",
+ "description": "The label for the navbar versions dropdown on mobile view"
+ },
+ "theme.tags.tagsListLabel": {
+ "message": "Tag:",
+ "description": "The label alongside a tag list"
+ },
+ "theme.admonition.warning": {
+ "message": "peringatan",
+ "description": "The default label used for the Warning admonition (:::warning)"
+ },
+ "theme.AnnouncementBar.closeButtonAriaLabel": {
+ "message": "Tutup",
+ "description": "The ARIA label for close button of announcement bar"
+ },
+ "theme.blog.sidebar.navAriaLabel": {
+ "message": "Navigasi pos blog terbaru",
+ "description": "The ARIA label for recent posts in the blog sidebar"
+ },
+ "theme.DocSidebarItem.expandCategoryAriaLabel": {
+ "message": "Perluas kategori bilah sisi '{label}'",
+ "description": "The ARIA label to expand the sidebar category"
+ },
+ "theme.DocSidebarItem.collapseCategoryAriaLabel": {
+ "message": "Ciutkan kategori bilah sisi '{label}'",
+ "description": "The ARIA label to collapse the sidebar category"
+ },
+ "theme.IconExternalLink.ariaLabel": {
+ "message": "(membuka di tab baru)",
+ "description": "The ARIA label for the external link icon"
+ },
+ "theme.NavBar.navAriaLabel": {
+ "message": "Utama",
+ "description": "The ARIA label for the main navigation"
+ },
+ "theme.navbar.mobileLanguageDropdown.label": {
+ "message": "Bahasa",
+ "description": "The label for the mobile language switcher dropdown"
+ },
+ "theme.TOCCollapsible.toggleButtonLabel": {
+ "message": "Pada halaman ini",
+ "description": "The label used by the button on the collapsible TOC component"
+ },
+ "theme.blog.post.readMore": {
+ "message": "Baca Selengkapnya",
+ "description": "The label used in blog post item excerpts to link to full blog posts"
+ },
+ "theme.blog.post.readMoreLabel": {
+ "message": "Baca selengkapnya mengenai {title}",
+ "description": "The ARIA label for the link to full blog posts from excerpts"
+ },
+ "theme.CodeBlock.copy": {
+ "message": "Salin",
+ "description": "The copy button label on code blocks"
+ },
+ "theme.CodeBlock.copied": {
+ "message": "Disalin",
+ "description": "The copied button label on code blocks"
+ },
+ "theme.CodeBlock.copyButtonAriaLabel": {
+ "message": "Salin kode ke papan klip",
+ "description": "The ARIA label for copy code blocks button"
+ },
+ "theme.CodeBlock.wordWrapToggle": {
+ "message": "Alihkan pembungkus kata",
+ "description": "The title attribute for toggle word wrapping button of code block lines"
+ },
+ "theme.docs.breadcrumbs.home": {
+ "message": "Halaman utama",
+ "description": "The ARIA label for the home page in the breadcrumbs"
+ },
+ "theme.docs.sidebar.collapseButtonTitle": {
+ "message": "Ciutkan bilah sisi",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.collapseButtonAriaLabel": {
+ "message": "Ciutkan bilah sisi",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.navAriaLabel": {
+ "message": "Bilah sisi dokumentasi",
+ "description": "The ARIA label for the sidebar navigation"
+ },
+ "theme.docs.sidebar.closeSidebarButtonAriaLabel": {
+ "message": "Tutup bilah sisi",
+ "description": "The ARIA label for close button of mobile sidebar"
+ },
+ "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
+ "message": "← Kembali ke menu utama",
+ "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
+ },
+ "theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
+ "message": "Alihkan bilah sisi",
+ "description": "The ARIA label for hamburger menu button of mobile navigation"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
+ "message": "Perluas menu tarik-turun",
+ "description": "The ARIA label of the button to expand the mobile dropdown navbar item"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
+ "message": "Ciutkan menu tarik-turun",
+ "description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
+ },
+ "theme.docs.sidebar.expandButtonTitle": {
+ "message": "Perluas bilah sisi",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.docs.sidebar.expandButtonAriaLabel": {
+ "message": "Perluas bilah sisi",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.SearchBar.seeAll": {
+ "message": "Lihat semua {count} hasilnya"
+ },
+ "theme.SearchPage.documentsFound.plurals": {
+ "message": "Satu dokumen ditemukan|{count} dokumen ditemukan",
+ "description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.SearchPage.existingResultsTitle": {
+ "message": "Hasil pencarian untuk \"{query}\"",
+ "description": "The search page title for non-empty query"
+ },
+ "theme.SearchPage.emptyResultsTitle": {
+ "message": "Cari dokumentasi",
+ "description": "The search page title for empty query"
+ },
+ "theme.SearchPage.inputPlaceholder": {
+ "message": "Tulis pencarian anda di sini",
+ "description": "The placeholder for search page input"
+ },
+ "theme.SearchPage.inputLabel": {
+ "message": "Cari",
+ "description": "The ARIA label for search page input"
+ },
+ "theme.SearchPage.algoliaLabel": {
+ "message": "Didukung oleh Algolia",
+ "description": "The description label for Algolia mention"
+ },
+ "theme.SearchPage.noResultsText": {
+ "message": "Tak ada hasil yang ditemukan",
+ "description": "The paragraph for empty search result"
+ },
+ "theme.SearchPage.fetchingNewResults": {
+ "message": "Mendapatkan hasil pencarian...",
+ "description": "The paragraph for fetching new search results"
+ },
+ "theme.SearchBar.label": {
+ "message": "Cari",
+ "description": "The ARIA label and placeholder for search button"
+ },
+ "theme.SearchModal.searchBox.resetButtonTitle": {
+ "message": "Hapus teks pencarian",
+ "description": "The label and ARIA label for search box reset button"
+ },
+ "theme.SearchModal.searchBox.cancelButtonText": {
+ "message": "Batalkan",
+ "description": "The label and ARIA label for search box cancel button"
+ },
+ "theme.SearchModal.searchBox.placeholderText": {
+ "message": "Cari dokumentasi",
+ "description": "The placeholder text for the main search input field"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAi": {
+ "message": "Ajukan pertanyaan lain...",
+ "description": "The placeholder text when in AI question mode"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAiStreaming": {
+ "message": "Menjawab...",
+ "description": "The placeholder text for search box when AI is streaming an answer"
+ },
+ "theme.SearchModal.searchBox.enterKeyHint": {
+ "message": "cari",
+ "description": "The hint for the search box enter key text"
+ },
+ "theme.SearchModal.searchBox.enterKeyHintAskAi": {
+ "message": "kirim",
+ "description": "The hint for the Ask AI search box enter key text"
+ },
+ "theme.SearchModal.searchBox.searchInputLabel": {
+ "message": "Cari",
+ "description": "The ARIA label for search input"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonText": {
+ "message": "Kembali ke pencarian kata kunci",
+ "description": "The text for back to keyword search button"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonAriaLabel": {
+ "message": "Kembali ke pencarian kata kunci",
+ "description": "The ARIA label for back to keyword search button"
+ },
+ "theme.SearchModal.startScreen.recentSearchesTitle": {
+ "message": "Terbaru",
+ "description": "The title for recent searches"
+ },
+ "theme.SearchModal.startScreen.noRecentSearchesText": {
+ "message": "Tak ada riwayat pencarian",
+ "description": "The text when there are no recent searches"
+ },
+ "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": {
+ "message": "Simpan pencarian ini",
+ "description": "The title for save recent search button"
+ },
+ "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": {
+ "message": "Hapus pencarian ini dari riwayat",
+ "description": "The title for remove recent search button"
+ },
+ "theme.SearchModal.startScreen.favoriteSearchesTitle": {
+ "message": "Favorit",
+ "description": "The title for favorite searches"
+ },
+ "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": {
+ "message": "Hapus pencarian ini dari favorit",
+ "description": "The title for remove favorite search button"
+ },
+ "theme.SearchModal.startScreen.recentConversationsTitle": {
+ "message": "Percakapan terbaru",
+ "description": "The title for recent conversations"
+ },
+ "theme.SearchModal.startScreen.removeRecentConversationButtonTitle": {
+ "message": "Hapus percakapan ini dari riwayat",
+ "description": "The title for remove recent conversation button"
+ },
+ "theme.SearchModal.errorScreen.titleText": {
+ "message": "Gagal mendapatkan hasilnya",
+ "description": "The title for error screen"
+ },
+ "theme.SearchModal.errorScreen.helpText": {
+ "message": "Barangkali anda perlu memerika koneksi jaringan anda.",
+ "description": "The help text for error screen"
+ },
+ "theme.SearchModal.resultsScreen.askAiPlaceholder": {
+ "message": "Tanya AI: ",
+ "description": "The placeholder text for Ask AI input"
+ },
+ "theme.SearchModal.askAiScreen.disclaimerText": {
+ "message": "Jawaban dibuat oleh AI yang dapat melakukan kesalahan. Periksa kembali jawabannya.",
+ "description": "The disclaimer text for AI answers"
+ },
+ "theme.SearchModal.askAiScreen.relatedSourcesText": {
+ "message": "Sumber terkait",
+ "description": "The text for related sources"
+ },
+ "theme.SearchModal.askAiScreen.thinkingText": {
+ "message": "Berpikir...",
+ "description": "The text when AI is thinking"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonText": {
+ "message": "Salin",
+ "description": "The text for copy button"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonCopiedText": {
+ "message": "Disalin!",
+ "description": "The text for copy button when copied"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonTitle": {
+ "message": "Salin",
+ "description": "The title for copy button"
+ },
+ "theme.SearchModal.askAiScreen.likeButtonTitle": {
+ "message": "Suka",
+ "description": "The title for like button"
+ },
+ "theme.SearchModal.askAiScreen.dislikeButtonTitle": {
+ "message": "Tidak suka",
+ "description": "The title for dislike button"
+ },
+ "theme.SearchModal.askAiScreen.thanksForFeedbackText": {
+ "message": "Terima kasih atas masukan Anda!",
+ "description": "The text for thanks for feedback"
+ },
+ "theme.SearchModal.askAiScreen.preToolCallText": {
+ "message": "Mencari...",
+ "description": "The text before tool call"
+ },
+ "theme.SearchModal.askAiScreen.duringToolCallText": {
+ "message": "Mencari ",
+ "description": "The text during tool call"
+ },
+ "theme.SearchModal.askAiScreen.afterToolCallText": {
+ "message": "Telah mencari",
+ "description": "The text after tool call"
+ },
+ "theme.SearchModal.footer.selectText": {
+ "message": "memilih",
+ "description": "The select text for footer"
+ },
+ "theme.SearchModal.footer.submitQuestionText": {
+ "message": "Kirim pertanyaan",
+ "description": "The submit question text for footer"
+ },
+ "theme.SearchModal.footer.selectKeyAriaLabel": {
+ "message": "Tombol Enter",
+ "description": "The ARIA label for select key in footer"
+ },
+ "theme.SearchModal.footer.navigateText": {
+ "message": "navigasi",
+ "description": "The navigate text for footer"
+ },
+ "theme.SearchModal.footer.navigateUpKeyAriaLabel": {
+ "message": "Panah ke atas",
+ "description": "The ARIA label for navigate up key in footer"
+ },
+ "theme.SearchModal.footer.navigateDownKeyAriaLabel": {
+ "message": "Panah ke bawah",
+ "description": "The ARIA label for navigate down key in footer"
+ },
+ "theme.SearchModal.footer.closeText": {
+ "message": "menutup",
+ "description": "The close text for footer"
+ },
+ "theme.SearchModal.footer.closeKeyAriaLabel": {
+ "message": "Tombol Escape",
+ "description": "The ARIA label for close key in footer"
+ },
+ "theme.SearchModal.footer.searchByText": {
+ "message": "Cari dengan teks",
+ "description": "The 'Powered by' text for footer"
+ },
+ "theme.SearchModal.footer.backToSearchText": {
+ "message": "Kembali ke pencarian",
+ "description": "The back to search text for footer"
+ },
+ "theme.SearchModal.noResultsScreen.noResultsText": {
+ "message": "Tak ada hasil untuk",
+ "description": "The text when there are no results"
+ },
+ "theme.SearchModal.noResultsScreen.suggestedQueryText": {
+ "message": "Coba lakukan pencarian untuk",
+ "description": "The text for suggested query"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsText": {
+ "message": "Yakin pencarian ini seharusnya memberikan hasil?",
+ "description": "The text for reporting missing results"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": {
+ "message": "Beri tahu kami.",
+ "description": "The link text for reporting missing results"
+ },
+ "theme.SearchModal.placeholder": {
+ "message": "Cari dokumentasi",
+ "description": "The placeholder of the input of the DocSearch pop-up modal"
+ },
+ "theme.blog.post.plurals": {
+ "message": "Satu pos|{count} pos",
+ "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.blog.tagTitle": {
+ "message": "{nPosts} memiliki tag \"{tagName}\"",
+ "description": "The title of the page for a blog tag"
+ },
+ "theme.blog.author.pageTitle": {
+ "message": "{authorName} - {nPosts}",
+ "description": "The title of the page for a blog author"
+ },
+ "theme.blog.authorsList.pageTitle": {
+ "message": "Penulis",
+ "description": "The title of the authors page"
+ },
+ "theme.blog.authorsList.viewAll": {
+ "message": "View All Authors",
+ "description": "The label of the link targeting the blog authors page"
+ },
+ "theme.blog.author.noPosts": {
+ "message": "Penulis ini belum menulis pos apa pun.",
+ "description": "The text for authors with 0 blog post"
+ },
+ "theme.contentVisibility.unlistedBanner.title": {
+ "message": "Halaman tak terdaftar",
+ "description": "The unlisted content banner title"
+ },
+ "theme.contentVisibility.unlistedBanner.message": {
+ "message": "Halaman ini tidak terdaftar. Mesin pencari tidak akan mengindeksnya, dan hanya pengguna yang memiliki tautan langsung yang dapat mengaksesnya.",
+ "description": "The unlisted content banner message"
+ },
+ "theme.contentVisibility.draftBanner.title": {
+ "message": "Halaman draf",
+ "description": "The draft content banner title"
+ },
+ "theme.contentVisibility.draftBanner.message": {
+ "message": "Halaman ini adalah draf. Halaman ini hanya akan terlihat di mode pengembangan dan tidak disertakan dalam build produksi.",
+ "description": "The draft content banner message"
+ },
+ "theme.docs.DocCard.categoryDescription.plurals": {
+ "message": "1 butir|{count} butir",
+ "description": "The default description for a category card in the generated index about how many items this category includes"
+ },
+ "theme.ErrorPageContent.tryAgain": {
+ "message": "Coba kembali",
+ "description": "The label of the button to try again rendering when the React error boundary captures an error"
+ },
+ "theme.common.skipToMainContent": {
+ "message": "Lewati ke konten utama",
+ "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
+ },
"theme.docs.sidebar.filterPlaceholder": {
"message": "Filter dokumentasi",
"description": "Placeholder for the docs sidebar filter input"
diff --git a/frontend/i18n/id/docusaurus-plugin-content-blog/options.json b/frontend/i18n/id/docusaurus-plugin-content-blog/options.json
new file mode 100644
index 000000000000..e1d0fea2de29
--- /dev/null
+++ b/frontend/i18n/id/docusaurus-plugin-content-blog/options.json
@@ -0,0 +1,14 @@
+{
+ "title": {
+ "message": "Blog",
+ "description": "The title for the blog used in SEO"
+ },
+ "description": {
+ "message": "Blog",
+ "description": "The description for the blog used in SEO"
+ },
+ "sidebar.title": {
+ "message": "Pos terbaru",
+ "description": "The label for the left sidebar"
+ }
+}
diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current.json b/frontend/i18n/id/docusaurus-plugin-content-docs/current.json
index b91bf0af4853..d9b07f3766ea 100644
--- a/frontend/i18n/id/docusaurus-plugin-content-docs/current.json
+++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current.json
@@ -28,5 +28,9 @@
},
"sidebar.docsSidebar.category.Meta": {
"message": "Meta"
+ },
+ "version.label": {
+ "message": "Berikutnya",
+ "description": "The label for version current"
}
}
diff --git a/frontend/i18n/id/docusaurus-theme-classic/footer.json b/frontend/i18n/id/docusaurus-theme-classic/footer.json
new file mode 100644
index 000000000000..e45c9b2513b2
--- /dev/null
+++ b/frontend/i18n/id/docusaurus-theme-classic/footer.json
@@ -0,0 +1,82 @@
+{
+ "link.title.Documentation": {
+ "message": "Dokumentasi",
+ "description": "The title of the footer links column with title=Documentation in the footer"
+ },
+ "link.title.Community": {
+ "message": "Komunitas",
+ "description": "The title of the footer links column with title=Community in the footer"
+ },
+ "link.title.More": {
+ "message": "Lainnya",
+ "description": "The title of the footer links column with title=More in the footer"
+ },
+ "link.item.label.Introduction": {
+ "message": "Pengenalan",
+ "description": "The label of footer link with label=Introduction linking to docs"
+ },
+ "link.item.label.open.mp Migration": {
+ "message": "Migrasi ke open.mp",
+ "description": "The label of footer link with label=open.mp Migration linking to docs/server/Installation"
+ },
+ "link.item.label.config.json": {
+ "message": "config.json",
+ "description": "The label of footer link with label=config.json linking to docs/server/config.json"
+ },
+ "link.item.label.Discord": {
+ "message": "Discord",
+ "description": "The label of footer link with label=Discord linking to https://discord.gg/samp"
+ },
+ "link.item.label.GitHub": {
+ "message": "GitHub",
+ "description": "The label of footer link with label=GitHub linking to https://github.com/openmultiplayer/open.mp"
+ },
+ "link.item.label.Donate": {
+ "message": "Donasi",
+ "description": "The label of footer link with label=Donate linking to https://opencollective.com/openmultiplayer"
+ },
+ "link.item.label.YouTube": {
+ "message": "YouTube",
+ "description": "The label of footer link with label=YouTube linking to https://youtube.com/openmultiplayer"
+ },
+ "link.item.label.X": {
+ "message": "X",
+ "description": "The label of footer link with label=X linking to https://x.com/openmultiplayer"
+ },
+ "link.item.label.Download Launcher": {
+ "message": "Unduh Launcher",
+ "description": "The label of footer link with label=Download Launcher linking to /downloads/launcher"
+ },
+ "link.item.label.Download Server": {
+ "message": "Unduh Server",
+ "description": "The label of footer link with label=Download Server linking to /downloads/server"
+ },
+ "link.item.label.Servers": {
+ "message": "Server",
+ "description": "The label of footer link with label=Servers linking to /servers"
+ },
+ "link.item.label.Blog": {
+ "message": "Blog",
+ "description": "The label of footer link with label=Blog linking to /blog"
+ },
+ "link.item.label.Animations": {
+ "message": "Animasi",
+ "description": "The label of footer link with label=Animations linking to /animations"
+ },
+ "link.item.label.UID Generator": {
+ "message": "Pembuat UID",
+ "description": "The label of footer link with label=UID Generator linking to /uid"
+ },
+ "link.item.label.SA-MP": {
+ "message": "SA-MP",
+ "description": "The label of footer link with label=SA-MP linking to https://sa-mp.mp/"
+ },
+ "copyright": {
+ "message": "Hak Cipta © 2026 open.mp. Dibuat dengan Docusaurus.",
+ "description": "The footer copyright"
+ },
+ "logo.alt": {
+ "message": "open.mp",
+ "description": "The alt text of footer logo"
+ }
+}
diff --git a/frontend/i18n/id/docusaurus-theme-classic/navbar.json b/frontend/i18n/id/docusaurus-theme-classic/navbar.json
new file mode 100644
index 000000000000..19698ca501ea
--- /dev/null
+++ b/frontend/i18n/id/docusaurus-theme-classic/navbar.json
@@ -0,0 +1,34 @@
+{
+ "title": {
+ "message": "Open Multiplayer",
+ "description": "The title in the navbar"
+ },
+ "logo.alt": {
+ "message": "Logo open.mp",
+ "description": "The alt text of navbar logo"
+ },
+ "item.label.Docs": {
+ "message": "Dokumentasi",
+ "description": "Navbar item with label Docs"
+ },
+ "item.label.Blog": {
+ "message": "Blog",
+ "description": "Navbar item with label Blog"
+ },
+ "item.label.Forums": {
+ "message": "Forum",
+ "description": "Navbar item with label Forums"
+ },
+ "item.label.Servers": {
+ "message": "Server",
+ "description": "Navbar item with label Servers"
+ },
+ "item.label.Partners": {
+ "message": "Mitra",
+ "description": "Navbar item with label Partners"
+ },
+ "item.label.Donate to us": {
+ "message": "Donasi",
+ "description": "Navbar item with label Donate to us"
+ }
+}
diff --git a/frontend/i18n/pt-BR/code.json b/frontend/i18n/pt-BR/code.json
index d1cdbba6d62b..45a52ac76f1b 100644
--- a/frontend/i18n/pt-BR/code.json
+++ b/frontend/i18n/pt-BR/code.json
@@ -149,7 +149,7 @@
"description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
},
"theme.tags.tagsPageTitle": {
- "message": "Tags",
+ "message": "Etiquetas",
"description": "The title of the tag list page"
},
"announcement.serverVersion": {
@@ -697,6 +697,644 @@
"message": "Servidores",
"description": "404 page servers button"
},
+ "serverInfo.gameMode": {
+ "message": "Modo de Jogo",
+ "description": "Game mode label"
+ },
+ "launcherSim.join.connect": {
+ "message": "Conectar",
+ "description": "Launcher connect button"
+ },
+ "launcherSim.join.bannerText": {
+ "message": "Seu Servidor",
+ "description": "Sample server banner text"
+ },
+ "launcherSim.join.server": {
+ "message": "Servidor",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.join.address": {
+ "message": "Endereço",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.column.players": {
+ "message": "Jogadores",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.join.nickname": {
+ "message": "Apelido",
+ "description": "Launcher join dialog nickname label"
+ },
+ "launcherSim.join.version": {
+ "message": "Versão do SA-MP",
+ "description": "Launcher join dialog SA-MP version label"
+ },
+ "launcherSim.tab.favorites": {
+ "message": "Favoritos",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.internet": {
+ "message": "Internet",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.partners": {
+ "message": "Parceiros",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.recent": {
+ "message": "Jogados Recentemente",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.nicknamePlaceholder": {
+ "message": "Apelido...",
+ "description": "Launcher preview nickname placeholder"
+ },
+ "launcherSim.searchPlaceholder": {
+ "message": "Buscar por nome do servidor/modo",
+ "description": "Launcher preview search placeholder"
+ },
+ "launcherSim.column.name": {
+ "message": "Nome",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.ping": {
+ "message": "Ping",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.mode": {
+ "message": "Modo",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.menu.connect": {
+ "message": "Conectar",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.addToFavorites": {
+ "message": "Adicionar aos Favoritos",
+ "description": "Launcher preview button"
+ },
+ "launcherSim.menu.copy": {
+ "message": "Copiar Informações do Servidor",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.column.rule": {
+ "message": "Regra",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.value": {
+ "message": "Valor",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.filter.title": {
+ "message": "Filtros:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.omp": {
+ "message": "Somente servidores open.mp",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.nonEmpty": {
+ "message": "Servidores Não Vazios",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.unpassworded": {
+ "message": "Servidores Sem Senha",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.language": {
+ "message": "Idioma:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.notification.favorited": {
+ "message": "Adicionado aos Favoritos!",
+ "description": "Launcher preview: notification"
+ },
+ "launcherSim.ariaLabel": {
+ "message": "O launcher open.mp mostrando uma lista de servidores de exemplo",
+ "description": "Accessible label for the launcher picture"
+ },
+ "launcherSim.column.player": {
+ "message": "Jogador",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.score": {
+ "message": "Pontuação",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.copy": {
+ "message": "COPIAR",
+ "description": "Launcher preview: copy address"
+ },
+ "servers.pages.label": {
+ "message": "Páginas da lista de servidores",
+ "description": "Accessible label for the server list pagination"
+ },
+ "servers.pages.previous": {
+ "message": "Página anterior",
+ "description": "Server list previous page button"
+ },
+ "servers.pages.next": {
+ "message": "Próxima página",
+ "description": "Server list next page button"
+ },
+ "carousel.previous": {
+ "message": "Anterior",
+ "description": "Carousel previous button"
+ },
+ "carousel.next": {
+ "message": "Próximo",
+ "description": "Carousel next button"
+ },
+ "theme.blog.post.paginator.navAriaLabel": {
+ "message": "Navegação da página de publicação do blog",
+ "description": "The ARIA label for the blog posts pagination"
+ },
+ "theme.blog.post.paginator.newerPost": {
+ "message": "Publicação mais recente",
+ "description": "The blog post button label to navigate to the newer/previous post"
+ },
+ "theme.blog.post.paginator.olderPost": {
+ "message": "Publicação mais antiga",
+ "description": "The blog post button label to navigate to the older/next post"
+ },
+ "theme.tags.tagsPageLink": {
+ "message": "Ver todas as etiquetas",
+ "description": "The label of the link targeting the tag list page"
+ },
+ "theme.colorToggle.ariaLabel.mode.system": {
+ "message": "modo do sistema",
+ "description": "The name for the system color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.light": {
+ "message": "modo claro",
+ "description": "The name for the light color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.dark": {
+ "message": "modo escuro",
+ "description": "The name for the dark color mode"
+ },
+ "theme.colorToggle.ariaLabel": {
+ "message": "Mudar entre modo claro e escuro ({mode} está ativo)",
+ "description": "The ARIA label for the color mode toggle"
+ },
+ "theme.docs.breadcrumbs.navAriaLabel": {
+ "message": "Trilha",
+ "description": "The ARIA label for the breadcrumbs"
+ },
+ "theme.docs.paginator.navAriaLabel": {
+ "message": "Páginas de documento",
+ "description": "The ARIA label for the docs pagination"
+ },
+ "theme.docs.paginator.previous": {
+ "message": "Anterior",
+ "description": "The label used to navigate to the previous doc"
+ },
+ "theme.docs.paginator.next": {
+ "message": "Próxima",
+ "description": "The label used to navigate to the next doc"
+ },
+ "theme.docs.tagDocListPageTitle.nDocsTagged": {
+ "message": "Um documento marcado|{count} documentos marcados",
+ "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.docs.tagDocListPageTitle": {
+ "message": "{nDocsTagged} com \"{tagName}\"",
+ "description": "The title of the page for a docs tag"
+ },
+ "theme.docs.versionBadge.label": {
+ "message": "Versão: {versionLabel}"
+ },
+ "theme.docs.versions.unreleasedVersionLabel": {
+ "message": "Esta é uma documentação não lançada da versão {versionLabel} para {siteTitle}.",
+ "description": "The label used to tell the user that he's browsing an unreleased doc version"
+ },
+ "theme.docs.versions.unmaintainedVersionLabel": {
+ "message": "Esta é a documentação para {siteTitle} {versionLabel}, que não é mais mantida ativamente.",
+ "description": "The label used to tell the user that he's browsing an unmaintained doc version"
+ },
+ "theme.docs.versions.latestVersionSuggestionLabel": {
+ "message": "Para a documentação atualizada, consulte a {latestVersionLink} ({versionLabel}).",
+ "description": "The label used to tell the user to check the latest version"
+ },
+ "theme.docs.versions.latestVersionLinkLabel": {
+ "message": "versão mais recente",
+ "description": "The label used for the latest version suggestion link label"
+ },
+ "theme.common.editThisPage": {
+ "message": "Editar esta página",
+ "description": "The link label to edit the current page"
+ },
+ "theme.common.headingLinkTitle": {
+ "message": "Link direto para {heading}",
+ "description": "Title for link to heading"
+ },
+ "theme.lastUpdated.atDate": {
+ "message": " em {date}",
+ "description": "The words used to describe on which date a page has been last updated"
+ },
+ "theme.lastUpdated.byUser": {
+ "message": " por {user}",
+ "description": "The words used to describe by who the page has been last updated"
+ },
+ "theme.lastUpdated.lastUpdatedAtBy": {
+ "message": "Última atualização{atDate}{byUser}",
+ "description": "The sentence used to display when a page has been last updated, and by who"
+ },
+ "theme.navbar.mobileVersionsDropdown.label": {
+ "message": "Versões",
+ "description": "The label for the navbar versions dropdown on mobile view"
+ },
+ "theme.tags.tagsListLabel": {
+ "message": "Etiquetas:",
+ "description": "The label alongside a tag list"
+ },
+ "theme.AnnouncementBar.closeButtonAriaLabel": {
+ "message": "Fechar",
+ "description": "The ARIA label for close button of announcement bar"
+ },
+ "theme.blog.sidebar.navAriaLabel": {
+ "message": "Navegação das publicações recentes do blog",
+ "description": "The ARIA label for recent posts in the blog sidebar"
+ },
+ "theme.admonition.warning": {
+ "message": "aviso",
+ "description": "The default label used for the Warning admonition (:::warning)"
+ },
+ "theme.DocSidebarItem.expandCategoryAriaLabel": {
+ "message": "Expandir a categoria '{label}'",
+ "description": "The ARIA label to expand the sidebar category"
+ },
+ "theme.DocSidebarItem.collapseCategoryAriaLabel": {
+ "message": "Recolher a categoria '{label}'",
+ "description": "The ARIA label to collapse the sidebar category"
+ },
+ "theme.NavBar.navAriaLabel": {
+ "message": "Navegação principal",
+ "description": "The ARIA label for the main navigation"
+ },
+ "theme.IconExternalLink.ariaLabel": {
+ "message": "(abre em uma nova aba)",
+ "description": "The ARIA label for the external link icon"
+ },
+ "theme.navbar.mobileLanguageDropdown.label": {
+ "message": "Línguas",
+ "description": "The label for the mobile language switcher dropdown"
+ },
+ "theme.TOCCollapsible.toggleButtonLabel": {
+ "message": "Nesta página",
+ "description": "The label used by the button on the collapsible TOC component"
+ },
+ "theme.blog.post.readMore": {
+ "message": "Ler mais",
+ "description": "The label used in blog post item excerpts to link to full blog posts"
+ },
+ "theme.blog.post.readMoreLabel": {
+ "message": "Ler mais sobre {title}",
+ "description": "The ARIA label for the link to full blog posts from excerpts"
+ },
+ "theme.CodeBlock.copy": {
+ "message": "Copiar",
+ "description": "The copy button label on code blocks"
+ },
+ "theme.CodeBlock.copied": {
+ "message": "Copiado",
+ "description": "The copied button label on code blocks"
+ },
+ "theme.CodeBlock.copyButtonAriaLabel": {
+ "message": "Copiar código para a área de transferência",
+ "description": "The ARIA label for copy code blocks button"
+ },
+ "theme.CodeBlock.wordWrapToggle": {
+ "message": "Alternar quebra de linha",
+ "description": "The title attribute for toggle word wrapping button of code block lines"
+ },
+ "theme.docs.breadcrumbs.home": {
+ "message": "Página Inicial",
+ "description": "The ARIA label for the home page in the breadcrumbs"
+ },
+ "theme.docs.sidebar.collapseButtonTitle": {
+ "message": "Recolher painel lateral",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.collapseButtonAriaLabel": {
+ "message": "Recolher painel lateral",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.navAriaLabel": {
+ "message": "Painel lateral de documentos",
+ "description": "The ARIA label for the sidebar navigation"
+ },
+ "theme.docs.sidebar.closeSidebarButtonAriaLabel": {
+ "message": "Fechar painel de navegação",
+ "description": "The ARIA label for close button of mobile sidebar"
+ },
+ "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
+ "message": "← Voltar para o menu principal",
+ "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
+ },
+ "theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
+ "message": "Alternar painel de navegação",
+ "description": "The ARIA label for hamburger menu button of mobile navigation"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
+ "message": "Expandir a seleção",
+ "description": "The ARIA label of the button to expand the mobile dropdown navbar item"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
+ "message": "Recolher a seleção",
+ "description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
+ },
+ "theme.docs.sidebar.expandButtonTitle": {
+ "message": "Expandir painel lateral",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.docs.sidebar.expandButtonAriaLabel": {
+ "message": "Expandir painel lateral",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.SearchBar.seeAll": {
+ "message": "Ver todos os {count} resultados"
+ },
+ "theme.SearchPage.documentsFound.plurals": {
+ "message": "Um documento encontrado|{count} documentos encontrados",
+ "description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.SearchPage.existingResultsTitle": {
+ "message": "Resultado da pesquisa por \"{query}\"",
+ "description": "The search page title for non-empty query"
+ },
+ "theme.SearchPage.emptyResultsTitle": {
+ "message": "Pesquisa da documentação",
+ "description": "The search page title for empty query"
+ },
+ "theme.SearchPage.inputPlaceholder": {
+ "message": "Digite sua pesquisa aqui",
+ "description": "The placeholder for search page input"
+ },
+ "theme.SearchPage.inputLabel": {
+ "message": "Procurar",
+ "description": "The ARIA label for search page input"
+ },
+ "theme.SearchPage.algoliaLabel": {
+ "message": "Desenvolvido por Algolia",
+ "description": "The description label for Algolia mention"
+ },
+ "theme.SearchPage.noResultsText": {
+ "message": "Nenhum resultado foi encontrado",
+ "description": "The paragraph for empty search result"
+ },
+ "theme.SearchPage.fetchingNewResults": {
+ "message": "Trazendo novos resultados...",
+ "description": "The paragraph for fetching new search results"
+ },
+ "theme.SearchBar.label": {
+ "message": "Procurar",
+ "description": "The ARIA label and placeholder for search button"
+ },
+ "theme.SearchModal.searchBox.resetButtonTitle": {
+ "message": "Limpar a pesquisa",
+ "description": "The label and ARIA label for search box reset button"
+ },
+ "theme.SearchModal.searchBox.cancelButtonText": {
+ "message": "Cancelar",
+ "description": "The label and ARIA label for search box cancel button"
+ },
+ "theme.SearchModal.searchBox.placeholderText": {
+ "message": "Procurar na documentação",
+ "description": "The placeholder text for the main search input field"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAi": {
+ "message": "Pergunte outra coisa...",
+ "description": "The placeholder text when in AI question mode"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAiStreaming": {
+ "message": "Respondendo...",
+ "description": "The placeholder text for search box when AI is streaming an answer"
+ },
+ "theme.SearchModal.searchBox.enterKeyHint": {
+ "message": "procurar",
+ "description": "The hint for the search box enter key text"
+ },
+ "theme.SearchModal.searchBox.enterKeyHintAskAi": {
+ "message": "enter",
+ "description": "The hint for the Ask AI search box enter key text"
+ },
+ "theme.SearchModal.searchBox.searchInputLabel": {
+ "message": "Procurar",
+ "description": "The ARIA label for search input"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonText": {
+ "message": "Voltar para a pesquisa por palavra-chave",
+ "description": "The text for back to keyword search button"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonAriaLabel": {
+ "message": "Voltar para a pesquisa por palavra-chave",
+ "description": "The ARIA label for back to keyword search button"
+ },
+ "theme.SearchModal.startScreen.recentSearchesTitle": {
+ "message": "Recente",
+ "description": "The title for recent searches"
+ },
+ "theme.SearchModal.startScreen.noRecentSearchesText": {
+ "message": "Nenhuma pesquisa recente",
+ "description": "The text when there are no recent searches"
+ },
+ "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": {
+ "message": "Salvar esta pesquisa",
+ "description": "The title for save recent search button"
+ },
+ "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": {
+ "message": "Remover esta pesquisa do histórico",
+ "description": "The title for remove recent search button"
+ },
+ "theme.SearchModal.startScreen.favoriteSearchesTitle": {
+ "message": "Favorito",
+ "description": "The title for favorite searches"
+ },
+ "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": {
+ "message": "Remover esta pesquisa dos favoritos",
+ "description": "The title for remove favorite search button"
+ },
+ "theme.SearchModal.startScreen.recentConversationsTitle": {
+ "message": "Conversas recentes",
+ "description": "The title for recent conversations"
+ },
+ "theme.SearchModal.startScreen.removeRecentConversationButtonTitle": {
+ "message": "Remover esta conversa do histórico",
+ "description": "The title for remove recent conversation button"
+ },
+ "theme.SearchModal.errorScreen.titleText": {
+ "message": "Não foi possível obter resultados",
+ "description": "The title for error screen"
+ },
+ "theme.SearchModal.errorScreen.helpText": {
+ "message": "Talvez você deva verificar sua conexão de rede.",
+ "description": "The help text for error screen"
+ },
+ "theme.SearchModal.resultsScreen.askAiPlaceholder": {
+ "message": "Pergunte para a IA: ",
+ "description": "The placeholder text for Ask AI input"
+ },
+ "theme.SearchModal.askAiScreen.disclaimerText": {
+ "message": "Respostas geradas por IA podem cometer erros. Verifique.",
+ "description": "The disclaimer text for AI answers"
+ },
+ "theme.SearchModal.askAiScreen.relatedSourcesText": {
+ "message": "Resultados relacionados",
+ "description": "The text for related sources"
+ },
+ "theme.SearchModal.askAiScreen.thinkingText": {
+ "message": "Pensando...",
+ "description": "The text when AI is thinking"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonText": {
+ "message": "Copiar",
+ "description": "The text for copy button"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonCopiedText": {
+ "message": "Copiado!",
+ "description": "The text for copy button when copied"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonTitle": {
+ "message": "Copiar",
+ "description": "The title for copy button"
+ },
+ "theme.SearchModal.askAiScreen.likeButtonTitle": {
+ "message": "Gostei",
+ "description": "The title for like button"
+ },
+ "theme.SearchModal.askAiScreen.dislikeButtonTitle": {
+ "message": "Não gostei",
+ "description": "The title for dislike button"
+ },
+ "theme.SearchModal.askAiScreen.thanksForFeedbackText": {
+ "message": "Obrigado pelo seu feedback!",
+ "description": "The text for thanks for feedback"
+ },
+ "theme.SearchModal.askAiScreen.preToolCallText": {
+ "message": "Procurando...",
+ "description": "The text before tool call"
+ },
+ "theme.SearchModal.askAiScreen.duringToolCallText": {
+ "message": "Procurando por ",
+ "description": "The text during tool call"
+ },
+ "theme.SearchModal.askAiScreen.afterToolCallText": {
+ "message": "Procurou por",
+ "description": "The text after tool call"
+ },
+ "theme.SearchModal.footer.selectText": {
+ "message": "selecionar",
+ "description": "The select text for footer"
+ },
+ "theme.SearchModal.footer.submitQuestionText": {
+ "message": "Enviar pergunta",
+ "description": "The submit question text for footer"
+ },
+ "theme.SearchModal.footer.selectKeyAriaLabel": {
+ "message": "Tecla Enter",
+ "description": "The ARIA label for select key in footer"
+ },
+ "theme.SearchModal.footer.navigateText": {
+ "message": "navegar",
+ "description": "The navigate text for footer"
+ },
+ "theme.SearchModal.footer.navigateUpKeyAriaLabel": {
+ "message": "Seta para cima",
+ "description": "The ARIA label for navigate up key in footer"
+ },
+ "theme.SearchModal.footer.navigateDownKeyAriaLabel": {
+ "message": "Seta para baixo",
+ "description": "The ARIA label for navigate down key in footer"
+ },
+ "theme.SearchModal.footer.closeText": {
+ "message": "fechar",
+ "description": "The close text for footer"
+ },
+ "theme.SearchModal.footer.closeKeyAriaLabel": {
+ "message": "Tecla Esc",
+ "description": "The ARIA label for close key in footer"
+ },
+ "theme.SearchModal.footer.searchByText": {
+ "message": "Esta pesquisa utiliza",
+ "description": "The 'Powered by' text for footer"
+ },
+ "theme.SearchModal.footer.backToSearchText": {
+ "message": "Voltar para pesquisa",
+ "description": "The back to search text for footer"
+ },
+ "theme.SearchModal.noResultsScreen.noResultsText": {
+ "message": "Nenhum resultado para",
+ "description": "The text when there are no results"
+ },
+ "theme.SearchModal.noResultsScreen.suggestedQueryText": {
+ "message": "Tente procurar por",
+ "description": "The text for suggested query"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsText": {
+ "message": "Você acha que esta pesquisa deveria retornar resultados?",
+ "description": "The text for reporting missing results"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": {
+ "message": "Nos avise.",
+ "description": "The link text for reporting missing results"
+ },
+ "theme.SearchModal.placeholder": {
+ "message": "Procurar documentos",
+ "description": "The placeholder of the input of the DocSearch pop-up modal"
+ },
+ "theme.blog.post.plurals": {
+ "message": "Uma publicação|{count} publicações",
+ "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.blog.tagTitle": {
+ "message": "{nPosts} com a etiqueta \"{tagName}\"",
+ "description": "The title of the page for a blog tag"
+ },
+ "theme.blog.author.pageTitle": {
+ "message": "{authorName} - {nPosts}",
+ "description": "The title of the page for a blog author"
+ },
+ "theme.blog.authorsList.pageTitle": {
+ "message": "Autores",
+ "description": "The title of the authors page"
+ },
+ "theme.blog.authorsList.viewAll": {
+ "message": "Ver todos os autores",
+ "description": "The label of the link targeting the blog authors page"
+ },
+ "theme.blog.author.noPosts": {
+ "message": "Este autor ainda não escreveu nenhuma publicação.",
+ "description": "The text for authors with 0 blog post"
+ },
+ "theme.contentVisibility.unlistedBanner.title": {
+ "message": "Página não listada",
+ "description": "The unlisted content banner title"
+ },
+ "theme.contentVisibility.unlistedBanner.message": {
+ "message": "Esta página não está listada. Mecanismos de busca não irão indexá-la, e somente usuários que possuam o link direto poderão acessá-la",
+ "description": "The unlisted content banner message"
+ },
+ "theme.contentVisibility.draftBanner.title": {
+ "message": "Página de rascunho",
+ "description": "The draft content banner title"
+ },
+ "theme.contentVisibility.draftBanner.message": {
+ "message": "Esta página é um rascunho. Ela estará visível apenas no desenvolvimento e será excluída da compilação de produção.",
+ "description": "The draft content banner message"
+ },
+ "theme.docs.DocCard.categoryDescription.plurals": {
+ "message": "1 item|{count} itens",
+ "description": "The default description for a category card in the generated index about how many items this category includes"
+ },
+ "theme.ErrorPageContent.tryAgain": {
+ "message": "Tentar novamente",
+ "description": "The label of the button to try again rendering when the React error boundary captures an error"
+ },
+ "theme.common.skipToMainContent": {
+ "message": "Pular para o conteúdo principal",
+ "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
+ },
"theme.docs.sidebar.filterPlaceholder": {
"message": "Filtrar documentação",
"description": "Placeholder for the docs sidebar filter input"
diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-blog/options.json b/frontend/i18n/pt-BR/docusaurus-plugin-content-blog/options.json
new file mode 100644
index 000000000000..8e00984e609c
--- /dev/null
+++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-blog/options.json
@@ -0,0 +1,14 @@
+{
+ "title": {
+ "message": "Blog",
+ "description": "The title for the blog used in SEO"
+ },
+ "description": {
+ "message": "Blog",
+ "description": "The description for the blog used in SEO"
+ },
+ "sidebar.title": {
+ "message": "Publicações recentes",
+ "description": "The label for the left sidebar"
+ }
+}
diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current.json b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current.json
index 770da713d569..188bbe68ab48 100644
--- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current.json
+++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current.json
@@ -28,5 +28,9 @@
},
"sidebar.docsSidebar.category.Meta": {
"message": "Meta"
+ },
+ "version.label": {
+ "message": "Próxima",
+ "description": "The label for version current"
}
}
diff --git a/frontend/i18n/pt-BR/docusaurus-theme-classic/footer.json b/frontend/i18n/pt-BR/docusaurus-theme-classic/footer.json
index d46b48ec66d0..055a9b85e086 100644
--- a/frontend/i18n/pt-BR/docusaurus-theme-classic/footer.json
+++ b/frontend/i18n/pt-BR/docusaurus-theme-classic/footer.json
@@ -1,7 +1,7 @@
{
- "link.title.Documentations": {
+ "link.title.Documentation": {
"message": "Documentação",
- "description": "The title of the footer links column with title=Documentations in the footer"
+ "description": "The title of the footer links column with title=Documentation in the footer"
},
"link.title.Community": {
"message": "Comunidade",
@@ -62,5 +62,21 @@
"link.item.label.SA-MP": {
"message": "SA-MP",
"description": "The label of footer link with label=SA-MP linking to https://sa-mp.mp/"
+ },
+ "link.item.label.Download Launcher": {
+ "message": "Baixar Launcher",
+ "description": "The label of footer link with label=Download Launcher linking to /downloads/launcher"
+ },
+ "link.item.label.Download Server": {
+ "message": "Baixar Servidor",
+ "description": "The label of footer link with label=Download Server linking to /downloads/server"
+ },
+ "copyright": {
+ "message": "Copyright © 2026 open.mp. Feito com Docusaurus.",
+ "description": "The footer copyright"
+ },
+ "logo.alt": {
+ "message": "open.mp",
+ "description": "The alt text of footer logo"
}
}
diff --git a/frontend/i18n/pt-BR/docusaurus-theme-classic/navbar.json b/frontend/i18n/pt-BR/docusaurus-theme-classic/navbar.json
index 7d723a5d6067..3e16595718b3 100644
--- a/frontend/i18n/pt-BR/docusaurus-theme-classic/navbar.json
+++ b/frontend/i18n/pt-BR/docusaurus-theme-classic/navbar.json
@@ -26,5 +26,13 @@
"item.label.Donate": {
"message": "Doar",
"description": "Navbar item with label Donate"
+ },
+ "logo.alt": {
+ "message": "Logo do open.mp",
+ "description": "The alt text of navbar logo"
+ },
+ "item.label.Donate to us": {
+ "message": "Faça uma doação",
+ "description": "Navbar item with label Donate to us"
}
}
diff --git a/frontend/i18n/th/code.json b/frontend/i18n/th/code.json
index bb8cc7e93ea1..df3207a8da3a 100644
--- a/frontend/i18n/th/code.json
+++ b/frontend/i18n/th/code.json
@@ -406,6 +406,808 @@
"navbar.item.Donate": {
"message": "บริจาค"
},
+ "serverInfo.copied": {
+ "message": "คัดลอกแล้ว",
+ "description": "Copied server address state"
+ },
+ "serverInfo.copy": {
+ "message": "คัดลอก",
+ "description": "Copy server address state"
+ },
+ "serverInfo.gameMode": {
+ "message": "โหมดเกม",
+ "description": "Game mode label"
+ },
+ "toast.close": {
+ "message": "ปิดการแจ้งเตือน",
+ "description": "Accessible label for closing a toast notification"
+ },
+ "animations.layoutTitle": {
+ "message": "แอนิเมชัน",
+ "description": "Animations page browser title"
+ },
+ "animations.layoutDescription": {
+ "message": "ตัวดูแอนิเมชัน open.mp (SA-MP) แบบอินเทอร์แอคทีฟพร้อมวิดีโอตัวอย่าง",
+ "description": "Animations page meta description"
+ },
+ "animations.videoUnavailable": {
+ "message": "ไม่มีวิดีโอ",
+ "description": "Fallback message when an animation video fails to load"
+ },
+ "animations.code.forPlayers": {
+ "message": "// สำหรับผู้เล่น",
+ "description": "Comment in animation usage example for player animations"
+ },
+ "animations.code.forActors": {
+ "message": "// สำหรับแอคเตอร์",
+ "description": "Comment in animation usage example for actor animations"
+ },
+ "homepage.layoutDescription": {
+ "message": "ม็อดหลายผู้เล่นสำหรับ Grand Theft Auto: San Andreas ที่รองรับการทำงานย้อนหลังได้เต็มที่กับ San Andreas Multiplayer",
+ "description": "Homepage meta description"
+ },
+ "partners.note.dismissAria": {
+ "message": "ปิดหมายเหตุเกี่ยวกับพันธมิตร",
+ "description": "Accessible label for dismissing the partner note"
+ },
+ "partners.page.title": {
+ "message": "เซิร์ฟเวอร์พันธมิตร",
+ "description": "Partner servers page title"
+ },
+ "partners.page.description": {
+ "message": "รายชื่อเซิร์ฟเวอร์ San Andreas ที่ใช้ open.mp หรือ SA-MP",
+ "description": "Partner servers page description"
+ },
+ "uid.toast.copiedTitle": {
+ "message": "คัดลอกแล้ว",
+ "description": "UID copy success toast title"
+ },
+ "uid.toast.copiedMessage": {
+ "message": "คัดลอกมาโคร UID ไปยังคลิปบอร์ดแล้ว",
+ "description": "UID copy success toast message"
+ },
+ "uid.page.title": {
+ "message": "ตัวสร้าง UID",
+ "description": "UID generator page title"
+ },
+ "uid.page.description": {
+ "message": "สร้าง UID สำหรับใช้เป็นตัวระบุเฉพาะของ IComponent หรือ IExtension",
+ "description": "UID generator page description"
+ },
+ "launcherSim.join.connect": {
+ "message": "เชื่อมต่อ",
+ "description": "Launcher connect button"
+ },
+ "launcherSim.join.bannerText": {
+ "message": "เซิร์ฟเวอร์ของคุณ",
+ "description": "Sample server banner text"
+ },
+ "launcherSim.join.server": {
+ "message": "เซิร์ฟเวอร์",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.join.address": {
+ "message": "ที่อยู่",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.column.players": {
+ "message": "ผู้เล่น",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.join.nickname": {
+ "message": "ชื่อเล่น",
+ "description": "Launcher join dialog nickname label"
+ },
+ "launcherSim.join.version": {
+ "message": "เวอร์ชัน SA-MP",
+ "description": "Launcher join dialog SA-MP version label"
+ },
+ "launcherSim.tab.favorites": {
+ "message": "รายการโปรด",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.internet": {
+ "message": "อินเทอร์เน็ต",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.partners": {
+ "message": "พันธมิตร",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.recent": {
+ "message": "เข้าร่วมล่าสุด",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.nicknamePlaceholder": {
+ "message": "ชื่อเล่น...",
+ "description": "Launcher preview nickname placeholder"
+ },
+ "launcherSim.searchPlaceholder": {
+ "message": "ค้นหาชื่อโฮสต์/โหมดของเซิร์ฟเวอร์",
+ "description": "Launcher preview search placeholder"
+ },
+ "launcherSim.column.name": {
+ "message": "ชื่อ",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.ping": {
+ "message": "ปิง",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.mode": {
+ "message": "โหมด",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.menu.connect": {
+ "message": "เชื่อมต่อ",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.addToFavorites": {
+ "message": "เพิ่มในรายการโปรด",
+ "description": "Launcher preview button"
+ },
+ "launcherSim.menu.copy": {
+ "message": "คัดลอกข้อมูลเซิร์ฟเวอร์",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.column.rule": {
+ "message": "กฎ",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.value": {
+ "message": "ค่า",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.filter.title": {
+ "message": "ตัวกรอง:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.omp": {
+ "message": "เฉพาะเซิร์ฟเวอร์ open.mp",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.nonEmpty": {
+ "message": "เซิร์ฟเวอร์ที่มีผู้เล่น",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.unpassworded": {
+ "message": "เซิร์ฟเวอร์ที่ไม่มีรหัสผ่าน",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.language": {
+ "message": "ภาษา:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.notification.favorited": {
+ "message": "เพิ่มในรายการโปรดแล้ว!",
+ "description": "Launcher preview: notification"
+ },
+ "launcherSim.ariaLabel": {
+ "message": "ตัวเรียกใช้ open.mp ที่แสดงรายชื่อเซิร์ฟเวอร์ตัวอย่าง",
+ "description": "Accessible label for the launcher picture"
+ },
+ "launcherSim.column.player": {
+ "message": "ผู้เล่น",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.score": {
+ "message": "คะแนน",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.copy": {
+ "message": "คัดลอก",
+ "description": "Launcher preview: copy address"
+ },
+ "servers.add.successMessage": {
+ "message": "เพิ่ม {serverName} ในรายการรอดำเนินการแล้ว หากยังไม่ปรากฏภายใน 48 ชั่วโมง คุณสามารถติดต่อเราได้ทาง Discord!",
+ "description": "Toast message shown after submitting a server to the pending list"
+ },
+ "servers.add.successTitle": {
+ "message": "ส่งเซิร์ฟเวอร์แล้ว!",
+ "description": "Toast title shown after a server submission succeeds"
+ },
+ "servers.add.failureMessage": {
+ "message": "สถานะ {status}: {error}",
+ "description": "Toast message shown after a server submission fails"
+ },
+ "servers.add.failureTitle": {
+ "message": "ส่งไม่สำเร็จ!",
+ "description": "Toast title shown after a server submission fails"
+ },
+ "servers.add.errorMessage": {
+ "message": "เกิดข้อผิดพลาดขณะส่งเซิร์ฟเวอร์",
+ "description": "Toast message shown after an unexpected server submission error"
+ },
+ "servers.add.errorTitle": {
+ "message": "ข้อผิดพลาด",
+ "description": "Generic toast error title"
+ },
+ "servers.add.addressPlaceholder": {
+ "message": "play.example.com:7777",
+ "description": "Add server address input placeholder"
+ },
+ "servers.pages.label": {
+ "message": "หน้ารายชื่อเซิร์ฟเวอร์",
+ "description": "Accessible label for the server list pagination"
+ },
+ "servers.pages.previous": {
+ "message": "หน้าก่อนหน้า",
+ "description": "Server list previous page button"
+ },
+ "servers.pages.next": {
+ "message": "หน้าถัดไป",
+ "description": "Server list next page button"
+ },
+ "servers.sort.name": {
+ "message": "ชื่อ",
+ "description": "Sort by server name"
+ },
+ "servers.sort.mode": {
+ "message": "โหมด",
+ "description": "Sort by game mode"
+ },
+ "servers.sort.language": {
+ "message": "ภาษา",
+ "description": "Sort by language"
+ },
+ "servers.language.all": {
+ "message": "ทุกภาษา",
+ "description": "All languages filter option"
+ },
+ "servers.add.closeModal": {
+ "message": "ปิดหน้าต่างเพิ่มเซิร์ฟเวอร์",
+ "description": "Accessible label for closing the add server modal"
+ },
+ "npcCallbacksNote.message": {
+ "message": "คอลแบ็กนี้สามารถถูกเรียกโดย NPC ได้เช่นกัน",
+ "description": "Note shown on callback docs pages when NPCs can also call the callback"
+ },
+ "versionWarn.name.function": {
+ "message": "ฟังก์ชัน",
+ "description": "Default item name in a version warning"
+ },
+ "versionWarn.name.callback": {
+ "message": "คอลแบ็ก",
+ "description": "Callback item name in a version warning"
+ },
+ "versionWarn.message": {
+ "message": "{name}นี้ถูกเพิ่มใน {version} และจะไม่ทำงานในเวอร์ชันก่อนหน้า!",
+ "description": "Warning shown on scripting docs pages for APIs added in a specific server version"
+ },
+ "carousel.previous": {
+ "message": "ก่อนหน้า",
+ "description": "Carousel previous button"
+ },
+ "carousel.next": {
+ "message": "ถัดไป",
+ "description": "Carousel next button"
+ },
+ "downloads.launcher.layoutDescription": {
+ "message": "ดาวน์โหลดตัวเรียกใช้ open.mp เวอร์ชันต่าง ๆ",
+ "description": "Launcher downloads page meta description"
+ },
+ "downloads.server.layoutDescription": {
+ "message": "ดาวน์โหลดเซิร์ฟเวอร์ open.mp เวอร์ชันต่าง ๆ",
+ "description": "Server downloads page meta description"
+ },
+ "servers.page.title": {
+ "message": "เซิร์ฟเวอร์",
+ "description": "Servers page title"
+ },
+ "servers.page.description": {
+ "message": "รายชื่อเซิร์ฟเวอร์ San Andreas ที่ใช้ open.mp และ SA-MP",
+ "description": "Servers page description"
+ },
+ "downloads.release.githubTitle": {
+ "message": "ดูเวอร์ชันนี้บน GitHub",
+ "description": "Title attribute for the GitHub release link"
+ },
+ "notFound.title": {
+ "message": "ไม่พบหน้าที่ต้องการ",
+ "description": "404 page title"
+ },
+ "notFound.imageAlt": {
+ "message": "ภาพหน้าจอภารกิจรถไฟใน GTA",
+ "description": "Alt text for the 404 page image"
+ },
+ "notFound.home": {
+ "message": "หน้าแรก",
+ "description": "404 page home button"
+ },
+ "notFound.docs": {
+ "message": "เอกสารประกอบ",
+ "description": "404 page documentation button"
+ },
+ "notFound.servers": {
+ "message": "เซิร์ฟเวอร์",
+ "description": "404 page servers button"
+ },
+ "theme.blog.post.paginator.navAriaLabel": {
+ "message": "การนำทางหน้าโพสต์บล็อก",
+ "description": "The ARIA label for the blog posts pagination"
+ },
+ "theme.blog.post.paginator.newerPost": {
+ "message": "โพสต์ใหม่กว่า",
+ "description": "The blog post button label to navigate to the newer/previous post"
+ },
+ "theme.blog.post.paginator.olderPost": {
+ "message": "โพสต์เก่ากว่า",
+ "description": "The blog post button label to navigate to the older/next post"
+ },
+ "theme.tags.tagsPageLink": {
+ "message": "ดูแท็กทั้งหมด",
+ "description": "The label of the link targeting the tag list page"
+ },
+ "theme.colorToggle.ariaLabel.mode.system": {
+ "message": "โหมดตามระบบ",
+ "description": "The name for the system color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.light": {
+ "message": "โหมดสว่าง",
+ "description": "The name for the light color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.dark": {
+ "message": "โหมดมืด",
+ "description": "The name for the dark color mode"
+ },
+ "theme.colorToggle.ariaLabel": {
+ "message": "สลับระหว่างโหมดมืดและโหมดสว่าง (ปัจจุบัน: {mode})",
+ "description": "The ARIA label for the color mode toggle"
+ },
+ "theme.docs.breadcrumbs.navAriaLabel": {
+ "message": "เส้นทางนำทาง",
+ "description": "The ARIA label for the breadcrumbs"
+ },
+ "theme.docs.paginator.navAriaLabel": {
+ "message": "หน้าเอกสาร",
+ "description": "The ARIA label for the docs pagination"
+ },
+ "theme.docs.paginator.previous": {
+ "message": "ก่อนหน้า",
+ "description": "The label used to navigate to the previous doc"
+ },
+ "theme.docs.paginator.next": {
+ "message": "ถัดไป",
+ "description": "The label used to navigate to the next doc"
+ },
+ "theme.docs.tagDocListPageTitle": {
+ "message": "{nDocsTagged} \"{tagName}\"",
+ "description": "The title of the page for a docs tag"
+ },
+ "theme.docs.versionBadge.label": {
+ "message": "เวอร์ชัน: {versionLabel}"
+ },
+ "theme.docs.versions.unreleasedVersionLabel": {
+ "message": "นี่คือเอกสารที่ยังไม่เผยแพร่ของ {siteTitle} เวอร์ชัน {versionLabel}",
+ "description": "The label used to tell the user that he's browsing an unreleased doc version"
+ },
+ "theme.docs.versions.unmaintainedVersionLabel": {
+ "message": "นี่คือเอกสารของ {siteTitle} {versionLabel} ซึ่งไม่ได้รับการดูแลอย่างต่อเนื่องแล้ว",
+ "description": "The label used to tell the user that he's browsing an unmaintained doc version"
+ },
+ "theme.docs.versions.latestVersionSuggestionLabel": {
+ "message": "สำหรับเอกสารที่เป็นปัจจุบัน โปรดดู{latestVersionLink} ({versionLabel})",
+ "description": "The label used to tell the user to check the latest version"
+ },
+ "theme.docs.versions.latestVersionLinkLabel": {
+ "message": "เวอร์ชันล่าสุด",
+ "description": "The label used for the latest version suggestion link label"
+ },
+ "theme.common.editThisPage": {
+ "message": "แก้ไขหน้านี้",
+ "description": "The link label to edit the current page"
+ },
+ "theme.common.headingLinkTitle": {
+ "message": "ลิงก์ตรงไปยัง {heading}",
+ "description": "Title for link to heading"
+ },
+ "theme.lastUpdated.atDate": {
+ "message": " เมื่อ {date}",
+ "description": "The words used to describe on which date a page has been last updated"
+ },
+ "theme.lastUpdated.byUser": {
+ "message": " โดย {user}",
+ "description": "The words used to describe by who the page has been last updated"
+ },
+ "theme.lastUpdated.lastUpdatedAtBy": {
+ "message": "อัปเดตล่าสุด{atDate}{byUser}",
+ "description": "The sentence used to display when a page has been last updated, and by who"
+ },
+ "theme.navbar.mobileVersionsDropdown.label": {
+ "message": "เวอร์ชัน",
+ "description": "The label for the navbar versions dropdown on mobile view"
+ },
+ "theme.tags.tagsListLabel": {
+ "message": "แท็ก:",
+ "description": "The label alongside a tag list"
+ },
+ "theme.admonition.warning": {
+ "message": "คำเตือน",
+ "description": "The default label used for the Warning admonition (:::warning)"
+ },
+ "theme.AnnouncementBar.closeButtonAriaLabel": {
+ "message": "ปิด",
+ "description": "The ARIA label for close button of announcement bar"
+ },
+ "theme.blog.sidebar.navAriaLabel": {
+ "message": "การนำทางโพสต์บล็อกล่าสุด",
+ "description": "The ARIA label for recent posts in the blog sidebar"
+ },
+ "theme.DocSidebarItem.expandCategoryAriaLabel": {
+ "message": "ขยายหมวดหมู่ '{label}' ในแถบด้านข้าง",
+ "description": "The ARIA label to expand the sidebar category"
+ },
+ "theme.DocSidebarItem.collapseCategoryAriaLabel": {
+ "message": "ยุบหมวดหมู่ '{label}' ในแถบด้านข้าง",
+ "description": "The ARIA label to collapse the sidebar category"
+ },
+ "theme.IconExternalLink.ariaLabel": {
+ "message": "(เปิดในแท็บใหม่)",
+ "description": "The ARIA label for the external link icon"
+ },
+ "theme.NavBar.navAriaLabel": {
+ "message": "หลัก",
+ "description": "The ARIA label for the main navigation"
+ },
+ "theme.navbar.mobileLanguageDropdown.label": {
+ "message": "ภาษา",
+ "description": "The label for the mobile language switcher dropdown"
+ },
+ "theme.TOCCollapsible.toggleButtonLabel": {
+ "message": "ในหน้านี้",
+ "description": "The label used by the button on the collapsible TOC component"
+ },
+ "theme.blog.post.readMore": {
+ "message": "อ่านเพิ่มเติม",
+ "description": "The label used in blog post item excerpts to link to full blog posts"
+ },
+ "theme.blog.post.readMoreLabel": {
+ "message": "อ่านเพิ่มเติมเกี่ยวกับ {title}",
+ "description": "The ARIA label for the link to full blog posts from excerpts"
+ },
+ "theme.CodeBlock.copy": {
+ "message": "คัดลอก",
+ "description": "The copy button label on code blocks"
+ },
+ "theme.CodeBlock.copied": {
+ "message": "คัดลอกแล้ว",
+ "description": "The copied button label on code blocks"
+ },
+ "theme.CodeBlock.copyButtonAriaLabel": {
+ "message": "คัดลอกโค้ดไปยังคลิปบอร์ด",
+ "description": "The ARIA label for copy code blocks button"
+ },
+ "theme.CodeBlock.wordWrapToggle": {
+ "message": "สลับการตัดบรรทัด",
+ "description": "The title attribute for toggle word wrapping button of code block lines"
+ },
+ "theme.docs.breadcrumbs.home": {
+ "message": "หน้าแรก",
+ "description": "The ARIA label for the home page in the breadcrumbs"
+ },
+ "theme.docs.sidebar.collapseButtonTitle": {
+ "message": "ยุบแถบด้านข้าง",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.collapseButtonAriaLabel": {
+ "message": "ยุบแถบด้านข้าง",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.navAriaLabel": {
+ "message": "แถบด้านข้างเอกสาร",
+ "description": "The ARIA label for the sidebar navigation"
+ },
+ "theme.docs.sidebar.closeSidebarButtonAriaLabel": {
+ "message": "ปิดแถบนำทาง",
+ "description": "The ARIA label for close button of mobile sidebar"
+ },
+ "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
+ "message": "← กลับไปที่เมนูหลัก",
+ "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
+ },
+ "theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
+ "message": "สลับแถบนำทาง",
+ "description": "The ARIA label for hamburger menu button of mobile navigation"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
+ "message": "ขยายเมนูดรอปดาวน์",
+ "description": "The ARIA label of the button to expand the mobile dropdown navbar item"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
+ "message": "ยุบเมนูดรอปดาวน์",
+ "description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
+ },
+ "theme.docs.sidebar.expandButtonTitle": {
+ "message": "ขยายแถบด้านข้าง",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.docs.sidebar.expandButtonAriaLabel": {
+ "message": "ขยายแถบด้านข้าง",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.SearchBar.seeAll": {
+ "message": "ดูผลลัพธ์ทั้งหมด {count} รายการ"
+ },
+ "theme.SearchPage.documentsFound.plurals": {
+ "message": "พบเอกสาร {count} รายการ|พบเอกสาร {count} รายการ",
+ "description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.SearchPage.existingResultsTitle": {
+ "message": "ผลการค้นหาสำหรับ \"{query}\"",
+ "description": "The search page title for non-empty query"
+ },
+ "theme.SearchPage.emptyResultsTitle": {
+ "message": "ค้นหาในเอกสาร",
+ "description": "The search page title for empty query"
+ },
+ "theme.SearchPage.inputPlaceholder": {
+ "message": "พิมพ์คำค้นหาที่นี่",
+ "description": "The placeholder for search page input"
+ },
+ "theme.SearchPage.inputLabel": {
+ "message": "ค้นหา",
+ "description": "The ARIA label for search page input"
+ },
+ "theme.SearchPage.algoliaLabel": {
+ "message": "ขับเคลื่อนโดย Algolia",
+ "description": "The description label for Algolia mention"
+ },
+ "theme.SearchPage.noResultsText": {
+ "message": "ไม่พบผลลัพธ์",
+ "description": "The paragraph for empty search result"
+ },
+ "theme.SearchPage.fetchingNewResults": {
+ "message": "กำลังโหลดผลลัพธ์ใหม่...",
+ "description": "The paragraph for fetching new search results"
+ },
+ "theme.SearchBar.label": {
+ "message": "ค้นหา",
+ "description": "The ARIA label and placeholder for search button"
+ },
+ "theme.SearchModal.searchBox.resetButtonTitle": {
+ "message": "ล้างคำค้นหา",
+ "description": "The label and ARIA label for search box reset button"
+ },
+ "theme.SearchModal.searchBox.cancelButtonText": {
+ "message": "ยกเลิก",
+ "description": "The label and ARIA label for search box cancel button"
+ },
+ "theme.SearchModal.searchBox.placeholderText": {
+ "message": "ค้นหาเอกสาร",
+ "description": "The placeholder text for the main search input field"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAi": {
+ "message": "ถามคำถามอื่น...",
+ "description": "The placeholder text when in AI question mode"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAiStreaming": {
+ "message": "กำลังตอบ...",
+ "description": "The placeholder text for search box when AI is streaming an answer"
+ },
+ "theme.SearchModal.searchBox.enterKeyHint": {
+ "message": "ค้นหา",
+ "description": "The hint for the search box enter key text"
+ },
+ "theme.SearchModal.searchBox.enterKeyHintAskAi": {
+ "message": "ส่ง",
+ "description": "The hint for the Ask AI search box enter key text"
+ },
+ "theme.SearchModal.searchBox.searchInputLabel": {
+ "message": "ค้นหา",
+ "description": "The ARIA label for search input"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonText": {
+ "message": "กลับไปที่การค้นหาด้วยคีย์เวิร์ด",
+ "description": "The text for back to keyword search button"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonAriaLabel": {
+ "message": "กลับไปที่การค้นหาด้วยคีย์เวิร์ด",
+ "description": "The ARIA label for back to keyword search button"
+ },
+ "theme.SearchModal.startScreen.recentSearchesTitle": {
+ "message": "ล่าสุด",
+ "description": "The title for recent searches"
+ },
+ "theme.SearchModal.startScreen.noRecentSearchesText": {
+ "message": "ไม่มีการค้นหาล่าสุด",
+ "description": "The text when there are no recent searches"
+ },
+ "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": {
+ "message": "บันทึกการค้นหานี้",
+ "description": "The title for save recent search button"
+ },
+ "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": {
+ "message": "ลบการค้นหานี้ออกจากประวัติ",
+ "description": "The title for remove recent search button"
+ },
+ "theme.SearchModal.startScreen.favoriteSearchesTitle": {
+ "message": "รายการโปรด",
+ "description": "The title for favorite searches"
+ },
+ "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": {
+ "message": "ลบการค้นหานี้ออกจากรายการโปรด",
+ "description": "The title for remove favorite search button"
+ },
+ "theme.SearchModal.startScreen.recentConversationsTitle": {
+ "message": "บทสนทนาล่าสุด",
+ "description": "The title for recent conversations"
+ },
+ "theme.SearchModal.startScreen.removeRecentConversationButtonTitle": {
+ "message": "ลบบทสนทนานี้ออกจากประวัติ",
+ "description": "The title for remove recent conversation button"
+ },
+ "theme.SearchModal.errorScreen.titleText": {
+ "message": "ไม่สามารถโหลดผลลัพธ์ได้",
+ "description": "The title for error screen"
+ },
+ "theme.SearchModal.errorScreen.helpText": {
+ "message": "คุณอาจต้องตรวจสอบการเชื่อมต่อเครือข่ายของคุณ",
+ "description": "The help text for error screen"
+ },
+ "theme.SearchModal.resultsScreen.askAiPlaceholder": {
+ "message": "ถาม AI: ",
+ "description": "The placeholder text for Ask AI input"
+ },
+ "theme.SearchModal.askAiScreen.disclaimerText": {
+ "message": "คำตอบสร้างขึ้นโดย AI ซึ่งอาจผิดพลาดได้ โปรดตรวจสอบคำตอบ",
+ "description": "The disclaimer text for AI answers"
+ },
+ "theme.SearchModal.askAiScreen.relatedSourcesText": {
+ "message": "แหล่งข้อมูลที่เกี่ยวข้อง",
+ "description": "The text for related sources"
+ },
+ "theme.SearchModal.askAiScreen.thinkingText": {
+ "message": "กำลังคิด...",
+ "description": "The text when AI is thinking"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonText": {
+ "message": "คัดลอก",
+ "description": "The text for copy button"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonCopiedText": {
+ "message": "คัดลอกแล้ว!",
+ "description": "The text for copy button when copied"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonTitle": {
+ "message": "คัดลอก",
+ "description": "The title for copy button"
+ },
+ "theme.SearchModal.askAiScreen.likeButtonTitle": {
+ "message": "ถูกใจ",
+ "description": "The title for like button"
+ },
+ "theme.SearchModal.askAiScreen.dislikeButtonTitle": {
+ "message": "ไม่ถูกใจ",
+ "description": "The title for dislike button"
+ },
+ "theme.SearchModal.askAiScreen.thanksForFeedbackText": {
+ "message": "ขอบคุณสำหรับความคิดเห็นของคุณ!",
+ "description": "The text for thanks for feedback"
+ },
+ "theme.SearchModal.askAiScreen.preToolCallText": {
+ "message": "กำลังค้นหา...",
+ "description": "The text before tool call"
+ },
+ "theme.SearchModal.askAiScreen.duringToolCallText": {
+ "message": "กำลังค้นหา ",
+ "description": "The text during tool call"
+ },
+ "theme.SearchModal.askAiScreen.afterToolCallText": {
+ "message": "ค้นหาแล้ว",
+ "description": "The text after tool call"
+ },
+ "theme.SearchModal.footer.selectText": {
+ "message": "เลือก",
+ "description": "The select text for footer"
+ },
+ "theme.SearchModal.footer.submitQuestionText": {
+ "message": "ส่งคำถาม",
+ "description": "The submit question text for footer"
+ },
+ "theme.SearchModal.footer.selectKeyAriaLabel": {
+ "message": "ปุ่ม Enter",
+ "description": "The ARIA label for select key in footer"
+ },
+ "theme.SearchModal.footer.navigateText": {
+ "message": "เลื่อน",
+ "description": "The navigate text for footer"
+ },
+ "theme.SearchModal.footer.navigateUpKeyAriaLabel": {
+ "message": "ลูกศรขึ้น",
+ "description": "The ARIA label for navigate up key in footer"
+ },
+ "theme.SearchModal.footer.navigateDownKeyAriaLabel": {
+ "message": "ลูกศรลง",
+ "description": "The ARIA label for navigate down key in footer"
+ },
+ "theme.SearchModal.footer.closeText": {
+ "message": "ปิด",
+ "description": "The close text for footer"
+ },
+ "theme.SearchModal.footer.closeKeyAriaLabel": {
+ "message": "ปุ่ม Escape",
+ "description": "The ARIA label for close key in footer"
+ },
+ "theme.SearchModal.footer.searchByText": {
+ "message": "ขับเคลื่อนโดย",
+ "description": "The 'Powered by' text for footer"
+ },
+ "theme.SearchModal.footer.backToSearchText": {
+ "message": "กลับไปที่การค้นหา",
+ "description": "The back to search text for footer"
+ },
+ "theme.SearchModal.noResultsScreen.noResultsText": {
+ "message": "ไม่พบผลลัพธ์สำหรับ",
+ "description": "The text when there are no results"
+ },
+ "theme.SearchModal.noResultsScreen.suggestedQueryText": {
+ "message": "ลองค้นหา",
+ "description": "The text for suggested query"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsText": {
+ "message": "คิดว่าคำค้นหานี้ควรมีผลลัพธ์ใช่ไหม?",
+ "description": "The text for reporting missing results"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": {
+ "message": "แจ้งให้เราทราบ",
+ "description": "The link text for reporting missing results"
+ },
+ "theme.SearchModal.placeholder": {
+ "message": "ค้นหาเอกสาร",
+ "description": "The placeholder of the input of the DocSearch pop-up modal"
+ },
+ "theme.blog.post.plurals": {
+ "message": "{count} โพสต์|{count} โพสต์",
+ "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.blog.tagTitle": {
+ "message": "{nPosts} ที่มีแท็ก \"{tagName}\"",
+ "description": "The title of the page for a blog tag"
+ },
+ "theme.blog.author.pageTitle": {
+ "message": "{authorName} - {nPosts}",
+ "description": "The title of the page for a blog author"
+ },
+ "theme.blog.authorsList.pageTitle": {
+ "message": "ผู้เขียน",
+ "description": "The title of the authors page"
+ },
+ "theme.blog.authorsList.viewAll": {
+ "message": "ดูผู้เขียนทั้งหมด",
+ "description": "The label of the link targeting the blog authors page"
+ },
+ "theme.blog.author.noPosts": {
+ "message": "ผู้เขียนคนนี้ยังไม่ได้เขียนโพสต์ใด ๆ",
+ "description": "The text for authors with 0 blog post"
+ },
+ "theme.contentVisibility.unlistedBanner.title": {
+ "message": "หน้าที่ไม่แสดงในรายการ",
+ "description": "The unlisted content banner title"
+ },
+ "theme.contentVisibility.unlistedBanner.message": {
+ "message": "หน้านี้ไม่แสดงในรายการ เครื่องมือค้นหาจะไม่จัดทำดัชนี และเฉพาะผู้ที่มีลิงก์โดยตรงเท่านั้นที่เข้าถึงได้",
+ "description": "The unlisted content banner message"
+ },
+ "theme.contentVisibility.draftBanner.title": {
+ "message": "หน้าฉบับร่าง",
+ "description": "The draft content banner title"
+ },
+ "theme.contentVisibility.draftBanner.message": {
+ "message": "หน้านี้เป็นฉบับร่าง จะแสดงเฉพาะในโหมดพัฒนาและจะไม่ถูกรวมในบิลด์สำหรับใช้งานจริง",
+ "description": "The draft content banner message"
+ },
+ "theme.docs.DocCard.categoryDescription.plurals": {
+ "message": "{count} รายการ|{count} รายการ",
+ "description": "The default description for a category card in the generated index about how many items this category includes"
+ },
+ "theme.ErrorPageContent.tryAgain": {
+ "message": "ลองอีกครั้ง",
+ "description": "The label of the button to try again rendering when the React error boundary captures an error"
+ },
+ "theme.common.skipToMainContent": {
+ "message": "ข้ามไปยังเนื้อหาหลัก",
+ "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
+ },
"theme.docs.sidebar.filterPlaceholder": {
"message": "กรองเอกสาร",
"description": "Placeholder for the docs sidebar filter input"
diff --git a/frontend/i18n/th/docusaurus-plugin-content-blog/options.json b/frontend/i18n/th/docusaurus-plugin-content-blog/options.json
new file mode 100644
index 000000000000..882eef6fd8f4
--- /dev/null
+++ b/frontend/i18n/th/docusaurus-plugin-content-blog/options.json
@@ -0,0 +1,14 @@
+{
+ "title": {
+ "message": "บล็อก",
+ "description": "The title for the blog used in SEO"
+ },
+ "description": {
+ "message": "บล็อก",
+ "description": "The description for the blog used in SEO"
+ },
+ "sidebar.title": {
+ "message": "โพสต์ล่าสุด",
+ "description": "The label for the left sidebar"
+ }
+}
diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current.json b/frontend/i18n/th/docusaurus-plugin-content-docs/current.json
index 150ddbd31ecd..b4a1f728a49e 100644
--- a/frontend/i18n/th/docusaurus-plugin-content-docs/current.json
+++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current.json
@@ -28,5 +28,9 @@
},
"sidebar.docsSidebar.category.Meta": {
"message": "เมตา"
+ },
+ "version.label": {
+ "message": "ถัดไป",
+ "description": "The label for version current"
}
}
diff --git a/frontend/i18n/th/docusaurus-theme-classic/footer.json b/frontend/i18n/th/docusaurus-theme-classic/footer.json
new file mode 100644
index 000000000000..3c04f2243c9c
--- /dev/null
+++ b/frontend/i18n/th/docusaurus-theme-classic/footer.json
@@ -0,0 +1,82 @@
+{
+ "link.title.Documentation": {
+ "message": "เอกสารประกอบ",
+ "description": "The title of the footer links column with title=Documentation in the footer"
+ },
+ "link.title.Community": {
+ "message": "ชุมชน",
+ "description": "The title of the footer links column with title=Community in the footer"
+ },
+ "link.title.More": {
+ "message": "เพิ่มเติม",
+ "description": "The title of the footer links column with title=More in the footer"
+ },
+ "link.item.label.Introduction": {
+ "message": "บทนำ",
+ "description": "The label of footer link with label=Introduction linking to docs"
+ },
+ "link.item.label.open.mp Migration": {
+ "message": "การย้ายมาใช้ open.mp",
+ "description": "The label of footer link with label=open.mp Migration linking to docs/server/Installation"
+ },
+ "link.item.label.config.json": {
+ "message": "config.json",
+ "description": "The label of footer link with label=config.json linking to docs/server/config.json"
+ },
+ "link.item.label.Discord": {
+ "message": "Discord",
+ "description": "The label of footer link with label=Discord linking to https://discord.gg/samp"
+ },
+ "link.item.label.GitHub": {
+ "message": "GitHub",
+ "description": "The label of footer link with label=GitHub linking to https://github.com/openmultiplayer/open.mp"
+ },
+ "link.item.label.Donate": {
+ "message": "บริจาค",
+ "description": "The label of footer link with label=Donate linking to https://opencollective.com/openmultiplayer"
+ },
+ "link.item.label.YouTube": {
+ "message": "YouTube",
+ "description": "The label of footer link with label=YouTube linking to https://youtube.com/openmultiplayer"
+ },
+ "link.item.label.X": {
+ "message": "X",
+ "description": "The label of footer link with label=X linking to https://x.com/openmultiplayer"
+ },
+ "link.item.label.Download Launcher": {
+ "message": "ดาวน์โหลดตัวเรียกใช้",
+ "description": "The label of footer link with label=Download Launcher linking to /downloads/launcher"
+ },
+ "link.item.label.Download Server": {
+ "message": "ดาวน์โหลดเซิร์ฟเวอร์",
+ "description": "The label of footer link with label=Download Server linking to /downloads/server"
+ },
+ "link.item.label.Servers": {
+ "message": "เซิร์ฟเวอร์",
+ "description": "The label of footer link with label=Servers linking to /servers"
+ },
+ "link.item.label.Blog": {
+ "message": "บล็อก",
+ "description": "The label of footer link with label=Blog linking to /blog"
+ },
+ "link.item.label.Animations": {
+ "message": "แอนิเมชัน",
+ "description": "The label of footer link with label=Animations linking to /animations"
+ },
+ "link.item.label.UID Generator": {
+ "message": "ตัวสร้าง UID",
+ "description": "The label of footer link with label=UID Generator linking to /uid"
+ },
+ "link.item.label.SA-MP": {
+ "message": "SA-MP",
+ "description": "The label of footer link with label=SA-MP linking to https://sa-mp.mp/"
+ },
+ "copyright": {
+ "message": "ลิขสิทธิ์ © 2026 open.mp สร้างด้วย Docusaurus",
+ "description": "The footer copyright"
+ },
+ "logo.alt": {
+ "message": "open.mp",
+ "description": "The alt text of footer logo"
+ }
+}
diff --git a/frontend/i18n/th/docusaurus-theme-classic/navbar.json b/frontend/i18n/th/docusaurus-theme-classic/navbar.json
new file mode 100644
index 000000000000..4e5d01e60b01
--- /dev/null
+++ b/frontend/i18n/th/docusaurus-theme-classic/navbar.json
@@ -0,0 +1,34 @@
+{
+ "title": {
+ "message": "Open Multiplayer",
+ "description": "The title in the navbar"
+ },
+ "logo.alt": {
+ "message": "โลโก้ open.mp",
+ "description": "The alt text of navbar logo"
+ },
+ "item.label.Docs": {
+ "message": "เอกสาร",
+ "description": "Navbar item with label Docs"
+ },
+ "item.label.Blog": {
+ "message": "บล็อก",
+ "description": "Navbar item with label Blog"
+ },
+ "item.label.Forums": {
+ "message": "ฟอรัม",
+ "description": "Navbar item with label Forums"
+ },
+ "item.label.Servers": {
+ "message": "เซิร์ฟเวอร์",
+ "description": "Navbar item with label Servers"
+ },
+ "item.label.Partners": {
+ "message": "พันธมิตร",
+ "description": "Navbar item with label Partners"
+ },
+ "item.label.Donate to us": {
+ "message": "บริจาคให้เรา",
+ "description": "Navbar item with label Donate to us"
+ }
+}
diff --git a/frontend/i18n/tr/code.json b/frontend/i18n/tr/code.json
index b556f2f433df..0742fb47e7be 100644
--- a/frontend/i18n/tr/code.json
+++ b/frontend/i18n/tr/code.json
@@ -355,6 +355,872 @@
"navbar.item.Donate": {
"message": "Bağış Yap"
},
+ "serverInfo.copied": {
+ "message": "Kopyalandı",
+ "description": "Copied server address state"
+ },
+ "serverInfo.copy": {
+ "message": "Kopyala",
+ "description": "Copy server address state"
+ },
+ "serverInfo.gameMode": {
+ "message": "Oyun Modu",
+ "description": "Game mode label"
+ },
+ "toast.close": {
+ "message": "Bildirimi kapat",
+ "description": "Accessible label for closing a toast notification"
+ },
+ "animations.layoutTitle": {
+ "message": "Animasyonlar",
+ "description": "Animations page browser title"
+ },
+ "animations.layoutDescription": {
+ "message": "Video önizlemeli etkileşimli open.mp (SA-MP) animasyon görüntüleyici",
+ "description": "Animations page meta description"
+ },
+ "animations.videoUnavailable": {
+ "message": "Video mevcut değil",
+ "description": "Fallback message when an animation video fails to load"
+ },
+ "animations.code.forPlayers": {
+ "message": "// Oyuncular için",
+ "description": "Comment in animation usage example for player animations"
+ },
+ "animations.code.forActors": {
+ "message": "// Aktörler için",
+ "description": "Comment in animation usage example for actor animations"
+ },
+ "homepage.layoutDescription": {
+ "message": "Grand Theft Auto: San Andreas için San Andreas Multiplayer ile tamamen geriye dönük uyumlu bir çok oyunculu mod",
+ "description": "Homepage meta description"
+ },
+ "partners.note.dismissAria": {
+ "message": "Ortaklık notunu kapat",
+ "description": "Accessible label for dismissing the partner note"
+ },
+ "partners.page.title": {
+ "message": "Partner Sunucular",
+ "description": "Partner servers page title"
+ },
+ "partners.page.description": {
+ "message": "open.mp veya SA-MP kullanan San Andreas sunucularının listesi",
+ "description": "Partner servers page description"
+ },
+ "uid.toast.copiedTitle": {
+ "message": "Kopyalandı",
+ "description": "UID copy success toast title"
+ },
+ "uid.toast.copiedMessage": {
+ "message": "UID makrosu panoya kopyalandı.",
+ "description": "UID copy success toast message"
+ },
+ "uid.page.title": {
+ "message": "UID Oluşturucu",
+ "description": "UID generator page title"
+ },
+ "uid.page.description": {
+ "message": "IComponent veya IExtension benzersiz tanımlayıcılarında kullanmak için UID oluşturun",
+ "description": "UID generator page description"
+ },
+ "launcherSim.join.connect": {
+ "message": "Bağlan",
+ "description": "Launcher connect button"
+ },
+ "launcherSim.join.bannerText": {
+ "message": "Sunucunuz",
+ "description": "Sample server banner text"
+ },
+ "launcherSim.join.server": {
+ "message": "Sunucu",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.join.address": {
+ "message": "Adres",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.column.players": {
+ "message": "Oyuncular",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.join.nickname": {
+ "message": "Takma Ad",
+ "description": "Launcher join dialog nickname label"
+ },
+ "launcherSim.join.version": {
+ "message": "SA-MP Sürümü",
+ "description": "Launcher join dialog SA-MP version label"
+ },
+ "launcherSim.tab.favorites": {
+ "message": "Favoriler",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.internet": {
+ "message": "İnternet",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.partners": {
+ "message": "Partnerler",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.recent": {
+ "message": "Son Katılınanlar",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.nicknamePlaceholder": {
+ "message": "Takma ad...",
+ "description": "Launcher preview nickname placeholder"
+ },
+ "launcherSim.searchPlaceholder": {
+ "message": "Sunucu adı/modu ara",
+ "description": "Launcher preview search placeholder"
+ },
+ "launcherSim.column.name": {
+ "message": "İsim",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.ping": {
+ "message": "Ping",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.mode": {
+ "message": "Mod",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.menu.connect": {
+ "message": "Bağlan",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.addToFavorites": {
+ "message": "Favorilere Ekle",
+ "description": "Launcher preview button"
+ },
+ "launcherSim.menu.copy": {
+ "message": "Sunucu Bilgisini Kopyala",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.column.rule": {
+ "message": "Kural",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.value": {
+ "message": "Değer",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.filter.title": {
+ "message": "Filtreler:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.omp": {
+ "message": "Yalnızca open.mp sunucuları",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.nonEmpty": {
+ "message": "Boş Olmayan Sunucular",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.unpassworded": {
+ "message": "Şifresiz Sunucular",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.language": {
+ "message": "Dil:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.notification.favorited": {
+ "message": "Favorilere Eklendi!",
+ "description": "Launcher preview: notification"
+ },
+ "launcherSim.ariaLabel": {
+ "message": "Örnek sunucu listesini gösteren open.mp başlatıcısı",
+ "description": "Accessible label for the launcher picture"
+ },
+ "launcherSim.column.player": {
+ "message": "Oyuncu",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.score": {
+ "message": "Skor",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.copy": {
+ "message": "KOPYALA",
+ "description": "Launcher preview: copy address"
+ },
+ "servers.add.successMessage": {
+ "message": "{serverName} bekleme listemize eklendi. En fazla 48 saat içinde listede görünmezse bize Discord üzerinden ulaşabilirsiniz!",
+ "description": "Toast message shown after submitting a server to the pending list"
+ },
+ "servers.add.successTitle": {
+ "message": "Sunucu Gönderildi!",
+ "description": "Toast title shown after a server submission succeeds"
+ },
+ "servers.add.failureMessage": {
+ "message": "Durum {status}: {error}",
+ "description": "Toast message shown after a server submission fails"
+ },
+ "servers.add.failureTitle": {
+ "message": "Gönderim başarısız!",
+ "description": "Toast title shown after a server submission fails"
+ },
+ "servers.add.errorMessage": {
+ "message": "Sunucu gönderilirken bir hata oluştu",
+ "description": "Toast message shown after an unexpected server submission error"
+ },
+ "servers.add.errorTitle": {
+ "message": "Hata",
+ "description": "Generic toast error title"
+ },
+ "servers.add.addressPlaceholder": {
+ "message": "play.example.com:7777",
+ "description": "Add server address input placeholder"
+ },
+ "servers.pages.label": {
+ "message": "Sunucu listesi sayfaları",
+ "description": "Accessible label for the server list pagination"
+ },
+ "servers.pages.previous": {
+ "message": "Önceki sayfa",
+ "description": "Server list previous page button"
+ },
+ "servers.pages.next": {
+ "message": "Sonraki sayfa",
+ "description": "Server list next page button"
+ },
+ "servers.sort.name": {
+ "message": "İsim",
+ "description": "Sort by server name"
+ },
+ "servers.sort.mode": {
+ "message": "Mod",
+ "description": "Sort by game mode"
+ },
+ "servers.sort.language": {
+ "message": "Dil",
+ "description": "Sort by language"
+ },
+ "servers.language.all": {
+ "message": "Tüm diller",
+ "description": "All languages filter option"
+ },
+ "servers.add.closeModal": {
+ "message": "Sunucu ekleme penceresini kapat",
+ "description": "Accessible label for closing the add server modal"
+ },
+ "npcCallbacksNote.message": {
+ "message": "Bu callback NPC'ler tarafından da çağrılabilir.",
+ "description": "Note shown on callback docs pages when NPCs can also call the callback"
+ },
+ "versionWarn.name.function": {
+ "message": "fonksiyon",
+ "description": "Default item name in a version warning"
+ },
+ "versionWarn.name.callback": {
+ "message": "callback",
+ "description": "Callback item name in a version warning"
+ },
+ "versionWarn.message": {
+ "message": "Bu {name} {version} sürümünde eklendi ve önceki sürümlerde çalışmaz!",
+ "description": "Warning shown on scripting docs pages for APIs added in a specific server version"
+ },
+ "carousel.previous": {
+ "message": "Önceki",
+ "description": "Carousel previous button"
+ },
+ "carousel.next": {
+ "message": "Sonraki",
+ "description": "Carousel next button"
+ },
+ "downloads.latestBadge": {
+ "message": "EN YENİ",
+ "description": "Badge for latest release"
+ },
+ "downloads.releaseDate": {
+ "message": "Yayın tarihi: {date}",
+ "description": "Release date label"
+ },
+ "downloads.release.highlights": {
+ "message": "Öne Çıkanlar",
+ "description": "Release highlights heading"
+ },
+ "downloads.release.viewChangelog": {
+ "message": "Tüm değişiklik günlüğünü görüntüle",
+ "description": "Expandable changelog summary"
+ },
+ "downloads.release.viewOnGitHub": {
+ "message": "Sürümü GitHub'da görüntüle",
+ "description": "Fallback button per release"
+ },
+ "downloads.release.githubTitle": {
+ "message": "Sürümü GitHub'da görüntüle",
+ "description": "Title attribute for the GitHub release link"
+ },
+ "downloads.release.github": {
+ "message": "GitHub",
+ "description": "Link to release page on GitHub"
+ },
+ "downloads.release.dynSslNote": {
+ "message": "* DynSSL sürümü, Linux dağıtımınızda libssl kurulu olmasını gerektirir.",
+ "description": "Note about DynSSL version requiring libssl"
+ },
+ "downloads.hideOlderReleases": {
+ "message": "Eski sürümleri gizle",
+ "description": "Button to hide older releases"
+ },
+ "downloads.showOlderReleases": {
+ "message": "{count} eski sürümü gör",
+ "description": "Button to show older releases"
+ },
+ "downloads.opensourceTrust": {
+ "message": "Her sürüm açık kaynaktır. Kaynaktan derleyin veya doğrudan GitHub'dan indirin.",
+ "description": "Open source trust message for downloads pages"
+ },
+ "downloads.downloadFromGithub": {
+ "message": "GitHub'dan İndir",
+ "description": "Button label to open GitHub releases page"
+ },
+ "downloads.launcher.pageTitle": {
+ "message": "open.mp Başlatıcı",
+ "description": "Launcher downloads page title"
+ },
+ "downloads.launcher.layoutDescription": {
+ "message": "open.mp başlatıcı sürümlerini indirin",
+ "description": "Launcher downloads page meta description"
+ },
+ "downloads.launcher.pageSubtitle": {
+ "message": "GTA San Andreas'ı open.mp ve SA-MP sunucularında çok oyunculu oynayın.",
+ "description": "Launcher downloads page subtitle"
+ },
+ "downloads.server.pageTitle": {
+ "message": "open.mp Sunucusu",
+ "description": "Server downloads page title"
+ },
+ "downloads.server.layoutDescription": {
+ "message": "open.mp sunucu sürümlerini indirin",
+ "description": "Server downloads page meta description"
+ },
+ "downloads.server.pageSubtitle": {
+ "message": "Kendi GTA San Andreas çok oyunculu sunucunuzu barındırın.",
+ "description": "Server downloads page subtitle"
+ },
+ "servers.page.title": {
+ "message": "Sunucular",
+ "description": "Servers page title"
+ },
+ "servers.page.description": {
+ "message": "open.mp ve SA-MP kullanan San Andreas sunucularının listesi",
+ "description": "Servers page description"
+ },
+ "notFound.title": {
+ "message": "Sayfa Bulunamadı",
+ "description": "404 page title"
+ },
+ "notFound.imageAlt": {
+ "message": "GTA tren görevi ekran görüntüsü",
+ "description": "Alt text for the 404 page image"
+ },
+ "notFound.home": {
+ "message": "Ana Sayfa",
+ "description": "404 page home button"
+ },
+ "notFound.docs": {
+ "message": "Dokümantasyon",
+ "description": "404 page documentation button"
+ },
+ "notFound.servers": {
+ "message": "Sunucular",
+ "description": "404 page servers button"
+ },
+ "theme.blog.post.paginator.navAriaLabel": {
+ "message": "Blog gönderi sayfası navigasyonu",
+ "description": "The ARIA label for the blog posts pagination"
+ },
+ "theme.blog.post.paginator.newerPost": {
+ "message": "Daha Yeni Gönderi",
+ "description": "The blog post button label to navigate to the newer/previous post"
+ },
+ "theme.blog.post.paginator.olderPost": {
+ "message": "Daha Eski Gönderi",
+ "description": "The blog post button label to navigate to the older/next post"
+ },
+ "theme.tags.tagsPageLink": {
+ "message": "Tüm Etiketleri Görüntüle",
+ "description": "The label of the link targeting the tag list page"
+ },
+ "theme.colorToggle.ariaLabel.mode.system": {
+ "message": "Sistem modu",
+ "description": "The name for the system color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.light": {
+ "message": "Aydınlık mod",
+ "description": "The name for the light color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.dark": {
+ "message": "Karanlık mod",
+ "description": "The name for the dark color mode"
+ },
+ "theme.colorToggle.ariaLabel": {
+ "message": "Karanlık ve aydınlık mod arasında geçiş yapın (şu anda {mode})",
+ "description": "The ARIA label for the color mode toggle"
+ },
+ "theme.docs.breadcrumbs.navAriaLabel": {
+ "message": "Gezinti yolu",
+ "description": "The ARIA label for the breadcrumbs"
+ },
+ "theme.docs.paginator.navAriaLabel": {
+ "message": "Dokümanlar sayfası",
+ "description": "The ARIA label for the docs pagination"
+ },
+ "theme.docs.paginator.previous": {
+ "message": "Önceki",
+ "description": "The label used to navigate to the previous doc"
+ },
+ "theme.docs.paginator.next": {
+ "message": "Sonraki",
+ "description": "The label used to navigate to the next doc"
+ },
+ "theme.docs.tagDocListPageTitle.nDocsTagged": {
+ "message": "Bir doküman etiketlendi|{count} doküman etiketlendi",
+ "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.docs.tagDocListPageTitle": {
+ "message": "\"{tagName}\" ile etiketlenmiş {nDocsTagged}",
+ "description": "The title of the page for a docs tag"
+ },
+ "theme.docs.versionBadge.label": {
+ "message": "Versiyon: {versionLabel}"
+ },
+ "theme.docs.versions.unreleasedVersionLabel": {
+ "message": "Bu, {siteTitle} {versionLabel} sürümü için yayınlanmamış dokümantasyondur.",
+ "description": "The label used to tell the user that he's browsing an unreleased doc version"
+ },
+ "theme.docs.versions.unmaintainedVersionLabel": {
+ "message": "Bu, {siteTitle} {versionLabel} dokümantasyonudur ve bakımı sonlanmıştır.",
+ "description": "The label used to tell the user that he's browsing an unmaintained doc version"
+ },
+ "theme.docs.versions.latestVersionSuggestionLabel": {
+ "message": "Güncel belgeler için bkz. {latestVersionLink} ({versionLabel}).",
+ "description": "The label used to tell the user to check the latest version"
+ },
+ "theme.docs.versions.latestVersionLinkLabel": {
+ "message": "en son sürüm",
+ "description": "The label used for the latest version suggestion link label"
+ },
+ "theme.common.editThisPage": {
+ "message": "Bu sayfayı düzenle",
+ "description": "The link label to edit the current page"
+ },
+ "theme.common.headingLinkTitle": {
+ "message": "{heading} doğrudan bağlantı",
+ "description": "Title for link to heading"
+ },
+ "theme.lastUpdated.atDate": {
+ "message": " {date} tarihinde",
+ "description": "The words used to describe on which date a page has been last updated"
+ },
+ "theme.lastUpdated.byUser": {
+ "message": " {user} tarafından",
+ "description": "The words used to describe by who the page has been last updated"
+ },
+ "theme.lastUpdated.lastUpdatedAtBy": {
+ "message": "En son {atDate} {byUser} güncellendi",
+ "description": "The sentence used to display when a page has been last updated, and by who"
+ },
+ "theme.navbar.mobileVersionsDropdown.label": {
+ "message": "Versiyonlar",
+ "description": "The label for the navbar versions dropdown on mobile view"
+ },
+ "theme.tags.tagsListLabel": {
+ "message": "Etiketler:",
+ "description": "The label alongside a tag list"
+ },
+ "theme.admonition.warning": {
+ "message": "uyarı",
+ "description": "The default label used for the Warning admonition (:::warning)"
+ },
+ "theme.AnnouncementBar.closeButtonAriaLabel": {
+ "message": "Kapat",
+ "description": "The ARIA label for close button of announcement bar"
+ },
+ "theme.blog.sidebar.navAriaLabel": {
+ "message": "Blog son gönderiler navigasyonu",
+ "description": "The ARIA label for recent posts in the blog sidebar"
+ },
+ "theme.DocSidebarItem.expandCategoryAriaLabel": {
+ "message": "Kenar çubuğu kategorisini genişlet '{label}'",
+ "description": "The ARIA label to expand the sidebar category"
+ },
+ "theme.DocSidebarItem.collapseCategoryAriaLabel": {
+ "message": "Kenar çubuğu kategorisini daralt '{label}'",
+ "description": "The ARIA label to collapse the sidebar category"
+ },
+ "theme.IconExternalLink.ariaLabel": {
+ "message": "(yeni sekmede açılır)",
+ "description": "The ARIA label for the external link icon"
+ },
+ "theme.NavBar.navAriaLabel": {
+ "message": "Ana menü",
+ "description": "The ARIA label for the main navigation"
+ },
+ "theme.navbar.mobileLanguageDropdown.label": {
+ "message": "Diller",
+ "description": "The label for the mobile language switcher dropdown"
+ },
+ "theme.TOCCollapsible.toggleButtonLabel": {
+ "message": "Bu sayfada",
+ "description": "The label used by the button on the collapsible TOC component"
+ },
+ "theme.blog.post.readMore": {
+ "message": "Daha Fazla",
+ "description": "The label used in blog post item excerpts to link to full blog posts"
+ },
+ "theme.blog.post.readMoreLabel": {
+ "message": "{title} hakkında daha fazla bilgi edinin",
+ "description": "The ARIA label for the link to full blog posts from excerpts"
+ },
+ "theme.CodeBlock.copy": {
+ "message": "Kopyala",
+ "description": "The copy button label on code blocks"
+ },
+ "theme.CodeBlock.copied": {
+ "message": "Kopyalandı",
+ "description": "The copied button label on code blocks"
+ },
+ "theme.CodeBlock.copyButtonAriaLabel": {
+ "message": "Kodu panoya kopyala",
+ "description": "The ARIA label for copy code blocks button"
+ },
+ "theme.CodeBlock.wordWrapToggle": {
+ "message": "Kelime kaydırmayı aç/kapat",
+ "description": "The title attribute for toggle word wrapping button of code block lines"
+ },
+ "theme.docs.breadcrumbs.home": {
+ "message": "Ana sayfa",
+ "description": "The ARIA label for the home page in the breadcrumbs"
+ },
+ "theme.docs.sidebar.collapseButtonTitle": {
+ "message": "Kenar çubuğunu daralt",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.collapseButtonAriaLabel": {
+ "message": "Kenar çubuğunu daralt",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.navAriaLabel": {
+ "message": "Belgeler kenar çubuğu",
+ "description": "The ARIA label for the sidebar navigation"
+ },
+ "theme.docs.sidebar.closeSidebarButtonAriaLabel": {
+ "message": "Gezinme çubuğunu kapat",
+ "description": "The ARIA label for close button of mobile sidebar"
+ },
+ "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
+ "message": "← Ana menüye dön",
+ "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
+ },
+ "theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
+ "message": "Gezinme çubuğunu aç/kapat",
+ "description": "The ARIA label for hamburger menu button of mobile navigation"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
+ "message": "Açılır menüyü genişlet",
+ "description": "The ARIA label of the button to expand the mobile dropdown navbar item"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
+ "message": "Açılır menüyü daralt",
+ "description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
+ },
+ "theme.docs.sidebar.expandButtonTitle": {
+ "message": "Kenar çubuğunu genişlet",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.docs.sidebar.expandButtonAriaLabel": {
+ "message": "Kenar çubuğunu genişlet",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.SearchBar.seeAll": {
+ "message": "{count} sonucun tümünü görün"
+ },
+ "theme.SearchPage.documentsFound.plurals": {
+ "message": "Bir döküman bulundu|{count} döküman bulundu",
+ "description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.SearchPage.existingResultsTitle": {
+ "message": "\"{query}\" için arama sonuçları",
+ "description": "The search page title for non-empty query"
+ },
+ "theme.SearchPage.emptyResultsTitle": {
+ "message": "Dokümanlarda ara",
+ "description": "The search page title for empty query"
+ },
+ "theme.SearchPage.inputPlaceholder": {
+ "message": "Aramanızı buraya yazın",
+ "description": "The placeholder for search page input"
+ },
+ "theme.SearchPage.inputLabel": {
+ "message": "Ara",
+ "description": "The ARIA label for search page input"
+ },
+ "theme.SearchPage.algoliaLabel": {
+ "message": "Algolia tarafından desteklenmektedir",
+ "description": "The description label for Algolia mention"
+ },
+ "theme.SearchPage.noResultsText": {
+ "message": "Hiçbir sonuç bulunamadı",
+ "description": "The paragraph for empty search result"
+ },
+ "theme.SearchPage.fetchingNewResults": {
+ "message": "Yeni sonuçlar getiriliyor...",
+ "description": "The paragraph for fetching new search results"
+ },
+ "theme.SearchBar.label": {
+ "message": "Ara",
+ "description": "The ARIA label and placeholder for search button"
+ },
+ "theme.SearchModal.searchBox.resetButtonTitle": {
+ "message": "Sorguyu temizle",
+ "description": "The label and ARIA label for search box reset button"
+ },
+ "theme.SearchModal.searchBox.cancelButtonText": {
+ "message": "İptal",
+ "description": "The label and ARIA label for search box cancel button"
+ },
+ "theme.SearchModal.searchBox.placeholderText": {
+ "message": "Dokümanlarda ara",
+ "description": "The placeholder text for the main search input field"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAi": {
+ "message": "Başka bir soru sorun...",
+ "description": "The placeholder text when in AI question mode"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAiStreaming": {
+ "message": "Yanıtlanıyor...",
+ "description": "The placeholder text for search box when AI is streaming an answer"
+ },
+ "theme.SearchModal.searchBox.enterKeyHint": {
+ "message": "ara",
+ "description": "The hint for the search box enter key text"
+ },
+ "theme.SearchModal.searchBox.enterKeyHintAskAi": {
+ "message": "gönder",
+ "description": "The hint for the Ask AI search box enter key text"
+ },
+ "theme.SearchModal.searchBox.searchInputLabel": {
+ "message": "Ara",
+ "description": "The ARIA label for search input"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonText": {
+ "message": "Anahtar kelime aramasına dön",
+ "description": "The text for back to keyword search button"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonAriaLabel": {
+ "message": "Anahtar kelime aramasına dön",
+ "description": "The ARIA label for back to keyword search button"
+ },
+ "theme.SearchModal.startScreen.recentSearchesTitle": {
+ "message": "Son",
+ "description": "The title for recent searches"
+ },
+ "theme.SearchModal.startScreen.noRecentSearchesText": {
+ "message": "Son arama yok",
+ "description": "The text when there are no recent searches"
+ },
+ "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": {
+ "message": "Bu aramayı kaydet",
+ "description": "The title for save recent search button"
+ },
+ "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": {
+ "message": "Bu aramayı geçmişten kaldır",
+ "description": "The title for remove recent search button"
+ },
+ "theme.SearchModal.startScreen.favoriteSearchesTitle": {
+ "message": "Favori",
+ "description": "The title for favorite searches"
+ },
+ "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": {
+ "message": "Bu aramayı favorilerden kaldır",
+ "description": "The title for remove favorite search button"
+ },
+ "theme.SearchModal.startScreen.recentConversationsTitle": {
+ "message": "Son sohbetler",
+ "description": "The title for recent conversations"
+ },
+ "theme.SearchModal.startScreen.removeRecentConversationButtonTitle": {
+ "message": "Bu sohbeti geçmişten kaldır",
+ "description": "The title for remove recent conversation button"
+ },
+ "theme.SearchModal.errorScreen.titleText": {
+ "message": "Sonuçlar alınamadı",
+ "description": "The title for error screen"
+ },
+ "theme.SearchModal.errorScreen.helpText": {
+ "message": "Ağ bağlantınızı kontrol etmek isteyebilirsiniz.",
+ "description": "The help text for error screen"
+ },
+ "theme.SearchModal.resultsScreen.askAiPlaceholder": {
+ "message": "Yapay zekâya sor: ",
+ "description": "The placeholder text for Ask AI input"
+ },
+ "theme.SearchModal.askAiScreen.disclaimerText": {
+ "message": "Yanıtlar, hata yapabilen yapay zekâ ile oluşturulur. Yanıtları doğrulayın.",
+ "description": "The disclaimer text for AI answers"
+ },
+ "theme.SearchModal.askAiScreen.relatedSourcesText": {
+ "message": "İlgili kaynaklar",
+ "description": "The text for related sources"
+ },
+ "theme.SearchModal.askAiScreen.thinkingText": {
+ "message": "Düşünüyor...",
+ "description": "The text when AI is thinking"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonText": {
+ "message": "Kopyala",
+ "description": "The text for copy button"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonCopiedText": {
+ "message": "Kopyalandı!",
+ "description": "The text for copy button when copied"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonTitle": {
+ "message": "Kopyala",
+ "description": "The title for copy button"
+ },
+ "theme.SearchModal.askAiScreen.likeButtonTitle": {
+ "message": "Beğen",
+ "description": "The title for like button"
+ },
+ "theme.SearchModal.askAiScreen.dislikeButtonTitle": {
+ "message": "Beğenme",
+ "description": "The title for dislike button"
+ },
+ "theme.SearchModal.askAiScreen.thanksForFeedbackText": {
+ "message": "Geri bildiriminiz için teşekkürler!",
+ "description": "The text for thanks for feedback"
+ },
+ "theme.SearchModal.askAiScreen.preToolCallText": {
+ "message": "Aranıyor...",
+ "description": "The text before tool call"
+ },
+ "theme.SearchModal.askAiScreen.duringToolCallText": {
+ "message": "Aranan: ",
+ "description": "The text during tool call"
+ },
+ "theme.SearchModal.askAiScreen.afterToolCallText": {
+ "message": "Arandı:",
+ "description": "The text after tool call"
+ },
+ "theme.SearchModal.footer.selectText": {
+ "message": "Seç",
+ "description": "The select text for footer"
+ },
+ "theme.SearchModal.footer.submitQuestionText": {
+ "message": "Soruyu gönder",
+ "description": "The submit question text for footer"
+ },
+ "theme.SearchModal.footer.selectKeyAriaLabel": {
+ "message": "Enter tuşu",
+ "description": "The ARIA label for select key in footer"
+ },
+ "theme.SearchModal.footer.navigateText": {
+ "message": "yönlendir",
+ "description": "The navigate text for footer"
+ },
+ "theme.SearchModal.footer.navigateUpKeyAriaLabel": {
+ "message": "Yukarı ok",
+ "description": "The ARIA label for navigate up key in footer"
+ },
+ "theme.SearchModal.footer.navigateDownKeyAriaLabel": {
+ "message": "Aşağı ok",
+ "description": "The ARIA label for navigate down key in footer"
+ },
+ "theme.SearchModal.footer.closeText": {
+ "message": "Kapat",
+ "description": "The close text for footer"
+ },
+ "theme.SearchModal.footer.closeKeyAriaLabel": {
+ "message": "ESC Tuşu",
+ "description": "The ARIA label for close key in footer"
+ },
+ "theme.SearchModal.footer.searchByText": {
+ "message": "Şuna göre ara:",
+ "description": "The 'Powered by' text for footer"
+ },
+ "theme.SearchModal.footer.backToSearchText": {
+ "message": "Aramaya dön",
+ "description": "The back to search text for footer"
+ },
+ "theme.SearchModal.noResultsScreen.noResultsText": {
+ "message": "için sonuç yok",
+ "description": "The text when there are no results"
+ },
+ "theme.SearchModal.noResultsScreen.suggestedQueryText": {
+ "message": "Aramayı deneyin",
+ "description": "The text for suggested query"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsText": {
+ "message": "Bu sorgunun sonuç döndürmesi gerektiğine inanıyor musunuz?",
+ "description": "The text for reporting missing results"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": {
+ "message": "Bilmemize izin ver.",
+ "description": "The link text for reporting missing results"
+ },
+ "theme.SearchModal.placeholder": {
+ "message": "Dokümanlarda ara",
+ "description": "The placeholder of the input of the DocSearch pop-up modal"
+ },
+ "theme.blog.post.plurals": {
+ "message": "Bir gönderi|{count} gönderi",
+ "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.blog.tagTitle": {
+ "message": "\"{tagName}\" ile etiketlenmiş {nPosts}",
+ "description": "The title of the page for a blog tag"
+ },
+ "theme.blog.author.pageTitle": {
+ "message": "{authorName} - {nPosts}",
+ "description": "The title of the page for a blog author"
+ },
+ "theme.blog.authorsList.pageTitle": {
+ "message": "Yazarlar",
+ "description": "The title of the authors page"
+ },
+ "theme.blog.authorsList.viewAll": {
+ "message": "Tüm Yazarları Görüntüle",
+ "description": "The label of the link targeting the blog authors page"
+ },
+ "theme.blog.author.noPosts": {
+ "message": "Bu yazar henüz herhangi bir yazı yazmadı.",
+ "description": "The text for authors with 0 blog post"
+ },
+ "theme.contentVisibility.unlistedBanner.title": {
+ "message": "Listelenmeyen sayfa",
+ "description": "The unlisted content banner title"
+ },
+ "theme.contentVisibility.unlistedBanner.message": {
+ "message": "Bu sayfa listelenmemiş. Arama motorları dizine eklemez ve yalnızca doğrudan bağlantısı olan kullanıcılar buna erişebilir.",
+ "description": "The unlisted content banner message"
+ },
+ "theme.contentVisibility.draftBanner.title": {
+ "message": "Taslak sayfa",
+ "description": "The draft content banner title"
+ },
+ "theme.contentVisibility.draftBanner.message": {
+ "message": "Bu sayfa bir taslaktır. Sadece dev'de görünür olacak ve üretim yapısından hariç tutulacaktır.",
+ "description": "The draft content banner message"
+ },
+ "theme.docs.DocCard.categoryDescription.plurals": {
+ "message": "1 öğe|{count} öğe",
+ "description": "The default description for a category card in the generated index about how many items this category includes"
+ },
+ "theme.ErrorPageContent.tryAgain": {
+ "message": "Tekrar deneyin",
+ "description": "The label of the button to try again rendering when the React error boundary captures an error"
+ },
+ "theme.common.skipToMainContent": {
+ "message": "Ana içeriğe geç",
+ "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
+ },
"theme.docs.sidebar.filterPlaceholder": {
"message": "Belgeleri filtrele",
"description": "Placeholder for the docs sidebar filter input"
diff --git a/frontend/i18n/tr/docusaurus-plugin-content-blog/options.json b/frontend/i18n/tr/docusaurus-plugin-content-blog/options.json
new file mode 100644
index 000000000000..6d2a2b3b4ae9
--- /dev/null
+++ b/frontend/i18n/tr/docusaurus-plugin-content-blog/options.json
@@ -0,0 +1,14 @@
+{
+ "title": {
+ "message": "Blog",
+ "description": "The title for the blog used in SEO"
+ },
+ "description": {
+ "message": "open.mp blogu",
+ "description": "The description for the blog used in SEO"
+ },
+ "sidebar.title": {
+ "message": "Son gönderiler",
+ "description": "The label for the left sidebar"
+ }
+}
diff --git a/frontend/i18n/tr/docusaurus-plugin-content-docs/current.json b/frontend/i18n/tr/docusaurus-plugin-content-docs/current.json
index ed3f64e02661..d52035873ec6 100644
--- a/frontend/i18n/tr/docusaurus-plugin-content-docs/current.json
+++ b/frontend/i18n/tr/docusaurus-plugin-content-docs/current.json
@@ -28,5 +28,9 @@
},
"sidebar.docsSidebar.category.Meta": {
"message": "Meta"
+ },
+ "version.label": {
+ "message": "Sonraki",
+ "description": "The label for version current"
}
}
diff --git a/frontend/i18n/tr/docusaurus-theme-classic/footer.json b/frontend/i18n/tr/docusaurus-theme-classic/footer.json
index fd4e64584bcb..b1895661f553 100644
--- a/frontend/i18n/tr/docusaurus-theme-classic/footer.json
+++ b/frontend/i18n/tr/docusaurus-theme-classic/footer.json
@@ -1,7 +1,7 @@
{
- "link.title.Documentations": {
+ "link.title.Documentation": {
"message": "Dokümantasyon",
- "description": "The title of the footer links column with title=Documentations in the footer"
+ "description": "The title of the footer links column with title=Documentation in the footer"
},
"link.title.Community": {
"message": "Topluluk",
@@ -62,5 +62,21 @@
"link.item.label.SA-MP": {
"message": "SA-MP",
"description": "The label of footer link with label=SA-MP linking to https://sa-mp.mp/"
+ },
+ "link.item.label.Download Launcher": {
+ "message": "Başlatıcıyı İndir",
+ "description": "The label of footer link with label=Download Launcher linking to /downloads/launcher"
+ },
+ "link.item.label.Download Server": {
+ "message": "Sunucuyu İndir",
+ "description": "The label of footer link with label=Download Server linking to /downloads/server"
+ },
+ "copyright": {
+ "message": "Telif Hakkı © 2026 open.mp. Docusaurus ile yapıldı.",
+ "description": "The footer copyright"
+ },
+ "logo.alt": {
+ "message": "open.mp",
+ "description": "The alt text of footer logo"
}
}
diff --git a/frontend/i18n/tr/docusaurus-theme-classic/navbar.json b/frontend/i18n/tr/docusaurus-theme-classic/navbar.json
index 0c8cef068b71..383f3d93bdcb 100644
--- a/frontend/i18n/tr/docusaurus-theme-classic/navbar.json
+++ b/frontend/i18n/tr/docusaurus-theme-classic/navbar.json
@@ -26,5 +26,13 @@
"item.label.Donate": {
"message": "Bağış Yap",
"description": "Navbar item with label Donate"
+ },
+ "logo.alt": {
+ "message": "open.mp logosu",
+ "description": "The alt text of navbar logo"
+ },
+ "item.label.Donate to us": {
+ "message": "Bize Bağış Yapın",
+ "description": "Navbar item with label Donate to us"
}
}
diff --git a/frontend/i18n/uk/code.json b/frontend/i18n/uk/code.json
index 650720d1f0d1..9c0ae0cef7c5 100644
--- a/frontend/i18n/uk/code.json
+++ b/frontend/i18n/uk/code.json
@@ -355,6 +355,872 @@
"navbar.item.Donate": {
"message": "Донат"
},
+ "serverInfo.copied": {
+ "message": "Скопійовано",
+ "description": "Copied server address state"
+ },
+ "serverInfo.copy": {
+ "message": "Копіювати",
+ "description": "Copy server address state"
+ },
+ "serverInfo.gameMode": {
+ "message": "Ігровий режим",
+ "description": "Game mode label"
+ },
+ "toast.close": {
+ "message": "Закрити сповіщення",
+ "description": "Accessible label for closing a toast notification"
+ },
+ "animations.layoutTitle": {
+ "message": "Анімації",
+ "description": "Animations page browser title"
+ },
+ "animations.layoutDescription": {
+ "message": "Інтерактивний переглядач анімацій open.mp (SA-MP) з відеопрев’ю",
+ "description": "Animations page meta description"
+ },
+ "animations.videoUnavailable": {
+ "message": "Відео недоступне",
+ "description": "Fallback message when an animation video fails to load"
+ },
+ "animations.code.forPlayers": {
+ "message": "// Для гравців",
+ "description": "Comment in animation usage example for player animations"
+ },
+ "animations.code.forActors": {
+ "message": "// Для акторів",
+ "description": "Comment in animation usage example for actor animations"
+ },
+ "homepage.layoutDescription": {
+ "message": "Мультиплеєрний мод для Grand Theft Auto: San Andreas, повністю зворотно сумісний із San Andreas Multiplayer",
+ "description": "Homepage meta description"
+ },
+ "partners.note.dismissAria": {
+ "message": "Закрити примітку про партнерство",
+ "description": "Accessible label for dismissing the partner note"
+ },
+ "partners.page.title": {
+ "message": "Сервери-партнери",
+ "description": "Partner servers page title"
+ },
+ "partners.page.description": {
+ "message": "Список серверів San Andreas, що працюють на open.mp або SA-MP",
+ "description": "Partner servers page description"
+ },
+ "uid.toast.copiedTitle": {
+ "message": "Скопійовано",
+ "description": "UID copy success toast title"
+ },
+ "uid.toast.copiedMessage": {
+ "message": "Макрос UID скопійовано в буфер обміну.",
+ "description": "UID copy success toast message"
+ },
+ "uid.page.title": {
+ "message": "Генератор UID",
+ "description": "UID generator page title"
+ },
+ "uid.page.description": {
+ "message": "Згенеруйте UID для унікальних ідентифікаторів IComponent або IExtension",
+ "description": "UID generator page description"
+ },
+ "launcherSim.join.connect": {
+ "message": "Підключитися",
+ "description": "Launcher connect button"
+ },
+ "launcherSim.join.bannerText": {
+ "message": "Ваш сервер",
+ "description": "Sample server banner text"
+ },
+ "launcherSim.join.server": {
+ "message": "Сервер",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.join.address": {
+ "message": "Адреса",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.column.players": {
+ "message": "Гравці",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.join.nickname": {
+ "message": "Нікнейм",
+ "description": "Launcher join dialog nickname label"
+ },
+ "launcherSim.join.version": {
+ "message": "Версія SA-MP",
+ "description": "Launcher join dialog SA-MP version label"
+ },
+ "launcherSim.tab.favorites": {
+ "message": "Обране",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.internet": {
+ "message": "Інтернет",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.partners": {
+ "message": "Партнери",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.recent": {
+ "message": "Нещодавні",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.nicknamePlaceholder": {
+ "message": "Нікнейм...",
+ "description": "Launcher preview nickname placeholder"
+ },
+ "launcherSim.searchPlaceholder": {
+ "message": "Пошук за назвою або режимом сервера",
+ "description": "Launcher preview search placeholder"
+ },
+ "launcherSim.column.name": {
+ "message": "Назва",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.ping": {
+ "message": "Пінг",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.mode": {
+ "message": "Режим",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.menu.connect": {
+ "message": "Підключитися",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.addToFavorites": {
+ "message": "Додати в обране",
+ "description": "Launcher preview button"
+ },
+ "launcherSim.menu.copy": {
+ "message": "Копіювати інформацію про сервер",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.column.rule": {
+ "message": "Правило",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.value": {
+ "message": "Значення",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.filter.title": {
+ "message": "Фільтри:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.omp": {
+ "message": "Лише сервери open.mp",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.nonEmpty": {
+ "message": "Непорожні сервери",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.unpassworded": {
+ "message": "Сервери без пароля",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.language": {
+ "message": "Мова:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.notification.favorited": {
+ "message": "Додано в обране!",
+ "description": "Launcher preview: notification"
+ },
+ "launcherSim.ariaLabel": {
+ "message": "Лаунчер open.mp зі списком прикладів серверів",
+ "description": "Accessible label for the launcher picture"
+ },
+ "launcherSim.column.player": {
+ "message": "Гравець",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.score": {
+ "message": "Рахунок",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.copy": {
+ "message": "КОПІЮВАТИ",
+ "description": "Launcher preview: copy address"
+ },
+ "servers.add.successMessage": {
+ "message": "{serverName} додано до списку очікування. Якщо сервер не з’явиться протягом 48 годин, зв’яжіться з нами в Discord!",
+ "description": "Toast message shown after submitting a server to the pending list"
+ },
+ "servers.add.successTitle": {
+ "message": "Сервер надіслано!",
+ "description": "Toast title shown after a server submission succeeds"
+ },
+ "servers.add.failureMessage": {
+ "message": "Статус {status}: {error}",
+ "description": "Toast message shown after a server submission fails"
+ },
+ "servers.add.failureTitle": {
+ "message": "Не вдалося надіслати!",
+ "description": "Toast title shown after a server submission fails"
+ },
+ "servers.add.errorMessage": {
+ "message": "Під час надсилання сервера сталася помилка",
+ "description": "Toast message shown after an unexpected server submission error"
+ },
+ "servers.add.errorTitle": {
+ "message": "Помилка",
+ "description": "Generic toast error title"
+ },
+ "servers.add.addressPlaceholder": {
+ "message": "play.example.com:7777",
+ "description": "Add server address input placeholder"
+ },
+ "servers.pages.label": {
+ "message": "Сторінки списку серверів",
+ "description": "Accessible label for the server list pagination"
+ },
+ "servers.pages.previous": {
+ "message": "Попередня сторінка",
+ "description": "Server list previous page button"
+ },
+ "servers.pages.next": {
+ "message": "Наступна сторінка",
+ "description": "Server list next page button"
+ },
+ "servers.sort.name": {
+ "message": "За назвою",
+ "description": "Sort by server name"
+ },
+ "servers.sort.mode": {
+ "message": "За режимом",
+ "description": "Sort by game mode"
+ },
+ "servers.sort.language": {
+ "message": "За мовою",
+ "description": "Sort by language"
+ },
+ "servers.language.all": {
+ "message": "Усі мови",
+ "description": "All languages filter option"
+ },
+ "servers.add.closeModal": {
+ "message": "Закрити вікно додавання сервера",
+ "description": "Accessible label for closing the add server modal"
+ },
+ "npcCallbacksNote.message": {
+ "message": "Цей колбек також може викликатися NPC.",
+ "description": "Note shown on callback docs pages when NPCs can also call the callback"
+ },
+ "versionWarn.name.function": {
+ "message": "функція",
+ "description": "Default item name in a version warning"
+ },
+ "versionWarn.name.callback": {
+ "message": "колбек",
+ "description": "Callback item name in a version warning"
+ },
+ "versionWarn.message": {
+ "message": "Цей елемент ({name}) додано у версії {version}, і в попередніх версіях він не працюватиме!",
+ "description": "Warning shown on scripting docs pages for APIs added in a specific server version"
+ },
+ "carousel.previous": {
+ "message": "Попередній",
+ "description": "Carousel previous button"
+ },
+ "carousel.next": {
+ "message": "Наступний",
+ "description": "Carousel next button"
+ },
+ "downloads.latestBadge": {
+ "message": "НАЙНОВІША",
+ "description": "Badge for latest release"
+ },
+ "downloads.releaseDate": {
+ "message": "Випущено {date}",
+ "description": "Release date label"
+ },
+ "downloads.release.highlights": {
+ "message": "Основне",
+ "description": "Release highlights heading"
+ },
+ "downloads.release.viewChangelog": {
+ "message": "Переглянути повний список змін",
+ "description": "Expandable changelog summary"
+ },
+ "downloads.release.viewOnGitHub": {
+ "message": "Переглянути випуск на GitHub",
+ "description": "Fallback button per release"
+ },
+ "downloads.release.githubTitle": {
+ "message": "Переглянути випуск на GitHub",
+ "description": "Title attribute for the GitHub release link"
+ },
+ "downloads.release.github": {
+ "message": "GitHub",
+ "description": "Link to release page on GitHub"
+ },
+ "downloads.release.dynSslNote": {
+ "message": "* Версія DynSSL потребує встановленої бібліотеки libssl у вашому дистрибутиві Linux.",
+ "description": "Note about DynSSL version requiring libssl"
+ },
+ "downloads.hideOlderReleases": {
+ "message": "Сховати старіші випуски",
+ "description": "Button to hide older releases"
+ },
+ "downloads.showOlderReleases": {
+ "message": "Показати старіші випуски ({count})",
+ "description": "Button to show older releases"
+ },
+ "downloads.opensourceTrust": {
+ "message": "Кожен випуск має відкритий вихідний код. Зберіть його самостійно або завантажте безпосередньо з GitHub.",
+ "description": "Open source trust message for downloads pages"
+ },
+ "downloads.downloadFromGithub": {
+ "message": "Завантажити з GitHub",
+ "description": "Button label to open GitHub releases page"
+ },
+ "downloads.launcher.pageTitle": {
+ "message": "Лаунчер open.mp",
+ "description": "Launcher downloads page title"
+ },
+ "downloads.launcher.layoutDescription": {
+ "message": "Завантажити випуски лаунчера open.mp",
+ "description": "Launcher downloads page meta description"
+ },
+ "downloads.launcher.pageSubtitle": {
+ "message": "Грайте в GTA San Andreas по мережі на серверах open.mp і SA-MP.",
+ "description": "Launcher downloads page subtitle"
+ },
+ "downloads.server.pageTitle": {
+ "message": "Сервер open.mp",
+ "description": "Server downloads page title"
+ },
+ "downloads.server.layoutDescription": {
+ "message": "Завантажити випуски сервера open.mp",
+ "description": "Server downloads page meta description"
+ },
+ "downloads.server.pageSubtitle": {
+ "message": "Запустіть власний мультиплеєрний сервер GTA San Andreas.",
+ "description": "Server downloads page subtitle"
+ },
+ "servers.page.title": {
+ "message": "Сервери",
+ "description": "Servers page title"
+ },
+ "servers.page.description": {
+ "message": "Список серверів San Andreas, що працюють на open.mp та SA-MP",
+ "description": "Servers page description"
+ },
+ "notFound.title": {
+ "message": "Сторінку не знайдено",
+ "description": "404 page title"
+ },
+ "notFound.imageAlt": {
+ "message": "Знімок екрана місії з потягом у GTA",
+ "description": "Alt text for the 404 page image"
+ },
+ "notFound.home": {
+ "message": "Головна",
+ "description": "404 page home button"
+ },
+ "notFound.docs": {
+ "message": "Документація",
+ "description": "404 page documentation button"
+ },
+ "notFound.servers": {
+ "message": "Сервери",
+ "description": "404 page servers button"
+ },
+ "theme.blog.post.paginator.navAriaLabel": {
+ "message": "Навігація по сторінці посту блогу",
+ "description": "The ARIA label for the blog posts pagination"
+ },
+ "theme.blog.post.paginator.newerPost": {
+ "message": "Наступний пост",
+ "description": "The blog post button label to navigate to the newer/previous post"
+ },
+ "theme.blog.post.paginator.olderPost": {
+ "message": "Попередній пост",
+ "description": "The blog post button label to navigate to the older/next post"
+ },
+ "theme.tags.tagsPageLink": {
+ "message": "Переглянути всі теги",
+ "description": "The label of the link targeting the tag list page"
+ },
+ "theme.colorToggle.ariaLabel.mode.system": {
+ "message": "Автоматичний режим",
+ "description": "The name for the system color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.light": {
+ "message": "Світлий режим",
+ "description": "The name for the light color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.dark": {
+ "message": "Темний режим",
+ "description": "The name for the dark color mode"
+ },
+ "theme.colorToggle.ariaLabel": {
+ "message": "Перемикання між темним та світлим режимом (зараз використовується {mode})",
+ "description": "The ARIA label for the color mode toggle"
+ },
+ "theme.docs.breadcrumbs.navAriaLabel": {
+ "message": "Навігаційний ланцюжок поточної сторінки",
+ "description": "The ARIA label for the breadcrumbs"
+ },
+ "theme.docs.paginator.navAriaLabel": {
+ "message": "сторінка документації",
+ "description": "The ARIA label for the docs pagination"
+ },
+ "theme.docs.paginator.previous": {
+ "message": "Попередня сторінка",
+ "description": "The label used to navigate to the previous doc"
+ },
+ "theme.docs.paginator.next": {
+ "message": "Наступна сторінка",
+ "description": "The label used to navigate to the next doc"
+ },
+ "theme.docs.tagDocListPageTitle.nDocsTagged": {
+ "message": "Одна сторінка|{count} сторінки|{count} сторінок",
+ "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.docs.tagDocListPageTitle": {
+ "message": "{nDocsTagged} з тегом \"{tagName}\"",
+ "description": "The title of the page for a docs tag"
+ },
+ "theme.docs.versionBadge.label": {
+ "message": "Версія: {versionLabel}"
+ },
+ "theme.docs.versions.unreleasedVersionLabel": {
+ "message": "Це документація для майбутньої версії {siteTitle} {versionLabel}.",
+ "description": "The label used to tell the user that he's browsing an unreleased doc version"
+ },
+ "theme.docs.versions.unmaintainedVersionLabel": {
+ "message": "Це документація {siteTitle} для версії {versionLabel}, яка вже не підтримується.",
+ "description": "The label used to tell the user that he's browsing an unmaintained doc version"
+ },
+ "theme.docs.versions.latestVersionSuggestionLabel": {
+ "message": "Актуальна документація знаходиться на сторінці {latestVersionLink} ({versionLabel}).",
+ "description": "The label used to tell the user to check the latest version"
+ },
+ "theme.docs.versions.latestVersionLinkLabel": {
+ "message": "остання версія",
+ "description": "The label used for the latest version suggestion link label"
+ },
+ "theme.common.editThisPage": {
+ "message": "Відредагувати цю сторінку",
+ "description": "The link label to edit the current page"
+ },
+ "theme.common.headingLinkTitle": {
+ "message": "Пряме посилання на {heading}",
+ "description": "Title for link to heading"
+ },
+ "theme.lastUpdated.atDate": {
+ "message": " {date}",
+ "description": "The words used to describe on which date a page has been last updated"
+ },
+ "theme.lastUpdated.byUser": {
+ "message": " від {user}",
+ "description": "The words used to describe by who the page has been last updated"
+ },
+ "theme.lastUpdated.lastUpdatedAtBy": {
+ "message": "Останнє оновлення{atDate}{byUser}",
+ "description": "The sentence used to display when a page has been last updated, and by who"
+ },
+ "theme.navbar.mobileVersionsDropdown.label": {
+ "message": "Версії",
+ "description": "The label for the navbar versions dropdown on mobile view"
+ },
+ "theme.tags.tagsListLabel": {
+ "message": "Теги:",
+ "description": "The label alongside a tag list"
+ },
+ "theme.admonition.warning": {
+ "message": "попередження",
+ "description": "The default label used for the Warning admonition (:::warning)"
+ },
+ "theme.AnnouncementBar.closeButtonAriaLabel": {
+ "message": "Закрити",
+ "description": "The ARIA label for close button of announcement bar"
+ },
+ "theme.blog.sidebar.navAriaLabel": {
+ "message": "Навігація за останніми постами у блозі",
+ "description": "The ARIA label for recent posts in the blog sidebar"
+ },
+ "theme.DocSidebarItem.expandCategoryAriaLabel": {
+ "message": "Розгорнути категорію в сайдбарі '{label}'",
+ "description": "The ARIA label to expand the sidebar category"
+ },
+ "theme.DocSidebarItem.collapseCategoryAriaLabel": {
+ "message": "Згорнути категорію в сайдбарі '{label}'",
+ "description": "The ARIA label to collapse the sidebar category"
+ },
+ "theme.IconExternalLink.ariaLabel": {
+ "message": "(відкривається в новій вкладці)",
+ "description": "The ARIA label for the external link icon"
+ },
+ "theme.NavBar.navAriaLabel": {
+ "message": "Головна",
+ "description": "The ARIA label for the main navigation"
+ },
+ "theme.navbar.mobileLanguageDropdown.label": {
+ "message": "Мови",
+ "description": "The label for the mobile language switcher dropdown"
+ },
+ "theme.TOCCollapsible.toggleButtonLabel": {
+ "message": "Зміст цієї сторінки",
+ "description": "The label used by the button on the collapsible TOC component"
+ },
+ "theme.blog.post.readMore": {
+ "message": "Читати далі",
+ "description": "The label used in blog post item excerpts to link to full blog posts"
+ },
+ "theme.blog.post.readMoreLabel": {
+ "message": "Докладніше про {title}",
+ "description": "The ARIA label for the link to full blog posts from excerpts"
+ },
+ "theme.CodeBlock.copy": {
+ "message": "Копіювати",
+ "description": "The copy button label on code blocks"
+ },
+ "theme.CodeBlock.copied": {
+ "message": "Скопійовано",
+ "description": "The copied button label on code blocks"
+ },
+ "theme.CodeBlock.copyButtonAriaLabel": {
+ "message": "Копіювати в буфер обміну",
+ "description": "The ARIA label for copy code blocks button"
+ },
+ "theme.CodeBlock.wordWrapToggle": {
+ "message": "Перемикання обведення слів",
+ "description": "The title attribute for toggle word wrapping button of code block lines"
+ },
+ "theme.docs.breadcrumbs.home": {
+ "message": "Головна сторінка",
+ "description": "The ARIA label for the home page in the breadcrumbs"
+ },
+ "theme.docs.sidebar.collapseButtonTitle": {
+ "message": "Згорнути сайдбар",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.collapseButtonAriaLabel": {
+ "message": "Згорнути сайдбар",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.navAriaLabel": {
+ "message": "Сайдбар документації",
+ "description": "The ARIA label for the sidebar navigation"
+ },
+ "theme.docs.sidebar.closeSidebarButtonAriaLabel": {
+ "message": "Закрити сайдбар",
+ "description": "The ARIA label for close button of mobile sidebar"
+ },
+ "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
+ "message": "← Перейти до головного меню",
+ "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
+ },
+ "theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
+ "message": "Перемкнути сайдбар",
+ "description": "The ARIA label for hamburger menu button of mobile navigation"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
+ "message": "Розгорнути випадаючий список",
+ "description": "The ARIA label of the button to expand the mobile dropdown navbar item"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
+ "message": "Згорнути випадаючий список",
+ "description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
+ },
+ "theme.docs.sidebar.expandButtonTitle": {
+ "message": "Розгорнути сайдбар",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.docs.sidebar.expandButtonAriaLabel": {
+ "message": "Розгорнути сайдбар",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.SearchBar.seeAll": {
+ "message": "Переглянути всі результати ({count})"
+ },
+ "theme.SearchPage.documentsFound.plurals": {
+ "message": "{count} документ|{count} документи|{count} документів",
+ "description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.SearchPage.existingResultsTitle": {
+ "message": "Результати пошуку за запитом \"{query}\"",
+ "description": "The search page title for non-empty query"
+ },
+ "theme.SearchPage.emptyResultsTitle": {
+ "message": "Пошук по сайту",
+ "description": "The search page title for empty query"
+ },
+ "theme.SearchPage.inputPlaceholder": {
+ "message": "Введіть ваш пошук тут",
+ "description": "The placeholder for search page input"
+ },
+ "theme.SearchPage.inputLabel": {
+ "message": "Пошук",
+ "description": "The ARIA label for search page input"
+ },
+ "theme.SearchPage.algoliaLabel": {
+ "message": "Працює на Algolia",
+ "description": "The description label for Algolia mention"
+ },
+ "theme.SearchPage.noResultsText": {
+ "message": "Не знайдено результатів",
+ "description": "The paragraph for empty search result"
+ },
+ "theme.SearchPage.fetchingNewResults": {
+ "message": "Завантаження нових результатів пошуку...",
+ "description": "The paragraph for fetching new search results"
+ },
+ "theme.SearchBar.label": {
+ "message": "Пошук",
+ "description": "The ARIA label and placeholder for search button"
+ },
+ "theme.SearchModal.searchBox.resetButtonTitle": {
+ "message": "Очистити запит",
+ "description": "The label and ARIA label for search box reset button"
+ },
+ "theme.SearchModal.searchBox.cancelButtonText": {
+ "message": "Скасувати",
+ "description": "The label and ARIA label for search box cancel button"
+ },
+ "theme.SearchModal.searchBox.placeholderText": {
+ "message": "Пошук у документації",
+ "description": "The placeholder text for the main search input field"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAi": {
+ "message": "Поставте інше запитання...",
+ "description": "The placeholder text when in AI question mode"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAiStreaming": {
+ "message": "Відповідаю...",
+ "description": "The placeholder text for search box when AI is streaming an answer"
+ },
+ "theme.SearchModal.searchBox.enterKeyHint": {
+ "message": "пошук",
+ "description": "The hint for the search box enter key text"
+ },
+ "theme.SearchModal.searchBox.enterKeyHintAskAi": {
+ "message": "ввести",
+ "description": "The hint for the Ask AI search box enter key text"
+ },
+ "theme.SearchModal.searchBox.searchInputLabel": {
+ "message": "Пошук",
+ "description": "The ARIA label for search input"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonText": {
+ "message": "Назад до пошуку за ключовими словами",
+ "description": "The text for back to keyword search button"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonAriaLabel": {
+ "message": "Назад до пошуку за ключовими словами",
+ "description": "The ARIA label for back to keyword search button"
+ },
+ "theme.SearchModal.startScreen.recentSearchesTitle": {
+ "message": "Останні",
+ "description": "The title for recent searches"
+ },
+ "theme.SearchModal.startScreen.noRecentSearchesText": {
+ "message": "Немає останніх пошуків",
+ "description": "The text when there are no recent searches"
+ },
+ "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": {
+ "message": "Зберегти цей пошук",
+ "description": "The title for save recent search button"
+ },
+ "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": {
+ "message": "Видалити цей пошук з історії",
+ "description": "The title for remove recent search button"
+ },
+ "theme.SearchModal.startScreen.favoriteSearchesTitle": {
+ "message": "Обране",
+ "description": "The title for favorite searches"
+ },
+ "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": {
+ "message": "Видалити цей пошук з обраного",
+ "description": "The title for remove favorite search button"
+ },
+ "theme.SearchModal.startScreen.recentConversationsTitle": {
+ "message": "Нещодавні розмови",
+ "description": "The title for recent conversations"
+ },
+ "theme.SearchModal.startScreen.removeRecentConversationButtonTitle": {
+ "message": "Видалити цю розмову з історії",
+ "description": "The title for remove recent conversation button"
+ },
+ "theme.SearchModal.errorScreen.titleText": {
+ "message": "Не вдалося отримати результати",
+ "description": "The title for error screen"
+ },
+ "theme.SearchModal.errorScreen.helpText": {
+ "message": "Перевірте підключення до мережі.",
+ "description": "The help text for error screen"
+ },
+ "theme.SearchModal.resultsScreen.askAiPlaceholder": {
+ "message": "Запитати ШІ: ",
+ "description": "The placeholder text for Ask AI input"
+ },
+ "theme.SearchModal.askAiScreen.disclaimerText": {
+ "message": "Відповіді генеруються ШІ, який може помилятися. Перевіряйте їх.",
+ "description": "The disclaimer text for AI answers"
+ },
+ "theme.SearchModal.askAiScreen.relatedSourcesText": {
+ "message": "Пов’язані джерела",
+ "description": "The text for related sources"
+ },
+ "theme.SearchModal.askAiScreen.thinkingText": {
+ "message": "Думаю...",
+ "description": "The text when AI is thinking"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonText": {
+ "message": "Копіювати",
+ "description": "The text for copy button"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonCopiedText": {
+ "message": "Скопійовано!",
+ "description": "The text for copy button when copied"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonTitle": {
+ "message": "Копіювати",
+ "description": "The title for copy button"
+ },
+ "theme.SearchModal.askAiScreen.likeButtonTitle": {
+ "message": "Подобається",
+ "description": "The title for like button"
+ },
+ "theme.SearchModal.askAiScreen.dislikeButtonTitle": {
+ "message": "Не подобається",
+ "description": "The title for dislike button"
+ },
+ "theme.SearchModal.askAiScreen.thanksForFeedbackText": {
+ "message": "Дякуємо за відгук!",
+ "description": "The text for thanks for feedback"
+ },
+ "theme.SearchModal.askAiScreen.preToolCallText": {
+ "message": "Шукаю...",
+ "description": "The text before tool call"
+ },
+ "theme.SearchModal.askAiScreen.duringToolCallText": {
+ "message": "Шукаю ",
+ "description": "The text during tool call"
+ },
+ "theme.SearchModal.askAiScreen.afterToolCallText": {
+ "message": "Знайдено за запитом",
+ "description": "The text after tool call"
+ },
+ "theme.SearchModal.footer.selectText": {
+ "message": "обрати",
+ "description": "The select text for footer"
+ },
+ "theme.SearchModal.footer.submitQuestionText": {
+ "message": "Надіслати запитання",
+ "description": "The submit question text for footer"
+ },
+ "theme.SearchModal.footer.selectKeyAriaLabel": {
+ "message": "Клавіша Enter",
+ "description": "The ARIA label for select key in footer"
+ },
+ "theme.SearchModal.footer.navigateText": {
+ "message": "до навігації",
+ "description": "The navigate text for footer"
+ },
+ "theme.SearchModal.footer.navigateUpKeyAriaLabel": {
+ "message": "Стрілка вгору",
+ "description": "The ARIA label for navigate up key in footer"
+ },
+ "theme.SearchModal.footer.navigateDownKeyAriaLabel": {
+ "message": "Стрілка вниз",
+ "description": "The ARIA label for navigate down key in footer"
+ },
+ "theme.SearchModal.footer.closeText": {
+ "message": "закрити",
+ "description": "The close text for footer"
+ },
+ "theme.SearchModal.footer.closeKeyAriaLabel": {
+ "message": "Клавіша Escape",
+ "description": "The ARIA label for close key in footer"
+ },
+ "theme.SearchModal.footer.searchByText": {
+ "message": "Пошук за допомогою",
+ "description": "The 'Powered by' text for footer"
+ },
+ "theme.SearchModal.footer.backToSearchText": {
+ "message": "Назад до пошуку",
+ "description": "The back to search text for footer"
+ },
+ "theme.SearchModal.noResultsScreen.noResultsText": {
+ "message": "Немає результатів для",
+ "description": "The text when there are no results"
+ },
+ "theme.SearchModal.noResultsScreen.suggestedQueryText": {
+ "message": "Спробуйте пошукати",
+ "description": "The text for suggested query"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsText": {
+ "message": "Чи вважаєте ви, що цей запит має повернути результати?",
+ "description": "The text for reporting missing results"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": {
+ "message": "Дайте нам знати.",
+ "description": "The link text for reporting missing results"
+ },
+ "theme.SearchModal.placeholder": {
+ "message": "Пошук документів",
+ "description": "The placeholder of the input of the DocSearch pop-up modal"
+ },
+ "theme.blog.post.plurals": {
+ "message": "{count} запис|{count} записи|{count} записів",
+ "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.blog.tagTitle": {
+ "message": "{nPosts} з тегом \"{tagName}\"",
+ "description": "The title of the page for a blog tag"
+ },
+ "theme.blog.author.pageTitle": {
+ "message": "{authorName} - {nPosts}",
+ "description": "The title of the page for a blog author"
+ },
+ "theme.blog.authorsList.pageTitle": {
+ "message": "Автори",
+ "description": "The title of the authors page"
+ },
+ "theme.blog.authorsList.viewAll": {
+ "message": "Переглянути всіх авторів",
+ "description": "The label of the link targeting the blog authors page"
+ },
+ "theme.blog.author.noPosts": {
+ "message": "Цей автор ще не написав жодної публікації.",
+ "description": "The text for authors with 0 blog post"
+ },
+ "theme.contentVisibility.unlistedBanner.title": {
+ "message": "Непублічна сторінка",
+ "description": "The unlisted content banner title"
+ },
+ "theme.contentVisibility.unlistedBanner.message": {
+ "message": "Ця сторінка є непублічною. Пошукові системи її не індексуватимуть, і доступ до неї матимуть лише користувачі з прямим посиланням.",
+ "description": "The unlisted content banner message"
+ },
+ "theme.contentVisibility.draftBanner.title": {
+ "message": "Чернетка",
+ "description": "The draft content banner title"
+ },
+ "theme.contentVisibility.draftBanner.message": {
+ "message": "Це чернетка. Ця сторінка видима лише в режимі розробки й буде виключена з фінальної збірки.",
+ "description": "The draft content banner message"
+ },
+ "theme.docs.DocCard.categoryDescription.plurals": {
+ "message": "{count} елемент|{count} елементи|{count} елементів",
+ "description": "The default description for a category card in the generated index about how many items this category includes"
+ },
+ "theme.ErrorPageContent.tryAgain": {
+ "message": "Спробуйте ще раз",
+ "description": "The label of the button to try again rendering when the React error boundary captures an error"
+ },
+ "theme.common.skipToMainContent": {
+ "message": "Перейти до основного вмісту",
+ "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
+ },
"theme.docs.sidebar.filterPlaceholder": {
"message": "Фільтрувати документацію",
"description": "Placeholder for the docs sidebar filter input"
diff --git a/frontend/i18n/uk/docusaurus-plugin-content-blog/options.json b/frontend/i18n/uk/docusaurus-plugin-content-blog/options.json
new file mode 100644
index 000000000000..6809ebf2bd5f
--- /dev/null
+++ b/frontend/i18n/uk/docusaurus-plugin-content-blog/options.json
@@ -0,0 +1,14 @@
+{
+ "title": {
+ "message": "Блоґ",
+ "description": "The title for the blog used in SEO"
+ },
+ "description": {
+ "message": "Блоґ",
+ "description": "The description for the blog used in SEO"
+ },
+ "sidebar.title": {
+ "message": "Останні дописи",
+ "description": "The label for the left sidebar"
+ }
+}
diff --git a/frontend/i18n/uk/docusaurus-plugin-content-docs/current.json b/frontend/i18n/uk/docusaurus-plugin-content-docs/current.json
new file mode 100644
index 000000000000..30507f8a281b
--- /dev/null
+++ b/frontend/i18n/uk/docusaurus-plugin-content-docs/current.json
@@ -0,0 +1,46 @@
+{
+ "version.label": {
+ "message": "Наступна",
+ "description": "The label for version current"
+ },
+ "sidebar.docsSidebar.category.Scripting": {
+ "message": "Скриптинг",
+ "description": "The label for category 'Scripting' in sidebar 'docsSidebar'"
+ },
+ "sidebar.docsSidebar.category.Callbacks": {
+ "message": "Колбеки",
+ "description": "The label for category 'Callbacks' in sidebar 'docsSidebar'"
+ },
+ "sidebar.docsSidebar.category.Functions": {
+ "message": "Функції",
+ "description": "The label for category 'Functions' in sidebar 'docsSidebar'"
+ },
+ "sidebar.docsSidebar.category.Language": {
+ "message": "Мова",
+ "description": "The label for category 'Language' in sidebar 'docsSidebar'"
+ },
+ "sidebar.docsSidebar.category.Reference": {
+ "message": "Довідник",
+ "description": "The label for category 'Reference' in sidebar 'docsSidebar'"
+ },
+ "sidebar.docsSidebar.category.Resources": {
+ "message": "Ресурси",
+ "description": "The label for category 'Resources' in sidebar 'docsSidebar'"
+ },
+ "sidebar.docsSidebar.category.Server": {
+ "message": "Сервер",
+ "description": "The label for category 'Server' in sidebar 'docsSidebar'"
+ },
+ "sidebar.docsSidebar.category.Client": {
+ "message": "Клієнт",
+ "description": "The label for category 'Client' in sidebar 'docsSidebar'"
+ },
+ "sidebar.docsSidebar.category.Tutorials": {
+ "message": "Посібники",
+ "description": "The label for category 'Tutorials' in sidebar 'docsSidebar'"
+ },
+ "sidebar.docsSidebar.category.Meta": {
+ "message": "Мета",
+ "description": "The label for category 'Meta' in sidebar 'docsSidebar'"
+ }
+}
diff --git a/frontend/i18n/uk/docusaurus-theme-classic/footer.json b/frontend/i18n/uk/docusaurus-theme-classic/footer.json
index 040bab85daac..b0936c4b446a 100644
--- a/frontend/i18n/uk/docusaurus-theme-classic/footer.json
+++ b/frontend/i18n/uk/docusaurus-theme-classic/footer.json
@@ -1,7 +1,7 @@
{
- "link.title.Documentations": {
+ "link.title.Documentation": {
"message": "Документація",
- "description": "The title of the footer links column with title=Documentations in the footer"
+ "description": "The title of the footer links column with title=Documentation in the footer"
},
"link.title.Community": {
"message": "Спільнота",
@@ -62,5 +62,21 @@
"link.item.label.SA-MP": {
"message": "SA-MP",
"description": "The label of footer link with label=SA-MP linking to https://sa-mp.mp/"
+ },
+ "link.item.label.Download Launcher": {
+ "message": "Завантажити лаунчер",
+ "description": "The label of footer link with label=Download Launcher linking to /downloads/launcher"
+ },
+ "link.item.label.Download Server": {
+ "message": "Завантажити сервер",
+ "description": "The label of footer link with label=Download Server linking to /downloads/server"
+ },
+ "copyright": {
+ "message": "Copyright © 2026 open.mp. Створено на Docusaurus.",
+ "description": "The footer copyright"
+ },
+ "logo.alt": {
+ "message": "open.mp",
+ "description": "The alt text of footer logo"
}
}
diff --git a/frontend/i18n/uk/docusaurus-theme-classic/navbar.json b/frontend/i18n/uk/docusaurus-theme-classic/navbar.json
index 01bad51e046f..d268b672b03b 100644
--- a/frontend/i18n/uk/docusaurus-theme-classic/navbar.json
+++ b/frontend/i18n/uk/docusaurus-theme-classic/navbar.json
@@ -26,5 +26,13 @@
"item.label.Donate": {
"message": "Донат",
"description": "Navbar item with label Donate"
+ },
+ "logo.alt": {
+ "message": "Логотип open.mp",
+ "description": "The alt text of navbar logo"
+ },
+ "item.label.Donate to us": {
+ "message": "Підтримати нас",
+ "description": "Navbar item with label Donate to us"
}
}
diff --git a/frontend/i18n/zh-CN/code.json b/frontend/i18n/zh-CN/code.json
index d4c4b8c41320..4e3e20cef01f 100644
--- a/frontend/i18n/zh-CN/code.json
+++ b/frontend/i18n/zh-CN/code.json
@@ -124,22 +124,6 @@
"message": "返回顶部",
"description": "返回顶部按钮的ARIA标签"
},
- "theme.docs.sidebar.filterPlaceholder": {
- "message": "筛选文档",
- "description": "文档侧边栏筛选输入框的占位文本"
- },
- "theme.docs.sidebar.clearFilter": {
- "message": "清除筛选",
- "description": "清除文档侧边栏筛选的ARIA标签"
- },
- "theme.docs.sidebar.filterNoResults": {
- "message": "没有匹配的文档",
- "description": "文档侧边栏筛选无结果时显示的标题"
- },
- "theme.docs.sidebar.filterNoResultsHint": {
- "message": "换个关键词试试。",
- "description": "文档侧边栏筛选无结果时显示的提示"
- },
"theme.blog.archive.title": {
"message": "归档",
"description": "博客归档页面的页面标题和主标题"
@@ -614,7 +598,7 @@
"description": "服务器下载按钮的 Title 属性"
},
"homepage.layoutDescription": {
- "message": "为《侠盗猎车手:圣安地列斯》打造的全新多人联机模组,与{samp}实现{compatibility}。",
+ "message": "为《侠盗猎车手:圣安地列斯》打造的多人联机模组,完全向下兼容 San Andreas Multiplayer。",
"description": "首页 Meta 描述"
},
"uid.toast.copiedTitle": {
@@ -700,5 +684,671 @@
"notFound.servers": {
"message": "服务器",
"description": "404页面服务器按钮"
+ },
+ "serverInfo.gameMode": {
+ "message": "游戏模式",
+ "description": "Game mode label"
+ },
+ "launcherSim.join.connect": {
+ "message": "连接",
+ "description": "Launcher connect button"
+ },
+ "launcherSim.join.bannerText": {
+ "message": "你的服务器",
+ "description": "Sample server banner text"
+ },
+ "launcherSim.join.server": {
+ "message": "服务器",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.join.address": {
+ "message": "地址",
+ "description": "Launcher preview join dialog"
+ },
+ "launcherSim.column.players": {
+ "message": "玩家",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.join.nickname": {
+ "message": "昵称",
+ "description": "Launcher join dialog nickname label"
+ },
+ "launcherSim.join.version": {
+ "message": "SA-MP 版本",
+ "description": "Launcher join dialog SA-MP version label"
+ },
+ "launcherSim.tab.favorites": {
+ "message": "收藏",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.internet": {
+ "message": "互联网",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.partners": {
+ "message": "合作伙伴",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.tab.recent": {
+ "message": "最近加入",
+ "description": "Launcher preview tab"
+ },
+ "launcherSim.nicknamePlaceholder": {
+ "message": "昵称...",
+ "description": "Launcher preview nickname placeholder"
+ },
+ "launcherSim.searchPlaceholder": {
+ "message": "搜索服务器名称/模式",
+ "description": "Launcher preview search placeholder"
+ },
+ "launcherSim.column.name": {
+ "message": "名称",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.ping": {
+ "message": "延迟",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.mode": {
+ "message": "模式",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.menu.connect": {
+ "message": "连接",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.addToFavorites": {
+ "message": "添加到收藏",
+ "description": "Launcher preview button"
+ },
+ "launcherSim.menu.copy": {
+ "message": "复制服务器信息",
+ "description": "Launcher preview: context menu"
+ },
+ "launcherSim.column.rule": {
+ "message": "规则",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.value": {
+ "message": "数值",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.filter.title": {
+ "message": "筛选:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.omp": {
+ "message": "仅 open.mp 服务器",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.nonEmpty": {
+ "message": "非空服务器",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.unpassworded": {
+ "message": "无密码服务器",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.filter.language": {
+ "message": "语言:",
+ "description": "Launcher preview: filter panel"
+ },
+ "launcherSim.notification.favorited": {
+ "message": "已添加到收藏!",
+ "description": "Launcher preview: notification"
+ },
+ "launcherSim.ariaLabel": {
+ "message": "显示示例服务器列表的 open.mp 启动器",
+ "description": "Accessible label for the launcher picture"
+ },
+ "launcherSim.column.player": {
+ "message": "玩家",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.column.score": {
+ "message": "分数",
+ "description": "Launcher preview column"
+ },
+ "launcherSim.copy": {
+ "message": "复制",
+ "description": "Launcher preview: copy address"
+ },
+ "servers.pages.label": {
+ "message": "服务器列表分页",
+ "description": "Accessible label for the server list pagination"
+ },
+ "servers.pages.previous": {
+ "message": "上一页",
+ "description": "Server list previous page button"
+ },
+ "servers.pages.next": {
+ "message": "下一页",
+ "description": "Server list next page button"
+ },
+ "versionWarn.name.function": {
+ "message": "函数",
+ "description": "Default item name in a version warning"
+ },
+ "versionWarn.name.callback": {
+ "message": "回调",
+ "description": "Callback item name in a version warning"
+ },
+ "versionWarn.message": {
+ "message": "此{name}于 {version} 版本中添加,在更早的版本中无法使用!",
+ "description": "Warning shown on scripting docs pages for APIs added in a specific server version"
+ },
+ "carousel.previous": {
+ "message": "上一个",
+ "description": "Carousel previous button"
+ },
+ "carousel.next": {
+ "message": "下一个",
+ "description": "Carousel next button"
+ },
+ "theme.blog.post.paginator.navAriaLabel": {
+ "message": "博文分页导航",
+ "description": "The ARIA label for the blog posts pagination"
+ },
+ "theme.blog.post.paginator.newerPost": {
+ "message": "较新一篇",
+ "description": "The blog post button label to navigate to the newer/previous post"
+ },
+ "theme.blog.post.paginator.olderPost": {
+ "message": "较旧一篇",
+ "description": "The blog post button label to navigate to the older/next post"
+ },
+ "theme.tags.tagsPageLink": {
+ "message": "查看所有标签",
+ "description": "The label of the link targeting the tag list page"
+ },
+ "theme.colorToggle.ariaLabel.mode.system": {
+ "message": "跟随系统",
+ "description": "The name for the system color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.light": {
+ "message": "浅色模式",
+ "description": "The name for the light color mode"
+ },
+ "theme.colorToggle.ariaLabel.mode.dark": {
+ "message": "暗黑模式",
+ "description": "The name for the dark color mode"
+ },
+ "theme.colorToggle.ariaLabel": {
+ "message": "切换浅色/暗黑模式(当前为{mode})",
+ "description": "The ARIA label for the color mode toggle"
+ },
+ "theme.docs.breadcrumbs.navAriaLabel": {
+ "message": "页面路径",
+ "description": "The ARIA label for the breadcrumbs"
+ },
+ "theme.docs.paginator.navAriaLabel": {
+ "message": "文件选项卡",
+ "description": "The ARIA label for the docs pagination"
+ },
+ "theme.docs.paginator.previous": {
+ "message": "上一页",
+ "description": "The label used to navigate to the previous doc"
+ },
+ "theme.docs.paginator.next": {
+ "message": "下一页",
+ "description": "The label used to navigate to the next doc"
+ },
+ "theme.docs.tagDocListPageTitle.nDocsTagged": {
+ "message": "{count} 篇文档带有标签",
+ "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.docs.tagDocListPageTitle": {
+ "message": "{nDocsTagged}「{tagName}」",
+ "description": "The title of the page for a docs tag"
+ },
+ "theme.docs.versionBadge.label": {
+ "message": "版本:{versionLabel}"
+ },
+ "theme.docs.versions.unreleasedVersionLabel": {
+ "message": "此为 {siteTitle} {versionLabel} 版尚未发行的文档。",
+ "description": "The label used to tell the user that he's browsing an unreleased doc version"
+ },
+ "theme.docs.versions.unmaintainedVersionLabel": {
+ "message": "此为 {siteTitle} {versionLabel} 版的文档,现已不再积极维护。",
+ "description": "The label used to tell the user that he's browsing an unmaintained doc version"
+ },
+ "theme.docs.versions.latestVersionSuggestionLabel": {
+ "message": "最新的文档请参阅 {latestVersionLink} ({versionLabel})。",
+ "description": "The label used to tell the user to check the latest version"
+ },
+ "theme.docs.versions.latestVersionLinkLabel": {
+ "message": "最新版本",
+ "description": "The label used for the latest version suggestion link label"
+ },
+ "theme.common.editThisPage": {
+ "message": "编辑此页",
+ "description": "The link label to edit the current page"
+ },
+ "theme.common.headingLinkTitle": {
+ "message": "{heading}的直接链接",
+ "description": "Title for link to heading"
+ },
+ "theme.lastUpdated.atDate": {
+ "message": "于 {date} ",
+ "description": "The words used to describe on which date a page has been last updated"
+ },
+ "theme.lastUpdated.byUser": {
+ "message": "由 {user} ",
+ "description": "The words used to describe by who the page has been last updated"
+ },
+ "theme.lastUpdated.lastUpdatedAtBy": {
+ "message": "最后{byUser}{atDate}更新",
+ "description": "The sentence used to display when a page has been last updated, and by who"
+ },
+ "theme.navbar.mobileVersionsDropdown.label": {
+ "message": "选择版本",
+ "description": "The label for the navbar versions dropdown on mobile view"
+ },
+ "theme.tags.tagsListLabel": {
+ "message": "标签:",
+ "description": "The label alongside a tag list"
+ },
+ "theme.admonition.warning": {
+ "message": "注意",
+ "description": "The default label used for the Warning admonition (:::warning)"
+ },
+ "theme.AnnouncementBar.closeButtonAriaLabel": {
+ "message": "关闭",
+ "description": "The ARIA label for close button of announcement bar"
+ },
+ "theme.blog.sidebar.navAriaLabel": {
+ "message": "最近博文导航",
+ "description": "The ARIA label for recent posts in the blog sidebar"
+ },
+ "theme.DocSidebarItem.expandCategoryAriaLabel": {
+ "message": "展开侧边栏分类 '{label}'",
+ "description": "The ARIA label to expand the sidebar category"
+ },
+ "theme.DocSidebarItem.collapseCategoryAriaLabel": {
+ "message": "折叠侧边栏分类 '{label}'",
+ "description": "The ARIA label to collapse the sidebar category"
+ },
+ "theme.IconExternalLink.ariaLabel": {
+ "message": "(在新标签页中打开)",
+ "description": "The ARIA label for the external link icon"
+ },
+ "theme.NavBar.navAriaLabel": {
+ "message": "主导航",
+ "description": "The ARIA label for the main navigation"
+ },
+ "theme.TOCCollapsible.toggleButtonLabel": {
+ "message": "本页总览",
+ "description": "The label used by the button on the collapsible TOC component"
+ },
+ "theme.navbar.mobileLanguageDropdown.label": {
+ "message": "选择语言",
+ "description": "The label for the mobile language switcher dropdown"
+ },
+ "theme.blog.post.readMore": {
+ "message": "阅读更多",
+ "description": "The label used in blog post item excerpts to link to full blog posts"
+ },
+ "theme.blog.post.readMoreLabel": {
+ "message": "阅读 {title} 的全文",
+ "description": "The ARIA label for the link to full blog posts from excerpts"
+ },
+ "theme.CodeBlock.copy": {
+ "message": "复制",
+ "description": "The copy button label on code blocks"
+ },
+ "theme.CodeBlock.copied": {
+ "message": "复制成功",
+ "description": "The copied button label on code blocks"
+ },
+ "theme.CodeBlock.copyButtonAriaLabel": {
+ "message": "复制代码到剪贴板",
+ "description": "The ARIA label for copy code blocks button"
+ },
+ "theme.CodeBlock.wordWrapToggle": {
+ "message": "切换自动换行",
+ "description": "The title attribute for toggle word wrapping button of code block lines"
+ },
+ "theme.docs.breadcrumbs.home": {
+ "message": "主页面",
+ "description": "The ARIA label for the home page in the breadcrumbs"
+ },
+ "theme.docs.sidebar.collapseButtonTitle": {
+ "message": "收起侧边栏",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.collapseButtonAriaLabel": {
+ "message": "收起侧边栏",
+ "description": "The title attribute for collapse button of doc sidebar"
+ },
+ "theme.docs.sidebar.navAriaLabel": {
+ "message": "文档侧边栏",
+ "description": "The ARIA label for the sidebar navigation"
+ },
+ "theme.docs.sidebar.closeSidebarButtonAriaLabel": {
+ "message": "关闭导航栏",
+ "description": "The ARIA label for close button of mobile sidebar"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
+ "message": "展开下拉菜单",
+ "description": "The ARIA label of the button to expand the mobile dropdown navbar item"
+ },
+ "theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
+ "message": "收起下拉菜单",
+ "description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
+ },
+ "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
+ "message": "← 回到主菜单",
+ "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
+ },
+ "theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
+ "message": "切换导航栏",
+ "description": "The ARIA label for hamburger menu button of mobile navigation"
+ },
+ "theme.docs.sidebar.expandButtonTitle": {
+ "message": "展开侧边栏",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.docs.sidebar.expandButtonAriaLabel": {
+ "message": "展开侧边栏",
+ "description": "The ARIA label and title attribute for expand button of doc sidebar"
+ },
+ "theme.SearchBar.seeAll": {
+ "message": "查看全部 {count} 个结果"
+ },
+ "theme.SearchBar.label": {
+ "message": "搜索",
+ "description": "The ARIA label and placeholder for search button"
+ },
+ "theme.SearchModal.searchBox.resetButtonTitle": {
+ "message": "清除查询",
+ "description": "The label and ARIA label for search box reset button"
+ },
+ "theme.SearchModal.searchBox.cancelButtonText": {
+ "message": "取消",
+ "description": "The label and ARIA label for search box cancel button"
+ },
+ "theme.SearchModal.searchBox.placeholderText": {
+ "message": "搜索文档",
+ "description": "The placeholder text for the main search input field"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAi": {
+ "message": "提出其他问题...",
+ "description": "The placeholder text when in AI question mode"
+ },
+ "theme.SearchModal.searchBox.placeholderTextAskAiStreaming": {
+ "message": "正在回答...",
+ "description": "The placeholder text for search box when AI is streaming an answer"
+ },
+ "theme.SearchModal.searchBox.enterKeyHint": {
+ "message": "搜索",
+ "description": "The hint for the search box enter key text"
+ },
+ "theme.SearchModal.searchBox.enterKeyHintAskAi": {
+ "message": "发送",
+ "description": "The hint for the Ask AI search box enter key text"
+ },
+ "theme.SearchModal.searchBox.searchInputLabel": {
+ "message": "搜索",
+ "description": "The ARIA label for search input"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonText": {
+ "message": "返回关键词搜索",
+ "description": "The text for back to keyword search button"
+ },
+ "theme.SearchModal.searchBox.backToKeywordSearchButtonAriaLabel": {
+ "message": "返回关键词搜索",
+ "description": "The ARIA label for back to keyword search button"
+ },
+ "theme.SearchModal.startScreen.recentSearchesTitle": {
+ "message": "最近搜索",
+ "description": "The title for recent searches"
+ },
+ "theme.SearchModal.startScreen.noRecentSearchesText": {
+ "message": "没有最近搜索",
+ "description": "The text when there are no recent searches"
+ },
+ "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": {
+ "message": "保存这个搜索",
+ "description": "The title for save recent search button"
+ },
+ "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": {
+ "message": "从历史记录中删除这个搜索",
+ "description": "The title for remove recent search button"
+ },
+ "theme.SearchModal.startScreen.favoriteSearchesTitle": {
+ "message": "收藏",
+ "description": "The title for favorite searches"
+ },
+ "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": {
+ "message": "从收藏列表中删除这个搜索",
+ "description": "The title for remove favorite search button"
+ },
+ "theme.SearchModal.startScreen.recentConversationsTitle": {
+ "message": "最近的对话",
+ "description": "The title for recent conversations"
+ },
+ "theme.SearchModal.startScreen.removeRecentConversationButtonTitle": {
+ "message": "从历史记录中删除此对话",
+ "description": "The title for remove recent conversation button"
+ },
+ "theme.SearchModal.errorScreen.titleText": {
+ "message": "无法获取结果",
+ "description": "The title for error screen"
+ },
+ "theme.SearchModal.errorScreen.helpText": {
+ "message": "你可能需要检查网络连接。",
+ "description": "The help text for error screen"
+ },
+ "theme.SearchModal.resultsScreen.askAiPlaceholder": {
+ "message": "询问 AI:",
+ "description": "The placeholder text for Ask AI input"
+ },
+ "theme.SearchModal.askAiScreen.disclaimerText": {
+ "message": "回答由 AI 生成,可能存在错误,请核实内容。",
+ "description": "The disclaimer text for AI answers"
+ },
+ "theme.SearchModal.askAiScreen.relatedSourcesText": {
+ "message": "相关来源",
+ "description": "The text for related sources"
+ },
+ "theme.SearchModal.askAiScreen.thinkingText": {
+ "message": "思考中...",
+ "description": "The text when AI is thinking"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonText": {
+ "message": "复制",
+ "description": "The text for copy button"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonCopiedText": {
+ "message": "已复制!",
+ "description": "The text for copy button when copied"
+ },
+ "theme.SearchModal.askAiScreen.copyButtonTitle": {
+ "message": "复制",
+ "description": "The title for copy button"
+ },
+ "theme.SearchModal.askAiScreen.likeButtonTitle": {
+ "message": "赞",
+ "description": "The title for like button"
+ },
+ "theme.SearchModal.askAiScreen.dislikeButtonTitle": {
+ "message": "踩",
+ "description": "The title for dislike button"
+ },
+ "theme.SearchModal.askAiScreen.thanksForFeedbackText": {
+ "message": "感谢你的反馈!",
+ "description": "The text for thanks for feedback"
+ },
+ "theme.SearchModal.askAiScreen.preToolCallText": {
+ "message": "搜索中...",
+ "description": "The text before tool call"
+ },
+ "theme.SearchModal.askAiScreen.duringToolCallText": {
+ "message": "正在搜索 ",
+ "description": "The text during tool call"
+ },
+ "theme.SearchModal.askAiScreen.afterToolCallText": {
+ "message": "已搜索",
+ "description": "The text after tool call"
+ },
+ "theme.SearchModal.footer.selectText": {
+ "message": "选中",
+ "description": "The select text for footer"
+ },
+ "theme.SearchModal.footer.submitQuestionText": {
+ "message": "提交问题",
+ "description": "The submit question text for footer"
+ },
+ "theme.SearchModal.footer.selectKeyAriaLabel": {
+ "message": "Enter 键",
+ "description": "The ARIA label for select key in footer"
+ },
+ "theme.SearchModal.footer.navigateText": {
+ "message": "导航",
+ "description": "The navigate text for footer"
+ },
+ "theme.SearchModal.footer.navigateUpKeyAriaLabel": {
+ "message": "向上键",
+ "description": "The ARIA label for navigate up key in footer"
+ },
+ "theme.SearchModal.footer.navigateDownKeyAriaLabel": {
+ "message": "向下键",
+ "description": "The ARIA label for navigate down key in footer"
+ },
+ "theme.SearchModal.footer.closeText": {
+ "message": "关闭",
+ "description": "The close text for footer"
+ },
+ "theme.SearchModal.footer.closeKeyAriaLabel": {
+ "message": "Esc 键",
+ "description": "The ARIA label for close key in footer"
+ },
+ "theme.SearchModal.footer.searchByText": {
+ "message": "搜索提供",
+ "description": "The 'Powered by' text for footer"
+ },
+ "theme.SearchModal.footer.backToSearchText": {
+ "message": "返回搜索",
+ "description": "The back to search text for footer"
+ },
+ "theme.SearchModal.noResultsScreen.noResultsText": {
+ "message": "没有结果:",
+ "description": "The text when there are no results"
+ },
+ "theme.SearchModal.noResultsScreen.suggestedQueryText": {
+ "message": "试试搜索",
+ "description": "The text for suggested query"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsText": {
+ "message": "认为这个查询应该有结果?",
+ "description": "The text for reporting missing results"
+ },
+ "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": {
+ "message": "请告知我们。",
+ "description": "The link text for reporting missing results"
+ },
+ "theme.SearchModal.placeholder": {
+ "message": "搜索文档",
+ "description": "The placeholder of the input of the DocSearch pop-up modal"
+ },
+ "theme.SearchPage.documentsFound.plurals": {
+ "message": "找到 {count} 份文件",
+ "description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.SearchPage.existingResultsTitle": {
+ "message": "「{query}」的搜索结果",
+ "description": "The search page title for non-empty query"
+ },
+ "theme.SearchPage.emptyResultsTitle": {
+ "message": "在文档中搜索",
+ "description": "The search page title for empty query"
+ },
+ "theme.SearchPage.inputPlaceholder": {
+ "message": "在此输入搜索词",
+ "description": "The placeholder for search page input"
+ },
+ "theme.SearchPage.inputLabel": {
+ "message": "搜索",
+ "description": "The ARIA label for search page input"
+ },
+ "theme.SearchPage.algoliaLabel": {
+ "message": "由 Algolia 提供",
+ "description": "The description label for Algolia mention"
+ },
+ "theme.SearchPage.noResultsText": {
+ "message": "未找到结果",
+ "description": "The paragraph for empty search result"
+ },
+ "theme.SearchPage.fetchingNewResults": {
+ "message": "正在获取新的搜索结果...",
+ "description": "The paragraph for fetching new search results"
+ },
+ "theme.blog.post.plurals": {
+ "message": "{count} 篇博文",
+ "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
+ },
+ "theme.blog.tagTitle": {
+ "message": "{nPosts} 含有标签「{tagName}」",
+ "description": "The title of the page for a blog tag"
+ },
+ "theme.blog.author.pageTitle": {
+ "message": "{authorName} - {nPosts}",
+ "description": "The title of the page for a blog author"
+ },
+ "theme.blog.authorsList.pageTitle": {
+ "message": "作者",
+ "description": "The title of the authors page"
+ },
+ "theme.blog.authorsList.viewAll": {
+ "message": "查看所有作者",
+ "description": "The label of the link targeting the blog authors page"
+ },
+ "theme.blog.author.noPosts": {
+ "message": "该作者尚未撰写任何文章。",
+ "description": "The text for authors with 0 blog post"
+ },
+ "theme.contentVisibility.unlistedBanner.title": {
+ "message": "未列出页",
+ "description": "The unlisted content banner title"
+ },
+ "theme.contentVisibility.unlistedBanner.message": {
+ "message": "此页面未列出。搜索引擎不会对其索引,只有拥有直接链接的用户才能访问。",
+ "description": "The unlisted content banner message"
+ },
+ "theme.contentVisibility.draftBanner.title": {
+ "message": "草稿页",
+ "description": "The draft content banner title"
+ },
+ "theme.contentVisibility.draftBanner.message": {
+ "message": "此页面是草稿,仅在开发环境中可见,不会包含在正式版本中。",
+ "description": "The draft content banner message"
+ },
+ "theme.docs.DocCard.categoryDescription.plurals": {
+ "message": "{count} 个项目",
+ "description": "The default description for a category card in the generated index about how many items this category includes"
+ },
+ "theme.ErrorPageContent.tryAgain": {
+ "message": "重试",
+ "description": "The label of the button to try again rendering when the React error boundary captures an error"
+ },
+ "theme.common.skipToMainContent": {
+ "message": "跳到主要内容",
+ "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
+ },
+ "theme.docs.sidebar.filterPlaceholder": {
+ "message": "筛选文档",
+ "description": "文档侧边栏筛选输入框的占位文本"
+ },
+ "theme.docs.sidebar.clearFilter": {
+ "message": "清除筛选",
+ "description": "清除文档侧边栏筛选的ARIA标签"
+ },
+ "theme.docs.sidebar.filterNoResults": {
+ "message": "没有匹配的文档",
+ "description": "文档侧边栏筛选无结果时显示的标题"
+ },
+ "theme.docs.sidebar.filterNoResultsHint": {
+ "message": "换个关键词试试。",
+ "description": "文档侧边栏筛选无结果时显示的提示"
}
}
diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-blog/options.json b/frontend/i18n/zh-CN/docusaurus-plugin-content-blog/options.json
index f263e776434e..ecb06b6c07aa 100644
--- a/frontend/i18n/zh-CN/docusaurus-plugin-content-blog/options.json
+++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-blog/options.json
@@ -1,5 +1,13 @@
{
"sidebar.title": {
"message": "最近的帖子"
+ },
+ "title": {
+ "message": "博客",
+ "description": "The title for the blog used in SEO"
+ },
+ "description": {
+ "message": "博客",
+ "description": "The description for the blog used in SEO"
}
}
diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current.json b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current.json
index ce9a835f2a51..5e39ab8573a8 100644
--- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current.json
+++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current.json
@@ -28,5 +28,9 @@
},
"sidebar.docsSidebar.category.Meta": {
"message": "元数据"
+ },
+ "version.label": {
+ "message": "下一版本",
+ "description": "The label for version current"
}
}
diff --git a/frontend/i18n/zh-CN/docusaurus-theme-classic/footer.json b/frontend/i18n/zh-CN/docusaurus-theme-classic/footer.json
index e56e68b0ae1a..38077a32279f 100644
--- a/frontend/i18n/zh-CN/docusaurus-theme-classic/footer.json
+++ b/frontend/i18n/zh-CN/docusaurus-theme-classic/footer.json
@@ -1,7 +1,7 @@
{
- "link.title.Documentations": {
+ "link.title.Documentation": {
"message": "文档",
- "description": "页脚中标题为Documentations的链接列标题"
+ "description": "The title of the footer links column with title=Documentation in the footer"
},
"link.title.Community": {
"message": "社区",
@@ -62,5 +62,21 @@
"link.item.label.SA-MP": {
"message": "SA-MP",
"description": "标签为SA-MP的页脚链接,指向https://sa-mp.mp/"
+ },
+ "link.item.label.Download Launcher": {
+ "message": "下载启动器",
+ "description": "The label of footer link with label=Download Launcher linking to /downloads/launcher"
+ },
+ "link.item.label.Download Server": {
+ "message": "下载服务器",
+ "description": "The label of footer link with label=Download Server linking to /downloads/server"
+ },
+ "copyright": {
+ "message": "版权所有 © 2026 open.mp。基于 Docusaurus 构建。",
+ "description": "The footer copyright"
+ },
+ "logo.alt": {
+ "message": "open.mp",
+ "description": "The alt text of footer logo"
}
}
diff --git a/frontend/i18n/zh-CN/docusaurus-theme-classic/navbar.json b/frontend/i18n/zh-CN/docusaurus-theme-classic/navbar.json
index 63d701fbbc74..61bc97fd47ae 100644
--- a/frontend/i18n/zh-CN/docusaurus-theme-classic/navbar.json
+++ b/frontend/i18n/zh-CN/docusaurus-theme-classic/navbar.json
@@ -26,5 +26,13 @@
"item.label.Donate": {
"message": "捐赠",
"description": "标签为Donate的导航栏项目"
+ },
+ "logo.alt": {
+ "message": "open.mp 标志",
+ "description": "The alt text of navbar logo"
+ },
+ "item.label.Donate to us": {
+ "message": "向我们捐赠",
+ "description": "Navbar item with label Donate to us"
}
}
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 5abe999ddc11..fed06b8748b6 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -13,6 +13,7 @@
"@docusaurus/preset-classic": "^3.5.2",
"@mdx-js/react": "^3.0.0",
"@pondorasti/remark-img-links": "^1.0.8",
+ "cheerio": "^1.2.0",
"clsx": "^2.0.0",
"nprogress": "^0.2.0",
"prism-react-renderer": "^2.3.0",
@@ -23,7 +24,9 @@
"react-dom": "^18.3.1",
"react-icons": "^5.4.0",
"react-router-dom": "^7.1.5",
- "react-window": "^2.2.7"
+ "react-window": "^2.2.7",
+ "turndown": "^7.2.5",
+ "turndown-plugin-gfm": "^1.0.2"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.10.1",
@@ -3711,6 +3714,46 @@
"react-dom": "^18.0.0 || ^19.0.0"
}
},
+ "node_modules/@docusaurus/plugin-content-blog/node_modules/cheerio": {
+ "version": "1.0.0-rc.12",
+ "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz",
+ "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==",
+ "license": "MIT",
+ "dependencies": {
+ "cheerio-select": "^2.1.0",
+ "dom-serializer": "^2.0.0",
+ "domhandler": "^5.0.3",
+ "domutils": "^3.0.1",
+ "htmlparser2": "^8.0.1",
+ "parse5": "^7.0.0",
+ "parse5-htmlparser2-tree-adapter": "^7.0.0"
+ },
+ "engines": {
+ "node": ">= 6"
+ },
+ "funding": {
+ "url": "https://github.com/cheeriojs/cheerio?sponsor=1"
+ }
+ },
+ "node_modules/@docusaurus/plugin-content-blog/node_modules/htmlparser2": {
+ "version": "8.0.2",
+ "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz",
+ "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==",
+ "funding": [
+ "https://github.com/fb55/htmlparser2?sponsor=1",
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fb55"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.3",
+ "domutils": "^3.0.1",
+ "entities": "^4.4.0"
+ }
+ },
"node_modules/@docusaurus/plugin-content-docs": {
"version": "3.10.1",
"resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-docs/-/plugin-content-docs-3.10.1.tgz",
@@ -4777,6 +4820,12 @@
"react": ">=16"
}
},
+ "node_modules/@mixmark-io/domino": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@mixmark-io/domino/-/domino-2.2.0.tgz",
+ "integrity": "sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw==",
+ "license": "BSD-2-Clause"
+ },
"node_modules/@module-federation/error-codes": {
"version": "0.22.0",
"resolved": "https://registry.npmjs.org/@module-federation/error-codes/-/error-codes-0.22.0.tgz",
@@ -7533,21 +7582,25 @@
}
},
"node_modules/cheerio": {
- "version": "1.0.0-rc.12",
- "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz",
- "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==",
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.2.0.tgz",
+ "integrity": "sha512-WDrybc/gKFpTYQutKIK6UvfcuxijIZfMfXaYm8NMsPQxSYvf+13fXUJ4rztGGbJcBQ/GF55gvrZ0Bc0bj/mqvg==",
"license": "MIT",
"dependencies": {
"cheerio-select": "^2.1.0",
"dom-serializer": "^2.0.0",
"domhandler": "^5.0.3",
- "domutils": "^3.0.1",
- "htmlparser2": "^8.0.1",
- "parse5": "^7.0.0",
- "parse5-htmlparser2-tree-adapter": "^7.0.0"
+ "domutils": "^3.2.2",
+ "encoding-sniffer": "^0.2.1",
+ "htmlparser2": "^10.1.0",
+ "parse5": "^7.3.0",
+ "parse5-htmlparser2-tree-adapter": "^7.1.0",
+ "parse5-parser-stream": "^7.1.2",
+ "undici": "^7.19.0",
+ "whatwg-mimetype": "^4.0.0"
},
"engines": {
- "node": ">= 6"
+ "node": ">=20.18.1"
},
"funding": {
"url": "https://github.com/cheeriojs/cheerio?sponsor=1"
@@ -7855,6 +7908,15 @@
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
"license": "MIT"
},
+ "node_modules/compression/node_modules/negotiator": {
+ "version": "0.6.4",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz",
+ "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@@ -9001,6 +9063,31 @@
"node": ">= 0.8"
}
},
+ "node_modules/encoding-sniffer": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/encoding-sniffer/-/encoding-sniffer-0.2.1.tgz",
+ "integrity": "sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==",
+ "license": "MIT",
+ "dependencies": {
+ "iconv-lite": "^0.6.3",
+ "whatwg-encoding": "^3.1.1"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/encoding-sniffer?sponsor=1"
+ }
+ },
+ "node_modules/encoding-sniffer/node_modules/iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/enhanced-resolve": {
"version": "5.21.6",
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.6.tgz",
@@ -10509,9 +10596,9 @@
}
},
"node_modules/htmlparser2": {
- "version": "8.0.2",
- "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz",
- "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==",
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.1.0.tgz",
+ "integrity": "sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==",
"funding": [
"https://github.com/fb55/htmlparser2?sponsor=1",
{
@@ -10523,8 +10610,20 @@
"dependencies": {
"domelementtype": "^2.3.0",
"domhandler": "^5.0.3",
- "domutils": "^3.0.1",
- "entities": "^4.4.0"
+ "domutils": "^3.2.2",
+ "entities": "^7.0.1"
+ }
+ },
+ "node_modules/htmlparser2/node_modules/entities": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz",
+ "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
}
},
"node_modules/http-cache-semantics": {
@@ -14165,15 +14264,6 @@
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
}
},
- "node_modules/negotiator": {
- "version": "0.6.4",
- "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz",
- "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
"node_modules/neo-async": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
@@ -14674,6 +14764,18 @@
"url": "https://github.com/inikulin/parse5?sponsor=1"
}
},
+ "node_modules/parse5-parser-stream": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-7.1.2.tgz",
+ "integrity": "sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==",
+ "license": "MIT",
+ "dependencies": {
+ "parse5": "^7.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
+ }
+ },
"node_modules/parse5/node_modules/entities": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",
@@ -18592,6 +18694,25 @@
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
"license": "0BSD"
},
+ "node_modules/turndown": {
+ "version": "7.2.5",
+ "resolved": "https://registry.npmjs.org/turndown/-/turndown-7.2.5.tgz",
+ "integrity": "sha512-EKZvCCFHh8sWttpAMs10U6niZFJ2cpz8LkCPlylxoG4JcHF50J7EHnnBW3AY1qXtUMu7kDjCp7dnggB1sIbqEQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@mixmark-io/domino": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=18",
+ "npm": ">=9"
+ }
+ },
+ "node_modules/turndown-plugin-gfm": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/turndown-plugin-gfm/-/turndown-plugin-gfm-1.0.2.tgz",
+ "integrity": "sha512-vwz9tfvF7XN/jE0dGoBei3FXWuvll78ohzCZQuOb+ZjWrs3a0XhQVomJEb2Qh4VHTPNRO4GPZh0V7VRbiWwkRg==",
+ "license": "MIT"
+ },
"node_modules/type-fest": {
"version": "2.19.0",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",
@@ -18661,6 +18782,15 @@
"node": ">=14.17"
}
},
+ "node_modules/undici": {
+ "version": "7.30.2",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.2.tgz",
+ "integrity": "sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.1"
+ }
+ },
"node_modules/undici-types": {
"version": "7.24.6",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz",
@@ -19522,6 +19652,40 @@
"node": ">=0.8.0"
}
},
+ "node_modules/whatwg-encoding": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",
+ "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==",
+ "deprecated": "Use @exodus/bytes instead for a more spec-conformant and faster implementation",
+ "license": "MIT",
+ "dependencies": {
+ "iconv-lite": "0.6.3"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/whatwg-encoding/node_modules/iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/whatwg-mimetype": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz",
+ "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index c452cbd2304e..c5fb64396b97 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -5,7 +5,7 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
- "build": "docusaurus build",
+ "build": "docusaurus build && node scripts/agent-build.mjs",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
@@ -20,6 +20,7 @@
"@docusaurus/preset-classic": "^3.5.2",
"@mdx-js/react": "^3.0.0",
"@pondorasti/remark-img-links": "^1.0.8",
+ "cheerio": "^1.2.0",
"clsx": "^2.0.0",
"nprogress": "^0.2.0",
"prism-react-renderer": "^2.3.0",
@@ -30,7 +31,9 @@
"react-dom": "^18.3.1",
"react-icons": "^5.4.0",
"react-router-dom": "^7.1.5",
- "react-window": "^2.2.7"
+ "react-window": "^2.2.7",
+ "turndown": "^7.2.5",
+ "turndown-plugin-gfm": "^1.0.2"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.10.1",
diff --git a/frontend/public/images/launcher/add.svg b/frontend/public/images/launcher/add.svg
new file mode 100644
index 000000000000..cf83fc08c303
--- /dev/null
+++ b/frontend/public/images/launcher/add.svg
@@ -0,0 +1,3 @@
+
+
+
diff --git a/frontend/public/images/launcher/close_side_lists.svg b/frontend/public/images/launcher/close_side_lists.svg
new file mode 100644
index 000000000000..74f284b84a17
--- /dev/null
+++ b/frontend/public/images/launcher/close_side_lists.svg
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/public/images/launcher/copy.png b/frontend/public/images/launcher/copy.png
new file mode 100644
index 000000000000..27ed9a9a6ac9
Binary files /dev/null and b/frontend/public/images/launcher/copy.png differ
diff --git a/frontend/public/images/launcher/darktheme.svg b/frontend/public/images/launcher/darktheme.svg
new file mode 100644
index 000000000000..cf81ae496333
--- /dev/null
+++ b/frontend/public/images/launcher/darktheme.svg
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/frontend/public/images/launcher/discord.svg b/frontend/public/images/launcher/discord.svg
new file mode 100644
index 000000000000..174b1da35208
--- /dev/null
+++ b/frontend/public/images/launcher/discord.svg
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/fav_add.svg b/frontend/public/images/launcher/fav_add.svg
new file mode 100644
index 000000000000..df49d1776074
--- /dev/null
+++ b/frontend/public/images/launcher/fav_add.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/fav_remove.svg b/frontend/public/images/launcher/fav_remove.svg
new file mode 100644
index 000000000000..e7ac0c610cf5
--- /dev/null
+++ b/frontend/public/images/launcher/fav_remove.svg
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/fav_tab.svg b/frontend/public/images/launcher/fav_tab.svg
new file mode 100644
index 000000000000..df49d1776074
--- /dev/null
+++ b/frontend/public/images/launcher/fav_tab.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/favorite.png b/frontend/public/images/launcher/favorite.png
new file mode 100644
index 000000000000..95f8d6a24d13
Binary files /dev/null and b/frontend/public/images/launcher/favorite.png differ
diff --git a/frontend/public/images/launcher/filter.svg b/frontend/public/images/launcher/filter.svg
new file mode 100644
index 000000000000..08b747e55903
--- /dev/null
+++ b/frontend/public/images/launcher/filter.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/game.svg b/frontend/public/images/launcher/game.svg
new file mode 100644
index 000000000000..cdae9b49e854
--- /dev/null
+++ b/frontend/public/images/launcher/game.svg
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/internet.svg b/frontend/public/images/launcher/internet.svg
new file mode 100644
index 000000000000..8ea78844ad77
--- /dev/null
+++ b/frontend/public/images/launcher/internet.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/ip.svg b/frontend/public/images/launcher/ip.svg
new file mode 100644
index 000000000000..951af7756407
--- /dev/null
+++ b/frontend/public/images/launcher/ip.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/language.svg b/frontend/public/images/launcher/language.svg
new file mode 100644
index 000000000000..ed78baada4b8
--- /dev/null
+++ b/frontend/public/images/launcher/language.svg
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/lighttheme.svg b/frontend/public/images/launcher/lighttheme.svg
new file mode 100644
index 000000000000..3bac7d9bdd5c
--- /dev/null
+++ b/frontend/public/images/launcher/lighttheme.svg
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/frontend/public/images/launcher/locked.svg b/frontend/public/images/launcher/locked.svg
new file mode 100644
index 000000000000..4a334844b5fc
--- /dev/null
+++ b/frontend/public/images/launcher/locked.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/mode.svg b/frontend/public/images/launcher/mode.svg
new file mode 100644
index 000000000000..e1efb4c13581
--- /dev/null
+++ b/frontend/public/images/launcher/mode.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/nickname.svg b/frontend/public/images/launcher/nickname.svg
new file mode 100644
index 000000000000..1a8d0c4a8d3c
--- /dev/null
+++ b/frontend/public/images/launcher/nickname.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/omp.png b/frontend/public/images/launcher/omp.png
new file mode 100644
index 000000000000..15bca8cc33f4
Binary files /dev/null and b/frontend/public/images/launcher/omp.png differ
diff --git a/frontend/public/images/launcher/open_side_lists.svg b/frontend/public/images/launcher/open_side_lists.svg
new file mode 100644
index 000000000000..bd24c2b917d3
--- /dev/null
+++ b/frontend/public/images/launcher/open_side_lists.svg
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/public/images/launcher/partner.svg b/frontend/public/images/launcher/partner.svg
new file mode 100644
index 000000000000..b8e4f2c0f7d1
--- /dev/null
+++ b/frontend/public/images/launcher/partner.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/play.svg b/frontend/public/images/launcher/play.svg
new file mode 100644
index 000000000000..eb75877b2933
--- /dev/null
+++ b/frontend/public/images/launcher/play.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/recently.svg b/frontend/public/images/launcher/recently.svg
new file mode 100644
index 000000000000..50cd894f0f9f
--- /dev/null
+++ b/frontend/public/images/launcher/recently.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/search.svg b/frontend/public/images/launcher/search.svg
new file mode 100644
index 000000000000..7c8ffbae22ce
--- /dev/null
+++ b/frontend/public/images/launcher/search.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/settings.svg b/frontend/public/images/launcher/settings.svg
new file mode 100644
index 000000000000..30165fc866f3
--- /dev/null
+++ b/frontend/public/images/launcher/settings.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/unlocked.svg b/frontend/public/images/launcher/unlocked.svg
new file mode 100644
index 000000000000..eb5ae3e95c58
--- /dev/null
+++ b/frontend/public/images/launcher/unlocked.svg
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/window_close.svg b/frontend/public/images/launcher/window_close.svg
new file mode 100644
index 000000000000..08c0a8cfea72
--- /dev/null
+++ b/frontend/public/images/launcher/window_close.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/window_maximize.svg b/frontend/public/images/launcher/window_maximize.svg
new file mode 100644
index 000000000000..bbc50a009a61
--- /dev/null
+++ b/frontend/public/images/launcher/window_maximize.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/public/images/launcher/window_minimize.svg b/frontend/public/images/launcher/window_minimize.svg
new file mode 100644
index 000000000000..49c2ef523f2a
--- /dev/null
+++ b/frontend/public/images/launcher/window_minimize.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/scripts/agent-build.mjs b/frontend/scripts/agent-build.mjs
new file mode 100644
index 000000000000..ce86839cd287
--- /dev/null
+++ b/frontend/scripts/agent-build.mjs
@@ -0,0 +1,235 @@
+// Runs after `docusaurus build`. Gives every page a Markdown twin and writes the files
+// agents look for: llms.txt, agent-instructions.md, sitemap.md, robots.txt and 404.md. All
+// plain files, so any static host (GitHub Pages included) serves them. Also writes
+// agent-manifest.json, an inventory of the build for a server that wants to answer
+// Accept: text/markdown on the page URLs themselves. Usage: agent-build.mjs [buildDir]
+import * as cheerio from "cheerio";
+import { mkdir, readFile, readdir, stat, writeFile } from "node:fs/promises";
+import path from "node:path";
+import TurndownService from "turndown";
+import { gfm } from "turndown-plugin-gfm";
+
+const buildDir = path.resolve(process.argv[2] || "build");
+const origin = (process.env.SITE_URL || "https://open.mp").replace(/\/$/, "");
+
+const turndown = new TurndownService({ headingStyle: "atx", codeBlockStyle: "fenced", bulletListMarker: "-" });
+turndown.use(gfm);
+turndown.addRule("codeBlock", {
+ filter: (node) => node.nodeName === "PRE",
+ replacement: (_content, node) => {
+ const code = node.querySelector("code") || node;
+ const language = /language-([\w-]+)/.exec(`${code.getAttribute("class") || ""} ${node.getAttribute("class") || ""}`)?.[1] || "";
+ return `\n\n\`\`\`${language}\n${code.textContent.replace(/\n$/, "")}\n\`\`\`\n\n`;
+ },
+});
+
+const MIME = {
+ html: "text/html", md: "text/markdown", txt: "text/plain", xml: "application/xml", json: "application/json",
+ js: "text/javascript", css: "text/css", map: "application/json", png: "image/png", jpg: "image/jpeg", jpeg: "image/jpeg",
+ gif: "image/gif", webp: "image/webp", svg: "image/svg+xml", ico: "image/x-icon", woff: "font/woff", woff2: "font/woff2",
+ ttf: "font/ttf", otf: "font/otf", mp4: "video/mp4", webm: "video/webm", mp3: "audio/mpeg", pdf: "application/pdf",
+ zip: "application/zip", webmanifest: "application/manifest+json",
+};
+const typeOf = (file) => MIME[path.extname(file).slice(1).toLowerCase()] || "application/octet-stream";
+
+async function walk(dir, found = []) {
+ for (const entry of await readdir(dir, { withFileTypes: true })) {
+ if (entry.name.startsWith(".")) continue;
+ const full = path.join(dir, entry.name);
+ if (entry.isDirectory()) await walk(full, found);
+ else found.push(full);
+ }
+ return found;
+}
+
+const webPath = (file) => `/${path.relative(buildDir, file).split(path.sep).join("/")}`;
+const isErrorDoc = (p) => /^\/(?:[a-zA-Z-]+\/)?404\.html$/.test(p);
+// Static HTML files that are not pages of the site.
+const isVerification = (p) => /^(?:\/[a-zA-Z-]+)?\/google[0-9a-f]+\.html$/.test(p) || /^(?:\/[a-zA-Z-]+)?\/images\//.test(p);
+const routeOf = (htmlPath) => {
+ const route = htmlPath.replace(/(?:\/index)?\.html$/, "");
+ return route === "" ? "/" : route;
+};
+const markdownOf = (htmlPath) => (htmlPath === "/index.html" ? "/index.md" : htmlPath.replace(/\.html$/, ".md"));
+
+// Live data the page only loads in the browser, which a Markdown reader would otherwise miss.
+const LIVE_NOTES = [
+ [/^(?:\/[a-zA-Z-]+)?\/servers$/, `The server list is loaded live in the browser. Read it directly as JSON from https://api.open.mp/servers/ (details for one server: https://api.open.mp/servers/{ip:port}).`],
+ [/^(?:\/[a-zA-Z-]+)?\/partners$/, `The partner list is loaded live in the browser. Read it from https://api.open.mp/servers/ and keep the entries where \`pr\` is true.`],
+];
+
+function toMarkdown(html, route) {
+ const $ = cheerio.load(html);
+ const title = $("title").first().text().trim();
+ const description = $('meta[name="description"]').attr("content")?.trim() || "";
+ const language = $("html").attr("lang") || "en";
+ const root = $("article").length === 1 ? $("article").first() : $("#__docusaurus_skipToContent_fallback").first();
+ root.find(
+ 'script, style, svg, button, nav, aside, footer, [aria-hidden="true"], [role="img"], .hash-link, .pagination-nav, .theme-edit-this-page, .theme-doc-toc-mobile, .theme-doc-toc-desktop, .theme-doc-breadcrumbs, .theme-doc-version-badge, .loading-banner, img[alt=""]',
+ ).remove();
+ root.find("pre br").replaceWith("\n");
+ root.find("pre .token-line").each((_, line) => {
+ const node = $(line);
+ if (!node.text().endsWith("\n")) node.append("\n");
+ });
+ root.find("a[href]").each((_, a) => {
+ const href = $(a).attr("href");
+ if (href?.startsWith("/")) $(a).attr("href", `${origin}${href}`);
+ });
+ root.find("img[src]").each((_, img) => {
+ const src = $(img).attr("src");
+ if (src?.startsWith("/")) $(img).attr("src", `${origin}${src}`);
+ });
+ const body = turndown.turndown(root.html() || "").replace(/\n{3,}/g, "\n\n").trim();
+ const note = LIVE_NOTES.find(([pattern]) => pattern.test(route))?.[1];
+ const canonical = `${origin}${route === "/" ? "/" : route}`;
+ const front = [
+ "---",
+ `title: ${JSON.stringify(title)}`,
+ ...(description ? [`description: ${JSON.stringify(description)}`] : []),
+ `canonical: ${canonical}`,
+ `language: ${language}`,
+ "---",
+ "",
+ ].join("\n");
+ return { title, description, canonical, language, markdown: `${front}\n${body || description}${note ? `\n\n${note}` : ""}\n` };
+}
+
+// The theme is normally set by an inline script, which would leave the page light with
+// JavaScript off. This is the fallback: with JavaScript on, the script replaces it before paint.
+const withTheme = (html) => html.replace(/]*data-theme)/, "
+ withTheme(html).replace(
+ "",
+ ` `,
+ );
+
+// Only English pages get a Markdown copy: agents read English, and copying all 25 languages
+// would add tens of thousands of files and minutes to every build for little gain.
+const isEnglish = (html) => /]*\slang=["']?en(?:-[A-Za-z]+)?(?=["'\s>])/.test(html);
+
+const files = await walk(buildDir);
+const routes = {};
+const pages = [];
+const errorDocs = [];
+
+for (const file of files) {
+ const htmlPath = webPath(file);
+ if (!htmlPath.endsWith(".html") || isVerification(htmlPath)) continue;
+ const html = await readFile(file, "utf8");
+ if (!isEnglish(html)) {
+ await writeFile(file, withTheme(html));
+ continue;
+ }
+ if (isErrorDoc(htmlPath)) {
+ errorDocs.push(htmlPath);
+ const prefix = htmlPath.replace(/\/404\.html$/, "");
+ await writeFile(file, injectLinks(html, `${origin}${prefix}/404.md`));
+ await writeFile(
+ path.join(buildDir, `${prefix.slice(1)}/404.md`.replace(/^\//, "")),
+ `# 404: page not found\n\nThis address does not exist on open.mp. Do not keep guessing URLs; use one of these:\n\n- [Site index for agents](${origin}/llms.txt)\n- [Every page](${origin}/sitemap.md)\n- [XML sitemap](${origin}/sitemap.xml)\n`,
+ );
+ continue;
+ }
+ const route = routeOf(htmlPath);
+ const mdPath = markdownOf(htmlPath);
+ const page = toMarkdown(html, route);
+ await writeFile(path.join(buildDir, mdPath.slice(1)), page.markdown);
+ await writeFile(file, injectLinks(html, `${origin}${mdPath}`));
+ routes[route] = { html: htmlPath, markdown: mdPath, canonical: page.canonical, language: page.language };
+ pages.push({ route, mdPath, title: page.title.replace(/ \| .*$/, ""), language: page.language });
+}
+
+const defaultLanguagePages = pages.filter((page) => !/^\/(?:ar|bs|de|es|fa|fil|fr|hu|id|it|nl|pl|pt-BR|ro|ru|sl|sr|ta|th|tr|uk|vi|zh-CN|zh-TW)(?:\/|$)/.test(page.route));
+const link = (page) => `- [${page.title}](${origin}${page.mdPath})`;
+const pick = (pattern) => defaultLanguagePages.filter((page) => pattern.test(page.route)).sort((a, b) => a.route.localeCompare(b.route));
+
+const llms = `# open.mp
+
+> open.mp (Open Multiplayer) is a multiplayer mod for Grand Theft Auto: San Andreas, fully backwards compatible with SA-MP. This site has its documentation, scripting reference, downloads, server list and blog.
+
+## When to use this site
+
+- Install or run the open.mp launcher or server.
+- Look up Pawn scripting functions, callbacks and constants for open.mp and SA-MP.
+- Move a SA-MP gamemode or server to open.mp.
+- Find current launcher and server releases, or list public servers.
+
+## Start here
+
+- [Agent instructions](${origin}/agent-instructions.md)
+- [Every page](${origin}/sitemap.md)
+- [Documentation](${origin}/docs.md)
+- [Server installation](${origin}/docs/server/Installation.md)
+- [Launcher downloads](${origin}/downloads/launcher.md)
+- [Server downloads](${origin}/downloads/server.md)
+- [Changelog](${origin}/docs/changelog.md)
+
+## Data
+
+- [Public server list as JSON](https://api.open.mp/servers/)
+
+## Optional
+
+- [Blog](${origin}/blog.md)
+- [Animations reference](${origin}/animations.md)
+- [Source code](https://github.com/openmultiplayer)
+`;
+
+const instructions = `# open.mp: how to use this site
+
+> The canonical website is ${origin}/. Pages are available as HTML for people and as Markdown for agents.
+
+## Reading pages
+
+Add \`.md\` to any page's path to get it as Markdown:
+
+\`\`\`bash
+curl ${origin}/docs/server/Installation.md
+\`\`\`
+
+Start from [llms.txt](${origin}/llms.txt) or the [list of every page](${origin}/sitemap.md). Each Markdown page begins with frontmatter holding its title, canonical URL and language. Cite the canonical URL.
+
+## Live data
+
+The server list is at https://api.open.mp/servers/ as a JSON array. Useful fields: \`ip\`, \`hn\` (name), \`pc\` (players), \`pm\` (max players), \`gm\` (game mode), \`la\` (language), \`pa\` (password), \`omp\` (runs open.mp), \`pr\` (partner). Details for one server are at https://api.open.mp/servers/{ip:port}.
+
+## Boundaries
+
+This website does not offer an MCP server, or any API for changing a game server. Reading a page or the server list does not change anything. Do not claim otherwise, and do not invent endpoints.
+
+## Missing pages
+
+If a page is missing, go back to these indexes rather than guessing addresses.
+`;
+
+const sitemapMd = `# open.mp: every page\n\n${[
+ ["Main", /^\/(?:$|servers$|partners$|downloads\/|animations$|uid$)/],
+ ["Documentation", /^\/docs(?:\/|$)/],
+ ["Blog", /^\/blog(?:\/|$)/],
+]
+ .map(([name, pattern]) => `## ${name}\n\n${pick(pattern).map(link).join("\n")}`)
+ .join("\n\n")}\n\n## For agents\n\n- [llms.txt](${origin}/llms.txt)\n- [Agent instructions](${origin}/agent-instructions.md)\n`;
+
+await writeFile(path.join(buildDir, "llms.txt"), llms);
+await writeFile(path.join(buildDir, "agent-instructions.md"), instructions);
+await writeFile(path.join(buildDir, "sitemap.md"), sitemapMd);
+await writeFile(
+ path.join(buildDir, "robots.txt"),
+ `User-agent: *\nContent-Signal: search=yes, ai-input=yes, ai-train=yes\nAllow: /\n\nSitemap: ${origin}/sitemap.xml\n`,
+);
+
+const manifestFiles = {};
+for (const file of await walk(buildDir)) {
+ const p = webPath(file);
+ if (p === "/agent-manifest.json") continue;
+ manifestFiles[p] = { type: typeOf(p) };
+}
+for (const route of Object.values(routes)) manifestFiles[route.markdown].canonical = route.canonical;
+for (const doc of errorDocs) {
+ manifestFiles[doc.replace(/\.html$/, ".md")].noindex = true;
+}
+const manifest = { origin, routes, files: manifestFiles, errorDocuments: errorDocs };
+await writeFile(path.join(buildDir, "agent-manifest.json"), `${JSON.stringify(manifest)}\n`);
+const size = (await stat(path.join(buildDir, "agent-manifest.json"))).size;
+console.log(`Agent build: ${pages.length} pages mirrored to Markdown, ${errorDocs.length} error documents, manifest ${Math.round(size / 1024)} KB.`);
diff --git a/frontend/src/components/HomeArt/index.tsx b/frontend/src/components/HomeArt/index.tsx
new file mode 100644
index 000000000000..788f83c6b882
--- /dev/null
+++ b/frontend/src/components/HomeArt/index.tsx
@@ -0,0 +1,304 @@
+import React, { useEffect, useRef, useState } from "react";
+import { FaGithub } from "react-icons/fa";
+import { FaCar, FaCrosshairs, FaFolderOpen, FaPersonWalking } from "react-icons/fa6";
+import { SiCplusplus } from "react-icons/si";
+
+import styles from "./styles.module.css";
+
+// Type-only art for the homepage feature tiles, matching the F9, .amx and C++ tiles.
+// Decorative: the text beside them says the same thing.
+
+const THREATS = [
+ ["exploit", "payload", "overflow", "injection", "crash", "exploit"],
+ ["overflow", "crash", "exploit", "payload", "injection", "overflow"],
+ ["payload", "injection", "crash", "overflow", "exploit", "payload"],
+ ["crash", "exploit", "injection", "payload", "overflow", "crash"],
+ ["injection", "overflow", "payload", "exploit", "crash", "injection"],
+];
+
+const ThreatWords = ({ words }: { words: string[] }) => (
+
+ {words.map((word, index) => (
+ {word}
+ ))}
+
+);
+
+export const ShieldArt = (): React.ReactElement => (
+
+
+ {THREATS.map((words, index) => (
+
+
+
+
+ ))}
+
+ RCE
+
+);
+
+// What players send, and what actually crosses the network.
+const STREAMS = [
+ ["/login ******** gg wp hey everyone /pm Ghost meet at grove ", "9f3a c1e8 07bd 52a6 e4f0 3b7c d218 6a9e b47e 1fd2 a805 6c39 "],
+ ["SetPlayerPos OnPlayerText anyone up for a race? /engine on ", "2d6c 8ea1 f350 b79d 416e ca02 7f8b e593 e071 5ab9 3cd4 f826 "],
+ ["nice shot /register ******** OnPlayerUpdate see you in LS ", "6ba4 d093 2e7f 81c5 a3d6 f90b 47e2 5c1a 09be 73a1 c6f4 1d58 "],
+];
+
+const StreamHalf = ({ text, encrypted }: { text: string; encrypted: boolean }) => (
+
+
+ {text}
+ {text}
+ {text}
+ {text}
+
+
+);
+
+// Readable text goes into the lock and comes out the far side as hex, in both directions.
+// The lock clicks shut once when the card comes into view, and never opens again.
+export const EncryptionArt = (): React.ReactElement => (
+
+
+ {STREAMS.map(([plain, hex], index) => (
+
+
+
+
+ ))}
+
+
+
+
+
+
+
+
+);
+
+// Real repositories in github.com/openmultiplayer.
+const REPOS = [
+ ["open.mp", "launcher", "web", "omp-stdlib"],
+ ["open.mp-sdk", "RakNet", "compiler", "open.mp-capi"],
+ ["launcher", "omp-stdlib", "open.mp", "open.mp-sdk"],
+ ["compiler", "web", "open.mp-capi", "RakNet"],
+ ["omp-stdlib", "open.mp-sdk", "launcher", "compiler"],
+];
+
+const RepoNames = ({ names }: { names: string[] }) => (
+
+ {[...names, ...names].map((name, index) => (
+ {name}
+ ))}
+
+);
+
+export const RepoArt = (): React.ReactElement => (
+
+
+ {REPOS.map((names, index) => (
+
+
+
+
+ ))}
+
+
+
+);
+
+export const Cursor = ({ pressed = false }: { pressed?: boolean }): React.ReactElement => (
+
+
+
+);
+
+const AmxFile = () => (
+
+
+
+ AMX
+
+);
+
+// A file you might still have lying about: SA-MP's classic gamemode, sitting in the server's
+// gamemodes folder as it is. Still on purpose: the card is about nothing needing to change.
+export const AmxArt = (): React.ReactElement => (
+
+
+
+ server / gamemodes
+
+
+
+
+ grandlarc.amx
+
+
+
+);
+
+// "The universe of C++ libraries": ones the open.mp server is built on (see lib/, SDK/lib/ and
+// the Conan packages in its repository), in orbit around the logo.
+const ORBITS = [
+ { className: styles.orbitInner, names: ["RakNet", "SQLite", "OpenSSL", "ICU"] },
+ { className: styles.orbitOuter, names: ["nlohmann/json", "cpp-httplib", "GLM", "cxxopts", "ttmath", "robin-hood"] },
+];
+
+export const CppArt = (): React.ReactElement => (
+
+ {ORBITS.map(({ className, names }) => (
+
+ {names.map((name, index) => (
+
+ {name}
+
+ ))}
+
+ ))}
+
+
+);
+
+// NPCs going about their day, under the code that made them. Each row swaps between two
+// states on its own clock, so they never change together.
+const NPCS = [
+ { name: "Ghost", first: "On foot", Icon1: FaPersonWalking, second: "Aiming", Icon2: FaCrosshairs },
+ { name: "Wheelie", first: "Driving", Icon1: FaCar, second: "On foot", Icon2: FaPersonWalking },
+ { name: "Rookie", first: "On foot", Icon1: FaPersonWalking, second: "Driving", Icon2: FaCar },
+];
+
+export const NpcListArt = (): React.ReactElement => (
+
+ {NPCS.map(({ name, first, Icon1, second, Icon2 }) => (
+
+ {name}
+ NPC
+
+
+ {first}
+
+
+ {second}
+
+
+
+ ))}
+
+);
+
+const CODE_START = "#include \n\nmain() {}\n\n";
+const CODE_SNIPPETS = [
+ `public OnPlayerConnect(playerid)\n{\n SendClientMessage(playerid, -1, "Hey!");\n return 1;\n}`,
+ `public OnPlayerSpawn(playerid)\n{\n GivePlayerMoney(playerid, 1000);\n return 1;\n}`,
+ `public OnPlayerDeath(playerid)\n{\n SetPlayerScore(playerid, 0);\n return 1;\n}`,
+];
+// Everyone writes the short name first. Then remembers it isn't defined, and goes back.
+const FULL_NAME = "SendClientMessage";
+const SHORT_NAME = "SCM";
+
+const CODE_TOKEN = /("[^"]*"?)|(#include|\bpublic\b|\breturn\b)|()|(\b[A-Za-z_]\w*(?=\())|(-?\b\d+\b)/g;
+
+const highlight = (text: string): React.ReactNode[] => {
+ const out: React.ReactNode[] = [];
+ let end = 0;
+ for (const match of text.matchAll(CODE_TOKEN)) {
+ const start = match.index;
+ if (start > end) out.push(text.slice(end, start));
+ const className = match[1] || match[3] ? styles.tokString : match[2] ? styles.tokKeyword : match[4] ? styles.tokFunction : styles.tokNumber;
+ out.push({match[0]} );
+ end = start + match[0].length;
+ }
+ if (end < text.length) out.push(text.slice(end));
+ return out;
+};
+
+const pause = (ms: number) => new Promise((resolve) => window.setTimeout(resolve, ms));
+
+// Someone writing a gamemode, forever: one callback after another. The one that calls
+// SendClientMessage gets written whole with SCM first, then corrected from the top. Static
+// without JavaScript or with reduced motion, and idle while off screen.
+export const CodeTyper = (): React.ReactElement => {
+ const first = CODE_START + CODE_SNIPPETS[0];
+ const [code, setCode] = useState({ text: first, caret: first.length });
+ const root = useRef(null);
+
+ useEffect(() => {
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches || !root.current) return undefined;
+ let stopped = false;
+ let visible = false;
+ const observer = new IntersectionObserver(([entry]) => {
+ visible = entry.isIntersecting;
+ }, { threshold: 0.5 });
+ observer.observe(root.current);
+ const step = async (text: string, caret: number, ms: number) => {
+ await pause(ms);
+ while (!visible && !stopped) await pause(250);
+ if (!stopped) setCode({ text, caret });
+ };
+ const clear = async (text: string) => {
+ for (let n = text.length - 1; n >= CODE_START.length && !stopped; n -= 1) await step(text.slice(0, n), n, 10);
+ };
+ const write = async (text: string) => {
+ for (let n = CODE_START.length + 1; n <= text.length && !stopped; n += 1) await step(text.slice(0, n), n, 24 + (n % 7) * 5);
+ };
+ const writeWithMistake = async (correct: string) => {
+ const nameAt = correct.indexOf(FULL_NAME);
+ const before = correct.slice(0, nameAt);
+ const after = correct.slice(nameAt + FULL_NAME.length);
+ const wrong = before + SHORT_NAME + after;
+ await write(wrong);
+ await pause(1300);
+ for (let at = wrong.length - 1; at >= before.length + SHORT_NAME.length && !stopped; at -= 1) await step(wrong, at, 16);
+ await pause(450);
+ for (let k = SHORT_NAME.length - 1; k >= 0 && !stopped; k -= 1) {
+ await step(before + SHORT_NAME.slice(0, k) + after, before.length + k, 110);
+ }
+ await pause(250);
+ for (let k = 1; k <= FULL_NAME.length && !stopped; k += 1) {
+ await step(before + FULL_NAME.slice(0, k) + after, before.length + k, 36);
+ }
+ await pause(600);
+ await step(correct, correct.length, 10);
+ };
+ const run = async () => {
+ let shown = first;
+ await pause(1800);
+ for (let snippet = 0; !stopped; snippet = (snippet + 1) % CODE_SNIPPETS.length) {
+ const next = CODE_START + CODE_SNIPPETS[snippet];
+ await clear(shown);
+ await pause(450);
+ if (next.includes(FULL_NAME)) await writeWithMistake(next);
+ else await write(next);
+ shown = next;
+ await pause(3000);
+ }
+ };
+ run();
+ return () => {
+ stopped = true;
+ observer.disconnect();
+ };
+ }, [first]);
+
+ return (
+
+
+
+
+
+ gamemode.pwn
+
+
+ {highlight(code.text.slice(0, code.caret))}
+
+ {highlight(code.text.slice(code.caret))}
+
+
+ );
+};
diff --git a/frontend/src/components/HomeArt/styles.module.css b/frontend/src/components/HomeArt/styles.module.css
new file mode 100644
index 000000000000..b0c427c74df2
--- /dev/null
+++ b/frontend/src/components/HomeArt/styles.module.css
@@ -0,0 +1,629 @@
+.rce {
+ position: relative;
+ display: inline-block;
+ background: none;
+ color: var(--omp-danger);
+ font-size: var(--badge-size, 6rem);
+ font-weight: 800;
+ letter-spacing: -0.03em;
+ line-height: 1;
+}
+
+.rce::after {
+ content: "";
+ position: absolute;
+ top: 54%;
+ right: -0.14em;
+ left: -0.14em;
+ height: 0.11em;
+ border-radius: 999px;
+ background: var(--omp-danger);
+ box-shadow: 0 0 0 0.045em var(--omp-item);
+ transform: rotate(-9deg);
+}
+
+.threats {
+ position: relative;
+ display: grid;
+ width: 100%;
+ height: 100%;
+ place-items: center;
+ overflow: hidden;
+ background: none;
+}
+
+.threatRows {
+ position: absolute;
+ inset: 0;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-evenly;
+ overflow: hidden;
+ color: var(--omp-faint);
+ font-family: var(--ifm-font-family-monospace);
+ font-size: var(--cipher-size, 1.375rem);
+ font-weight: 600;
+ letter-spacing: normal;
+ line-height: 1;
+ white-space: nowrap;
+ opacity: 0.32;
+ -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
+ mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
+}
+
+.threatRows .rowBack {
+ color: inherit;
+ opacity: 1;
+}
+
+.threatRows s {
+ padding-right: 1.25em;
+}
+
+.threats .rce {
+ z-index: 1;
+ padding: 0 0.15em;
+ text-shadow:
+ 0 0 0.25em var(--omp-item),
+ 0 0 0.5em var(--omp-item),
+ 0 0 0.8em var(--omp-item);
+}
+
+/* Centred on its body, not its shackle, so the rows of text run straight into the body */
+.padlock {
+ position: absolute;
+ z-index: 1;
+ top: 50%;
+ left: 50%;
+ overflow: visible;
+ width: auto;
+ height: 52%;
+ color: var(--omp-ink);
+ filter:
+ drop-shadow(0 0 0.35rem var(--omp-item))
+ drop-shadow(0 0 0.9rem var(--omp-item));
+ translate: -50% -68.4%;
+}
+
+.streams {
+ position: absolute;
+ top: 50%;
+ right: 0;
+ left: 0;
+ display: flex;
+ height: 28%;
+ flex-direction: column;
+ justify-content: space-evenly;
+ direction: ltr;
+ font-family: var(--ifm-font-family-monospace);
+ font-size: var(--stream-font, 1.0625rem);
+ font-weight: 600;
+ letter-spacing: 0;
+ line-height: 1;
+ white-space: pre;
+ translate: 0 -50%;
+ -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
+ mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
+}
+
+.stream {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+}
+
+.streamPlain,
+.streamHex {
+ overflow: hidden;
+}
+
+.streamPlain {
+ color: var(--omp-ink);
+}
+
+.streamHex {
+ color: var(--omp-accent);
+}
+
+.streamTrack {
+ display: flex;
+ width: max-content;
+}
+
+/* The logo has see-through parts; keep the scrolling names from showing through them. */
+.githubMark {
+ border-radius: 50%;
+ background: var(--omp-item);
+}
+
+.rowOut,
+.rowBack {
+ display: flex;
+ width: max-content;
+ background: none;
+}
+
+.rowOut > span,
+.rowBack > span {
+ background: none;
+ transform: none;
+}
+
+.rowBack {
+ color: var(--omp-ink);
+ opacity: 0.75;
+}
+
+.repos {
+ position: absolute;
+ inset: 0;
+ display: flex;
+ width: 100%;
+ height: 100%;
+ flex-direction: column;
+ justify-content: space-evenly;
+ overflow: hidden;
+ background: none;
+ color: var(--omp-accent);
+ font-family: var(--ifm-font-family-monospace);
+ font-size: var(--cipher-size, 1.375rem);
+ letter-spacing: normal;
+ line-height: 1;
+ white-space: nowrap;
+ opacity: 0.6;
+ -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
+ mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
+}
+
+.repos b {
+ padding-right: 1.5em;
+ font-weight: 600;
+}
+
+/* The padlock: the shackle turns on its long right leg. It's a metal tube, so it narrows as
+ it turns but never gets thinner: the stroke ignores the scaling, and is set in real pixels
+ to match the padlock's size. */
+.shackle {
+ stroke-width: 21px;
+ transform-box: view-box;
+ transform-origin: 48px 34px;
+ vector-effect: non-scaling-stroke;
+}
+
+@media (prefers-reduced-motion: no-preference) {
+ .shackle {
+ animation: shackleClose 2.8s linear 300ms both;
+ }
+
+ .padlock {
+ animation: padlockState 2.8s linear 300ms both;
+ }
+}
+
+/* Runs once and stays shut: this card is about encryption, so the lock is never seen opening. */
+@keyframes shackleClose {
+ 0%, 12% {
+ transform: translateY(-12px) scaleX(-1.000);
+ }
+
+ 16% {
+ transform: translateY(-12px) scaleX(-0.966);
+ }
+
+ 20% {
+ transform: translateY(-12px) scaleX(-0.866);
+ }
+
+ 24% {
+ transform: translateY(-12px) scaleX(-0.707);
+ }
+
+ 28% {
+ transform: translateY(-12px) scaleX(-0.500);
+ }
+
+ 32% {
+ transform: translateY(-12px) scaleX(-0.259);
+ }
+
+ 36% {
+ transform: translateY(-12px) scaleX(0.020);
+ }
+
+ 40% {
+ transform: translateY(-12px) scaleX(0.259);
+ }
+
+ 44% {
+ transform: translateY(-12px) scaleX(0.500);
+ }
+
+ 48% {
+ transform: translateY(-12px) scaleX(0.707);
+ }
+
+ 52% {
+ transform: translateY(-12px) scaleX(0.866);
+ }
+
+ 56% {
+ transform: translateY(-12px) scaleX(0.966);
+ }
+
+ 60%, 66% {
+ transform: translateY(-12px) scaleX(1.000);
+ }
+
+ 78%, 100% {
+ transform: translateY(0px) scaleX(1.000);
+ }
+}
+
+@keyframes padlockState {
+ 0%, 74%, 92%, 100% {
+ color: var(--omp-ink);
+ transform: none;
+ }
+
+ 78% {
+ color: var(--omp-accent);
+ transform: translateY(1.5px);
+ }
+}
+
+/* C++ libraries in orbit. Each ring turns; each label turns back the same amount, so the text
+ stays upright. */
+.universe {
+ position: relative;
+ display: grid;
+ width: 100%;
+ height: 100%;
+ place-items: center;
+ overflow: hidden;
+ direction: ltr;
+ letter-spacing: 0;
+}
+
+.cppLogo {
+ z-index: 1;
+ width: 5.5rem;
+ height: 5.5rem;
+ color: #659ad2;
+ filter: drop-shadow(0 0 1rem var(--omp-item));
+}
+
+.orbit {
+ --orbit-size: 15rem;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ width: var(--orbit-size);
+ height: var(--orbit-size);
+ margin: calc(var(--orbit-size) / -2) 0 0 calc(var(--orbit-size) / -2);
+ border: 1px dashed var(--omp-line);
+ border-radius: 50%;
+}
+
+.orbitOuter {
+ --orbit-size: 26rem;
+}
+
+.planet {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: rotate(var(--angle)) translateX(calc(var(--orbit-size) / 2)) rotate(calc(var(--angle) * -1));
+}
+
+.planet > span {
+ display: block;
+ padding: 0.2rem 0.5rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-surface);
+ color: var(--omp-muted);
+ font-family: var(--ifm-font-family-monospace);
+ font-size: 0.8125rem;
+ font-weight: 600;
+ line-height: 1.3;
+ white-space: nowrap;
+ translate: -50% -50%;
+}
+
+
+@media (max-width: 720px) {
+ .cppLogo {
+ width: 4.25rem;
+ height: 4.25rem;
+ }
+
+ .orbit {
+ --orbit-size: 11.5rem;
+ }
+
+ .orbitOuter {
+ --orbit-size: 20rem;
+ }
+
+ .planet > span {
+ font-size: 0.6875rem;
+ }
+}
+
+/* The grandlarc.amx tile */
+.amxWindow {
+ display: flex;
+ width: 100%;
+ height: 100%;
+ flex-direction: column;
+ background: var(--omp-surface);
+ box-shadow: inset 0 0 0 1px var(--omp-line);
+ color: var(--omp-ink);
+ letter-spacing: 0;
+}
+
+.amxBar {
+ display: flex;
+ flex: none;
+ align-items: center;
+ gap: 0.5rem;
+ padding: 0.625rem 0.875rem;
+ background: var(--omp-item);
+ color: var(--omp-muted);
+ font-size: 0.8125rem;
+ font-weight: 500;
+ line-height: 1.2;
+}
+
+.amxBar svg {
+ flex: none;
+ color: var(--omp-accent);
+ font-size: 0.9375rem;
+}
+
+.amx {
+ position: relative;
+ display: grid;
+ flex: 1;
+ place-items: center;
+ min-height: 0;
+ overflow: hidden;
+}
+
+.amxItem {
+ display: flex;
+ width: 11rem;
+ height: 10.5rem;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 0.5rem;
+ border-radius: var(--omp-radius-small);
+ background: color-mix(in srgb, var(--omp-primary) 32%, transparent);
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--omp-primary) 70%, transparent);
+}
+
+.cursor {
+ display: block;
+ filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
+ transition: transform 120ms ease;
+}
+
+.cursorDown {
+ transform: scale(0.78);
+}
+
+.amxFile {
+ width: auto;
+ height: 5.5rem;
+ flex: none;
+}
+
+.amxSheet {
+ fill: var(--omp-row);
+}
+
+.amxFold {
+ fill: var(--omp-button-hover);
+}
+
+.amxLabel {
+ fill: var(--omp-accent);
+ font-family: var(--ifm-font-family-monospace);
+ font-size: 12px;
+ font-weight: 700;
+}
+
+.amxName {
+ font-family: var(--ifm-font-family-monospace);
+ font-size: 0.9375rem;
+ font-weight: 500;
+ line-height: 1;
+}
+
+/* NPC list, under the code in the NPC tile */
+.npcs {
+ position: absolute;
+ z-index: 1;
+ right: 1rem;
+ bottom: 1rem;
+ left: 1rem;
+ display: grid;
+ gap: 0.4rem;
+ font-size: 0.8125rem;
+}
+
+.npc {
+ display: flex;
+ height: 2.125rem;
+ align-items: center;
+ gap: 0.5rem;
+ padding: 0 0.625rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-row);
+ color: var(--omp-ink);
+}
+
+.npcName {
+ font-weight: 600;
+}
+
+.npcBadge {
+ padding: 0.1rem 0.3rem;
+ border-radius: 3px;
+ background: var(--omp-primary);
+ color: #fff;
+ font-size: 0.625rem;
+ font-weight: 700;
+ line-height: 1.2;
+}
+
+/* Both states share one cell, one fading out as the other fades in */
+.npcStates {
+ display: grid;
+ margin-left: auto;
+ justify-items: end;
+ color: var(--omp-muted);
+}
+
+.npcState {
+ display: inline-flex;
+ grid-area: 1 / 1;
+ align-items: center;
+ gap: 0.35rem;
+ white-space: nowrap;
+}
+
+.npcState + .npcState {
+ opacity: 0;
+}
+
+@media (prefers-reduced-motion: no-preference) {
+ .npcState {
+ animation: npcStateA var(--npc-time, 7.1s) ease-in-out infinite;
+ }
+
+ .npcState + .npcState {
+ animation-name: npcStateB;
+ }
+
+ .npc:nth-child(2) { --npc-time: 9.7s; }
+ .npc:nth-child(3) { --npc-time: 5.3s; }
+}
+
+@keyframes npcStateA {
+ 0%, 44%, 100% { opacity: 1; }
+ 50%, 94% { opacity: 0; }
+}
+
+@keyframes npcStateB {
+ 0%, 44%, 100% { opacity: 0; }
+ 50%, 94% { opacity: 1; }
+}
+
+/* The editor in the scripting tile: dark in both themes, like most people's */
+.editor {
+ display: flex;
+ height: 100%;
+ flex-direction: column;
+ background: #1e1e24;
+ color: #e6e6ea;
+}
+
+.editorBar {
+ display: flex;
+ flex: none;
+ align-items: center;
+ gap: 0.375rem;
+ padding: 0.625rem 0.875rem;
+ background: #16161a;
+ color: #ffffff99;
+ font-size: 0.75rem;
+ font-weight: 500;
+}
+
+.editorBar i {
+ width: 0.5625rem;
+ height: 0.5625rem;
+ border-radius: 50%;
+ background: #ffffff2e;
+}
+
+.editorBar span {
+ margin-left: 0.5rem;
+}
+
+.editorCode {
+ flex: 1;
+ margin: 0;
+ padding: 0.875rem 1rem;
+ overflow: hidden;
+ border-radius: 0;
+ background: none;
+ color: inherit;
+ font-size: var(--editor-font, 0.8125rem);
+ line-height: 1.55;
+ white-space: pre;
+}
+
+.editorCaret {
+ display: inline-block;
+ width: 2px;
+ height: 1.1em;
+ margin: 0 -1px;
+ background: #a79aeb;
+ vertical-align: text-bottom;
+}
+
+.tokKeyword { color: #c792ea; font-style: italic; }
+.tokString { color: #f78fb3; }
+.tokFunction { color: #7ee787; }
+.tokNumber { color: #ffcb8b; }
+
+@media (max-width: 720px) {
+ .streams {
+ --stream-font: 0.8125rem;
+ }
+
+ .shackle {
+ stroke-width: 16px;
+ }
+
+ .editorCode {
+ --editor-font: 0.6875rem;
+ padding: 0.75rem;
+ }
+
+ .npcs {
+ right: 0.75rem;
+ bottom: 0.625rem;
+ left: 0.75rem;
+ gap: 0.25rem;
+ font-size: 0.75rem;
+ }
+
+ .npc {
+ height: 1.625rem;
+ }
+
+ /* Short tile: two NPCs fit beside the code */
+ .npc:nth-child(3) {
+ display: none;
+ }
+
+ .amxItem {
+ width: 9rem;
+ height: 8rem;
+ }
+
+ .amxBar {
+ padding: 0.5rem 0.75rem;
+ font-size: 0.75rem;
+ }
+
+ .amxFile {
+ height: 4rem;
+ }
+
+ .amxName {
+ font-size: 0.8125rem;
+ }
+}
diff --git a/frontend/src/components/HomepageFeatures/index.tsx b/frontend/src/components/HomepageFeatures/index.tsx
deleted file mode 100644
index 441768625df8..000000000000
--- a/frontend/src/components/HomepageFeatures/index.tsx
+++ /dev/null
@@ -1,145 +0,0 @@
-import React, { type ReactNode } from "react";
-import clsx from "clsx";
-import Heading from "@theme/Heading";
-import Image from "@theme/ThemedImage";
-import styles from "./styles.module.css";
-import Link from "@docusaurus/Link";
-
-import Translate from '@docusaurus/Translate';
-
-type FeatureItem = {
- title: ReactNode;
- Img: string;
- description: ReactNode;
- link: string;
- linkText: ReactNode;
-};
-
-const FeatureList: FeatureItem[] = [
- {
- title: (
-
- Fully backwards compatible with existing scripts and clients
-
- ),
- Img: "images/assets/f1.png",
- description: (
-
- Got an old AMX lying about? Load it up on the open.mp server straight
- out of the box and join your friends playing on the SA:MP client. Then
- when you want to enhance your code look in our docs.
-
- ),
- link: "/docs",
- linkText: (
-
- Getting Started
-
- ),
- },
- {
- title: (
-
- New and improved scripting system
-
- ),
- Img: "images/assets/f5.png",
- description: (
-
- We've stuck with pawn, but with a new compiler engineered to make your
- code more robust, and more functions to manipulate the server and
- client.
-
- ),
- link: "https://github.com/openmultiplayer/omp-stdlib/#openmp-includes",
- linkText: (
-
- Learn about the improvements
-
- ),
- },
- {
- title: (
-
- ),
- Img: "images/assets/github.png",
- description: (
-
- ),
- link: "https://github.com/openmultiplayer",
- linkText: (
-
- ),
- },
- {
- title: (
-
- Extensible C++ API
-
- ),
- Img: "images/assets/f4.png",
- description: (
-
- Get access to all the server features available in pawn, plus the
- universe of C++ libraries and frameworks. Once you've mastered this why
- not help improve the server via our open contribution process on GitHub.
-
- ),
- link: "https://github.com/openmultiplayer/open.mp-sdk",
- linkText: (
-
- Check out SDK repository
-
- ),
- },
-];
-
-const Feature = ({ title, Img, description, link, linkText }: FeatureItem) => {
- return (
-
-
-
-
-
-
{title}
-
{description}
-
-
-
- {linkText}
-
-
-
- );
-};
-
-const HomepageFeatures = (): React.ReactElement => {
- return (
-
-
-
- {FeatureList.map((props, idx) => (
-
- ))}
-
-
-
- );
-};
-
-export default HomepageFeatures;
\ No newline at end of file
diff --git a/frontend/src/components/HomepageFeatures/styles.module.css b/frontend/src/components/HomepageFeatures/styles.module.css
deleted file mode 100644
index d53e316e71ef..000000000000
--- a/frontend/src/components/HomepageFeatures/styles.module.css
+++ /dev/null
@@ -1,144 +0,0 @@
-.featuresSection {
- display: flex;
- align-items: center;
- padding: 0 0 3rem;
- width: 100%;
- background: none;
- position: relative;
- overflow: hidden;
-}
-
-.featuresRow {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-around;
- gap: 2rem;
-}
-
-.featureItem {
- display: flex;
- flex-direction: column;
- align-items: center;
- max-width: 450px;
- flex: 1 1 calc(50% - 2rem);
- min-width: 280px;
- padding: 1.5rem;
- border-radius: 12px;
- box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
- transition: transform 0.3s ease, box-shadow 0.3s ease;
- background-color: var(--ifm-card-background-color);
- animation: fadeInUp 0.5s ease forwards;
- opacity: 0;
-}
-
-.featureItem:hover {
- transform: translateY(-5px);
- box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
-}
-
-.featureItem:nth-child(1) {
- animation-delay: 0.1s;
-}
-
-.featureItem:nth-child(2) {
- animation-delay: 0.2s;
-}
-
-.featureItem:nth-child(3) {
- animation-delay: 0.3s;
-}
-
-.featureItem:nth-child(4) {
- animation-delay: 0.4s;
-}
-
-.featureImageContainer {
- text-align: center;
- margin-bottom: 1.25rem;
- padding: 0.75rem;
- border-radius: 50%;
- background-color: var(--ifm-color-primary-lightest);
- width: 100px;
- height: 100px;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.featureImage {
- height: auto;
- width: 100%;
- max-width: 70px;
- object-fit: contain;
-}
-
-.featureContent {
- text-align: center;
- padding: 0 1rem;
- flex-grow: 1;
-}
-
-.featureContent h3 {
- margin-bottom: 0.75rem;
- font-size: 1.35rem;
- color: var(--ifm-color-primary);
-}
-
-.featureContent p {
- color: var(--ifm-color-emphasis-700);
- line-height: 1.6;
-}
-
-.featureFooter {
- margin-top: 1.5rem;
- width: 100%;
- display: flex;
- justify-content: center;
-}
-
-.button {
- transition: all 0.3s ease;
- padding: 0.75rem 1.5rem;
- font-weight: 600;
- border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
- text-align: center;
-}
-
-.button:hover {
- transform: translateY(-3px);
- box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
-}
-
-@keyframes fadeInUp {
- from {
- opacity: 0;
- transform: translateY(20px);
- }
-
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-
-@media (max-width: 768px) {
- .featureItem {
- flex: 1 1 100%;
- margin-bottom: 1.5rem;
- }
-
- .featuresRow {
- flex-direction: column;
- gap: 1.5rem;
- }
-
- .featureImageContainer {
- width: 90px;
- height: 90px;
- }
-
- .featureContent h3 {
- font-size: 1.25rem;
- }
-}
\ No newline at end of file
diff --git a/frontend/src/components/LauncherSim/JoinPrompt.module.css b/frontend/src/components/LauncherSim/JoinPrompt.module.css
new file mode 100644
index 000000000000..3aac7f77b1fa
--- /dev/null
+++ b/frontend/src/components/LauncherSim/JoinPrompt.module.css
@@ -0,0 +1,126 @@
+/* Sizes follow the launcher's JoinServerPrompt styles after its sc() scaler. */
+.prompt {
+ position: relative;
+ width: 100%;
+ max-width: 21.25rem;
+ overflow: hidden;
+ border-radius: 9px;
+ background: var(--omp-surface);
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
+ color: var(--omp-ink);
+ font-size: 0.875rem;
+ line-height: 1.35;
+ text-align: left;
+}
+
+.banner {
+ display: flex;
+ height: 5rem;
+ align-items: center;
+ justify-content: center;
+ background:
+ linear-gradient(rgba(20, 16, 50, 0.45), rgba(20, 16, 50, 0.45)),
+ url(/images/assets/hero-bg.jpg) center / cover;
+ color: #fff;
+ font-size: 1.75rem;
+ font-weight: 800;
+ letter-spacing: -0.02em;
+}
+
+.close {
+ position: absolute;
+ top: 0.5rem;
+ right: 0.5rem;
+ display: flex;
+ width: 1.5rem;
+ height: 1.5rem;
+ align-items: center;
+ justify-content: center;
+ border-radius: 4px;
+ background: #897af1;
+}
+
+
+.closeIcon {
+ background-color: #fff !important;
+}
+
+.logoRow {
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+ height: 2.25rem;
+ padding: 0.45rem 1.1rem 0 0.6rem;
+}
+
+.logo {
+ display: grid;
+ width: 4.375rem;
+ height: 4.375rem;
+ flex: none;
+ place-items: center;
+ margin-top: -2.5rem;
+ border: 2px solid var(--omp-surface);
+ border-radius: 50%;
+ background: var(--omp-item);
+}
+
+.play {
+ background-color: #897af1 !important;
+}
+
+.info {
+ padding: 0.6rem 0.95rem 0;
+}
+
+.infoLine {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.form {
+ padding: 0.75rem 0.95rem 0.95rem;
+}
+
+.input {
+ display: flex;
+ height: 2.05rem;
+ align-items: center;
+ margin-top: 0.25rem;
+ padding: 0 0.55rem;
+ border-radius: 4px;
+ background: var(--omp-input);
+ color: var(--omp-faint);
+ font-style: italic;
+}
+
+.version {
+ display: flex;
+ align-items: center;
+ gap: 0.55rem;
+ margin-top: 0.6rem;
+}
+
+.version span {
+ display: flex;
+ height: 1.65rem;
+ flex: 1;
+ align-items: center;
+ justify-content: center;
+ border-radius: 4px;
+ background: var(--omp-input);
+}
+
+.connect {
+ display: flex;
+ height: 2.05rem;
+ align-items: center;
+ justify-content: center;
+ margin-top: 0.75rem;
+ border-radius: 4px;
+ background: var(--omp-primary);
+ color: #fff !important;
+ font-weight: 600;
+ text-decoration: none !important;
+}
diff --git a/frontend/src/components/LauncherSim/JoinPrompt.tsx b/frontend/src/components/LauncherSim/JoinPrompt.tsx
new file mode 100644
index 000000000000..03445e23f0ee
--- /dev/null
+++ b/frontend/src/components/LauncherSim/JoinPrompt.tsx
@@ -0,0 +1,58 @@
+import Translate from "@docusaurus/Translate";
+import React from "react";
+
+import { Icon } from "./index";
+import styles from "./JoinPrompt.module.css";
+
+// The launcher's join dialog (src/containers/JoinServerPrompt in the launcher repo).
+// A picture used in the homepage bento; nothing in it is clickable.
+type Props = {
+ name: string;
+ address: string;
+ players: string;
+ nickname?: string;
+};
+
+const JoinPrompt = ({ name, address, players, nickname = "Ghost" }: Props): React.ReactElement => {
+ const connect = Connect ;
+ const closeIcon = ;
+
+ return (
+
+
+
+ Your Server
+
+
+
{closeIcon}
+
+
+
+
+
+
+
+
+ Server : {name}
+
+
+ Address : {address}
+
+
+ Players : {players}
+
+
+
+
Nickname :
+
{nickname}
+
+ SA-MP Version :
+ 0.3.7-R1 ▾
+
+
{connect}
+
+
+ );
+};
+
+export default JoinPrompt;
diff --git a/frontend/src/components/LauncherSim/index.tsx b/frontend/src/components/LauncherSim/index.tsx
new file mode 100644
index 000000000000..4b2745c97054
--- /dev/null
+++ b/frontend/src/components/LauncherSim/index.tsx
@@ -0,0 +1,517 @@
+import Translate, { translate } from "@docusaurus/Translate";
+import clsx from "clsx";
+import React, { useEffect, useState, type CSSProperties, type ReactNode } from "react";
+
+import styles from "./styles.module.css";
+
+// A static picture of the open.mp launcher window, drawn in HTML (openmultiplayer/
+// launcher, src/containers). Nothing in it is clickable. Every server here is made up on purpose: the front page must
+// not promote real servers, and the addresses are from the reserved 192.0.2.0/24
+// documentation range. When the launcher's layout or theme changes, this file and
+// its stylesheet follow by hand.
+
+const ICONS = "/images/launcher";
+const PING_POINTS = 25;
+
+export type SampleServer = {
+ address: string;
+ name: string;
+ mode: string;
+ language: string;
+ ping: number;
+ players: number;
+ maxPlayers: number;
+ omp: boolean;
+ password: boolean;
+ partner: boolean;
+};
+
+const sample = (
+ id: number,
+ name: string,
+ mode: string,
+ language: string,
+ ping: number,
+ players: number,
+ maxPlayers: number,
+ flags: { omp?: boolean; password?: boolean; partner?: boolean } = {},
+): SampleServer => ({
+ address: `192.0.2.${id}:7777`,
+ name,
+ mode,
+ language,
+ ping,
+ players,
+ maxPlayers,
+ omp: flags.omp ?? false,
+ password: flags.password ?? false,
+ partner: flags.partner ?? false,
+});
+
+export const SAMPLE_SERVERS: SampleServer[] = [
+ sample(13, "Demo Cops & Robbers", "Cops and Robbers", "English", 48, 198, 300),
+ sample(10, "Example Roleplay | Sample Server", "Roleplay", "English", 34, 428, 500, { omp: true, partner: true }),
+ sample(18, "Sample Zombie Survival", "Survival", "English", 83, 52, 100),
+ sample(15, "Sample Deathmatch Arena", "Deathmatch", "Russian", 118, 131, 200),
+ sample(11, "Demo Freeroam #1", "Freeroam", "English", 52, 312, 500, { omp: true }),
+ sample(20, "Demo Private Community", "Roleplay", "English", 29, 18, 50, { omp: true, password: true }),
+ sample(16, "Example Trucking Company", "Trucking", "English", 44, 87, 150, { omp: true }),
+ sample(22, "Example Build Server", "Sandbox", "English", 58, 6, 32, { omp: true, password: true }),
+ sample(12, "Sample Stunt Arena", "Stunts", "Spanish", 71, 246, 300, { omp: true, partner: true }),
+ sample(19, "Example Mini-Games", "Mini-games", "Polish", 67, 41, 100, { omp: true }),
+ sample(14, "Example Drift Club", "Drift", "Portuguese", 96, 154, 200, { omp: true }),
+ sample(23, "Demo Testing Grounds", "Sandbox", "English", 25, 0, 32, { omp: true }),
+ sample(17, "Demo Race Series", "Racing", "German", 39, 64, 100, { omp: true }),
+ sample(21, "Sample Derby Nights", "Derby", "Turkish", 142, 12, 50),
+];
+
+const PLAYER_NAMES = [
+ "Ghost", "Nitro", "Rookie", "Sprinter", "Wheelie", "Bandit",
+ "Drifter", "Comet", "Falcon", "Maverick", "Pixel", "Turbo",
+];
+
+const playersOf = (server: SampleServer) =>
+ PLAYER_NAMES.slice(0, Math.min(server.players, PLAYER_NAMES.length))
+ .map((name, index) => ({
+ name,
+ score: ((server.ping * (index + 3) * 37) % 900) + 12,
+ }))
+ .sort((a, b) => b.score - a.score);
+
+const rulesOf = (server: SampleServer): [string, string][] => [
+ ["allowed_clients", "0.3.7, 0.3.DL"],
+ ["artwork", server.omp ? "Yes" : "No"],
+ ["lagcomp", "On"],
+ ["mapname", "San Andreas"],
+ ["version", server.omp ? "omp" : "0.3.7-R2"],
+ ["weather", String(server.ping % 20)],
+ ["weburl", "example.com"],
+ ["worldtime", `${String(server.ping % 24).padStart(2, "0")}:00`],
+];
+
+export const Icon = ({
+ name,
+ size = 16,
+ className,
+}: {
+ name: string;
+ size?: number;
+ className?: string;
+}) => (
+
+);
+
+const nextPing = (base: number, previous: number) => {
+ const swing = Math.max(3, base * 0.12);
+ const moved = previous + (Math.random() - 0.5) * swing;
+ return Math.round(Math.min(base + swing * 2, Math.max(Math.max(5, base - swing * 2), moved)));
+};
+
+const PingChart = ({ server }: { server: SampleServer }) => {
+ const [points, setPoints] = useState(() => Array(PING_POINTS).fill(server.ping));
+
+ useEffect(() => {
+ let current = Array(PING_POINTS).fill(server.ping).map((value) => nextPing(server.ping, value));
+ setPoints(current);
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return undefined;
+ const timer = window.setInterval(() => {
+ current = [...current.slice(1), nextPing(server.ping, current[current.length - 1])];
+ setPoints(current);
+ }, 1500);
+ return () => window.clearInterval(timer);
+ }, [server.ping]);
+
+ const top = Math.max(...points) + 6;
+ const bottom = Math.max(0, Math.min(...points) - 6);
+ const path = points
+ .map((value, index) => {
+ const x = (index / (PING_POINTS - 1)) * 100;
+ const y = 100 - ((value - bottom) / (top - bottom)) * 100;
+ return `${x.toFixed(2)},${y.toFixed(2)}`;
+ })
+ .join(" ");
+
+ return (
+
+
+ {Math.round(top)}
+ {Math.round((top + bottom) / 2)}
+ {Math.round(bottom)}
+
+
+
+ );
+};
+
+const TABS: { id: string; icon: string; label: ReactNode }[] = [
+ {
+ id: "favorites",
+ icon: "fav_tab",
+ label: Favorites ,
+ },
+ {
+ id: "internet",
+ icon: "internet",
+ label: Internet ,
+ },
+ {
+ id: "partners",
+ icon: "partner",
+ label: Partners ,
+ },
+ {
+ id: "recent",
+ icon: "recently",
+ label: Recently Joined ,
+ },
+];
+
+// The launcher's parts, shared by the full window below and the homepage feature cards.
+export const LauncherNavBar = ({ active, nickname }: { active: string; nickname?: ReactNode }) => (
+
+
+ {TABS.map((item) => (
+
+
+ {item.label}
+
+ ))}
+
+ {nickname ?? (
+
+
+
+
+
+ Nickname...
+
+
+)}
+
+);
+
+export const LauncherSearchRow = ({ text, filtered = false }: { text?: ReactNode; filtered?: boolean }) => (
+
+
+
+
+
+
+
+ {text ?? (
+Search for server hostname/mode
+)}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+);
+
+export const LauncherListHeader = () => (
+
+
+
+
+
+ Name
+
+
+ Ping
+
+
+ Mode
+
+
+ Players
+
+
+);
+
+export const LauncherServerRow = ({
+ server,
+ selected = false,
+ hover = false,
+}: {
+ server: SampleServer;
+ selected?: boolean;
+ hover?: boolean;
+}) => (
+
+
+
+
+
+
+ {server.omp && (
+
+)}
+ {server.name}
+
+ {server.ping}
+ {server.mode}
+
+ {server.players}
+ /{server.maxPlayers}
+
+
+
+);
+
+// The menu a right click on a server opens (launcher: containers/ServerContextMenu).
+export const LauncherServerMenu = ({ hovered }: { hovered?: "favorite" }) => (
+
+
+
+
+
+
+
+
Add to Favorites
+
+
+
+
+
+
+);
+
+// The Rule and Value panel, showing a few of the selected server's rules.
+export const LauncherRules = ({ server, names }: { server: SampleServer; names: string[] }) => (
+
+
+ Rule
+ Value
+
+
+ {rulesOf(server)
+ .filter(([name]) => names.includes(name))
+ .map(([name, value]) => (
+
+ {name}
+ {value}
+
+ ))}
+
+
+);
+
+const Check = ({ on = false }: { on?: boolean }) => ;
+
+// The filter panel (launcher: containers/FilterModal).
+export const LauncherFilterModal = ({ ompOnly = false }: { ompOnly?: boolean }) => (
+
+
+ Filters:
+
+
+
+ Only open.mp servers
+
+
+
+ Non-empty Servers
+
+
+
+ Unpassworded Servers
+
+
+ Language:
+
+
+ {["English", "Russian", "Spanish", "Polish", "German", "Turkish"].map((name) => (
+
+
+ {name}
+
+ ))}
+
+
+);
+
+// A notification, as the launcher shows when a server is favorited.
+export const LauncherNotification = ({ server }: { server: SampleServer }) => (
+
+
+ Added to Favorites!
+
+ {server.name}
+
+);
+
+// A cropped part of the launcher. It's laid out `width` wide like the real list, so its columns
+// keep their proportions, and zoomed so that `view` of that fills its parent. What's left over
+// runs off the edge, as in a cropped screenshot.
+export const LauncherPiece = ({
+ width = 640,
+ view,
+ children,
+}: {
+ width?: number;
+ view: number;
+ children: ReactNode;
+}) => (
+
+);
+
+const LauncherSim = (): React.ReactElement => {
+ const selected = SAMPLE_SERVERS[0];
+
+ return (
+
+
+
+
+
+
+
+
Open Multiplayer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {SAMPLE_SERVERS.map((server) => (
+
+ ))}
+
+
+
+
+
+ Player
+ Score
+
+
+ {playersOf(selected).map((player) => (
+
+ {player.name}
+ {player.score}
+
+ ))}
+
+
+ Rule
+ Value
+
+
+ {rulesOf(selected).map(([name, value]) => (
+
+ {name}
+ {value}
+
+ ))}
+
+
+
+
+
+
+
+
+ {selected.omp ? (
+
+ ) : (
+
+ )}
+
+
{selected.name}
+
+
+
+ {selected.address}
+
+ COPY
+
+
+
+
+ {selected.players}/{selected.maxPlayers}
+
+
+
+
+
+ {selected.language}
+
+
+
+ {selected.mode}
+
+
+
+ Add to Favorites
+
+
+
+
+
+
+
+ );
+};
+
+export default LauncherSim;
diff --git a/frontend/src/components/LauncherSim/styles.module.css b/frontend/src/components/LauncherSim/styles.module.css
new file mode 100644
index 000000000000..b0c3b801fdd0
--- /dev/null
+++ b/frontend/src/components/LauncherSim/styles.module.css
@@ -0,0 +1,755 @@
+/* Sizes are the launcher's own values after its sc() scaler (n / 1.15).
+ Colours are src/constants/theme.ts in the launcher repo. */
+.launcher {
+ --primary: #897af1;
+ --secondary: #ffffff;
+ --text-primary: #1a1a1e;
+ --text-secondary: #1a1a1e80;
+ --text-muted: #1a1a1eaa;
+ --item: #f3f6fc;
+ --input: #f3f6fc;
+ --row: #e9ecf280;
+ --row-hover: #e9ecf2;
+ --score: #e2e6ee;
+ --grid: #1a1a1e1a;
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ height: 700px;
+ overflow: hidden;
+ background: var(--secondary);
+ color: var(--text-primary);
+ font-family: Inter, sans-serif;
+ font-size: 14.8px;
+ line-height: 1.2;
+ text-align: left;
+ pointer-events: none;
+ user-select: none;
+}
+
+.window {
+ display: flex;
+ height: 100%;
+ flex-direction: column;
+}
+
+:global([data-theme="dark"]) .launcher {
+ --secondary: #1a1a1e;
+ --text-primary: #fafafa;
+ --text-secondary: #ffffff40;
+ --text-muted: #ffffffaa;
+ --item: #222227;
+ --input: #16161a;
+ --row: #30303880;
+ --row-hover: #303038;
+ --score: #1a1a1e66;
+ --grid: #ffffff14;
+}
+
+.showInDark {
+ display: none;
+}
+
+:global([data-theme="dark"]) .showInDark {
+ display: block;
+}
+
+:global([data-theme="dark"]) .showInLight {
+ display: none;
+}
+
+.launcher p {
+ margin: 0;
+}
+
+.icon {
+ display: inline-block;
+ flex: none;
+ background-color: var(--text-secondary);
+ -webkit-mask: var(--icon) center / contain no-repeat;
+ mask: var(--icon) center / contain no-repeat;
+}
+
+.iconPrimary {
+ background-color: var(--text-primary);
+}
+
+.iconRed {
+ background-color: #ff0000;
+}
+
+.ellipsis {
+ overflow: hidden;
+ min-width: 0;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+/* Title bar */
+.titleBar {
+ display: flex;
+ flex: none;
+ align-items: center;
+ justify-content: space-between;
+ padding: 13px 13px 7px;
+}
+
+.titleLeft,
+.titleRight {
+ display: flex;
+ align-items: center;
+}
+
+.logoBox,
+.squareBox,
+.squareButton {
+ position: relative;
+ display: flex;
+ flex: none;
+ width: 30px;
+ height: 30px;
+ align-items: center;
+ justify-content: center;
+ border-radius: 4px;
+ background-color: var(--item);
+}
+
+.logoBox {
+ width: 28px;
+ height: 28px;
+}
+
+.title {
+ margin-left: 10px;
+ font-size: 15px;
+ font-weight: 600;
+}
+
+.themeButton {
+ display: flex;
+ width: 26px;
+ height: 26px;
+ align-items: center;
+ justify-content: center;
+ margin-right: 9px;
+}
+
+.windowButtons {
+ display: flex;
+ margin-left: 14px;
+}
+
+.windowButtons > span {
+ display: flex;
+ width: 26px;
+ height: 26px;
+ align-items: center;
+ justify-content: center;
+ border-radius: 3px;
+}
+
+/* Body */
+.body {
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ min-height: 0;
+ padding: 0 13px 13px;
+}
+
+.navBar {
+ display: flex;
+ flex: none;
+ align-items: center;
+ justify-content: space-between;
+ height: 30px;
+}
+
+.tabs {
+ display: flex;
+ min-width: 0;
+ gap: 9px;
+}
+
+.tab {
+ display: flex;
+ height: 30px;
+ align-items: center;
+ gap: 9px;
+ padding: 0 9px;
+ border-radius: 4px;
+ background-color: var(--item);
+ font-size: 15px;
+ font-weight: 600;
+ white-space: nowrap;
+}
+
+.tab > * {
+ opacity: 0.25;
+ transition: opacity 150ms ease;
+}
+
+.tabActive {
+ box-shadow: 0 0 5px rgba(255, 255, 255, 0.17);
+}
+
+.tabActive > * {
+ opacity: 1 !important;
+}
+
+.tabActive .tabLabel {
+ text-shadow: 0 0 4px rgba(132, 119, 183, 0.5);
+}
+
+.nickname {
+ display: flex;
+ flex: none;
+ align-items: center;
+ margin-left: 9px;
+}
+
+.nicknameField {
+ display: flex;
+ width: 139px;
+ height: 30px;
+ align-items: center;
+ margin-left: 9px;
+ padding: 0 5px;
+ border-radius: 4px;
+ background: var(--input);
+ color: var(--text-secondary);
+}
+
+/* Search row */
+.searchRow {
+ display: flex;
+ flex: none;
+ align-items: center;
+ height: 52px;
+}
+
+.search {
+ display: flex;
+ flex: 1;
+ min-width: 0;
+ height: 31px;
+ align-items: center;
+ margin: 0 9px;
+ padding-left: 9px;
+ border-radius: 4px;
+ background: var(--input);
+}
+
+.searchText {
+ overflow: hidden;
+ min-width: 0;
+ padding: 0 5px;
+ color: var(--text-secondary);
+ white-space: nowrap;
+}
+
+.actions {
+ display: flex;
+ flex: none;
+ align-items: center;
+ gap: 9px;
+}
+
+.action {
+ display: flex;
+ width: 30px;
+ height: 30px;
+ align-items: center;
+ justify-content: center;
+ border-radius: 4px;
+ transition: opacity 150ms ease;
+}
+
+.actionPlay {
+ background-color: var(--primary);
+ filter: drop-shadow(0 0 20px #897af144);
+}
+
+.actionPlay .icon {
+ background-color: #fff;
+}
+
+.actionFavorite {
+ background-color: #c8302f;
+ filter: drop-shadow(0 0 20px #c8302f44);
+}
+
+.actionFavorite .icon {
+ background-color: #ffffffdd;
+}
+
+.actionAdd {
+ background-color: #7af1aa;
+ filter: drop-shadow(0 0 20px #7af1aa44);
+}
+
+.actionAdd .icon {
+ background-color: #3b833d;
+}
+
+/* Server list */
+.serverSection {
+ display: flex;
+ flex: 1;
+ min-height: 0;
+}
+
+.listColumn {
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ min-width: 0;
+}
+
+.listHeader {
+ display: flex;
+ flex: none;
+ align-items: center;
+ height: 26px;
+ padding-right: 11px;
+ color: var(--text-secondary);
+ font-weight: 600;
+}
+
+.statusCell {
+ display: flex;
+ flex: none;
+ width: 28px;
+ height: 28px;
+ align-items: center;
+ justify-content: center;
+ margin-right: 9px;
+ border-radius: 4px;
+}
+
+.headName {
+ flex: 1;
+ min-width: 0;
+ padding-left: 5px;
+ text-align: left;
+}
+
+.headPing,
+.cellPing {
+ flex: none;
+ width: 50px;
+ text-align: center;
+}
+
+.headMode,
+.cellMode {
+ flex: none;
+ width: 170px;
+ padding-left: 10px;
+ text-align: center;
+}
+
+.headPlayers,
+.cellPlayers {
+ flex: none;
+ width: 80px;
+ padding-right: 5px;
+ text-align: right;
+}
+
+.list {
+ flex: 1;
+ min-height: 0;
+ overflow: hidden;
+}
+
+.row {
+ display: flex;
+ width: 100%;
+ height: 28px;
+ align-items: stretch;
+ margin-bottom: 6px;
+ padding-right: 4px;
+ text-align: left;
+}
+
+.statusOpen {
+ background: #7af1aa1a;
+}
+
+.statusOpen .icon {
+ background-color: #7af1aa;
+}
+
+.statusLocked {
+ background: #eb40343a;
+}
+
+.statusLocked .icon {
+ background-color: #eb4034;
+}
+
+.rowInner {
+ display: flex;
+ flex: 1;
+ min-width: 0;
+ align-items: center;
+ border-radius: 4px;
+ background: var(--row);
+ transition: background-color 0.4s;
+}
+
+.rowSelected .rowInner {
+ background: #897af17d;
+}
+
+.cellName {
+ display: flex;
+ flex: 1;
+ min-width: 0;
+ align-items: center;
+ padding-left: 9px;
+}
+
+.ompMark {
+ flex: none;
+ margin-right: 7px;
+ margin-left: -5px;
+ filter: drop-shadow(0 0 8px #897af1cc);
+}
+
+.cellPing {
+ color: var(--text-secondary);
+}
+
+.cellPlayers small {
+ color: var(--text-muted);
+ font-size: inherit;
+}
+
+.empty {
+ padding: 40px 16px;
+ color: var(--text-muted);
+ text-align: center;
+}
+
+/* Player and rule panels */
+.side {
+ display: flex;
+ flex: none;
+ flex-direction: column;
+ width: 25%;
+ min-height: 0;
+ margin-left: 13px;
+}
+
+.sideHead {
+ display: flex;
+ flex: none;
+ justify-content: space-between;
+ padding: 5px 12px 6px 9px;
+ color: var(--text-secondary);
+ font-weight: 600;
+}
+
+.panel {
+ flex: 1;
+ min-height: 0;
+ padding: 11px 13px;
+ overflow: hidden;
+ border-radius: 5px;
+ background: var(--item);
+}
+
+.ruleRow {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+ min-height: 23px;
+ margin-bottom: 4px;
+ font-size: 13.9px;
+}
+
+.ruleValue {
+ flex: none;
+ max-width: 58%;
+ padding: 4px 6px;
+ border-radius: 4px;
+ background: var(--score);
+ color: var(--text-secondary);
+ font-size: 12.2px;
+}
+
+/* Bottom bar */
+.bottomBar {
+ display: flex;
+ flex: none;
+ gap: 16px;
+ height: 83px;
+ margin-top: 8px;
+ font-size: 13px;
+ font-weight: 600;
+}
+
+.bottomLeft,
+.bottomRight {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ justify-content: space-between;
+ min-width: 0;
+}
+
+.bottomLeft {
+ flex: 0.36;
+}
+
+.bottomRight {
+ flex: 0.24;
+}
+
+.prop {
+ display: flex;
+ max-width: 100%;
+ align-items: center;
+ gap: 7px;
+}
+
+.propIcon {
+ display: flex;
+ flex: none;
+ width: 24px;
+ height: 24px;
+ align-items: center;
+ justify-content: center;
+ border-radius: 4px;
+ background: var(--item);
+}
+
+.copy {
+ display: flex;
+ flex: none;
+ align-items: center;
+ height: 22px;
+ padding: 0 5px;
+ border-radius: 4px;
+ background-color: var(--primary);
+ color: #fff;
+ font-size: 12px;
+ font-weight: 600;
+}
+
+.favoriteButton {
+ display: flex;
+ height: 24px;
+ align-items: center;
+ gap: 7px;
+ padding: 0 9px;
+ border-radius: 4px;
+ background-color: var(--primary);
+ color: #fff;
+ font-weight: 600;
+ white-space: nowrap;
+}
+
+.pingChart {
+ display: flex;
+ flex: 0.4;
+ gap: 6px;
+ min-width: 0;
+ color: var(--text-muted);
+ font-size: 10.5px;
+ font-weight: 400;
+}
+
+.pingAxis {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ text-align: right;
+}
+
+.pingPlot {
+ flex: 1;
+ min-width: 0;
+ overflow: hidden;
+ border-radius: 4px;
+ background-image:
+ linear-gradient(var(--grid) 1px, transparent 1px),
+ linear-gradient(90deg, var(--grid) 1px, transparent 1px);
+ background-size: 8% 25%;
+}
+
+.pingPlot svg {
+ display: block;
+ width: 100%;
+ height: 100%;
+}
+
+.pingPlot polyline {
+ fill: none;
+ stroke: var(--primary);
+ stroke-width: 2;
+ vector-effect: non-scaling-stroke;
+}
+
+/* A part of the launcher on its own: same sizes as the window, scaled as one picture */
+.piece {
+ width: var(--piece-width);
+ height: auto;
+ min-height: 100%;
+ padding-top: 13px;
+ background: none;
+ direction: ltr;
+ --zoom-view: var(--piece-view);
+ transform: scale(tan(atan2(100cqw, var(--zoom-view))));
+ transform-origin: 0 0;
+}
+
+.filterOn .icon {
+ background-color: var(--primary);
+}
+
+.filterModal {
+ position: absolute;
+ z-index: 4;
+ top: 58px;
+ left: 13px;
+ display: flex;
+ width: 217px;
+ height: 348px;
+ flex-direction: column;
+ padding: 9px 9px 10px;
+ border-radius: 5px;
+ background: var(--secondary);
+ box-shadow: 0 3px 7px rgba(0, 0, 0, 0.49);
+ font-size: 13.8px;
+}
+
+.filterModal b {
+ font-weight: 600;
+}
+
+.filterOption {
+ display: flex;
+ align-items: center;
+ gap: 7px;
+ margin-top: 5px;
+}
+
+.filterOption[data-first] {
+ margin-top: 9px;
+}
+
+.filterHeading {
+ margin-top: 9px;
+}
+
+.filterLanguages {
+ flex: 1;
+ margin-top: 5px;
+ padding: 4px 5px;
+ overflow: hidden;
+ border-radius: 4px;
+ background: var(--item);
+}
+
+.filterLanguage {
+ display: flex;
+ align-items: center;
+ gap: 9px;
+ margin-bottom: 6px;
+}
+
+.check {
+ width: 16px;
+ height: 16px;
+ flex: none;
+ border-radius: 3px;
+ background: var(--input);
+ box-shadow: inset 0 0 0 1px var(--grid);
+ transition: background-color 120ms ease;
+}
+
+.checkOn {
+ background:
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat,
+ var(--primary);
+}
+
+.notification {
+ position: absolute;
+ z-index: 4;
+ top: 13px;
+ left: 130px;
+ display: flex;
+ width: 240px;
+ flex-direction: column;
+ gap: 3px;
+ padding: 9px 12px;
+ border-left: 3px solid var(--primary);
+ border-radius: 4px;
+ background: var(--secondary);
+ box-shadow: 0 3px 7px rgba(0, 0, 0, 0.6);
+ font-size: 13.8px;
+}
+
+.notification b {
+ font-weight: 600;
+}
+
+.notification span {
+ color: var(--text-muted);
+}
+
+.panelShort {
+ flex: none;
+ padding: 7px 13px 3px;
+}
+
+/* Small tiles show a little less of the window, so the text stays readable */
+@media (max-width: 720px) {
+ .piece {
+ --zoom-view: calc(var(--piece-view) * 0.82);
+ }
+}
+
+.searchTyped {
+ color: var(--text-primary);
+}
+
+.rowHover .rowInner {
+ background: var(--row-hover);
+}
+
+.iconAccent {
+ background-color: var(--primary);
+}
+
+.menu {
+ width: 178px;
+ overflow: hidden;
+ border-radius: 4px;
+ background: var(--secondary);
+ box-shadow: 0 3px 5px rgba(0, 0, 0, 0.8);
+ font-size: 14.8px;
+ font-weight: 600;
+}
+
+.menuItem {
+ display: flex;
+ height: 34px;
+ align-items: center;
+ gap: 6px;
+ padding: 0 10px;
+ white-space: nowrap;
+ transition: background-color 120ms ease;
+}
+
+.menuItemHover {
+ background: var(--primary);
+ color: #fff;
+}
+
diff --git a/frontend/src/components/PhoneFrame/index.tsx b/frontend/src/components/PhoneFrame/index.tsx
new file mode 100644
index 000000000000..85fd34c87762
--- /dev/null
+++ b/frontend/src/components/PhoneFrame/index.tsx
@@ -0,0 +1,21 @@
+import React, { type ReactNode } from "react";
+
+import styles from "./styles.module.css";
+
+// Turns the phone in the homepage hero on or off.
+export const SHOW_PHONE = true;
+
+const PhoneFrame = ({ children }: { children?: ReactNode }): React.ReactElement => (
+
+
+
+ {children ?? (
+
+
+
+ )}
+
+
+);
+
+export default PhoneFrame;
diff --git a/frontend/src/components/PhoneFrame/styles.module.css b/frontend/src/components/PhoneFrame/styles.module.css
new file mode 100644
index 000000000000..430de965a8e3
--- /dev/null
+++ b/frontend/src/components/PhoneFrame/styles.module.css
@@ -0,0 +1,69 @@
+.phone {
+ width: 100%;
+ aspect-ratio: 9 / 19;
+ padding: 0.5rem;
+ border-radius: 2rem;
+ background: #0d0d10;
+ box-shadow:
+ 0 0 0 1px rgba(255, 255, 255, 0.12),
+ 0 24px 60px -16px rgba(10, 8, 30, 0.75);
+}
+
+.screen {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ border-radius: 1.55rem;
+ background: var(--omp-surface);
+ color: var(--omp-ink);
+}
+
+.notch {
+ position: absolute;
+ z-index: 1;
+ top: 0.5rem;
+ left: 50%;
+ width: 4.5rem;
+ height: 1.1rem;
+ border-radius: 999px;
+ background: #0d0d10;
+ transform: translateX(-50%);
+}
+
+.placeholder {
+ display: flex;
+ height: 100%;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 0.75rem;
+ padding: 1rem;
+ color: var(--omp-faint);
+ font-size: 0.8125rem;
+ text-align: center;
+}
+
+/* Drawn small on phones: shorter and with thinner edges, or it looks stretched. */
+@media (max-width: 720px) {
+ .phone {
+ aspect-ratio: 9 / 16;
+ padding: 0.25rem;
+ border-radius: 1.15rem;
+ }
+
+ .screen {
+ border-radius: 0.95rem;
+ }
+
+ .notch {
+ top: 0.3rem;
+ width: 2.5rem;
+ height: 0.625rem;
+ }
+
+ .placeholder img {
+ width: 30px;
+ height: 30px;
+ }
+}
diff --git a/frontend/src/components/ServerInfoPage.tsx b/frontend/src/components/ServerInfoPage.tsx
index 850038bd6da3..943b7b2d1983 100644
--- a/frontend/src/components/ServerInfoPage.tsx
+++ b/frontend/src/components/ServerInfoPage.tsx
@@ -5,6 +5,7 @@ import LoadingBanner from "@site/src/components/LoadingBanner";
import { API_ADDRESS } from "@site/src/constants";
import { formatElapsed } from "@site/src/lib/time";
import { ServerAllData } from "@site/src/types";
+import { Page, PageHeader } from "@site/src/components/ui/Page";
import Layout from "@theme/Layout";
import { useEffect, useState } from "react";
@@ -24,7 +25,7 @@ const BackLink: React.FC<{ to: string }> = ({ to }) => {
const isPartners = to === "/partners";
return (
-
+
{isPartners ? (
← Back to Partner Servers
) : (
@@ -40,10 +41,10 @@ const ServerLink = ({ address }: { address: string }) => {
href={address}
target="_blank"
rel="noopener noreferrer"
- className="server-info-quick-join-button"
+ className="button button--primary"
>
Quick Join
- →
+ {" →"}
);
};
@@ -52,7 +53,7 @@ const ServerAddressCopy = ({ address }: { address: string }) => {
const [hasCopied, setHasCopied] = useState(false);
const onCopy = () => {
- navigator.clipboard.writeText(address);
+ navigator.clipboard?.writeText(address);
setHasCopied(true);
setTimeout(() => setHasCopied(false), 2000);
};
@@ -60,11 +61,11 @@ const ServerAddressCopy = ({ address }: { address: string }) => {
return (
{address}
-
+
{hasCopied ? (
Copied
@@ -104,8 +105,8 @@ const UpdatedFooter = ({ lastUpdated }: { lastUpdated: string }) => {
}
return (
-
-
+
+
{
{"Last updated {time} ago"}
-
+
);
};
const Info = ({ data }: { data: ServerAllData }) => (
-
-
- {data.core.hn}
- {data.description && (
- {data.description}
- )}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Players Online
-
-
-
- {data.core.pc}/{data.core.pm}
-
-
-
-
-
-
- Language
-
-
- {data.core.la}
-
-
-
- {data.ru && (
-
-
-
-
-
-
- Rule
-
-
-
-
- Value
-
-
-
-
-
- {Object.entries(data.ru).map(([key, value]) => (
-
- {key}
-
- {key === "weburl" || key === "discord.invite" ? (
-
- {value}
-
- ) : (
- value
- )}
-
-
- ))}
-
-
-
- )}
+
+
+
+
+ >
+ }
+ />
+
+
+
+
+ Players Online
+
+ {data.core.pc}/{data.core.pm}
+
+
+
+ Language
+
+ {data.core.la}
+
+
+
+ Game Mode
+
+ {data.core.gm}
-
-
-
+ {data.ru && (
+
+
+
+ Rule
+
+
+ Value
+
+
+
+ {Object.entries(data.ru).map(([key, value]) => (
+
+
{key}
+
+ {key === "weburl" || key === "discord.invite" ? (
+ {value}
+ ) : (
+ value
+ )}
+
+
+ ))}
+
+
+ )}
);
@@ -238,7 +210,7 @@ const Content = ({ ip }: { ip: string }) => {
if (!data) {
return (
-
+
{
return (
-
+
+
+
+
);
};
diff --git a/frontend/src/components/ServerList/index.tsx b/frontend/src/components/ServerList/index.tsx
new file mode 100644
index 000000000000..e42143dc5832
--- /dev/null
+++ b/frontend/src/components/ServerList/index.tsx
@@ -0,0 +1,530 @@
+import { default as Translate, translate } from "@docusaurus/Translate";
+import NProgress from "nprogress";
+import React, { FormEvent, useEffect, useMemo, useRef, useState } from "react";
+import { FiChevronLeft, FiChevronRight } from "react-icons/fi";
+
+import { API_ADDRESS } from "../../constants";
+import { CoreServerData, ServerAllData } from "../../types";
+import ServerRow from "../ServerRow";
+import { showToast } from "../Toast";
+
+// The one server list. The servers page and the partners page both render this,
+// differing only by `partners`.
+
+const API_SERVERS = `${API_ADDRESS}/servers/`;
+
+export const getServers = async (): Promise => {
+ try {
+ const r: Response = await fetch(API_SERVERS);
+ const servers: CoreServerData[] = await r.json();
+ return servers;
+ } catch (e) {
+ return [];
+ }
+};
+
+type Stats = {
+ players: number;
+ servers: number;
+};
+
+const getStats = (servers: CoreServerData[]): Stats => ({
+ players: servers.map((s) => s.pc).reduce((acc, pc) => acc + pc, 0),
+ servers: servers.length,
+});
+
+type SortBy = "relevance" | "pc" | "hn" | "gm" | "la";
+
+type Query = {
+ search?: string;
+ showEmpty: boolean;
+ showOmpOnly: boolean;
+ showPassworded: boolean;
+ language: string;
+ sort: SortBy;
+};
+
+type LanguageFilter = {
+ name: string;
+ keywords: string[];
+};
+
+const languageFilters: LanguageFilter[] = [
+ { name: "English", keywords: ["English", "EN", "Eng"] },
+ { name: "Arabic", keywords: ["Arabic", "العربية"] },
+ { name: "Czech", keywords: ["Czech", "CZ", "Čeština"] },
+ { name: "Chinese", keywords: ["Chinese", "CN", "ZH", "中文"] },
+ { name: "Dutch", keywords: ["Dutch", "NL", "Nederlands"] },
+ { name: "French", keywords: ["French", "FR", "Français"] },
+ { name: "German", keywords: ["German", "DE", "GER", "Deutsch"] },
+ { name: "Hungarian", keywords: ["Hungarian", "HU", "Magyar"] },
+ { name: "Indonesian", keywords: ["Indonesian", "ID", "Bahasa Indonesia"] },
+ { name: "Italian", keywords: ["Italian", "IT", "Italiano"] },
+ { name: "Polish", keywords: ["Polish", "PL", "Polski"] },
+ { name: "Portuguese", keywords: ["Portuguese", "PT", "Português"] },
+ { name: "Romanian", keywords: ["Romanian", "RO", "Română"] },
+ { name: "Russian", keywords: ["Russian", "RU", "RUS", "Русский"] },
+ { name: "Spanish", keywords: ["Spanish", "ES", "Español"] },
+ { name: "Turkish", keywords: ["Turkish", "TR", "Türkçe"] },
+ { name: "Ukrainian", keywords: ["Ukrainian", "UK", "Українська"] },
+ { name: "Vietnamese", keywords: ["Vietnamese", "VI", "Viet Nam", "Tiếng Việt"] },
+];
+
+const checkLanguage = (serverLanguage: string, filterName: string) => {
+ if (!filterName) {
+ return true;
+ }
+
+ const filter = languageFilters.find((item) => item.name === filterName);
+
+ if (!filter) {
+ return true;
+ }
+
+ const normalizedLanguage = serverLanguage.toLowerCase();
+ return filter.keywords.some((keyword) =>
+ normalizedLanguage.includes(keyword.toLowerCase()),
+ );
+};
+
+// Filters data
+const filterServers = (data: CoreServerData[], q: Query): CoreServerData[] => {
+ let filteredData = [...data];
+
+ if (q.search) {
+ const searchTerm = q.search.toLowerCase();
+ filteredData = filteredData.filter(
+ (s) =>
+ s.ip.toLowerCase().includes(searchTerm) ||
+ s.hn.toLowerCase().includes(searchTerm) ||
+ s.gm.toLowerCase().includes(searchTerm),
+ );
+ }
+
+ if (!q.showEmpty) {
+ filteredData = filteredData.filter((s) => s.pc > 0);
+ }
+
+ if (q.showOmpOnly) {
+ filteredData = filteredData.filter((s) => s.omp === true);
+ }
+
+ if (!q.showPassworded) {
+ filteredData = filteredData.filter((s) => !s.pa);
+ }
+
+ if (q.language) {
+ filteredData = filteredData.filter((s) => checkLanguage(s.la, q.language));
+ }
+
+ // Sorting Logic
+ if (q.sort === "pc") {
+ filteredData.sort((a, b) => b.pc - a.pc); // Sort by players, descending
+ } else if (q.sort === "hn") {
+ filteredData.sort((a, b) => a.hn.localeCompare(b.hn));
+ } else if (q.sort === "gm") {
+ filteredData.sort((a, b) => a.gm.localeCompare(b.gm));
+ } else if (q.sort === "la") {
+ filteredData.sort((a, b) => a.la.localeCompare(b.la));
+ }
+ //Relevance would be the original order
+
+ return filteredData;
+};
+
+const StatsComponent = ({ stats: { players, servers } }: { stats: Stats }) => {
+ const average = players / servers;
+ const averageStr = (isNaN(average) ? 0 : average).toFixed(1);
+ return (
+
+ {players},
+ servers: {servers} ,
+ average: {averageStr} ,
+ }}
+ >
+ {
+ "{players} players on {servers} servers with an average of {average} players per server."
+ }
+
+
+ );
+};
+
+// AddServer Component
+const AddServer = ({ onAdd }: { onAdd: (server: ServerAllData) => void }) => {
+ const [value, setValue] = useState("");
+
+ const handleSubmit = async (e: FormEvent) => {
+ try {
+ e.preventDefault();
+ NProgress.start();
+
+ const response = await fetch(API_SERVERS, {
+ method: "POST",
+ mode: "cors",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({ ip: value }),
+ });
+
+ NProgress.inc();
+
+ if (response.status === 200) {
+ const server = (await response.json()) as ServerAllData;
+ onAdd(server);
+ showToast({
+ message: translate(
+ {
+ id: "servers.add.successMessage",
+ message:
+ "{serverName} is added to our pending list. If it's not available after maximum 48 hours, you can contact us on Discord!",
+ description:
+ "Toast message shown after submitting a server to the pending list",
+ },
+ { serverName: server.core.hn },
+ ),
+ title: translate({
+ id: "servers.add.successTitle",
+ message: "Server Submitted!",
+ description: "Toast title shown after a server submission succeeds",
+ }),
+ type: "success",
+ });
+ } else {
+ const error = (await response.json()) as { error: string };
+ showToast({
+ message: translate(
+ {
+ id: "servers.add.failureMessage",
+ message: "Status {status}: {error}",
+ description: "Toast message shown after a server submission fails",
+ },
+ { status: response.statusText, error: error?.error ?? "" },
+ ),
+ title: translate({
+ id: "servers.add.failureTitle",
+ message: "Submission failed!",
+ description: "Toast title shown after a server submission fails",
+ }),
+ type: "error",
+ });
+ }
+ } catch (error) {
+ showToast({
+ message: translate({
+ id: "servers.add.errorMessage",
+ message: "An error occurred while submitting the server",
+ description:
+ "Toast message shown after an unexpected server submission error",
+ }),
+ title: translate({
+ id: "servers.add.errorTitle",
+ message: "Error",
+ description: "Generic toast error title",
+ }),
+ type: "error",
+ });
+ } finally {
+ NProgress.done();
+ }
+ };
+
+ return (
+
+ );
+};
+
+
+const initialQuery: Query = {
+ search: "",
+ showEmpty: true,
+ showOmpOnly: false,
+ showPassworded: true,
+ language: "",
+ sort: "relevance",
+};
+
+const PAGE_SIZE = 50;
+
+// Page numbers to show: always the first and last, the current one and its neighbours,
+// with gaps (null) where pages are skipped.
+const pageNumbers = (current: number, total: number): (number | null)[] => {
+ const pages: (number | null)[] = [];
+ for (let page = 1; page <= total; page++) {
+ if (page === 1 || page === total || Math.abs(page - current) <= 1) {
+ pages.push(page);
+ } else if (pages[pages.length - 1] !== null) {
+ pages.push(null);
+ }
+ }
+ return pages;
+};
+
+const Pagination = ({
+ page,
+ total,
+ onChange,
+}: {
+ page: number;
+ total: number;
+ onChange: (page: number) => void;
+}) => {
+ if (total <= 1) return null;
+ return (
+
+ onChange(page - 1)}
+ aria-label={translate({ id: "servers.pages.previous", message: "Previous page", description: "Server list previous page button" })}
+ >
+
+
+ {pageNumbers(page, total).map((number, i) =>
+ number === null ? (
+ …
+ ) : (
+ onChange(number)}
+ aria-current={number === page ? "page" : undefined}
+ >
+ {number}
+
+ ),
+ )}
+ onChange(page + 1)}
+ aria-label={translate({ id: "servers.pages.next", message: "Next page", description: "Server list next page button" })}
+ >
+
+
+
+ );
+};
+
+const FilterCheck = ({
+ checked,
+ onChange,
+ children,
+}: {
+ checked: boolean;
+ onChange: (checked: boolean) => void;
+ children: React.ReactNode;
+}) => (
+
+ onChange(e.target.checked)} />
+ {children}
+
+);
+
+const ServerList = ({
+ data,
+ partners = false,
+}: {
+ data: CoreServerData[];
+ partners?: boolean;
+}): React.ReactElement => {
+ const [query, setQuery] = useState(initialQuery);
+ const [isModalOpen, setIsModalOpen] = useState(false);
+ const [page, setPage] = useState(1);
+ const top = useRef(null);
+
+ const filteredData = useMemo(() => {
+ const scoped = partners ? data.filter((server) => server.pr) : data;
+ return filterServers(scoped, query);
+ }, [data, partners, query]);
+
+ const pageCount = Math.max(1, Math.ceil(filteredData.length / PAGE_SIZE));
+ const currentPage = Math.min(page, pageCount);
+ const pageServers = filteredData.slice((currentPage - 1) * PAGE_SIZE, currentPage * PAGE_SIZE);
+
+ // New filters start over on the first page.
+ useEffect(() => {
+ setPage(1);
+ }, [query]);
+
+ // Changing page brings the top of the list back into view, if it has scrolled away.
+ const goToPage = (next: number) => {
+ setPage(next);
+ const el = top.current;
+ if (el && el.getBoundingClientRect().top < 0) {
+ const reduced = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
+ el.scrollIntoView({ behavior: reduced ? "auto" : "smooth", block: "start" });
+ }
+ };
+
+ return (
+
+
+
+
+ Name
+ Mode
+ {translate({ id: "servers.sort.language", message: "Language", description: "Sort by language" })}
+ Address
+ Players
+
+
+
+ {pageServers.map((server) => (
+
+ ))}
+
+
+
+
+ {isModalOpen && (
+
setIsModalOpen(false)}>
+
e.stopPropagation()}>
+
+
+ Add Server
+
+ setIsModalOpen(false)}
+ className="omp-modal-close"
+ aria-label={translate({
+ id: "servers.add.closeModal",
+ message: "Close add server modal",
+ description: "Accessible label for closing the add server modal",
+ })}
+ >
+ ×
+
+
+
+ Server address
+
+
setIsModalOpen(false)} />
+
+ ip:port }}
+ >
+ {"Use {format}"}
+
+
+
+
+ )}
+
+ );
+};
+
+export default ServerList;
diff --git a/frontend/src/components/ServerRow.tsx b/frontend/src/components/ServerRow.tsx
index 11b46801b8d2..c51de3aae33b 100644
--- a/frontend/src/components/ServerRow.tsx
+++ b/frontend/src/components/ServerRow.tsx
@@ -1,31 +1,24 @@
import Link from "@docusaurus/Link";
+import Translate, { translate } from "@docusaurus/Translate";
+import clsx from "clsx";
import { useState } from "react";
-import Translate from "@docusaurus/Translate";
-import { renderToStaticMarkup } from "react-dom/server";
-import { CoreServerData } from "../types";
- const translate = (id: string, message: string, description?: string) => {
- return renderToStaticMarkup(
- {message}
- );
- };
+import { Icon } from "./LauncherSim";
+import { CoreServerData } from "../types";
-const CopyBadge = ({ text }: { text: string }) => {
+const CopyAddress = ({ text }: { text: string }) => {
const [hasCopied, setHasCopied] = useState(false);
const onCopy = () => {
- navigator.clipboard.writeText(text);
+ navigator.clipboard?.writeText(text);
setHasCopied(true);
- setTimeout(() => setHasCopied(false), 2000); // Reset after 2 seconds
+ setTimeout(() => setHasCopied(false), 2000);
};
return (
-
-
{text}
-
+
+
{text}
+
{hasCopied ? (
COPIED
) : (
@@ -36,49 +29,54 @@ const CopyBadge = ({ text }: { text: string }) => {
);
};
+// A row of the launcher's server list.
const ServerRow = ({ server, from }: { server: CoreServerData; from?: string }) => {
- return (
-
-
-
-
{server.hn}
-
-
- {server.pr && (
-
- )}
- {server.omp && (
-
- )}
-
-
+ const ompLabel = translate({ id: "serverRow.ompTitle", message: "open.mp server", description: "open.mp server badge title" });
+ const partnerLabel = translate({ id: "serverRow.partnerTitle", message: "Has partnership!", description: "Partner server badge title" });
-
-
-
{server.gm}
-
-
- {server.pc} /{server.pm}
-
-
players
-
-
-
-
+ return (
+
+
+
+
+
+
+ {server.omp && (
+
+ )}
+ {server.pr && (
+
+ )}
+
{server.hn}
+
+
{server.gm}
+
{server.la}
+
+
+ {server.pc}
+ /{server.pm}
+
+ {" "}
+ players
+
+
+
);
};
diff --git a/frontend/src/components/ui/Carousel.tsx b/frontend/src/components/ui/Carousel.tsx
new file mode 100644
index 000000000000..a09b29a5da09
--- /dev/null
+++ b/frontend/src/components/ui/Carousel.tsx
@@ -0,0 +1,149 @@
+import { translate } from "@docusaurus/Translate";
+import React, { useCallback, useEffect, useRef, useState, type ReactNode } from "react";
+import { FiChevronLeft, FiChevronRight } from "react-icons/fi";
+
+const sideOf = (el: HTMLElement): 1 | -1 => (getComputedStyle(el).direction === "rtl" ? -1 : 1);
+
+// A swipeable row of slides with previous and next buttons that also moves along by itself.
+// The row's layout comes from className; the buttons and the fading of off-screen slides are
+// handled here and in ui.css.
+export const Carousel = ({
+ className,
+ children,
+ interval = 5000,
+}: {
+ className?: string;
+ children: ReactNode;
+ /** Milliseconds between automatic moves; 0 turns it off. */
+ interval?: number;
+}): React.ReactElement => {
+ const row = useRef
(null);
+ const [atStart, setAtStart] = useState(true);
+ const [atEnd, setAtEnd] = useState(false);
+
+ const update = useCallback(() => {
+ const el = row.current;
+ if (!el) return;
+ // Right-to-left rows scroll into negative numbers.
+ const side = sideOf(el);
+ const position = el.scrollLeft * side;
+ setAtStart(position <= 4);
+ // Centered slides stop short of the scroll limit, so the last slide reaching the
+ // middle also counts as the end.
+ const last = el.lastElementChild?.getBoundingClientRect();
+ const box = el.getBoundingClientRect();
+ const lastCentered = last ? ((last.left + last.right) / 2 - (box.left + box.right) / 2) * side <= 4 : false;
+ setAtEnd(lastCentered || position + el.clientWidth >= el.scrollWidth - 4);
+ }, []);
+
+ useEffect(() => {
+ const el = row.current;
+ if (!el) return undefined;
+ update();
+ // Also catches the row changing layout, not only the window resizing.
+ const observer = new ResizeObserver(update);
+ observer.observe(el);
+ return () => observer.disconnect();
+ }, [update]);
+
+ // Slides that aren't mostly on screen fade back, so only the current one stands out.
+ useEffect(() => {
+ const el = row.current;
+ if (!el) return undefined;
+ const observer = new IntersectionObserver(
+ (entries) => {
+ for (const entry of entries) {
+ entry.target.toggleAttribute("data-faded", entry.intersectionRatio < 0.75);
+ }
+ },
+ { root: el, threshold: [0, 0.75, 1] },
+ );
+ for (const slide of Array.from(el.children)) observer.observe(slide);
+ return () => observer.disconnect();
+ }, []);
+
+ const move = useCallback((direction: 1 | -1) => {
+ const el = row.current;
+ const card = el?.firstElementChild;
+ if (!el || !card) return;
+ const gap = parseFloat(getComputedStyle(el).columnGap) || 0;
+ const reduced = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
+ el.scrollBy({ left: direction * sideOf(el) * (card.getBoundingClientRect().width + gap), behavior: reduced ? "auto" : "smooth" });
+ }, []);
+
+ // Moves on by itself, and back to the start after the last slide. It waits while the
+ // visitor is pointing at, touching or focused in the row, while the row is off screen or
+ // the tab is hidden, and never runs for people who asked for reduced motion. Using the
+ // arrows or swiping restarts the wait, so it never moves right after they did.
+ const held = useRef(false);
+ const visible = useRef(false);
+ const lastMove = useRef(0);
+ useEffect(() => {
+ const el = row.current;
+ if (!el || interval <= 0) return undefined;
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return undefined;
+
+ const seen = new IntersectionObserver(([entry]) => {
+ visible.current = entry.isIntersecting && entry.intersectionRatio >= 0.5;
+ if (visible.current) lastMove.current = Date.now();
+ }, { threshold: [0, 0.5] });
+ seen.observe(el);
+
+ const timer = window.setInterval(() => {
+ if (held.current || !visible.current || document.hidden) return;
+ if (Date.now() - lastMove.current < interval) return;
+ lastMove.current = Date.now();
+ const side = sideOf(el);
+ const position = el.scrollLeft * side;
+ const last = el.lastElementChild?.getBoundingClientRect();
+ const box = el.getBoundingClientRect();
+ const lastCentered = last ? ((last.left + last.right) / 2 - (box.left + box.right) / 2) * side <= 4 : false;
+ if (lastCentered || position + el.clientWidth >= el.scrollWidth - 4) {
+ el.scrollTo({ left: 0, behavior: "smooth" });
+ } else {
+ move(1);
+ }
+ }, 250);
+
+ return () => {
+ window.clearInterval(timer);
+ seen.disconnect();
+ };
+ }, [interval, move]);
+
+ const hold = () => { held.current = true; };
+ const release = () => { held.current = false; lastMove.current = Date.now(); };
+
+ return (
+ { if (!event.currentTarget.contains(event.relatedTarget as Node)) release(); }}
+ >
+
{ lastMove.current = Date.now(); update(); }} tabIndex={0}>
+ {children}
+
+
+ { lastMove.current = Date.now(); move(-1); }}
+ aria-label={translate({ id: "carousel.previous", message: "Previous", description: "Carousel previous button" })}
+ >
+
+
+ { lastMove.current = Date.now(); move(1); }}
+ aria-label={translate({ id: "carousel.next", message: "Next", description: "Carousel next button" })}
+ >
+
+
+
+
+ );
+};
diff --git a/frontend/src/components/ui/Notice.tsx b/frontend/src/components/ui/Notice.tsx
new file mode 100644
index 000000000000..557b943dafcd
--- /dev/null
+++ b/frontend/src/components/ui/Notice.tsx
@@ -0,0 +1,56 @@
+import clsx from "clsx";
+import React, { type ReactNode } from "react";
+import { FiAlertOctagon, FiAlertTriangle, FiCheckCircle, FiInfo, FiX } from "react-icons/fi";
+
+export type NoticeType = "note" | "info" | "tip" | "warning" | "danger";
+
+const ICONS: Record = {
+ note: FiInfo,
+ info: FiInfo,
+ tip: FiCheckCircle,
+ warning: FiAlertTriangle,
+ danger: FiAlertOctagon,
+};
+
+// A quiet card for page notices: a small coloured icon says what kind it is, and the card
+// itself stays in the site's colours instead of a loud filled banner. Styled in ui.css.
+export const Notice = ({
+ type = "info",
+ title,
+ children,
+ onDismiss,
+ dismissLabel,
+ dismissDisabled,
+ className,
+}: {
+ type?: NoticeType;
+ title?: ReactNode;
+ children: ReactNode;
+ /** Shows a close button when given. */
+ onDismiss?: () => void;
+ dismissLabel?: string;
+ dismissDisabled?: boolean;
+ className?: string;
+}): React.ReactElement => {
+ const Icon = ICONS[type] ?? FiInfo;
+ return (
+
+
+
+ {title &&
{title} }
+
{children}
+
+ {onDismiss && (
+
+
+
+ )}
+
+ );
+};
diff --git a/frontend/src/components/ui/Page.tsx b/frontend/src/components/ui/Page.tsx
new file mode 100644
index 000000000000..b727df0628a4
--- /dev/null
+++ b/frontend/src/components/ui/Page.tsx
@@ -0,0 +1,39 @@
+import clsx from "clsx";
+import React, { type ReactNode } from "react";
+
+// Every standalone page is built from these two, so its width, spacing and header
+// styling are changed here and in src/css/ui.css, not page by page.
+export const Page = ({
+ children,
+ narrow = false,
+}: {
+ children: ReactNode;
+ narrow?: boolean;
+}): React.ReactElement => (
+ {children}
+);
+
+export const PageHeader = ({
+ title,
+ subtitle,
+ actions,
+}: {
+ title: ReactNode;
+ subtitle?: ReactNode;
+ actions?: ReactNode;
+}): React.ReactElement => (
+
+
+
{title}
+ {subtitle &&
{subtitle}
}
+
+ {actions && {actions}
}
+
+);
+
+// Explains what a page can't do without JavaScript. Browsers running it never show this.
+export const NoScriptNotice = ({ children }: { children: ReactNode }): React.ReactElement => (
+
+ {children}
+
+);
diff --git a/frontend/src/components/ui/useScrollReveal.ts b/frontend/src/components/ui/useScrollReveal.ts
new file mode 100644
index 000000000000..4a9c1aa8289d
--- /dev/null
+++ b/frontend/src/components/ui/useScrollReveal.ts
@@ -0,0 +1,26 @@
+import { useEffect } from "react";
+
+// Elements marked data-reveal rise in the first time they scroll into view. Only ones
+// still off screen are hidden, and only from here, so without JavaScript or with reduced
+// motion everything is simply visible. Styles are in src/css/ui.css.
+export const useScrollReveal = (): void => {
+ useEffect(() => {
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return undefined;
+ const observer = new IntersectionObserver(
+ (entries) => {
+ for (const entry of entries) {
+ if (!entry.isIntersecting) continue;
+ entry.target.setAttribute("data-reveal", "shown");
+ observer.unobserve(entry.target);
+ }
+ },
+ { rootMargin: "0px 0px -12% 0px", threshold: 0.05 },
+ );
+ for (const element of Array.from(document.querySelectorAll("[data-reveal]"))) {
+ if (element.getBoundingClientRect().top < window.innerHeight * 0.88) continue;
+ element.setAttribute("data-reveal", "pending");
+ observer.observe(element);
+ }
+ return () => observer.disconnect();
+ }, []);
+};
diff --git a/frontend/src/css/custom.css b/frontend/src/css/custom.css
index 393b6800e030..734f383d565c 100644
--- a/frontend/src/css/custom.css
+++ b/frontend/src/css/custom.css
@@ -6,6 +6,7 @@
@supports (font-variation-settings: normal) {
:root {
+ --omp-danger: #d92d3a;
font-family: InterVariable, sans-serif, var(--ifm-heading-font-family);
}
}
@@ -20,1266 +21,624 @@ html {
font-family: Inter, sans-serif, var(--ifm-heading-font-family);
}
-/* You can override the default Infima variables here. */
+/* Site theme: the open.mp launcher's palette (src/constants/theme.ts in the launcher
+ repo), small radii and flat surfaces. Pages use these --omp-* tokens. */
:root {
- --ifm-color-primary: #9083d2;
- --ifm-color-primary-dark: #8275c0;
- --ifm-color-primary-darker: #7a6eb8;
- --ifm-color-primary-darkest: #685da1;
- --ifm-color-primary-light: #9e91e4;
- --ifm-color-primary-lighter: #a79aeb;
- --ifm-color-primary-lightest: #b8acf4;
- --ifm-color-secondary-button-background: var(--ifm-color-secondary);
+ --omp-primary: #6f60d6;
+ --omp-primary-hover: #5f50c6;
+ --omp-primary-strong: #5a4bbd;
+ --omp-accent: #6f60d6;
+ --omp-glow: #897af144;
+ --omp-ink: #1a1a1e;
+ --omp-muted: #1a1a1ea8;
+ --omp-faint: #1a1a1e80;
+ --omp-surface: #ffffff;
+ --omp-item: #f3f6fc;
+ --omp-row: #e9ecf2;
+ --omp-button: #dde2ee;
+ --omp-button-hover: #cfd6e6;
+ --omp-input: #f3f6fc;
+ --omp-line: #1a1a1e14;
+ --omp-page-width: 90rem;
+ --omp-radius: 10px;
+ --omp-radius-small: 5px;
+
+ --ifm-color-primary: #6f60d6;
+ --ifm-color-primary-dark: #6354ca;
+ --ifm-color-primary-darker: #5d4fbf;
+ --ifm-color-primary-darkest: #4d419e;
+ --ifm-color-primary-light: #8072dc;
+ --ifm-color-primary-lighter: #897cde;
+ --ifm-color-primary-lightest: #a196e6;
+ --ifm-background-color: var(--omp-surface);
+ --ifm-background-surface-color: var(--omp-item);
+ --ifm-navbar-background-color: var(--omp-surface);
+ --ifm-footer-background-color: var(--omp-item);
+ --ifm-global-radius: var(--omp-radius-small);
+ --ifm-button-border-radius: var(--omp-radius-small);
+ --ifm-color-secondary-button-background: var(--omp-row);
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
--ifm-button-font-weight: 600;
- --ifm-footer-background-color: rgba(255, 255, 255, 0.35);
font-family: Inter, sans-serif, var(--ifm-heading-font-family);
font-feature-settings:
"liga" 1,
"calt" 1;
-
- background-image: url(/images/assets/map.png);
- background-size: cover;
- background-attachment: fixed;
}
-/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme="dark"] {
- --ifm-color-primary: #a393f4;
- --ifm-color-primary-dark: #9384db;
- --ifm-color-primary-darker: #8b7cd2;
- --ifm-color-primary-darkest: #7467b2;
- --ifm-color-primary-light: #b3a3ff;
- --ifm-color-primary-lighter: #bdaeff;
- --ifm-color-primary-lightest: #cfc1ff;
- --ifm-navbar-background-color: #1a202c;
- --ifm-color-secondary-button-background: #2c323d;
+ --omp-danger: #ff5a5f;
+ --omp-accent: #a79aeb;
+ --omp-ink: #fafafa;
+ --omp-muted: #ffffffa8;
+ --omp-faint: #ffffff66;
+ --omp-surface: #1a1a1e;
+ --omp-item: #222227;
+ --omp-row: #303038;
+ --omp-button: #464652;
+ --omp-button-hover: #545462;
+ --omp-input: #16161a;
+ --omp-line: #ffffff14;
+
+ --ifm-color-primary: #897af1;
+ --ifm-color-primary-dark: #7a6be0;
+ --ifm-color-primary-darker: #7264d6;
+ --ifm-color-primary-darkest: #5e52b4;
+ --ifm-color-primary-light: #9a8df4;
+ --ifm-color-primary-lighter: #a497f5;
+ --ifm-color-primary-lightest: #bcb3f8;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
- --ifm-footer-background-color: rgba(26, 32, 44, 0.3);
-}
-
-html[data-theme="dark"] {
- --ifm-background-color: #1a202c;
- --ifm-background-surface-color: #1a202c;
-}
-
-.button--md {
- --ifm-button-size-multiplier: 1.1;
-}
-
-.button--md2 {
- --ifm-button-size-multiplier: 0.99;
- --ifm-button-font-weight: 500;
-}
-
-/* Toast styles */
-.toast-container {
- position: fixed;
- bottom: 30px;
- right: 0px;
- margin-left: 30px;
- z-index: 100;
- display: flex;
- flex-direction: column-reverse;
- gap: 8px;
- pointer-events: none;
-}
-
-.toast {
- pointer-events: auto;
- padding: 16px;
- border-radius: 8px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- max-width: 400px;
- width: calc(100% - 32px);
- opacity: 0;
- animation: toast-slide-in 0.2s ease forwards;
-}
-
-.toast.removing {
- animation: toast-slide-out 0.2s ease forwards;
-}
-
-.toast-success {
- background-color: #ecfdf5;
- border: 1px solid #34d399;
- color: #064e3b;
-}
-
-.toast-error {
- background-color: #fef2f2;
- border: 1px solid #ef4444;
- color: #7f1d1d;
-}
-
-.toast-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 8px;
-}
-
-.toast-title {
- font-weight: bold;
- margin: 0;
-}
-
-.toast-close {
- background: none;
- border: none;
- font-size: 20px;
- color: currentColor;
- cursor: pointer;
- padding: 4px;
- opacity: 0.65;
-}
-
-.toast-close:hover {
- opacity: 1;
-}
-
-.toast-message {
- margin: 0;
- font-size: 14px;
-}
-
-@keyframes toast-slide-in {
- from {
- opacity: 0;
- transform: translateY(100%);
- }
-
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-
-@keyframes toast-slide-out {
- from {
- opacity: 1;
- transform: translateY(0);
- }
-
- to {
- opacity: 0;
- transform: translateY(100%);
- }
-}
-
-/* Base styles */
-.servers-center {
- display: flex;
- justify-content: center;
- width: 100%;
-}
-
-.servers-stats {
- margin: 16px 0;
-}
-
-/* Form elements */
-.servers-form {
- width: 100%;
-}
-
-.servers-input-group {
- display: flex;
- align-items: stretch;
- gap: 0.75rem;
- width: 100%;
-}
-
-.servers-input {
- flex-grow: 1;
- min-height: 44px;
- min-width: 0;
- padding: 0.65rem 1rem;
- border: 1px solid var(--ifm-color-emphasis-300);
- border-radius: 8px;
- background-color: var(--ifm-background-surface-color);
- color: var(--ifm-color-emphasis-900);
- font-size: 0.95rem;
- transition: border-color 0.2s ease, box-shadow 0.2s ease;
-}
-
-.servers-input:focus {
- outline: none;
- border-color: var(--ifm-color-primary);
- box-shadow: 0 0 0 3px var(--ifm-color-primary-lightest);
-}
-
-.servers-input::placeholder {
- color: var(--ifm-color-emphasis-500);
-}
-
-.servers-button {
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 8px 16px;
- background-color: var(--ifm-color-primary-dark);
- color: white;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- font-size: 14px;
-}
-
-.servers-submit-button {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-height: 44px;
- min-width: 88px;
- border-radius: 8px;
-}
-
-.servers-button:hover {
- background-color: var(--ifm-color-primary-darker);
-}
-
-/* List controls */
-.servers-list-form {
- margin-bottom: 1rem;
- padding: 1rem;
- border: 1px solid var(--ifm-color-emphasis-200);
- border-radius: 10px;
- background: var(--ifm-background-color);
-}
-
-.servers-controls {
- display: flex;
- flex-wrap: wrap;
- align-items: stretch;
- gap: 0.75rem;
- margin-bottom: 0.75rem;
-}
-
-.servers-select {
- min-height: 44px;
- min-width: 150px;
- padding: 0.65rem 2rem 0.65rem 0.85rem;
- border: 1px solid var(--ifm-color-emphasis-300);
- border-radius: 8px;
- background-color: var(--ifm-background-surface-color);
- color: var(--ifm-color-emphasis-900);
- font-size: 0.95rem;
- font-weight: 600;
- cursor: pointer;
- transition: border-color 0.2s ease, box-shadow 0.2s ease;
-}
-
-.servers-search {
- flex-grow: 1;
- min-height: 44px;
- min-width: 260px;
- padding: 0.65rem 1rem;
- border: 1px solid var(--ifm-color-emphasis-300);
- border-radius: 8px;
- background-color: var(--ifm-background-surface-color);
- color: var(--ifm-color-emphasis-900);
- font-size: 0.95rem;
- transition: border-color 0.2s ease, box-shadow 0.2s ease;
-}
-
-.servers-select:focus,
-.servers-search:focus {
- outline: none;
- border-color: var(--ifm-color-primary);
- box-shadow: 0 0 0 3px var(--ifm-color-primary-lightest);
-}
-
-.servers-search::placeholder {
- color: var(--ifm-color-emphasis-500);
-}
-
-.servers-add-button {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-height: 44px;
- border-radius: 8px;
- white-space: nowrap;
-}
-
-/* Checkboxes */
-.servers-checkboxes {
- display: flex;
- flex-wrap: wrap;
- gap: 0.5rem;
- margin-top: 0;
-}
-
-.servers-checkbox-label {
- display: inline-flex;
- align-items: center;
- gap: 0.45rem;
- min-height: 36px;
- padding: 0.45rem 0.7rem;
- border: 1px solid var(--ifm-color-emphasis-300);
- border-radius: 999px;
- background: var(--ifm-background-surface-color);
- color: var(--ifm-color-emphasis-700);
- cursor: pointer;
- font-size: 0.85rem;
- font-weight: 700;
- transition:
- border-color 0.2s ease,
- background-color 0.2s ease,
- color 0.2s ease,
- transform 0.2s ease;
-}
-
-.servers-checkbox-label:hover {
- border-color: var(--ifm-color-primary);
- color: var(--ifm-color-primary);
- transform: translateY(-1px);
-}
-
-.servers-checkbox {
- width: 14px;
- height: 14px;
- accent-color: var(--ifm-color-primary);
- cursor: pointer;
-}
-
-/* Modal */
-.servers-modal-overlay {
- position: fixed;
- inset: 0;
- z-index: 50;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.servers-modal-backdrop {
- position: fixed;
- inset: 0;
- background-color: rgba(0, 0, 0, 0.5);
-}
-
-.servers-modal-content {
- position: relative;
- background-color: var(--ifm-background-surface-color);
- border: 1px solid var(--ifm-color-emphasis-200);
- border-radius: 12px;
- box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
- padding: 1.5rem;
- max-width: 500px;
- width: calc(100% - 32px);
- margin: 16px;
- z-index: 51;
-}
-
-.servers-modal-header {
- margin-bottom: 1.25rem;
- position: relative;
- padding-right: 2rem;
-}
-
-.servers-modal-title {
- color: var(--ifm-heading-color);
- font-size: 1.35rem;
- font-weight: 800;
- line-height: 1.2;
- margin: 0;
-}
-
-.servers-modal-close {
- position: absolute;
- top: -0.35rem;
- right: 0;
- width: 34px;
- height: 34px;
- background: var(--ifm-color-emphasis-100);
- border: 1px solid var(--ifm-color-emphasis-200);
- border-radius: 8px;
- color: var(--ifm-color-emphasis-700);
- cursor: pointer;
- padding: 0;
- font-size: 1.35rem;
- line-height: 1;
- transition: background-color 0.2s ease, color 0.2s ease;
-}
-
-.servers-modal-close:hover {
- background: var(--ifm-color-emphasis-200);
- color: var(--ifm-heading-color);
-}
-
-.servers-modal-body {
- margin-bottom: 1.5rem;
-}
-
-.servers-label {
- display: block;
- color: var(--ifm-heading-color);
- font-size: 0.875rem;
- font-weight: 700;
- margin-bottom: 0.5rem;
-}
-
-.servers-helper-text {
- color: var(--ifm-color-emphasis-600);
- font-size: 0.85rem;
- line-height: 1.5;
- margin: 0.65rem 0 0;
-}
-
-.servers-container {
- display: flex;
- flex-direction: column;
- padding: 5rem 1.5rem 6rem;
- align-items: center;
- box-sizing: border-box;
- width: 100%;
- min-height: calc(100vh - var(--ifm-navbar-height));
-}
-
-.servers-page-title {
- margin: 0 0 1rem;
- color: #9083d2;
- font-size: 4rem;
- font-weight: 800;
- line-height: 1.1;
- letter-spacing: 0;
- text-align: center;
- animation: serversFadeIn 1s ease-out;
-}
-
-.servers-page-subtitle {
- margin: 0 0 3rem;
- color: var(--ifm-color-emphasis-800);
- font-size: 1.5rem;
- line-height: 1.6;
- text-align: center;
- animation: serversFadeIn 1s ease-out 0.2s both;
-}
-
-.uid-container {
- display: flex;
- flex-direction: column;
- align-items: center;
- width: 100%;
- max-width: 900px;
- margin: 0 auto 100px;
- padding: 5rem 1.5rem 0;
-}
-
-.uid-page-header {
- width: 100%;
- text-align: center;
- animation: uidFadeIn 1s ease-out;
-}
-
-.uid-page-title {
- margin: 0 0 1rem;
- color: #9083d2;
- font-size: 4rem;
- font-weight: 800;
- line-height: 1.1;
- letter-spacing: 0;
-}
-
-.uid-page-subtitle {
- margin: 0 auto 3rem;
- max-width: 820px;
- color: var(--ifm-color-emphasis-800);
- font-size: 1.35rem;
- line-height: 1.6;
-}
-
-.uid-panel {
- width: 100%;
- padding: 2rem;
- border-radius: 12px;
- background: var(--ifm-background-surface-color);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- animation: uidFadeIn 1s ease-out 0.3s both;
-}
-
-.uid-panel-intro {
- margin: 0 0 1.5rem;
- color: var(--ifm-color-emphasis-700);
- font-size: 1.05rem;
- line-height: 1.7;
-}
-
-.uid-step {
- margin-bottom: 1.5rem;
-}
-
-.uid-step-label {
- margin: 0 0 0.5rem;
- color: var(--ifm-heading-color);
- font-weight: 700;
-}
-
-.uid-code-block {
- width: 100%;
- margin: 0;
- padding: 1rem;
- border: 1px solid var(--ifm-color-emphasis-300);
- border-radius: 8px;
- background: var(--ifm-color-emphasis-100);
- color: var(--ifm-code-color);
- overflow-x: auto;
-}
-
-.uid-code-block code {
- padding: 0;
- background: none;
- font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
- font-size: 0.95rem;
- white-space: pre;
-}
-
-.uid-code-block-generated {
- border-color: var(--ifm-color-primary-light);
- background: var(--ifm-background-color);
-}
-
-.uid-actions {
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- gap: 0.75rem;
- margin: 2rem 0 1.5rem;
-}
-
-.uid-action-button {
- min-height: 46px;
- border-radius: 8px;
- font-weight: 700;
-}
-
-.uid-note {
- margin: 0;
- padding-top: 1.25rem;
- border-top: 1px solid var(--ifm-color-emphasis-200);
- color: var(--ifm-color-emphasis-700);
- line-height: 1.7;
-}
-
-@keyframes uidFadeIn {
- from {
- opacity: 0;
- transform: translateY(20px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-
-.servers-partners-note {
- margin-bottom: 1.5rem;
- animation: serversFadeIn 1s ease-out 0.3s both;
-}
-
-.dismissible-admonition-actions {
- margin-top: 0.75rem;
- display: flex;
- justify-content: flex-end;
-}
-
-.dismissible-admonition-button {
- background: none;
- border: none;
- color: var(--ifm-color-primary-darker);
- font-size: 0.85rem;
- font-family: inherit;
- padding: 4px 8px;
- cursor: pointer;
- text-decoration: underline;
- transition: color 0.2s ease;
- font-weight: 500;
- margin: 0;
- line-height: normal;
-}
-
-.dismissible-admonition-button:hover {
- color: var(--ifm-color-primary-darkest);
-}
-
-.dismissible-admonition-button:focus {
- outline: none;
- box-shadow: 0 0 0 2px rgba(144, 131, 210, 0.3);
- border-radius: 4px;
-}
-
-.dismissible-admonition-button:disabled {
- cursor: default;
-}
-
-.dismissible-admonition-wrapper {
- max-height: 1000px;
- opacity: 1;
- overflow: hidden;
- transform: translateY(0);
- transition:
- opacity 0.22s ease,
- transform 0.26s ease,
- max-height 0.26s ease,
- margin-bottom 0.26s ease;
-}
-
-.dismissible-admonition-wrapper--closing {
- margin-bottom: 0;
- max-height: 0;
- opacity: 0;
- transform: translateY(-8px);
- pointer-events: none;
-}
-
-.partners-note-body {
- margin: 0;
- color: var(--ifm-font-color-base);
-}
-
-.servers-partners-note,
-.servers-container .servers-list-wrapper {
- max-width: 1100px;
- width: 100%;
-}
-
-.servers-container .servers-list-wrapper {
- display: flex;
- flex-direction: column;
- flex: none;
- overflow: hidden;
- margin-bottom: 0;
- padding: 1.5rem;
- border-radius: 12px;
- background: var(--ifm-background-surface-color);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- animation: serversFadeIn 1s ease-out 0.4s both;
-}
-
-.servers-virtual-list {
- height: clamp(620px, calc(100vh - var(--ifm-navbar-height) - 280px), 920px);
- min-height: 0;
- overflow: hidden;
- box-sizing: border-box;
- padding-top: 6px;
-}
-
-@keyframes serversFadeIn {
- from {
- opacity: 0;
- transform: translateY(20px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-
-/* Loading banner styles */
-.loading-banner {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- height: 100%;
- gap: 1em;
-}
-
-.loading-banner-spinner {
- border: 4px solid #f0f0f0;
- border-top: 4px solid #805ad5;
- border-radius: 50%;
- width: 50px;
- height: 50px;
- animation: loading-banner-spin 0.65s linear infinite;
-}
-
-.loading-banner-heading {
- font-style: italic;
- font-size: 1.5em;
-}
-
-@keyframes loading-banner-spin {
- 0% {
- transform: rotate(0deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
-}
-
-/* Server row styles */
-.server-row-card {
- margin-left: 5px;
- margin-right: 5px;
- margin-bottom: 0.75rem;
- border: 1px solid var(--ifm-color-emphasis-200);
- border-radius: 8px;
- padding-top: 0.7rem;
- padding-left: 1rem;
- padding-right: 1rem;
- padding-bottom: 0.3rem;
- background-color: var(--ifm-background-color);
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
- transition:
- border-color 0.2s ease,
- box-shadow 0.2s ease,
- transform 0.2s ease;
-}
-
-.server-row-card:hover {
- border-color: var(--ifm-color-primary-light);
- box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
-}
-
-.server-header {
- display: flex;
- height: 30px;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 0.5rem;
- gap: 18px;
-}
-
-.server-heading {
- font-size: 1.25rem;
- font-weight: 600;
- margin: 0;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
-}
-
-.server-link {
- display: block;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- flex: 1;
}
-.server-link:hover .server-heading {
- text-decoration: underline;
- cursor: pointer;
+/* Solid primary buttons: white text needs the darker purple in both themes. */
+.button--primary {
+ --ifm-button-background-color: var(--omp-primary);
+ --ifm-button-border-color: var(--omp-primary);
+ --ifm-button-color: #fff;
+ color: #fff;
}
-.server-badges {
- display: flex;
- align-items: center;
+.button--primary:hover {
+ --ifm-button-background-color: var(--omp-primary-hover);
+ --ifm-button-border-color: var(--omp-primary-hover);
+ color: #fff;
}
-.server-badge-image {
- width: 30px;
- height: auto;
- margin-left: 0.25rem;
+/* Navbar: the launcher's title bar and tabs */
+.navbar {
+ border-bottom: 1px solid var(--omp-line);
+ box-shadow: none;
}
-.server-details {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- gap: 18px;
+.navbar__brand {
+ margin-right: 1rem;
}
-.server-info {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- margin: 0.3em 0;
- flex-wrap: wrap;
+.navbar__logo {
+ height: 2rem;
+ margin-right: 0.6rem;
}
-.server-game-mode {
- margin-top: 0;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
+.navbar__title {
+ font-size: 1rem;
+ font-weight: 600;
}
-.copy-badge-container {
- display: flex;
+.navbar__items:not(.navbar__items--right) .navbar__link,
+.navbar__items--right > .navbar__item.navbar__link,
+.navbar__items--right > .navbar__item.dropdown > .navbar__link {
+ display: inline-flex;
+ height: 2rem;
align-items: center;
+ margin-left: 0.4rem;
+ padding: 0 0.7rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-item);
+ color: var(--omp-muted);
+ font-size: 0.9rem;
+ font-weight: 600;
+ transition: background-color 150ms ease, color 150ms ease;
}
-.copy-badge-text {
- font-size: 1.25rem;
- font-weight: bold;
- margin-top: 0;
- margin-right: 0.5rem;
- color: "black";
+.navbar__items .navbar__link:hover,
+.navbar__items .navbar__link--active {
+ background: var(--omp-row);
+ color: var(--omp-ink);
}
-.copy-badge-button {
- font-size: 0.65rem;
- font-weight: 600;
- padding: 0.4rem 0.65rem;
- border: none;
- cursor: pointer;
- background-color: var(--ifm-color-secondary-button-background);
- border-radius: 8px;
+.navbar__items .navbar__link svg[class*="iconExternalLink"] {
+ display: none;
}
-.copy-badge-button.copied {
- background-color: #5d9b60;
- color: white;
+/* The links on the left are plain text with an icon; only the donate link gets a shape. */
+.navbar__items:not(.navbar__items--right) .navbar__link {
+ padding: 0 0.55rem;
+ background: transparent;
}
-.server-players {
- display: flex;
- align-items: center;
- font-size: 0.8rem;
- margin-top: 0;
- font-weight: 600;
+.navbar__items:not(.navbar__items--right) .navbar__link:hover,
+.navbar__items:not(.navbar__items--right) .navbar__link--active {
+ background: transparent;
+ color: var(--omp-ink);
+}
+
+.navbar-icon::before {
+ content: "";
+ width: 1rem;
+ height: 1rem;
+ flex: none;
+ margin-right: 0.4rem;
+ background: currentColor;
+ -webkit-mask: var(--navbar-icon) center / contain no-repeat;
+ mask: var(--navbar-icon) center / contain no-repeat;
}
-.server-player-count {
+.menu__link.navbar-icon {
display: flex;
align-items: center;
- font-size: 1.25rem;
- margin-top: 0;
- font-weight: 700;
- margin-right: 4px;
+ justify-content: flex-start;
}
-/* Server info styles */
-.server-info-wrapper {
- width: 100%;
- animation: serverInfoFadeIn 1s ease-out 0.2s both;
+.navbar-icon-docs { --navbar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2zM22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E"); }
+.navbar-icon-blog { --navbar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
+.navbar-icon-forums { --navbar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
+.navbar-icon-servers { --navbar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='8' rx='2'/%3E%3Crect x='2' y='14' width='20' height='8' rx='2'/%3E%3Cpath d='M6 6h.01M6 18h.01'/%3E%3C/svg%3E"); }
+.navbar-icon-partners { --navbar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8-6.2-3.2L5.8 21 7 14.2 2 9.3l6.9-1z'/%3E%3C/svg%3E"); }
+.navbar-icon-donate { --navbar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 21.3C5.5 16 2 12.7 2 8.6 2 5.4 4.5 3 7.6 3c1.8 0 3.4.9 4.4 2.3C13 3.900 14.600 3 16.400 3 19.500 3 22 5.400 22 8.600c0 4.100-3.500 7.400-10 12.700z'/%3E%3C/svg%3E"); }
+
+.navbar__link {
+ white-space: nowrap;
}
-.server-info-container {
- width: 100%;
+/* The navbar is at its fullest just above where it collapses: drop what can go. */
+@media (max-width: 1320px) {
+ .navbar .DocSearch-Button-Placeholder,
+ .navbar .DocSearch-Button-Keys {
+ display: none;
+ }
}
-.server-info-box {
- width: 100%;
- padding: 2rem;
- border-radius: 12px;
- background: var(--ifm-background-surface-color);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- animation: serverInfoFadeIn 1s ease-out 0.4s both;
+@media (max-width: 1240px) {
+ .navbar__brand .navbar__title {
+ display: none;
+ }
+
+ .navbar__items:not(.navbar__items--right) .navbar-icon:not(.navbar-donate)::before {
+ display: none;
+ }
}
-.server-info-page-header {
- display: flex;
- flex-direction: column;
- align-items: center;
- text-align: center;
- margin-bottom: 3rem;
- animation: serverInfoFadeIn 1s ease-out;
+@media (min-width: 997px) and (max-width: 1080px) {
+ .navbar__items:not(.navbar__items--right) .navbar__link {
+ padding: 0 0.35rem;
+ font-size: 0.8125rem;
+ }
+
+ .navbar__items:not(.navbar__items--right) .navbar__link.navbar-donate {
+ margin-left: 0.3rem;
+ padding: 0 0.5rem;
+ }
+
+ .navbar__items--right > .navbar__item.navbar__link,
+ .navbar__items--right > .navbar__item.dropdown > .navbar__link {
+ padding: 0 0.5rem;
+ }
}
-.server-info-ip-address {
- display: flex;
- justify-content: space-between;
- align-items: center;
- gap: 0.75rem;
- min-height: 46px;
- min-width: 230px;
- padding: 0.7rem 0.75rem 0.7rem 1rem;
- background: var(--ifm-background-color);
- color: var(--ifm-color-emphasis-900);
- font-size: 0.95rem;
- font-weight: 700;
- border: 1px solid var(--ifm-color-emphasis-300);
- border-radius: 8px;
- cursor: pointer;
- overflow-wrap: anywhere;
- text-align: left;
- box-shadow: inset 0 0 0 1px transparent, 0 2px 6px rgba(0, 0, 0, 0.06);
- transition:
- background-color 0.2s ease,
- border-color 0.2s ease,
- box-shadow 0.2s ease,
- color 0.2s ease;
+/* The one link that pays for all of this */
+.navbar__items:not(.navbar__items--right) .navbar__link.navbar-donate {
+ margin-left: 0.6rem;
+ padding: 0 0.75rem;
+ background: color-mix(in srgb, var(--omp-danger) 16%, transparent);
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--omp-danger) 45%, transparent);
+ color: var(--omp-ink);
}
-.server-info-ip-address:hover {
- border-color: var(--ifm-color-primary);
- box-shadow: inset 0 0 0 1px var(--ifm-color-primary), 0 4px 12px rgba(0, 0, 0, 0.1);
+.navbar__items:not(.navbar__items--right) .navbar__link.navbar-donate::before {
+ color: var(--omp-danger);
}
-.server-info-ip-address:focus {
- outline: none;
- border-color: var(--ifm-color-primary);
- box-shadow: 0 0 0 3px var(--ifm-color-primary-lightest);
+.navbar__items:not(.navbar__items--right) .navbar__link.navbar-donate:hover {
+ background: var(--omp-danger);
+ color: #fff;
}
-.server-info-ip-address.copied {
- background: #5d9b60;
- border-color: #5d9b60;
- color: white;
+.navbar__items:not(.navbar__items--right) .navbar__link.navbar-donate:hover::before {
+ color: #fff;
}
-.server-info-copy-state {
- flex: 0 0 auto;
- padding: 0.3rem 0.5rem;
- border-radius: 6px;
- background: var(--ifm-color-emphasis-100);
- color: var(--ifm-color-emphasis-700);
- font-size: 0.68rem;
- font-weight: 800;
- text-transform: uppercase;
+/* Docusaurus moves these links into the mobile sidebar. */
+@media (max-width: 996px) {
+ .navbar__items .navbar__item.navbar__link,
+ .navbar__items .navbar__item.dropdown {
+ display: none;
+ }
+
+ .navbar__items--right > .navbar__item.navbar__link,
+ .navbar__items--right > .navbar__item.dropdown > .navbar__link {
+ display: none;
+ }
}
-.server-info-ip-address.copied .server-info-copy-state {
- background: rgba(255, 255, 255, 0.18);
- color: white;
+.navbar__items--right [class*="colorModeToggle"] {
+ margin-left: 0.4rem;
}
-.server-info-ip-address span:first-child {
- min-width: 0;
+.navbar__items--right [class*="colorModeToggle"] button {
+ width: 2rem;
+ height: 2rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-item);
+ color: var(--omp-muted);
}
-.server-info-name {
- max-width: 100%;
- text-align: center;
- color: #9083d2;
- font-size: clamp(2rem, 3.6vw, 3.25rem);
- font-weight: 800;
- line-height: 1.1;
- letter-spacing: 0;
- margin: 0 0 1rem;
- overflow-wrap: anywhere;
- text-wrap: balance;
+.navbar__items--right [class*="colorModeToggle"] button:hover {
+ background: var(--omp-row);
}
-.server-info-description {
- max-width: 820px;
- color: var(--ifm-color-emphasis-800);
- margin: 0 0 2rem;
- font-size: 1.35rem;
- line-height: 1.6;
+.navbar__items--right [class*="colorModeToggle"] svg {
+ width: 1.15rem;
+ height: 1.15rem;
}
-.server-info-actions {
- display: flex;
- justify-content: center;
- align-items: stretch;
- flex-wrap: wrap;
- gap: 0.75rem;
- margin-top: 1rem;
+.navbar .DocSearch-Button {
+ height: 2rem;
+ margin: 0 0 0 0.4rem;
+ border: 0;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-input);
+ box-shadow: none;
+ color: var(--omp-faint);
}
-.server-info-content-wrapper {
- display: grid;
- grid-template-columns: minmax(220px, 0.7fr) minmax(0, 2fr);
- gap: 1.25rem;
- margin: 0 0 1.5rem;
+.navbar .DocSearch-Button:hover {
+ background: var(--omp-row);
+ box-shadow: none;
+ color: var(--omp-ink);
}
-.server-info-content-wrapper-single {
- grid-template-columns: 1fr;
+.navbar .DocSearch-Button .DocSearch-Search-Icon {
+ color: inherit;
}
-.server-info-stats-section {
- display: grid;
- gap: 1rem;
- align-content: start;
+/* Footer (src/theme/Footer/Layout): wordmark with copyright under it, links beside them */
+.footer {
+ padding: 4.5rem 0 3rem;
+ border: 0;
}
-.server-info-stat-item {
- padding: 1.15rem;
- border: 1px solid var(--ifm-color-emphasis-200);
- border-radius: 8px;
- background: var(--ifm-color-emphasis-100);
+.omp-footer {
+ display: grid;
+ max-width: var(--omp-page-width);
+ grid-template-columns: auto minmax(0, 1fr);
+ gap: 1.5rem 4rem;
+ align-items: start;
+ margin: 0 auto;
+ padding: 0 2rem;
}
-.server-info-stat-label {
+.omp-footer-brand [class*="footerLogoLink"] {
display: block;
- font-size: 0.75rem;
- color: var(--ifm-color-emphasis-600);
- font-weight: 700;
- margin-bottom: 0.35rem;
- text-transform: uppercase;
+ opacity: 1;
}
-.server-info-stat-value {
+.footer__logo {
display: block;
- color: var(--ifm-heading-color);
- font-size: 1.35rem;
- font-weight: 700;
- line-height: 1.2;
- overflow-wrap: anywhere;
+ width: auto;
+ max-width: none;
+ height: 8rem;
+ /* The artwork has empty space around it; these line its edges up with the page. */
+ margin: -1.9rem 0 -1.9rem -1.5rem;
}
-.server-info-rules-section {
- min-width: 0;
- padding: 1.15rem;
- border: 1px solid var(--ifm-color-emphasis-200);
- border-radius: 8px;
- background: var(--ifm-color-emphasis-100);
- overflow-x: auto;
+/* One file in both themes, recoloured, so the wordmark can't shift on a theme change. */
+[data-theme="dark"] .footer__logo {
+ filter: brightness(0) invert(0.9);
}
-.server-info-rules-table {
- width: 100%;
- border-collapse: separate;
- border-spacing: 0;
- display: table;
- margin: 0;
+/* The page arrives with one logo per theme; display: block above must not show both. */
+.footer__logo[class*="themedComponent"] {
+ display: none;
}
-.server-info-rules-table th,
-.server-info-rules-table td {
- padding: 0.7rem 0.75rem;
- text-align: left;
- border-bottom: 1px solid var(--ifm-color-emphasis-200);
- vertical-align: top;
+[data-theme="light"] .footer__logo[class*="themedComponent--light"],
+[data-theme="dark"] .footer__logo[class*="themedComponent--dark"] {
+ display: block;
}
-.server-info-rules-table th {
- color: var(--ifm-color-emphasis-700);
- font-size: 0.75rem;
- text-transform: uppercase;
+.omp-footer-links .footer__links {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, max-content));
+ justify-content: end;
+ gap: 1rem 5rem;
+ margin: 0;
}
-.server-info-rules-table tr:last-child td {
- border-bottom: 0;
+.omp-footer-links .footer__col {
+ width: auto;
+ max-width: none;
+ margin: 0;
+ padding: 0;
}
-.server-info-divider {
- height: 1px;
- background: var(--ifm-color-emphasis-200);
- margin: 0 0 1rem;
+.footer__title {
+ margin-bottom: 0.5rem;
+ color: var(--omp-faint);
+ font-family: inherit;
+ font-size: 0.8125rem;
+ font-weight: 600;
}
-.server-info-footer {
- display: flex;
- justify-content: flex-start;
+.footer__title::before {
+ content: "";
+ display: inline-block;
+ width: 0.9375rem;
+ height: 0.9375rem;
+ margin-right: 0.4rem;
+ background: currentColor;
+ vertical-align: -0.15em;
+ -webkit-mask: var(--footer-icon) center / contain no-repeat;
+ mask: var(--footer-icon) center / contain no-repeat;
}
-.server-info-last-updated {
- color: var(--ifm-color-emphasis-600);
- font-size: 0.875rem;
-}
+.footer__col:nth-child(1) { --footer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2zM22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E"); }
+.footer__col:nth-child(2) { --footer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.900M16 3.100a4 4 0 0 1 0 7.800'/%3E%3C/svg%3E"); }
+.footer__col:nth-child(3) { --footer-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E"); }
-.server-info-quick-join-button {
- display: flex;
+.footer__link-item {
+ display: inline-flex;
align-items: center;
- justify-content: center;
- gap: 0.5rem;
- min-height: 46px;
- min-width: 180px;
- padding: 0.7rem 1.25rem;
- background: var(--ifm-color-primary-dark);
- color: white;
- border: 1px solid transparent;
- border-radius: 8px;
- cursor: pointer;
- font-size: 1rem;
- font-weight: 700;
- text-decoration: none;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
- transition: background-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
+ gap: 0.4rem;
}
-.server-info-quick-join-button:hover {
- background: var(--ifm-color-primary-darkest);
- color: white;
- text-decoration: none;
- box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
- transform: translateY(-3px);
+.omp-footer-link-icon {
+ flex: none;
+ font-size: 0.9375rem;
}
-.server-info-quick-join-button:focus {
- border-color: #beb5df;
- outline: none;
+.omp-footer-link-arrow {
+ flex: none;
+ font-size: 0.875rem;
+ opacity: 0.55;
+ transition: opacity 150ms ease, transform 150ms ease;
}
-.server-info-arrow {
- font-size: 1.2rem;
+.footer__link-item:hover .omp-footer-link-arrow {
+ opacity: 1;
+ transform: translate(2px, -2px);
}
-.server-info-section {
- max-width: none;
- margin: 0 auto;
- padding: 5rem 1.5rem 6rem;
- width: 100%;
-}
+@media (max-width: 900px) {
+ .omp-footer {
+ gap: 1.5rem 2rem;
+ }
-.server-info-stack {
- display: flex;
- flex-direction: column;
- gap: 1.5rem;
- width: min(100%, 1100px);
- margin: 0 auto;
+ .omp-footer-links .footer__links {
+ gap: 1rem 1.75rem;
+ }
}
-.server-info-back-link {
- display: inline-block;
- width: max-content;
- color: #8477b7;
- text-decoration: none;
- font-weight: 600;
- padding: 0.6rem 1rem;
- border-width: 1px;
- border-color: var(--ifm-button-background-color);
- border-radius: 8px;
- transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
+.footer__items {
+ margin: 0;
+ padding: 0;
+ list-style: none;
}
-.server-info-back-link:hover {
- color: #aea0e1;
- border-color: #aea0e1;
- text-decoration: none;
- transform: translateY(-1px);
+.footer__item {
+ margin: 0.15rem 0 0;
}
-.server-info-banner {
- padding: 1rem;
- border-radius: 4px;
- text-align: center;
+.footer__link-item {
+ color: var(--omp-ink);
+ font-size: 0.9rem;
}
-.server-info-loading {
- background-color: #f0f0f0;
- color: #666;
+.footer__link-item:hover {
+ color: var(--omp-accent);
+ text-decoration: none;
}
-.server-info-error {
- background-color: #fee;
- color: #c00;
- border: 1px solid #fcc;
-}
-@keyframes serverInfoFadeIn {
- from {
- opacity: 0;
- transform: translateY(20px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
+.omp-footer-copyright {
+ margin-top: 0.75rem;
+ color: var(--omp-faint);
+ font-size: 0.8125rem;
}
-/* Responsive styles */
@media (max-width: 768px) {
- .servers-controls {
- flex-direction: column;
+ .footer {
+ padding: 2rem 0 1.5rem;
}
- .servers-checkboxes {
- gap: 0.5rem;
+ /* Stacked on phones, but still lined up with the page's left edge like everything above it. */
+ .omp-footer {
+ grid-template-columns: minmax(0, 1fr);
+ gap: 1.25rem;
+ padding: 0 1rem;
}
- .servers-select,
- .servers-search,
- .servers-add-button,
- .servers-submit-button {
- width: 100%;
- min-width: 0;
+ .footer__logo {
+ height: 6.5rem;
+ /* The same artwork margins as on desktop, scaled to the smaller logo */
+ margin: -1.55rem 0 -1.55rem -1.22rem;
}
- .servers-input-group {
- flex-direction: column;
+ .omp-footer-links .footer__links {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ justify-content: stretch;
+ gap: 0.5rem 1rem;
}
- .servers-modal-content {
- margin: 16px;
- max-height: calc(100vh - 32px);
- overflow-y: auto;
+ .footer__link-item {
+ padding: 0.3rem 0;
+ font-size: 0.8125rem;
+ line-height: 1.25;
}
+}
- .servers-container {
- padding: 4rem 1rem 4rem;
- margin: 10px 0;
- min-height: 100vh;
- }
+/* Toast styles */
+.toast-container {
+ position: fixed;
+ bottom: 30px;
+ right: 0px;
+ margin-left: 30px;
+ z-index: 100;
+ display: flex;
+ flex-direction: column-reverse;
+ gap: 8px;
+ pointer-events: none;
+}
- .servers-page-title {
- font-size: 3rem;
- }
+.toast {
+ pointer-events: auto;
+ padding: 16px;
+ border-radius: 8px;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ max-width: 400px;
+ width: calc(100% - 32px);
+ opacity: 0;
+ animation: toast-slide-in 0.2s ease forwards;
+}
- .servers-page-subtitle {
- margin-bottom: 2rem;
- font-size: 1.25rem;
- }
+.toast.removing {
+ animation: toast-slide-out 0.2s ease forwards;
+}
- .servers-container .servers-list-wrapper {
- padding: 0.75rem;
- }
+.toast-success {
+ background-color: #ecfdf5;
+ border: 1px solid #34d399;
+ color: #064e3b;
+}
- .uid-container {
- margin-bottom: 60px;
- padding: 3rem 1rem 0;
- }
+.toast-error {
+ background-color: #fef2f2;
+ border: 1px solid #ef4444;
+ color: #7f1d1d;
+}
- .uid-page-title {
- font-size: 2.5rem;
- }
+.toast-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 8px;
+}
- .uid-page-subtitle {
- margin-bottom: 2rem;
- font-size: 1.15rem;
- }
+.toast-title {
+ font-weight: bold;
+ margin: 0;
+}
- .uid-panel {
- padding: 1rem;
- }
+.toast-close {
+ background: none;
+ border: none;
+ font-size: 20px;
+ color: currentColor;
+ cursor: pointer;
+ padding: 4px;
+ opacity: 0.65;
+}
- .uid-action-button {
- width: 100%;
- }
+.toast-close:hover {
+ opacity: 1;
+}
- .servers-virtual-list {
- height: clamp(520px, calc(100vh - var(--ifm-navbar-height) - 220px), 760px);
- }
+.toast-message {
+ margin: 0;
+ font-size: 14px;
+}
- .server-info-actions {
- width: 100%;
- min-width: 0;
+@keyframes toast-slide-in {
+ from {
+ opacity: 0;
+ transform: translateY(100%);
}
- .server-info-name {
- font-size: 2.5rem;
+ to {
+ opacity: 1;
+ transform: translateY(0);
}
+}
- .server-info-description {
- font-size: 1.25rem;
- margin-bottom: 1.5rem;
+@keyframes toast-slide-out {
+ from {
+ opacity: 1;
+ transform: translateY(0);
}
- .server-info-ip-address,
- .server-info-quick-join-button {
- width: 100%;
+ to {
+ opacity: 0;
+ transform: translateY(100%);
}
+}
- .server-info-content-wrapper {
- grid-template-columns: 1fr;
- }
+.dismissible-admonition-wrapper {
+ max-height: 1000px;
+ opacity: 1;
+ overflow: hidden;
+ transform: translateY(0);
+ transition:
+ opacity 0.22s ease,
+ transform 0.26s ease,
+ max-height 0.26s ease,
+ margin-bottom 0.26s ease;
+}
- .server-info-section {
- padding: 3rem 1rem 4rem;
- }
+.dismissible-admonition-wrapper--closing {
+ margin-bottom: 0;
+ max-height: 0;
+ opacity: 0;
+ transform: translateY(-8px);
+ pointer-events: none;
+}
- .server-info-box {
- padding: 1rem;
- }
- .server-heading {
- font-size: 1rem;
- }
+/* Loading banner styles */
+.loading-banner {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ height: 100%;
+ gap: 1em;
+}
+
+.loading-banner-spinner {
+ border: 4px solid var(--omp-row);
+ border-top: 4px solid var(--omp-primary);
+ border-radius: 50%;
+ width: 50px;
+ height: 50px;
+ animation: loading-banner-spin 0.65s linear infinite;
+}
+
+.loading-banner-heading {
+ font-style: italic;
+ font-size: 1.5em;
+}
- .server-player-count,
- .server-details,
- .copy-badge-text {
- font-size: 0.875rem;
+@keyframes loading-banner-spin {
+ 0% {
+ transform: rotate(0deg);
}
- .loading-banner-heading {
- font-size: 1.2rem;
+ 100% {
+ transform: rotate(360deg);
}
}
.hash-link {
font-family: var(--ifm-font-family-base);
}
+
+/* No lone word on a last line, anywhere on the site */
+p,
+li {
+ text-wrap: pretty;
+}
+
+h1,
+h2,
+h3 {
+ text-wrap: balance;
+}
diff --git a/frontend/src/css/ui.css b/frontend/src/css/ui.css
new file mode 100644
index 000000000000..cc5309e39c48
--- /dev/null
+++ b/frontend/src/css/ui.css
@@ -0,0 +1,1156 @@
+/* Shared page parts. Colours and radii come from the --omp-* tokens in custom.css,
+ so a change here or there reaches every page that uses them. */
+
+/* Page frame */
+.omp-page {
+ width: 100%;
+ max-width: var(--omp-page-width);
+ margin: 0 auto;
+ padding: 2.5rem 2rem 4.5rem;
+}
+
+.omp-page--narrow {
+ max-width: 60rem;
+}
+
+.omp-page-head {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: flex-end;
+ justify-content: space-between;
+ gap: 1rem 2rem;
+ margin-bottom: 1.75rem;
+}
+
+.omp-page-head-text {
+ min-width: 0;
+}
+
+.omp-page-title {
+ margin: 0;
+ color: var(--omp-ink);
+ font-size: clamp(2rem, 3.4vw, 2.75rem);
+ font-weight: 800;
+ letter-spacing: -0.025em;
+ line-height: 1.12;
+ overflow-wrap: anywhere;
+}
+
+.omp-page-subtitle {
+ max-width: 44rem;
+ margin: 0.5rem 0 0;
+ color: var(--omp-muted);
+ font-size: 1.0625rem;
+ line-height: 1.5;
+}
+
+.omp-page-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.625rem;
+}
+
+/* Surfaces */
+.omp-panel {
+ padding: 1.5rem;
+ border-radius: var(--omp-radius);
+ background: var(--omp-item);
+}
+
+/* Buttons: Infima's classes, in the launcher's shape */
+.button {
+ border-radius: var(--omp-radius-small);
+}
+
+.button {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 0.5rem;
+ transition: background-color 150ms ease, border-color 150ms ease;
+}
+
+.button--primary {
+ box-shadow: 0 0 20px var(--omp-glow);
+}
+
+.button--lg {
+ --ifm-button-size-multiplier: 1;
+ min-height: 2.875rem;
+ padding: 0 1.25rem;
+ font-size: 1rem;
+}
+
+.button--secondary {
+ --ifm-button-background-color: var(--omp-button);
+ --ifm-button-border-color: var(--omp-button);
+ --ifm-button-color: var(--omp-ink);
+ color: var(--omp-ink);
+}
+
+.button--secondary:not(.button--outline):hover {
+ --ifm-button-background-color: var(--omp-button-hover);
+ --ifm-button-border-color: var(--omp-button-hover);
+ color: var(--omp-ink);
+}
+
+/* Form controls */
+.omp-input,
+.omp-select {
+ height: 2.5rem;
+ min-width: 0;
+ padding: 0 0.75rem;
+ border: 0;
+ border-radius: var(--omp-radius-small);
+ background-color: var(--omp-input);
+ color: var(--omp-ink);
+ font-family: inherit;
+ font-size: 0.9375rem;
+}
+
+.omp-select {
+ padding-right: 0.5rem;
+ font-weight: 600;
+ cursor: pointer;
+}
+
+.omp-select:disabled {
+ color: var(--omp-faint);
+ cursor: not-allowed;
+}
+
+.omp-select option {
+ background: var(--omp-surface);
+ color: var(--omp-ink);
+}
+
+.omp-input::placeholder {
+ color: var(--omp-faint);
+}
+
+.omp-input:focus-visible,
+.omp-select:focus-visible,
+.omp-check:has(input:focus-visible) {
+ outline: 2px solid var(--omp-accent);
+ outline-offset: 1px;
+}
+
+.omp-field-label {
+ display: block;
+ margin-bottom: 0.35rem;
+ color: var(--omp-muted);
+ font-size: 0.875rem;
+ font-weight: 600;
+}
+
+.omp-check {
+ display: inline-flex;
+ height: 2rem;
+ align-items: center;
+ gap: 0.5rem;
+ padding: 0 0.75rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-input);
+ color: var(--omp-ink);
+ font-size: 0.875rem;
+ font-weight: 600;
+ cursor: pointer;
+}
+
+.omp-check input {
+ accent-color: var(--omp-primary);
+}
+
+/* Rule and value rows, as in the launcher's side panel */
+.omp-rows {
+ display: grid;
+ gap: 0.35rem;
+}
+
+.omp-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 1rem;
+ min-height: 2.25rem;
+ padding: 0.25rem 0.75rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-surface);
+}
+
+.omp-row > :last-child {
+ min-width: 0;
+ color: var(--omp-muted);
+ overflow-wrap: anywhere;
+ text-align: right;
+}
+
+.omp-row--head {
+ min-height: 0;
+ padding-bottom: 0.5rem;
+ background: none;
+}
+
+.omp-label {
+ color: var(--omp-faint);
+ font-size: 0.875rem;
+ font-weight: 600;
+}
+
+/* Code */
+.omp-code {
+ margin: 0;
+ padding: 0.75rem 1rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-input);
+ color: var(--omp-ink);
+ font-size: 0.9rem;
+ overflow-x: auto;
+}
+
+.omp-code code {
+ padding: 0;
+ border: 0;
+ background: none;
+ color: inherit;
+}
+
+/* Dialog */
+.omp-modal {
+ position: fixed;
+ z-index: 300;
+ inset: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 1rem;
+ background: rgba(0, 0, 0, 0.55);
+}
+
+.omp-modal-box {
+ width: 100%;
+ max-width: 28rem;
+ padding: 1.5rem;
+ border-radius: var(--omp-radius);
+ background: var(--omp-surface);
+ box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
+}
+
+.omp-modal-head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 1rem;
+ margin-bottom: 1rem;
+}
+
+.omp-modal-head h2 {
+ margin: 0;
+ color: var(--omp-ink);
+ font-size: 1.25rem;
+}
+
+.omp-modal-close {
+ width: 2rem;
+ height: 2rem;
+ border: 0;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-item);
+ color: var(--omp-ink);
+ font-size: 1.25rem;
+ line-height: 1;
+ cursor: pointer;
+}
+
+/* Server list */
+.server-toolbar {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.5rem;
+}
+
+.server-toolbar .omp-input {
+ flex: 1 1 16rem;
+}
+
+.server-toolbar-foot {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: 0.5rem 1.5rem;
+ margin-top: 0.5rem;
+}
+
+.server-filters {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.4rem;
+}
+
+.server-stats {
+ margin: 0;
+ color: var(--omp-muted);
+ font-size: 0.875rem;
+}
+
+.server-stats strong {
+ color: var(--omp-ink);
+}
+
+.server-columns,
+.server-row-body {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) 13rem 8rem 13rem 6rem;
+ gap: 0 1rem;
+ align-items: center;
+}
+
+.server-columns {
+ margin: 1.25rem 0 0.25rem;
+ padding: 0 0.75rem 0 calc(2.25rem + 0.5rem + 0.75rem);
+ color: var(--omp-faint);
+ font-size: 0.875rem;
+ font-weight: 600;
+}
+
+.server-columns > :last-child {
+ text-align: right;
+}
+
+/* The list is part of the page, split into pages, rather than a scroll box inside it. */
+.server-list {
+ display: grid;
+ gap: 0.375rem;
+}
+
+.server-columns {
+ scroll-margin-top: calc(var(--ifm-navbar-height) + 1rem);
+}
+
+.server-pages {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ align-items: center;
+ gap: 0.375rem;
+ margin-top: 1.5rem;
+}
+
+.server-pages button {
+ display: grid;
+ min-width: 2.5rem;
+ height: 2.5rem;
+ place-items: center;
+ padding: 0 0.625rem;
+ border: 0;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-button);
+ color: var(--omp-ink);
+ font: inherit;
+ font-size: 0.9375rem;
+ font-variant-numeric: tabular-nums;
+ cursor: pointer;
+ transition: background-color 150ms ease, opacity 150ms ease;
+}
+
+.server-pages button:hover:not(:disabled):not([aria-current]) {
+ background: var(--omp-item);
+}
+
+.server-pages button[aria-current="page"] {
+ background: var(--omp-primary);
+ color: #fff;
+ font-weight: 700;
+}
+
+.server-pages button:disabled {
+ opacity: 0.35;
+ cursor: default;
+}
+
+.server-pages button:focus-visible {
+ outline: 2px solid var(--omp-primary-hover);
+ outline-offset: 2px;
+}
+
+.server-pages-gap {
+ min-width: 1.25rem;
+ color: var(--omp-muted);
+ text-align: center;
+}
+
+.server-row {
+ display: flex;
+ height: 2.5rem;
+ gap: 0.5rem;
+}
+
+.server-row-status {
+ display: grid;
+ width: 2.25rem;
+ flex: none;
+ place-items: center;
+ border-radius: var(--omp-radius-small);
+ background: #7af1aa1a;
+}
+
+.server-row-status > span {
+ background-color: #2b8a57;
+}
+
+[data-theme="dark"] .server-row-status > span {
+ background-color: #7af1aa;
+}
+
+.server-row-status--locked {
+ background: #eb40343a;
+}
+
+.server-row-status--locked > span,
+[data-theme="dark"] .server-row-status--locked > span {
+ background-color: #eb4034;
+}
+
+.server-row-body {
+ flex: 1;
+ min-width: 0;
+ padding: 0 0.75rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-item);
+ font-size: 0.9375rem;
+ transition: background-color 0.3s;
+}
+
+.server-row-body:hover {
+ background: var(--omp-row);
+ transition-duration: 0.15s;
+}
+
+.server-row-name {
+ display: flex;
+ min-width: 0;
+ align-items: center;
+ gap: 0.5rem;
+ color: var(--omp-ink);
+ font-weight: 600;
+}
+
+.server-row-players-word {
+ display: none;
+}
+
+.server-row-name:hover {
+ color: var(--omp-accent);
+ text-decoration: none;
+}
+
+.server-row-name img {
+ flex: none;
+}
+
+.server-row-name span,
+.server-row-mode,
+.server-row-language {
+ overflow: hidden;
+ min-width: 0;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.server-row-mode,
+.server-row-language {
+ color: var(--omp-muted);
+}
+
+.server-row-address {
+ display: flex;
+ min-width: 0;
+ align-items: center;
+ gap: 0.5rem;
+ color: var(--omp-muted);
+ font-size: 0.875rem;
+}
+
+.server-row-address > span {
+ overflow: hidden;
+ min-width: 0;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.server-row-copy {
+ flex: none;
+ height: 1.375rem;
+ padding: 0 0.35rem;
+ border: 0;
+ border-radius: 4px;
+ background: var(--omp-primary);
+ color: #fff;
+ font-family: inherit;
+ font-size: 0.6875rem;
+ font-weight: 700;
+ cursor: pointer;
+}
+
+.server-row-players {
+ font-weight: 600;
+ text-align: right;
+ white-space: nowrap;
+}
+
+.server-row-players small {
+ color: var(--omp-faint);
+ font-size: inherit;
+ font-weight: 400;
+}
+
+/* Server detail page */
+.server-back {
+ display: inline-block;
+ margin-bottom: 1rem;
+ color: var(--omp-accent);
+ font-size: 0.9rem;
+ font-weight: 600;
+}
+
+.server-copy-state {
+ margin-left: 0.5rem;
+ color: var(--omp-faint);
+ font-size: 0.75rem;
+ font-weight: 700;
+ text-transform: uppercase;
+}
+
+.server-detail {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
+ gap: 0.75rem;
+ align-items: start;
+}
+
+.server-detail-stats {
+ display: grid;
+ gap: 0.75rem;
+}
+
+.server-detail-stats strong {
+ display: block;
+ margin-top: 0.15rem;
+ color: var(--omp-ink);
+ font-size: 1.5rem;
+ font-weight: 700;
+}
+
+.server-detail-updated {
+ margin: 0.75rem 0 0;
+ color: var(--omp-faint);
+ font-size: 0.875rem;
+}
+
+.omp-empty {
+ padding: 3rem 1rem;
+ color: var(--omp-muted);
+ text-align: center;
+}
+
+/* UID generator */
+.uid-step {
+ margin-top: 1.25rem;
+}
+
+.uid-generated {
+ outline: 1px solid var(--omp-accent);
+}
+
+.uid-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.625rem;
+ margin-top: 1.25rem;
+}
+
+.uid-note {
+ margin: 1.25rem 0 0;
+ padding-top: 1.25rem;
+ border-top: 1px solid var(--omp-line);
+ color: var(--omp-muted);
+}
+
+.omp-panel > p:first-child {
+ margin-top: 0;
+}
+
+/* Carousel: faded slides and previous/next buttons */
+[data-faded] {
+ opacity: 0.3;
+}
+
+[dir="rtl"] .omp-carousel-nav svg {
+ transform: scaleX(-1);
+}
+
+.omp-carousel-nav {
+ display: flex;
+ justify-content: flex-end;
+ gap: 0.5rem;
+ margin-top: 0.875rem;
+}
+
+.omp-carousel-nav button {
+ display: grid;
+ width: 2.75rem;
+ height: 2.75rem;
+ place-items: center;
+ border: 0;
+ border-radius: 50%;
+ background: var(--omp-button);
+ color: var(--omp-ink);
+ font-size: 1.25rem;
+ cursor: pointer;
+ transition: opacity 150ms ease, background-color 150ms ease;
+}
+
+.omp-carousel-nav button:hover:not(:disabled) {
+ background: var(--omp-button-hover);
+}
+
+.omp-carousel-nav button:disabled {
+ cursor: default;
+ opacity: 0.4;
+}
+
+.omp-carousel-nav button:focus-visible {
+ outline: 2px solid var(--omp-accent);
+ outline-offset: 2px;
+}
+
+/* Page motion: things arrive once, then stay still. Off for reduced motion. */
+@media (prefers-reduced-motion: no-preference) {
+ /* On load. Set --enter on each element to stagger them. */
+ .omp-enter {
+ animation: ompRise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
+ animation-delay: calc(var(--enter, 0) * 80ms);
+ }
+
+ /* On scroll, see useScrollReveal. */
+ [data-reveal] {
+ transition:
+ opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
+ transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
+ }
+
+ [data-reveal="pending"] {
+ opacity: 0;
+ transform: translateY(1.75rem);
+ }
+
+ .button {
+ transition:
+ background-color 150ms ease,
+ border-color 150ms ease,
+ box-shadow 150ms ease,
+ transform 150ms ease;
+ }
+
+ .button:hover {
+ transform: translateY(-2px);
+ }
+
+ .button:active {
+ transform: translateY(0) scale(0.98);
+ }
+
+ .button > svg {
+ transition: transform 200ms ease;
+ }
+
+ .button:hover > svg {
+ transform: translateX(3px);
+ }
+
+ .omp-carousel-nav button {
+ transition:
+ opacity 150ms ease,
+ background-color 150ms ease,
+ transform 150ms ease;
+ }
+
+ .omp-carousel-nav button:hover:not(:disabled) {
+ transform: scale(1.08);
+ }
+
+ .omp-carousel-nav button:active:not(:disabled) {
+ transform: scale(0.94);
+ }
+}
+
+@keyframes ompRise {
+ from {
+ opacity: 0;
+ transform: translateY(1.25rem);
+ }
+
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+/* Blog */
+.blog-wrapper {
+ max-width: var(--omp-page-width);
+}
+
+.blog-list-page article,
+.blog-post-page article {
+ padding: 1.5rem;
+ border-radius: var(--omp-radius);
+ background: var(--omp-item);
+}
+
+/* Infima's .margin-bottom--xl (5rem) is !important inside a CSS layer, so it can't be
+ overridden directly. Pull the next post back up to leave a 0.75rem gap. */
+.blog-list-page article + article {
+ margin-top: -4.25rem;
+}
+
+.blog-wrapper article header h1,
+.blog-wrapper article header h2 {
+ margin-bottom: 0.4rem;
+ color: var(--omp-ink);
+ font-size: clamp(1.5rem, 2.4vw, 2rem);
+ font-weight: 800;
+ letter-spacing: -0.02em;
+ line-height: 1.2;
+}
+
+.blog-wrapper article header h2 a {
+ color: inherit;
+}
+
+.blog-wrapper article header h2 a:hover {
+ color: var(--omp-accent);
+ text-decoration: none;
+}
+
+.blog-wrapper article time,
+.blog-wrapper article header [class*="container_"] {
+ color: var(--omp-faint);
+ font-size: 0.875rem;
+}
+
+.blog-wrapper article footer a {
+ color: var(--omp-accent);
+}
+
+.blog-wrapper aside h3,
+.blog-wrapper [class*="sidebarItemTitle"] {
+ color: var(--omp-faint);
+ font-size: 0.875rem;
+ font-weight: 600;
+}
+
+.blog-wrapper [class*="yearGroupHeading"] {
+ color: var(--omp-ink);
+ font-size: 1.125rem;
+ font-weight: 700;
+}
+
+.blog-wrapper [class*="sidebarItemLink"] {
+ color: var(--omp-muted);
+ font-size: 0.9rem;
+}
+
+.blog-wrapper [class*="sidebarItemLinkActive"],
+.blog-wrapper [class*="sidebarItemLink"]:hover {
+ color: var(--omp-accent) !important;
+}
+
+/* Docs and shared theme parts */
+.menu__link {
+ border-radius: var(--omp-radius-small);
+}
+
+.menu__link--active:not(.menu__link--sublist) {
+ background: var(--omp-item);
+}
+
+.theme-admonition {
+ border-radius: var(--omp-radius);
+}
+
+.pagination-nav__link {
+ border-color: transparent;
+ border-radius: var(--omp-radius);
+ background: var(--omp-item);
+}
+
+.pagination-nav__link:hover {
+ border-color: var(--omp-accent);
+}
+
+/* Responsive */
+@media (max-width: 1100px) {
+ .server-columns,
+ .server-row-body {
+ grid-template-columns: minmax(0, 1fr) 10rem 12.5rem 5.5rem;
+ }
+
+ .server-row-language,
+ .server-columns > :nth-child(3) {
+ display: none;
+ }
+}
+
+@media (max-width: 768px) {
+ .omp-page {
+ padding: 1.5rem 1rem 3rem;
+ }
+
+ .omp-page-head {
+ margin-bottom: 1.25rem;
+ }
+
+ .omp-page-head-text {
+ width: 100%;
+ }
+
+ .omp-page-subtitle {
+ margin-right: auto;
+ margin-left: auto;
+ }
+
+ .server-back {
+ display: block;
+ text-align: center;
+ }
+
+ .server-stats,
+ .server-detail-updated,
+ .server-detail-stats {
+ text-align: center;
+ }
+
+ .omp-carousel-nav {
+ justify-content: center;
+ }
+
+ .blog-wrapper article header {
+ text-align: center;
+ }
+
+ .blog-wrapper article header [class*="authorCol"],
+ .blog-wrapper article header .row {
+ justify-content: center;
+ }
+
+
+ .omp-panel {
+ padding: 1.125rem;
+ }
+
+ /* 16px or larger, or iPhones zoom the page when a field is tapped. Taller for thumbs. */
+ .omp-input,
+ .omp-select {
+ height: 2.75rem;
+ font-size: 1rem;
+ }
+
+ .button {
+ min-height: 2.75rem;
+ }
+
+ .omp-check {
+ height: 2.5rem;
+ flex: none;
+ }
+
+ /* Server list: search on its own line, the two selects beside each other */
+ .server-toolbar .omp-input,
+ .server-toolbar .button {
+ flex: 1 1 100%;
+ }
+
+ .server-toolbar .omp-select {
+ flex: 1 1 0;
+ width: 0;
+ }
+
+ .server-toolbar-foot {
+ display: block;
+ }
+
+ /* Filters stay on one line and swipe sideways, up to the screen edge */
+ .server-filters {
+ flex-wrap: nowrap;
+ margin: 0 -1rem;
+ padding: 0 1rem;
+ overflow-x: auto;
+ scrollbar-width: none;
+ }
+
+ .server-filters::-webkit-scrollbar {
+ display: none;
+ }
+
+ .server-stats {
+ margin-top: 0.5rem;
+ font-size: 0.8125rem;
+ }
+
+ .server-columns {
+ display: none;
+ }
+
+ .server-list {
+ margin-top: 0.75rem;
+ }
+
+ .server-row {
+ height: auto;
+ min-height: 4.75rem;
+ gap: 0.4rem;
+ }
+
+ .server-row-status {
+ width: 2rem;
+ }
+
+ .server-row-body {
+ grid-template-columns: minmax(0, 1fr) auto;
+ grid-template-rows: auto auto;
+ align-content: center;
+ gap: 0.35rem 0.75rem;
+ padding: 0.5rem 0.75rem;
+ }
+
+ /* Everything the desktop row shows: name, then mode and language, then address and players */
+ .server-row-name {
+ grid-column: 1 / -1;
+ min-height: 1.5rem;
+ }
+
+ .server-row-mode,
+ .server-row-language {
+ font-size: 0.875rem;
+ }
+
+ .server-row-language {
+ display: block;
+ max-width: 9rem;
+ text-align: right;
+ }
+
+ .server-row-players-word {
+ display: inline;
+ }
+
+ .server-row-copy {
+ height: 1.75rem;
+ padding: 0 0.5rem;
+ }
+
+ /* Server detail */
+ .server-detail {
+ grid-template-columns: minmax(0, 1fr);
+ }
+
+ .server-detail-stats {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 0.5rem;
+ }
+
+ .server-detail-stats strong {
+ font-size: 1.25rem;
+ overflow-wrap: anywhere;
+ }
+
+ .server-detail-stats > .omp-panel:nth-child(3) {
+ grid-column: 1 / -1;
+ }
+
+ .server-detail-updated {
+ grid-column: 1 / -1;
+ margin: 0;
+ }
+
+ .omp-page-actions,
+ .omp-page-actions > * {
+ width: 100%;
+ }
+
+ .uid-actions > * {
+ flex: 1 1 100%;
+ }
+
+ /* Blog */
+ .blog-list-page article,
+ .blog-post-page article {
+ padding: 1.125rem;
+ }
+
+ /* Menu: Download first and as a real button, links big enough for thumbs */
+ .navbar-sidebar__items .menu__list {
+ display: flex;
+ flex-direction: column;
+ }
+
+ .navbar-sidebar__items .menu__link {
+ display: flex;
+ min-height: 2.75rem;
+ align-items: center;
+ }
+}
+
+/* Controls that need JavaScript step aside when it's off. Rows still scroll by swipe,
+ scrollbar or keyboard, and the phone menu's links move into the navbar. */
+/* A page notice: a quiet card with an icon, a short title and a close button */
+.omp-notice {
+ display: flex;
+ align-items: flex-start;
+ gap: 0.875rem;
+ margin: 0 0 1.5rem;
+ padding: 1rem 0.75rem 1rem 1.125rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-item);
+ box-shadow: inset 0 0 0 1px var(--omp-line);
+}
+
+.omp-notice-icon {
+ flex: none;
+ margin-top: 0.15rem;
+ color: var(--omp-accent);
+ font-size: 1.125rem;
+}
+
+/* Only the icon carries the kind of notice */
+.omp-notice--warning .omp-notice-icon {
+ color: #d99a00;
+}
+
+.omp-notice--danger .omp-notice-icon {
+ color: #e5484d;
+}
+
+.omp-notice--tip .omp-notice-icon {
+ color: #30a46c;
+}
+
+[data-theme="dark"] .omp-notice--warning .omp-notice-icon {
+ color: #f5c045;
+}
+
+[data-theme="dark"] .omp-notice--danger .omp-notice-icon {
+ color: #ff6369;
+}
+
+[data-theme="dark"] .omp-notice--tip .omp-notice-icon {
+ color: #4cc38a;
+}
+
+.omp-notice-text {
+ flex: 1;
+ min-width: 0;
+}
+
+.omp-notice-text strong {
+ display: block;
+ margin-bottom: 0.2rem;
+ font-size: 0.9375rem;
+ font-weight: 600;
+}
+
+.omp-notice-text p {
+ max-width: 68ch;
+ margin: 0;
+ color: var(--omp-muted);
+ font-size: 0.9375rem;
+ line-height: 1.55;
+}
+
+.omp-notice-close {
+ display: grid;
+ flex: none;
+ width: 2rem;
+ height: 2rem;
+ place-items: center;
+ margin-top: -0.25rem;
+ border: 0;
+ border-radius: var(--omp-radius-small);
+ background: none;
+ color: var(--omp-muted);
+ font-size: 1.125rem;
+ cursor: pointer;
+ transition: background-color 150ms ease, color 150ms ease;
+}
+
+.omp-notice-close:hover:not(:disabled) {
+ background: var(--omp-button);
+ color: var(--omp-ink);
+}
+
+.omp-notice-close:focus-visible {
+ outline: 2px solid var(--omp-primary-hover);
+ outline-offset: 2px;
+}
+
+.omp-noscript {
+ margin: 0 0 1.5rem;
+ padding: 1rem 1.25rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-item);
+ color: var(--omp-muted);
+}
+
+@media (scripting: none) {
+ .omp-carousel-nav,
+ .loading-banner,
+ .navbar__items--right [class*="colorModeToggle"],
+ .navbar__items--right [class*="navbarSearchContainer"] {
+ display: none;
+ }
+}
+
+@media (scripting: none) and (max-width: 996px) {
+ .navbar__toggle {
+ display: none;
+ }
+
+ .navbar.navbar--fixed-top {
+ position: static;
+ height: auto;
+ }
+
+ .navbar__inner {
+ height: auto;
+ flex-wrap: wrap;
+ row-gap: 0.25rem;
+ }
+
+ .navbar__items,
+ .navbar__items--right {
+ flex: 1 1 100%;
+ flex-wrap: wrap;
+ justify-content: flex-start;
+ row-gap: 0.25rem;
+ }
+
+ .navbar__brand {
+ flex: 1 1 100%;
+ }
+
+ .navbar__items .navbar__item.navbar__link {
+ display: inline-flex;
+ align-items: center;
+ }
+
+ .navbar__items .navbar__item.dropdown {
+ display: inline-block;
+ }
+
+ .navbar__items--right > .navbar__item.navbar__link,
+ .navbar__items--right > .navbar__item.dropdown > .navbar__link {
+ display: inline-flex;
+ }
+}
diff --git a/frontend/src/lib/downloads/common.tsx b/frontend/src/lib/downloads/common.tsx
index 3c054e756538..09625a1508b4 100644
--- a/frontend/src/lib/downloads/common.tsx
+++ b/frontend/src/lib/downloads/common.tsx
@@ -1,10 +1,11 @@
+import { Page, PageHeader } from "@site/src/components/ui/Page";
import Link from "@docusaurus/Link";
import Translate, { translate } from "@docusaurus/Translate";
import Heading from "@theme/Heading";
import Layout from "@theme/Layout";
import React, { useState } from "react";
-import Admonition from "../../components/Admonition";
+import { Notice } from "../../components/ui/Notice";
import { INITIAL_VISIBLE_RELEASES } from "./constants";
import styles from "../../pages/downloads.module.css";
import BrowserOnly from "@docusaurus/BrowserOnly";
@@ -135,24 +136,23 @@ export function ReleaseListPage({ config }: ReleaseListPageProps): React.ReactEl
return (
-
-
- {config.pageTitle}
-
- {config.pageSubtitle}
+
+
{config.announcement && (
-
-
- {config.announcement.body}
-
-
+
+ {config.announcement.body}
+
)}
{visibleReleases.map((release, index) => {
const assets = release.assets;
return (
-
+
{release.tag}
{index === 0 && (
@@ -179,11 +179,13 @@ export function ReleaseListPage({ config }: ReleaseListPageProps): React.ReactEl
{release.admonition && (
-
-
- {release.admonition.body}
-
-
+
+ {release.admonition.body}
+
)}
{release.highlights && release.highlights.length > 0 && (
@@ -219,7 +221,7 @@ export function ReleaseListPage({ config }: ReleaseListPageProps): React.ReactEl
assets.map((asset) => (
@@ -229,7 +231,7 @@ export function ReleaseListPage({ config }: ReleaseListPageProps): React.ReactEl
))
) : (
-
+
View release on GitHub
@@ -270,7 +272,7 @@ export function ReleaseListPage({ config }: ReleaseListPageProps): React.ReactEl
{hasMore && (
setShowAll((prev) => !prev)}
type="button"
>
@@ -291,15 +293,15 @@ export function ReleaseListPage({ config }: ReleaseListPageProps): React.ReactEl
)}
-
-
+
+
Every release is open source. Build from source, or download directly from GitHub.
-
+
Download from GitHub
@@ -307,7 +309,7 @@ export function ReleaseListPage({ config }: ReleaseListPageProps): React.ReactEl
-
+
);
}
diff --git a/frontend/src/pages/animations.module.css b/frontend/src/pages/animations.module.css
index b91d5378a6fa..f9f697157b8d 100644
--- a/frontend/src/pages/animations.module.css
+++ b/frontend/src/pages/animations.module.css
@@ -1,422 +1,74 @@
-.pageContainer {
- padding: 5rem 1.5rem 0;
- margin-bottom: 100px;
- display: flex;
- flex-direction: column;
- align-items: center;
-}
-
-.pageTitle {
- text-align: center;
- color: #9083d2;
- font-size: 4rem;
- font-weight: 800;
- line-height: 1.1;
- letter-spacing: -0.5px;
- margin-bottom: 1rem;
- animation: fadeIn 1s ease-out;
-}
-
-.pageSubtitle {
- text-align: center;
- font-size: 1.5rem;
- line-height: 1.6;
- color: var(--ifm-color-emphasis-800);
- margin-bottom: 3rem;
- animation: fadeIn 1s ease-out 0.2s both;
-}
-
+/* Page frame, panels, controls, rows and code are shared (src/css/ui.css). */
.controls {
- display: flex;
- flex-direction: row;
- gap: 1.5rem;
- margin-bottom: 1.5rem;
- justify-content: center;
- padding: 1.25rem;
- background: var(--ifm-background-surface-color);
- border-radius: 12px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- animation: fadeIn 1s ease-out 0.3s both;
-}
-
-.controls:not(.animationDisplay .controls) {
- max-width: 700px;
- margin-left: auto;
- margin-right: auto;
-}
-
-.dropdownContainer {
- display: flex;
- flex-direction: column;
- gap: 0.5rem;
- width: 100%;
-}
-
-.label {
- font-weight: 600;
- color: var(--ifm-color-text);
- font-size: 0.875rem;
- margin-bottom: 0.25rem;
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 0.75rem;
}
.select {
- padding: 0.75rem;
- border: 2px solid var(--ifm-color-emphasis-300);
- border-radius: 8px;
- background-color: var(--ifm-background-color);
- color: var(--ifm-color-text);
- font-size: 1rem;
- transition: border-color 0.2s ease, box-shadow 0.3s ease;
width: 100%;
}
-.select:focus {
- outline: none;
- border-color: var(--ifm-color-primary);
- box-shadow: 0 0 0 3px var(--ifm-color-primary-lightest);
-}
-
-.select:disabled {
- opacity: 0.6;
- cursor: not-allowed;
-}
-
-.animationDisplay {
- display: flex;
- flex-direction: column;
- gap: 1.25rem;
- margin-top: 0;
- padding: 1.5rem;
- background: var(--ifm-background-surface-color);
- border-radius: 12px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- max-width: 1100px;
- width: 100%;
- margin-left: auto;
- margin-right: auto;
- overflow: visible;
- box-sizing: border-box;
- animation: fadeIn 1s ease-out 0.4s both;
+.topSection {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
+ gap: 0.75rem;
+ margin-top: 1rem;
}
-.animationInfo {
+.videoWrapper {
display: flex;
- flex-direction: column;
- gap: 1.5rem;
+ min-height: 12.5rem;
+ align-items: center;
+ justify-content: center;
overflow: hidden;
- width: 100%;
- min-width: 0;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-surface);
}
-.animationDetails {
- display: flex;
- flex-direction: column;
- gap: 0.5rem;
- background-color: var(--ifm-color-emphasis-100);
- padding: 1rem;
- border-radius: 8px;
- border: 1px solid var(--ifm-color-emphasis-300);
- overflow-wrap: break-word;
- word-wrap: break-word;
+.animationVideo {
+ display: block;
width: 100%;
- max-width: 100%;
- box-sizing: border-box;
- overflow: visible;
+ max-height: 31rem;
}
-.detailItem {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- padding: 0.5rem 0;
- font-size: 0.9rem;
- line-height: 1.5;
- border-bottom: 1px solid var(--ifm-color-emphasis-200);
- word-wrap: break-word;
- overflow-wrap: break-word;
- hyphens: auto;
- min-height: 1.5rem;
-}
-
-.detailItem:last-child {
- border-bottom: none;
-}
-
-.detailItem strong {
- color: var(--ifm-color-primary);
- font-weight: 600;
- min-width: 100px;
- margin-right: 1rem;
- flex-shrink: 0;
-}
-
-.detailItem span,
-.detailItem>*:not(strong) {
- flex: 1;
- word-wrap: break-word;
- overflow-wrap: break-word;
- hyphens: auto;
- max-width: calc(100% - 120px);
-}
-
-.creditsInDetails {
- margin-top: 1rem;
- padding-top: 1rem;
- border-top: 1px solid var(--ifm-color-emphasis-200);
- text-align: center;
-}
-
-.creditsInDetails p {
- margin: 0;
- font-size: 0.85rem;
- color: var(--ifm-color-emphasis-600);
+.errorMessage {
+ padding: 2rem;
+ color: var(--ifm-color-danger);
}
-.creditsInDetails a {
- color: var(--ifm-color-primary);
- text-decoration: none;
- font-weight: 500;
+.credits p {
+ margin: 0.75rem 0 0;
+ color: var(--omp-faint);
+ font-size: 0.875rem;
}
-.creditsInDetails a:hover {
- text-decoration: underline;
+.credits a {
+ color: var(--omp-accent);
}
.codeExample {
margin-top: 1rem;
- width: 100%;
- box-sizing: border-box;
}
.codeExample h3 {
- margin-bottom: 0.75rem;
- color: var(--ifm-color-primary);
- font-size: 1.1rem;
-}
-
-.codeBlock {
- background-color: var(--ifm-color-emphasis-200);
- padding: 1rem;
- border-radius: 8px;
- overflow-x: auto;
- overflow-y: hidden;
- margin: 0.5rem 0;
- border: 1px solid var(--ifm-color-emphasis-300);
- width: 100%;
- max-width: 100%;
- box-sizing: border-box;
+ margin-bottom: 0.5rem;
+ color: var(--omp-ink);
+ font-size: 1rem;
}
-.codeBlock code {
- background: none;
- padding: 0;
- font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
- font-size: 0.9rem;
- line-height: 1.4;
+.codeExample code {
white-space: pre-wrap;
- word-wrap: break-word;
- overflow-wrap: break-word;
-}
-
-.videoContainer {
- display: flex;
- flex-direction: column;
- align-items: center;
- order: -1;
-}
-
-@media (min-width: 769px) {
- .animationDisplay {
- flex-direction: column;
- gap: 1.5rem;
- overflow: hidden;
- }
-
- .topSection {
- display: flex;
- flex-direction: row;
- gap: 2rem;
- align-items: stretch;
- }
-
- .videoContainer {
- flex: 0 0 auto;
- max-width: 500px;
- overflow: visible;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
-
- .animationInfo {
- flex: 0 0 auto;
- max-width: 500px;
- overflow: visible;
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- }
-
- .animationDetails {
- width: 500px;
- max-width: 500px;
- background-color: var(--ifm-background-color);
- border-radius: 8px;
- padding: 1rem;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- height: 100%;
- box-sizing: border-box;
- }
-
- .codeExample {
- width: 100%;
- margin-top: 0;
- }
-
- .videoWrapper {
- max-width: 100%;
- padding: 0.5rem;
- }
-
- .animationVideo {
- max-height: 500px;
- width: 100%;
- }
-}
-
-.videoContainer h3,
-.animationInfo h3 {
- margin-bottom: 1rem;
- color: var(--ifm-color-primary);
- font-size: 1.1rem;
- text-align: center;
-}
-
-.videoWrapper {
- width: 100%;
- max-width: 500px;
- background-color: var(--ifm-background-color);
- border-radius: 8px;
- padding: 1rem;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- display: flex;
- align-items: center;
- justify-content: center;
- min-height: 200px;
-}
-
-.animationVideo {
- max-width: 100%;
- max-height: 400px;
- border-radius: 4px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
-}
-
-.errorMessage {
- color: var(--ifm-color-danger);
- font-style: italic;
- text-align: center;
- padding: 2rem;
}
.hint {
- text-align: center;
- color: var(--ifm-color-emphasis-600);
- font-style: italic;
- font-size: 1rem;
margin: 1rem 0 0;
-}
-
-@keyframes fadeIn {
- from {
- opacity: 0;
- transform: translateY(20px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-
-@media (max-width: 996px) {
- .pageContainer {
- padding: 4rem 1.5rem 0;
- margin-bottom: 80px;
- }
-
- .pageTitle {
- font-size: 3rem;
- }
+ color: var(--omp-muted);
}
@media (max-width: 768px) {
- .pageContainer {
- padding: 3rem 1rem 0;
- margin-bottom: 60px;
- }
-
- .pageTitle {
- font-size: 2.5rem;
- }
-
- .pageSubtitle {
- font-size: 1.25rem;
- margin-bottom: 2rem;
- }
-
- .controls {
- flex-direction: column;
- gap: 1.5rem;
- margin-left: 1rem;
- margin-right: 1rem;
- }
-
- .animationDisplay {
- margin-left: 1rem;
- margin-right: 1rem;
- padding: 1.5rem;
- flex-direction: column;
- }
-
+ .controls,
.topSection {
- flex-direction: column;
- gap: 2rem;
- }
-
- .videoContainer {
- margin-bottom: 1.5rem;
- }
-
- .videoWrapper {
- max-width: 100%;
- }
-
- .animationVideo {
- max-height: 300px;
+ grid-template-columns: minmax(0, 1fr);
}
}
-
-[data-theme='dark'] .animationDisplay {
- background-color: var(--ifm-color-emphasis-200);
-}
-
-[data-theme='dark'] .animationDetails {
- background-color: var(--ifm-color-emphasis-200);
- border-color: var(--ifm-color-emphasis-400);
-}
-
-[data-theme='dark'] .detailItem {
- border-bottom-color: var(--ifm-color-emphasis-300);
-}
-
-[data-theme='dark'] .codeBlock {
- background-color: var(--ifm-color-emphasis-300);
-}
-
-[data-theme='dark'] .videoWrapper {
- background-color: var(--ifm-color-emphasis-100);
-}
-
diff --git a/frontend/src/pages/animations.tsx b/frontend/src/pages/animations.tsx
index 527283a8bd73..0b049195b063 100644
--- a/frontend/src/pages/animations.tsx
+++ b/frontend/src/pages/animations.tsx
@@ -1,3 +1,4 @@
+import { NoScriptNotice, Page, PageHeader } from "../components/ui/Page";
import React, { useState, useMemo, useEffect } from "react";
import Layout from "@theme/Layout";
import Heading from "@theme/Heading";
@@ -88,29 +89,37 @@ const AnimationsPage = () => {
description: "Animations page meta description",
})}
>
-
-
-
- open.mp Animations Viewer
-
-
-
-
- Browse and preview all available open.mp animations.
-
-
+
+
+ open.mp Animations Viewer
+
+ }
+ subtitle={
+
+ Browse and preview all available open.mp animations.
+
+ }
+ />
-
+
+
+ Previewing animations needs JavaScript.
+
+
+
+
-
-
+
+
Library:
handleLibraryChange(e.target.value)}
- className={styles.select}
+ className={`omp-select ${styles.select}`}
>
Select a library...
{libraries.map((library) => (
@@ -121,15 +130,15 @@ const AnimationsPage = () => {
-
-
+
+
Animation:
handleAnimationChange(e.target.value)}
- className={styles.select}
+ className={`omp-select ${styles.select}`}
disabled={!selectedLibrary}
key={selectedLibrary}
>
@@ -146,8 +155,7 @@ const AnimationsPage = () => {
{currentAnimation && (
<>
-
-
+
{
target.parentNode?.appendChild(errorDiv);
}}
/>
-
-
-
-
+
+
+
Index: {currentAnimation.index}
-
+
Frames: {currentAnimation.frames}
-
+
Duration: {currentAnimation.duration}{" "}
seconds
-
+
Description: {" "}
{currentAnimation.description}
{currentAnimation.notes && (
-
+
Notes: {currentAnimation.notes}
)}
-
+
Usage Examples:
-
+
{`${translate({
id: "animations.code.forPlayers",
@@ -254,7 +261,7 @@ ApplyActorAnimation(actorid, "${currentAnimation.library}", "${currentAnimation.
)}
-
+
);
};
diff --git a/frontend/src/pages/downloads.module.css b/frontend/src/pages/downloads.module.css
index fe62f6007d94..e4de952f281c 100644
--- a/frontend/src/pages/downloads.module.css
+++ b/frontend/src/pages/downloads.module.css
@@ -1,217 +1,78 @@
-.pageContainer {
- padding: 5rem 1.5rem 0;
- max-width: 900px;
- margin: 0 auto 100px;
- width: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
+/* Page frame, panels and buttons are shared (src/css/ui.css). */
+.topNotice {
+ margin-bottom: 0.75rem;
}
-.pageTitle {
- text-align: center;
- color: #9083d2;
- font-size: 4rem;
- font-weight: 800;
- line-height: 1.1;
- letter-spacing: -0.5px;
- margin-bottom: 1rem;
- animation: fadeIn 1s ease-out;
-}
-
-.pageSubtitle {
- text-align: center;
- font-size: 1.5rem;
- line-height: 1.6;
- color: var(--ifm-color-emphasis-800);
- margin-bottom: 3rem;
- animation: fadeIn 1s ease-out 0.2s both;
-}
-
-.productSection {
- max-width: 900px;
- width: 100%;
- border-radius: 12px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- padding: 2.5rem;
- margin-bottom: 2.5rem;
- animation: fadeIn 1s ease-out 0.4s both;
- background: var(--ifm-background-surface-color);
-}
-
-.productSection:last-child {
- margin-bottom: 0;
-}
-
-.topAdmonition {
- max-width: 900px;
- width: 100%;
- margin-bottom: 2.5rem;
-}
-
-.topAdmonition :global(.admonition) {
- margin-bottom: 0;
- border-radius: 10px;
-}
-
-.trustSection {
- display: flex;
- flex-direction: column;
- gap: 1rem;
-}
-
-.trustText {
- margin: 0;
- font-size: 1.05rem;
- color: var(--ifm-color-emphasis-700);
- line-height: 1.75;
- text-align: center;
-}
-
-.trustActions {
- display: flex;
- align-items: center;
- justify-content: flex-start;
+.release {
+ margin-bottom: 0.75rem;
}
.productTitle {
- font-size: 2rem;
- font-weight: 700;
- margin-bottom: 0.25rem;
- color: var(--ifm-heading-color);
display: flex;
align-items: center;
- gap: 0.75rem;
-}
-
-.versionInfo {
- font-size: 1rem;
- color: var(--ifm-color-emphasis-600);
- margin-bottom: 2rem;
+ gap: 0.6rem;
+ margin: 0;
+ color: var(--omp-ink);
+ font-size: 1.5rem;
+ font-weight: 800;
}
.newBadge {
- display: inline-block;
- background: var(--ifm-color-primary);
+ padding: 0.1rem 0.4rem;
+ border-radius: 4px;
+ background: var(--omp-primary);
color: #fff;
- font-size: 0.7rem;
+ font-size: 0.6875rem;
font-weight: 700;
- padding: 0.15rem 0.5rem;
- border-radius: 4px;
- letter-spacing: 0.5px;
- text-transform: uppercase;
-}
-
-.downloadRow {
- display: flex;
- align-items: stretch;
- flex-wrap: wrap;
- gap: 0.75rem;
- margin-bottom: 0.5rem;
}
-.dynSslNote {
- font-size: 0.85rem;
- color: var(--ifm-color-emphasis-600);
- margin: 0 0 1.5rem;
- font-style: italic;
-}
-
-.downloadButton {
- display: flex;
- align-items: center;
- justify-content: center;
- flex: 1;
- font-weight: 600;
- border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
- transition: all 0.3s ease;
- text-align: center;
- padding: 1rem 1.5rem;
- font-size: 1.1rem;
-}
-
-.downloadButton:hover {
- transform: translateY(-3px);
- box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
-}
-
-.downloadLabel {
- display: flex;
- align-items: baseline;
-}
-
-.buttonSize {
- font-weight: 400;
- opacity: 0.85;
- margin-left: 0.5rem;
- font-size: 0.85em;
-}
-
-.githubLink {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 0.3rem;
- padding: 0.75rem 1rem;
- border-radius: 8px;
- background: var(--ifm-color-secondary-button-background);
- color: var(--ifm-color-emphasis-700) !important;
- font-size: 0.7rem;
- font-weight: 600;
- text-decoration: none;
- transition: all 0.3s ease;
- min-width: 80px;
- text-align: center;
+.versionInfo {
+ margin: 0.15rem 0 1.25rem;
+ color: var(--omp-faint);
+ font-size: 0.9rem;
}
-.githubLink:hover {
- transform: translateY(-3px);
- color: var(--ifm-color-primary) !important;
- text-decoration: none;
+.releaseNotice {
+ margin-bottom: 1rem;
}
.keyFeatures {
- margin-bottom: 1.25rem;
+ margin-bottom: 1rem;
}
.keyFeaturesTitle {
- margin: 0 0 0.6rem;
- font-size: 1.05rem;
+ margin: 0 0 0.4rem;
+ color: var(--omp-ink);
+ font-size: 1rem;
font-weight: 700;
- color: var(--ifm-heading-color);
}
.keyFeaturesList {
margin: 0;
padding-left: 1.25rem;
+ color: var(--omp-muted);
+ line-height: 1.5;
}
.keyFeaturesList li {
- margin-bottom: 0.35rem;
- color: var(--ifm-color-emphasis-800);
- line-height: 1.5;
+ margin-bottom: 0.25rem;
}
.changelogDetails {
- border-radius: 12px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- overflow: hidden;
- margin-bottom: 1.25rem;
+ margin-bottom: 1rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-surface);
}
.changelogSummary {
- padding: 1rem 1.25rem;
- font-weight: 600;
- font-size: 1rem;
- cursor: pointer;
- color: var(--ifm-font-color-base);
- list-style: none;
display: flex;
align-items: center;
gap: 0.6rem;
- transition: background 0.2s ease;
+ padding: 0.65rem 0.875rem;
+ color: var(--omp-ink);
+ font-weight: 600;
+ list-style: none;
+ cursor: pointer;
user-select: none;
}
@@ -221,36 +82,30 @@
.changelogSummary::before {
content: "\25B6";
- font-size: 0.65rem;
+ color: var(--omp-accent);
+ font-size: 0.625rem;
transition: transform 0.2s ease;
- display: inline-block;
- color: var(--ifm-color-primary);
}
.changelogDetails[open] .changelogSummary::before {
transform: rotate(90deg);
}
-.changelogSummary:hover {
- background: var(--ifm-color-emphasis-100);
-}
-
.changelogContent {
- padding: 1.25rem 1.5rem;
- border-top: 1px solid var(--ifm-color-emphasis-200);
- font-size: 0.9rem;
- line-height: 1.7;
- max-height: 500px;
+ max-height: 31rem;
+ padding: 0.25rem 0.875rem 0.875rem;
overflow-y: auto;
+ color: var(--omp-muted);
+ font-size: 0.9rem;
+ line-height: 1.6;
}
.changelogContent h1,
.changelogContent h2,
.changelogContent h3 {
- font-size: 1.1rem;
- margin-top: 1.25rem;
- margin-bottom: 0.5rem;
- color: var(--ifm-heading-color);
+ margin: 1rem 0 0.4rem;
+ color: var(--omp-ink);
+ font-size: 1rem;
}
.changelogContent h1:first-child,
@@ -260,168 +115,108 @@
}
.changelogContent ul {
+ margin: 0.4rem 0;
padding-left: 1.25rem;
- margin: 0.5rem 0;
-}
-
-.changelogContent li {
- margin-bottom: 0.25rem;
}
.changelogContent p {
- margin: 0.5rem 0;
+ margin: 0.4rem 0;
}
.changelogContent a {
- color: var(--ifm-color-primary);
- text-decoration: underline;
-}
-
-.changelogContent code {
- background: var(--ifm-color-emphasis-100);
- padding: 0.15rem 0.4rem;
- border-radius: 4px;
- font-size: 0.85em;
+ color: var(--omp-accent);
}
-.releaseAdmonition {
- margin-bottom: 1.25rem;
+.downloadRow {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: stretch;
+ gap: 0.5rem;
}
-.releaseAdmonition :global(.admonition) {
- margin-bottom: 0;
- border-radius: 10px;
+.downloadButton {
+ display: flex;
+ min-height: 2.875rem;
+ flex: 1 1 14rem;
+ align-items: center;
+ justify-content: center;
+ white-space: normal;
}
-.showMoreWrapper {
+.downloadLabel {
display: flex;
+ flex-wrap: wrap;
+ align-items: baseline;
justify-content: center;
- width: 100%;
- max-width: 900px;
- margin-bottom: 2.5rem;
- position: relative;
- animation: fadeIn 1s ease-out 0.5s both;
+ gap: 0 0.5rem;
}
+.buttonSize {
+ font-weight: 400;
+ opacity: 0.85;
+}
-.showMoreButton {
- position: relative;
- background: var(--ifm-background-color);
- border: 1px solid var(--ifm-color-emphasis-200);
- border-radius: 8px;
- padding: 0.6rem 1.75rem;
- font-size: 0.9rem;
- font-weight: 600;
- color: var(--ifm-color-emphasis-600);
- cursor: pointer;
- transition: all 0.25s ease;
- display: inline-flex;
+.githubLink {
+ display: flex;
+ min-height: 2.875rem;
align-items: center;
- gap: 0.5rem;
- width: auto;
+ justify-content: center;
+ gap: 0.4rem;
+ padding: 0 0.875rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-row);
+ color: var(--omp-ink) !important;
+ font-size: 0.875rem;
+ font-weight: 600;
+ text-decoration: none !important;
}
-.showMoreButton::after {
- content: "\25BC";
- font-size: 0.6rem;
- transition: transform 0.25s ease;
+.githubLink:hover {
+ background: var(--omp-line);
}
-.showMoreButton:hover {
- border-color: var(--ifm-color-primary);
- color: var(--ifm-color-primary);
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
- transform: translateY(-1px);
+.dynSslNote {
+ margin: 0.75rem 0 0;
+ color: var(--omp-faint);
+ font-size: 0.85rem;
}
-.showMoreButton:hover::after {
- transform: translateY(2px);
+.showMoreWrapper {
+ display: flex;
+ justify-content: center;
+ margin: 1rem 0;
}
-.footerTrust {
- max-width: 900px;
- width: 100%;
- border-radius: 12px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- padding: 2.5rem;
- animation: fadeIn 1s ease-out 0.4s both;
- background: var(--ifm-background-surface-color);
+.trust {
+ margin-top: 0.75rem;
}
-@keyframes fadeIn {
- from {
- opacity: 0;
- transform: translateY(20px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
+.trustText {
+ margin: 0;
+ color: var(--omp-muted);
}
-@media screen and (max-width: 996px) {
- .pageContainer {
- padding: 4rem 1.5rem 0;
- margin-bottom: 80px;
- }
-
- .pageTitle {
- font-size: 3rem;
- }
+.trustActions {
+ margin-top: 0.875rem;
}
-@media screen and (max-width: 768px) {
- .pageContainer {
- padding: 3rem 1rem 0;
- margin-bottom: 60px;
- }
-
- .pageTitle {
- font-size: 2.5rem;
- }
-
- .pageSubtitle {
- font-size: 1.25rem;
- margin-bottom: 2rem;
- }
-
- .productSection {
- padding: 1.5rem;
- margin-bottom: 1.5rem;
- }
-
- .trustText {
- font-size: 1rem;
- line-height: 1.65;
- }
-
- .productTitle {
- font-size: 1.5rem;
- }
-
- .downloadRow {
- flex-wrap: wrap;
- }
-
- .downloadButton {
+@media (max-width: 768px) {
+ .githubLink {
flex: 1 1 100%;
- font-size: 1rem;
- padding: 0.85rem 1.25rem;
}
- .githubLink {
- flex: 1 1 100%;
- flex-direction: row;
- gap: 0.5rem;
- padding: 0.65rem 1rem;
- font-size: 0.8rem;
+ .productTitle {
+ justify-content: center;
}
- .footerTrust {
- padding: 1.5rem;
+ .versionInfo,
+ .keyFeaturesTitle,
+ .trustText {
+ text-align: center;
}
- .showMoreWrapper {
- margin-bottom: 1.5rem;
+ .trustActions {
+ display: flex;
+ justify-content: center;
}
}
diff --git a/frontend/src/pages/index.module.css b/frontend/src/pages/index.module.css
index e9355c0edff2..ab35fb1647d6 100644
--- a/frontend/src/pages/index.module.css
+++ b/frontend/src/pages/index.module.css
@@ -1,231 +1,992 @@
-.heroBanner {
- padding: 5rem 1.5rem 0;
- position: relative;
+/* Colours and radii come from the --omp-* tokens in src/css/custom.css. */
+.page {
overflow: hidden;
+ color: var(--omp-ink);
+}
+
+.container {
+ width: 100%;
+ max-width: var(--omp-page-width);
+ margin: 0 auto;
+ padding: 0 2rem;
+}
+
+.section {
+ /* Two cards side by side come to the same width as the hero's text and launcher */
+ --slide-width: min((100vw - 5rem) / 2, 35.5rem);
+ --pair-width: calc(var(--slide-width) * 2 + 1rem);
+ padding: 4.5rem 0;
+ scroll-margin-top: 4rem;
+}
+
+.sectionTitle {
+ margin: 0;
+ color: inherit;
+ font-size: clamp(1.75rem, 2.8vw, 2.25rem);
+ font-weight: 800;
+ letter-spacing: -0.02em;
+ line-height: 1.15;
+}
+
+.sectionLead {
+ max-width: 30rem;
+ margin: 0.75rem 0 0;
+ color: var(--omp-muted);
+ font-size: 1.0625rem;
+ line-height: 1.5;
+}
+
+.sectionLead a {
+ color: var(--omp-accent);
+ font-weight: 600;
+}
+
+/* Hero: the map lives here and only here, fading out into the page. */
+.hero {
+ position: relative;
+}
+
+.hero::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background: url(/images/assets/map.png) center 30% / cover no-repeat;
+ -webkit-mask-image: linear-gradient(#000 60%, transparent);
+ mask-image: linear-gradient(#000 60%, transparent);
+ pointer-events: none;
+}
+
+.heroInner {
+ position: relative;
+ display: grid;
+ /* Text and launcher sit together as one centred group */
+ grid-template-columns: minmax(0, 24rem) minmax(0, 44rem);
+ gap: 4rem;
+ align-items: center;
+ justify-content: center;
+ max-width: var(--omp-page-width);
+ margin: 0 auto;
+ padding: 3rem 2rem 3.5rem;
+}
+
+.heroCopy {
display: flex;
flex-direction: column;
+ align-items: flex-start;
+}
+
+.versions {
+ display: inline-flex;
align-items: center;
- background: none;
- min-height: auto;
- margin-bottom: 100px;
+ gap: 0.5rem;
+ margin-bottom: 1rem;
+ color: var(--omp-muted) !important;
+ font-size: 0.875rem;
+ text-decoration: none !important;
}
-.announcementWrapper {
- position: relative;
- max-width: 900px;
- width: 100%;
- margin-bottom: 4rem;
- opacity: 1;
+.versions > svg {
+ flex: none;
+ color: var(--omp-accent);
}
-.announcement {
- max-width: 900px;
- width: 100%;
- border-radius: 12px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- animation: slideDown 0.6s ease-out;
- position: relative;
- padding-bottom: 2rem;
+.newTag {
+ flex: none;
+ padding: 0.1rem 0.4rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-primary);
+ color: #fff;
+ font-size: 0.75rem;
+ font-weight: 700;
+}
+
+.versions:hover {
+ color: var(--omp-ink) !important;
+}
+
+.heroTitle {
+ margin: 0;
+ color: inherit;
+ font-size: clamp(2.5rem, 3.6vw, 3.25rem);
+ font-weight: 800;
+ letter-spacing: -0.025em;
+ line-height: 1.08;
}
-.enhancedLink {
- color: var(--ifm-color-primary-darker);
- font-weight: bold;
- text-decoration: underline;
- transition: color 0.2s ease;
+.heroLead {
+ margin: 0.75rem 0 1.5rem;
+ color: var(--omp-muted);
+ font-size: 1.125rem;
+ line-height: 1.5;
}
-.enhancedLink:hover {
- color: var(--ifm-color-primary-darkest);
- text-decoration: underline;
+.liveStats {
+ min-height: 1.4rem;
+ margin: 1rem 0 0;
+ color: var(--omp-muted);
+ font-size: 0.9rem;
}
-.heroContent {
+.liveStats b {
+ color: var(--omp-ink);
+}
+
+.heroActions {
display: flex;
- flex-direction: row;
- justify-content: space-between;
+ flex-wrap: wrap;
align-items: center;
- max-width: 1200px;
+ gap: 0.625rem;
+}
+
+.heroWindow {
+ min-width: 0;
+}
+
+/* Never taller than the screen leaves room for, and never oversized on big monitors. */
+.devices {
+ position: relative;
width: 100%;
- gap: 4rem;
- margin-bottom: 3rem;
+ max-width: min(44rem, calc((100vh - 14rem) * 10 / 7));
+ margin-left: auto;
}
-.heroText {
+.launcherCrop {
+ aspect-ratio: 10 / 7;
+ overflow: hidden;
+ border-radius: 10px;
+ box-shadow: 0 0 0 1px var(--omp-line), 0 30px 70px -30px rgba(90, 75, 189, 0.5);
+ container-type: inline-size;
+}
+
+.launcherCrop > div {
+ width: 1000px;
+ transform: scale(var(--launcher-scale, tan(atan2(100cqw, 1000px))));
+ transform-origin: top left;
+}
+
+.devicePhone {
+ position: absolute;
+ z-index: 2;
+ right: 10.5%;
+ bottom: -4%;
+ width: 28%;
+}
+
+
+/* Features: swipeable rows of slides, each a big visual tile with the text underneath.
+ The arrows and fading are in src/components/ui/Carousel.tsx. */
+.slides {
+ /* Space beside the centred pair of cards: the next and previous ones show there, fading out */
+ --edge: calc((100vw - var(--slide-width) * 2 - 1rem) / 2);
display: flex;
+ width: 100vw;
+ align-items: stretch;
+ gap: 1rem;
+ margin: 2rem calc(50% - 50vw) 0;
+ padding: 0 var(--edge);
+ /* Slides melt into the page instead of being cut off at the screen edge */
+ -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
+ mask-image: linear-gradient(to right, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
+ overflow-x: auto;
+ overscroll-behavior-x: contain;
+ scroll-padding-inline-start: var(--edge);
+ scroll-snap-type: x mandatory;
+ scrollbar-width: none;
+}
+
+.slides::-webkit-scrollbar {
+ display: none;
+}
+
+.slides:focus-visible {
+ border-radius: var(--omp-radius-small);
+ outline: 2px solid var(--omp-primary-hover);
+ outline-offset: -2px;
+}
+
+.slides > * {
+ min-width: 0;
+ flex: 0 0 var(--slide-width);
+ scroll-snap-align: start;
+}
+
+.box {
+ --tile-height: 20rem;
+ display: flex;
+ min-width: 0;
flex-direction: column;
+}
+
+.box h3 {
+ margin: 1rem 0 0;
+ color: inherit;
+ font-size: 1.1875rem;
+ font-weight: 700;
+ line-height: 1.3;
+}
+
+.box p {
+ margin: 0.35rem 0 0;
+ color: var(--omp-muted);
+ line-height: 1.5;
+}
+
+/* The visual tile: always first, always the same size */
+.boxArt,
+.promptArt,
+.miniCode,
+.code,
+.badge {
+ position: relative;
+ order: -1;
+ width: 100%;
+ height: var(--tile-height);
+ flex: none;
+ margin: 0;
+ overflow: hidden;
+ border-radius: var(--omp-radius);
+ background: var(--omp-item);
+}
+
+.boxArt {
+ display: grid;
+ align-content: center;
+ gap: 0.4rem;
+ padding: 1.5rem;
+ font-size: 0.875rem;
+}
+
+/* Results collapse upward as the search narrows, so the box itself never moves */
+/* Tiles showing the real launcher UI, cropped: see LauncherPiece */
+.boxArt.uiArt {
+ display: block;
+ padding: 0;
+ background: var(--omp-surface);
+ box-shadow: inset 0 0 0 1px var(--omp-line);
+ container-type: inline-size;
+}
+
+.pieceTabs {
+ margin-bottom: 8px;
+}
+
+.pieceRules {
+ position: absolute;
+ z-index: 2;
+ top: 154px;
+ left: 13px;
+ width: calc(var(--zoom-view) - 26px);
+}
+
+/* The right-click menu in the favorites tile, beside the row it opened on */
+.pieceMenu {
+ position: absolute;
+ z-index: 4;
+ left: 140px;
+}
+
+.pieceCursor {
+ position: absolute;
+ z-index: 5;
+}
+
+.nickBar {
+ display: flex;
+ justify-content: center;
+ padding-top: 22px;
+}
+
+
+
+.promptArt {
+ display: flex;
align-items: flex-start;
- max-width: 600px;
+ justify-content: center;
+ padding: 1.5rem 1.5rem 0;
}
-.heroTitle {
- color: #9083d2;
- margin-bottom: 2rem;
- font-size: 4rem;
+.promptArt > div {
+ flex: none;
+}
+
+.code,
+.miniCode {
+ font-size: 0.875rem;
+ direction: ltr;
+ text-align: left;
+}
+
+.code > div,
+.miniCode > div {
+ height: 100%;
+ margin: 0;
+ border-radius: 0;
+ box-shadow: none;
+}
+
+/* Code tiles are pictures, cropped by the tile, so nothing fights the swipe */
+.code :global(pre),
+.miniCode :global(pre) {
+ overflow: hidden;
+}
+
+.badge {
+ display: grid;
+ place-items: center;
+ border: 0;
+ box-shadow: none;
+ color: var(--omp-accent);
+ font-family: inherit;
+ font-size: var(--badge-size, 6rem);
font-weight: 800;
- line-height: 1.1;
- letter-spacing: -0.5px;
- animation: fadeIn 1s ease-out;
+ letter-spacing: -0.03em;
+}
+
+.badge > svg {
+ transform: scale(var(--badge-icon-scale, 3.4));
+}
+
+/* Runs on your hardware: one open column per system, split by hairlines rather than boxed,
+ so nothing reads as a button. */
+.boxArt.platforms {
+ display: flex;
+ flex-direction: column;
+ gap: 0.75rem;
+ padding: 1rem;
}
-.heroDescription {
- font-size: 1.5rem;
- line-height: 1.6;
- margin-bottom: 2rem;
- color: var(--ifm-color-emphasis-800);
- animation: fadeIn 1s ease-out 0.2s both;
+.platformGrid {
+ display: grid;
+ flex: 1;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ min-height: 0;
}
-.heroButtons {
+.platform {
display: flex;
+ min-width: 0;
flex-direction: column;
- gap: 1.25rem;
- animation: fadeIn 1s ease-out 0.4s both;
+ align-items: center;
+ justify-content: center;
+ gap: 0.5rem;
+}
+
+.platform + .platform {
+ border-inline-start: 1px solid var(--omp-line);
}
-.button {
- width: 320px;
+.platform b {
+ font-size: 0.9375rem;
font-weight: 600;
- border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
- transition: all 0.3s ease;
- text-align: center;
- padding: 1rem 1.5rem;
- font-size: 1.1rem;
}
-.button:hover {
- transform: translateY(-3px);
- box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
+.platformLogo {
+ flex: none;
+ color: var(--omp-ink);
+ font-size: 3.25rem;
}
-.socialIcon {
- filter: brightness(0) invert(1);
+.platformChips {
+ display: flex;
+ min-height: 1.5rem;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 0.25rem 0.5rem;
+ padding: 0 0.25rem;
}
-.socialLinks {
+/* Plain labels with a status dot, not filled or outlined pills */
+.chipStable,
+.chipNightly {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.3rem;
+ font-family: var(--ifm-font-family-monospace);
+ font-size: 0.75rem;
+ font-weight: 600;
+ line-height: 1.3;
+}
+
+.chipStable::before,
+.chipNightly::before {
+ content: "";
+ width: 0.4rem;
+ height: 0.4rem;
+ border-radius: 50%;
+}
+
+.chipStable {
+ color: var(--omp-ink);
+}
+
+.chipStable::before {
+ background: var(--omp-primary);
+}
+
+.chipNightly {
+ color: var(--omp-muted);
+}
+
+.chipNightly::before {
+ box-shadow: inset 0 0 0 1px var(--omp-muted);
+}
+
+.platformLegend {
+ display: flex;
+ flex: none;
+ justify-content: center;
+ gap: 1rem;
+ color: var(--omp-muted);
+ font-size: 0.75rem;
+}
+
+.platformLegend span {
+ display: inline-flex;
+ align-items: center;
+}
+
+/* The legend reuses the dots alone */
+.platformLegend i {
+ font-size: 0;
+ gap: 0;
+ margin-inline-end: 0.35rem;
+}
+
+@media (max-width: 720px) {
+ .boxArt.platforms {
+ gap: 0.5rem;
+ padding: 0.625rem;
+ }
+
+ .platformLogo {
+ font-size: 2.25rem;
+ }
+
+ .platform b {
+ font-size: 0.8125rem;
+ }
+
+ .chipStable,
+ .chipNightly {
+ font-size: 0.6875rem;
+ }
+}
+
+/* Most of a keyboard: quiet keys cropped by the tile and fading out, one lit */
+.keyboard {
+ --keyboard-key: 2.5rem;
+ --keyboard-gap: 0.3rem;
display: grid;
- grid-template-columns: repeat(6, 1fr);
- gap: 1.5rem;
- margin-top: 3rem;
- animation: simpleFadeIn 1s ease-out 0.6s both;
- max-width: 600px;
- width: 100%;
+ width: max-content;
+ gap: var(--keyboard-gap);
+ direction: ltr;
+ /* A mask clips everything outside the element's box, and the lit key sits in the top row,
+ so its glow would be cut off flat. Room above and below, taken back by the margins, keeps
+ the glow inside the mask; the ellipse is adjusted so the fade lands where it did. */
+ margin-block: -1.5rem;
+ padding-block: 1.5rem;
+ transform: translateX(calc(var(--keyboard-key) * -1.5));
+ -webkit-mask-image: radial-gradient(ellipse 62% 74% at 62% 34%, #000 55%, transparent 100%);
+ mask-image: radial-gradient(ellipse 62% 74% at 62% 34%, #000 55%, transparent 100%);
}
-.socialLink {
+.keyRow {
display: flex;
+ gap: var(--keyboard-gap);
+}
+
+/* Rows of a real keyboard sit staggered */
+.keyRow:nth-child(3) {
+ margin-left: calc(var(--keyboard-key) * 0.5);
+}
+
+.keyRow:nth-child(4) {
+ margin-left: calc(var(--keyboard-key) * 0.75);
+}
+
+.keyRow:nth-child(5) {
+ margin-left: calc(var(--keyboard-key) * 1.25);
+}
+
+.key {
+ display: grid;
+ width: var(--keyboard-key);
+ height: var(--keyboard-key);
+ flex: none;
+ place-items: center;
+ padding-bottom: 0.15rem;
+ border: 0;
+ border-radius: 0.4rem;
+ background: var(--omp-surface);
+ box-shadow:
+ inset 0 -0.15rem 0 rgba(0, 0, 0, 0.22),
+ 0 0.1rem 0 rgba(0, 0, 0, 0.3);
+ color: var(--omp-faint);
+ font-family: inherit;
+ font-size: 0.6875rem;
+ font-weight: 600;
+ letter-spacing: 0;
+ line-height: 1;
+}
+
+.keycap {
+ position: relative;
+ background: linear-gradient(160deg, #8d7ff0 0%, var(--omp-primary) 55%, var(--omp-primary-strong) 100%);
+ box-shadow:
+ inset 0 1px 1px rgba(255, 255, 255, 0.35),
+ inset 0 -0.2rem 0 rgba(0, 0, 0, 0.28),
+ 0 0.2rem 0 #3d3290,
+ 0 0.5rem 1.5rem rgba(111, 96, 214, 0.65);
+ z-index: 1;
+ color: #fff;
+ font-size: 0.875rem;
+ font-weight: 700;
+}
+
+.boxAccent .badge {
+ background: var(--omp-primary-strong);
+ color: #fff;
+}
+
+.boxLink {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.35rem;
+ margin-top: 0.5rem;
+ color: var(--omp-accent);
+ font-size: 0.9rem;
+ font-weight: 600;
+}
+
+/* Same parts as the launcher's nickname field and its recent-names dropdown
+ (src/containers/NavBar.tsx in the launcher repo). */
+.nickField {
+ display: flex;
+ align-items: flex-start;
+}
+
+.nickIcon {
+ display: flex;
+ width: 30px;
+ height: 30px;
+ flex: none;
align-items: center;
justify-content: center;
- width: 70px;
- height: 70px;
- border-radius: 12px;
- transition: all 0.3s ease;
- background-color: #9083d2;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-surface);
}
-.socialLink:hover {
- transform: translateY(-3px);
- box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
+.nickIcon > span {
+ background-color: var(--omp-faint);
}
-.mainContainer {
- margin-top: 0;
+.nickField {
+ margin-left: 9px;
}
-/* Animations */
-@keyframes fadeIn {
- from {
- opacity: 0;
- transform: translateY(20px);
+.nickInput {
+ width: 190px;
+ flex: none;
+ margin-left: 9px;
+ font-size: 14.8px;
+}
+
+.nickValue {
+ display: flex;
+ height: 30px;
+ align-items: center;
+ padding: 0 0.35rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-input);
+}
+
+.nickDropdown {
+ display: flex;
+ flex-direction: column;
+ margin-top: 0.1rem;
+ overflow: hidden;
+ border: 1px solid var(--omp-faint);
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-item);
+ font-size: inherit;
+}
+
+.nickDropdown span {
+ padding: 0.35rem 0.5rem;
+}
+
+.nickDropdown {
+ position: relative;
+}
+
+.nickPicked {
+ background: color-mix(in srgb, var(--omp-primary) 45%, transparent);
+}
+
+.miniRow {
+ display: flex;
+ min-width: 0;
+ height: 2.125rem;
+ align-items: center;
+ gap: 0.6rem;
+ padding: 0 0.6rem;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-surface);
+}
+
+
+
+
+
+
+.miniName {
+ overflow: hidden;
+ flex: 1;
+ min-width: 0;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.miniMuted {
+ flex: none;
+ color: var(--omp-faint);
+}
+
+.sectionHead,
+.section :global(.omp-carousel-nav) {
+ max-width: var(--pair-width);
+ margin-right: auto;
+ margin-left: auto;
+}
+
+.sectionHead {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: 1rem 2rem;
+}
+
+.archTag {
+ flex: none;
+ color: var(--omp-accent);
+ font-size: 0.8125rem;
+ font-weight: 700;
+}
+
+.heroSocials {
+ margin-top: 1.25rem;
+}
+
+.heroSocials .socials a {
+ width: 2.25rem;
+ height: 2.25rem;
+}
+
+.heroSocials .socials svg {
+ font-size: 1.125rem;
+}
+
+.socials {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.4rem;
+}
+
+.socials a {
+ display: grid;
+ width: 2.5rem;
+ height: 2.5rem;
+ place-items: center;
+ border-radius: var(--omp-radius-small);
+ background: var(--omp-item);
+ color: var(--omp-muted);
+ transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
+}
+
+/* Hover must stand out from the page, in both themes */
+.socials a:hover {
+ background: var(--omp-primary);
+ color: #fff;
+ transform: translateY(-2px);
+}
+
+.socials svg {
+ display: block;
+ font-size: 1.25rem;
+}
+
+/* Page arrival: the phone lands after the launcher; cards slide in from the right, in turn */
+@media (prefers-reduced-motion: no-preference) {
+ .devicePhone {
+ animation: phoneArrive 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 650ms both;
}
- to {
- opacity: 1;
- transform: translateY(0);
+ /* The slide's contents move, never the slide: it is the scroll-snap target, and moving
+ it drags the row along and leaves it off position. */
+ .slides > * {
+ transition: opacity 300ms ease;
+ }
+
+ .slides > * > * {
+ transition: translate 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
+ }
+
+ .slides > :nth-child(2) > * { transition-delay: 70ms; }
+ .slides > :nth-child(3) > * { transition-delay: 140ms; }
+ .slides > :nth-child(4) > * { transition-delay: 210ms; }
+ .slides > :nth-child(n + 5) > * { transition-delay: 280ms; }
+
+ [data-reveal="pending"] .slides > * > * {
+ translate: 3rem 0;
+ }
+
+ :global([dir="rtl"]) [data-reveal="pending"] .slides > * > * {
+ translate: -3rem 0;
}
}
-@keyframes simpleFadeIn {
+@keyframes phoneArrive {
from {
opacity: 0;
+ transform: translateY(2.5rem) rotate(2deg);
}
to {
opacity: 1;
+ transform: translateY(0) rotate(0);
}
}
-@keyframes slideDown {
- from {
- opacity: 0;
- transform: translateY(-20px);
+/* Motion, only where it says something: the key is pressed, a search is typed,
+ a favorite is hearted, a recent name is chosen.
+ Timings are deliberately uneven so tiles never pulse together. Faded slides pause. */
+
+[data-faded] *,
+[data-faded] *::before,
+[data-faded] *::after {
+ animation-play-state: paused !important;
+}
+
+@media (prefers-reduced-motion: no-preference) {
+ .keycap {
+ animation: keyPress 4.3s ease-in-out infinite;
}
- to {
- opacity: 1;
+}
+
+@keyframes keyPress {
+ 0%, 62%, 82%, 100% {
+ box-shadow:
+ inset 0 1px 1px rgba(255, 255, 255, 0.35),
+ inset 0 -0.2rem 0 rgba(0, 0, 0, 0.28),
+ 0 0.2rem 0 #3d3290,
+ 0 0.5rem 1.5rem rgba(111, 96, 214, 0.65);
transform: translateY(0);
}
+
+ 70%, 74% {
+ box-shadow:
+ inset 0 1px 1px rgba(255, 255, 255, 0.25),
+ inset 0 -0.2rem 0 rgba(0, 0, 0, 0.28),
+ 0 0.05rem 0 #3d3290,
+ 0 0.25rem 2.25rem rgba(141, 127, 240, 0.95);
+ transform: translateY(0.15rem);
+ }
}
-/* Responsive styles */
-@media screen and (max-width: 996px) {
- .heroBanner {
- padding: 4rem 1.5rem 0;
- margin-bottom: 80px;
+
+
+
+
+/* Responsive */
+@media (max-width: 900px) {
+ .heroInner {
+ justify-content: stretch;
+ grid-template-columns: minmax(0, 1fr);
+ gap: 2.25rem;
+ padding-top: 2.5rem;
}
- .heroContent {
- flex-direction: column;
- text-align: center;
- gap: 3rem;
+ .devices {
+ margin-right: auto;
}
- .heroText {
+ /* Once the hero stacks, the text sits centered above the launcher. */
+ .heroCopy {
align-items: center;
text-align: center;
- max-width: 100%;
+ }
+
+ .heroLead {
+ max-width: 34rem;
+ }
+
+ .heroActions {
+ justify-content: center;
+ }
+
+ .heroCopy .socials {
+ justify-content: center;
+ }
+
+ .heroCopy .liveStats {
+ text-align: center;
}
.heroTitle {
- font-size: 3rem;
+ max-width: none;
+ font-size: clamp(2.5rem, 6vw, 3.25rem);
+ }
+}
+
+@media (max-width: 600px) {
+ .container,
+ .heroInner {
+ padding-right: 1rem;
+ padding-left: 1rem;
+ }
+
+ .section {
+ padding: 3.5rem 0;
}
- .button {
+
+
+ .heroActions > :global(.button) {
+ flex: 1 1 100%;
+ }
+}
+
+/* Phones: the launcher is shown like a product shot, the real window scaled down and
+ cropped at the screen edge, with the phone in front. */
+@media (max-width: 720px) {
+ .section {
+ padding: 2.75rem 0;
+ }
+
+ .heroInner {
+ gap: 1.75rem;
+ padding-bottom: 2.25rem;
+ }
+
+ .heroCopy .heroActions {
+ width: 100%;
+ }
+
+ .devices {
+ max-width: none;
+ }
+
+ .devicePhone {
+ right: 0.5rem;
+ bottom: -1.25rem;
+ width: 6rem;
+ }
+
+
+ .sectionHead {
+ justify-content: flex-start;
+ }
+
+ .sectionTitle {
width: 100%;
}
- .heroButtons {
+ .sectionHead .heroActions {
width: 100%;
- max-width: 350px;
}
-}
-@media screen and (max-width: 768px) {
- .heroBanner {
- padding: 3rem 1rem 0;
- margin-bottom: 60px;
+ .sectionHead .heroActions {
+ gap: 0.5rem;
}
- .heroTitle {
- font-size: 2.5rem;
+ .sectionHead .heroActions > :global(.button) {
+ flex: 1 1 auto;
+ padding: 0 0.625rem;
+ font-size: 0.9375rem;
+ white-space: nowrap;
+ }
+
+ /* Each slide snaps to the middle of the screen, its neighbours peeking in either side. */
+ .sectionHead,
+ .section :global(.omp-carousel-nav) {
+ max-width: none;
+ }
+
+ .slides {
+ --slide-width: min(82vw, 21rem);
+ --edge: calc((100vw - var(--slide-width)) / 2);
+ width: auto;
+ --badge-size: 4.5rem;
+ --badge-icon-scale: 2.6;
+ --cipher-size: 1.0625rem;
+ gap: 0.75rem;
+ margin: 1.25rem -1rem 0;
+ -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
+ mask-image: linear-gradient(to right, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
+ scroll-padding-inline-start: 0;
+ }
+
+ .slides > * {
+ scroll-snap-align: center;
+ }
+
+ .box {
+ --tile-height: 15rem;
+ }
+
+ .keyboard {
+ --keyboard-key: 2rem;
+ --keyboard-gap: 0.2rem;
+ }
+
+ .box h3 {
+ margin-top: 0.875rem;
+ font-size: 1.0625rem;
+ }
+
+ .box p {
+ font-size: 0.9375rem;
+ line-height: 1.45;
+ }
+
+ .boxArt {
+ padding: 1rem;
+ }
+
+ .promptArt {
+ padding: 1rem 1rem 0;
}
- .heroDescription {
- font-size: 1.25rem;
+ .code,
+ .miniCode {
+ font-size: 0.75rem;
}
- .socialLinks {
- grid-template-columns: repeat(3, 1fr);
- /* 3 columns on mobile so we can avoid the icons making a line break*/
- max-width: 300px;
- gap: 1rem;
+ .boxLink {
+ font-size: 0.875rem;
}
- .socialLink {
- width: 60px;
- height: 60px;
- margin: 0 auto;
+}
+
+/* Without JavaScript there are no arrows, so the scrollbar stays and nothing is faded out. */
+@media (scripting: none) {
+ .slides {
+ padding-bottom: 0.75rem;
+ -webkit-mask-image: none;
+ mask-image: none;
+ scrollbar-color: var(--omp-faint) transparent;
+ scrollbar-width: thin;
}
+ .slides::-webkit-scrollbar {
+ display: block;
+ height: 0.5rem;
+ }
+
+ .slides::-webkit-scrollbar-thumb {
+ border-radius: 999px;
+ background: var(--omp-faint);
+ }
}
diff --git a/frontend/src/pages/index.tsx b/frontend/src/pages/index.tsx
index c19c4aae22ce..ea2d54e8e7c6 100644
--- a/frontend/src/pages/index.tsx
+++ b/frontend/src/pages/index.tsx
@@ -1,281 +1,688 @@
import Link from "@docusaurus/Link";
-import HomepageFeatures from "@site/src/components/HomepageFeatures";
+import { default as Translate, translate } from "@docusaurus/Translate";
+import CodeBlock from "@theme/CodeBlock";
import Heading from "@theme/Heading";
import Layout from "@theme/Layout";
-import Image from "@theme/ThemedImage";
import clsx from "clsx";
-import React, { useState } from "react";
+import React, { useEffect, useRef, useState, type CSSProperties, type ReactNode } from "react";
+import { FaApple, FaLinux, FaWindows } from "react-icons/fa";
+import { FaDiscord, FaFacebook, FaInstagram, FaTwitch, FaXTwitter, FaYoutube } from "react-icons/fa6";
+import { FiArrowRight, FiBookOpen } from "react-icons/fi";
-import Admonition from "../components/Admonition";
+import { AmxArt, CodeTyper, CppArt, Cursor, EncryptionArt, NpcListArt, RepoArt, ShieldArt } from "../components/HomeArt";
+import LauncherSim, {
+ Icon,
+ LauncherFilterModal,
+ LauncherListHeader,
+ LauncherNavBar,
+ LauncherPiece,
+ LauncherRules,
+ LauncherSearchRow,
+ LauncherServerMenu,
+ LauncherServerRow,
+ SAMPLE_SERVERS,
+} from "../components/LauncherSim";
+import JoinPrompt from "../components/LauncherSim/JoinPrompt";
+import PhoneFrame, { SHOW_PHONE } from "../components/PhoneFrame";
+import { Carousel } from "../components/ui/Carousel";
+import { useScrollReveal } from "../components/ui/useScrollReveal";
+import { API_ADDRESS } from "../constants";
+import { CoreServerData } from "../types";
import styles from "./index.module.css";
-import { default as Translate, translate } from '@docusaurus/Translate';
+// Update these when a new version is released.
+const LAUNCHER_VERSION = "v1.7.0";
+const SERVER_VERSION = "v1.6.7.3218";
const socials = [
- {
- labelId: "homepage.social.discord",
- labelMessage: "Discord icon",
- src: "/images/assets/discord-icon.svg",
- href: "https://discord.com/invite/samp",
- size: 45,
- },
- {
- labelId: "homepage.social.facebook",
- labelMessage: "Facebook icon",
- src: "/images/assets/facebook.svg",
- href: "https://www.facebook.com/openmultiplayer",
- size: 33,
- },
- {
- labelId: "homepage.social.instagram",
- labelMessage: "Instagram icon",
- src: "/images/assets/instagram.svg",
- href: "https://instagram.com/openmultiplayer/",
- size: 33,
- },
- {
- labelId: "homepage.social.twitch",
- labelMessage: "Twitch icon",
- src: "/images/assets/twitch.svg",
- href: "https://twitch.tv/openmultiplayer",
- size: 29,
- },
- {
- labelId: "homepage.social.x",
- labelMessage: "X (formerly Twitter) icon",
- src: "/images/assets/x.svg",
- href: "https://x.com/openmultiplayer",
- size: 29,
- },
- {
- labelId: "homepage.social.youtube",
- labelMessage: "YouTube icon",
- src: "/images/assets/youtube.svg",
- href: "https://youtube.com/openmultiplayer",
- size: 35,
- },
+ { labelId: "homepage.social.discord", labelMessage: "Discord icon", icon: FaDiscord, href: "https://discord.com/invite/samp"},
+ { labelId: "homepage.social.facebook", labelMessage: "Facebook icon", icon: FaFacebook, href: "https://www.facebook.com/openmultiplayer"},
+ { labelId: "homepage.social.instagram", labelMessage: "Instagram icon", icon: FaInstagram, href: "https://instagram.com/openmultiplayer/"},
+ { labelId: "homepage.social.twitch", labelMessage: "Twitch icon", icon: FaTwitch, href: "https://twitch.tv/openmultiplayer"},
+ { labelId: "homepage.social.x", labelMessage: "X (formerly Twitter) icon", icon: FaXTwitter, href: "https://x.com/openmultiplayer"},
+ { labelId: "homepage.social.youtube", labelMessage: "YouTube icon", icon: FaYoutube, href: "https://youtube.com/openmultiplayer"},
];
-const SocialIcons = () => {
- return (
-
- {socials.map((social, index) => {
- const label = translate({
- id: social.labelId,
- message: social.labelMessage,
- description: "Accessible label and image alt text for homepage social link",
- });
- return (
-
-
+const NPC_EXAMPLE = `new npc = NPC_Create("Ghost");
+NPC_Spawn(npc);
+NPC_SetWeapon(npc, WEAPON_M4);
+NPC_Move(npc, 1958.3, 1343.1, 15.4);`;
+
+// Totals only. Individual servers stay off the front page.
+// Eases a number up from zero when it first arrives.
+const useCountUp = (target: number | undefined, duration = 1100): number => {
+ const [value, setValue] = useState(0);
+ const shown = useRef(0);
+ useEffect(() => {
+ if (target === undefined) return undefined;
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
+ setValue(target);
+ return undefined;
+ }
+ const start = performance.now();
+ let frame = 0;
+ const from = shown.current;
+ const tick = (now: number) => {
+ const progress = Math.min(1, (now - start) / duration);
+ const next = Math.round(from + (target - from) * (1 - (1 - progress) ** 3));
+ shown.current = next;
+ setValue(next);
+ if (progress < 1) frame = requestAnimationFrame(tick);
+ };
+ frame = requestAnimationFrame(tick);
+ return () => cancelAnimationFrame(frame);
+ }, [target, duration]);
+ return value;
+};
+
+// Refreshes while the element is on screen and the tab is open.
+const LIVE_REFRESH_MS = 30_000;
+
+const useLiveTotals = (watched: React.RefObject) => {
+ const [totals, setTotals] = useState<{ players: number; servers: number } | null>(null);
+
+ useEffect(() => {
+ let cancelled = false;
+ let onScreen = true;
+ const load = () =>
+ fetch(`${API_ADDRESS}/servers/`)
+ .then((response) => {
+ if (!response.ok) throw new Error(`HTTP ${response.status}`);
+ return response.json();
+ })
+ .then((data: CoreServerData[]) => {
+ if (cancelled) return;
+ setTotals({
+ players: data.reduce((sum, server) => sum + server.pc, 0),
+ servers: data.length,
+ });
+ })
+ .catch(() => undefined);
+ load();
+ const observer = new IntersectionObserver(([entry]) => {
+ onScreen = entry.isIntersecting;
+ });
+ if (watched.current) observer.observe(watched.current);
+ const timer = window.setInterval(() => {
+ if (onScreen && !document.hidden) load();
+ }, LIVE_REFRESH_MS);
+ return () => {
+ cancelled = true;
+ observer.disconnect();
+ window.clearInterval(timer);
+ };
+ }, [watched]);
+
+ return totals;
+};
+
+const Socials = () => (
+
+ {socials.map((social) => {
+ const label = translate({
+ id: social.labelId,
+ message: social.labelMessage,
+ description: "Accessible label and image alt text for homepage social link",
+ });
+ return (
+
+
- );
- })}
+ );
+ })}
+
+);
+
+// The launcher is drawn at its real 1000x700 and scaled as one picture to fit its frame,
+// so it looks the same at every size. CSS does the scaling; this is only for browsers
+// that can't divide lengths in calc-style functions.
+const FittedLauncher = () => {
+ const frame = useRef(null);
+ const [scale, setScale] = useState(null);
+
+ useEffect(() => {
+ const element = frame.current;
+ if (!element || CSS.supports("width", "calc(1px * tan(atan2(1px, 1px)))")) return undefined;
+ const observer = new ResizeObserver(() => setScale(element.clientWidth / 1000));
+ observer.observe(element);
+ return () => observer.disconnect();
+ }, []);
+
+ return (
+
+
);
};
-type HomepageAnnouncementMode = "launcher" | "server" | "both";
-
-// Select the release announcement and update its version before publishing.
-const homepageAnnouncementMode: HomepageAnnouncementMode = "both";
-const homepageAnnouncementVersions = {
- launcher: "v1.7.0",
- server: "v1.6.7.3218",
-};
+const enter = (step: number) => ({ "--enter": step }) as CSSProperties;
-const HomepageHeader = () => {
- const [showAnnouncement, setShowAnnouncement] = useState(true);
- const [isClosingAnnouncement, setIsClosingAnnouncement] = useState(false);
-
- const closeAnnouncement = () => {
- setIsClosingAnnouncement(true);
- window.setTimeout(() => {
- setShowAnnouncement(false);
- }, 260);
- };
-
- const announcementTitle =
- homepageAnnouncementMode === "launcher" ? (
- {homepageAnnouncementVersions.launcher} }}
- >
- {'open.mp Launcher {version} is out now!'}
-
- ) : homepageAnnouncementMode === "server" ? (
- {homepageAnnouncementVersions.server} }}
- >
- {'open.mp server {version} is out now!'}
-
- ) : (
- {homepageAnnouncementVersions.server},
- launcherVersion: {homepageAnnouncementVersions.launcher} ,
- }}
- >
- {'open.mp server {serverVersion} and Launcher {launcherVersion} are now available!'}
-
- );
+const Hero = () => {
+ const hero = useRef(null);
+ const totals = useLiveTotals(hero);
+ const players = useCountUp(totals?.players);
+ const servers = useCountUp(totals?.servers);
return (
-
-
- {showAnnouncement && (
-
-
- {homepageAnnouncementMode !== "launcher" && (
- <>
-
- This server release adds NPC vehicle controls, improves NPC vehicle movement, and fixes networking and scripting issues.
- {" "}
-
- Server changelog
- |{" "}
-
- Server download
-
- >
+
+
+
+
+
+ New
+
+ {" "}
+
+ Launcher {" "}
+ {LAUNCHER_VERSION} · Server {" "}
+ {SERVER_VERSION}
+
+
+
+
+ Open Multiplayer
+
+
+
+ A multiplayer mod for GTA San Andreas, fully backwards compatible with SA-MP.
+
+
+
+
+ {totals && (
+ {players.toLocaleString()},
+ servers: {servers.toLocaleString()} ,
+ }}
+ >
+ {"{players} players on {servers} servers"}
+
)}
- {homepageAnnouncementMode === "both" && }
- {homepageAnnouncementMode !== "server" && (
- <>
-
- The launcher improves its in-game overlay, graphics-mod support, and connection reliability.
- {" "}
-
- Launcher updates
-
- >
+
+
+
+
+
+
+
+
+ {SHOW_PHONE && (
+
)}
-
-
- Dismiss this message
-
+
+
+
+
+ );
+};
+
+// The launcher tiles are still frames, each showing the moment that makes its point.
+
+// The filter menu open with "Only open.mp servers" ticked, over a search for "roleplay":
+// the list narrowed to what you want.
+const FIND_SEARCH = "roleplay";
+
+const FindServerArt = () => {
+ const results = SAMPLE_SERVERS.filter(
+ (server) =>
+ server.omp &&
+ (server.name.toLowerCase().includes(FIND_SEARCH) || server.mode.toLowerCase().includes(FIND_SEARCH)),
+ ).slice(0, 6);
+
+ return (
+
+
+
+
+ {results.map((server, index) => (
+
+ ))}
+
+
+
+ );
+};
+
+// open.mp and SA-MP servers in one list, with a SA-MP one picked and its rules showing.
+const COMPATIBILITY_ROWS = [1, 0, 4];
+
+const CompatibilityArt = () => {
+ const picked = SAMPLE_SERVERS[COMPATIBILITY_ROWS[1]];
+
+ return (
+
+
+
+ {COMPATIBILITY_ROWS.map((index) => (
+
+ ))}
+
+
+
+
+
+ );
+};
+
+// Right click a server in the Internet tab, with "Add to Favorites" about to be clicked.
+const INTERNET_ROWS = [2, 0, 1, 3, 4, 5, 9];
+const rowY = (index: number) => 90 + index * 34;
+
+const FavoritesArt = () => (
+
+
+
+
+
+
+ {INTERNET_ROWS.map((index, row) => (
+
+ ))}
+
+
+
+
+
+
+
+
+);
+
+// The nickname field with its recent names open below it.
+const RECENT_NAMES = ["Ghost", "Nitro", "Rookie"];
+
+const NicknameArt = () => (
+
+
+
+
+
+
+
+
+
{RECENT_NAMES[0]}
+
+ {RECENT_NAMES.map((name, index) => (
+
+ {name}
+
+ ))}
-
+
- )}
-
-
-
-
- Open Multiplayer
+
+
+
+);
+
+// Most of a real keyboard, cropped by the tile, with the key that opens the in-game browser lit.
+const KEYBOARD_ROWS = [
+ ["Esc", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12"],
+ ["`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "="],
+ ["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "[", "]"],
+ ["A", "S", "D", "F", "G", "H", "J", "K", "L", ";", "'", "#"],
+ ["Z", "X", "C", "V", "B", "N", "M", ",", ".", "/"],
+];
+
+const KeyboardArt = () => (
+
+ {KEYBOARD_ROWS.map((row) => (
+
+ {row.map((key) =>
+ key === "F9" ? (
+ {key}
+ ) : (
+ {key}
+ ),
+ )}
+
+ ))}
+
+);
+
+const Features = () => (
+
+
+
+
+
+ The Launcher
+
+
+
+
+ Download
+
+
+
+
+
+
+
+
+ Find a server fast
-
-
-
- {"fully backwards compatible"}
-
-
- ),
- samp: San Andreas Multiplayer
- }}
- >
- {'A brand new multiplayer mod for Grand Theft Auto: San Andreas that is {compatibility} with {samp}.'}
+
+
+ Search the live list by name or mode, filter it down, and sort by whatever matters to you.
-
-
-
-
-
Download Launcher 🎮
+
+
Browse servers
+
+
+
-
-
Download Server 🖥️
-
+
+
+
+ Switch without quitting
+
+
+
+ Press F9 in game to browse, switch and rejoin servers without leaving.
+
+
+
+
+
+
+
+
+
+
+ Works with SA-MP servers
+
+
+
+ Join open.mp and SA-MP servers from one list.
+
+
+
+
+
+
+
+ Keep your names handy
+
+
+
+ Your five most recent nicknames are one click away, and each server can keep its own.
+
+
+
+
+
+
+
+ Bring your favorites
+
+
+
+ Right-click any server to save it, and import your list from SA-MP.
+
+
+
+
+
+
+
+
+ Known RCEs and exploits fixed
+
+
+
+ We actively fix them in the client as they turn up, so joining a compromised server is safer.
+
+
+
+
+
+
+
+
+
+
+
+ Encrypted on open.mp servers
+
+
+
+ Communication between the client and open.mp servers is encrypted.
+
+
+
+
+
+
+
+
+
+
+
+);
+
+// What's built for each system. Stable builds are x86; everything else is in nightly builds.
+const PLATFORMS = [
+ { os: "Windows", Logo: FaWindows, stable: ["x86"], nightly: ["x64"] },
+ { os: "Linux", Logo: FaLinux, stable: ["x86"], nightly: ["x64", "ARM"] },
+ { os: "macOS", Logo: FaApple, stable: [], nightly: ["ARM"] },
+];
+
+const PlatformsArt = () => (
+
+
+ {PLATFORMS.map(({ os, Logo, stable, nightly }) => (
+
+
+
{os}
+
+ {stable.map((arch) => (
+ {arch}
+ ))}
+ {nightly.map((arch) => (
+ {arch}
+ ))}
+
+
+ ))}
+
+
+ Stable
+ Nightly
+
+
+);
-
-
Documentation 📜
+const RunAServer = () => (
+
+
+
+
+
+ The Server
+
+
+
+
+ Download
+
+
+
+
+ Read the docs
-
-
-
- );
-};
+
+
+
+
+
+ Fully backwards compatible with existing scripts and clients
+
+
+
+ Got an old .amx lying about? Load it straight on open.mp and join from the SA-MP client.
+
+
+
+
Getting Started
+
+
+
+
+
+
+
+
+
+
+ Runs on your hardware
+
+
+
+ Stable on Windows and Linux, with x64, ARM and macOS in nightly builds.
+
+
+
+
+
+
+
+ New and improved scripting system
+
+
+
+ The good old Pawn, improved with a new compiler and more functions.
+
+
+
+ The community also supports C++, Rust, TypeScript and more.
+
+
+
+
+
+
+ Learn about the improvements
+
+
+
+
+
+
+ Built-in NPCs
+
+
+
+ Fully controllable NPCs, on foot or driving, with no plugin needed.
+
+
+
+ {NPC_EXAMPLE}
+
+
+
+
+
+
+
+ Extensible C++ API
+
+
+
+ Everything available in pawn, plus the universe of C++ libraries and frameworks.
+
+
+
+
Check out SDK repository
+
+
+
+
+
+
+
+
+
+
+ Stand out in the launcher
+
+
+
+ Show your banner, logo and Discord link to players browsing servers.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+);
const Home = (): React.ReactElement => {
+ useScrollReveal();
+
return (
-
-
-
-
+
+
+
+
+
+
-
+
+
);
};
diff --git a/frontend/src/pages/partners.tsx b/frontend/src/pages/partners.tsx
index 4445f013b47f..d983e6de4212 100644
--- a/frontend/src/pages/partners.tsx
+++ b/frontend/src/pages/partners.tsx
@@ -1,371 +1,50 @@
+import { default as Translate, translate } from "@docusaurus/Translate";
import Layout from "@theme/Layout";
-import { ReactNode, useEffect, useMemo, useState } from "react";
import clsx from "clsx";
-import { default as Translate, translate } from "@docusaurus/Translate";
-import {
- List as FixedSizeList,
- RowComponentProps,
- useListRef,
-} from "react-window";
+import { ReactNode, useEffect, useState } from "react";
+
import LoadingBanner from "../components/LoadingBanner";
-import Admonition from "../components/Admonition";
-import ServerRow from "../components/ServerRow";
+import ServerList, { getServers } from "../components/ServerList";
import { ToastContainer } from "../components/Toast";
-import { API_ADDRESS } from "../constants";
+import { Notice } from "../components/ui/Notice";
+import { NoScriptNotice, Page, PageHeader } from "../components/ui/Page";
import { CoreServerData } from "../types";
-const API_SERVERS = `${API_ADDRESS}/servers/`;
-
-const getServers = async () => {
- try {
- const r: Response = await fetch(API_SERVERS);
- const servers: CoreServerData[] = await r.json();
- return servers;
- } catch (e) {
- return [];
- }
-};
-
-type Stats = {
- players: number;
- servers: number;
-};
-
-const getStats = (servers: CoreServerData[]): Stats => ({
- players: servers.map((s) => s.pc).reduce((acc, pc) => acc + pc, 0),
- servers: servers.length,
-});
-
const PartnerNotice = ({
onDismiss,
isClosing,
}: {
onDismiss: () => void;
isClosing: boolean;
-}): ReactNode => {
- return (
-
- Partnership Program
-
- }
- >
-
-
- The partnership program is currently closed for applications, as
- promised. Servers that already reserved a slot can still join, but
- we are not accepting new requests at this time. For other questions,
- please ask in our Discord.
-
-
-
-
-
- Dismiss this message
-
-
-
-
- );
-};
-
-type SortBy = "relevance" | "pc" | "hn" | "gm" | "la";
-
-type Query = {
- search?: string;
- showEmpty: boolean;
- showPassworded: boolean;
- language: string;
- sort: SortBy;
-};
-
-type LanguageFilter = {
- name: string;
- keywords: string[];
-};
-
-const languageFilters: LanguageFilter[] = [
- { name: "English", keywords: ["English", "EN", "Eng"] },
- { name: "Arabic", keywords: ["Arabic", "العربية"] },
- { name: "Czech", keywords: ["Czech", "CZ", "Čeština"] },
- { name: "Chinese", keywords: ["Chinese", "CN", "ZH", "中文"] },
- { name: "Dutch", keywords: ["Dutch", "NL", "Nederlands"] },
- { name: "French", keywords: ["French", "FR", "Français"] },
- { name: "German", keywords: ["German", "DE", "GER", "Deutsch"] },
- { name: "Hungarian", keywords: ["Hungarian", "HU", "Magyar"] },
- { name: "Indonesian", keywords: ["Indonesian", "ID", "Bahasa Indonesia"] },
- { name: "Italian", keywords: ["Italian", "IT", "Italiano"] },
- { name: "Polish", keywords: ["Polish", "PL", "Polski"] },
- { name: "Portuguese", keywords: ["Portuguese", "PT", "Português"] },
- { name: "Romanian", keywords: ["Romanian", "RO", "Română"] },
- { name: "Russian", keywords: ["Russian", "RU", "RUS", "Русский"] },
- { name: "Spanish", keywords: ["Spanish", "ES", "Español"] },
- { name: "Turkish", keywords: ["Turkish", "TR", "Türkçe"] },
- { name: "Ukrainian", keywords: ["Ukrainian", "UK", "Українська"] },
- { name: "Vietnamese", keywords: ["Vietnamese", "VI", "Viet Nam", "Tiếng Việt"] },
-];
-
-const checkLanguage = (serverLanguage: string, filterName: string) => {
- if (!filterName) {
- return true;
- }
-
- const filter = languageFilters.find((item) => item.name === filterName);
-
- if (!filter) {
- return true;
- }
-
- const normalizedLanguage = serverLanguage.toLowerCase();
- return filter.keywords.some((keyword) =>
- normalizedLanguage.includes(keyword.toLowerCase()),
- );
-};
-
-// Filters data
-const filterServers = (data: CoreServerData[], q: Query): CoreServerData[] => {
- let filteredData = [...data];
-
- if (q.search) {
- const searchTerm = q.search.toLowerCase();
- filteredData = filteredData.filter(
- (s) =>
- s.ip.toLowerCase().includes(searchTerm) ||
- s.hn.toLowerCase().includes(searchTerm) ||
- s.gm.toLowerCase().includes(searchTerm),
- );
- }
-
- if (!q.showEmpty) {
- filteredData = filteredData.filter((s) => s.pc > 0);
- }
-
- if (!q.showPassworded) {
- filteredData = filteredData.filter((s) => !s.pa);
- }
-
- if (q.language) {
- filteredData = filteredData.filter((s) => checkLanguage(s.la, q.language));
- }
-
- // Sorting Logic
- if (q.sort === "pc") {
- filteredData.sort((a, b) => b.pc - a.pc); // Sort by players, descending
- } else if (q.sort === "hn") {
- filteredData.sort((a, b) => a.hn.localeCompare(b.hn));
- } else if (q.sort === "gm") {
- filteredData.sort((a, b) => a.gm.localeCompare(b.gm));
- } else if (q.sort === "la") {
- filteredData.sort((a, b) => a.la.localeCompare(b.la));
- }
- //Relevance would be the original order
-
- return filteredData;
-};
-
-const StatsComponent = ({ stats: { players, servers } }: { stats: Stats }) => {
- const average = players / servers;
- const averageStr = (isNaN(average) ? 0 : average).toFixed(1);
- return (
-
-
- {players},
- servers: {servers} ,
- average: {averageStr} ,
- }}
- >
- {
- "{players} players on {servers} servers with an average of {average} players per server."
- }
-
-
-
- );
-};
-
-const initialQuery: Query = {
- search: "",
- showEmpty: true,
- showPassworded: true,
- language: "",
- sort: "relevance",
-};
-
-// List Component
-const List = ({ data }: { data: CoreServerData[] }) => {
- const [query, setQuery] = useState(initialQuery);
-
- const filteredData = useMemo(() => filterServers(data, query), [data, query]);
-
- const listRef = useListRef(null);
-
- useEffect(() => {
- listRef.current?.element?.scrollTo({ top: 0, behavior: "smooth" });
- }, [query]);
-
- const rowHeight = 134;
-
- const Row = ({ index, style }: RowComponentProps) => {
- const server = filteredData[index];
- return (
-
-
-
- );
- };
-
- return (
-
- );
-};
-
-const Page = (): ReactNode => {
+}): ReactNode => (
+
+ Partnership Program
+
+ }
+ onDismiss={onDismiss}
+ dismissDisabled={isClosing}
+ dismissLabel={translate({
+ id: "partners.note.dismissAria",
+ message: "Dismiss partnership note",
+ description: "Accessible label for dismissing the partner note",
+ })}
+ >
+
+ The partnership program is currently closed for applications, as
+ promised. Servers that already reserved a slot can still join, but
+ we are not accepting new requests at this time. For other questions,
+ please ask in our Discord.
+
+
+);
+
+// Remembers the dismissal in this browser, so the note doesn't come back on every visit.
+const NOTE_KEY = "omp-partners-note-dismissed";
+
+const PartnersPage = (): ReactNode => {
const [loading, setLoading] = useState(true);
const [data, setData] = useState([]);
const [showPartnerNote, setShowPartnerNote] = useState(true);
@@ -377,11 +56,24 @@ const Page = (): ReactNode => {
}
setIsClosingPartnerNote(true);
+ try {
+ window.localStorage.setItem(NOTE_KEY, "1");
+ } catch {
+ // Storage can be blocked; the note just comes back next time.
+ }
window.setTimeout(() => {
setShowPartnerNote(false);
}, 260);
};
+ useEffect(() => {
+ try {
+ if (window.localStorage.getItem(NOTE_KEY)) setShowPartnerNote(false);
+ } catch {
+ // Storage can be blocked; keep showing the note.
+ }
+ }, []);
+
useEffect(() => {
getServers().then((servers) => {
setLoading(false);
@@ -403,17 +95,19 @@ const Page = (): ReactNode => {
description: "Partner servers page description",
})}
>
-
-
-
- Partner Servers
-
-
-
-
- Browse official partner servers.
-
-
+
+
+ Partner Servers
+
+ }
+ subtitle={
+
+ Browse official partner servers.
+
+ }
+ />
{showPartnerNote && (
{
/>
)}
- {loading ? :
}
-
+
+ api.open.mp/servers }}
+ >
+ {"The partner list loads live and needs JavaScript. You can also read it as JSON at {link}, where partners have pr set to true."}
+
+
+ {loading ? : }
+
);
};
-export default Page;
+export default PartnersPage;
diff --git a/frontend/src/pages/servers/index.tsx b/frontend/src/pages/servers/index.tsx
index 9e3096cf2c46..fe87ec29a328 100644
--- a/frontend/src/pages/servers/index.tsx
+++ b/frontend/src/pages/servers/index.tsx
@@ -1,557 +1,18 @@
-import Layout from "@theme/Layout";
-import NProgress from "nprogress";
-import React, {
- FormEvent,
- ReactNode,
- useEffect,
- useMemo,
- useState,
-} from "react";
-import {
- List as FixedSizeList,
- RowComponentProps,
- useListRef,
-} from "react-window";
import { useLocation } from "@docusaurus/router";
-import LoadingBanner from "../../components/LoadingBanner";
-import ServerRow from "../../components/ServerRow";
-import { showToast, ToastContainer } from "../../components/Toast";
-import { API_ADDRESS } from "../../constants";
-import { CoreServerData, ServerAllData } from "../../types";
-import ServerInfoPage from "../../components/ServerInfoPage";
import { default as Translate, translate } from "@docusaurus/Translate";
+import Layout from "@theme/Layout";
+import React, { ReactNode, useEffect, useState } from "react";
-const API_SERVERS = `${API_ADDRESS}/servers/`;
+import LoadingBanner from "../../components/LoadingBanner";
+import ServerInfoPage from "../../components/ServerInfoPage";
+import ServerList, { getServers } from "../../components/ServerList";
+import { ToastContainer } from "../../components/Toast";
+import { NoScriptNotice, Page, PageHeader } from "../../components/ui/Page";
+import { CoreServerData } from "../../types";
const getServerAddressFromQuery = (search: string): string =>
new URLSearchParams(search).get("ip") ?? "";
-const getServers = async () => {
- try {
- const r: Response = await fetch(API_SERVERS);
- const servers: CoreServerData[] = await r.json();
- return servers;
- } catch (e) {
- return [];
- }
-};
-
-type Stats = {
- players: number;
- servers: number;
-};
-
-const getStats = (servers: CoreServerData[]): Stats => ({
- players: servers.map((s) => s.pc).reduce((acc, pc) => acc + pc, 0),
- servers: servers.length,
-});
-
-type SortBy = "relevance" | "pc" | "hn" | "gm" | "la";
-
-type Query = {
- search?: string;
- showEmpty: boolean;
- showPartnersOnly: boolean;
- showOmpOnly: boolean;
- showPassworded: boolean;
- language: string;
- sort: SortBy;
-};
-
-type LanguageFilter = {
- name: string;
- keywords: string[];
-};
-
-const languageFilters: LanguageFilter[] = [
- { name: "English", keywords: ["English", "EN", "Eng"] },
- { name: "Arabic", keywords: ["Arabic", "العربية"] },
- { name: "Czech", keywords: ["Czech", "CZ", "Čeština"] },
- { name: "Chinese", keywords: ["Chinese", "CN", "ZH", "中文"] },
- { name: "Dutch", keywords: ["Dutch", "NL", "Nederlands"] },
- { name: "French", keywords: ["French", "FR", "Français"] },
- { name: "German", keywords: ["German", "DE", "GER", "Deutsch"] },
- { name: "Hungarian", keywords: ["Hungarian", "HU", "Magyar"] },
- { name: "Indonesian", keywords: ["Indonesian", "ID", "Bahasa Indonesia"] },
- { name: "Italian", keywords: ["Italian", "IT", "Italiano"] },
- { name: "Polish", keywords: ["Polish", "PL", "Polski"] },
- { name: "Portuguese", keywords: ["Portuguese", "PT", "Português"] },
- { name: "Romanian", keywords: ["Romanian", "RO", "Română"] },
- { name: "Russian", keywords: ["Russian", "RU", "RUS", "Русский"] },
- { name: "Spanish", keywords: ["Spanish", "ES", "Español"] },
- { name: "Turkish", keywords: ["Turkish", "TR", "Türkçe"] },
- { name: "Ukrainian", keywords: ["Ukrainian", "UK", "Українська"] },
- { name: "Vietnamese", keywords: ["Vietnamese", "VI", "Viet Nam", "Tiếng Việt"] },
-];
-
-const checkLanguage = (serverLanguage: string, filterName: string) => {
- if (!filterName) {
- return true;
- }
-
- const filter = languageFilters.find((item) => item.name === filterName);
-
- if (!filter) {
- return true;
- }
-
- const normalizedLanguage = serverLanguage.toLowerCase();
- return filter.keywords.some((keyword) =>
- normalizedLanguage.includes(keyword.toLowerCase()),
- );
-};
-
-// Filters data
-const filterServers = (data: CoreServerData[], q: Query): CoreServerData[] => {
- let filteredData = [...data];
-
- if (q.search) {
- const searchTerm = q.search.toLowerCase();
- filteredData = filteredData.filter(
- (s) =>
- s.ip.toLowerCase().includes(searchTerm) ||
- s.hn.toLowerCase().includes(searchTerm) ||
- s.gm.toLowerCase().includes(searchTerm),
- );
- }
-
- if (!q.showEmpty) {
- filteredData = filteredData.filter((s) => s.pc > 0);
- }
-
- if (q.showPartnersOnly) {
- filteredData = filteredData.filter((s) => s.pr === true);
- }
-
- if (q.showOmpOnly) {
- filteredData = filteredData.filter((s) => s.omp === true);
- }
-
- if (!q.showPassworded) {
- filteredData = filteredData.filter((s) => !s.pa);
- }
-
- if (q.language) {
- filteredData = filteredData.filter((s) => checkLanguage(s.la, q.language));
- }
-
- // Sorting Logic
- if (q.sort === "pc") {
- filteredData.sort((a, b) => b.pc - a.pc); // Sort by players, descending
- } else if (q.sort === "hn") {
- filteredData.sort((a, b) => a.hn.localeCompare(b.hn));
- } else if (q.sort === "gm") {
- filteredData.sort((a, b) => a.gm.localeCompare(b.gm));
- } else if (q.sort === "la") {
- filteredData.sort((a, b) => a.la.localeCompare(b.la));
- }
- //Relevance would be the original order
-
- return filteredData;
-};
-
-const StatsComponent = ({ stats: { players, servers } }: { stats: Stats }) => {
- const average = players / servers;
- const averageStr = (isNaN(average) ? 0 : average).toFixed(1);
- return (
-
-
- {players},
- servers: {servers} ,
- average: {averageStr} ,
- }}
- >
- {
- "{players} players on {servers} servers with an average of {average} players per server."
- }
-
-
-
- );
-};
-
-// AddServer Component
-const AddServer = ({ onAdd }: { onAdd: (server: ServerAllData) => void }) => {
- const [value, setValue] = useState("");
-
- const handleSubmit = async (e: FormEvent) => {
- try {
- e.preventDefault();
- NProgress.start();
-
- const response = await fetch(API_SERVERS, {
- method: "POST",
- mode: "cors",
- headers: {
- "Content-Type": "application/json",
- },
- body: JSON.stringify({ ip: value }),
- });
-
- NProgress.inc();
-
- if (response.status === 200) {
- const server = (await response.json()) as ServerAllData;
- onAdd(server);
- showToast({
- message: translate(
- {
- id: "servers.add.successMessage",
- message:
- "{serverName} is added to our pending list. If it's not available after maximum 48 hours, you can contact us on Discord!",
- description:
- "Toast message shown after submitting a server to the pending list",
- },
- { serverName: server.core.hn },
- ),
- title: translate({
- id: "servers.add.successTitle",
- message: "Server Submitted!",
- description: "Toast title shown after a server submission succeeds",
- }),
- type: "success",
- });
- } else {
- const error = (await response.json()) as { error: string };
- showToast({
- message: translate(
- {
- id: "servers.add.failureMessage",
- message: "Status {status}: {error}",
- description: "Toast message shown after a server submission fails",
- },
- { status: response.statusText, error: error?.error ?? "" },
- ),
- title: translate({
- id: "servers.add.failureTitle",
- message: "Submission failed!",
- description: "Toast title shown after a server submission fails",
- }),
- type: "error",
- });
- }
- } catch (error) {
- showToast({
- message: translate({
- id: "servers.add.errorMessage",
- message: "An error occurred while submitting the server",
- description:
- "Toast message shown after an unexpected server submission error",
- }),
- title: translate({
- id: "servers.add.errorTitle",
- message: "Error",
- description: "Generic toast error title",
- }),
- type: "error",
- });
- } finally {
- NProgress.done();
- }
- };
-
- return (
-
- );
-};
-
-// Modal Component
-const Modal = ({
- isOpen,
- onClose,
- children,
-}: {
- isOpen: boolean;
- onClose: () => void;
- children: React.ReactNode;
-}) => {
- if (!isOpen) return null;
-
- return (
-
- );
-};
-
-const initialQuery: Query = {
- search: "",
- showEmpty: true,
- showPartnersOnly: false,
- showOmpOnly: false,
- showPassworded: true,
- language: "",
- sort: "relevance",
-};
-
-// List Component
-const List = ({ data }: { data: CoreServerData[] }) => {
- const [query, setQuery] = useState(initialQuery);
- const [isModalOpen, setIsModalOpen] = useState(false);
-
- const filteredData = useMemo(() => filterServers(data, query), [data, query]);
-
- const listRef = useListRef(null);
-
- useEffect(() => {
- listRef.current?.element?.scrollTo({ top: 0, behavior: "smooth" });
- }, [query]);
-
- const rowHeight = 134;
-
- const Row = ({ index, style }: RowComponentProps) => {
- const server = filteredData[index];
- return (
-
-
-
- );
- };
-
- return (
-
-
-
-
-
-
-
-
-
-
setIsModalOpen(false)}>
-
-
-
- Add Server
-
-
- setIsModalOpen(false)}
- className="servers-modal-close"
- aria-label={translate({
- id: "servers.add.closeModal",
- message: "Close add server modal",
- description: "Accessible label for closing the add server modal",
- })}
- >
- ×
-
-
-
-
-
-
- Server address
-
-
-
{
- setIsModalOpen(false);
- }}
- />
-
- ip:port }}
- >
- {"Use {format}"}
-
-
-
-
-
-
- );
-};
-
const ServersListPage = (): ReactNode => {
const [loading, setLoading] = useState(true);
const [data, setData] = useState([]);
@@ -581,26 +42,37 @@ const ServersListPage = (): ReactNode => {
description: "Servers page description",
})}
>
-
-
-
- Servers
-
-
-
-
- Browse active SA-MP and open.mp servers.
+
+
+ Servers
+
+ }
+ subtitle={
+
+ Browse active SA-MP and open.mp servers.
+
+ }
+ />
+
+ api.open.mp/servers }}
+ >
+ {"The server list loads live and needs JavaScript. You can also read it as JSON at {link}."}
-
- {loading ? :
}
-
+
+ {loading ? : }
+
);
};
-const Page = (): ReactNode => {
+const ServersPage = (): ReactNode => {
const location = useLocation();
const [serverAddress, setServerAddress] = useState
(null);
const [from, setFrom] = useState("");
@@ -618,4 +90,4 @@ const Page = (): ReactNode => {
return ;
};
-export default Page;
+export default ServersPage;
diff --git a/frontend/src/pages/uid.tsx b/frontend/src/pages/uid.tsx
index 419c48c30f83..0e0839cbc6c3 100644
--- a/frontend/src/pages/uid.tsx
+++ b/frontend/src/pages/uid.tsx
@@ -1,3 +1,4 @@
+import { NoScriptNotice, Page, PageHeader } from "../components/ui/Page";
import { default as Translate, translate } from "@docusaurus/Translate";
import Layout from "@theme/Layout";
import { ReactNode, useEffect, useState } from "react";
@@ -15,7 +16,7 @@ const createUID = (): string => {
)}${toHex(rnd[4])}${toHex(rnd[5])}${toHex(rnd[6])}${toHex(rnd[7])}`;
};
-const Page = (): ReactNode => {
+const UidPage = (): ReactNode => {
const [uid, setUID] = useState("");
useEffect(() => {
@@ -60,17 +61,17 @@ const Page = (): ReactNode => {
description: "UID generator page description",
})}
>
-
-
-
-
-
+ >}
+ />
+
+
+
+ The generator runs in your browser and needs JavaScript.
+
+
+
+
{
-
+
{
Find this placeholder:
-
+
PROVIDE_UID(/* UID GOES HERE */);
-
+
{
And replace it with:
-
+
{generatedMacro}
@@ -137,7 +143,7 @@ const Page = (): ReactNode => {
@@ -147,7 +153,7 @@ const Page = (): ReactNode => {
setUID(createUID())}
>
@@ -167,14 +173,14 @@ const Page = (): ReactNode => {
-
+
);
};
-export default Page;
+export default UidPage;
function randomBytes(size: number): Uint8Array {
// Input validation
diff --git a/frontend/src/theme/Footer/Layout/index.tsx b/frontend/src/theme/Footer/Layout/index.tsx
new file mode 100644
index 000000000000..3e88bca6e25f
--- /dev/null
+++ b/frontend/src/theme/Footer/Layout/index.tsx
@@ -0,0 +1,19 @@
+import type { Props } from "@theme/Footer/Layout";
+import clsx from "clsx";
+import React, { type ReactNode } from "react";
+
+// The site's footer: wordmark with the copyright under it, and the links beside them.
+// Styled in src/css/custom.css.
+export default function FooterLayout({ style, links, logo, copyright }: Props): ReactNode {
+ return (
+
+
+
+ {logo}
+ {copyright &&
{copyright}
}
+
+
{links}
+
+
+ );
+}
diff --git a/frontend/src/theme/Footer/LinkItem/index.tsx b/frontend/src/theme/Footer/LinkItem/index.tsx
new file mode 100644
index 000000000000..28b675c05b3a
--- /dev/null
+++ b/frontend/src/theme/Footer/LinkItem/index.tsx
@@ -0,0 +1,38 @@
+import Link from "@docusaurus/Link";
+import isInternalUrl from "@docusaurus/isInternalUrl";
+import useBaseUrl from "@docusaurus/useBaseUrl";
+import type { Props } from "@theme/Footer/LinkItem";
+import clsx from "clsx";
+import React, { type ReactNode } from "react";
+import type { IconType } from "react-icons";
+import { FaDiscord, FaGithub, FaHeart, FaXTwitter, FaYoutube } from "react-icons/fa6";
+import { FiArrowUpRight } from "react-icons/fi";
+
+// Footer links: outside links get their service's icon, and an arrow that moves on hover.
+const SERVICE_ICONS: [RegExp, IconType][] = [
+ [/discord\.gg|discord\.com/, FaDiscord],
+ [/github\.com/, FaGithub],
+ [/youtube\.com/, FaYoutube],
+ [/\bx\.com/, FaXTwitter],
+ [/opencollective\.com/, FaHeart],
+];
+
+export default function FooterLinkItem({ item }: Props): ReactNode {
+ const { to, href, label, prependBaseUrlToHref, className, ...props } = item;
+ const toUrl = useBaseUrl(to);
+ const normalizedHref = useBaseUrl(href, { forcePrependBaseUrl: true });
+ const external = Boolean(href) && !isInternalUrl(href);
+ const ServiceIcon = external ? SERVICE_ICONS.find(([pattern]) => pattern.test(href as string))?.[1] : undefined;
+
+ return (
+
+ {ServiceIcon &&
}
+ {label}
+ {external &&
}
+
+ );
+}
diff --git a/frontend/src/theme/NotFound/Content/index.tsx b/frontend/src/theme/NotFound/Content/index.tsx
index 175aae54f577..fc7965717b9f 100644
--- a/frontend/src/theme/NotFound/Content/index.tsx
+++ b/frontend/src/theme/NotFound/Content/index.tsx
@@ -14,7 +14,7 @@ export default function NotFoundContent({ className }: Props): ReactNode {
-
+
Page Not Found
@@ -30,7 +30,7 @@ export default function NotFoundContent({ className }: Props): ReactNode {
/>
@@ -38,7 +38,7 @@ export default function NotFoundContent({ className }: Props): ReactNode {
@@ -46,7 +46,7 @@ export default function NotFoundContent({ className }: Props): ReactNode {
diff --git a/frontend/src/theme/NotFound/Content/styles.module.css b/frontend/src/theme/NotFound/Content/styles.module.css
index 98b3555f4090..9a861ac78387 100644
--- a/frontend/src/theme/NotFound/Content/styles.module.css
+++ b/frontend/src/theme/NotFound/Content/styles.module.css
@@ -2,61 +2,32 @@
display: grid;
min-height: calc(100vh - var(--ifm-navbar-height));
place-items: center;
- padding: 4rem 1rem;
-}
-
-.image {
- display: block;
- width: min(100%, 760px);
- margin: 0 auto 1.75rem;
- border-radius: 4px;
+ padding: 3rem 1rem;
}
.content {
- width: min(100%, 820px);
- text-align: center;
+ width: min(100%, 47.5rem);
}
-.title {
- margin: 0 0 1.5rem;
- color: var(--ifm-heading-color);
- font-size: clamp(2.5rem, 7vw, 4.75rem);
- font-weight: 800;
- line-height: 1;
- letter-spacing: 0;
+.image {
+ display: block;
+ width: 100%;
+ margin: 1.25rem 0;
+ border-radius: var(--omp-radius);
}
.actions {
- justify-content: center;
display: flex;
flex-wrap: wrap;
- gap: 1.25rem;
- margin-top: 0;
+ gap: 0.625rem;
}
-.button {
- width: 220px;
- padding: 1rem 1.5rem;
- border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
- font-size: 1.1rem;
- font-weight: 600;
- text-align: center;
- transition: all 0.3s ease;
-}
-
-.button:hover {
- transform: translateY(-3px);
- box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
-}
-
-@media screen and (max-width: 700px) {
- .actions {
- flex-direction: column;
- width: 100%;
+@media (max-width: 768px) {
+ .content {
+ text-align: center;
}
- .button {
- width: 100%;
+ .actions {
+ justify-content: center;
}
}