From fbaf81a62fb3cc4c254df0ce69f84106f85ee50f Mon Sep 17 00:00:00 2001 From: Innei Date: Sat, 6 Dec 2025 00:42:10 +0800 Subject: [PATCH] chore: update Dockerfile and enhance loading skeleton in StoragePlanEditor - Added build dependencies for native Node.js modules in the Dockerfile, including python3, make, g++, and postgresql-dev. - Improved the loading skeleton UI in the StoragePlanEditor component for better visual representation during data fetching. Signed-off-by: Innei --- Dockerfile.core | 2 ++ .../dashboard/src/pages/superadmin/plans.tsx | 35 ++++++++++++++++--- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/Dockerfile.core b/Dockerfile.core index 8d30c27e..0206ae18 100644 --- a/Dockerfile.core +++ b/Dockerfile.core @@ -6,6 +6,8 @@ ENV PNPM_HOME=/pnpm ENV PATH="$PNPM_HOME:$PATH" RUN corepack enable && corepack prepare pnpm@10.19.0 --activate +RUN apk add --no-cache python3 make g++ postgresql-dev + WORKDIR /workspace COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./ diff --git a/be/apps/dashboard/src/pages/superadmin/plans.tsx b/be/apps/dashboard/src/pages/superadmin/plans.tsx index 584a9f6c..279f44db 100644 --- a/be/apps/dashboard/src/pages/superadmin/plans.tsx +++ b/be/apps/dashboard/src/pages/superadmin/plans.tsx @@ -224,11 +224,38 @@ function StoragePlanEditor() { if (query.isLoading) { return ( - -
-
+ +
+
+
+
+
+
+
+
+
+
+ +
{[1, 2].map((key) => ( -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
))}