⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
explore
/
View File Name :
MetaInfoText.tsx
import { css } from '@emotion/css'; import React, { memo } from 'react'; import { GrafanaTheme2 } from '@grafana/data'; import { useStyles2 } from '@grafana/ui'; const getStyles = (theme: GrafanaTheme2) => ({ metaContainer: css({ flex: 1, color: theme.colors.text.secondary, marginBottom: theme.spacing(2), minWidth: '30%', display: 'flex', flexWrap: 'wrap', }), metaItem: css({ marginRight: theme.spacing(2), marginTop: theme.spacing(0.5), display: 'flex', alignItems: 'center', ['.logs-meta-item__error']: { color: theme.colors.error.text, }, }), metaLabel: css({ marginRight: `calc(${theme.spacing(2)} / 2)`, fontSize: theme.typography.bodySmall.fontSize, fontWeight: theme.typography.fontWeightMedium, }), metaValue: css({ fontFamily: theme.typography.fontFamilyMonospace, fontSize: theme.typography.bodySmall.fontSize, }), }); export interface MetaItemProps { label?: string; value: string | JSX.Element; } const MetaInfoItem = memo(function MetaInfoItem(props: MetaItemProps) { const style = useStyles2(getStyles); const { label, value } = props; return (
{label &&
{label}:
}
{value}
); }); interface MetaInfoTextProps { metaItems: MetaItemProps[]; } export const MetaInfoText = memo(function MetaInfoText(props: MetaInfoTextProps) { const style = useStyles2(getStyles); const { metaItems } = props; return (
{metaItems.map((item, index) => (
))}
); });