Skip to content

Commit 20283dd

Browse files
authored
Merge branch 'main' into feature/rest-timeout
2 parents d505557 + 8847b0d commit 20283dd

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ To run Kafbat UI, you can use either a pre-built Docker image or build it (or a
9999

100100
## Quick start (Demo run)
101101

102-
```
102+
```bash
103103
docker run -it -p 8080:8080 -e DYNAMIC_CONFIG_ENABLED=true ghcr.io/kafbat/kafka-ui
104104
```
105105

@@ -109,7 +109,7 @@ The command is sufficient to try things out. When you're done trying things out,
109109

110110
## Persistent installation
111111

112-
```
112+
```yml
113113
services:
114114
kafbat-ui:
115115
container_name: kafbat-ui
@@ -158,3 +158,7 @@ Please refer to [contributing guide](https://ui.docs.kafbat.io/development/contr
158158

159159
As we're fully independent, team members contribute in their free time.
160160
Your support is crucial for us, if you wish to sponsor us, take a look [here](https://github.com/sponsors/kafbat)
161+
162+
# Powered by
163+
164+
[![JetBrains logo.](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg)](https://jb.gg/OpenSourceSupport)

frontend/src/components/NavBar/UserInfo/UserInfo.styled.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,4 @@ export const Text = styled.div`
1717
&:hover {
1818
color: ${({ theme }) => theme.user.hoverColor};
1919
}
20-
}
2120
`;
22-
23-
export const LogoutLink = styled.a``;

frontend/src/components/NavBar/UserInfo/UserInfo.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ const UserInfo = () => {
1919
</S.Wrapper>
2020
}
2121
>
22-
<DropdownItem href="logout">
23-
<S.LogoutLink>Log out</S.LogoutLink>
24-
</DropdownItem>
22+
<DropdownItem href="/logout">Log out</DropdownItem>
2523
</Dropdown>
2624
) : null;
2725
};

frontend/src/components/Topics/Topic/Messages/MessageContent/MessageContent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ const MessageContent: React.FC<MessageContentProps> = ({
5959
};
6060

6161
const contentType =
62-
messageContent && messageContent.trim().startsWith('{')
62+
messageContent &&
63+
(messageContent.trim().startsWith('{') ||
64+
messageContent.trim().startsWith('['))
6365
? SchemaType.JSON
6466
: SchemaType.PROTOBUF;
6567

frontend/src/components/common/Dropdown/DropdownItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ const DropdownItem = React.forwardRef<unknown, DropdownItemProps>(
1515
const confirmation = useConfirm();
1616

1717
const handleClick = (e: ClickEvent) => {
18-
if (!onClick) return;
19-
2018
// eslint-disable-next-line no-param-reassign
2119
e.stopPropagation = true;
2220
e.syntheticEvent.stopPropagation();
2321

22+
if (!onClick) return;
23+
2424
if (confirm) {
2525
confirmation(confirm, onClick);
2626
} else {

0 commit comments

Comments
 (0)