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

109 lines
2.9 KiB
YAML
Raw Normal View History

2022-01-19 13:43:58 +00:00
id: deploy
type: PageSiderMenu
properties:
title: Deploy
areas:
content:
blocks:
- id: title
type: Title
layout:
grow: 1
properties:
content: Deploy
2022-01-19 14:17:30 +00:00
- id: macaddress
2022-01-19 14:46:43 +00:00
required: true
2022-01-19 14:05:57 +00:00
type: TextInput
properties:
title: MAC Address
placeholder: 00:00:00:00:00:00
2022-01-19 14:17:30 +00:00
- id: projectname
type: TextInput
2022-01-19 14:05:57 +00:00
properties:
title: Project name
2022-01-19 14:17:30 +00:00
- id: hostname
2022-01-19 14:46:43 +00:00
required: true
2022-01-19 14:17:30 +00:00
type: TextInput
properties:
title: Hostname
- id: ipaddress
2022-01-19 14:46:43 +00:00
required: true
2022-01-19 14:17:30 +00:00
type: TextInput
properties:
title: IP address
placeholder: 0.0.0.0
- id: subnetmask
2022-01-19 14:46:43 +00:00
required: true
2022-01-19 14:17:30 +00:00
type: TextInput
properties:
title: Subnet mask
placeholder: 255.255.255.0
- id: gateway
2022-01-19 14:46:43 +00:00
required: true
2022-01-19 14:17:30 +00:00
type: TextInput
properties:
title: Gateway
placeholder: 0.0.0.0
- id: dnsserver
type: TextInput
properties:
title: DNS server
placeholder: 0.0.0.0, 0.0.0.0
- id: dnssuffix
type: TextInput
properties:
title: DNS suffix
placeholder: example.org
2022-01-19 14:34:47 +00:00
- id: warning
type: Alert
2022-01-19 14:05:57 +00:00
properties:
2022-01-19 14:34:47 +00:00
message: When pressing 'Start Deployment' the physical device should be booted over LAN (PXE).
type: warning
2022-01-19 14:17:30 +00:00
- id: reset_button
type: Button
layout:
2022-01-19 14:34:47 +00:00
grow: 1
2022-01-19 14:17:30 +00:00
properties:
title: Reset
2022-01-19 14:46:43 +00:00
Icon: ClearOutlined
2022-01-19 14:34:47 +00:00
block: true
2022-01-19 14:46:43 +00:00
type: default
2022-01-19 14:17:30 +00:00
actions:
onClick:
- id: reset
type: reset()
2022-01-19 14:34:47 +00:00
- id: start_deployment
2022-01-19 14:05:57 +00:00
type: Button
layout:
2022-01-19 14:34:47 +00:00
grow: 3
2022-01-19 14:05:57 +00:00
properties:
2022-01-19 14:34:47 +00:00
title: Start Deployment
icon: RocketOutlined
2022-01-19 14:05:57 +00:00
block: true
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.
events:
onClick:
- id: update_brand # Call the update_brand request.
type: Request
params: update_brand
- id: link_to_brands # Link back to the brands page.
type: Link
params:
pageId: brands