= [
{
title: "ID",
dataIndex: "id",
key: "id",
+ render: (id: string) => shortenId(id),
},
{
title: "RepoTag",
dataIndex: "repoTag",
key: "repoTag",
- render: (text: string, record: any) => (
+ responsive: ['md'] as Breakpoint[],
+ render: (text: string, record: ImageData) => (
handleInspect(record.id)} style={{ cursor: "pointer", color: "#1890ff" }}>
{text}
@@ -63,7 +80,7 @@ const Images: React.FC = () => {
{
title: "Actions",
key: "actions",
- render: (_: any, record: any) => (
+ render: (_: any, record: ImageData) => (
@@ -83,7 +100,14 @@ const Images: React.FC = () => {
width={800}
>
{modalData ? (
-
+
{JSON.stringify(modalData, null, 2)}
) : (
diff --git a/vite.config.ts b/vite.config.ts
index e9f0e18..1aecdfc 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,14 +1,19 @@
-import { defineConfig } from 'vite'
+import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
- plugins: [react()],
- server: {
- proxy: {
- '/api': {
- target: 'http://localhost:8080',
- changeOrigin: true,
- },
+ plugins: [react()],
+ server: {
+ proxy: {
+ '/api': {
+ target: 'http://localhost:8080',
+ changeOrigin: true,
+ },
+ '/rsocket': {
+ target: 'ws://localhost:8080',
+ ws: true,
+ changeOrigin: true,
+ },
+ },
},
- },
});