Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Merge branch 'develop' into BLDSTRIKE-607-LoginForm-UsernameInput-bug…
Browse files Browse the repository at this point in the history
…giness-Alt
  • Loading branch information
James Bradford committed Sep 21, 2023
2 parents 35c92dd + cf403c7 commit a988003
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { createState } from '@redeye/client/components/mobx-create-state';
import type { BeaconModel, CommandModel, LogEntryModel } from '@redeye/client/store';
import { selectFromLogEntry, useStore } from '@redeye/client/store';
import { copyText, NavBreadcrumbs, PanelHeader } from '@redeye/client/views';
import { Txt, CoreTokens, UtilityStyles } from '@redeye/ui-styles';
import { Txt, CoreTokens, UtilityStyles, Spacer } from '@redeye/ui-styles';
import { useQuery } from '@tanstack/react-query';
import { throttle } from 'throttle-debounce';
import { observer } from 'mobx-react-lite';
Expand Down Expand Up @@ -115,21 +115,27 @@ export const RawLogsDialog = observer<RawLogsViewerProps>(({ ...props }) => {
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-wrap: wrap;
gap: 4px 12px;
`}
>
<PanelHeader cy-test="log-title" nodeIconProps={{ type: 'beacon' }}>
<Txt>{state.beacon?.computedNameWithHost}</Txt>{' '}
<Txt disabled normal>
Raw Logs
<Txt ellipsize>
<Txt>{state.beacon?.computedNameWithHost}</Txt>
<Spacer>·</Spacer>
<Txt disabled normal>
Raw Logs
</Txt>
</Txt>
</PanelHeader>
<ButtonGroup>
<ButtonGroup css={{ marginLeft: -8 }}>
{store.campaign.parsers.includes('cobalt-strike-parser') ? (
<Button
cy-test="view-log-file"
text="View Log File"
rightIcon={<CarbonIcon icon={Document16} />}
active={state.showLogFile}
intent={state.showLogFile ? 'primary' : 'none'}
onClick={() => state.update('showLogFile', !state.showLogFile)}
minimal
/>
Expand Down Expand Up @@ -186,9 +192,10 @@ export const RawLogsDialog = observer<RawLogsViewerProps>(({ ...props }) => {

const logModelStyles = css`
max-width: unset;
width: calc(100% - 6rem);
`;
const preStyles = css`
padding: 0.5rem 1rem;
padding: 2px 1rem;
border-bottom: 1px solid ${CoreTokens.BorderMuted};
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion applications/client/src/views/Campaign/Search/util.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const getPaths = (store: AppStore, { server, host, beacon }: any): (strin
return [
store.graphqlStore.servers.get(server)?.computedName,
store.graphqlStore.hosts.get(host)?.computedName,
store.graphqlStore.hosts.get(beacon)?.computedName,
store.graphqlStore.beacons.get(beacon)?.computedName,
];
}
if (host)
Expand Down

0 comments on commit a988003

Please sign in to comment.