Skip to content

Commit

Permalink
Merge pull request apache#2750 from apache/dashboard-event
Browse files Browse the repository at this point in the history
Merge `dashboard-event` to `dashboard`
  • Loading branch information
xwm1992 authored Jan 3, 2023
2 parents 52e74fa + e5ba5c8 commit b7d0033
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions eventmesh-dashboard/components/client/GrpcClientTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const GrpcClientTable = () => {
if (axios.isAxiosError(error)) {
toast({
title: 'Failed to fetch the list of gRPC Clients',
description: 'unable to connect to the EventMesh daemon',
description: 'Unable to connect to the EventMesh daemon',
status: 'error',
duration: 3000,
isClosable: true,
Expand All @@ -149,7 +149,7 @@ const GrpcClientTable = () => {
};

fetch();
}, [GrpcClientList]);
}, []);

return (
<Box
Expand Down
4 changes: 2 additions & 2 deletions eventmesh-dashboard/components/client/HTTPClientTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const HTTPClientTable = () => {
if (axios.isAxiosError(error)) {
toast({
title: 'Failed to fetch the list of HTTP Clients',
description: 'unable to connect to the EventMesh daemon',
description: 'Unable to connect to the EventMesh daemon',
status: 'error',
duration: 3000,
isClosable: true,
Expand All @@ -149,7 +149,7 @@ const HTTPClientTable = () => {
};

fetch();
}, [HTTPClientList]);
}, []);

return (
<Box
Expand Down
5 changes: 3 additions & 2 deletions eventmesh-dashboard/components/client/TCPClientTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const TCPClientTable = () => {
if (axios.isAxiosError(error)) {
toast({
title: 'Failed to fetch the list of TCP Clients',
description: 'unable to connect to the EventMesh daemon',
description: 'Unable to connect to the EventMesh daemon',
status: 'error',
duration: 3000,
isClosable: true,
Expand All @@ -152,7 +152,7 @@ const TCPClientTable = () => {
};

fetch();
}, [TCPClientList]);
}, []);

return (
<Box
Expand Down Expand Up @@ -186,6 +186,7 @@ const TCPClientTable = () => {
<Table variant="simple">
<Thead>
<Tr>
<Th>Host</Th>
<Th>Host</Th>
<Th>Group</Th>
<Th>Action</Th>
Expand Down
2 changes: 1 addition & 1 deletion eventmesh-dashboard/components/event/EventTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ const EventTable = () => {
if (axios.isAxiosError(error)) {
toast({
title: 'Failed to fetch the list of events',
description: 'unable to connect to the EventMesh daemon',
description: 'Unable to connect to the EventMesh daemon',
status: 'error',
duration: 3000,
isClosable: true,
Expand Down
4 changes: 2 additions & 2 deletions eventmesh-dashboard/components/topic/TopicTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const TopicTable = () => {
if (axios.isAxiosError(error)) {
toast({
title: 'Failed to fetch the list of topics',
description: 'unable to connect to the EventMesh daemon',
description: 'Unable to connect to the EventMesh daemon',
status: 'error',
duration: 3000,
isClosable: true,
Expand All @@ -216,7 +216,7 @@ const TopicTable = () => {
};

fetch();
}, [topicList]);
}, []);

return (
<Box
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.sun.net.httpserver.HttpServer;
import java.io.IOException;
import java.net.InetSocketAddress;

public class EventMeshAdminController {

Expand Down

0 comments on commit b7d0033

Please sign in to comment.