-
-
-
-
-
-
+
>
);
};
diff --git a/lib/db/db.ts b/lib/db/db.ts
index 952adcdd..e1a2dd4f 100644
--- a/lib/db/db.ts
+++ b/lib/db/db.ts
@@ -45,12 +45,13 @@ export interface Database {
// ---------------
export const db = new Kysely
({
dialect: new MysqlDialect({
- pool: createPool({
- host: process.env.DATABASE_HOST,
- user: process.env.DATABASE_USERNAME,
- password: process.env.DATABASE_PASSWORD,
- database: 'main',
- }),
+ pool: async () =>
+ createPool({
+ host: process.env.DATABASE_HOST,
+ user: process.env.DATABASE_USERNAME,
+ password: process.env.DATABASE_PASSWORD,
+ database: 'main',
+ }),
}),
// log: ['query', 'error'],
});
diff --git a/ui/skeleton.tsx b/ui/skeleton.tsx
index c90f90b2..2612ff45 100644
--- a/ui/skeleton.tsx
+++ b/ui/skeleton.tsx
@@ -104,3 +104,59 @@ export const CardChartSkeleton = () => (
);
+
+// Loading: Chart with Card
+// ---------------
+const Row = ({ className }: { className?: string }) => (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+);
+
+export const RowDivider = () => (
+
+);
+
+export const CardTableSkeleton = () => (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+);