文件操作 - ErrorLoadingChunk.tsx
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/core/components/DynamicImports/ErrorLoadingChunk.tsx
编辑文件内容
import React, { FunctionComponent } from 'react'; import { Button, stylesFactory } from '@grafana/ui'; import { css } from 'emotion'; const getStyles = stylesFactory(() => { return css` width: 508px; margin: 128px auto; `; }); interface Props { error: Error | null; } export const ErrorLoadingChunk: FunctionComponent<Props> = ({ error }) => ( <div className={getStyles()}> <h2>Unable to find application file</h2> <br /> <h2 className="page-heading">Grafana has likely been updated. Please try reloading the page.</h2> <br /> <div className="gf-form-group"> <Button size="md" variant="secondary" icon="repeat" onClick={() => window.location.reload()}> Reload </Button> </div> <details style={{ whiteSpace: 'pre-wrap' }}> {error && error.message ? error.message : 'Unexpected error occurred'} <br /> {error && error.stack ? error.stack : null} </details> </div> ); ErrorLoadingChunk.displayName = 'ErrorLoadingChunk';
修改文件时间
将文件时间修改为当前时间的前一年
删除文件