This repository has been archived on 2022-06-19. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ContainerImage.WendyUI/deploy.yaml

173 lines
5.7 KiB
YAML
Raw Normal View History

2022-01-19 13:43:58 +00:00
id: deploy
2022-01-19 14:52:29 +00:00
type: PageHeaderMenu
2022-01-19 13:43:58 +00:00
properties:
title: Deploy
2022-01-19 15:35:49 +00:00
layout:
contentJustify: center
2022-01-19 13:43:58 +00:00
areas:
content:
blocks:
2022-01-19 14:52:29 +00:00
- id: content
type: Card
2022-01-19 13:43:58 +00:00
layout:
2022-01-19 15:35:49 +00:00
size: 800
2022-01-19 15:40:43 +00:00
contentGutter: 10
2022-01-19 14:52:29 +00:00
blocks:
- id: title
type: Title
layout:
grow: 1
properties:
content: Deploy
2022-01-19 15:35:49 +00:00
label:
2022-01-19 15:40:43 +00:00
span: 5
2022-01-19 14:52:29 +00:00
- id: macaddress
required: true
type: TextInput
properties:
title: MAC Address
placeholder: 00:00:00:00:00:00
2022-01-19 15:35:49 +00:00
label:
2022-01-19 15:40:43 +00:00
span: 5
2022-01-19 15:52:37 +00:00
validate:
- status: error
message: Enter a valid MAC address
pass:
2022-01-19 16:59:32 +00:00
_regex: ^(?!(?:00[:-]){5}00)((?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$
2022-01-19 14:52:29 +00:00
- id: projectname
type: TextInput
properties:
title: Project name
2022-01-19 15:35:49 +00:00
label:
2022-01-19 15:40:43 +00:00
span: 5
2022-01-19 14:52:29 +00:00
- id: hostname
required: true
type: TextInput
properties:
title: Hostname
2022-01-19 15:35:49 +00:00
label:
2022-01-19 20:43:32 +00:00
extra: Can only contain alphanumeric characters and hyphens; must be between 1 and 15 characters long
2022-01-19 15:40:43 +00:00
span: 5
2022-01-19 16:59:32 +00:00
validate:
- status: error
2022-01-19 20:43:32 +00:00
message: Enter a valid hostname
2022-01-19 16:59:32 +00:00
pass:
_regex: ^([a-zA-Z0-9]{1,15}|[a-zA-Z0-9][a-zA-Z0-9\-]{0,13}[a-zA-Z0-9])$
2022-01-19 14:52:29 +00:00
- id: ipaddress
required: true
type: TextInput
properties:
title: IP address
placeholder: 0.0.0.0
2022-01-19 15:35:49 +00:00
label:
2022-01-19 15:40:43 +00:00
span: 5
2022-01-19 20:43:32 +00:00
validate:
- status: error
message: Enter a valid IP address
pass:
_regex: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
2022-01-19 14:52:29 +00:00
- id: subnetmask
required: true
type: TextInput
properties:
title: Subnet mask
placeholder: 255.255.255.0
2022-01-19 15:35:49 +00:00
label:
2022-01-19 15:40:43 +00:00
span: 5
2022-01-19 16:59:32 +00:00
validate:
- status: error
2022-01-19 20:43:32 +00:00
message: Enter a valid subnet mask
2022-01-19 16:59:32 +00:00
pass:
_regex: ^(?:(255|254|252|248|240|224|192|128|0+)(?:\.(?!$)|$)){4}$
2022-01-19 14:52:29 +00:00
- id: gateway
required: true
type: TextInput
properties:
title: Gateway
placeholder: 0.0.0.0
2022-01-19 15:35:49 +00:00
label:
2022-01-19 15:40:43 +00:00
span: 5
2022-01-19 20:43:32 +00:00
validate:
- status: error
message: Enter a valid IP address
pass:
_regex: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
2022-01-19 14:52:29 +00:00
- id: dnsserver
2022-01-19 20:43:32 +00:00
required: true
2022-01-19 14:52:29 +00:00
type: TextInput
properties:
title: DNS server
2022-01-19 20:43:32 +00:00
placeholder: 1.1.1.1, 1.0.0.1
2022-01-19 15:35:49 +00:00
label:
2022-01-19 20:43:32 +00:00
extra: (comma-separated list of IP addresses)
2022-01-19 15:40:43 +00:00
span: 5
2022-01-19 20:43:32 +00:00
validate:
- status: error
message: Enter one or more valid IP addresses, separated by a comma
pass:
_regex: ^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.(?:25[0-5]|2[0-4]\d|[01]?\d\d?))(?:,\s*(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.(?:25[0-5]|2[0-4]\d|[01]?\d\d?)))*$
2022-01-19 14:52:29 +00:00
- id: dnssuffix
2022-01-19 20:43:32 +00:00
required: true
2022-01-19 14:52:29 +00:00
type: TextInput
properties:
title: DNS suffix
placeholder: example.org
2022-01-19 15:35:49 +00:00
label:
2022-01-19 15:40:43 +00:00
span: 5
2022-01-19 20:43:32 +00:00
validate:
- status: error
message: Enter a valid domain name
pass:
_regex: (?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)+[a-zA-Z]{2,63}$)
2022-01-19 14:52:29 +00:00
- id: warning
type: Alert
properties:
2022-01-19 15:35:49 +00:00
message: After pressing 'Start Deployment' the physical device can be booted over LAN
2022-01-19 14:52:29 +00:00
type: warning
- id: reset_button
type: Button
layout:
grow: 1
properties:
title: Reset
icon: ClearOutlined
block: true
type: default
2022-01-19 15:35:49 +00:00
events:
2022-01-19 14:52:29 +00:00
onClick:
- id: reset
2022-01-19 15:52:37 +00:00
type: Reset
2022-01-19 14:52:29 +00:00
- id: start_deployment
type: Button
layout:
grow: 3
2022-01-19 14:05:57 +00:00
properties:
2022-01-19 14:52:29 +00:00
title: Start Deployment
icon: RocketOutlined
block: true
2022-01-19 16:59:32 +00:00
# requests:
# - id: update_brand
# type: MongoDBUpdateOne # MongoDb updateOne request to update the brand.
# connectionId: brands
# properties:
# filter:
# _id:
# _state: _id # Select the document that matches the document's _id that is in state.
# update:
# $set:
# name:
# _state: name # Insert the brand name we set in state.
# description:
# _state: description # Insert the description name we set in state.
# updated_at:
# _date: now # Set the updated_at date as current time.
2022-01-19 14:52:29 +00:00
events:
onClick:
2022-01-19 16:59:32 +00:00
- id: validate
type: Validate
2022-01-19 14:52:29 +00:00
- id: update_brand # Call the update_brand request.
type: Request
params: update_brand