feat: add safeline deployer

This commit is contained in:
Fu Diwei
2025-02-17 16:48:33 +08:00
parent a40b078e9c
commit c72dc0d2c4
30 changed files with 586 additions and 77 deletions

View File

@@ -47,12 +47,18 @@ const AccessProviderSelect = (props: AccessProviderSelectProps) => {
return (
<Select
{...props}
filterOption={(inputValue, option) => {
if (!option) return false;
const value = inputValue.toLowerCase();
return option.value.toLowerCase().includes(value) || option.label.toLowerCase().includes(value);
}}
labelRender={({ label, value }) => {
if (label) {
return renderOption(value as string);
if (!label) {
return <Typography.Text type="secondary">{props.placeholder}</Typography.Text>;
}
return <Typography.Text type="secondary">{props.placeholder}</Typography.Text>;
return renderOption(value as string);
}}
options={options}
optionFilterProp={undefined}

View File

@@ -33,12 +33,18 @@ const ApplyDNSProviderSelect = (props: ApplyDNSProviderSelectProps) => {
return (
<Select
{...props}
filterOption={(inputValue, option) => {
if (!option) return false;
const value = inputValue.toLowerCase();
return option.value.toLowerCase().includes(value) || option.label.toLowerCase().includes(value);
}}
labelRender={({ label, value }) => {
if (label) {
return renderOption(value as string);
if (!label) {
return <Typography.Text type="secondary">{props.placeholder}</Typography.Text>;
}
return <Typography.Text type="secondary">{props.placeholder}</Typography.Text>;
return renderOption(value as string);
}}
options={options}
optionFilterProp={undefined}

View File

@@ -33,12 +33,18 @@ const DeployProviderSelect = (props: DeployProviderSelectProps) => {
return (
<Select
{...props}
filterOption={(inputValue, option) => {
if (!option) return false;
const value = inputValue.toLowerCase();
return option.value.toLowerCase().includes(value) || option.label.toLowerCase().includes(value);
}}
labelRender={({ label, value }) => {
if (label) {
return renderOption(value as string);
if (!label) {
return <Typography.Text type="secondary">{props.placeholder}</Typography.Text>;
}
return <Typography.Text type="secondary">{props.placeholder}</Typography.Text>;
return renderOption(value as string);
}}
options={options}
optionFilterProp={undefined}