feat: normalize provider names

This commit is contained in:
Fu Diwei
2024-12-17 09:42:12 +08:00
parent 70e6920288
commit 047b3bc079
41 changed files with 844 additions and 680 deletions

View File

@@ -60,7 +60,7 @@ const DeployToTencentCOS = ({ data }: DeployFormProps) => {
const form = useForm<z.infer<typeof formSchema>>({
resolver: zodResolver(formSchema),
defaultValues: {
providerType: "tencent-cos",
providerType: "tencentcloud-cos",
access: config.access as string,
certificate: config.certificate as string,
region: config.region as string,
@@ -100,7 +100,7 @@ const DeployToTencentCOS = ({ data }: DeployFormProps) => {
</div>
}
op="add"
outConfigType="tencent"
outConfigType="tencentcloud"
/>
</FormLabel>
<FormControl>
@@ -110,7 +110,7 @@ const DeployToTencentCOS = ({ data }: DeployFormProps) => {
onValueChange={(value) => {
form.setValue("access", value);
}}
providerType="tencent-cos"
providerType="tencentcloud-cos"
/>
</FormControl>