You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/server/admin/app/ra/routes/socketio.tsx

35 lines
912 B
TypeScript

import React from 'react';
import { Typography, CardActions, Button, Box } from '@mui/material';
import { Card, CardContent } from '@mui/material';
/**
* SocketIO 管理
*/
export const SocketIOAdmin: React.FC = React.memo(() => {
return (
<Box p={4}>
<Card>
<CardContent>
<Typography component="div">
URL: <strong>ws://{window.location.host}</strong>
</Typography>
<Typography component="div">
Tailchat
</Typography>
</CardContent>
<CardActions>
<Button
variant="contained"
onClick={() => {
window.open('https://admin.socket.io/');
}}
>
</Button>
</CardActions>
</Card>
</Box>
);
});
SocketIOAdmin.displayName = 'SocketIOAdmin';