-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
284b8e7
commit 537e684
Showing
7 changed files
with
186 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...ts/framework/properties/artifactory.property.ArtifactoryPromotionSyncPropertyType/Form.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import {Form, Input, InputNumber} from "antd"; | ||
import {prefixedFormName} from "@components/form/formUtils"; | ||
|
||
export default function PropertyForm({prefix}) { | ||
|
||
return ( | ||
<> | ||
<Form.Item | ||
label="Configuration" | ||
extra="Reference to the Artifactory configuration" | ||
name={prefixedFormName(prefix, 'configuration')} | ||
rules={[{required: true, message: 'Configuration is required.'}]} | ||
> | ||
<Input/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Build name" | ||
extra="Artifactory build name" | ||
name={prefixedFormName(prefix, 'buildName')} | ||
rules={[{required: true, message: 'Build name is required.'}]} | ||
> | ||
<Input/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Build name filter" | ||
extra="Artifactory build name filter" | ||
name={prefixedFormName(prefix, 'buildNameFilter')} | ||
rules={[{required: true, message: 'Build name filter is required.'}]} | ||
> | ||
<Input/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Interval" | ||
extra="Interval between each synchronisation in minutes" | ||
name={prefixedFormName(prefix, 'interval')} | ||
rules={[{required: true, message: 'Interval is required.'}]} | ||
> | ||
<InputNumber/> | ||
</Form.Item> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...core/components/framework/properties/av.project.AutoVersioningProjectPropertyType/Form.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import {DatePicker, Form, Input, InputNumber, Select} from "antd"; | ||
import {prefixedFormName} from "@components/form/formUtils"; | ||
|
||
export default function PropertyForm({prefix}) { | ||
|
||
return ( | ||
<> | ||
<Form.Item | ||
label="Including branches" | ||
extra="List of regular expressions. AV requests match if at least one regular expression is matched by the target branch name. If empty, all target branches match (the default)." | ||
name={prefixedFormName(prefix, 'branchIncludes')} | ||
> | ||
<Select | ||
mode="tags" | ||
style={{width: '100%'}} | ||
placeholder="Enter a list of regular expressions" | ||
/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Excluding branches" | ||
extra="List of regular expressions. AV requests match if no regular expression is matched by the target branch name. If empty, the target branch is considered matching." | ||
name={prefixedFormName(prefix, 'branchExcludes')} | ||
> | ||
<Select | ||
mode="tags" | ||
style={{width: '100%'}} | ||
placeholder="Enter a list of regular expressions" | ||
/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Last activity date" | ||
extra="If defined, any target branch whose last activity (last build creation) is before this date will be ignored by the auto-versioning" | ||
name={prefixedFormName(prefix, 'lastActivityDate')} | ||
> | ||
<DatePicker showTime/> | ||
</Form.Item> | ||
</> | ||
) | ||
} |
40 changes: 40 additions & 0 deletions
40
...roperties/bitbucket.cloud.property.BitbucketCloudProjectConfigurationPropertyType/Form.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import {Form, Input, InputNumber} from "antd"; | ||
import {prefixedFormName} from "@components/form/formUtils"; | ||
|
||
export default function PropertyForm({prefix}) { | ||
|
||
return ( | ||
<> | ||
<Form.Item | ||
label="Configuration" | ||
extra="Name of the Bitbucket Cloud configuration" | ||
name={prefixedFormName(prefix, 'configuration')} | ||
rules={[{required: true, message: 'Configuration is required.'}]} | ||
> | ||
<Input/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Repository" | ||
extra="Name of the repository" | ||
name={prefixedFormName(prefix, 'repository')} | ||
rules={[{required: true, message: 'Repository name is required.'}]} | ||
> | ||
<Input/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Indexation interval" | ||
extra="How often to index the repository, in minutes. Use 0 to disable indexation" | ||
name={prefixedFormName(prefix, 'indexationInterval')} | ||
> | ||
<InputNumber/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Issue service" | ||
extra="Identifier for the issue service" | ||
name={prefixedFormName(prefix, 'issueServiceConfigurationIdentifier')} | ||
> | ||
<Input/> | ||
</Form.Item> | ||
</> | ||
) | ||
} |
17 changes: 17 additions & 0 deletions
17
...k-web-core/components/framework/properties/general.AutoPromotionLevelPropertyType/Form.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {Form, Switch} from "antd"; | ||
import {prefixedFormName} from "@components/form/formUtils"; | ||
|
||
export default function PropertyForm({prefix}) { | ||
|
||
return ( | ||
<> | ||
<Form.Item | ||
label="Auto create" | ||
extra="If set, allows promotion levels to be created automatically" | ||
name={prefixedFormName(prefix, 'autoCreate')} | ||
> | ||
<Switch/> | ||
</Form.Item> | ||
</> | ||
) | ||
} |
40 changes: 40 additions & 0 deletions
40
ontrack-web-core/components/framework/properties/general.AutoPromotionPropertyType/Form.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import {Form, Input} from "antd"; | ||
import {prefixedFormName} from "@components/form/formUtils"; | ||
import SelectMultipleValidationStampNames from "@components/validationStamps/SelectMultipleValidationStampNames"; | ||
import SelectMultiplePromotionLevelNames from "@components/promotionLevels/SelectMultiplePromotionLevelNames"; | ||
|
||
export default function PropertyForm({prefix}) { | ||
|
||
return ( | ||
<> | ||
<Form.Item | ||
label="Validation stamps" | ||
extra="List of validation stamps which trigger this promotion" | ||
name={prefixedFormName(prefix, 'validationStamps')} | ||
> | ||
<SelectMultipleValidationStampNames/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Including" | ||
extra="Regular expression to include validation stamps by name" | ||
name={prefixedFormName(prefix, 'include')} | ||
> | ||
<Input/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Excluding" | ||
extra="Regular expression to exclude validation stamps by name" | ||
name={prefixedFormName(prefix, 'exclude')} | ||
> | ||
<Input/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Promotion levels" | ||
extra="List of promotion levels which trigger this promotion" | ||
name={prefixedFormName(prefix, 'promotionLevels')} | ||
> | ||
<SelectMultiplePromotionLevelNames/> | ||
</Form.Item> | ||
</> | ||
) | ||
} |