mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-21 09:14:42 +08:00
feat: remove github
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
import {
|
||||
Clover,
|
||||
Film,
|
||||
Github,
|
||||
Home,
|
||||
MessageCircleHeart,
|
||||
MountainSnow,
|
||||
@@ -16,8 +15,6 @@ import {
|
||||
import Link from 'next/link';
|
||||
import { usePathname } from 'next/navigation';
|
||||
|
||||
import { useSite } from './SiteProvider';
|
||||
|
||||
interface MobileBottomNavProps {
|
||||
/**
|
||||
* 主动指定当前激活的路径。当未提供时,自动使用 usePathname() 获取的路径。
|
||||
@@ -64,15 +61,6 @@ const MobileBottomNav = ({ activePath }: MobileBottomNavProps) => {
|
||||
{ icon: VenetianMask, label: '日漫', href: '/douban?type=tv&tag=日本动画' },
|
||||
];
|
||||
|
||||
const { siteName } = useSite();
|
||||
if (siteName !== 'MoonTV') {
|
||||
navItems.push({
|
||||
icon: Github,
|
||||
label: 'MoonTV',
|
||||
href: 'https://github.com/senshinya/MoonTV',
|
||||
});
|
||||
}
|
||||
|
||||
const isActive = (href: string) => {
|
||||
const typeMatch = href.match(/type=([^&]+)/)?.[1];
|
||||
const tagMatch = href.match(/tag=([^&]+)/)?.[1];
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
import {
|
||||
Clover,
|
||||
Film,
|
||||
Github,
|
||||
Home,
|
||||
Menu,
|
||||
MessageCircleHeart,
|
||||
@@ -166,15 +165,6 @@ const Sidebar = ({ onToggle, activePath = '/' }: SidebarProps) => {
|
||||
{ icon: VenetianMask, label: '日漫', href: '/douban?type=tv&tag=日本动画' },
|
||||
];
|
||||
|
||||
const { siteName } = useSite();
|
||||
if (siteName !== 'MoonTV') {
|
||||
menuItems.push({
|
||||
icon: Github,
|
||||
label: 'MoonTV',
|
||||
href: 'https://github.com/senshinya/MoonTV',
|
||||
});
|
||||
}
|
||||
|
||||
return (
|
||||
<SidebarContext.Provider value={contextValue}>
|
||||
{/* 在移动端隐藏侧边栏 */}
|
||||
|
||||
Reference in New Issue
Block a user