⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
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 :
ExploreDrawer.tsx
// Libraries import { css, cx, keyframes } from '@emotion/css'; import { Resizable, ResizeCallback } from 're-resizable'; import React from 'react'; // Services & Utils import { GrafanaTheme2 } from '@grafana/data'; import { getDragStyles, useStyles2, useTheme2 } from '@grafana/ui'; export interface Props { width: number; children: React.ReactNode; onResize?: ResizeCallback; } export function ExploreDrawer(props: Props) { const { width, children, onResize } = props; const theme = useTheme2(); const styles = useStyles2(getStyles); const dragStyles = getDragStyles(theme); const drawerWidth = `${width + 31.5}px`; return (
{children}
); } const drawerSlide = (theme: GrafanaTheme2) => keyframes` 0% { transform: translateY(${theme.components.horizontalDrawer.defaultHeight}px); } 100% { transform: translateY(0px); } `; const getStyles = (theme: GrafanaTheme2) => ({ // @ts-expect-error csstype doesn't allow !important. see https://github.com/frenic/csstype/issues/114 fixed: css({ position: 'fixed !important', }), container: css({ bottom: 0, background: theme.colors.background.primary, borderTop: `1px solid ${theme.colors.border.weak}`, margin: theme.spacing(0, -2, 0, -2), boxShadow: theme.shadows.z3, zIndex: theme.zIndex.navbarFixed, }), drawerActive: css({ opacity: 1, animation: `0.5s ease-out ${drawerSlide(theme)}`, }), });