@@ -187,152 +203,115 @@ export default function Home({
-
-
-
-
- 🔥 |
- Id |
- User |
- Host |
- db |
- Command |
- Time |
- State |
- Info |
- Progress |
- Transaction Time |
- Transaction Info |
-
-
-
- {repo.processList.map(
- (item: ProcessWithTransaction) => (
- 10 ? 'bg-red-300' : ''}`}
+
+
+ 🔥
+
+ Id
+
+
+ User
+
+
+ Host
+
+
+ db
+
+
+ Command
+
+
+ Time
+
+ State
+
+ Info
+
+
+ Progress
+
+
+ Transaction Time
+
+
+ Transaction Info
+
+
+
+ {(item) => (
+ 10 ? 'bg-red-300' : ''}`}>
+
+
-
+ 💀
+
+
+ {item.Id}
+
+
+ {item.User}
+
+
+ {item.Host}
+
+
+ {item.db}
+
+
+ {item.Command}
+ {item.Time} s
+ {item.State}
+ {item.Info}
+ {item.Progress}
+ {item.transaction?.activeTime} s
+ {item.transaction?.info.join('\n')}
+
+ )}
+
+
-
- Click to see complete innodb status result.
-
-
- {repo.innodbStatus}
-
+
Click to see complete innodb status result.
+
{repo.innodbStatus}
)
diff --git a/tailwind.config.ts b/tailwind.config.ts
index dd45ffb..1e72c84 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -1,20 +1,17 @@
import type { Config } from 'tailwindcss'
+import { nextui } from '@nextui-org/react'
const config: Config = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
+ './node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}',
],
theme: {
- extend: {
- backgroundImage: {
- 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
- 'gradient-conic':
- 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
- },
- },
+ extend: {},
},
- plugins: [require('daisyui')],
+ darkMode: 'class',
+ plugins: [require('daisyui'), nextui()],
}
export default config