文件操作 - SideMenu.tsx
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/core/components/sidemenu/SideMenu.tsx
编辑文件内容
import React, { PureComponent } from 'react'; import appEvents from '../../app_events'; import TopSection from './TopSection'; import BottomSection from './BottomSection'; import config from 'app/core/config'; import { CoreEvents } from 'app/types'; import { Branding } from 'app/core/components/Branding/Branding'; import { Icon } from '@grafana/ui'; const homeUrl = config.appSubUrl || '/'; export class SideMenu extends PureComponent { toggleSideMenuSmallBreakpoint = () => { appEvents.emit(CoreEvents.toggleSidemenuMobile); }; render() { return [ <a href={homeUrl} className="sidemenu__logo" key="logo"> <Branding.MenuLogo /> </a>, <div className="sidemenu__logo_small_breakpoint" onClick={this.toggleSideMenuSmallBreakpoint} key="hamburger"> <Icon name="bars" size="xl" /> <span className="sidemenu__close"> <Icon name="times" /> Close </span> </div>, <TopSection key="topsection" />, <BottomSection key="bottomsection" />, ]; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件