chore: refresh desktop menu ordering and community links

- Replace the Discussion community link with Discord
- Align terminal and script ordering in the menu and appearance settings
- Remove the divider before the leader key menu item
This commit is contained in:
wenjie
2026-05-20 15:07:59 +08:00
parent fe34008ce3
commit f65c1b06aa
4 changed files with 7 additions and 11 deletions

View File

@@ -94,8 +94,8 @@ export const Menu = () => {
{isEnabled('image') && <Image />}
{isEnabled('download') && <DownloadImage />}
{isEnabled('script') && <Script />}
{isEnabled('terminal') && <Terminal />}
{isEnabled('script') && <Script />}
{isEnabled('wol') && <Wol />}
{['image', 'download', 'script', 'terminal', 'wol'].some(isEnabled) && (

View File

@@ -1,4 +1,3 @@
import { Divider } from 'antd';
import { KeyboardIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
@@ -17,9 +16,6 @@ export const Keyboard = () => {
<Paste />
<VirtualKeyboard />
<Shortcuts />
<Divider style={{ margin: '5px 0', opacity: 0.5 }} />
<LeaderKey />
</div>
);

View File

@@ -1,5 +1,5 @@
import { GithubOutlined, XOutlined } from '@ant-design/icons';
import { BookOpenIcon, MessageCircleQuestionIcon, MessageSquareIcon } from 'lucide-react';
import { DiscordOutlined, GithubOutlined, XOutlined } from '@ant-design/icons';
import { BookOpenIcon, MessageCircleQuestionIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
export const Community = () => {
@@ -18,9 +18,9 @@ export const Community = () => {
url: 'https://twitter.com/SipeedIO'
},
{
name: 'Discussion',
icon: <MessageSquareIcon size={24} />,
url: 'https://maixhub.com/discussion/nanokvm'
name: 'Discord',
icon: <DiscordOutlined style={{ fontSize: '20px' }} width={24} height={24} />,
url: 'https://discord.gg/V4sAZ9XWpN'
},
{
name: 'FAQ',

View File

@@ -24,8 +24,8 @@ export const MenuIcons = () => {
const items = [
{ key: 'image', icon: <DiscIcon size={16} /> },
{ key: 'download', icon: <DownloadIcon size={16} /> },
{ key: 'script', icon: <FileJsonIcon size={16} /> },
{ key: 'terminal', icon: <TerminalSquareIcon size={16} /> },
{ key: 'script', icon: <FileJsonIcon size={16} /> },
{ key: 'wol', icon: <NetworkIcon size={16} /> },
{ key: 'picoclaw', icon: <Robot size={16} /> },
{ key: 'power', icon: <PowerIcon size={16} /> },