From c04338a0b5fb74bdda8aab451c675e09aef4a513 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 26 Dec 2025 15:20:12 +0800 Subject: [PATCH] chore(gh): pull request template --- .github/ISSUE_TEMPLATE/1-bug_report.yml | 2 - .github/ISSUE_TEMPLATE/2-feature_request.yml | 2 - .github/ISSUE_TEMPLATE/3-questions.yml | 2 - .../pull_request_template.md | 17 +++++ .../BizDeployNodeConfigFieldsProvider.tsx | 2 - ...yNodeConfigFieldsProviderCTCCCloudFaaS.tsx | 65 ------------------- 6 files changed, 17 insertions(+), 73 deletions(-) create mode 100644 .github/PULL_REQUEST_TEMPLATE/pull_request_template.md delete mode 100644 ui/src/components/workflow/designer/forms/BizDeployNodeConfigFieldsProviderCTCCCloudFaaS.tsx diff --git a/.github/ISSUE_TEMPLATE/1-bug_report.yml b/.github/ISSUE_TEMPLATE/1-bug_report.yml index 4d4b0e710..be4266e6e 100644 --- a/.github/ISSUE_TEMPLATE/1-bug_report.yml +++ b/.github/ISSUE_TEMPLATE/1-bug_report.yml @@ -8,8 +8,6 @@ body: - type: markdown attributes: value: | - ## Welcome! - **Before you submit the issue, please make sure of the following checklist**: 1. Yes, I'm using the latest release and can reproduce the issue. Issues that are not in the latest version will be closed directly. 2. Yes, I've searched for [existing issues](https://github.com/certimate-go/certimate/issues) (including closed ones) on GitHub and didn't find any similar. diff --git a/.github/ISSUE_TEMPLATE/2-feature_request.yml b/.github/ISSUE_TEMPLATE/2-feature_request.yml index 8afb94412..36534e5da 100644 --- a/.github/ISSUE_TEMPLATE/2-feature_request.yml +++ b/.github/ISSUE_TEMPLATE/2-feature_request.yml @@ -8,8 +8,6 @@ body: - type: markdown attributes: value: | - ## Welcome! - **Before you submit the issue, please make sure of the following checklist**: 1. Yes, I'm using the latest release. 2. Yes, I've searched for [existing issues](https://github.com/certimate-go/certimate/issues) (including closed ones) on GitHub and didn't find any similar. diff --git a/.github/ISSUE_TEMPLATE/3-questions.yml b/.github/ISSUE_TEMPLATE/3-questions.yml index 2e011bd4f..46985eef5 100644 --- a/.github/ISSUE_TEMPLATE/3-questions.yml +++ b/.github/ISSUE_TEMPLATE/3-questions.yml @@ -6,8 +6,6 @@ body: - type: markdown attributes: value: | - ## Welcome! - **Before you submit the issue, please make sure of the following checklist**: 1. Yes, I'm using the latest release. 2. Yes, I've searched for [existing issues](https://github.com/certimate-go/certimate/issues) (including closed ones) on GitHub and didn't find any similar. diff --git a/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md new file mode 100644 index 000000000..2475d280f --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md @@ -0,0 +1,17 @@ + diff --git a/ui/src/components/workflow/designer/forms/BizDeployNodeConfigFieldsProvider.tsx b/ui/src/components/workflow/designer/forms/BizDeployNodeConfigFieldsProvider.tsx index f2abb5c7e..95a4a4cb7 100644 --- a/ui/src/components/workflow/designer/forms/BizDeployNodeConfigFieldsProvider.tsx +++ b/ui/src/components/workflow/designer/forms/BizDeployNodeConfigFieldsProvider.tsx @@ -41,7 +41,6 @@ import BizDeployNodeConfigFieldsProviderCPanelSite from "./BizDeployNodeConfigFi import BizDeployNodeConfigFieldsProviderCTCCCloudAO from "./BizDeployNodeConfigFieldsProviderCTCCCloudAO"; import BizDeployNodeConfigFieldsProviderCTCCCloudCDN from "./BizDeployNodeConfigFieldsProviderCTCCCloudCDN"; import BizDeployNodeConfigFieldsProviderCTCCCloudELB from "./BizDeployNodeConfigFieldsProviderCTCCCloudELB"; -import BizDeployNodeConfigFieldsProviderCTCCCloudFaaS from "./BizDeployNodeConfigFieldsProviderCTCCCloudFaaS"; import BizDeployNodeConfigFieldsProviderCTCCCloudICDN from "./BizDeployNodeConfigFieldsProviderCTCCCloudICDN"; import BizDeployNodeConfigFieldsProviderCTCCCloudLVDN from "./BizDeployNodeConfigFieldsProviderCTCCCloudLVDN"; import BizDeployNodeConfigFieldsProviderDogeCloudCDN from "./BizDeployNodeConfigFieldsProviderDogeCloudCDN"; @@ -152,7 +151,6 @@ const providerComponentMap: Partial { - const { i18n, t } = useTranslation(); - - const { parentNamePath } = useFormNestedFieldsContext(); - const formSchema = z.object({ - [parentNamePath]: getSchema({ i18n }), - }); - const formRule = createSchemaFieldRule(formSchema); - const initialValues = getInitialValues(); - - return ( - <> - } - > - - - - - - - - ); -}; - -const getInitialValues = (): Nullish>> => { - return { - regionId: "", - domain: "", - }; -}; - -const getSchema = ({ i18n = getI18n() }: { i18n?: ReturnType }) => { - const { t } = i18n; - - return z.object({ - regionId: z.string().nonempty(t("workflow_node.deploy.form.ctcccloud_faas_region_id.placeholder")), - domain: z.string().refine((v) => isDomain(v), t("workflow_node.deploy.form.ctcccloud_faas_domain.placeholder")), - }); -}; - -const _default = Object.assign(BizDeployNodeConfigFieldsProviderCTCCCloudFaaS, { - getInitialValues, - getSchema, -}); - -export default _default;