Skip to content

Commit

Permalink
🎨 Improved
Browse files Browse the repository at this point in the history
  • Loading branch information
abdheshnayak committed Feb 12, 2024
1 parent 6e03b63 commit 192630f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 269 deletions.
17 changes: 16 additions & 1 deletion src/apps/console/components/logger/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,22 @@ import { useSocketLogs } from '~/root/lib/client/helpers/socket/useSockLogs';
import { generatePlainColor } from '../color-generator';
import Pulsable from '../pulsable';
import { logsMockData } from '../../dummy/data';
import { ILog, ISocketMessage, IuseLog } from './useSocketLogs';

export type ILog = {
podName: string;
containerName: string;
message: string;
timestamp: string;
};

export type ISocketMessage = ILog;

export interface IuseLog {
url?: string;
account: string;
cluster: string;
trackingId: string;
}

const hoverClass = `hover:bg-[#ddd]`;
const hoverClassDark = `hover:bg-[#333]`;
Expand Down
264 changes: 0 additions & 264 deletions src/apps/console/components/logger/useSocketLogs.tsx

This file was deleted.

5 changes: 1 addition & 4 deletions src/apps/console/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { SockProvider } from '~/root/lib/client/helpers/socket/context';
import authStylesUrl from './styles/index.css';
import highlightCss from './styles/hljs/tokyo-night-dark.min.css';
import { DataContextProvider } from './page-components/common-state';
import { LogsProvider } from './components/logger/useSocketLogs';

export { loader } from '~/lib/app-setup/root.jsx';
export { shouldRevalidate } from '~/lib/app-setup/root.jsx';
Expand All @@ -28,9 +27,7 @@ const _Root = ({ ...props }) => {
return (
<SockProvider>
<DataContextProvider>
<LogsProvider>
<Root {...props} Wrapper={Layout} />
</LogsProvider>
<Root {...props} Wrapper={Layout} />
</DataContextProvider>
</SockProvider>
);
Expand Down

0 comments on commit 192630f

Please sign in to comment.