riders: drop sidebar donate/docs links; rename zh-CN TG bot tab label
This commit is contained in:
@@ -13,7 +13,6 @@ import {
|
|||||||
ExportOutlined,
|
ExportOutlined,
|
||||||
GithubOutlined,
|
GithubOutlined,
|
||||||
GlobalOutlined,
|
GlobalOutlined,
|
||||||
HeartOutlined,
|
|
||||||
ImportOutlined,
|
ImportOutlined,
|
||||||
LogoutOutlined,
|
LogoutOutlined,
|
||||||
MenuOutlined,
|
MenuOutlined,
|
||||||
@@ -23,7 +22,6 @@ import {
|
|||||||
PushpinFilled,
|
PushpinFilled,
|
||||||
PushpinOutlined,
|
PushpinOutlined,
|
||||||
RadarChartOutlined,
|
RadarChartOutlined,
|
||||||
ReadOutlined,
|
|
||||||
SafetyOutlined,
|
SafetyOutlined,
|
||||||
SettingOutlined,
|
SettingOutlined,
|
||||||
SunOutlined,
|
SunOutlined,
|
||||||
@@ -39,8 +37,6 @@ import { pauseAnimationsUntilLeave, useTheme } from '@/hooks/useTheme';
|
|||||||
import { useAllSettings } from '@/api/queries/useAllSettings';
|
import { useAllSettings } from '@/api/queries/useAllSettings';
|
||||||
import './AppSidebar.css';
|
import './AppSidebar.css';
|
||||||
|
|
||||||
const DONATE_URL = 'https://donate.sanaei.dev/';
|
|
||||||
const DOCS_URL = 'https://docs.sanaei.dev/';
|
|
||||||
const REPO_URL = 'https://git.881218.xyz/rogue/3x-ui-agent';
|
const REPO_URL = 'https://git.881218.xyz/rogue/3x-ui-agent';
|
||||||
const LOGOUT_KEY = '__logout__';
|
const LOGOUT_KEY = '__logout__';
|
||||||
const RAIL_WIDTH = 72;
|
const RAIL_WIDTH = 72;
|
||||||
@@ -78,36 +74,6 @@ const iconByName: Record<IconName, ComponentType> = {
|
|||||||
routing: SwapOutlined,
|
routing: SwapOutlined,
|
||||||
};
|
};
|
||||||
|
|
||||||
function DonateButton({ ariaLabel }: { ariaLabel: string }) {
|
|
||||||
return (
|
|
||||||
<a
|
|
||||||
href={DONATE_URL}
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
className="sidebar-donate"
|
|
||||||
aria-label={ariaLabel}
|
|
||||||
title={ariaLabel}
|
|
||||||
>
|
|
||||||
<HeartOutlined />
|
|
||||||
</a>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function DocsButton({ ariaLabel }: { ariaLabel: string }) {
|
|
||||||
return (
|
|
||||||
<a
|
|
||||||
href={DOCS_URL}
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
className="sidebar-docs"
|
|
||||||
aria-label={ariaLabel}
|
|
||||||
title={ariaLabel}
|
|
||||||
>
|
|
||||||
<ReadOutlined />
|
|
||||||
</a>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function VersionBadge({ version, collapsed }: { version: string; collapsed?: boolean }) {
|
function VersionBadge({ version, collapsed }: { version: string; collapsed?: boolean }) {
|
||||||
if (!version) return null;
|
if (!version) return null;
|
||||||
const label = formatPanelVersion(version);
|
const label = formatPanelVersion(version);
|
||||||
@@ -349,8 +315,6 @@ export default function AppSidebar() {
|
|||||||
>
|
>
|
||||||
{pinned ? <PushpinFilled /> : <PushpinOutlined />}
|
{pinned ? <PushpinFilled /> : <PushpinOutlined />}
|
||||||
</button>
|
</button>
|
||||||
<DocsButton ariaLabel={t('menu.docs') || 'Documentation'} />
|
|
||||||
<DonateButton ariaLabel={t('menu.donate') || 'Donate'} />
|
|
||||||
<ThemeCycleButton
|
<ThemeCycleButton
|
||||||
id="theme-cycle"
|
id="theme-cycle"
|
||||||
isDark={isDark}
|
isDark={isDark}
|
||||||
@@ -402,8 +366,6 @@ export default function AppSidebar() {
|
|||||||
<span className="drawer-brand">L-UI</span>
|
<span className="drawer-brand">L-UI</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="drawer-header-actions">
|
<div className="drawer-header-actions">
|
||||||
<DocsButton ariaLabel={t('menu.docs') || 'Documentation'} />
|
|
||||||
<DonateButton ariaLabel={t('menu.donate') || 'Donate'} />
|
|
||||||
<ThemeCycleButton
|
<ThemeCycleButton
|
||||||
id="theme-cycle-drawer"
|
id="theme-cycle-drawer"
|
||||||
isDark={isDark}
|
isDark={isDark}
|
||||||
|
|||||||
@@ -1227,7 +1227,7 @@
|
|||||||
},
|
},
|
||||||
"secretClear": "清除",
|
"secretClear": "清除",
|
||||||
"secretClearUndo": "撤销清除",
|
"secretClearUndo": "撤销清除",
|
||||||
"TGBotSettings": "Telegram 机器人",
|
"TGBotSettings": "TG机器人",
|
||||||
"notifications": "通知",
|
"notifications": "通知",
|
||||||
"notifyTime": {
|
"notifyTime": {
|
||||||
"custom": "自定义 (crontab)",
|
"custom": "自定义 (crontab)",
|
||||||
|
|||||||
Reference in New Issue
Block a user