fix(ui): tailwindcss safelisting with ranges

This commit is contained in:
Fu Diwei
2025-07-23 10:48:18 +08:00
parent 3d65768ad9
commit 8e9e55d1bb
5 changed files with 9 additions and 3 deletions
+2
View File
@@ -135,6 +135,8 @@ const AccessForm = forwardRef<AccessFormInstance, AccessFormProps>(({ className,
return (record: AccessProvider) => record.usages.includes(ACCESS_USAGES.CA);
case "notification":
return (record: AccessProvider) => record.usages.includes(ACCESS_USAGES.NOTIFICATION);
default:
console.warn(`[certimate] unsupported provider usage: '${usage}'`);
}
return undefined;
@@ -60,7 +60,7 @@ const WorkflowElement = ({ node, disabled, branchId, branchIndex }: WorkflowElem
return <EndNode />;
default:
console.warn(`[certimate] unsupported workflow node type: ${node.type}`);
console.warn(`[certimate] unsupported workflow node type: '${node.type}'`);
return <UnknownNode node={node} />;
}
}, [node, disabled, branchId, branchIndex]);
+2
View File
@@ -7,6 +7,8 @@
@import "antd/dist/reset.css";
@custom-variant dark (&:where(.dark, .dark *));
@source inline("gap-{0,{1..96}}");
@source inline("grid-cols-{0,{1..12}}");
@theme {
--color-background: var(---twColorBackground);
+3 -1
View File
@@ -41,9 +41,11 @@ const AccessNew = () => {
return (record: AccessProvider) => record.usages.includes(ACCESS_USAGES.CA);
case "notification":
return (record: AccessProvider) => record.usages.includes(ACCESS_USAGES.NOTIFICATION);
default:
console.warn(`[certimate] unsupported provider usage: '${providerUsage}'`);
}
return undefined;
return () => false;
}, [providerUsage]);
const handleProviderPick = (value: string) => {
+1 -1
View File
@@ -44,7 +44,7 @@ export default defineConfig(({ mode }) => {
})?.toString();
} catch (error) {
const err = error as SpawnSyncReturns<Buffer>;
console.warn("[Warn] failed to get version number through git", err?.stderr?.toString());
console.warn("failed to get version number through git", err?.stderr?.toString());
}
}