mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
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:
@@ -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) && (
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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} /> },
|
||||
|
||||
Reference in New Issue
Block a user