fix: cluster value setting, volumes setting

This commit is contained in:
jialin
2025-09-19 20:00:25 +08:00
parent b640963f65
commit f542ebecb4
27 changed files with 677 additions and 109 deletions
@@ -0,0 +1,30 @@
import HighlightCode from '@/components/highlight-code';
import { addWorkerGuide } from '@/pages/resources/config';
import React from 'react';
import { ProviderType } from '../config';
type ViewModalProps = {
provider: ProviderType;
currentGPU: string;
};
const AddWorkerCommand: React.FC<ViewModalProps> = ({
provider = '',
currentGPU
}) => {
const code = React.useMemo(() => {
const command = addWorkerGuide['cuda'];
return command.checkEnvCommand[provider || ''];
}, [provider]);
return (
<HighlightCode
theme="dark"
code={code}
copyValue={code}
lang="bash"
></HighlightCode>
);
};
export default AddWorkerCommand;