mirror of
https://github.com/certimate-go/certimate.git
synced 2026-09-24 23:10:13 +08:00
fix(ui): tailwindcss safelisting with ranges
This commit is contained in:
@@ -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]);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user