⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
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 :
LiveTailButton.tsx
import { css } from '@emotion/css'; import React from 'react'; import { CSSTransition } from 'react-transition-group'; import { Tooltip, ButtonGroup, ToolbarButton } from '@grafana/ui'; type LiveTailButtonProps = { splitted: boolean; start: () => void; stop: () => void; pause: () => void; resume: () => void; isLive: boolean; isPaused: boolean; }; export function LiveTailButton(props: LiveTailButtonProps) { const { start, pause, resume, isLive, isPaused, stop, splitted } = props; const buttonVariant = isLive && !isPaused ? 'active' : 'canvas'; const onClickMain = isLive ? (isPaused ? resume : pause) : start; return (
Pause the live stream> : <>Start live stream your logs>} placement="bottom" >
{isLive && isPaused ? 'Paused' : 'Live'}
Stop and exit the live stream>} placement="bottom">
); } const styles = { stopButtonEnter: css({ label: 'stopButtonEnter', width: 0, opacity: 0, overflow: 'hidden', }), stopButtonEnterActive: css({ label: 'stopButtonEnterActive', opacity: 1, width: '32px', }), stopButtonExit: css({ label: 'stopButtonExit', width: '32px', opacity: 1, overflow: 'hidden', }), stopButtonExitActive: css({ label: 'stopButtonExitActive', opacity: 0, width: 0, }), };